@soddong/agentic-runtime 0.16.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 (114) hide show
  1. package/.tbls.yml +103 -0
  2. package/CHANGELOG.md +229 -0
  3. package/README.md +707 -0
  4. package/dist/agent-router.d.ts +39 -0
  5. package/dist/agent-router.d.ts.map +1 -0
  6. package/dist/agent-router.js +175 -0
  7. package/dist/agent-router.js.map +1 -0
  8. package/dist/bundle-installer.d.ts +25 -0
  9. package/dist/bundle-installer.d.ts.map +1 -0
  10. package/dist/bundle-installer.js +149 -0
  11. package/dist/bundle-installer.js.map +1 -0
  12. package/dist/bundle-registry.d.ts +30 -0
  13. package/dist/bundle-registry.d.ts.map +1 -0
  14. package/dist/bundle-registry.js +102 -0
  15. package/dist/bundle-registry.js.map +1 -0
  16. package/dist/claude-code-adapter.d.ts +27 -0
  17. package/dist/claude-code-adapter.d.ts.map +1 -0
  18. package/dist/claude-code-adapter.js +177 -0
  19. package/dist/claude-code-adapter.js.map +1 -0
  20. package/dist/cli.d.ts +3 -0
  21. package/dist/cli.d.ts.map +1 -0
  22. package/dist/cli.js +1731 -0
  23. package/dist/cli.js.map +1 -0
  24. package/dist/codex-adapter.d.ts +23 -0
  25. package/dist/codex-adapter.d.ts.map +1 -0
  26. package/dist/codex-adapter.js +264 -0
  27. package/dist/codex-adapter.js.map +1 -0
  28. package/dist/database.d.ts +22 -0
  29. package/dist/database.d.ts.map +1 -0
  30. package/dist/database.js +184 -0
  31. package/dist/database.js.map +1 -0
  32. package/dist/execution-projects.d.ts +71 -0
  33. package/dist/execution-projects.d.ts.map +1 -0
  34. package/dist/execution-projects.js +333 -0
  35. package/dist/execution-projects.js.map +1 -0
  36. package/dist/execution-query.d.ts +73 -0
  37. package/dist/execution-query.d.ts.map +1 -0
  38. package/dist/execution-query.js +370 -0
  39. package/dist/execution-query.js.map +1 -0
  40. package/dist/execution.d.ts +47 -0
  41. package/dist/execution.d.ts.map +1 -0
  42. package/dist/execution.js +153 -0
  43. package/dist/execution.js.map +1 -0
  44. package/dist/hook-command.d.ts +3 -0
  45. package/dist/hook-command.d.ts.map +1 -0
  46. package/dist/hook-command.js +13 -0
  47. package/dist/hook-command.js.map +1 -0
  48. package/dist/hook-record.d.ts +16 -0
  49. package/dist/hook-record.d.ts.map +1 -0
  50. package/dist/hook-record.js +427 -0
  51. package/dist/hook-record.js.map +1 -0
  52. package/dist/index.d.ts +29 -0
  53. package/dist/index.d.ts.map +1 -0
  54. package/dist/index.js +15 -0
  55. package/dist/index.js.map +1 -0
  56. package/dist/kiro-adapter.d.ts +38 -0
  57. package/dist/kiro-adapter.d.ts.map +1 -0
  58. package/dist/kiro-adapter.js +374 -0
  59. package/dist/kiro-adapter.js.map +1 -0
  60. package/dist/module-registry.d.ts +21 -0
  61. package/dist/module-registry.d.ts.map +1 -0
  62. package/dist/module-registry.js +75 -0
  63. package/dist/module-registry.js.map +1 -0
  64. package/dist/runtime-info.d.ts +8 -0
  65. package/dist/runtime-info.d.ts.map +1 -0
  66. package/dist/runtime-info.js +15 -0
  67. package/dist/runtime-info.js.map +1 -0
  68. package/dist/seed-importer.d.ts +77 -0
  69. package/dist/seed-importer.d.ts.map +1 -0
  70. package/dist/seed-importer.js +570 -0
  71. package/dist/seed-importer.js.map +1 -0
  72. package/docs/build.md +129 -0
  73. package/docs/configuration.md +61 -0
  74. package/docs/delivery.md +90 -0
  75. package/docs/operations.md +112 -0
  76. package/docs/publishing.md +196 -0
  77. package/docs/schema/generated/README.md +31 -0
  78. package/docs/schema/generated/agentic_execution_logs.md +90 -0
  79. package/docs/schema/generated/agentic_execution_logs.svg +52 -0
  80. package/docs/schema/generated/agentic_execution_outputs.md +85 -0
  81. package/docs/schema/generated/agentic_execution_outputs.svg +52 -0
  82. package/docs/schema/generated/agentic_execution_project_activities.md +83 -0
  83. package/docs/schema/generated/agentic_execution_project_activities.svg +71 -0
  84. package/docs/schema/generated/agentic_execution_project_stages.md +69 -0
  85. package/docs/schema/generated/agentic_execution_project_stages.svg +71 -0
  86. package/docs/schema/generated/agentic_execution_projects.md +82 -0
  87. package/docs/schema/generated/agentic_execution_projects.svg +92 -0
  88. package/docs/schema/generated/agentic_execution_runs.md +111 -0
  89. package/docs/schema/generated/agentic_execution_runs.svg +92 -0
  90. package/docs/schema/generated/agentic_project_bundles.md +106 -0
  91. package/docs/schema/generated/agentic_project_bundles.svg +91 -0
  92. package/docs/schema/generated/agentic_project_modules.md +77 -0
  93. package/docs/schema/generated/agentic_project_modules.svg +49 -0
  94. package/docs/schema/generated/agentic_runtime_metadata.md +62 -0
  95. package/docs/schema/generated/agentic_runtime_metadata.svg +28 -0
  96. package/docs/schema/generated/agentic_schema_migrations.md +65 -0
  97. package/docs/schema/generated/agentic_schema_migrations.svg +32 -0
  98. package/docs/schema/generated/agentic_seed_import_items.md +85 -0
  99. package/docs/schema/generated/agentic_seed_import_items.svg +47 -0
  100. package/docs/schema/generated/agentic_seed_import_runs.md +103 -0
  101. package/docs/schema/generated/agentic_seed_import_runs.svg +68 -0
  102. package/docs/schema/generated/agentic_user_requests.md +66 -0
  103. package/docs/schema/generated/agentic_user_requests.svg +52 -0
  104. package/docs/schema/generated/schema.json +1976 -0
  105. package/docs/schema/generated/schema.mmd +167 -0
  106. package/docs/schema/generated/schema.svg +266 -0
  107. package/docs/schema/migrations.md +163 -0
  108. package/docs/usage.md +774 -0
  109. package/package.json +32 -0
  110. package/src/database/migrations/0001_runtime_base.sql +231 -0
  111. package/src/database/migrations/0002_runtime_bundles.sql +61 -0
  112. package/src/database/migrations/0003_runtime_seed_imports.sql +121 -0
  113. package/src/database/migrations/0004_runtime_seed_apply_status.sql +76 -0
  114. package/src/database/migrations/0005_runtime_execution_projects.sql +92 -0
@@ -0,0 +1,68 @@
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: agentic_seed_import_runs Pages: 1 -->
7
+ <svg width="376pt" height="606pt"
8
+ viewBox="0.00 0.00 375.60 606.00" 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 602)">
10
+ <title>agentic_seed_import_runs</title>
11
+ <polygon fill="white" stroke="none" points="-4,4 -4,-602 371.6,-602 371.6,4 -4,4"/>
12
+ <!-- agentic_seed_import_runs -->
13
+ <g id="node1" class="node">
14
+ <title>agentic_seed_import_runs</title>
15
+ <polygon fill="#efefef" stroke="none" points="47.2,-327.4 47.2,-363 320.4,-363 320.4,-327.4 47.2,-327.4"/>
16
+ <polygon fill="none" stroke="black" points="47.2,-327.4 47.2,-363 320.4,-363 320.4,-327.4 47.2,-327.4"/>
17
+ <text text-anchor="start" x="54.2" y="-340.8" font-family="Arial Bold" font-size="18.00">agentic_seed_import_runs</text>
18
+ <text text-anchor="start" x="244.15" y="-340.8" font-family="Arial" font-size="14.00">    </text>
19
+ <text text-anchor="start" x="275.27" y="-340.8" font-family="Arial" font-size="14.00" fill="#666666">[table]</text>
20
+ <polygon fill="none" stroke="black" points="47.2,-296.6 47.2,-327.4 320.4,-327.4 320.4,-296.6 47.2,-296.6"/>
21
+ <text text-anchor="start" x="54.2" y="-308.8" font-family="Arial" font-size="14.00">seed_import_run_id </text>
22
+ <text text-anchor="start" x="181.83" y="-308.8" font-family="Arial" font-size="14.00" fill="#666666">[INTEGER]</text>
23
+ <polygon fill="none" stroke="black" points="47.2,-265.8 47.2,-296.6 320.4,-296.6 320.4,-265.8 47.2,-265.8"/>
24
+ <text text-anchor="start" x="54.2" y="-278" font-family="Arial" font-size="14.00">bundle_id </text>
25
+ <text text-anchor="start" x="118.81" y="-278" font-family="Arial" font-size="14.00" fill="#666666">[INTEGER]</text>
26
+ <polygon fill="none" stroke="black" stroke-width="3" points="45.7,-264.3 45.7,-364.5 321.9,-364.5 321.9,-264.3 45.7,-264.3"/>
27
+ </g>
28
+ <!-- agentic_project_bundles -->
29
+ <g id="node3" class="node">
30
+ <title>agentic_project_bundles</title>
31
+ <polygon fill="#efefef" stroke="none" points="54.2,-104.8 54.2,-140.4 313.4,-140.4 313.4,-104.8 54.2,-104.8"/>
32
+ <polygon fill="none" stroke="black" points="54.2,-104.8 54.2,-140.4 313.4,-140.4 313.4,-104.8 54.2,-104.8"/>
33
+ <text text-anchor="start" x="61.2" y="-118.2" font-family="Arial Bold" font-size="18.00">agentic_project_bundles</text>
34
+ <text text-anchor="start" x="237.14" y="-118.2" font-family="Arial" font-size="14.00">    </text>
35
+ <text text-anchor="start" x="268.26" y="-118.2" font-family="Arial" font-size="14.00" fill="#666666">[table]</text>
36
+ <polygon fill="none" stroke="black" points="54.2,-74 54.2,-104.8 313.4,-104.8 313.4,-74 54.2,-74"/>
37
+ <text text-anchor="start" x="61.2" y="-86.2" font-family="Arial" font-size="14.00">bundle_id </text>
38
+ <text text-anchor="start" x="125.82" y="-86.2" font-family="Arial" font-size="14.00" fill="#666666">[INTEGER]</text>
39
+ <polygon fill="none" stroke="black" points="54.2,-43.2 54.2,-74 313.4,-74 313.4,-43.2 54.2,-43.2"/>
40
+ <text text-anchor="start" x="61.2" y="-55.4" font-family="Arial" font-size="14.00">package_name </text>
41
+ <text text-anchor="start" x="160.83" y="-55.4" font-family="Arial" font-size="14.00" fill="#666666">[VARCHAR(214)]</text>
42
+ </g>
43
+ <!-- agentic_seed_import_runs&#45;&gt;agentic_project_bundles -->
44
+ <g id="edge2" class="edge">
45
+ <title>agentic_seed_import_runs:bundle_id&#45;&gt;agentic_project_bundles:bundle_id</title>
46
+ <path fill="none" stroke="black" d="M184.64,-254.64C194.15,-201.55 281.98,-239.65 313.4,-183.6 333.87,-147.08 356.27,-89.4 314.4,-89.4"/>
47
+ <polygon fill="black" stroke="black" points="184.65,-254.5 179.34,-264.1 184.21,-259.82 183.86,-264.13 183.86,-264.13 183.86,-264.13 184.21,-259.82 188.31,-264.84 184.65,-254.5"/>
48
+ </g>
49
+ <!-- agentic_seed_import_items -->
50
+ <g id="node2" class="node">
51
+ <title>agentic_seed_import_items</title>
52
+ <polygon fill="#efefef" stroke="none" points="43.2,-519.2 43.2,-554.8 324.4,-554.8 324.4,-519.2 43.2,-519.2"/>
53
+ <polygon fill="none" stroke="black" points="43.2,-519.2 43.2,-554.8 324.4,-554.8 324.4,-519.2 43.2,-519.2"/>
54
+ <text text-anchor="start" x="50.2" y="-532.6" font-family="Arial Bold" font-size="18.00">agentic_seed_import_items</text>
55
+ <text text-anchor="start" x="248.15" y="-532.6" font-family="Arial" font-size="14.00">    </text>
56
+ <text text-anchor="start" x="279.26" y="-532.6" font-family="Arial" font-size="14.00" fill="#666666">[table]</text>
57
+ <polygon fill="none" stroke="black" points="43.2,-488.4 43.2,-519.2 324.4,-519.2 324.4,-488.4 43.2,-488.4"/>
58
+ <text text-anchor="start" x="50.2" y="-500.6" font-family="Arial" font-size="14.00">seed_import_run_id </text>
59
+ <text text-anchor="start" x="177.83" y="-500.6" font-family="Arial" font-size="14.00" fill="#666666">[INTEGER]</text>
60
+ </g>
61
+ <!-- agentic_seed_import_items&#45;&gt;agentic_seed_import_runs -->
62
+ <g id="edge1" class="edge">
63
+ <title>agentic_seed_import_items:seed_import_run_id&#45;&gt;agentic_seed_import_runs:seed_import_run_id</title>
64
+ <path fill="none" stroke="black" d="M184.62,-477.32C194.29,-422.63 286.87,-466.36 320.4,-409.2 342.26,-371.94 364.61,-312 321.4,-312"/>
65
+ <polygon fill="black" stroke="black" points="184.64,-477.1 179.34,-486.7 184.21,-482.42 183.86,-486.73 183.86,-486.73 183.86,-486.73 184.21,-482.42 188.31,-487.43 184.64,-477.1"/>
66
+ </g>
67
+ </g>
68
+ </svg>
@@ -0,0 +1,66 @@
1
+ # agentic_user_requests
2
+
3
+ ## Description
4
+
5
+ 사용자 지시 원문과 접수 정보를 관리한다.
6
+
7
+ <details>
8
+ <summary><strong>Table Definition</strong></summary>
9
+
10
+ ```sql
11
+ CREATE TABLE agentic_user_requests (
12
+ -- 사용자 지시 식별자
13
+ request_id CHAR(36) PRIMARY KEY
14
+ CHECK (length(request_id) = 36),
15
+
16
+ -- 사용자 지시 원문
17
+ request_text TEXT NOT NULL,
18
+
19
+ -- 지시 유입 경로. cli, api, test 등
20
+ request_source VARCHAR(32) NOT NULL DEFAULT 'cli'
21
+ CHECK (request_source IN ('cli', 'api', 'test', 'system')),
22
+
23
+ -- 지시 context snapshot
24
+ context_json JSON
25
+ CHECK (context_json IS NULL OR json_valid(context_json)),
26
+
27
+ -- 지시 접수 시각
28
+ created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
29
+ )
30
+ ```
31
+
32
+ </details>
33
+
34
+ ## Columns
35
+
36
+ | Name | Type | Default | Nullable | Children | Comment |
37
+ | -------------- | ----------- | ----------------- | -------- | --------------------------------------------------- | --------------------- |
38
+ | request_id | CHAR(36) | | true | [agentic_execution_runs](agentic_execution_runs.md) | 사용자 지시 식별자 |
39
+ | request_text | TEXT | | false | | 사용자 지시 원문 |
40
+ | request_source | VARCHAR(32) | 'cli' | false | | 지시 유입 경로 |
41
+ | context_json | JSON | | true | | 지시 context snapshot |
42
+ | created_at | DATETIME | CURRENT_TIMESTAMP | false | | 지시 접수 시각 |
43
+
44
+ ## Constraints
45
+
46
+ | Name | Type | Definition |
47
+ | ---------------------------------------- | ----------- | ---------------------------------------------------------- |
48
+ | request_id | PRIMARY KEY | PRIMARY KEY (request_id) |
49
+ | sqlite_autoindex_agentic_user_requests_1 | PRIMARY KEY | PRIMARY KEY (request_id) |
50
+ | - | CHECK | CHECK (length(request_id) = 36) |
51
+ | - | CHECK | CHECK (request_source IN ('cli', 'api', 'test', 'system')) |
52
+ | - | CHECK | CHECK (context_json IS NULL OR json_valid(context_json)) |
53
+
54
+ ## Indexes
55
+
56
+ | Name | Definition |
57
+ | ---------------------------------------- | ------------------------ |
58
+ | sqlite_autoindex_agentic_user_requests_1 | PRIMARY KEY (request_id) |
59
+
60
+ ## Relations
61
+
62
+ ![er](agentic_user_requests.svg)
63
+
64
+ ---
65
+
66
+ > Generated by [tbls](https://github.com/k1LoW/tbls)
@@ -0,0 +1,52 @@
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: agentic_user_requests Pages: 1 -->
7
+ <svg width="446pt" height="413pt"
8
+ viewBox="0.00 0.00 446.04 412.56" 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 408.56)">
10
+ <title>agentic_user_requests</title>
11
+ <polygon fill="white" stroke="none" points="-4,4 -4,-408.56 442.04,-408.56 442.04,4 -4,4"/>
12
+ <!-- agentic_user_requests -->
13
+ <g id="node1" class="node">
14
+ <title>agentic_user_requests</title>
15
+ <polygon fill="#efefef" stroke="none" points="88.7,-82.36 88.7,-128.36 349.34,-128.36 349.34,-82.36 88.7,-82.36"/>
16
+ <polygon fill="none" stroke="black" points="88.7,-82.36 88.7,-128.36 349.34,-128.36 349.34,-82.36 88.7,-82.36"/>
17
+ <text text-anchor="start" x="104.92" y="-106.16" font-family="Arial Bold" font-size="18.00">agentic_user_requests</text>
18
+ <text text-anchor="start" x="263.86" y="-106.16" font-family="Arial" font-size="14.00">    </text>
19
+ <text text-anchor="start" x="294.98" y="-106.16" font-family="Arial" font-size="14.00" fill="#666666">[table]</text>
20
+ <text text-anchor="start" x="108.17" y="-91.76" font-family="Arial" font-size="14.00" fill="#333333">사용자 지시 원문과 접수 정보를 관리한다.</text>
21
+ <polygon fill="none" stroke="black" points="88.7,-51.56 88.7,-82.36 349.34,-82.36 349.34,-51.56 88.7,-51.56"/>
22
+ <text text-anchor="start" x="95.7" y="-63.76" font-family="Arial" font-size="14.00">request_id </text>
23
+ <text text-anchor="start" x="164.97" y="-63.76" font-family="Arial" font-size="14.00" fill="#666666">[CHAR(36)]</text>
24
+ <text text-anchor="start" x="237.32" y="-63.76" font-family="Arial" font-size="14.00"> 사용자 지시 식별자</text>
25
+ <polygon fill="none" stroke="black" stroke-width="3" points="87.2,-50.06 87.2,-129.86 350.84,-129.86 350.84,-50.06 87.2,-50.06"/>
26
+ </g>
27
+ <!-- agentic_execution_runs -->
28
+ <g id="node2" class="node">
29
+ <title>agentic_execution_runs</title>
30
+ <polygon fill="#efefef" stroke="none" points="43.2,-315.36 43.2,-361.36 394.84,-361.36 394.84,-315.36 43.2,-315.36"/>
31
+ <polygon fill="none" stroke="black" points="43.2,-315.36 43.2,-361.36 394.84,-361.36 394.84,-315.36 43.2,-315.36"/>
32
+ <text text-anchor="start" x="98.92" y="-339.16" font-family="Arial Bold" font-size="18.00">agentic_execution_runs</text>
33
+ <text text-anchor="start" x="269.86" y="-339.16" font-family="Arial" font-size="14.00">    </text>
34
+ <text text-anchor="start" x="300.98" y="-339.16" font-family="Arial" font-size="14.00" fill="#666666">[table]</text>
35
+ <text text-anchor="start" x="50.2" y="-324.76" font-family="Arial" font-size="14.00" fill="#333333">사용자 지시 또는 runtime command의 실행 단위를 관리한다.</text>
36
+ <polygon fill="none" stroke="black" points="43.2,-284.56 43.2,-315.36 394.84,-315.36 394.84,-284.56 43.2,-284.56"/>
37
+ <text text-anchor="start" x="50.2" y="-296.76" font-family="Arial" font-size="14.00">run_id </text>
38
+ <text text-anchor="start" x="93.01" y="-296.76" font-family="Arial" font-size="14.00" fill="#666666">[CHAR(36)]</text>
39
+ <text text-anchor="start" x="165.35" y="-296.76" font-family="Arial" font-size="14.00"> 실행 식별자</text>
40
+ <polygon fill="none" stroke="black" points="43.2,-253.76 43.2,-284.56 394.84,-284.56 394.84,-253.76 43.2,-253.76"/>
41
+ <text text-anchor="start" x="50.2" y="-265.96" font-family="Arial" font-size="14.00">request_id </text>
42
+ <text text-anchor="start" x="119.47" y="-265.96" font-family="Arial" font-size="14.00" fill="#666666">[CHAR(36)]</text>
43
+ <text text-anchor="start" x="191.81" y="-265.96" font-family="Arial" font-size="14.00"> 사용자 지시 식별자</text>
44
+ </g>
45
+ <!-- agentic_execution_runs&#45;&gt;agentic_user_requests -->
46
+ <g id="edge1" class="edge">
47
+ <title>agentic_execution_runs:request_id&#45;&gt;agentic_user_requests:request_id</title>
48
+ <path fill="none" stroke="black" d="M219.72,-242.59C230.01,-173.51 350.75,-243.39 395.54,-174.56 425.35,-128.74 434.08,-90.32 395.54,-51.56 340.22,4.07 219.02,27.9 219.02,-50.56"/>
49
+ <polygon fill="black" stroke="black" points="219.73,-242.45 214.55,-252.11 219.36,-247.77 219.07,-252.09 219.07,-252.09 219.07,-252.09 219.36,-247.77 223.53,-252.73 219.73,-242.45"/>
50
+ </g>
51
+ </g>
52
+ </svg>