agentic-domain-artifact-standard 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +35 -2
- package/dist/index.d.ts +25 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +95 -1
- package/dist/index.js.map +1 -1
- package/docs/publishing.md +13 -1
- package/docs/usage.md +13 -2
- package/package.json +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
- `DocumentImportProfile` 기반 `getArtifactStandardDocumentProfile()` public API를 추가한다.
|
|
6
|
+
- `architecture_specification@1.0.0` document profile fixture를 추가한다.
|
|
7
|
+
- Architecture Specification template slot placeholder를 추가한다.
|
|
8
|
+
- document profile provider 사용 문서를 추가한다.
|
|
9
|
+
|
|
3
10
|
## 0.1.0
|
|
4
11
|
|
|
5
12
|
- Iteration 0 package skeleton을 추가한다.
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
## 현재 범위
|
|
8
8
|
|
|
9
|
-
Iteration 0에서는 패키지 skeleton과 Continuous Publish/Delivery
|
|
9
|
+
Iteration 0에서는 패키지 skeleton과 Continuous Publish/Delivery 기반을 제공합니다. 현재는 1차 보강으로 `agentic-domain-document`의 `DocumentImportProfile` contract에 맞춘 산출물 표준 profile fixture를 제공합니다. DB schema, repository/service/validator, seed, agent contribution은 후속 iteration에서 구체화합니다.
|
|
10
10
|
|
|
11
11
|
| 구분 | 상태 |
|
|
12
12
|
| --- | --- |
|
|
@@ -14,6 +14,8 @@ Iteration 0에서는 패키지 skeleton과 Continuous Publish/Delivery 기반만
|
|
|
14
14
|
| 기본 문서 | 포함 |
|
|
15
15
|
| build/typecheck | 포함 |
|
|
16
16
|
| 최소 public API | 포함 |
|
|
17
|
+
| Architecture Specification DocumentImportProfile fixture | 포함 |
|
|
18
|
+
| Template slot placeholder | 포함 |
|
|
17
19
|
| Artifact Standard DB migration | 후속 iteration |
|
|
18
20
|
| Repository/Service/Validator | 후속 iteration |
|
|
19
21
|
| Seed/Fixture | 후속 iteration |
|
|
@@ -51,7 +53,38 @@ agentic-domain-artifact-standard
|
|
|
51
53
|
## 기본 API 예시
|
|
52
54
|
|
|
53
55
|
```ts
|
|
54
|
-
import {
|
|
56
|
+
import {
|
|
57
|
+
getArtifactStandardDocumentProfile,
|
|
58
|
+
getArtifactStandardPackageInfo
|
|
59
|
+
} from "agentic-domain-artifact-standard";
|
|
55
60
|
|
|
56
61
|
console.log(getArtifactStandardPackageInfo());
|
|
62
|
+
|
|
63
|
+
const profile = getArtifactStandardDocumentProfile({
|
|
64
|
+
artifactStandardPackageCode: "architecture_specification"
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
console.log(profile.profileCode);
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Document Profile Provider
|
|
71
|
+
|
|
72
|
+
`agentic-domain-artifact-standard`는 document DB를 직접 조작하지 않습니다. 산출물 표준 관점에서 문서 유형별 profile을 제공하고, consumer 또는 integration layer가 이 profile을 `agentic-domain-document` importer에 전달합니다.
|
|
73
|
+
|
|
74
|
+
```text
|
|
75
|
+
artifact-standard
|
|
76
|
+
-> getArtifactStandardDocumentProfile()
|
|
77
|
+
-> DocumentImportProfile
|
|
78
|
+
-> document importer
|
|
57
79
|
```
|
|
80
|
+
|
|
81
|
+
현재 제공되는 fixture는 `architecture_specification@1.0.0`입니다.
|
|
82
|
+
|
|
83
|
+
| 항목 | 값 |
|
|
84
|
+
| --- | --- |
|
|
85
|
+
| profile code | `architecture_specification` |
|
|
86
|
+
| document type | `architecture_specification` |
|
|
87
|
+
| taxonomy code | `architecture_specification` |
|
|
88
|
+
| TOC level limit | `4` |
|
|
89
|
+
| caption policy | `표`, `Table`, `그림`, `Figure` caption binding |
|
|
90
|
+
| table/figure caption | required policy |
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { DocumentImportProfile } from "agentic-domain-document";
|
|
1
2
|
export declare const agenticDomainArtifactStandardPackage: {
|
|
2
3
|
readonly name: "agentic-domain-artifact-standard";
|
|
3
|
-
readonly version: "0.
|
|
4
|
+
readonly version: "0.2.0";
|
|
4
5
|
readonly layer: "domain";
|
|
5
6
|
readonly logicalSchema: "artifact_standard";
|
|
6
7
|
readonly sqliteTablePrefix: "artifact_standard_";
|
|
@@ -9,12 +10,34 @@ export declare const agenticDomainArtifactStandardPackage: {
|
|
|
9
10
|
};
|
|
10
11
|
export interface ArtifactStandardPackageInfo {
|
|
11
12
|
readonly name: "agentic-domain-artifact-standard";
|
|
12
|
-
readonly version: "0.
|
|
13
|
+
readonly version: "0.2.0";
|
|
13
14
|
readonly layer: "domain";
|
|
14
15
|
readonly logicalSchema: "artifact_standard";
|
|
15
16
|
readonly sqliteTablePrefix: "artifact_standard_";
|
|
16
17
|
readonly cli: "not-provided";
|
|
17
18
|
readonly adapter: "not-provided";
|
|
18
19
|
}
|
|
20
|
+
export interface ArtifactStandardPackage {
|
|
21
|
+
readonly packageCode: string;
|
|
22
|
+
readonly packageVersion: string;
|
|
23
|
+
readonly name: string;
|
|
24
|
+
readonly documentTypeCode: string;
|
|
25
|
+
readonly documentProfileCode: string;
|
|
26
|
+
readonly templateSlots: readonly ArtifactStandardTemplateSlot[];
|
|
27
|
+
}
|
|
28
|
+
export interface ArtifactStandardTemplateSlot {
|
|
29
|
+
readonly slotCode: string;
|
|
30
|
+
readonly name: string;
|
|
31
|
+
readonly required: boolean;
|
|
32
|
+
readonly description?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface ArtifactStandardDocumentProfileQuery {
|
|
35
|
+
readonly artifactStandardPackageCode: string;
|
|
36
|
+
readonly profileVersion?: string;
|
|
37
|
+
}
|
|
38
|
+
export declare const architectureSpecificationArtifactStandardPackage: ArtifactStandardPackage;
|
|
39
|
+
export declare const ArchitectureSpecificationDocumentProfile: DocumentImportProfile;
|
|
19
40
|
export declare function getArtifactStandardPackageInfo(): ArtifactStandardPackageInfo;
|
|
41
|
+
export declare function getArchitectureSpecificationArtifactStandardPackage(): ArtifactStandardPackage;
|
|
42
|
+
export declare function getArtifactStandardDocumentProfile(query: ArtifactStandardDocumentProfileQuery): DocumentImportProfile;
|
|
20
43
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oCAAoC;;;;;;;;CAQvC,CAAC;AAEX,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,IAAI,EAAE,kCAAkC,CAAC;IAClD,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;IACzB,QAAQ,CAAC,aAAa,EAAE,mBAAmB,CAAC;IAC5C,QAAQ,CAAC,iBAAiB,EAAE,oBAAoB,CAAC;IACjD,QAAQ,CAAC,GAAG,EAAE,cAAc,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC;CAClC;AAED,wBAAgB,8BAA8B,IAAI,2BAA2B,CAE5E"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAErE,eAAO,MAAM,oCAAoC;;;;;;;;CAQvC,CAAC;AAEX,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,IAAI,EAAE,kCAAkC,CAAC;IAClD,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;IACzB,QAAQ,CAAC,aAAa,EAAE,mBAAmB,C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er: "domain",
|
|
5
5
|
logicalSchema: "artifact_standard",
|
|
6
6
|
sqliteTablePrefix: "artifact_standard_",
|
|
7
7
|
cli: "not-provided",
|
|
8
8
|
adapter: "not-provided"
|
|
9
9
|
};
|
|
10
|
+
export const architectureSpecificationArtifactStandardPackage = {
|
|
11
|
+
packageCode: "architecture_specification",
|
|
12
|
+
packageVersion: "1.0.0",
|
|
13
|
+
name: "Architecture Specification",
|
|
14
|
+
documentTypeCode: "architecture_specification",
|
|
15
|
+
documentProfileCode: "architecture_specification",
|
|
16
|
+
templateSlots: [
|
|
17
|
+
{
|
|
18
|
+
slotCode: "document_overview",
|
|
19
|
+
name: "문서 개요",
|
|
20
|
+
required: true,
|
|
21
|
+
description: "문서의 목적, 범위, 독자, 활용 기준을 설명하는 영역"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
slotCode: "architecture_context",
|
|
25
|
+
name: "아키텍처 컨텍스트",
|
|
26
|
+
required: true,
|
|
27
|
+
description: "비즈니스, 시스템, 통합, 운영 맥락을 설명하는 영역"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
slotCode: "architecture_decisions",
|
|
31
|
+
name: "아키텍처 결정",
|
|
32
|
+
required: true,
|
|
33
|
+
description: "주요 아키텍처 판단, 근거, 대안을 정리하는 영역"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
slotCode: "appendix",
|
|
37
|
+
name: "부록",
|
|
38
|
+
required: false,
|
|
39
|
+
description: "상세 표, 그림, 참조 자료, 보조 설명을 담는 영역"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
};
|
|
43
|
+
export const ArchitectureSpecificationDocumentProfile = {
|
|
44
|
+
profileCode: "architecture_specification",
|
|
45
|
+
profileVersion: "1.0.0",
|
|
46
|
+
documentTypeCode: "architecture_specification",
|
|
47
|
+
taxonomyCode: "architecture_specification",
|
|
48
|
+
defaultTocLevelLimit: 4,
|
|
49
|
+
headingPolicy: {
|
|
50
|
+
maxHeadingLevel: 6,
|
|
51
|
+
tocLevelLimit: 4,
|
|
52
|
+
defaultTaxonomyCode: "architecture_specification"
|
|
53
|
+
},
|
|
54
|
+
captionPolicy: {
|
|
55
|
+
tableCaptionPatterns: ["표 {number}. {title} - {summary}", "Table {number}. {title} - {summary}"],
|
|
56
|
+
figureCaptionPatterns: ["그림 {number}. {title} - {summary}", "Figure {number}. {title} - {summary}"],
|
|
57
|
+
bindTableCaptionBeforeTable: true,
|
|
58
|
+
bindVisibleFigureCaptionAfterImage: true,
|
|
59
|
+
removeDuplicateVisibleFigureCaption: true
|
|
60
|
+
},
|
|
61
|
+
tablePolicy: {
|
|
62
|
+
requireCaption: true,
|
|
63
|
+
requireColumns: true,
|
|
64
|
+
requireRows: true,
|
|
65
|
+
defaultColumnValueType: "text"
|
|
66
|
+
},
|
|
67
|
+
figurePolicy: {
|
|
68
|
+
requireCaption: true,
|
|
69
|
+
requireSourcePath: true,
|
|
70
|
+
visibleCaptionMode: "deduplicate"
|
|
71
|
+
},
|
|
72
|
+
diagramPolicy: {
|
|
73
|
+
allowedNotations: ["mermaid", "plantuml", "drawio", "svg"],
|
|
74
|
+
requireSourceTextOrPath: true
|
|
75
|
+
},
|
|
76
|
+
validationProfile: {
|
|
77
|
+
enabledRuleIds: [
|
|
78
|
+
"DOCUMENT.BLOCK.TABLE_COLUMNS",
|
|
79
|
+
"DOCUMENT.BLOCK.TABLE_ROWS",
|
|
80
|
+
"DOCUMENT.BLOCK.FIGURE_SOURCE",
|
|
81
|
+
"DOCUMENT.BLOCK.DIAGRAM_NOTATION",
|
|
82
|
+
"DOCUMENT.BLOCK.DIAGRAM_SOURCE"
|
|
83
|
+
],
|
|
84
|
+
warningRuleIds: ["DOCUMENT.BLOCK.TABLE_CAPTION", "DOCUMENT.BLOCK.FIGURE_CAPTION"],
|
|
85
|
+
requiredBlockTypes: ["paragraph"]
|
|
86
|
+
},
|
|
87
|
+
metadata: {
|
|
88
|
+
providerPackage: "agentic-domain-artifact-standard",
|
|
89
|
+
artifactStandardPackageCode: "architecture_specification"
|
|
90
|
+
}
|
|
91
|
+
};
|
|
10
92
|
export function getArtifactStandardPackageInfo() {
|
|
11
93
|
return agenticDomainArtifactStandardPackage;
|
|
12
94
|
}
|
|
95
|
+
export function getArchitectureSpecificationArtifactStandardPackage() {
|
|
96
|
+
return architectureSpecificationArtifactStandardPackage;
|
|
97
|
+
}
|
|
98
|
+
export function getArtifactStandardDocumentProfile(query) {
|
|
99
|
+
if (query.artifactStandardPackageCode !== "architecture_specification") {
|
|
100
|
+
throw new Error(`Unsupported artifact standard package code: ${query.artifactStandardPackageCode}`);
|
|
101
|
+
}
|
|
102
|
+
if (query.profileVersion !== undefined && query.profileVersion !== ArchitectureSpecificationDocumentProfile.profileVersion) {
|
|
103
|
+
throw new Error(`Unsupported architecture_specification profile version: ${query.profileVersion}`);
|
|
104
|
+
}
|
|
105
|
+
return ArchitectureSpecificationDocumentProfile;
|
|
106
|
+
}
|
|
13
107
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,oCAAoC,GAAG;IAClD,IAAI,EAAE,kCAAkC;IACxC,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,QAAQ;IACf,aAAa,EAAE,mBAAmB;IAClC,iBAAiB,EAAE,oBAAoB;IACvC,GAAG,EAAE,cAAc;IACnB,OAAO,EAAE,cAAc;CACf,CAAC;AAiCX,MAAM,CAAC,MAAM,gDAAgD,GAA4B;IACvF,WAAW,EAAE,4BAA4B;IACzC,cAAc,EAAE,OAAO;IACvB,IAAI,EAAE,4BAA4B;IAClC,gBAAgB,EAAE,4BAA4B;IAC9C,mBAAmB,EAAE,4BAA4B;IACjD,aAAa,EAAE;QACb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AE,QAAQ,EAAE,KAAK,CAAC;QAC1D,uBAAuB,EAAE,IAAI;KAC9B;IACD,iBAAiB,EAAE;QACjB,cAAc,EAAE;YACd,8BAA8B;YAC9B,2BAA2B;YAC3B,8BAA8B;YAC9B,iCAAiC;YACjC,+BAA+B;SAChC;QACD,cAAc,EAAE,CAAC,8BAA8B,EAAE,+BAA+B,CAAC;QACjF,kBAAkB,EAAE,CAAC,WAAW,CAAC;KAClC;IACD,QAAQ,EAAE;QACR,eAAe,EAAE,kCAAkC;QACnD,2BAA2B,EAAE,4BAA4B;KAC1D;CACF,CAAC;AAEF,MAAM,UAAU,8BAA8B;IAC5C,OAAO,oCAAoC,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,mDAAmD;IACjE,OAAO,gDAAgD,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,kCAAkC,CAAC,KAA2C;IAC5F,IAAI,KAAK,CAAC,2BAA2B,KAAK,4BAA4B,EAAE,CAAC;QACvE,MAAM,IAAI,KAAK,CAAC,+CAA+C,KAAK,CAAC,2BAA2B,EAAE,CAAC,CAAC;IACtG,CAAC;IAED,IAAI,KAAK,CAAC,cAAc,KAAK,SAAS,IAAI,KAAK,CAAC,cAAc,KAAK,wCAAwC,CAAC,cAAc,EAAE,CAAC;QAC3H,MAAM,IAAI,KAAK,CAAC,2DAA2D,KAAK,CAAC,cAAc,EAAE,CAAC,CAAC;IACrG,CAAC;IAED,OAAO,wCAAwC,CAAC;AAClD,CAAC"}
|
package/docs/publishing.md
CHANGED
|
@@ -2,10 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
패키지 내부에는 특정 registry URL을 고정하지 않는다.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
공식 publish/install registry는 `https://registry.npmjs.org/`를 사용한다. consumer/build 환경의 `.npmrc`에는 npmjs 인증 정보를 제공한다.
|
|
6
6
|
|
|
7
7
|
검증 명령:
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
10
|
npm pack --workspace agentic-domain-artifact-standard --dry-run
|
|
11
11
|
```
|
|
12
|
+
|
|
13
|
+
Publish:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm publish --workspace agentic-domain-artifact-standard --registry=https://registry.npmjs.org/
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Publish 검증:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npm view agentic-domain-artifact-standard version --registry=https://registry.npmjs.org/
|
|
23
|
+
```
|
package/docs/usage.md
CHANGED
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
# Usage
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
이 패키지는 산출물 표준 패키지 정보와 document import profile fixture를 제공한다.
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
getArtifactStandardDocumentProfile,
|
|
8
|
+
getArtifactStandardPackageInfo
|
|
9
|
+
} from "agentic-domain-artifact-standard";
|
|
7
10
|
|
|
8
11
|
const info = getArtifactStandardPackageInfo();
|
|
9
12
|
console.log(info.name);
|
|
13
|
+
|
|
14
|
+
const profile = getArtifactStandardDocumentProfile({
|
|
15
|
+
artifactStandardPackageCode: "architecture_specification"
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
console.log(profile.documentTypeCode);
|
|
10
19
|
```
|
|
20
|
+
|
|
21
|
+
`getArtifactStandardDocumentProfile()`은 document DB를 열거나 document importer를 실행하지 않는다. 호출자는 반환된 `DocumentImportProfile`을 `agentic-domain-document`의 Markdown importer에 전달한다.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentic-domain-artifact-standard",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Agentic Platform artifact standard domain package",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -16,5 +16,8 @@
|
|
|
16
16
|
"build": "tsc -p tsconfig.json",
|
|
17
17
|
"clean": "rm -rf dist tsconfig.tsbuildinfo",
|
|
18
18
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"agentic-domain-document": "^0.7.0"
|
|
19
22
|
}
|
|
20
23
|
}
|