agentplane 0.3.20 → 0.3.22
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 +3 -0
- package/dist/.build-manifest.json +37 -32
- package/dist/cli/bootstrap-guide.d.ts +1 -0
- package/dist/cli/bootstrap-guide.d.ts.map +1 -1
- package/dist/cli/bootstrap-guide.js +3 -2
- package/dist/cli/command-guide.d.ts.map +1 -1
- package/dist/cli/command-guide.js +5 -4
- package/dist/cli/run-cli/commands/init/recipes.js +2 -2
- package/dist/cli.js +351 -336
- package/dist/commands/branch/work-start.hook-shim.d.ts.map +1 -1
- package/dist/commands/branch/work-start.hook-shim.js +16 -4
- package/dist/commands/doctor/hook-readiness.d.ts +2 -0
- package/dist/commands/doctor/hook-readiness.d.ts.map +1 -0
- package/dist/commands/doctor/hook-readiness.js +171 -0
- package/dist/commands/doctor/workspace.d.ts.map +1 -1
- package/dist/commands/doctor/workspace.js +2 -1
- package/dist/commands/guard/impl/commit.d.ts.map +1 -1
- package/dist/commands/guard/impl/commit.js +26 -0
- package/dist/commands/hooks/install.d.ts.map +1 -1
- package/dist/commands/hooks/install.js +16 -4
- package/dist/commands/hooks/run.pre-push.d.ts.map +1 -1
- package/dist/commands/hooks/run.pre-push.js +234 -13
- package/dist/commands/recipes/impl/installed-recipes.d.ts +1 -0
- package/dist/commands/recipes/impl/installed-recipes.d.ts.map +1 -1
- package/dist/commands/recipes/impl/installed-recipes.js +24 -0
- package/dist/commands/task/derive.command.js +1 -1
- package/dist/commands/task/finish-execute.d.ts.map +1 -1
- package/dist/commands/task/finish-execute.js +8 -1
- package/dist/commands/task/shared/transitions.d.ts.map +1 -1
- package/dist/commands/task/shared/transitions.js +11 -2
- package/dist/commands/task/verify-command-shared.d.ts.map +1 -1
- package/dist/commands/task/verify-command-shared.js +8 -2
- package/package.json +3 -3
|
@@ -14,3 +14,6 @@
|
|
|
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-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
|
+
- 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
|
+
- 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-23T10:57:53.234Z",
|
|
5
|
+
"git_head": "73ef1559365a7fe053726b4e7cd49568d8105d7f",
|
|
6
|
+
"src_cli_mtime_ms": 1776941764898.929,
|
|
7
7
|
"src_index_mtime_ms": null,
|
|
8
|
-
"dist_cli_mtime_ms":
|
|
8
|
+
"dist_cli_mtime_ms": 1776941873033.4214,
|
|
9
9
|
"dist_index_mtime_ms": null,
|
|
10
|
-
"tsbuildinfo_mtime_ms":
|
|
10
|
+
"tsbuildinfo_mtime_ms": 1776941870953.412,
|
|
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": "ddde696f154e2ae49bf5b10fbeaaa63db94d57c5858b7b6b68cdde6faf92fc94",
|
|
19
19
|
"watched_runtime_files": [
|
|
20
20
|
{
|
|
21
21
|
"path": "bin/agentplane.js",
|
|
@@ -299,8 +299,8 @@
|
|
|
299
299
|
},
|
|
300
300
|
{
|
|
301
301
|
"path": "src/cli/bootstrap-guide.ts",
|
|
302
|
-
"sha256": "
|
|
303
|
-
"size_bytes":
|
|
302
|
+
"sha256": "028fa8b3b233b589f1b492a34d4a5fc3f52835aac7649ccc479d943638445bd9",
|
|
303
|
+
"size_bytes": 7087
|
|
304
304
|
},
|
|
305
305
|
{
|
|
306
306
|
"path": "src/cli/checksum.ts",
|
|
@@ -309,8 +309,8 @@
|
|
|
309
309
|
},
|
|
310
310
|
{
|
|
311
311
|
"path": "src/cli/command-guide.ts",
|
|
312
|
-
"sha256": "
|
|
313
|
-
"size_bytes":
|
|
312
|
+
"sha256": "8158a55d3858a84216157878c1901ae5b05464827f2f5f3136d64b3063cf8b18",
|
|
313
|
+
"size_bytes": 10622
|
|
314
314
|
},
|
|
315
315
|
{
|
|
316
316
|
"path": "src/cli/command-invocations.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": "bd309ab8d4f6b541dd977c0bdb632af5ec8db934e261fc6b56adcd064373d9f9",
|
|
568
|
+
"size_bytes": 1912
|
|
569
569
|
},
|
|
570
570
|
{
|
|
571
571
|
"path": "src/cli/run-cli/commands/init/spec.ts",
|
|
@@ -824,8 +824,8 @@
|
|
|
824
824
|
},
|
|
825
825
|
{
|
|
826
826
|
"path": "src/commands/branch/work-start.hook-shim.ts",
|
|
827
|
-
"sha256": "
|
|
828
|
-
"size_bytes":
|
|
827
|
+
"sha256": "f7476ddae2e26bee6d7bcfa4cb7b47c8115e2503ed00674272f5afed50349538",
|
|
828
|
+
"size_bytes": 2246
|
|
829
829
|
},
|
|
830
830
|
{
|
|
831
831
|
"path": "src/commands/branch/work-start.materialize.ts",
|
|
@@ -887,6 +887,11 @@
|
|
|
887
887
|
"sha256": "5d85f2539e6828a414cb9f5f2132de869c03d4913465dded51a8279a0aa43737",
|
|
888
888
|
"size_bytes": 1700
|
|
889
889
|
},
|
|
890
|
+
{
|
|
891
|
+
"path": "src/commands/doctor/hook-readiness.ts",
|
|
892
|
+
"sha256": "cf88e56388325bf8edeeb1e7ab5e76e4d7a2acd90aadee346818016453bb868d",
|
|
893
|
+
"size_bytes": 7624
|
|
894
|
+
},
|
|
890
895
|
{
|
|
891
896
|
"path": "src/commands/doctor/layering.ts",
|
|
892
897
|
"sha256": "c1e655996e5253b486500b68ad19f4493da67dd85758f0097acb173ba487955c",
|
|
@@ -904,8 +909,8 @@
|
|
|
904
909
|
},
|
|
905
910
|
{
|
|
906
911
|
"path": "src/commands/doctor/workspace.ts",
|
|
907
|
-
"sha256": "
|
|
908
|
-
"size_bytes":
|
|
912
|
+
"sha256": "9813d51c56559082d99604b2dd17546872a863bd5a9c926e6901cddb4bf6c60f",
|
|
913
|
+
"size_bytes": 15102
|
|
909
914
|
},
|
|
910
915
|
{
|
|
911
916
|
"path": "src/commands/finish.run.ts",
|
|
@@ -969,8 +974,8 @@
|
|
|
969
974
|
},
|
|
970
975
|
{
|
|
971
976
|
"path": "src/commands/guard/impl/commit.ts",
|
|
972
|
-
"sha256": "
|
|
973
|
-
"size_bytes":
|
|
977
|
+
"sha256": "1736bcdc25f33e8097f6fec256c2e37710207e17f4604a7eb08dae82ae520e85",
|
|
978
|
+
"size_bytes": 16326
|
|
974
979
|
},
|
|
975
980
|
{
|
|
976
981
|
"path": "src/commands/guard/impl/env.ts",
|
|
@@ -1019,8 +1024,8 @@
|
|
|
1019
1024
|
},
|
|
1020
1025
|
{
|
|
1021
1026
|
"path": "src/commands/hooks/install.ts",
|
|
1022
|
-
"sha256": "
|
|
1023
|
-
"size_bytes":
|
|
1027
|
+
"sha256": "dee64b96a4430439640c3f02c6f291cc618caed1af099291a0d67aec31f4b375",
|
|
1028
|
+
"size_bytes": 5785
|
|
1024
1029
|
},
|
|
1025
1030
|
{
|
|
1026
1031
|
"path": "src/commands/hooks/run.command.ts",
|
|
@@ -1044,8 +1049,8 @@
|
|
|
1044
1049
|
},
|
|
1045
1050
|
{
|
|
1046
1051
|
"path": "src/commands/hooks/run.pre-push.ts",
|
|
1047
|
-
"sha256": "
|
|
1048
|
-
"size_bytes":
|
|
1052
|
+
"sha256": "4d7abee3621fdde76a572e57b8f622ab4af7a2e0ce936c48661a4d3c91095d21",
|
|
1053
|
+
"size_bytes": 11740
|
|
1049
1054
|
},
|
|
1050
1055
|
{
|
|
1051
1056
|
"path": "src/commands/hooks/run.ts",
|
|
@@ -1414,8 +1419,8 @@
|
|
|
1414
1419
|
},
|
|
1415
1420
|
{
|
|
1416
1421
|
"path": "src/commands/recipes/impl/installed-recipes.ts",
|
|
1417
|
-
"sha256": "
|
|
1418
|
-
"size_bytes":
|
|
1422
|
+
"sha256": "fbc372ff5d8fd731ce8ff35c006537ae7148ee92619ed1343b9f55ae81f29d70",
|
|
1423
|
+
"size_bytes": 3979
|
|
1419
1424
|
},
|
|
1420
1425
|
{
|
|
1421
1426
|
"path": "src/commands/recipes/impl/mutation-transaction.ts",
|
|
@@ -1804,8 +1809,8 @@
|
|
|
1804
1809
|
},
|
|
1805
1810
|
{
|
|
1806
1811
|
"path": "src/commands/task/derive.command.ts",
|
|
1807
|
-
"sha256": "
|
|
1808
|
-
"size_bytes":
|
|
1812
|
+
"sha256": "b903c0b7df07a26cbad1dbb9046c7109d73a778c0df56a68725b334e4e419db0",
|
|
1813
|
+
"size_bytes": 3627
|
|
1809
1814
|
},
|
|
1810
1815
|
{
|
|
1811
1816
|
"path": "src/commands/task/derive.ts",
|
|
@@ -1874,8 +1879,8 @@
|
|
|
1874
1879
|
},
|
|
1875
1880
|
{
|
|
1876
1881
|
"path": "src/commands/task/finish-execute.ts",
|
|
1877
|
-
"sha256": "
|
|
1878
|
-
"size_bytes":
|
|
1882
|
+
"sha256": "55b58c8792de4767b7cc202bbdc16ab9568d4d31a51f6a7553316c379d8ccd29",
|
|
1883
|
+
"size_bytes": 11597
|
|
1879
1884
|
},
|
|
1880
1885
|
{
|
|
1881
1886
|
"path": "src/commands/task/finish-findings.ts",
|
|
@@ -2284,8 +2289,8 @@
|
|
|
2284
2289
|
},
|
|
2285
2290
|
{
|
|
2286
2291
|
"path": "src/commands/task/shared/transitions.ts",
|
|
2287
|
-
"sha256": "
|
|
2288
|
-
"size_bytes":
|
|
2292
|
+
"sha256": "94be63f0fb51cc244cd48178aebd887bd5c83de23f66bcc29a46ce18d46cd09d",
|
|
2293
|
+
"size_bytes": 8088
|
|
2289
2294
|
},
|
|
2290
2295
|
{
|
|
2291
2296
|
"path": "src/commands/task/shared/workflow-transition-service.ts",
|
|
@@ -2339,8 +2344,8 @@
|
|
|
2339
2344
|
},
|
|
2340
2345
|
{
|
|
2341
2346
|
"path": "src/commands/task/verify-command-shared.ts",
|
|
2342
|
-
"sha256": "
|
|
2343
|
-
"size_bytes":
|
|
2347
|
+
"sha256": "1bda6957958dceceb6876ea0d8e2bb0d07640d76dcf3e1552fa45fe50e6b89d8",
|
|
2348
|
+
"size_bytes": 8079
|
|
2344
2349
|
},
|
|
2345
2350
|
{
|
|
2346
2351
|
"path": "src/commands/task/verify-ok.command.ts",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const AGENT_BOOTSTRAP_DOC_PATH = "docs/user/agent-bootstrap.generated.mdx";
|
|
2
2
|
export declare const AGENT_BOOTSTRAP_RUNTIME_SURFACE = "agentplane quickstart";
|
|
3
|
+
export declare const BRANCH_PR_HOSTED_GATE_GUIDANCE = "confirm hosted required checks through the repository's configured CI/provider gate; optional framework-maintainer helper when present: `bun run workflow:wait-remote-checks`";
|
|
3
4
|
export type BootstrapSection = {
|
|
4
5
|
heading: string;
|
|
5
6
|
summary: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap-guide.d.ts","sourceRoot":"","sources":["../../src/cli/bootstrap-guide.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB,4CAA4C,CAAC;AAClF,eAAO,MAAM,+BAA+B,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"bootstrap-guide.d.ts","sourceRoot":"","sources":["../../src/cli/bootstrap-guide.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB,4CAA4C,CAAC;AAClF,eAAO,MAAM,+BAA+B,0BAA0B,CAAC;AACvE,eAAO,MAAM,8BAA8B,kLACsI,CAAC;AAElL,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,4BAA4B,iHAM/B,CAAC;AAEX,eAAO,MAAM,4BAA4B,UAIxC,CAAC;AAEF,eAAO,MAAM,oCAAoC,4JAMvC,CAAC;AAEX,eAAO,MAAM,+BAA+B,0HAOlC,CAAC;AAEX,eAAO,MAAM,2BAA2B,sFAI9B,CAAC;AAEX,eAAO,MAAM,kBAAkB,EAAE,SAAS,gBAAgB,EAgDhD,CAAC;AAEX,wBAAgB,4BAA4B,IAAI,MAAM,CAErD;AAED,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,SAAS,gBAAgB,EAAE,GAAG,MAAM,EAAE,CAiB3F;AAMD,wBAAgB,kBAAkB,IAAI,MAAM,CA2B3C"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { COMMAND_SNIPPETS } from "./command-snippets.js";
|
|
2
2
|
export const AGENT_BOOTSTRAP_DOC_PATH = "docs/user/agent-bootstrap.generated.mdx";
|
|
3
3
|
export const AGENT_BOOTSTRAP_RUNTIME_SURFACE = "agentplane quickstart";
|
|
4
|
+
export const BRANCH_PR_HOSTED_GATE_GUIDANCE = "confirm hosted required checks through the repository's configured CI/provider gate; optional framework-maintainer helper when present: `bun run workflow:wait-remote-checks`";
|
|
4
5
|
export const BOOTSTRAP_PREFLIGHT_COMMANDS = [
|
|
5
6
|
COMMAND_SNIPPETS.core.configShow,
|
|
6
7
|
COMMAND_SNIPPETS.core.quickstart,
|
|
@@ -118,13 +119,13 @@ export function renderBootstrapDoc() {
|
|
|
118
119
|
"",
|
|
119
120
|
...renderCommandBlock(BOOTSTRAP_PREFLIGHT_COMMANDS),
|
|
120
121
|
"",
|
|
121
|
-
|
|
122
|
+
`After preflight, follow the configured workflow mode. In repositories configured for \`branch_pr\`, start with \`agentplane help work start\`, keep local PR artifacts current with \`agentplane pr ...\`, ${BRANCH_PR_HOSTED_GATE_GUIDANCE}, and only then integrate on base; use the direct-mode route below only when \`workflow_mode=direct\` is intentional.`,
|
|
122
123
|
"",
|
|
123
124
|
...renderBootstrapSectionLines(BOOTSTRAP_SECTIONS),
|
|
124
125
|
"",
|
|
125
126
|
"## Non-default paths",
|
|
126
127
|
"",
|
|
127
|
-
|
|
128
|
+
`- \`branch_pr\`: in repositories configured this way, start a task branch/worktree, maintain PR artifacts, ${BRANCH_PR_HOSTED_GATE_GUIDANCE}, and let INTEGRATOR close on base only after the remote gate is green.`,
|
|
128
129
|
"- `direct`: use `task new/plan approve/start-ready -> task verify-show -> verify -> finish` only when `workflow_mode=direct` is intentional.",
|
|
129
130
|
"- Use manual close flags only when a specific policy or recovery situation requires them.",
|
|
130
131
|
"",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-guide.d.ts","sourceRoot":"","sources":["../../src/cli/command-guide.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"command-guide.d.ts","sourceRoot":"","sources":["../../src/cli/command-guide.ts"],"names":[],"mappings":"AAYA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3B,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC9B,CAAC;AAqGF,wBAAgB,SAAS,IAAI,MAAM,EAAE,CAEpC;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,CAMvE;AAMD,wBAAgB,UAAU,CACxB,OAAO,EAAE,MAAM,EACf,IAAI,GAAE;IAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAA;CAAO,GAC/C,MAAM,GAAG,IAAI,CA6Bf;AAED,wBAAgB,gBAAgB,IAAI,MAAM,CAsCzC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { COMMAND_SNIPPETS } from "./command-snippets.js";
|
|
2
|
-
import { BOOTSTRAP_PREFLIGHT_COMMANDS, BOOTSTRAP_TASK_PREP_COMMANDS } from "./bootstrap-guide.js";
|
|
2
|
+
import { BOOTSTRAP_PREFLIGHT_COMMANDS, BOOTSTRAP_TASK_PREP_COMMANDS, BRANCH_PR_HOSTED_GATE_GUIDANCE, } from "./bootstrap-guide.js";
|
|
3
3
|
const SHARED_STARTUP_NOTE = `- Shared startup path: \`${COMMAND_SNIPPETS.core.quickstart}\` is the canonical installed bootstrap; use \`${COMMAND_SNIPPETS.core.role}\` to activate the current role before role-scoped planning or execution.`;
|
|
4
4
|
function renderQuickstartCommandBlock(commands) {
|
|
5
5
|
return ["```bash", ...commands, "```"];
|
|
@@ -66,7 +66,7 @@ const ROLE_GUIDES = [
|
|
|
66
66
|
role: "INTEGRATOR",
|
|
67
67
|
lines: [
|
|
68
68
|
SHARED_STARTUP_NOTE,
|
|
69
|
-
|
|
69
|
+
`- branch_pr: require a green hosted PR gate first (${BRANCH_PR_HOSTED_GATE_GUIDANCE}), then run \`agentplane pr check <task-id>\` -> \`agentplane integrate <task-id> --branch task/<task-id>/<slug> --merge-strategy squash --run-verify\` -> \`agentplane finish <task-id> --commit <git-rev> --author INTEGRATOR --body "Verified: ..." --result "..." --close-commit\` on the base branch.`,
|
|
70
70
|
"- branch_pr hosted shortcut: if GitHub merges the task PR directly, `Task Hosted Close` pushes the deterministic closure branch automatically and opens the follow-up closure PR when organization policy allows Actions PR creation; otherwise it leaves a manual PR link on the merged task PR. Pull the updated base branch after that closure PR merges instead of creating a local finish-only tail commit.",
|
|
71
71
|
`- direct: the task owner normally closes with \`${COMMAND_SNIPPETS.core.finishTask}\` plus \`--result "..." \`.`,
|
|
72
72
|
"- For branch-level flags and branch/base diagnostics, use `agentplane help work start`, `agentplane help integrate`, and `agentplane help branch base`.",
|
|
@@ -159,7 +159,7 @@ export function renderQuickstart() {
|
|
|
159
159
|
"",
|
|
160
160
|
"Configured workflow route:",
|
|
161
161
|
"",
|
|
162
|
-
|
|
162
|
+
`- \`branch_pr\`: start from \`agentplane help work start\`, keep local PR artifacts current with \`agentplane pr ...\`, ${BRANCH_PR_HOSTED_GATE_GUIDANCE}, then integrate on base.`,
|
|
163
163
|
`- \`direct\`: task setup is \`${BOOTSTRAP_TASK_PREP_COMMANDS[0]}\` -> \`${BOOTSTRAP_TASK_PREP_COMMANDS[1]}\` -> \`${BOOTSTRAP_TASK_PREP_COMMANDS[2]}\`.`,
|
|
164
164
|
`- \`direct\`: execution is \`${COMMAND_SNIPPETS.core.startTask}\` -> \`${COMMAND_SNIPPETS.core.taskVerifyShow}\` -> \`${COMMAND_SNIPPETS.core.verifyTask}\` -> \`${COMMAND_SNIPPETS.core.finishTask}\` with \`--result "..." \`.`,
|
|
165
165
|
"- In `direct`, `finish` creates the deterministic close commit by default; do not assume that route is the repository default when `workflow_mode=branch_pr`.",
|
|
@@ -173,7 +173,8 @@ export function renderQuickstart() {
|
|
|
173
173
|
"",
|
|
174
174
|
"## Non-default",
|
|
175
175
|
"",
|
|
176
|
-
"- `branch_pr`: use `agentplane help work start`, `agentplane help pr`, `
|
|
176
|
+
"- `branch_pr`: use `agentplane help work start`, `agentplane help pr`, `agentplane pr check <task-id>`, and `agentplane help integrate` when the repository is configured that way.",
|
|
177
|
+
"- Framework maintainers may use repo-local helper scripts such as `bun run workflow:wait-remote-checks` when those scripts exist; installed user repositories must not depend on them.",
|
|
177
178
|
"- Recovery/mixed state: use `agentplane doctor`, `agentplane upgrade`, and `agentplane runtime explain`.",
|
|
178
179
|
"- Manual close or allowlist details belong in command-specific help, not on this first screen.",
|
|
179
180
|
].join("\n");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { cmdRecipeAddParsed } from "../../../../commands/recipes/impl/commands/add.js";
|
|
2
|
-
import {
|
|
2
|
+
import { readAndMigrateInstalledRecipesFile } from "../../../../commands/recipes/impl/installed-recipes.js";
|
|
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
|
|
6
|
+
const cached = await readAndMigrateInstalledRecipesFile(resolveInstalledRecipesPath());
|
|
7
7
|
return cached.recipes.map((recipe) => ({
|
|
8
8
|
id: recipe.id,
|
|
9
9
|
summary: recipe.manifest.summary,
|