@soddong/agentic-domain-artifact 0.7.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.
Files changed (63) hide show
  1. package/.tbls.yml +46 -0
  2. package/CHANGELOG.md +53 -0
  3. package/README.md +254 -0
  4. package/dist/database.d.ts +8 -0
  5. package/dist/database.d.ts.map +1 -0
  6. package/dist/database.js +76 -0
  7. package/dist/database.js.map +1 -0
  8. package/dist/fixtures.d.ts +7 -0
  9. package/dist/fixtures.d.ts.map +1 -0
  10. package/dist/fixtures.js +88 -0
  11. package/dist/fixtures.js.map +1 -0
  12. package/dist/index.d.ts +26 -0
  13. package/dist/index.d.ts.map +1 -0
  14. package/dist/index.js +18 -0
  15. package/dist/index.js.map +1 -0
  16. package/dist/repositories.d.ts +29 -0
  17. package/dist/repositories.d.ts.map +1 -0
  18. package/dist/repositories.js +305 -0
  19. package/dist/repositories.js.map +1 -0
  20. package/dist/seed-apply.d.ts +22 -0
  21. package/dist/seed-apply.d.ts.map +1 -0
  22. package/dist/seed-apply.js +150 -0
  23. package/dist/seed-apply.js.map +1 -0
  24. package/dist/service.d.ts +32 -0
  25. package/dist/service.d.ts.map +1 -0
  26. package/dist/service.js +282 -0
  27. package/dist/service.js.map +1 -0
  28. package/dist/types.d.ts +264 -0
  29. package/dist/types.d.ts.map +1 -0
  30. package/dist/types.js +2 -0
  31. package/dist/types.js.map +1 -0
  32. package/docs/build.md +19 -0
  33. package/docs/configuration.md +27 -0
  34. package/docs/delivery.md +22 -0
  35. package/docs/operations.md +27 -0
  36. package/docs/publishing.md +29 -0
  37. package/docs/schema/generated/README.md +28 -0
  38. package/docs/schema/generated/artifact_code_groups.md +57 -0
  39. package/docs/schema/generated/artifact_code_groups.svg +49 -0
  40. package/docs/schema/generated/artifact_codes.md +71 -0
  41. package/docs/schema/generated/artifact_codes.svg +49 -0
  42. package/docs/schema/generated/artifact_component_instances.md +79 -0
  43. package/docs/schema/generated/artifact_component_instances.svg +177 -0
  44. package/docs/schema/generated/artifact_instances.md +79 -0
  45. package/docs/schema/generated/artifact_instances.svg +177 -0
  46. package/docs/schema/generated/artifact_resource_links.md +89 -0
  47. package/docs/schema/generated/artifact_resource_links.svg +74 -0
  48. package/docs/schema/generated/artifact_review_decision_refs.md +89 -0
  49. package/docs/schema/generated/artifact_review_decision_refs.svg +102 -0
  50. package/docs/schema/generated/artifact_schema_migrations.md +47 -0
  51. package/docs/schema/generated/artifact_schema_migrations.svg +27 -0
  52. package/docs/schema/generated/artifact_status_events.md +96 -0
  53. package/docs/schema/generated/artifact_status_events.svg +102 -0
  54. package/docs/schema/generated/artifact_trace_links.md +93 -0
  55. package/docs/schema/generated/artifact_trace_links.svg +74 -0
  56. package/docs/schema/generated/artifact_validation_result_refs.md +82 -0
  57. package/docs/schema/generated/artifact_validation_result_refs.svg +74 -0
  58. package/docs/schema/generated/schema.json +1799 -0
  59. package/docs/schema/generated/schema.mmd +132 -0
  60. package/docs/schema/generated/schema.svg +260 -0
  61. package/docs/usage.md +190 -0
  62. package/package.json +28 -0
  63. package/src/database/migrations/0001_artifact_base.sql +345 -0
@@ -0,0 +1,82 @@
1
+ # artifact_validation_result_refs
2
+
3
+ ## Description
4
+
5
+ validation 실행 결과의 외부 참조를 관리한다.
6
+
7
+ <details>
8
+ <summary><strong>Table Definition</strong></summary>
9
+
10
+ ```sql
11
+ CREATE TABLE artifact_validation_result_refs (
12
+ artifact_validation_result_ref_id CHAR(36) PRIMARY KEY
13
+ CHECK (length(artifact_validation_result_ref_id) = 36),
14
+ artifact_instance_id CHAR(36) NOT NULL
15
+ CHECK (length(artifact_instance_id) = 36),
16
+ artifact_component_instance_id CHAR(36)
17
+ CHECK (artifact_component_instance_id IS NULL OR length(artifact_component_instance_id) = 36),
18
+ validation_provider_id VARCHAR(256) NOT NULL,
19
+ validation_profile_id VARCHAR(256) NOT NULL,
20
+ validation_result_ref VARCHAR(1024) NOT NULL,
21
+ validation_status_code VARCHAR(64) NOT NULL
22
+ CHECK (validation_status_code IN ('valid', 'invalid', 'warning', 'not_run')),
23
+ created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
24
+ updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
25
+ metadata_json JSON
26
+ CHECK (metadata_json IS NULL OR json_valid(metadata_json)),
27
+
28
+ FOREIGN KEY (artifact_instance_id)
29
+ REFERENCES artifact_instances (artifact_instance_id)
30
+ ON DELETE CASCADE,
31
+
32
+ FOREIGN KEY (artifact_component_instance_id)
33
+ REFERENCES artifact_component_instances (artifact_component_instance_id)
34
+ ON DELETE CASCADE
35
+ )
36
+ ```
37
+
38
+ </details>
39
+
40
+ ## Columns
41
+
42
+ | Name | Type | Default | Nullable | Parents |
43
+ | --------------------------------- | ------------- | ----------------- | -------- | --------------------------------------------------------------- |
44
+ | artifact_validation_result_ref_id | CHAR(36) | | true | |
45
+ | artifact_instance_id | CHAR(36) | | false | [artifact_instances](artifact_instances.md) |
46
+ | artifact_component_instance_id | CHAR(36) | | true | [artifact_component_instances](artifact_component_instances.md) |
47
+ | validation_provider_id | VARCHAR(256) | | false | |
48
+ | validation_profile_id | VARCHAR(256) | | false | |
49
+ | validation_result_ref | VARCHAR(1024) | | false | |
50
+ | validation_status_code | VARCHAR(64) | | false | |
51
+ | created_at | DATETIME | CURRENT_TIMESTAMP | false | |
52
+ | updated_at | DATETIME | CURRENT_TIMESTAMP | false | |
53
+ | metadata_json | JSON | | true | |
54
+
55
+ ## Constraints
56
+
57
+ | Name | Type | Definition |
58
+ | -------------------------------------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
59
+ | artifact_validation_result_ref_id | PRIMARY KEY | PRIMARY KEY (artifact_validation_result_ref_id) |
60
+ | - (Foreign key ID: 0) | FOREIGN KEY | FOREIGN KEY (artifact_component_instance_id) REFERENCES artifact_component_instances (artifact_component_instance_id) ON UPDATE NO ACTION ON DELETE CASCADE MATCH NONE |
61
+ | - (Foreign key ID: 1) | FOREIGN KEY | FOREIGN KEY (artifact_instance_id) REFERENCES artifact_instances (artifact_instance_id) ON UPDATE NO ACTION ON DELETE CASCADE MATCH NONE |
62
+ | sqlite_autoindex_artifact_validation_result_refs_1 | PRIMARY KEY | PRIMARY KEY (artifact_validation_result_ref_id) |
63
+ | - | CHECK | CHECK (length(artifact_validation_result_ref_id) = 36) |
64
+ | - | CHECK | CHECK (length(artifact_instance_id) = 36) |
65
+ | - | CHECK | CHECK (artifact_component_instance_id IS NULL OR length(artifact_component_instance_id) = 36) |
66
+ | - | CHECK | CHECK (validation_status_code IN ('valid', 'invalid', 'warning', 'not_run')) |
67
+ | - | CHECK | CHECK (metadata_json IS NULL OR json_valid(metadata_json)) |
68
+
69
+ ## Indexes
70
+
71
+ | Name | Definition |
72
+ | -------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
73
+ | idx_artifact_validation_result_refs_artifact | CREATE INDEX idx_artifact_validation_result_refs_artifact<br /> ON artifact_validation_result_refs (artifact_instance_id) |
74
+ | sqlite_autoindex_artifact_validation_result_refs_1 | PRIMARY KEY (artifact_validation_result_ref_id) |
75
+
76
+ ## Relations
77
+
78
+ ![er](artifact_validation_result_refs.svg)
79
+
80
+ ---
81
+
82
+ > Generated by [tbls](https://github.com/k1LoW/tbls)
@@ -0,0 +1,74 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
3
+ "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
+ <!-- Generated by graphviz version 12.1.2 (20240928.0832)
5
+ -->
6
+ <!-- Title: artifact_validation_result_refs Pages: 1 -->
7
+ <svg width="782pt" height="469pt"
8
+ viewBox="0.00 0.00 782.17 468.80" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
9
+ <g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 464.8)">
10
+ <title>artifact_validation_result_refs</title>
11
+ <polygon fill="white" stroke="none" points="-4,4 -4,-464.8 778.17,-464.8 778.17,4 -4,4"/>
12
+ <!-- artifact_validation_result_refs -->
13
+ <g id="node1" class="node">
14
+ <title>artifact_validation_result_refs</title>
15
+ <polygon fill="#efefef" stroke="none" points="196.55,-368.6 196.55,-414.6 496.72,-414.6 496.72,-368.6 196.55,-368.6"/>
16
+ <polygon fill="none" stroke="black" points="196.55,-368.6 196.55,-414.6 496.72,-414.6 496.72,-368.6 196.55,-368.6"/>
17
+ <text text-anchor="start" x="203.55" y="-392.4" font-family="Arial Bold" font-size="18.00">artifact_validation_result_refs</text>
18
+ <text text-anchor="start" x="420.46" y="-392.4" font-family="Arial" font-size="14.00">    </text>
19
+ <text text-anchor="start" x="451.58" y="-392.4" font-family="Arial" font-size="14.00" fill="#666666">[table]</text>
20
+ <text text-anchor="start" x="223.7" y="-378" font-family="Arial" font-size="14.00" fill="#333333">validation 실행 결과의 외부 참조를 관리한다.</text>
21
+ <polygon fill="none" stroke="black" points="196.55,-337.8 196.55,-368.6 496.72,-368.6 496.72,-337.8 196.55,-337.8"/>
22
+ <text text-anchor="start" x="203.55" y="-350" font-family="Arial" font-size="14.00">artifact_validation_result_ref_id </text>
23
+ <text text-anchor="start" x="401.21" y="-350" font-family="Arial" font-size="14.00" fill="#666666">[CHAR(36)]</text>
24
+ <polygon fill="none" stroke="black" points="196.55,-307 196.55,-337.8 496.72,-337.8 496.72,-307 196.55,-307"/>
25
+ <text text-anchor="start" x="203.55" y="-319.2" font-family="Arial" font-size="14.00">artifact_instance_id </text>
26
+ <text text-anchor="start" x="328.06" y="-319.2" font-family="Arial" font-size="14.00" fill="#666666">[CHAR(36)]</text>
27
+ <polygon fill="none" stroke="black" points="196.55,-276.2 196.55,-307 496.72,-307 496.72,-276.2 196.55,-276.2"/>
28
+ <text text-anchor="start" x="203.55" y="-288.4" font-family="Arial" font-size="14.00">artifact_component_instance_id </text>
29
+ <text text-anchor="start" x="405.12" y="-288.4" font-family="Arial" font-size="14.00" fill="#666666">[CHAR(36)]</text>
30
+ <polygon fill="none" stroke="black" stroke-width="3" points="195.05,-274.7 195.05,-416.1 498.22,-416.1 498.22,-274.7 195.05,-274.7"/>
31
+ </g>
32
+ <!-- artifact_instances -->
33
+ <g id="node2" class="node">
34
+ <title>artifact_instances</title>
35
+ <polygon fill="#efefef" stroke="none" points="43.2,-89.4 43.2,-135.4 254.06,-135.4 254.06,-89.4 43.2,-89.4"/>
36
+ <polygon fill="none" stroke="black" points="43.2,-89.4 43.2,-135.4 254.06,-135.4 254.06,-89.4 43.2,-89.4"/>
37
+ <text text-anchor="start" x="51.03" y="-113.2" font-family="Arial Bold" font-size="18.00">artifact_instances</text>
38
+ <text text-anchor="start" x="176.97" y="-113.2" font-family="Arial" font-size="14.00">    </text>
39
+ <text text-anchor="start" x="208.09" y="-113.2" font-family="Arial" font-size="14.00" fill="#666666">[table]</text>
40
+ <text text-anchor="start" x="56.43" y="-98.8" font-family="Arial" font-size="14.00" fill="#333333">실제 산출물 instance를 관리한다.</text>
41
+ <polygon fill="none" stroke="black" points="43.2,-58.6 43.2,-89.4 254.06,-89.4 254.06,-58.6 43.2,-58.6"/>
42
+ <text text-anchor="start" x="50.2" y="-70.8" font-family="Arial" font-size="14.00">artifact_instance_id </text>
43
+ <text text-anchor="start" x="174.72" y="-70.8" font-family="Arial" font-size="14.00" fill="#666666">[CHAR(36)]</text>
44
+ </g>
45
+ <!-- artifact_validation_result_refs&#45;&gt;artifact_instances -->
46
+ <g id="edge1" class="edge">
47
+ <title>artifact_validation_result_refs:artifact_instance_id&#45;&gt;artifact_instances:artifact_instance_id</title>
48
+ <path fill="none" stroke="black" d="M185.34,-320.89C159.3,-311.82 181.23,-263.74 196.55,-230 210.72,-198.78 239.91,-209.83 254.06,-178.6 273.25,-136.25 301.55,-74 255.06,-74"/>
49
+ <polygon fill="black" stroke="black" points="185.32,-320.89 194.56,-326.8 190.6,-321.67 194.88,-322.3 194.88,-322.3 194.88,-322.3 190.6,-321.67 195.87,-317.9 185.32,-320.89"/>
50
+ </g>
51
+ <!-- artifact_component_instances -->
52
+ <g id="node3" class="node">
53
+ <title>artifact_component_instances</title>
54
+ <polygon fill="#efefef" stroke="none" points="358.29,-104.8 358.29,-150.8 730.97,-150.8 730.97,-104.8 358.29,-104.8"/>
55
+ <polygon fill="none" stroke="black" points="358.29,-104.8 358.29,-150.8 730.97,-150.8 730.97,-104.8 358.29,-104.8"/>
56
+ <text text-anchor="start" x="402.54" y="-128.6" font-family="Arial Bold" font-size="18.00">artifact_component_instances</text>
57
+ <text text-anchor="start" x="617.46" y="-128.6" font-family="Arial" font-size="14.00">    </text>
58
+ <text text-anchor="start" x="648.58" y="-128.6" font-family="Arial" font-size="14.00" fill="#666666">[table]</text>
59
+ <text text-anchor="start" x="365.29" y="-114.2" font-family="Arial" font-size="14.00" fill="#333333">실제 산출물 안의 본문, 부록 등 component instance를 관리한다.</text>
60
+ <polygon fill="none" stroke="black" points="358.29,-74 358.29,-104.8 730.97,-104.8 730.97,-74 358.29,-74"/>
61
+ <text text-anchor="start" x="365.29" y="-86.2" font-family="Arial" font-size="14.00">artifact_component_instance_id </text>
62
+ <text text-anchor="start" x="566.86" y="-86.2" font-family="Arial" font-size="14.00" fill="#666666">[CHAR(36)]</text>
63
+ <polygon fill="none" stroke="black" points="358.29,-43.2 358.29,-74 730.97,-74 730.97,-43.2 358.29,-43.2"/>
64
+ <text text-anchor="start" x="365.29" y="-55.4" font-family="Arial" font-size="14.00">artifact_instance_id </text>
65
+ <text text-anchor="start" x="489.81" y="-55.4" font-family="Arial" font-size="14.00" fill="#666666">[CHAR(36)]</text>
66
+ </g>
67
+ <!-- artifact_validation_result_refs&#45;&gt;artifact_component_instances -->
68
+ <g id="edge2" class="edge">
69
+ <title>artifact_validation_result_refs:artifact_component_instance_id&#45;&gt;artifact_component_instances:artifact_component_instance_id</title>
70
+ <path fill="none" stroke="black" d="M507.45,-289.14C521.57,-280.11 511.13,-248.33 496.72,-230 457.42,-180.03 397.41,-244.1 358.29,-194 329.68,-157.36 310.8,-89.4 357.29,-89.4"/>
71
+ <polygon fill="black" stroke="black" points="507.74,-289.07 496.94,-287.15 502.56,-290.38 498.36,-291.44 498.36,-291.44 498.36,-291.44 502.56,-290.38 499.14,-295.88 507.74,-289.07"/>
72
+ </g>
73
+ </g>
74
+ </svg>