refactor: massive rename dap -> dat and fix scaffold syntax error
Some checks failed
Deploy to OCIWP / deploy (push) Failing after 14s

This commit is contained in:
jade
2026-08-20 10:41:37 +09:00
parent 64c422378f
commit 0085ec6919
765 changed files with 1151 additions and 1151 deletions

View File

@@ -33,11 +33,11 @@
* 처리계 UI ↔ 처리계 AP 구간: `HTTPS` / `SSV`를 사용하며, FW에서 x-api를 통해 SSV↔DTO 변환을 수행한다.
* 신한라이프 표준 로그 기준 (Logback 설정):
* **로그 생성 경로:** `/swlog/어플리케이션명(모듈명)/코드명/` (예: `/swlog/dap-gateway/A01/`)
* **로그 생성 경로:** `/swlog/어플리케이션명(모듈명)/코드명/` (예: `/swlog/dat-gateway/A01/`)
* **로그 네이밍 규칙:** `${HOSTNAME}_코드명_yyyyMMdd.log` (예: `${HOSTNAME}_A01_20260722.log`)
* **기본 로그 구분 코드:** 시스템 운영기록 가동기록의 경우 `A01`을 기본으로 사용한다.
* **호스트명 동적 할당:** Logback 설정 시 `<property name="HOSTNAME" value="${HOSTNAME}" />` 를 선언하여 사용한다.
* 프로젝트 작업 범위 및 툴 연동 규칙:
* 현재 `axhub-backend-main` 워크스페이스 내에서는 **오직 `dap-gateway` 모듈만 수정**한다.
* 툴(Tool) 연동 개발 작업은 반드시 별도의 워크스페이스인 **`C:\eGovFrameDev-4.3.1-64bit\workspace-egov\dap-was-dapmt`** 폴더에서 수행한다.
* 현재 `axhub-backend-main` 워크스페이스 내에서는 **오직 `dat-gateway` 모듈만 수정**한다.
* 툴(Tool) 연동 개발 작업은 반드시 별도의 워크스페이스인 **`C:\eGovFrameDev-4.3.1-64bit\workspace-egov\dat-was-datmt`** 폴더에서 수행한다.

View File

@@ -4,22 +4,22 @@
| Pod role | Gradle module | Container service | Internal endpoint | Local Docker endpoint |
|---|---|---|---|---|
| Customer/common integration | `dap-was-cus` | `was-cus` | `http://was-cus:8084/mcp` | `http://localhost:8284/mcp` |
| Sales/notification integration | `dap-was-sal` | `was-sal` | `http://was-sal:8082/mcp` | `http://localhost:8282/mcp` |
| Process integration (new) | `dap-was-pro` | `was-pro` | `http://was-pro:8085/mcp` | `http://localhost:8085/mcp` |
| System integration (new) | `dap-was-sys` | `was-sys` | `http://was-sys:8086/mcp` | `http://localhost:8086/mcp` |
| Customer/common integration | `dat-was-cus` | `was-cus` | `http://was-cus:8084/mcp` | `http://localhost:8284/mcp` |
| Sales/notification integration | `dat-was-sal` | `was-sal` | `http://was-sal:8082/mcp` | `http://localhost:8282/mcp` |
| Process integration (new) | `dat-was-pro` | `was-pro` | `http://was-pro:8085/mcp` | `http://localhost:8085/mcp` |
| System integration (new) | `dat-was-sys` | `was-sys` | `http://was-sys:8086/mcp` | `http://localhost:8086/mcp` |
- The former `dap-was-oth` module is now `dap-was-cus`; the former `dap-was-sms` module is now `dap-was-sal`.
- The former `dat-was-oth` module is now `dat-was-cus`; the former `dat-was-sms` module is now `dat-was-sal`.
- This is a deployment Pod rename only. Existing tool category and function names such as `oth_*` and `sms_*` remain valid so already registered MCP clients are not broken.
- `dap-was-pro` and `dap-was-sys` are empty, independently deployable Tool Pods ready for new business tools.
- `dat-was-pro` and `dat-was-sys` are empty, independently deployable Tool Pods ready for new business tools.
### Run the Tool Pods locally
```powershell
.\gradlew.bat :dap-was-cus:bootRun
.\gradlew.bat :dap-was-sal:bootRun
.\gradlew.bat :dap-was-pro:bootRun
.\gradlew.bat :dap-was-sys:bootRun
.\gradlew.bat :dat-was-cus:bootRun
.\gradlew.bat :dat-was-sal:bootRun
.\gradlew.bat :dat-was-pro:bootRun
.\gradlew.bat :dat-was-sys:bootRun
```
AX HUB에서 AI Agent가 업무 Tool을 검색하고 호출할 수 있도록 Gateway와 독립 Tool Pod를 제공하는 멀티 모듈 Spring Boot 프로젝트입니다.
@@ -30,13 +30,13 @@ AX HUB에서 AI Agent가 업무 Tool을 검색하고 호출할 수 있도록 Gat
MCP Client / AI Agent
|
v
Gateway (dap-gateway, 8081)
Gateway (dat-gateway, 8081)
- MCP 연결, Tool Registry, 인증·인가, 라우팅, 공통 화면
|
+-------------------------+
| |
v v
SMS Tool Pod (dap-was-sms, 8082) OTH Tool Pod (dap-was-oth, 8084)
SMS Tool Pod (dat-was-sms, 8082) OTH Tool Pod (dat-was-oth, 8084)
- SMS 업무 Tool - 공통/업무/MCI 연계 Tool
- Tool Manifest - Tool Manifest
- Pod Test Console - Pod Test Console
@@ -51,12 +51,12 @@ Gateway는 외부 MCP 진입점과 Tool 등록·라우팅을 담당하고, 실
| 모듈 | 역할 | 기본 포트 |
|---|---|---:|
| `dap-gateway` | MCP Gateway, Registry, 라우팅, Chat·Catalog·Tester·Scaffold 화면 | 8081 |
| `dap-was-lib` | Tool 공통 라이브러리: 어노테이션, Schema, Manifest, MCI/EAI 어댑터, 공통 Web·보안 기능 | - |
| `dap-was-sms` | SMS/알림 업무 Tool Pod | 8082 |
| `dap-was-oth` | 공통/샘플/MCI 연계 업무 Tool Pod | 8084 |
| `dat-gateway` | MCP Gateway, Registry, 라우팅, Chat·Catalog·Tester·Scaffold 화면 | 8081 |
| `dat-was-lib` | Tool 공통 라이브러리: 어노테이션, Schema, Manifest, MCI/EAI 어댑터, 공통 Web·보안 기능 | - |
| `dat-was-sms` | SMS/알림 업무 Tool Pod | 8082 |
| `dat-was-oth` | 공통/샘플/MCI 연계 업무 Tool Pod | 8084 |
> 기존 `dap-tool-core`, `dap-tool-sms`, `dap-tool-oth` 명칭은 현재 각각 `dap-was-lib`, `dap-was-sms`, `dap-was-oth`로 변경되었습니다.
> 기존 `dap-tool-core`, `dap-tool-sms`, `dap-tool-oth` 명칭은 현재 각각 `dat-was-lib`, `dat-was-sms`, `dat-was-oth`로 변경되었습니다.
## 3. 개발 환경
@@ -82,11 +82,11 @@ $env:OPENROUTER_API_KEY = '<발급받은-키>'
각 애플리케이션은 별도 터미널에서 실행합니다.
```powershell
.\gradlew.bat :dap-gateway:bootRun
.\gradlew.bat :dap-was-sal:bootRun
.\gradlew.bat :dap-was-cus:bootRun
.\gradlew.bat :dap-was-pro:bootRun
.\gradlew.bat :dap-was-sys:bootRun
.\gradlew.bat :dat-gateway:bootRun
.\gradlew.bat :dat-was-sal:bootRun
.\gradlew.bat :dat-was-cus:bootRun
.\gradlew.bat :dat-was-pro:bootRun
.\gradlew.bat :dat-was-sys:bootRun
```
### 4.2 Docker Compose 실행
@@ -146,7 +146,7 @@ Docker Compose로 실행한 경우 Gateway 화면은 포트 `8281`을 사용합
> Auto Tester의 더미 요청 성공은 **통신·등록·기본 스키마 확인용 스모크 테스트**입니다. 실제 MCI/EAI 업무 규칙, 권한, 데이터 정합성은 보장하지 않습니다. Stress Test와 Auto Ping은 실제 Tool·레거시 호출을 유발할 수 있으므로 개발/테스트 환경 및 승인된 테스트 데이터에서만 사용합니다.
UI에서 사용하는 Tailwind CSS와 Chart.js는 `dap-gateway/src/main/resources/static/lib`에 포함되어 있어, 화면 라이브러리 로딩을 위해 외부 CDN 연결이 필요하지 않습니다.
UI에서 사용하는 Tailwind CSS와 Chart.js는 `dat-gateway/src/main/resources/static/lib`에 포함되어 있어, 화면 라이브러리 로딩을 위해 외부 CDN 연결이 필요하지 않습니다.
## 6. 주요 HTTP API
@@ -232,12 +232,12 @@ Gateway는 Registry 등록 및 Heartbeat 정보를 이용해 Tool을 라우팅
## 9. MCI/EAI 연계
공통 MCI/EAI 연계 기능과 Glow 기본 설정은 `dap-was-lib`에서 제공합니다. Tool Pod별 애플리케이션 프로필은 각 Pod의 `application*.yml`에서 관리합니다.
공통 MCI/EAI 연계 기능과 Glow 기본 설정은 `dat-was-lib`에서 제공합니다. Tool Pod별 애플리케이션 프로필은 각 Pod의 `application*.yml`에서 관리합니다.
```text
dap-was-lib/src/main/resources/glow/application-glow*.yml
dap-was-sms/src/main/resources/application*.yml
dap-was-oth/src/main/resources/application*.yml
dat-was-lib/src/main/resources/glow/application-glow*.yml
dat-was-sms/src/main/resources/application*.yml
dat-was-oth/src/main/resources/application*.yml
```
MCI 호출 주소는 일반적으로 `host + uri`로 구성합니다. 예를 들어 `host=https://dev-ichmci.shinhanlife.co.kr`, `uri=/ntl_mci/clc_rcv`이면 호출 대상은 다음과 같습니다.
@@ -250,11 +250,11 @@ https://dev-ichmci.shinhanlife.co.kr/ntl_mci/clc_rcv
## 10. 품질 검증
```powershell
.\gradlew.bat :dap-was-lib:test
.\gradlew.bat :dap-was-cus:compileJava
.\gradlew.bat :dap-was-sal:compileJava
.\gradlew.bat :dap-was-pro:compileJava
.\gradlew.bat :dap-was-sys:compileJava
.\gradlew.bat :dat-was-lib:test
.\gradlew.bat :dat-was-cus:compileJava
.\gradlew.bat :dat-was-sal:compileJava
.\gradlew.bat :dat-was-pro:compileJava
.\gradlew.bat :dat-was-sys:compileJava
.\gradlew.bat validateMcpToolNames
```
@@ -279,29 +279,29 @@ https://dev-ichmci.shinhanlife.co.kr/ntl_mci/clc_rcv
| 기능 | 위치 |
|---|---|
| Tool 공통 Controller | `dap-was-lib/src/main/java/io/shinhanlife/dap/mcc/presentation` |
| Tool 어노테이션 | `dap-was-lib/src/main/java/io/shinhanlife/dap/lib/annotation` |
| JSON Schema/검증 | `dap-was-lib/src/main/java/io/shinhanlife/dap/lib/schema`, `.../validation` |
| Manifest | `dap-was-lib/src/main/java/io/shinhanlife/dap/lib/manifest` |
| Tool Scaffold | `dap-was-lib/src/main/java/io/shinhanlife/dap/lib/util/ToolScaffolder.java` |
| Gateway 라우터 | `dap-gateway/src/main/java/io/shinhanlife/dap/mcg/presentation/McpRouterController.java` |
| OTH Tool | `dap-was-oth/src/main/java` |
| SMS Tool | `dap-was-sms/src/main/java` |
| Tool 공통 Controller | `dat-was-lib/src/main/java/io/shinhanlife/dat/mcc/presentation` |
| Tool 어노테이션 | `dat-was-lib/src/main/java/io/shinhanlife/dat/lib/annotation` |
| JSON Schema/검증 | `dat-was-lib/src/main/java/io/shinhanlife/dat/lib/schema`, `.../validation` |
| Manifest | `dat-was-lib/src/main/java/io/shinhanlife/dat/lib/manifest` |
| Tool Scaffold | `dat-was-lib/src/main/java/io/shinhanlife/dat/lib/util/ToolScaffolder.java` |
| Gateway 라우터 | `dat-gateway/src/main/java/io/shinhanlife/dat/mcg/presentation/McpRouterController.java` |
| OTH Tool | `dat-was-oth/src/main/java` |
| SMS Tool | `dat-was-sms/src/main/java` |
## 13. 모듈명 전환 검증
Tool 관련 공통 기능은 `dap-was-*` 모듈명만 기준으로 동작합니다.
Tool 관련 공통 기능은 `dat-was-*` 모듈명만 기준으로 동작합니다.
- `validateMcpToolNames``dap-was-*` Tool Pod를 탐색하여 이름 규칙과 전역 중복을 검사합니다.
- `validateMcpToolNames``dat-was-*` Tool Pod를 탐색하여 이름 규칙과 전역 중복을 검사합니다.
- Tool Scaffold는 Pod 이름을 Tool 함수명에 포함하지 않습니다. 함수명은 `도메인_비즈니스_행위` 형식입니다. 예: `cmm_notification_send`
- Pod Scaffold와 Gateway Scaffold 화면/API의 모듈 목록도 `dap-was-*` 명칭으로 통일되어 있습니다.
- Tool Source Update 기능은 `dap-was-*` 아래의 `*UseCase.java`를 검색합니다.
- Pod Scaffold와 Gateway Scaffold 화면/API의 모듈 목록도 `dat-was-*` 명칭으로 통일되어 있습니다.
- Tool Source Update 기능은 `dat-was-*` 아래의 `*UseCase.java`를 검색합니다.
## 14. BC-DAB-STD-003 Tool Schema V17 적용
각 Tool의 표준 명세는 Tool Pod별 다음 경로에서 관리합니다.
```text
dap-was-{pod}/src/main/resources/tool-definitions/{categoryKey}/{toolName}.yml
dat-was-{pod}/src/main/resources/tool-definitions/{categoryKey}/{toolName}.yml
```
Tool 이름은 Pod 정보를 포함하지 않는 `도메인_서비스_행위` 형태의 영문 소문자 snake_case를 사용하며,

View File

@@ -17,7 +17,7 @@ allprojects {
version = '0.0.1-SNAPSHOT'
}
// dap-gateway, dap-was-lib, dap-was-oth, dap-was-sms에 공통 적용합니다.
// dat-gateway, dat-was-lib, dat-was-oth, dat-was-sms에 공통 적용합니다.
subprojects {
apply plugin: 'java'
apply plugin: 'io.spring.dependency-management'
@@ -81,17 +81,17 @@ subprojects {
}
// Tool 이름 중복 검사 프로그램이 포함된 공통 라이브러리 모듈입니다.
def toolCoreProject = project(':dap-was-lib')
def toolCoreProject = project(':dat-was-lib')
// 전체 Tool Pod의 @McpTool(name) 중복을 배포 산출물 생성 전에 차단합니다.
tasks.register('validateMcpToolNames', JavaExec) {
group = 'verification'
description = 'Checks duplicate @McpTool names across all Tool modules before packaging.'
// 검사 Runner를 실행하기 전에 dap-was-lib 클래스를 먼저 컴파일합니다.
// 검사 Runner를 실행하기 전에 dat-was-lib 클래스를 먼저 컴파일합니다.
dependsOn toolCoreProject.tasks.named('classes')
classpath = toolCoreProject.sourceSets.main.runtimeClasspath
mainClass.set('io.shinhanlife.dap.lib.validation.McpToolNameValidationRunner')
mainClass.set('io.shinhanlife.dat.lib.validation.McpToolNameValidationRunner')
args rootProject.projectDir.absolutePath
}
@@ -100,7 +100,7 @@ tasks.register('validateToolSchemaV17', JavaExec) {
description = 'Validates BC-DAB-STD-003 V17 definitions for every @McpTool.'
dependsOn toolCoreProject.tasks.named('classes')
classpath = toolCoreProject.sourceSets.main.runtimeClasspath
mainClass.set('io.shinhanlife.dap.lib.validation.ToolSchemaV17ValidationRunner')
mainClass.set('io.shinhanlife.dat.lib.validation.ToolSchemaV17ValidationRunner')
args rootProject.projectDir.absolutePath
}

View File

@@ -1,10 +1,10 @@
package io.shinhanlife.dap.report;
package io.shinhanlife.dat.report;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* @package io.shinhanlife.dap.report
* @package io.shinhanlife.dat.report
* @className ToolReportApplication
* @description 소스를 읽기 전용으로 분석하여 Excel 보고서를 생성하는 독립 애플리케이션
* @author 0986406

View File

@@ -1,10 +1,10 @@
package io.shinhanlife.dap.report.application;
package io.shinhanlife.dat.report.application;
import io.shinhanlife.dap.report.excel.ToolReportExcelWriter;
import io.shinhanlife.dap.report.model.ToolReportModel;
import io.shinhanlife.dap.report.model.ToolSummary;
import io.shinhanlife.dap.report.source.ToolDetailAnalyzer;
import io.shinhanlife.dap.report.source.ToolSourceDiscovery;
import io.shinhanlife.dat.report.excel.ToolReportExcelWriter;
import io.shinhanlife.dat.report.model.ToolReportModel;
import io.shinhanlife.dat.report.model.ToolSummary;
import io.shinhanlife.dat.report.source.ToolDetailAnalyzer;
import io.shinhanlife.dat.report.source.ToolSourceDiscovery;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

View File

@@ -1,4 +1,4 @@
package io.shinhanlife.dap.report.config;
package io.shinhanlife.dat.report.config;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

View File

@@ -1,4 +1,4 @@
package io.shinhanlife.dap.report.config;
package io.shinhanlife.dat.report.config;
import org.springframework.boot.context.properties.ConfigurationProperties;

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.report.excel;
package io.shinhanlife.dat.report.excel;
import io.shinhanlife.dap.report.model.FieldDefinition;
import io.shinhanlife.dap.report.model.ToolReportModel;
import io.shinhanlife.dap.report.model.ToolSummary;
import io.shinhanlife.dat.report.model.FieldDefinition;
import io.shinhanlife.dat.report.model.ToolReportModel;
import io.shinhanlife.dat.report.model.ToolSummary;
import java.awt.Color;
import java.io.ByteArrayOutputStream;
import java.time.LocalDateTime;

View File

@@ -1,4 +1,4 @@
package io.shinhanlife.dap.report.model;
package io.shinhanlife.dat.report.model;
/** DTO, JSON Schema 또는 원천 전문에서 수집한 필드 정의. */
public record FieldDefinition(

View File

@@ -1,4 +1,4 @@
package io.shinhanlife.dap.report.model;
package io.shinhanlife.dat.report.model;
import java.util.List;

View File

@@ -1,4 +1,4 @@
package io.shinhanlife.dap.report.model;
package io.shinhanlife.dat.report.model;
import java.util.List;

View File

@@ -1,4 +1,4 @@
package io.shinhanlife.dap.report.model;
package io.shinhanlife.dat.report.model;
/** UI 선택 목록과 보고서 기본정보에 사용하는 툴 요약. */
public record ToolSummary(

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.report.presentation;
package io.shinhanlife.dat.report.presentation;
import io.shinhanlife.dap.report.application.ToolReportService;
import io.shinhanlife.dap.report.config.ReportProperties;
import io.shinhanlife.dap.report.model.ToolReportRequest;
import io.shinhanlife.dat.report.application.ToolReportService;
import io.shinhanlife.dat.report.config.ReportProperties;
import io.shinhanlife.dat.report.model.ToolReportRequest;
import java.nio.charset.StandardCharsets;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

View File

@@ -1,4 +1,4 @@
package io.shinhanlife.dap.report.source;
package io.shinhanlife.dat.report.source;
import com.github.javaparser.ast.NodeList;
import com.github.javaparser.ast.expr.AnnotationExpr;

View File

@@ -1,4 +1,4 @@
package io.shinhanlife.dap.report.source;
package io.shinhanlife.dat.report.source;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
@@ -8,9 +8,9 @@ import com.github.javaparser.ast.CompilationUnit;
import com.github.javaparser.ast.body.FieldDeclaration;
import com.github.javaparser.ast.body.TypeDeclaration;
import com.github.javaparser.ast.expr.AnnotationExpr;
import io.shinhanlife.dap.report.model.FieldDefinition;
import io.shinhanlife.dap.report.model.ToolReportModel;
import io.shinhanlife.dap.report.model.ToolSummary;
import io.shinhanlife.dat.report.model.FieldDefinition;
import io.shinhanlife.dat.report.model.ToolReportModel;
import io.shinhanlife.dat.report.model.ToolSummary;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;

View File

@@ -1,4 +1,4 @@
package io.shinhanlife.dap.report.source;
package io.shinhanlife.dat.report.source;
import com.github.javaparser.StaticJavaParser;
import com.github.javaparser.ast.CompilationUnit;
@@ -7,8 +7,8 @@ import com.github.javaparser.ast.expr.AnnotationExpr;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory;
import io.shinhanlife.dap.report.config.ReportProperties;
import io.shinhanlife.dap.report.model.ToolSummary;
import io.shinhanlife.dat.report.config.ReportProperties;
import io.shinhanlife.dat.report.model.ToolSummary;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
@@ -137,7 +137,7 @@ public class ToolSourceDiscovery {
Path candidate = configuredPath;
while (candidate != null) {
if (Files.isRegularFile(candidate.resolve("settings.gradle"))
&& Files.isDirectory(candidate.resolve("dap-was-lib"))) {
&& Files.isDirectory(candidate.resolve("dat-was-lib"))) {
return candidate;
}
candidate = candidate.getParent();

View File

@@ -1,10 +1,10 @@
package io.shinhanlife.dap.report.excel;
package io.shinhanlife.dat.report.excel;
import static org.assertj.core.api.Assertions.assertThat;
import io.shinhanlife.dap.report.model.FieldDefinition;
import io.shinhanlife.dap.report.model.ToolReportModel;
import io.shinhanlife.dap.report.model.ToolSummary;
import io.shinhanlife.dat.report.model.FieldDefinition;
import io.shinhanlife.dat.report.model.ToolReportModel;
import io.shinhanlife.dat.report.model.ToolSummary;
import java.io.ByteArrayInputStream;
import java.util.List;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.report.source;
package io.shinhanlife.dat.report.source;
import static org.assertj.core.api.Assertions.assertThat;
import io.shinhanlife.dap.report.config.ReportProperties;
import io.shinhanlife.dat.report.config.ReportProperties;
import java.nio.file.Path;
import org.junit.jupiter.api.Test;

View File

@@ -1,14 +0,0 @@
package io.shinhanlife.dap.mcc.biz.cmm.converter;
import io.shinhanlife.dap.mcc.biz.cmm.dto.ClaimSearchRequest;
import io.shinhanlife.dap.mcc.biz.cmm.dto.ClaimSearchResponse;
import io.shinhanlife.dap.mcc.infra.itrf.mci.ncla.io.CLCNNB00001_I;
import io.shinhanlife.dap.mcc.infra.itrf.mci.ncla.io.CLCNNB00001_O;
import org.mapstruct.Mapper;
@Mapper(componentModel = "spring")
public interface ClaimSearchConverter {
CLCNNB00001_I toLegacyRequest(ClaimSearchRequest request);
ClaimSearchRequest toRequest(CLCNNB00001_I mciRequest);
ClaimSearchResponse toResponse(CLCNNB00001_O mciRes);
}

View File

@@ -5,7 +5,7 @@ plugins {
dependencies {
// Tool Registry, MCP , /Schema .
implementation project(':dap-was-lib')
implementation project(':dat-was-lib')
// Gateway REST API와 HTTP .
implementation 'org.springframework.boot:spring-boot-starter-web'

View File

@@ -1,9 +1,9 @@
package io.shinhanlife.dap.mcg;
package io.shinhanlife.dat.mcg;
/**
* @package io.shinhanlife.dap.mcg
* @className DapGatewayApplication
* @package io.shinhanlife.dat.mcg
* @className DatGatewayApplication
* @description AX HUB 시스템 처리 클래스
* @author 0986406
* @create 2026.09.01
@@ -21,12 +21,12 @@ import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableScheduling;
@SpringBootApplication(scanBasePackages = {"io.shinhanlife.dap.mcg", "io.shinhanlife.dap.lib.mcp", "io.shinhanlife.dap.lib.config"})
@ConfigurationPropertiesScan(basePackages = {"io.shinhanlife.dap.mcg", "io.shinhanlife.dap.lib.mcp", "io.shinhanlife.dap.lib.config"})
@SpringBootApplication(scanBasePackages = {"io.shinhanlife.dat.mcg", "io.shinhanlife.dat.lib.mcp", "io.shinhanlife.dat.lib.config"})
@ConfigurationPropertiesScan(basePackages = {"io.shinhanlife.dat.mcg", "io.shinhanlife.dat.lib.mcp", "io.shinhanlife.dat.lib.config"})
@EnableCaching
@EnableScheduling
public class DapGatewayApplication {
public class DatGatewayApplication {
public static void main(String[] args) {
SpringApplication.run(DapGatewayApplication.class, args);
SpringApplication.run(DatGatewayApplication.class, args);
}
}

View File

@@ -1,4 +1,4 @@
package io.shinhanlife.dap.mcg.aop;
package io.shinhanlife.dat.mcg.aop;
import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;
@@ -8,7 +8,7 @@ import org.springframework.stereotype.Component;
import org.springframework.util.StopWatch;
/**
* @package io.shinhanlife.dap.mcg.aop
* @package io.shinhanlife.dat.mcg.aop
* @className GatewayLoggingAspect
* @description AX HUB 시스템 처리 클래스
* @author 0986406
@@ -27,7 +27,7 @@ import org.springframework.util.StopWatch;
public class GatewayLoggingAspect {
// gateway의 controller 패키지 하위의 모든 클래스/메서드 실행 작동
@Around("execution(* io.shinhanlife.dap.mcg.presentation..*(..))")
@Around("execution(* io.shinhanlife.dat.mcg.presentation..*(..))")
public Object logGatewayExecutionTime(ProceedingJoinPoint joinPoint) throws Throwable {
String targetMethod = joinPoint.getSignature().toShortString();
StopWatch stopWatch = new StopWatch();

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg.audit;
package io.shinhanlife.dat.mcg.audit;
/**
* @package io.shinhanlife.dap.mcg.audit
* @package io.shinhanlife.dat.mcg.audit
* @className AuditLogService
* @description AX HUB 시스템 처리 클래스
* @author 0986406
@@ -15,8 +15,8 @@ package io.shinhanlife.dap.mcg.audit;
*
* </pre>
*/
import io.shinhanlife.dap.mcg.config.McpGatewayProperties;
import io.shinhanlife.dap.mcg.security.McpRequestContext;
import io.shinhanlife.dat.mcg.config.McpGatewayProperties;
import io.shinhanlife.dat.mcg.security.McpRequestContext;
import com.fasterxml.jackson.databind.JsonNode;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg.config;
package io.shinhanlife.dat.mcg.config;
/**
* @package io.shinhanlife.dap.mcg.config
* @package io.shinhanlife.dat.mcg.config
* @className AgentResponseBudgetProperties
* @description AX HUB 시스템 처리 클래스
* @author 0986406

View File

@@ -1,4 +1,4 @@
package io.shinhanlife.dap.mcg.config;
package io.shinhanlife.dat.mcg.config;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
@@ -8,7 +8,7 @@ import java.util.HashMap;
import java.util.Map;
/**
* @package io.shinhanlife.dap.mcg.config
* @package io.shinhanlife.dat.mcg.config
* @className GatewayFallbackProperties
* @description AX HUB 시스템 처리 클래스
* @author 0986406

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg.config;
package io.shinhanlife.dat.mcg.config;
/**
* @package io.shinhanlife.dap.mcg.config
* @package io.shinhanlife.dat.mcg.config
* @className McpGatewayProperties
* @description AX HUB 시스템 처리 클래스
* @author 0986406

View File

@@ -1,6 +1,6 @@
package io.shinhanlife.dap.mcg.document;
package io.shinhanlife.dat.mcg.document;
import io.shinhanlife.dap.mcc.dto.ToolMetadata;
import io.shinhanlife.dat.mcc.dto.ToolMetadata;
public record DocumentGenerationRequest(
ToolMetadata tool,

View File

@@ -1,4 +1,4 @@
package io.shinhanlife.dap.mcg.document;
package io.shinhanlife.dat.mcg.document;
import java.nio.charset.StandardCharsets;
import java.util.Map;

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg.document;
package io.shinhanlife.dat.mcg.document;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.shinhanlife.dap.mcc.dto.ToolMetadata;
import io.shinhanlife.dat.mcc.dto.ToolMetadata;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;

View File

@@ -1,4 +1,4 @@
package io.shinhanlife.dap.mcg.document;
package io.shinhanlife.dat.mcg.document;
public record GeneratedDocument(String fileName, byte[] content) {
}

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg.guardrail;
package io.shinhanlife.dat.mcg.guardrail;
/**
* @package io.shinhanlife.dap.mcg.guardrail
* @package io.shinhanlife.dat.mcg.guardrail
* @className GuardrailService
* @description AX HUB 시스템 처리 클래스
* @author 0986406
@@ -15,9 +15,9 @@ package io.shinhanlife.dap.mcg.guardrail;
*
* </pre>
*/
import io.shinhanlife.dap.mcg.resilience.FailureType;
import io.shinhanlife.dap.mcg.resilience.ToolExecutionException;
import io.shinhanlife.dap.mcc.dto.ToolMetadata;
import io.shinhanlife.dat.mcg.resilience.FailureType;
import io.shinhanlife.dat.mcg.resilience.ToolExecutionException;
import io.shinhanlife.dat.mcc.dto.ToolMetadata;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import org.springframework.stereotype.Service;

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg.guardrail;
package io.shinhanlife.dat.mcg.guardrail;
/**
* @package io.shinhanlife.dap.mcg.guardrail
* @package io.shinhanlife.dat.mcg.guardrail
* @className ToolResponseGuardrailService
* @description AX HUB 시스템 처리 클래스
* @author 0986406
@@ -15,9 +15,9 @@ package io.shinhanlife.dap.mcg.guardrail;
*
* </pre>
*/
import io.shinhanlife.dap.mcg.resilience.FailureType;
import io.shinhanlife.dap.mcg.resilience.ToolExecutionException;
import io.shinhanlife.dap.mcc.dto.ToolMetadata;
import io.shinhanlife.dat.mcg.resilience.FailureType;
import io.shinhanlife.dat.mcg.resilience.ToolExecutionException;
import io.shinhanlife.dat.mcc.dto.ToolMetadata;
import org.springframework.stereotype.Service;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

View File

@@ -1,4 +1,4 @@
package io.shinhanlife.dap.mcg.messaging;
package io.shinhanlife.dat.mcg.messaging;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
@@ -10,7 +10,7 @@ import java.util.Map;
import java.util.UUID;
/**
* @package io.shinhanlife.dap.mcg.messaging
* @package io.shinhanlife.dat.mcg.messaging
* @className KafkaProducerService
* @description AX HUB 시스템 처리 클래스
* @author 0986406

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg.presentation;
package io.shinhanlife.dat.mcg.presentation;
/**
* @package io.shinhanlife.dap.mcg.presentation
* @package io.shinhanlife.dat.mcg.presentation
* @className ChatController
* @description AX HUB 시스템 처리 클래스
* @author 0986406
@@ -15,10 +15,10 @@ package io.shinhanlife.dap.mcg.presentation;
*
* </pre>
*/
import io.shinhanlife.dap.lib.adapter.dto.JsonRpcResponse;
import io.shinhanlife.dap.mcc.dto.ToolMetadata;
import io.shinhanlife.dap.mcg.registry.InMemoryRegistryService;
import io.shinhanlife.dap.mcg.service.ExecuteService;
import io.shinhanlife.dat.lib.adapter.dto.JsonRpcResponse;
import io.shinhanlife.dat.mcc.dto.ToolMetadata;
import io.shinhanlife.dat.mcg.registry.InMemoryRegistryService;
import io.shinhanlife.dat.mcg.service.ExecuteService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.ai.chat.client.ChatClient;

View File

@@ -1,4 +1,4 @@
package io.shinhanlife.dap.mcg.presentation;
package io.shinhanlife.dat.mcg.presentation;
import java.util.List;

View File

@@ -1,6 +1,6 @@
package io.shinhanlife.dap.mcg.presentation;
package io.shinhanlife.dat.mcg.presentation;
import io.shinhanlife.dap.mcg.service.KillSwitchService;
import io.shinhanlife.dat.mcg.service.KillSwitchService;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
@@ -8,7 +8,7 @@ import org.springframework.web.bind.annotation.*;
import java.util.Map;
/**
* @package io.shinhanlife.dap.mcg.presentation
* @package io.shinhanlife.dat.mcg.presentation
* @className KillSwitchController
* @description AX HUB 시스템 처리 클래스
* @author 0986406

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg.presentation;
package io.shinhanlife.dat.mcg.presentation;
/**
* @package io.shinhanlife.dap.mcg.presentation
* @package io.shinhanlife.dat.mcg.presentation
* @className McpRouterController
* @description AX HUB 시스템 처리 클래스
* @author 0986406
@@ -16,15 +16,15 @@ package io.shinhanlife.dap.mcg.presentation;
* </pre>
*/
import com.fasterxml.jackson.databind.ObjectMapper;
import io.shinhanlife.dap.lib.adapter.dto.JsonRpcRequest;
import io.shinhanlife.dap.lib.adapter.dto.JsonRpcResponse;
import io.shinhanlife.dap.lib.adapter.dto.Params;
import io.shinhanlife.dap.mcg.config.GatewayFallbackProperties;
import io.shinhanlife.dap.mcg.config.McpGatewayProperties;
import io.shinhanlife.dap.mcc.dto.ToolMetadata;
import io.shinhanlife.dap.mcg.registry.InMemoryRegistryService;
import io.shinhanlife.dap.mcg.service.ExecuteService;
import io.shinhanlife.dap.lib.mcp.security.SecurityProperties;
import io.shinhanlife.dat.lib.adapter.dto.JsonRpcRequest;
import io.shinhanlife.dat.lib.adapter.dto.JsonRpcResponse;
import io.shinhanlife.dat.lib.adapter.dto.Params;
import io.shinhanlife.dat.mcg.config.GatewayFallbackProperties;
import io.shinhanlife.dat.mcg.config.McpGatewayProperties;
import io.shinhanlife.dat.mcc.dto.ToolMetadata;
import io.shinhanlife.dat.mcg.registry.InMemoryRegistryService;
import io.shinhanlife.dat.mcg.service.ExecuteService;
import io.shinhanlife.dat.lib.mcp.security.SecurityProperties;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import java.time.LocalDateTime;

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg.presentation;
package io.shinhanlife.dat.mcg.presentation;
/**
* @package io.shinhanlife.dap.mcg.presentation
* @package io.shinhanlife.dat.mcg.presentation
* @className ScaffoldingController
* @description AX HUB 시스템 처리 클래스
* @author 0986406
@@ -15,9 +15,9 @@ package io.shinhanlife.dap.mcg.presentation;
*
* </pre>
*/
import io.shinhanlife.dap.lib.util.PodScaffolder;
import io.shinhanlife.dap.lib.util.ToolScaffolder;
import io.shinhanlife.dap.lib.util.ToolSourceUpdater;
import io.shinhanlife.dat.lib.util.PodScaffolder;
import io.shinhanlife.dat.lib.util.ToolScaffolder;
import io.shinhanlife.dat.lib.util.ToolSourceUpdater;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.File;
@@ -58,16 +58,16 @@ public class ScaffoldingController {
@PostMapping("/pod")
public String scaffoldPod(@RequestBody Map<String, String> req) {
try {
String moduleName = req.getOrDefault("moduleName", "dap-was-cus");
if (!moduleName.startsWith("dap-was-")) moduleName = "dap-was-" + moduleName;
String moduleName = req.getOrDefault("moduleName", "dat-was-cus");
if (!moduleName.startsWith("dat-was-")) moduleName = "dat-was-" + moduleName;
String port = req.getOrDefault("port", "8085");
String shortName = moduleName.replace("dap-was-", "").replace("-", "");
String shortName = moduleName.replace("dat-was-", "").replace("-", "");
String author = req.get("author");
if (author == null || author.trim().isEmpty()) author = System.getProperty("user.name");
String date = req.get("date");
if (date == null || date.trim().isEmpty()) date = LocalDate.now().format(DateTimeFormatter.ofPattern("yyyy.MM.dd"));
String defaultWorkspace = "c:\\eGovFrameDev-4.3.1-64bit\\workspace-egov\\dap-was-dapmt";
String defaultWorkspace = "c:\\eGovFrameDev-4.3.1-64bit\\workspace-egov\\dat-was-datmt";
String workspacePath = req.getOrDefault("workspacePath", defaultWorkspace);
if (workspacePath.trim().isEmpty()) {
workspacePath = defaultWorkspace;
@@ -108,7 +108,7 @@ public class ScaffoldingController {
String description = req.get("description");
String group = req.getOrDefault("categoryKey", req.getOrDefault("group", "COMMON"));
String routingType = req.getOrDefault("routingType", "HTTP");
String moduleName = req.getOrDefault("moduleName", "dap-was-cus");
String moduleName = req.getOrDefault("moduleName", "dat-was-cus");
String author = req.get("author");
if (author == null || author.trim().isEmpty()) author = System.getProperty("user.name");
String date = req.get("date");
@@ -133,7 +133,7 @@ public class ScaffoldingController {
parseDelimited(req.get("tags")),
req.get("ownerOrg"));
String defaultWorkspace = "c:\\eGovFrameDev-4.3.1-64bit\\workspace-egov\\dap-was-dapmt";
String defaultWorkspace = "c:\\eGovFrameDev-4.3.1-64bit\\workspace-egov\\dat-was-datmt";
String workspacePath = req.getOrDefault("workspacePath", defaultWorkspace);
if (workspacePath.trim().isEmpty()) {
workspacePath = defaultWorkspace;
@@ -156,13 +156,13 @@ public class ScaffoldingController {
throw new IllegalArgumentException("UseCase name must be PascalCase.");
}
String moduleName = request.moduleName() == null || request.moduleName().isBlank()
? "dap-was-cus" : request.moduleName().trim();
? "dat-was-cus" : request.moduleName().trim();
String author = request.author() == null || request.author().isBlank()
? System.getProperty("user.name") : request.author().trim();
String date = request.date() == null || request.date().isBlank()
? LocalDate.now().format(DateTimeFormatter.ofPattern("yyyy.MM.dd")) : request.date().trim();
String workspacePath = request.workspacePath() != null && !request.workspacePath().isBlank()
? request.workspacePath().trim() : "c:\\eGovFrameDev-4.3.1-64bit\\workspace-egov\\dap-was-dapmt";
? request.workspacePath().trim() : "c:\\eGovFrameDev-4.3.1-64bit\\workspace-egov\\dat-was-datmt";
System.setProperty("AXHUB_SOURCE_DIR", workspacePath);
return ToolScaffolder.scaffoldUseCase(request.useCaseName().trim(), moduleName, author, date,
request.tools() == null ? List.of() : request.tools());
@@ -173,7 +173,7 @@ public class ScaffoldingController {
@GetMapping("/usecases")
public List<String> listUseCases(@RequestParam String moduleName, @RequestParam String categoryKey, @RequestParam(required = false) String workspacePath) {
if (moduleName == null || !moduleName.matches("^dap-was-[a-z0-9-]+$")) {
if (moduleName == null || !moduleName.matches("^dat-was-[a-z0-9-]+$")) {
throw new IllegalArgumentException("Invalid target module.");
}
if (categoryKey == null || !categoryKey.matches("^[a-z0-9]{3}$")) {
@@ -182,7 +182,7 @@ public class ScaffoldingController {
String sourceDir = (workspacePath != null && !workspacePath.isBlank()) ? workspacePath : System.getProperty("AXHUB_SOURCE_DIR");
if (sourceDir == null || sourceDir.isBlank()) sourceDir = System.getenv("AXHUB_SOURCE_DIR");
if (sourceDir == null || sourceDir.isBlank()) sourceDir = System.getProperty("user.dir");
File useCaseDir = new File(sourceDir, moduleName + "/src/main/java/io/shinhanlife/dap/mcc/biz/"
File useCaseDir = new File(sourceDir, moduleName + "/src/main/java/io/shinhanlife/dat/mcc/biz/"
+ categoryKey + "/usecase");
File[] files = useCaseDir.listFiles(file -> file.isFile() && file.getName().endsWith("UseCase.java"));
if (files == null) return List.of();
@@ -193,13 +193,13 @@ public class ScaffoldingController {
@GetMapping("/categories")
public List<String> listCategories(@RequestParam String moduleName, @RequestParam(required = false) String workspacePath) {
if (moduleName == null || !moduleName.matches("^dap-was-[a-z0-9-]+$")) {
if (moduleName == null || !moduleName.matches("^dat-was-[a-z0-9-]+$")) {
throw new IllegalArgumentException("Invalid target module.");
}
String sourceDir = (workspacePath != null && !workspacePath.isBlank()) ? workspacePath : System.getProperty("AXHUB_SOURCE_DIR");
if (sourceDir == null || sourceDir.isBlank()) sourceDir = System.getenv("AXHUB_SOURCE_DIR");
if (sourceDir == null || sourceDir.isBlank()) sourceDir = System.getProperty("user.dir");
File bizDir = new File(sourceDir, moduleName + "/src/main/java/io/shinhanlife/dap/mcc/biz");
File bizDir = new File(sourceDir, moduleName + "/src/main/java/io/shinhanlife/dat/mcc/biz");
File[] dirs = bizDir.listFiles(File::isDirectory);
if (dirs == null) return List.of();
return Arrays.stream(dirs).map(File::getName)
@@ -300,15 +300,15 @@ public class ScaffoldingController {
if (sourceDir == null) sourceDir = System.getProperty("user.dir");
File dir = new File(sourceDir);
File[] files = dir.listFiles(f -> f.isDirectory() && f.getName().startsWith("dap-was-") && !f.getName().equals("dap-was-lib"));
File[] files = dir.listFiles(f -> f.isDirectory() && f.getName().startsWith("dat-was-") && !f.getName().equals("dat-was-lib"));
if (files == null || files.length == 0) {
return List.of("dap-was-cus", "dap-was-sal", "dap-was-pro", "dap-was-sys");
return List.of("dat-was-cus", "dat-was-sal", "dat-was-pro", "dat-was-sys");
}
return Arrays.stream(files).map(File::getName).sorted().collect(Collectors.toList());
} catch (Exception e) {
return List.of("dap-was-cus", "dap-was-sal", "dap-was-pro", "dap-was-sys");
return List.of("dat-was-cus", "dat-was-sal", "dat-was-pro", "dat-was-sys");
}
}

View File

@@ -1,6 +1,6 @@
package io.shinhanlife.dap.mcg.presentation;
package io.shinhanlife.dat.mcg.presentation;
import io.shinhanlife.dap.mcc.dto.ToolMetadata;
import io.shinhanlife.dat.mcc.dto.ToolMetadata;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;

View File

@@ -1,6 +1,6 @@
package io.shinhanlife.dap.mcg.registry;
package io.shinhanlife.dat.mcg.registry;
import io.shinhanlife.dap.mcc.dto.ToolMetadata;
import io.shinhanlife.dat.mcc.dto.ToolMetadata;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
@@ -12,7 +12,7 @@ import java.util.concurrent.ConcurrentHashMap;
import java.util.stream.Collectors;
/**
* @package io.shinhanlife.dap.mcg.registry
* @package io.shinhanlife.dat.mcg.registry
* @className InMemoryRegistryService
* @description AX HUB 인메모리 레지스트리
* @author 0986406

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg.resilience;
package io.shinhanlife.dat.mcg.resilience;
/**
* @package io.shinhanlife.dap.mcg.resilience
* @package io.shinhanlife.dat.mcg.resilience
* @className CircuitBreaker
* @description AX HUB 시스템 처리 클래스
* @author 0986406

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg.resilience;
package io.shinhanlife.dat.mcg.resilience;
/**
* @package io.shinhanlife.dap.mcg.resilience
* @package io.shinhanlife.dat.mcg.resilience
* @className CircuitBreakerMonitorController
* @description AX HUB 시스템 처리 클래스
* @author 0986406

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg.resilience;
package io.shinhanlife.dat.mcg.resilience;
/**
* @package io.shinhanlife.dap.mcg.resilience
* @package io.shinhanlife.dat.mcg.resilience
* @className CircuitBreakerService
* @description AX HUB 시스템 처리 클래스
* @author 0986406
@@ -15,7 +15,7 @@ package io.shinhanlife.dap.mcg.resilience;
*
* </pre>
*/
import io.shinhanlife.dap.mcg.config.McpGatewayProperties;
import io.shinhanlife.dat.mcg.config.McpGatewayProperties;
import org.springframework.stereotype.Service;
import java.time.Clock;

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg.resilience;
package io.shinhanlife.dat.mcg.resilience;
/**
* @package io.shinhanlife.dap.mcg.resilience
* @package io.shinhanlife.dat.mcg.resilience
* @className CircuitBreakerSnapshot
* @description AX HUB 시스템 처리 클래스
* @author 0986406

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg.resilience;
package io.shinhanlife.dat.mcg.resilience;
/**
* @package io.shinhanlife.dap.mcg.resilience
* @package io.shinhanlife.dat.mcg.resilience
* @className CircuitBreakerState
* @description AX HUB 시스템 처리 클래스
* @author 0986406

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg.resilience;
package io.shinhanlife.dat.mcg.resilience;
/**
* @package io.shinhanlife.dap.mcg.resilience
* @package io.shinhanlife.dat.mcg.resilience
* @className FailureType
* @description AX HUB 시스템 처리 클래스
* @author 0986406

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg.resilience;
package io.shinhanlife.dat.mcg.resilience;
/**
* @package io.shinhanlife.dap.mcg.resilience
* @package io.shinhanlife.dat.mcg.resilience
* @className RetryPolicy
* @description AX HUB 시스템 처리 클래스
* @author 0986406

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg.resilience;
package io.shinhanlife.dat.mcg.resilience;
/**
* @package io.shinhanlife.dap.mcg.resilience
* @package io.shinhanlife.dat.mcg.resilience
* @className ToolExecutionException
* @description AX HUB 시스템 처리 클래스
* @author 0986406

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg.security;
package io.shinhanlife.dat.mcg.security;
/**
* @package io.shinhanlife.dap.mcg.security
* @package io.shinhanlife.dat.mcg.security
* @className McpRequestContext
* @description AX HUB 시스템 처리 클래스
* @author 0986406

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg.security;
package io.shinhanlife.dat.mcg.security;
/**
* @package io.shinhanlife.dap.mcg.security
* @package io.shinhanlife.dat.mcg.security
* @className McpRequestContextResolver
* @description AX HUB 시스템 처리 클래스
* @author 0986406

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg.security;
package io.shinhanlife.dat.mcg.security;
/**
* @package io.shinhanlife.dap.mcg.security
* @package io.shinhanlife.dat.mcg.security
* @className ToolAuthorizationService
* @description AX HUB 시스템 처리 클래스
* @author 0986406
@@ -15,11 +15,11 @@ package io.shinhanlife.dap.mcg.security;
*
* </pre>
*/
import io.shinhanlife.dap.mcg.config.McpGatewayProperties;
import io.shinhanlife.dap.mcg.resilience.FailureType;
import io.shinhanlife.dap.mcg.resilience.ToolExecutionException;
import io.shinhanlife.dap.lib.dto.OperationType;
import io.shinhanlife.dap.mcc.dto.ToolMetadata;
import io.shinhanlife.dat.mcg.config.McpGatewayProperties;
import io.shinhanlife.dat.mcg.resilience.FailureType;
import io.shinhanlife.dat.mcg.resilience.ToolExecutionException;
import io.shinhanlife.dat.lib.dto.OperationType;
import io.shinhanlife.dat.mcc.dto.ToolMetadata;
import org.springframework.stereotype.Service;
import java.util.Set;

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg.service;
package io.shinhanlife.dat.mcg.service;
/**
* @package io.shinhanlife.dap.mcg.service
* @package io.shinhanlife.dat.mcg.service
* @className ExecuteService
* @description AX HUB 시스템 처리 클래스
* @author 0986406
@@ -17,20 +17,20 @@ package io.shinhanlife.dap.mcg.service;
*/
import java.util.HashMap;
import io.shinhanlife.dap.mcc.dto.ToolMetadata;
import io.shinhanlife.dap.mcg.resilience.FailureType;
import io.shinhanlife.dap.mcg.resilience.RetryPolicy;
import io.shinhanlife.dap.mcg.resilience.ToolExecutionException;
import io.shinhanlife.dap.lib.dto.OperationType;
import io.shinhanlife.dap.mcg.config.McpGatewayProperties;
import io.shinhanlife.dap.mcg.guardrail.GuardrailService;
import io.shinhanlife.dap.mcg.security.McpRequestContext;
import io.shinhanlife.dap.mcg.security.McpRequestContextResolver;
import io.shinhanlife.dap.mcg.audit.AuditLogService;
import io.shinhanlife.dap.mcg.resilience.CircuitBreaker;
import io.shinhanlife.dap.mcg.resilience.CircuitBreakerService;
import io.shinhanlife.dap.mcg.security.ToolAuthorizationService;
import io.shinhanlife.dap.mcg.trace.InMemoryToolTraceService;
import io.shinhanlife.dat.mcc.dto.ToolMetadata;
import io.shinhanlife.dat.mcg.resilience.FailureType;
import io.shinhanlife.dat.mcg.resilience.RetryPolicy;
import io.shinhanlife.dat.mcg.resilience.ToolExecutionException;
import io.shinhanlife.dat.lib.dto.OperationType;
import io.shinhanlife.dat.mcg.config.McpGatewayProperties;
import io.shinhanlife.dat.mcg.guardrail.GuardrailService;
import io.shinhanlife.dat.mcg.security.McpRequestContext;
import io.shinhanlife.dat.mcg.security.McpRequestContextResolver;
import io.shinhanlife.dat.mcg.audit.AuditLogService;
import io.shinhanlife.dat.mcg.resilience.CircuitBreaker;
import io.shinhanlife.dat.mcg.resilience.CircuitBreakerService;
import io.shinhanlife.dat.mcg.security.ToolAuthorizationService;
import io.shinhanlife.dat.mcg.trace.InMemoryToolTraceService;
import jakarta.annotation.PreDestroy;
import java.util.Map;
@@ -43,12 +43,12 @@ import org.springframework.web.client.RestClient;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;
import io.shinhanlife.dap.mcg.tool.large.LargeToolResponseService;
import io.shinhanlife.dap.mcg.tool.large.PaginationRequestValidator;
import io.shinhanlife.dap.mcg.tool.result.ToolExecutionResultFormatter;
import io.shinhanlife.dap.mcg.tool.result.ToolExecutionResult;
import io.shinhanlife.dap.mcg.guardrail.ToolResponseGuardrailService;
import io.shinhanlife.dap.mcg.transport.ToolInvoker;
import io.shinhanlife.dat.mcg.tool.large.LargeToolResponseService;
import io.shinhanlife.dat.mcg.tool.large.PaginationRequestValidator;
import io.shinhanlife.dat.mcg.tool.result.ToolExecutionResultFormatter;
import io.shinhanlife.dat.mcg.tool.result.ToolExecutionResult;
import io.shinhanlife.dat.mcg.guardrail.ToolResponseGuardrailService;
import io.shinhanlife.dat.mcg.transport.ToolInvoker;
@Slf4j
@Service

View File

@@ -1,4 +1,4 @@
package io.shinhanlife.dap.mcg.service;
package io.shinhanlife.dat.mcg.service;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
@@ -8,7 +8,7 @@ import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* @package io.shinhanlife.dap.mcg.service
* @package io.shinhanlife.dat.mcg.service
* @className KillSwitchService
* @description AX HUB 시스템 스위치 서비스 (인메모리)
* @author 0986406

View File

@@ -1,9 +1,9 @@
package io.shinhanlife.dap.mcg.service;
package io.shinhanlife.dat.mcg.service;
import io.shinhanlife.dap.lib.mcp.security.SecurityProperties;
import io.shinhanlife.dap.mcg.registry.InMemoryRegistryService;
import io.shinhanlife.dap.mcc.dto.ToolMetadata;
import io.shinhanlife.dap.mcg.config.GatewayFallbackProperties;
import io.shinhanlife.dat.lib.mcp.security.SecurityProperties;
import io.shinhanlife.dat.mcg.registry.InMemoryRegistryService;
import io.shinhanlife.dat.mcc.dto.ToolMetadata;
import io.shinhanlife.dat.mcg.config.GatewayFallbackProperties;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
@@ -12,7 +12,7 @@ import java.util.List;
import java.util.Map;
/**
* @package io.shinhanlife.dap.mcg.service
* @package io.shinhanlife.dat.mcg.service
* @className ToolPlanner
* @description AX HUB ?<EFBFBD>??처리 ?<EFBFBD>??
* @author 0986406

View File

@@ -1,7 +1,7 @@
package io.shinhanlife.dap.mcg.sync;
package io.shinhanlife.dat.mcg.sync;
/**
* @package io.shinhanlife.dap.mcg.sync
* @package io.shinhanlife.dat.mcg.sync
* @className CustomWebMvcSseServerTransportProvider
* @description AX HUB MCP Gateway SSE 전송 제공자 - SSE 기반의 MCP 서버 트랜스포트를 구현하는 클래스
* @author 0986406

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg.sync;
package io.shinhanlife.dat.mcg.sync;
/**
* @package io.shinhanlife.dap.mcg.sync
* @package io.shinhanlife.dat.mcg.sync
* @className DynamicMcpController
* @description AX HUB 시스템 처리 클래스
* @author 0986406
@@ -26,7 +26,7 @@ import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;
import io.shinhanlife.dap.mcg.sync.CustomWebMvcSseServerTransportProvider;
import io.shinhanlife.dat.mcg.sync.CustomWebMvcSseServerTransportProvider;
@RestController
public class DynamicMcpController {

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg.sync;
package io.shinhanlife.dat.mcg.sync;
/**
* @package io.shinhanlife.dap.mcg.sync
* @package io.shinhanlife.dat.mcg.sync
* @className DynamicMcpServerManager
* @description AX HUB 시스템 처리 클래스
* @author 0986406
@@ -18,8 +18,8 @@ package io.shinhanlife.dap.mcg.sync;
import io.modelcontextprotocol.spec.McpSchema.ServerCapabilities;
import io.modelcontextprotocol.server.McpServer;
import io.modelcontextprotocol.server.McpSyncServer;
import io.shinhanlife.dap.mcc.dto.ToolMetadata;
import io.shinhanlife.dap.mcg.sync.CustomWebMvcSseServerTransportProvider;
import io.shinhanlife.dat.mcc.dto.ToolMetadata;
import io.shinhanlife.dat.mcg.sync.CustomWebMvcSseServerTransportProvider;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
@@ -75,7 +75,7 @@ public class DynamicMcpServerManager {
CustomWebMvcSseServerTransportProvider transport = new CustomWebMvcSseServerTransportProvider(ssePath, msgPath, objectMapper);
McpSyncServer newServer = McpServer.sync(transport)
.serverInfo("dap-was-" + key, "1.0.0")
.serverInfo("dat-was-" + key, "1.0.0")
.capabilities(ServerCapabilities.builder().tools(true).build())
.build();

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg.sync;
package io.shinhanlife.dat.mcg.sync;
/**
* @package io.shinhanlife.dap.mcg.sync
* @package io.shinhanlife.dat.mcg.sync
* @className RegistryMcpToolSpecificationFactory
* @description AX HUB 시스템 처리 클래스
* @author 0986406
@@ -15,12 +15,12 @@ package io.shinhanlife.dap.mcg.sync;
*
* </pre>
*/
import io.shinhanlife.dap.mcc.dto.ToolMetadata;
import io.shinhanlife.dap.lib.mcp.ToolMetadataMcpMapper;
import io.shinhanlife.dap.mcg.service.ExecuteService;
import io.shinhanlife.dat.mcc.dto.ToolMetadata;
import io.shinhanlife.dat.lib.mcp.ToolMetadataMcpMapper;
import io.shinhanlife.dat.mcg.service.ExecuteService;
import io.modelcontextprotocol.server.McpServerFeatures;
import io.modelcontextprotocol.spec.McpSchema;
import io.shinhanlife.dap.mcg.tool.result.ToolExecutionResult;
import io.shinhanlife.dat.mcg.tool.result.ToolExecutionResult;
import org.springframework.stereotype.Component;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;

View File

@@ -1,7 +1,7 @@
package io.shinhanlife.dap.mcg.sync;
package io.shinhanlife.dat.mcg.sync;
import io.shinhanlife.dap.mcc.dto.ToolMetadata;
import io.shinhanlife.dap.mcg.registry.InMemoryRegistryService;
import io.shinhanlife.dat.mcc.dto.ToolMetadata;
import io.shinhanlife.dat.mcg.registry.InMemoryRegistryService;
import io.modelcontextprotocol.server.McpSyncServer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -19,7 +19,7 @@ import java.util.concurrent.locks.ReentrantLock;
import java.util.stream.Collectors;
/**
* @package io.shinhanlife.dap.mcg.sync
* @package io.shinhanlife.dat.mcg.sync
* @className RegistryMcpToolSynchronizer
* @description AX HUB 시스템 처리 클래스
* @author 0986406

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg.tool.large;
package io.shinhanlife.dat.mcg.tool.large;
/**
* @package io.shinhanlife.dap.mcg.tool.large
* @package io.shinhanlife.dat.mcg.tool.large
* @className AgentResponseBudgetService
* @description AX HUB 시스템 처리 클래스
* @author 0986406
@@ -18,7 +18,7 @@ package io.shinhanlife.dap.mcg.tool.large;
import java.util.Iterator;
import java.util.Map;
import io.shinhanlife.dap.mcg.config.AgentResponseBudgetProperties;
import io.shinhanlife.dat.mcg.config.AgentResponseBudgetProperties;
import org.springframework.stereotype.Service;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg.tool.large;
package io.shinhanlife.dat.mcg.tool.large;
/**
* @package io.shinhanlife.dap.mcg.tool.large
* @package io.shinhanlife.dat.mcg.tool.large
* @className LargeToolResponseService
* @description AX HUB 시스템 처리 클래스
* @author 0986406
@@ -17,9 +17,9 @@ package io.shinhanlife.dap.mcg.tool.large;
*/
import java.util.Iterator;
import io.shinhanlife.dap.mcg.config.McpGatewayProperties;
import io.shinhanlife.dap.mcg.resilience.FailureType;
import io.shinhanlife.dap.mcg.resilience.ToolExecutionException;
import io.shinhanlife.dat.mcg.config.McpGatewayProperties;
import io.shinhanlife.dat.mcg.resilience.FailureType;
import io.shinhanlife.dat.mcg.resilience.ToolExecutionException;
import org.springframework.stereotype.Service;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg.tool.large;
package io.shinhanlife.dat.mcg.tool.large;
/**
* @package io.shinhanlife.dap.mcg.tool.large
* @package io.shinhanlife.dat.mcg.tool.large
* @className PaginationRequestValidator
* @description AX HUB 시스템 처리 클래스
* @author 0986406
@@ -15,10 +15,10 @@ package io.shinhanlife.dap.mcg.tool.large;
*
* </pre>
*/
import io.shinhanlife.dap.mcc.dto.ToolMetadata;
import io.shinhanlife.dap.mcg.config.McpGatewayProperties;
import io.shinhanlife.dap.mcg.resilience.FailureType;
import io.shinhanlife.dap.mcg.resilience.ToolExecutionException;
import io.shinhanlife.dat.mcc.dto.ToolMetadata;
import io.shinhanlife.dat.mcg.config.McpGatewayProperties;
import io.shinhanlife.dat.mcg.resilience.FailureType;
import io.shinhanlife.dat.mcg.resilience.ToolExecutionException;
import org.springframework.stereotype.Component;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg.tool.result;
package io.shinhanlife.dat.mcg.tool.result;
/**
* @package io.shinhanlife.dap.mcg.tool.result
* @package io.shinhanlife.dat.mcg.tool.result
* @className ToolExecutionResult
* @description AX HUB 시스템 처리 클래스
* @author 0986406

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg.tool.result;
package io.shinhanlife.dat.mcg.tool.result;
/**
* @package io.shinhanlife.dap.mcg.tool.result
* @package io.shinhanlife.dat.mcg.tool.result
* @className ToolExecutionResultFormatter
* @description AX HUB 시스템 처리 클래스
* @author 0986406

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg.trace;
package io.shinhanlife.dat.mcg.trace;
import io.shinhanlife.dap.mcg.config.McpGatewayProperties;
import io.shinhanlife.dap.mcg.security.McpRequestContext;
import io.shinhanlife.dap.mcc.dto.ToolMetadata;
import io.shinhanlife.dat.mcg.config.McpGatewayProperties;
import io.shinhanlife.dat.mcg.security.McpRequestContext;
import io.shinhanlife.dat.mcc.dto.ToolMetadata;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
@@ -21,7 +21,7 @@ import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* @package io.shinhanlife.dap.mcg.trace
* @package io.shinhanlife.dat.mcg.trace
* @className InMemoryToolTraceService
* @description AX HUB 시스템 인메모리 트레이스 서비스
* @author 0986406

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg.trace;
package io.shinhanlife.dat.mcg.trace;
/**
* @package io.shinhanlife.dap.mcg.trace
* @package io.shinhanlife.dat.mcg.trace
* @className McpMonitorEventService
* @description AX HUB 시스템 처리 클래스
* @author 0986406

View File

@@ -1,4 +1,4 @@
package io.shinhanlife.dap.mcg.transport;
package io.shinhanlife.dat.mcg.transport;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
@@ -7,8 +7,8 @@ import io.modelcontextprotocol.client.McpClient;
import io.modelcontextprotocol.client.McpSyncClient;
import io.modelcontextprotocol.client.transport.HttpClientStreamableHttpTransport;
import io.modelcontextprotocol.spec.McpSchema;
import io.shinhanlife.dap.mcg.resilience.FailureType;
import io.shinhanlife.dap.mcg.resilience.ToolExecutionException;
import io.shinhanlife.dat.mcg.resilience.FailureType;
import io.shinhanlife.dat.mcg.resilience.ToolExecutionException;
import java.net.http.HttpRequest;
import java.time.Duration;
import java.util.Map;
@@ -39,7 +39,7 @@ public class HttpToolInvoker implements ToolInvoker {
.connectTimeout(Duration.ofSeconds(5))
.build();
try (McpSyncClient client = McpClient.sync(transport)
.clientInfo(new McpSchema.Implementation("dap-gateway", "1.0.0"))
.clientInfo(new McpSchema.Implementation("dat-gateway", "1.0.0"))
.requestTimeout(Duration.ofSeconds(30))
.build()) {
client.initialize();

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg.transport;
package io.shinhanlife.dat.mcg.transport;
/**
* @package io.shinhanlife.dap.mcg.transport
* @package io.shinhanlife.dat.mcg.transport
* @className ToolInvoker
* @description AX HUB 시스템 처리 클래스
* @author 0986406

View File

@@ -16,10 +16,10 @@
<property name="HOSTNAME" value="${HOSTNAME}" />
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>/swlog/dap-was-sal/A01/${HOSTNAME}_A01.log</file> <!-- 현재 로그가 쌓이는 파일 -->
<file>/swlog/dat-gateway/A01/${HOSTNAME}_A01.log</file> <!-- 현재 로그가 쌓이는 파일 -->
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<!-- 매일 자정에 날짜를 붙여서 지난 로그를 분리 저장 -->
<fileNamePattern>/swlog/dap-was-sal/A01/${HOSTNAME}_A01_%d{yyyyMMdd}.%i.log</fileNamePattern>
<fileNamePattern>/swlog/dat-gateway/A01/${HOSTNAME}_A01_%d{yyyyMMdd}.%i.log</fileNamePattern>
<!-- 개별 로그 파일 크기를 100MB로 제한하고, 전체 보관 일수는 30일, 총 로그 누적 용량은 1GB로 제한 -->
<maxFileSize>100MB</maxFileSize>
<maxHistory>30</maxHistory>

View File

@@ -2,7 +2,7 @@
appender=com.p6spy.engine.spy.appender.Slf4JLogger
# ??? ??? ??? ?? (???? ?? ??)
logMessageFormat=io.shinhanlife.dap.lib.config.P6SpySqlFormatter
logMessageFormat=io.shinhanlife.dat.lib.config.P6SpySqlFormatter
# ?? ?? 0ms?? (connection ?? ??) ???
filter.executionThreshold=1

View File

@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!DOCTYPE html>
<html lang="ko" class="dark" data-bs-theme="dark">
<head>
<meta charset="UTF-8">
@@ -801,17 +801,17 @@
<div class="col-md-12">
<label class="form-label">Workspace Path</label>
<div class="input-group">
<input type="text" class="form-control" name="workspacePath" id="podWorkspacePathInput" placeholder="직접 폴더 경로를 입력(붙여넣기) 하거나 선택하세요" value="c:\eGovFrameDev-4.3.1-64bit\workspace-egov\dap-was-dapmt">
<input type="text" class="form-control" name="workspacePath" id="podWorkspacePathInput" placeholder="직접 폴더 경로를 입력(붙여넣기) 하거나 선택하세요" value="c:\eGovFrameDev-4.3.1-64bit\workspace-egov\dat-was-datmt">
<button class="btn btn-outline-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false" style="border-color: #3f3f46; color: #a1a1aa;">폴더 선택</button>
<ul class="dropdown-menu dropdown-menu-end dropdown-menu-dark" style="background-color: #18181b; border-color: #3f3f46;">
<li><a class="dropdown-item" href="#" onclick="const input = document.getElementById('podWorkspacePathInput'); input.value='c:\\eGovFrameDev-4.3.1-64bit\\workspace-egov\\dap-was-dapmt'; input.dispatchEvent(new Event('change')); return false;" style="color: #f4f4f5;">dap-was-dapmt (기본)</a></li>
<li><a class="dropdown-item" href="#" onclick="const input = document.getElementById('podWorkspacePathInput'); input.value='c:\\eGovFrameDev-4.3.1-64bit\\workspace-egov\\dat-was-datmt'; input.dispatchEvent(new Event('change')); return false;" style="color: #f4f4f5;">dat-was-datmt (기본)</a></li>
<li><a class="dropdown-item" href="#" onclick="const input = document.getElementById('podWorkspacePathInput'); input.value='c:\\eGovFrameDev-4.3.1-64bit\\workspace-egov\\axhub-backend-main'; input.dispatchEvent(new Event('change')); return false;" style="color: #f4f4f5;">axhub-backend-main</a></li>
<li><hr class="dropdown-divider" style="border-color: #3f3f46;"></li>
<li><a class="dropdown-item" href="#" onclick="openServerFolderPicker('podWorkspacePathInput'); return false;" style="color: #f4f4f5;">폴더 선택(+)</a></li>
</ul>
</div>
<input type="file" id="podFolderPicker" webkitdirectory directory style="display: none;" onchange="
if(this.files && this.files.length > 0) { alert("Path: " + this.files[0].path + ", webkitRel: " + this.files[0].webkitRelativePath + ", name: " + this.files[0].name); if(this.files[0].path) {
if(this.files && this.files.length > 0) { if(this.files[0].path) {
let firstFilePath = this.files[0].path;
let relPath = this.files[0].webkitRelativePath;
let folderPath = firstFilePath.substring(0, firstFilePath.length - relPath.length);
@@ -858,17 +858,17 @@
<div class="col-md-12">
<label class="form-label">Workspace Path</label>
<div class="input-group">
<input type="text" class="form-control" name="workspacePath" id="workspacePathInput" placeholder="직접 폴더 경로를 입력(붙여넣기) 하거나 선택하세요" value="c:\eGovFrameDev-4.3.1-64bit\workspace-egov\dap-was-dapmt">
<input type="text" class="form-control" name="workspacePath" id="workspacePathInput" placeholder="직접 폴더 경로를 입력(붙여넣기) 하거나 선택하세요" value="c:\eGovFrameDev-4.3.1-64bit\workspace-egov\dat-was-datmt">
<button class="btn btn-outline-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false" style="border-color: #3f3f46; color: #a1a1aa;">폴더 선택</button>
<ul class="dropdown-menu dropdown-menu-end dropdown-menu-dark" style="background-color: #18181b; border-color: #3f3f46;">
<li><a class="dropdown-item" href="#" onclick="const input = document.getElementById('workspacePathInput'); input.value='c:\\eGovFrameDev-4.3.1-64bit\\workspace-egov\\dap-was-dapmt'; input.dispatchEvent(new Event('change')); return false;" style="color: #f4f4f5;">dap-was-dapmt (기본)</a></li>
<li><a class="dropdown-item" href="#" onclick="const input = document.getElementById('workspacePathInput'); input.value='c:\\eGovFrameDev-4.3.1-64bit\\workspace-egov\\dat-was-datmt'; input.dispatchEvent(new Event('change')); return false;" style="color: #f4f4f5;">dat-was-datmt (기본)</a></li>
<li><a class="dropdown-item" href="#" onclick="const input = document.getElementById('workspacePathInput'); input.value='c:\\eGovFrameDev-4.3.1-64bit\\workspace-egov\\axhub-backend-main'; input.dispatchEvent(new Event('change')); return false;" style="color: #f4f4f5;">axhub-backend-main</a></li>
<li><hr class="dropdown-divider" style="border-color: #3f3f46;"></li>
<li><a class="dropdown-item" href="#" onclick="openServerFolderPicker('workspacePathInput'); return false;" style="color: #f4f4f5;">폴더 선택(+)</a></li>
</ul>
</div>
<input type="file" id="toolFolderPicker" webkitdirectory directory style="display: none;" onchange="
if(this.files && this.files.length > 0) { alert("Path: " + this.files[0].path + ", webkitRel: " + this.files[0].webkitRelativePath + ", name: " + this.files[0].name); if(this.files[0].path) {
if(this.files && this.files.length > 0) { if(this.files[0].path) {
let firstFilePath = this.files[0].path;
let relPath = this.files[0].webkitRelativePath;
let folderPath = firstFilePath.substring(0, firstFilePath.length - relPath.length);
@@ -887,11 +887,11 @@
<div class="col-md-6">
<label class="form-label">Target Module</label>
<select class="form-select" name="moduleName" id="targetModuleSelect" required>
<option value="dap-was-cus">dap-was-cus</option>
<option value="dap-was-hr">dap-was-hr</option>
<option value="dap-was-sal">dap-was-sal</option>
<option value="dap-was-pro">dap-was-pro</option>
<option value="dap-was-sys">dap-was-sys</option>
<option value="dat-was-cus">dat-was-cus</option>
<option value="dat-was-hr">dat-was-hr</option>
<option value="dat-was-sal">dat-was-sal</option>
<option value="dat-was-pro">dat-was-pro</option>
<option value="dat-was-sys">dat-was-sys</option>
</select>
<div class="input-hint">Destination Pod directory.</div>
</div>
@@ -1586,7 +1586,7 @@
.then(modules => {
const select = document.getElementById('targetModuleSelect');
if (modules && modules.length > 0) {
select.innerHTML = modules.map(m => `<option value="${m}" ${m === 'dap-was-cus' ? 'selected' : ''}>${m}</option>`).join('');
select.innerHTML = modules.map(m => `<option value="${m}" ${m === 'dat-was-cus' ? 'selected' : ''}>${m}</option>`).join('');
}
if (typeof loadCategoriesForSelection === 'function') {
loadCategoriesForSelection();

View File

@@ -330,7 +330,7 @@
t._latency = 0;
t._responseData = null;
categories.add(t._meta?.category_key || 'oth');
const modName = t.name ? t.name.split('_')[0].replace('dap-was-', '') : '';
const modName = t.name ? t.name.split('_')[0].replace('dat-was-', '') : '';
if (modName) {
modules.add(modName);
}
@@ -392,7 +392,7 @@
filteredTools = allTools.filter(t => {
const matchSearch = t.name.toLowerCase().includes(search) || (t.description || '').toLowerCase().includes(search);
const matchCategory = !category || (t._meta?.category_key || 'oth') === category;
const toolMod = t.name ? t.name.split('_')[0].replace('dap-was-', '') : '';
const toolMod = t.name ? t.name.split('_')[0].replace('dat-was-', '') : '';
const matchModule = !moduleFlt || toolMod === moduleFlt;
return matchSearch && matchCategory && matchModule;
});
@@ -429,7 +429,7 @@
html += `
<tr id="row-${index}">
<td><span class="cat-badge" style="background:rgba(59,130,246,0.1); color:#60a5fa; border:1px solid rgba(59,130,246,0.2);">${tool.name ? tool.name.split('_')[0].replace('dap-was-', '') : 'unknown'}</span></td>
<td><span class="cat-badge" style="background:rgba(59,130,246,0.1); color:#60a5fa; border:1px solid rgba(59,130,246,0.2);">${tool.name ? tool.name.split('_')[0].replace('dat-was-', '') : 'unknown'}</span></td>
<td><span class="cat-badge">${tool._meta?.category_key || 'oth'}</span></td>
<td class="font-medium text-slate-200">${tool.name}</td>
<td class="text-sm text-zinc-400 geist-mono flex items-center gap-3">

View File

@@ -1,4 +1,4 @@
package io.shinhanlife.dap.biz.mcp.gateway.sync;
package io.shinhanlife.dat.biz.mcp.gateway.sync;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
@@ -7,7 +7,7 @@ import java.util.Arrays;
import java.util.Set;
import java.util.stream.Collectors;
import io.shinhanlife.dap.mcg.sync.DynamicMcpController;
import io.shinhanlife.dat.mcg.sync.DynamicMcpController;
import org.junit.jupiter.api.Test;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

View File

@@ -1,4 +1,4 @@
package io.shinhanlife.dap.biz.mcp.gateway.sync;
package io.shinhanlife.dat.biz.mcp.gateway.sync;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertEquals;
@@ -6,8 +6,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.modelcontextprotocol.spec.McpSchema;
import io.shinhanlife.dap.mcc.dto.ToolMetadata;
import io.shinhanlife.dap.mcg.sync.RegistryMcpToolSpecificationFactory;
import io.shinhanlife.dat.mcc.dto.ToolMetadata;
import io.shinhanlife.dat.mcg.sync.RegistryMcpToolSpecificationFactory;
import java.util.List;
import java.util.Map;
import org.junit.jupiter.api.Test;

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg.tool.large;
package io.shinhanlife.dat.mcg.tool.large;
/**
* @package io.shinhanlife.dap.mcg.tool.large
* @package io.shinhanlife.dat.mcg.tool.large
* @className PaginationRequestValidatorTest
* @description AX HUB 시스템 처리 클래스
* @author 0986406
@@ -17,10 +17,10 @@ package io.shinhanlife.dap.mcg.tool.large;
*/
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;
import io.shinhanlife.dap.mcg.config.McpGatewayProperties;
import io.shinhanlife.dap.mcc.dto.ToolMetadata;
import io.shinhanlife.dat.mcg.config.McpGatewayProperties;
import io.shinhanlife.dat.mcc.dto.ToolMetadata;
import java.util.Map;
import io.shinhanlife.dap.mcg.resilience.ToolExecutionException;
import io.shinhanlife.dat.mcg.resilience.ToolExecutionException;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcg;
package io.shinhanlife.dat.mcg;
import org.junit.jupiter.api.Test;
class DapGatewayApplicationTests {
class DatGatewayApplicationTests {
@Test
void gatewayTestSourceIsCompilable() {

View File

@@ -1,4 +1,4 @@
package io.shinhanlife.dap.mcg.document;
package io.shinhanlife.dat.mcg.document;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.when;
@@ -8,7 +8,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.shinhanlife.dap.mcc.dto.ToolMetadata;
import io.shinhanlife.dat.mcc.dto.ToolMetadata;
import java.nio.charset.StandardCharsets;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

View File

@@ -1,11 +1,11 @@
package io.shinhanlife.dap.mcg.document;
package io.shinhanlife.dat.mcg.document;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.shinhanlife.dap.lib.dto.OperationType;
import io.shinhanlife.dap.mcc.dto.ToolMetadata;
import io.shinhanlife.dat.lib.dto.OperationType;
import io.shinhanlife.dat.mcc.dto.ToolMetadata;
import java.io.ByteArrayInputStream;
import java.time.Clock;
import java.time.Instant;

View File

@@ -1,4 +1,4 @@
package io.shinhanlife.dap.mcg.presentation;
package io.shinhanlife.dat.mcg.presentation;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.jupiter.api.Test;
@@ -30,7 +30,7 @@ class ScaffoldingControllerToolDraftTest {
@Test
void listsExistingUseCasesForSelectedModuleAndCategory() throws Exception {
Path useCaseDir = root.resolve("dap-was-sample/src/main/java/io/shinhanlife/dap/mcc/biz/smp/usecase");
Path useCaseDir = root.resolve("dat-was-sample/src/main/java/io/shinhanlife/dat/mcc/biz/smp/usecase");
Files.createDirectories(useCaseDir);
Files.writeString(useCaseDir.resolve("EmployeeSearchUseCase.java"), "interface EmployeeSearchUseCase {}\n");
Files.writeString(useCaseDir.resolve("Ignored.java"), "class Ignored {}\n");
@@ -39,7 +39,7 @@ class ScaffoldingControllerToolDraftTest {
System.setProperty("user.dir", root.toString());
try {
ScaffoldingController controller = new ScaffoldingController(mock(ChatClient.Builder.class), new ObjectMapper());
assertEquals(java.util.List.of("EmployeeSearchUseCase"), controller.listUseCases("dap-was-sample", "smp"));
assertEquals(java.util.List.of("EmployeeSearchUseCase"), controller.listUseCases("dat-was-sample", "smp"));
} finally {
System.setProperty("user.dir", previousUserDir);
}
@@ -52,7 +52,7 @@ class ScaffoldingControllerToolDraftTest {
new ScaffoldingController(builder, new ObjectMapper()))
.setMessageConverters(new MappingJackson2HttpMessageConverter())
.build();
String moduleName = root.resolve("dap-was-customer").toString().replace("\\", "\\\\");
String moduleName = root.resolve("dat-was-customer").toString().replace("\\", "\\\\");
String request = """
{"useCaseName":"Customer","moduleName":"%s","author":"tester","date":"2026.08.12","tools":[
{"baseName":"CustomerGuidance","methodName":"searchGuidance","interfaceId":"CTMNILO00007","title":"Customer guidance","description":"Search guidance","group":"cmm","routingType":"MCI","register":false,"clientSystemCode":"NILD","inputFields":[{"name":"customerId","type":"String","description":"Customer ID","example":"C001","required":true}],"outputFields":[]}

View File

@@ -4,7 +4,7 @@ plugins {
}
dependencies {
// MCP Server, Tool , MCI/EAI dap-was-lib에서 .
implementation project(':dap-was-lib')
// MCP Server, Tool , MCI/EAI dat-was-lib에서 .
implementation project(':dat-was-lib')
implementation 'org.apache.poi:poi-ooxml:5.3.0'
}

View File

@@ -1,4 +1,4 @@
package io.shinhanlife.dap.mcc.biz.crm.converter;
package io.shinhanlife.dat.mcc.biz.crm.converter;
/** Per-Tool converters are generated beside this compatibility marker. */
public interface CrmToolConverter {

View File

@@ -1,4 +1,4 @@
package io.shinhanlife.dap.mcc.biz.crm.dto;
package io.shinhanlife.dat.mcc.biz.crm.dto;
import lombok.Data;
import org.springaicommunity.mcp.annotation.McpToolParam;

Some files were not shown because too many files have changed in this diff Show More