agentplane 0.3.22 → 0.3.24
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/assets/policy/incidents.md +1 -0
- package/dist/.build-manifest.json +83 -28
- package/dist/cli/run-cli/commands/init/orchestrate-v2.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/init/orchestrate-v2.js +10 -2
- package/dist/cli/run-cli/commands/init/orchestrate.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/init/orchestrate.js +10 -2
- package/dist/cli/run-cli/commands/init/recipes.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/init/recipes.js +3 -1
- package/dist/cli.js +337 -337
- package/dist/commands/guard/impl/commit-refresh.d.ts +25 -0
- package/dist/commands/guard/impl/commit-refresh.d.ts.map +1 -0
- package/dist/commands/guard/impl/commit-refresh.js +116 -0
- package/dist/commands/guard/impl/commit-stage.d.ts +21 -0
- package/dist/commands/guard/impl/commit-stage.d.ts.map +1 -0
- package/dist/commands/guard/impl/commit-stage.js +43 -0
- package/dist/commands/guard/impl/commit.d.ts.map +1 -1
- package/dist/commands/guard/impl/commit.js +10 -150
- package/dist/commands/hooks/install.d.ts +4 -0
- package/dist/commands/hooks/install.d.ts.map +1 -1
- package/dist/commands/hooks/install.js +19 -0
- package/dist/commands/hooks/run.pre-push.d.ts.map +1 -1
- package/dist/commands/hooks/run.pre-push.js +5 -2
- package/dist/commands/recipes/impl/installed-recipes.d.ts +5 -1
- package/dist/commands/recipes/impl/installed-recipes.d.ts.map +1 -1
- package/dist/commands/recipes/impl/installed-recipes.js +38 -19
- package/dist/commands/release/apply.mutation.d.ts.map +1 -1
- package/dist/commands/release/apply.mutation.js +5 -4
- package/dist/commands/release/apply.pipeline/mutation.d.ts.map +1 -1
- package/dist/commands/release/apply.pipeline/mutation.js +6 -1
- package/dist/commands/release/apply.preflight.d.ts +4 -29
- package/dist/commands/release/apply.preflight.d.ts.map +1 -1
- package/dist/commands/release/apply.preflight.git.d.ts +7 -0
- package/dist/commands/release/apply.preflight.git.d.ts.map +1 -0
- package/dist/commands/release/apply.preflight.git.js +138 -0
- package/dist/commands/release/apply.preflight.js +4 -368
- package/dist/commands/release/apply.preflight.package.d.ts +7 -0
- package/dist/commands/release/apply.preflight.package.d.ts.map +1 -0
- package/dist/commands/release/apply.preflight.package.js +69 -0
- package/dist/commands/release/apply.preflight.plan.d.ts +16 -0
- package/dist/commands/release/apply.preflight.plan.d.ts.map +1 -0
- package/dist/commands/release/apply.preflight.plan.js +92 -0
- package/dist/commands/release/apply.preflight.publish.d.ts +4 -0
- package/dist/commands/release/apply.preflight.publish.d.ts.map +1 -0
- package/dist/commands/release/apply.preflight.publish.js +81 -0
- package/dist/commands/task/migrate-doc.d.ts.map +1 -1
- package/dist/commands/task/migrate-doc.js +25 -248
- package/dist/commands/task/migrate-doc.readme.d.ts +8 -0
- package/dist/commands/task/migrate-doc.readme.d.ts.map +1 -0
- package/dist/commands/task/migrate-doc.readme.js +225 -0
- package/dist/runtime/prompt-modules/index.d.ts +3 -0
- package/dist/runtime/prompt-modules/index.d.ts.map +1 -0
- package/dist/runtime/prompt-modules/index.js +1 -0
- package/dist/runtime/prompt-modules/model.d.ts +89 -0
- package/dist/runtime/prompt-modules/model.d.ts.map +1 -0
- package/dist/runtime/prompt-modules/model.js +1 -0
- package/dist/runtime/prompt-modules/mutations.d.ts +103 -0
- package/dist/runtime/prompt-modules/mutations.d.ts.map +1 -0
- package/dist/runtime/prompt-modules/mutations.js +1 -0
- package/dist/shared/runtime-env.d.ts +3 -0
- package/dist/shared/runtime-env.d.ts.map +1 -0
- package/dist/shared/runtime-env.js +73 -0
- package/package.json +3 -3
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
- id: INC-20260420-01 | date: 2026-04-20 | scope: Audit CLI path resolution for global-install style layouts, fix any repo-local script path defects, and add regression tests that fail when installed CLI code resolves repository scripts from the global package location. | tags: bugfix, code, hooks | match: bugfix, code, hooks, audit, cli, path, resolution, for, global, install, style, layouts, fix, any, repo, local | failure: Audited import.meta.url/fileURLToPath candidates touching scripts/bin paths. The real repo-script risk was pre-push fallback returning a non-existent global prefix path; workflow-playbook's bin path is package-bundled and covered by existing workflow tests. | advice: Pre-push script resolution now returns repository-local script first, existing bundled fallback second, otherwise null with an actionable repository-local error message. | rule: Analogous Audit CLI path resolution for global-install style layouts, fix any repo-local script path defects, and add regression tests that fail when installed CLI code resolves repository scripts from the global package location. work MUST review and apply the recorded external incident advice before retrying. | evidence: task 202604200850-9T6FTC; commit d30a706ce568 | enforcement: manual | fixability: external | state: open
|
|
15
15
|
- id: INC-20260422-01 | date: 2026-04-22 | scope: Runner prompt assembly only. Do not cache task-specific prompt content or mutable task state. | tags: cache, perf, runner | match: cache, perf, runner, prompt, assembly, only, not, task, specific, content, mutable, state, source, avoid, repeated, scanning | failure: Cached bundled agent templates, bundled policy gateway templates, and framework runner prompt assembly; repo-local policy/profile reads use mtime/size validation so changed files are not stale. | advice: Added regression coverage for repeated static prompt reuse and repo-local prompt cache invalidation. | rule: Analogous Runner prompt assembly only. Do not cache task-specific prompt content or mutable task state. work MUST review and apply the recorded external incident advice before retrying. | evidence: task 202604220255-AQHZT4; commit 268c42af4447 | enforcement: manual | fixability: external | state: open
|
|
16
16
|
- id: INC-20260422-02 | date: 2026-04-22 | scope: Publish the next patch release containing the init cached recipe manifest compatibility fix and restored interactive init ASCII logo. | tags: ci, init, release | match: ci, init, release, publish, the, next, patch, containing, cached, recipe, manifest, compatibility, fix, and, restored, interactive | failure: Pre-push release-mode hook failed when inherited test execution changed shared git core.bare=true; restored local core.bare=false and confirmed remote tag v0.3.19 points at main merge commit 45ba9c57. | advice: Use hosted release workflow as publication evidence; record local hook pollution as a release-process follow-up rather than blocking this hotfix. | rule: Analogous Publish the next patch release containing the init cached recipe manifest compatibility fix and restored interactive init ASCII logo. work MUST review and apply the recorded external incident advice before retrying. | evidence: task 202604221605-SQYRNQ; commit 45ba9c57f939 | enforcement: manual | fixability: external | state: open
|
|
17
|
+
- id: INC-20260422-03 | date: 2026-04-22 | scope: Create an executable v0.4 implementation task graph for modular prompt assembly, grouped into epics with atomic tasks and dependencies. | tags: architecture, planning, prompt-assembly, v0.4 | match: architecture, planning, prompt-assembly, v0.4, create, executable, implementation, task, graph, for, modular, prompt, assembly, grouped, into, epics | failure: task graph contains 30 new planned tasks plus the active decomposition task | advice: Validated with task list filtering, task file count, agentplane doctor, and git diff whitespace check | rule: Analogous Create an executable v0.4 implementation task graph for modular prompt assembly, grouped into epics with atomic tasks and dependencies. work MUST review and apply the recorded external incident advice before retrying. | evidence: task 202604221536-1Z90V4; commit 3047ee2197c0 | enforcement: manual | fixability: external | state: open
|
|
17
18
|
- id: INC-20260423-01 | date: 2026-04-23 | scope: commit allowlist staging behavior and diagnostics for active task artifacts. Out of scope: broad commit policy rewrites or protected path model changes. | tags: code, git, workflow | match: code, git, workflow, commit, allowlist, staging, behavior, and, diagnostics, for, active, task, artifacts, out, scope, broad | failure: Ran bun run test:project -- cli-core packages/agentplane/src/cli/run-cli.core.guard.commit-wrapper.test.ts; bun run test:project -- guard; Prettier check for changed files. | advice: Added non-empty-index staging before guard validation and regression coverage. | rule: Analogous commit allowlist staging behavior and diagnostics for active task artifacts. Out of scope: broad commit policy rewrites or protected path model changes. work MUST review and apply the recorded external incident advice before retrying. | evidence: task 202604230838-598K1H; commit afa741361351 | enforcement: manual | fixability: external | state: open
|
|
18
19
|
- id: INC-20260423-02 | date: 2026-04-23 | scope: generated guidance and default examples for test commands. Out of scope: rewriting historical release notes or changing user-supplied task verify commands. | tags: code, guidance, testing | match: code, guidance, testing, generated, and, default, examples, for, test, commands, out, scope, rewriting, historical, release, notes | failure: Ran bun run test:project -- cli-core packages/agentplane/src/cli/run-cli.core.tasks.scaffold-derive.test.ts; bun run workflows:command-check; bun run docs:cli:check; Prettier check for changed files. | advice: Updated task derive example/test fixture and expanded workflow command contract scanning to command specs. | rule: Analogous generated guidance and default examples for test commands. Out of scope: rewriting historical release notes or changing user-supplied task verify commands. work MUST review and apply the recorded external incident advice before retrying. | evidence: task 202604230839-Y92ZJJ; commit 7e088c735372 | enforcement: manual | fixability: external | state: open
|
|
19
20
|
- id: INC-20260423-03 | date: 2026-04-23 | scope: Move managed hook shim readiness checks out of doctor/workspace.ts so hotspot gate passes after installed-user diagnostics additions. | tags: code, quality | match: code, quality, move, managed, hook, shim, readiness, checks, out, doctor, workspace, hotspot, gate, passes, after, installed | failure: Ran bun run hotspots:check; bun run test:project -- agentplane packages/agentplane/src/commands/doctor.command.runtime.test.ts; Prettier check for changed files. | advice: Extracted hook readiness diagnostics to doctor/hook-readiness.ts and updated oversized test baseline for already-grown warning files. | rule: Analogous Move managed hook shim readiness checks out of doctor/workspace.ts so hotspot gate passes after installed-user diagnostics additions. work MUST review and apply the recorded external incident advice before retrying. | evidence: task 202604230949-E1BG2Q; commit 2fc331ddf503 | enforcement: manual | fixability: external | state: open
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema_version": 1,
|
|
3
3
|
"package_dir": "/home/runner/work/agentplane/agentplane/packages/agentplane",
|
|
4
|
-
"generated_at": "2026-04-
|
|
5
|
-
"git_head": "
|
|
6
|
-
"src_cli_mtime_ms":
|
|
4
|
+
"generated_at": "2026-04-24T08:32:03.447Z",
|
|
5
|
+
"git_head": "bcfcfab7bfccc7532fe43a64b68d879c715f0c7e",
|
|
6
|
+
"src_cli_mtime_ms": 1777019399006.4802,
|
|
7
7
|
"src_index_mtime_ms": null,
|
|
8
|
-
"dist_cli_mtime_ms":
|
|
8
|
+
"dist_cli_mtime_ms": 1777019523224.9963,
|
|
9
9
|
"dist_index_mtime_ms": null,
|
|
10
|
-
"tsbuildinfo_mtime_ms":
|
|
10
|
+
"tsbuildinfo_mtime_ms": 1777019520925.003,
|
|
11
11
|
"watched_runtime_paths": [
|
|
12
12
|
"src",
|
|
13
13
|
"bin/agentplane.js",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"bin/runtime-context.js",
|
|
16
16
|
"bin/stale-dist-policy.js"
|
|
17
17
|
],
|
|
18
|
-
"watched_runtime_snapshot_hash": "
|
|
18
|
+
"watched_runtime_snapshot_hash": "67845ab7446a8aef7a9cbf5b81fb83820ae6ccee4f1136c152c8a4a1001e9249",
|
|
19
19
|
"watched_runtime_files": [
|
|
20
20
|
{
|
|
21
21
|
"path": "bin/agentplane.js",
|
|
@@ -539,13 +539,13 @@
|
|
|
539
539
|
},
|
|
540
540
|
{
|
|
541
541
|
"path": "src/cli/run-cli/commands/init/orchestrate-v2.ts",
|
|
542
|
-
"sha256": "
|
|
543
|
-
"size_bytes":
|
|
542
|
+
"sha256": "b92df05a96c58d97904dbe9232d8df1aef00b23385c6ae3ac8564c243280a47e",
|
|
543
|
+
"size_bytes": 12335
|
|
544
544
|
},
|
|
545
545
|
{
|
|
546
546
|
"path": "src/cli/run-cli/commands/init/orchestrate.ts",
|
|
547
|
-
"sha256": "
|
|
548
|
-
"size_bytes":
|
|
547
|
+
"sha256": "78e53025c8380b0f452d9be9c395b98f803bb7010eaf77567a19f493df96070b",
|
|
548
|
+
"size_bytes": 15378
|
|
549
549
|
},
|
|
550
550
|
{
|
|
551
551
|
"path": "src/cli/run-cli/commands/init/parsers.ts",
|
|
@@ -564,8 +564,8 @@
|
|
|
564
564
|
},
|
|
565
565
|
{
|
|
566
566
|
"path": "src/cli/run-cli/commands/init/recipes.ts",
|
|
567
|
-
"sha256": "
|
|
568
|
-
"size_bytes":
|
|
567
|
+
"sha256": "5be2675d5f6a6b2a7b7748e62c1150ce5fcf4489c65554ab0f8c50b2311d996d",
|
|
568
|
+
"size_bytes": 1949
|
|
569
569
|
},
|
|
570
570
|
{
|
|
571
571
|
"path": "src/cli/run-cli/commands/init/spec.ts",
|
|
@@ -972,10 +972,20 @@
|
|
|
972
972
|
"sha256": "62ef6349f9c819f42c19eec66641372a78e18b51df719498be1c6e09baa066da",
|
|
973
973
|
"size_bytes": 6353
|
|
974
974
|
},
|
|
975
|
+
{
|
|
976
|
+
"path": "src/commands/guard/impl/commit-refresh.ts",
|
|
977
|
+
"sha256": "ce607b8bc1adeaa28b229c76b69b6e3e4b02ae47ba77e5ece5920a170dd2cec6",
|
|
978
|
+
"size_bytes": 4652
|
|
979
|
+
},
|
|
980
|
+
{
|
|
981
|
+
"path": "src/commands/guard/impl/commit-stage.ts",
|
|
982
|
+
"sha256": "e40d84dc54e16eb7052d59c41aa7153586080565fc54b67d81adda52446be5e4",
|
|
983
|
+
"size_bytes": 2054
|
|
984
|
+
},
|
|
975
985
|
{
|
|
976
986
|
"path": "src/commands/guard/impl/commit.ts",
|
|
977
|
-
"sha256": "
|
|
978
|
-
"size_bytes":
|
|
987
|
+
"sha256": "c5c0455ab482783e66ad2cf9de1616a1484d72b0b24dec548d56dd272dcf9e5e",
|
|
988
|
+
"size_bytes": 11001
|
|
979
989
|
},
|
|
980
990
|
{
|
|
981
991
|
"path": "src/commands/guard/impl/env.ts",
|
|
@@ -1024,8 +1034,8 @@
|
|
|
1024
1034
|
},
|
|
1025
1035
|
{
|
|
1026
1036
|
"path": "src/commands/hooks/install.ts",
|
|
1027
|
-
"sha256": "
|
|
1028
|
-
"size_bytes":
|
|
1037
|
+
"sha256": "3685c30eaeff154d66c59510a9e9aafed66db5b27884ed1c807b0894136b0788",
|
|
1038
|
+
"size_bytes": 6493
|
|
1029
1039
|
},
|
|
1030
1040
|
{
|
|
1031
1041
|
"path": "src/commands/hooks/run.command.ts",
|
|
@@ -1049,8 +1059,8 @@
|
|
|
1049
1059
|
},
|
|
1050
1060
|
{
|
|
1051
1061
|
"path": "src/commands/hooks/run.pre-push.ts",
|
|
1052
|
-
"sha256": "
|
|
1053
|
-
"size_bytes":
|
|
1062
|
+
"sha256": "eb1b5de8c4a547d092293aa00168f46937f056606eb9990ee5448320111c8814",
|
|
1063
|
+
"size_bytes": 11933
|
|
1054
1064
|
},
|
|
1055
1065
|
{
|
|
1056
1066
|
"path": "src/commands/hooks/run.ts",
|
|
@@ -1419,8 +1429,8 @@
|
|
|
1419
1429
|
},
|
|
1420
1430
|
{
|
|
1421
1431
|
"path": "src/commands/recipes/impl/installed-recipes.ts",
|
|
1422
|
-
"sha256": "
|
|
1423
|
-
"size_bytes":
|
|
1432
|
+
"sha256": "b195acddd79f73eb33ffefc87df8a90f868efb4aca664c37d1fbe06d43d58fd1",
|
|
1433
|
+
"size_bytes": 4633
|
|
1424
1434
|
},
|
|
1425
1435
|
{
|
|
1426
1436
|
"path": "src/commands/recipes/impl/mutation-transaction.ts",
|
|
@@ -1519,8 +1529,8 @@
|
|
|
1519
1529
|
},
|
|
1520
1530
|
{
|
|
1521
1531
|
"path": "src/commands/release/apply.mutation.ts",
|
|
1522
|
-
"sha256": "
|
|
1523
|
-
"size_bytes":
|
|
1532
|
+
"sha256": "ff24f1bf1f4725a468a7dffee4f56eeff8b8e1863eeaaa348988e0807deb0895",
|
|
1533
|
+
"size_bytes": 6281
|
|
1524
1534
|
},
|
|
1525
1535
|
{
|
|
1526
1536
|
"path": "src/commands/release/apply.pipeline.ts",
|
|
@@ -1534,8 +1544,8 @@
|
|
|
1534
1544
|
},
|
|
1535
1545
|
{
|
|
1536
1546
|
"path": "src/commands/release/apply.pipeline/mutation.ts",
|
|
1537
|
-
"sha256": "
|
|
1538
|
-
"size_bytes":
|
|
1547
|
+
"sha256": "4e0b6e850979170484f06bc762b3386b4dc0af3f7a0dc85fbe3f319e919ff1ca",
|
|
1548
|
+
"size_bytes": 4434
|
|
1539
1549
|
},
|
|
1540
1550
|
{
|
|
1541
1551
|
"path": "src/commands/release/apply.pipeline/preflight.ts",
|
|
@@ -1552,10 +1562,30 @@
|
|
|
1552
1562
|
"sha256": "8b249eaefd45928c67c1acd7a82bcadb96c649a5ea9c3ce2fc6e0919fe5a07ef",
|
|
1553
1563
|
"size_bytes": 6798
|
|
1554
1564
|
},
|
|
1565
|
+
{
|
|
1566
|
+
"path": "src/commands/release/apply.preflight.git.ts",
|
|
1567
|
+
"sha256": "edab983d2b65f8ec8599ec0bf874efe15fe326b66dec337e4f9c9a0537b75f6c",
|
|
1568
|
+
"size_bytes": 6457
|
|
1569
|
+
},
|
|
1570
|
+
{
|
|
1571
|
+
"path": "src/commands/release/apply.preflight.package.ts",
|
|
1572
|
+
"sha256": "1a8b3794ffaa9544b1dab6a13560a258ac7877a32c700b06d0acd18b79d550b2",
|
|
1573
|
+
"size_bytes": 3158
|
|
1574
|
+
},
|
|
1575
|
+
{
|
|
1576
|
+
"path": "src/commands/release/apply.preflight.plan.ts",
|
|
1577
|
+
"sha256": "a27ea08fa8101ba4aa53194cdd41f653213c26d7fed5d9ad9ba6d9da878fb35d",
|
|
1578
|
+
"size_bytes": 3581
|
|
1579
|
+
},
|
|
1580
|
+
{
|
|
1581
|
+
"path": "src/commands/release/apply.preflight.publish.ts",
|
|
1582
|
+
"sha256": "61976d1a40356056f2f7bfcbc54c81d37cff4a9542d6f2562f744482a4312288",
|
|
1583
|
+
"size_bytes": 4797
|
|
1584
|
+
},
|
|
1555
1585
|
{
|
|
1556
1586
|
"path": "src/commands/release/apply.preflight.ts",
|
|
1557
|
-
"sha256": "
|
|
1558
|
-
"size_bytes":
|
|
1587
|
+
"sha256": "1adc5b661c4bf39a3879211bcbc31cd1222559e6ff1380e40c86b0c82f868513",
|
|
1588
|
+
"size_bytes": 671
|
|
1559
1589
|
},
|
|
1560
1590
|
{
|
|
1561
1591
|
"path": "src/commands/release/apply.reporting.ts",
|
|
@@ -2027,10 +2057,15 @@
|
|
|
2027
2057
|
"sha256": "bd333d50b719bd53b1b87f3c5f8b95ab22ce09bf869263dcf510ae92d3ad9b1b",
|
|
2028
2058
|
"size_bytes": 2595
|
|
2029
2059
|
},
|
|
2060
|
+
{
|
|
2061
|
+
"path": "src/commands/task/migrate-doc.readme.ts",
|
|
2062
|
+
"sha256": "5eae88dbee7e9f9b175053a482649453526799a7f9e52752009f02a714cdeac4",
|
|
2063
|
+
"size_bytes": 9578
|
|
2064
|
+
},
|
|
2030
2065
|
{
|
|
2031
2066
|
"path": "src/commands/task/migrate-doc.ts",
|
|
2032
|
-
"sha256": "
|
|
2033
|
-
"size_bytes":
|
|
2067
|
+
"sha256": "25d6abe396662984c426d4843d6e3abed159964cf218823bb01c796619d76884",
|
|
2068
|
+
"size_bytes": 5938
|
|
2034
2069
|
},
|
|
2035
2070
|
{
|
|
2036
2071
|
"path": "src/commands/task/migrate.command.ts",
|
|
@@ -2962,6 +2997,21 @@
|
|
|
2962
2997
|
"sha256": "7724861b7948e3b023166e592aae030d72a3312a8bb4941fc9781901cddd08be",
|
|
2963
2998
|
"size_bytes": 2207
|
|
2964
2999
|
},
|
|
3000
|
+
{
|
|
3001
|
+
"path": "src/runtime/prompt-modules/index.ts",
|
|
3002
|
+
"sha256": "e18470274cd5553af355ded4e9628b3262c06cbc36053d23be03393b21288059",
|
|
3003
|
+
"size_bytes": 1186
|
|
3004
|
+
},
|
|
3005
|
+
{
|
|
3006
|
+
"path": "src/runtime/prompt-modules/model.ts",
|
|
3007
|
+
"sha256": "28db918469eacd424b2f76a58b4a7f372aa4f80831acaa2aa0a0315447e2fe3a",
|
|
3008
|
+
"size_bytes": 3604
|
|
3009
|
+
},
|
|
3010
|
+
{
|
|
3011
|
+
"path": "src/runtime/prompt-modules/mutations.ts",
|
|
3012
|
+
"sha256": "490227260676592f03e82a32744607d8308986387c55af219691e082fd4cfd4d",
|
|
3013
|
+
"size_bytes": 3666
|
|
3014
|
+
},
|
|
2965
3015
|
{
|
|
2966
3016
|
"path": "src/runtime/protocol/index.ts",
|
|
2967
3017
|
"sha256": "7e34551db1b8ff2ce6d14a94d6f0345f9b2e6c35082cf5c0b0b3356d10564f59",
|
|
@@ -3047,6 +3097,11 @@
|
|
|
3047
3097
|
"sha256": "5fb86dfa71d8b1db11ff24e32cac43eb7ce2a3d7b0d7c084afb9aacd4160e2eb",
|
|
3048
3098
|
"size_bytes": 4218
|
|
3049
3099
|
},
|
|
3100
|
+
{
|
|
3101
|
+
"path": "src/shared/runtime-env.ts",
|
|
3102
|
+
"sha256": "9f15ef8762db4420e74c5c187cbfdc0ce930246633c67022332723b9625589c5",
|
|
3103
|
+
"size_bytes": 2406
|
|
3104
|
+
},
|
|
3050
3105
|
{
|
|
3051
3106
|
"path": "src/shared/strings.ts",
|
|
3052
3107
|
"sha256": "b266926e09aac485e48f559f81acce7cce89913426e322bc37ebf7d930a08961",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrate-v2.d.ts","sourceRoot":"","sources":["../../../../../src/cli/run-cli/commands/init/orchestrate-v2.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"orchestrate-v2.d.ts","sourceRoot":"","sources":["../../../../../src/cli/run-cli/commands/init/orchestrate-v2.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AASzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AA2D7C,wBAAsB,SAAS,CAAC,IAAI,EAAE;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,UAAU,CAAC;IAClB,IAAI,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;CAC/B,GAAG,OAAO,CAAC,MAAM,CAAC,CA6OlB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
2
|
import { buildExecutionProfile } from "@agentplaneorg/core/config";
|
|
3
3
|
import { setPinnedBaseBranch } from "@agentplaneorg/core/git";
|
|
4
|
+
import { collectHooksInstallConflicts } from "../../../../commands/hooks/install.js";
|
|
4
5
|
import { cmdHooksInstall, ensureInitCommit } from "../../../../commands/workflow.js";
|
|
5
6
|
import { getVersion } from "../../../../meta/version.js";
|
|
6
7
|
import { CliError } from "../../../../shared/errors.js";
|
|
@@ -108,10 +109,10 @@ export async function cmdInitV2(opts) {
|
|
|
108
109
|
path.join(resolved.agentplaneDir, "backends", backend.backend),
|
|
109
110
|
];
|
|
110
111
|
const initFiles = [configPath, backendPath];
|
|
111
|
-
const
|
|
112
|
+
const initConflicts = await collectInitConflicts({ initDirs, initFiles });
|
|
112
113
|
const gatewayPath = path.join(resolved.gitRoot, policyGatewayFileName(policy.policyGateway));
|
|
113
114
|
const agentsMissing = !(await fileExists(gatewayPath));
|
|
114
|
-
if (
|
|
115
|
+
if (initConflicts.length > 0 && agentsMissing) {
|
|
115
116
|
await ensureAgentplaneDirs(resolved.agentplaneDir, backend.backend);
|
|
116
117
|
await ensureAgentsFiles({
|
|
117
118
|
gitRoot: resolved.gitRoot,
|
|
@@ -122,6 +123,13 @@ export async function cmdInitV2(opts) {
|
|
|
122
123
|
backendPathAbs: backendPath,
|
|
123
124
|
});
|
|
124
125
|
}
|
|
126
|
+
const hookConflicts = advanced.hooks
|
|
127
|
+
? await collectHooksInstallConflicts({
|
|
128
|
+
gitRoot: resolved.gitRoot,
|
|
129
|
+
agentplaneDir: resolved.agentplaneDir,
|
|
130
|
+
})
|
|
131
|
+
: [];
|
|
132
|
+
const conflicts = [...new Set([...initConflicts, ...hookConflicts])];
|
|
125
133
|
const conflictChoice = opts.flags.force || opts.flags.backup
|
|
126
134
|
? null
|
|
127
135
|
: await promptConflictResolverStep({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrate.d.ts","sourceRoot":"","sources":["../../../../../src/cli/run-cli/commands/init/orchestrate.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"orchestrate.d.ts","sourceRoot":"","sources":["../../../../../src/cli/run-cli/commands/init/orchestrate.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAazD,OAAO,KAAK,EAAsB,UAAU,EAAsB,MAAM,YAAY,CAAC;AAsCrF,wBAAsB,OAAO,CAAC,IAAI,EAAE;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,UAAU,CAAC;IAClB,IAAI,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;CAC/B,GAAG,OAAO,CAAC,MAAM,CAAC,CAsUlB"}
|
|
@@ -2,6 +2,7 @@ import path from "node:path";
|
|
|
2
2
|
import { buildExecutionProfile } from "@agentplaneorg/core/config";
|
|
3
3
|
import { setPinnedBaseBranch } from "@agentplaneorg/core/git";
|
|
4
4
|
import { cmdHooksInstall, ensureInitCommit } from "../../../../commands/workflow.js";
|
|
5
|
+
import { collectHooksInstallConflicts } from "../../../../commands/hooks/install.js";
|
|
5
6
|
import { getVersion } from "../../../../meta/version.js";
|
|
6
7
|
import { CliError } from "../../../../shared/errors.js";
|
|
7
8
|
import { policyGatewayFileName } from "../../../../shared/policy-gateway.js";
|
|
@@ -209,10 +210,10 @@ export async function cmdInit(opts) {
|
|
|
209
210
|
path.join(resolved.agentplaneDir, "backends", backend),
|
|
210
211
|
];
|
|
211
212
|
const initFiles = [configPath, backendPath];
|
|
212
|
-
const
|
|
213
|
+
const initConflicts = await collectInitConflicts({ initDirs, initFiles });
|
|
213
214
|
const gatewayPath = path.join(resolved.gitRoot, policyGatewayFileName(policyGateway));
|
|
214
215
|
const agentsMissing = !(await fileExists(gatewayPath));
|
|
215
|
-
if (
|
|
216
|
+
if (initConflicts.length > 0 && agentsMissing) {
|
|
216
217
|
await ensureAgentplaneDirs(resolved.agentplaneDir, backend);
|
|
217
218
|
await ensureAgentsFiles({
|
|
218
219
|
gitRoot: resolved.gitRoot,
|
|
@@ -223,6 +224,13 @@ export async function cmdInit(opts) {
|
|
|
223
224
|
backendPathAbs: backendPath,
|
|
224
225
|
});
|
|
225
226
|
}
|
|
227
|
+
const hookConflicts = hooks
|
|
228
|
+
? await collectHooksInstallConflicts({
|
|
229
|
+
gitRoot: resolved.gitRoot,
|
|
230
|
+
agentplaneDir: resolved.agentplaneDir,
|
|
231
|
+
})
|
|
232
|
+
: [];
|
|
233
|
+
const conflicts = [...new Set([...initConflicts, ...hookConflicts])];
|
|
226
234
|
await handleInitConflicts({
|
|
227
235
|
gitRoot: resolved.gitRoot,
|
|
228
236
|
conflicts,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipes.d.ts","sourceRoot":"","sources":["../../../../../src/cli/run-cli/commands/init/recipes.ts"],"names":[],"mappings":"AAKA,KAAK,gBAAgB,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"recipes.d.ts","sourceRoot":"","sources":["../../../../../src/cli/run-cli/commands/init/recipes.ts"],"names":[],"mappings":"AAKA,KAAK,gBAAgB,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC,CASrE;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,gBAAgB,EAAE,GAAG,MAAM,CAK3E;AAED,wBAAsB,8BAA8B,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAWrF;AAED,wBAAsB,qBAAqB,CAAC,IAAI,EAAE;IAChD,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,OAAO,CAAC,IAAI,CAAC,CAWhB"}
|
|
@@ -3,7 +3,9 @@ import { readAndMigrateInstalledRecipesFile } from "../../../../commands/recipes
|
|
|
3
3
|
import { resolveInstalledRecipesPath } from "../../../../commands/recipes/impl/paths.js";
|
|
4
4
|
import { CliError } from "../../../../shared/errors.js";
|
|
5
5
|
export async function listCachedRecipes() {
|
|
6
|
-
const cached = await readAndMigrateInstalledRecipesFile(resolveInstalledRecipesPath()
|
|
6
|
+
const cached = await readAndMigrateInstalledRecipesFile(resolveInstalledRecipesPath(), {
|
|
7
|
+
dropInvalidEntries: true,
|
|
8
|
+
});
|
|
7
9
|
return cached.recipes.map((recipe) => ({
|
|
8
10
|
id: recipe.id,
|
|
9
11
|
summary: recipe.manifest.summary,
|