agentplane 0.3.8 → 0.3.10
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/AGENTS.md +4 -2
- package/assets/agents/CODER.json +1 -1
- package/assets/policy/dod.core.md +1 -1
- package/assets/policy/governance.md +3 -0
- package/assets/policy/incidents.md +22 -11
- package/assets/policy/workflow.branch_pr.md +2 -0
- package/assets/policy/workflow.direct.md +3 -1
- package/dist/.build-manifest.json +323 -128
- 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 +19 -1
- package/dist/cli/command-invocations.d.ts.map +1 -1
- package/dist/cli/command-invocations.js +2 -0
- package/dist/cli/command-snippets.d.ts +2 -0
- package/dist/cli/command-snippets.d.ts.map +1 -1
- package/dist/cli/command-snippets.js +2 -0
- package/dist/cli/run-cli/command-catalog/core.d.ts +1 -1
- package/dist/cli/run-cli/command-catalog/core.d.ts.map +1 -1
- package/dist/cli/run-cli/command-catalog/core.js +10 -0
- package/dist/cli/run-cli/command-catalog.d.ts +1 -1
- package/dist/cli/run-cli/command-catalog.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/config.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/config.js +13 -0
- package/dist/cli/run-cli.js +2 -2
- package/dist/cli/run-cli.test-helpers.d.ts.map +1 -1
- package/dist/cli/run-cli.test-helpers.js +34 -8
- package/dist/commands/backend.d.ts.map +1 -1
- package/dist/commands/backend.js +4 -0
- package/dist/commands/hooks/index.d.ts.map +1 -1
- package/dist/commands/hooks/index.js +8 -4
- package/dist/commands/incidents/advise.command.d.ts +15 -0
- package/dist/commands/incidents/advise.command.d.ts.map +1 -0
- package/dist/commands/incidents/advise.command.js +139 -0
- package/dist/commands/incidents/collect.command.d.ts +11 -0
- package/dist/commands/incidents/collect.command.d.ts.map +1 -0
- package/dist/commands/incidents/collect.command.js +67 -0
- package/dist/commands/incidents/incidents.command.d.ts +5 -0
- package/dist/commands/incidents/incidents.command.d.ts.map +1 -0
- package/dist/commands/incidents/incidents.command.js +21 -0
- package/dist/commands/incidents/shared.d.ts +42 -0
- package/dist/commands/incidents/shared.d.ts.map +1 -0
- package/dist/commands/incidents/shared.js +107 -0
- package/dist/commands/pr/check.d.ts.map +1 -1
- package/dist/commands/pr/check.js +73 -2
- package/dist/commands/pr/integrate/cmd.d.ts.map +1 -1
- package/dist/commands/pr/integrate/cmd.js +4 -0
- package/dist/commands/pr/integrate/internal/merge.d.ts +4 -0
- package/dist/commands/pr/integrate/internal/merge.d.ts.map +1 -1
- package/dist/commands/pr/integrate/internal/merge.js +23 -2
- package/dist/commands/pr/integrate/internal/prepare.d.ts.map +1 -1
- package/dist/commands/pr/integrate/internal/prepare.js +26 -1
- package/dist/commands/pr/internal/note-store.d.ts +18 -0
- package/dist/commands/pr/internal/note-store.d.ts.map +1 -0
- package/dist/commands/pr/internal/note-store.js +66 -0
- package/dist/commands/pr/internal/pr-paths.d.ts +3 -0
- package/dist/commands/pr/internal/pr-paths.d.ts.map +1 -1
- package/dist/commands/pr/internal/pr-paths.js +3 -0
- package/dist/commands/pr/internal/review-template.d.ts +24 -4
- package/dist/commands/pr/internal/review-template.d.ts.map +1 -1
- package/dist/commands/pr/internal/review-template.js +188 -33
- package/dist/commands/pr/internal/sync.d.ts +32 -0
- package/dist/commands/pr/internal/sync.d.ts.map +1 -0
- package/dist/commands/pr/internal/sync.js +258 -0
- package/dist/commands/pr/note.d.ts.map +1 -1
- package/dist/commands/pr/note.js +37 -4
- package/dist/commands/pr/open.d.ts.map +1 -1
- package/dist/commands/pr/open.js +7 -54
- package/dist/commands/pr/pr.command.d.ts.map +1 -1
- package/dist/commands/pr/pr.command.js +6 -3
- package/dist/commands/pr/update.d.ts.map +1 -1
- package/dist/commands/pr/update.js +5 -79
- package/dist/commands/recipes/impl/apply.d.ts +1 -1
- package/dist/commands/recipes/impl/apply.d.ts.map +1 -1
- package/dist/commands/recipes/impl/apply.js +1 -1
- package/dist/commands/recipes/impl/commands/cache-prune.d.ts.map +1 -1
- package/dist/commands/recipes/impl/commands/cache-prune.js +14 -0
- package/dist/commands/recipes/impl/commands/explain.js +1 -1
- package/dist/commands/recipes/impl/commands/install.d.ts.map +1 -1
- package/dist/commands/recipes/impl/commands/install.js +3 -2
- package/dist/commands/recipes/impl/commands/list-remote.d.ts.map +1 -1
- package/dist/commands/recipes/impl/commands/list-remote.js +1 -0
- package/dist/commands/recipes/impl/commands/remove.d.ts.map +1 -1
- package/dist/commands/recipes/impl/commands/remove.js +9 -1
- package/dist/commands/recipes/impl/installed-recipes.d.ts +1 -1
- package/dist/commands/recipes/impl/installed-recipes.d.ts.map +1 -1
- package/dist/commands/recipes/impl/installed-recipes.js +2 -1
- package/dist/commands/recipes/impl/project-installed-recipes.d.ts +1 -1
- package/dist/commands/recipes/impl/project-installed-recipes.d.ts.map +1 -1
- package/dist/commands/recipes/impl/project-installed-recipes.js +2 -1
- package/dist/commands/recipes/impl/resolver.d.ts +1 -1
- package/dist/commands/recipes/impl/resolver.d.ts.map +1 -1
- package/dist/commands/recipes/impl/resolver.js +1 -1
- package/dist/commands/recipes.d.ts +4 -4
- package/dist/commands/recipes.d.ts.map +1 -1
- package/dist/commands/recipes.js +3 -3
- package/dist/commands/release/apply.command.d.ts.map +1 -1
- package/dist/commands/release/apply.command.js +9 -0
- package/dist/commands/release.test-helpers.d.ts +14 -0
- package/dist/commands/release.test-helpers.d.ts.map +1 -1
- package/dist/commands/release.test-helpers.js +14 -3
- package/dist/commands/shared/approval-requirements.d.ts +5 -7
- package/dist/commands/shared/approval-requirements.d.ts.map +1 -1
- package/dist/commands/shared/approval-requirements.js +3 -73
- package/dist/commands/shared/network-approval.d.ts +2 -0
- package/dist/commands/shared/network-approval.d.ts.map +1 -1
- package/dist/commands/shared/network-approval.js +1 -1
- package/dist/commands/shared/pr-meta.d.ts +9 -0
- package/dist/commands/shared/pr-meta.d.ts.map +1 -1
- package/dist/commands/shared/pr-meta.js +27 -3
- package/dist/commands/shared/task-backend.d.ts +2 -0
- package/dist/commands/shared/task-backend.d.ts.map +1 -1
- package/dist/commands/shared/task-local-freshness.d.ts +13 -0
- package/dist/commands/shared/task-local-freshness.d.ts.map +1 -0
- package/dist/commands/shared/task-local-freshness.js +20 -0
- package/dist/commands/shared/task-mutation.d.ts +2 -0
- package/dist/commands/shared/task-mutation.d.ts.map +1 -1
- package/dist/commands/shared/task-mutation.js +7 -0
- package/dist/commands/task/block.d.ts.map +1 -1
- package/dist/commands/task/block.js +1 -0
- package/dist/commands/task/close-shared.d.ts.map +1 -1
- package/dist/commands/task/close-shared.js +1 -0
- package/dist/commands/task/finish-shared.d.ts.map +1 -1
- package/dist/commands/task/finish-shared.js +5 -2
- package/dist/commands/task/finish.d.ts.map +1 -1
- package/dist/commands/task/finish.js +24 -0
- package/dist/commands/task/new.d.ts.map +1 -1
- package/dist/commands/task/new.js +69 -29
- package/dist/commands/task/set-status.d.ts.map +1 -1
- package/dist/commands/task/set-status.js +1 -0
- package/dist/commands/task/shared/transition-command.d.ts +2 -0
- package/dist/commands/task/shared/transition-command.d.ts.map +1 -1
- package/dist/commands/task/shared/transition-command.js +1 -0
- package/dist/commands/task/start-ready.d.ts.map +1 -1
- package/dist/commands/task/start-ready.js +12 -1
- package/dist/commands/task/start.d.ts.map +1 -1
- package/dist/commands/task/start.js +11 -0
- package/dist/commands/task/verify-record.d.ts.map +1 -1
- package/dist/commands/task/verify-record.js +27 -0
- package/dist/commands/upgrade.d.ts.map +1 -1
- package/dist/commands/upgrade.js +6 -1
- package/dist/policy/engine.d.ts +3 -1
- package/dist/policy/engine.d.ts.map +1 -1
- package/dist/policy/engine.js +5 -6
- package/dist/policy/taxonomy.d.ts +17 -0
- package/dist/policy/taxonomy.d.ts.map +1 -0
- package/dist/policy/taxonomy.js +302 -0
- package/dist/policy/types.d.ts +2 -1
- package/dist/policy/types.d.ts.map +1 -1
- package/dist/runner/artifacts.d.ts.map +1 -1
- package/dist/runner/artifacts.js +2 -0
- package/dist/runner/context/base-prompts.d.ts +25 -0
- package/dist/runner/context/base-prompts.d.ts.map +1 -1
- package/dist/runner/context/base-prompts.js +182 -54
- package/dist/runner/context/recipe-context.d.ts.map +1 -1
- package/dist/runner/context/recipe-context.js +5 -0
- package/dist/runner/types.d.ts +12 -0
- package/dist/runner/types.d.ts.map +1 -1
- package/dist/runner/usecases/scenario-materialize-task.d.ts.map +1 -1
- package/dist/runner/usecases/scenario-materialize-task.js +81 -11
- package/dist/runner/usecases/task-run-inspect.d.ts.map +1 -1
- package/dist/runner/usecases/task-run-inspect.js +9 -7
- package/dist/runner/usecases/task-run-lifecycle-shared.d.ts.map +1 -1
- package/dist/runner/usecases/task-run-lifecycle-shared.js +8 -6
- package/dist/runner/usecases/task-run.d.ts.map +1 -1
- package/dist/runner/usecases/task-run.js +59 -12
- package/dist/runtime/approvals/index.d.ts +3 -0
- package/dist/runtime/approvals/index.d.ts.map +1 -0
- package/dist/runtime/approvals/index.js +1 -0
- package/dist/runtime/approvals/runtime.d.ts +12 -0
- package/dist/runtime/approvals/runtime.d.ts.map +1 -0
- package/dist/runtime/approvals/runtime.js +154 -0
- package/dist/runtime/approvals/types.d.ts +31 -0
- package/dist/runtime/approvals/types.d.ts.map +1 -0
- package/dist/runtime/approvals/types.js +1 -0
- package/dist/runtime/behavior/index.d.ts +3 -0
- package/dist/runtime/behavior/index.d.ts.map +1 -0
- package/dist/runtime/behavior/index.js +1 -0
- package/dist/runtime/behavior/resolve.d.ts +7 -0
- package/dist/runtime/behavior/resolve.d.ts.map +1 -0
- package/dist/runtime/behavior/resolve.js +66 -0
- package/dist/runtime/behavior/types.d.ts +25 -0
- package/dist/runtime/behavior/types.d.ts.map +1 -0
- package/dist/runtime/behavior/types.js +1 -0
- package/dist/runtime/capabilities/backend.d.ts +7 -0
- package/dist/runtime/capabilities/backend.d.ts.map +1 -0
- package/dist/runtime/capabilities/backend.js +104 -0
- package/dist/runtime/capabilities/index.d.ts +6 -0
- package/dist/runtime/capabilities/index.d.ts.map +1 -0
- package/dist/runtime/capabilities/index.js +4 -0
- package/dist/runtime/capabilities/recipe.d.ts +10 -0
- package/dist/runtime/capabilities/recipe.d.ts.map +1 -0
- package/dist/runtime/capabilities/recipe.js +123 -0
- package/dist/runtime/capabilities/registry.d.ts +6 -0
- package/dist/runtime/capabilities/registry.d.ts.map +1 -0
- package/dist/runtime/capabilities/registry.js +69 -0
- package/dist/runtime/capabilities/runner.d.ts +8 -0
- package/dist/runtime/capabilities/runner.d.ts.map +1 -0
- package/dist/runtime/capabilities/runner.js +73 -0
- package/dist/runtime/capabilities/types.d.ts +28 -0
- package/dist/runtime/capabilities/types.d.ts.map +1 -0
- package/dist/runtime/capabilities/types.js +1 -0
- package/dist/runtime/execution-profile/index.d.ts +3 -0
- package/dist/runtime/execution-profile/index.d.ts.map +1 -0
- package/dist/runtime/execution-profile/index.js +1 -0
- package/dist/runtime/execution-profile/resolve.d.ts +9 -0
- package/dist/runtime/execution-profile/resolve.d.ts.map +1 -0
- package/dist/runtime/execution-profile/resolve.js +80 -0
- package/dist/runtime/execution-profile/types.d.ts +27 -0
- package/dist/runtime/execution-profile/types.d.ts.map +1 -0
- package/dist/runtime/execution-profile/types.js +1 -0
- package/dist/runtime/explain/index.d.ts +3 -0
- package/dist/runtime/explain/index.d.ts.map +1 -0
- package/dist/runtime/explain/index.js +1 -0
- package/dist/runtime/explain/resolve.d.ts +14 -0
- package/dist/runtime/explain/resolve.d.ts.map +1 -0
- package/dist/runtime/explain/resolve.js +50 -0
- package/dist/runtime/explain/types.d.ts +28 -0
- package/dist/runtime/explain/types.d.ts.map +1 -0
- package/dist/runtime/explain/types.js +1 -0
- package/dist/runtime/harness/index.d.ts +4 -0
- package/dist/runtime/harness/index.d.ts.map +1 -0
- package/dist/runtime/harness/index.js +2 -0
- package/dist/runtime/harness/resolve-from-command-context.d.ts +4 -0
- package/dist/runtime/harness/resolve-from-command-context.d.ts.map +1 -0
- package/dist/runtime/harness/resolve-from-command-context.js +11 -0
- package/dist/runtime/harness/resolve.d.ts +13 -0
- package/dist/runtime/harness/resolve.d.ts.map +1 -0
- package/dist/runtime/harness/resolve.js +146 -0
- package/dist/runtime/harness/types.d.ts +65 -0
- package/dist/runtime/harness/types.d.ts.map +1 -0
- package/dist/runtime/harness/types.js +1 -0
- package/dist/runtime/incidents/index.d.ts +3 -0
- package/dist/runtime/incidents/index.d.ts.map +1 -0
- package/dist/runtime/incidents/index.js +1 -0
- package/dist/runtime/incidents/resolve.d.ts +26 -0
- package/dist/runtime/incidents/resolve.d.ts.map +1 -0
- package/dist/runtime/incidents/resolve.js +437 -0
- package/dist/runtime/incidents/types.d.ts +72 -0
- package/dist/runtime/incidents/types.d.ts.map +1 -0
- package/dist/runtime/incidents/types.js +1 -0
- package/dist/runtime/protocol/index.d.ts +3 -0
- package/dist/runtime/protocol/index.d.ts.map +1 -0
- package/dist/runtime/protocol/index.js +2 -0
- package/dist/runtime/protocol/resolve.d.ts +16 -0
- package/dist/runtime/protocol/resolve.d.ts.map +1 -0
- package/dist/runtime/protocol/resolve.js +36 -0
- package/dist/runtime/protocol/types.d.ts +36 -0
- package/dist/runtime/protocol/types.d.ts.map +1 -0
- package/dist/runtime/protocol/types.js +1 -0
- package/dist/runtime/task-intake/index.d.ts +3 -0
- package/dist/runtime/task-intake/index.d.ts.map +1 -0
- package/dist/runtime/task-intake/index.js +1 -0
- package/dist/runtime/task-intake/resolve.d.ts +48 -0
- package/dist/runtime/task-intake/resolve.d.ts.map +1 -0
- package/dist/runtime/task-intake/resolve.js +316 -0
- package/dist/runtime/task-intake/types.d.ts +117 -0
- package/dist/runtime/task-intake/types.d.ts.map +1 -0
- package/dist/runtime/task-intake/types.js +1 -0
- package/dist/shared/protected-paths.d.ts +4 -0
- package/dist/shared/protected-paths.d.ts.map +1 -1
- package/dist/shared/protected-paths.js +4 -4
- package/dist/usecases/context/resolve-context.d.ts +55 -6
- package/dist/usecases/context/resolve-context.d.ts.map +1 -1
- package/dist/usecases/context/resolve-context.js +96 -6
- package/dist/usecases/task/task-list-usecase.d.ts.map +1 -1
- package/dist/usecases/task/task-list-usecase.js +8 -2
- package/dist/usecases/task/task-new-usecase.js +4 -4
- package/package.json +2 -3
package/dist/commands/pr/open.js
CHANGED
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
import { mkdir, readFile } from "node:fs/promises";
|
|
2
1
|
import path from "node:path";
|
|
3
|
-
import { atomicWriteFile } from "@agentplaneorg/core";
|
|
4
2
|
import { mapBackendError } from "../../cli/error-map.js";
|
|
5
3
|
import { exitCodeForError } from "../../cli/exit-codes.js";
|
|
6
|
-
import {
|
|
7
|
-
import { createCliEmitter, workflowModeMessage } from "../../cli/output.js";
|
|
4
|
+
import { createCliEmitter } from "../../cli/output.js";
|
|
8
5
|
import { CliError } from "../../shared/errors.js";
|
|
9
|
-
import {
|
|
10
|
-
import { gitCurrentBranch } from "../shared/git-ops.js";
|
|
11
|
-
import { buildOpenedPrMeta, parsePrMeta } from "../shared/pr-meta.js";
|
|
12
|
-
import { loadBackendTask, loadCommandContext, } from "../shared/task-backend.js";
|
|
13
|
-
import { resolvePrPaths } from "./internal/pr-paths.js";
|
|
14
|
-
import { renderPrReviewTemplate } from "./internal/review-template.js";
|
|
15
|
-
function nowIso() {
|
|
16
|
-
return new Date().toISOString();
|
|
17
|
-
}
|
|
6
|
+
import { syncPrArtifacts } from "./internal/sync.js";
|
|
18
7
|
export async function cmdPrOpen(opts) {
|
|
19
8
|
try {
|
|
20
9
|
const output = createCliEmitter();
|
|
@@ -26,51 +15,15 @@ export async function cmdPrOpen(opts) {
|
|
|
26
15
|
message: "Invalid value for --author.",
|
|
27
16
|
});
|
|
28
17
|
}
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
const { task } = await loadBackendTask({
|
|
32
|
-
ctx,
|
|
18
|
+
const { prDir, resolved } = await syncPrArtifacts({
|
|
19
|
+
ctx: opts.ctx,
|
|
33
20
|
cwd: opts.cwd,
|
|
34
21
|
rootOverride: opts.rootOverride,
|
|
35
22
|
taskId: opts.taskId,
|
|
23
|
+
mode: "open",
|
|
24
|
+
author,
|
|
25
|
+
branch: opts.branch,
|
|
36
26
|
});
|
|
37
|
-
const { resolved, config, prDir, metaPath, diffstatPath, verifyLogPath, reviewPath } = await resolvePrPaths({ ...opts, ctx });
|
|
38
|
-
if (config.workflow_mode !== "branch_pr") {
|
|
39
|
-
throw new CliError({
|
|
40
|
-
exitCode: exitCodeForError("E_USAGE"),
|
|
41
|
-
code: "E_USAGE",
|
|
42
|
-
message: workflowModeMessage(config.workflow_mode, "branch_pr"),
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
const branch = (opts.branch ?? (await gitCurrentBranch(resolved.gitRoot))).trim();
|
|
46
|
-
if (!branch) {
|
|
47
|
-
throw new CliError({
|
|
48
|
-
exitCode: exitCodeForError("E_USAGE"),
|
|
49
|
-
code: "E_USAGE",
|
|
50
|
-
message: "Branch could not be resolved (use --branch).",
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
await mkdir(prDir, { recursive: true });
|
|
54
|
-
const now = nowIso();
|
|
55
|
-
let meta = null;
|
|
56
|
-
if (await fileExists(metaPath)) {
|
|
57
|
-
const raw = await readFile(metaPath, "utf8");
|
|
58
|
-
meta = parsePrMeta(raw, task.id);
|
|
59
|
-
}
|
|
60
|
-
const createdAt = meta?.created_at ?? now;
|
|
61
|
-
const nextMeta = buildOpenedPrMeta({
|
|
62
|
-
taskId: task.id,
|
|
63
|
-
branch,
|
|
64
|
-
at: now,
|
|
65
|
-
previousMeta: meta,
|
|
66
|
-
});
|
|
67
|
-
await writeJsonStableIfChanged(metaPath, nextMeta);
|
|
68
|
-
await writeTextIfChanged(diffstatPath, "");
|
|
69
|
-
await writeTextIfChanged(verifyLogPath, "");
|
|
70
|
-
if (!(await fileExists(reviewPath))) {
|
|
71
|
-
const review = renderPrReviewTemplate({ author, createdAt, branch });
|
|
72
|
-
await atomicWriteFile(reviewPath, review, "utf8");
|
|
73
|
-
}
|
|
74
27
|
output.success("pr open", path.relative(resolved.gitRoot, prDir));
|
|
75
28
|
return 0;
|
|
76
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pr.command.d.ts","sourceRoot":"","sources":["../../../src/commands/pr/pr.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACtF,OAAO,EAIL,KAAK,kBAAkB,EACxB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAIhE,KAAK,aAAa,GAAG,kBAAkB,CAAC;AAExC,eAAO,MAAM,MAAM,EAAE,WAAW,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"pr.command.d.ts","sourceRoot":"","sources":["../../../src/commands/pr/pr.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACtF,OAAO,EAIL,KAAK,kBAAkB,EACxB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAIhE,KAAK,aAAa,GAAG,kBAAkB,CAAC;AAExC,eAAO,MAAM,MAAM,EAAE,WAAW,CAAC,aAAa,CAoB7C,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAC;AAErF,eAAO,MAAM,UAAU,EAAE,WAAW,CAAC,YAAY,CAgChD,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhD,eAAO,MAAM,YAAY,EAAE,WAAW,CAAC,cAAc,CAOpD,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAE/C,eAAO,MAAM,WAAW,EAAE,WAAW,CAAC,aAAa,CAOlD,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5E,eAAO,MAAM,UAAU,EAAE,WAAW,CAAC,YAAY,CA0ChD,CAAC;AAWF,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,cAAc,CAAC,GAChD,cAAc,CAAC,kBAAkB,CAAC,CAEpC;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,cAAc,CAAC,IACrE,KAAK,UAAU,EAAE,GAAG,YAAY,KAAG,OAAO,CAAC,MAAM,CAAC,CAUjE;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,cAAc,CAAC,IACvE,KAAK,UAAU,EAAE,GAAG,cAAc,KAAG,OAAO,CAAC,MAAM,CAAC,CAQnE;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,cAAc,CAAC,IACtE,KAAK,UAAU,EAAE,GAAG,aAAa,KAAG,OAAO,CAAC,MAAM,CAAC,CAQlE;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,cAAc,CAAC,IACrE,KAAK,UAAU,EAAE,GAAG,YAAY,KAAG,OAAO,CAAC,MAAM,CAAC,CAUjE"}
|
|
@@ -4,12 +4,15 @@ import { cmdPrCheck, cmdPrNote, cmdPrOpen, cmdPrUpdate } from "./index.js";
|
|
|
4
4
|
export const prSpec = {
|
|
5
5
|
id: ["pr"],
|
|
6
6
|
group: "PR",
|
|
7
|
-
summary: "Manage local PR artifacts for a task (branch_pr workflow).",
|
|
7
|
+
summary: "Manage local PR review and GitHub publication artifacts for a task (branch_pr workflow).",
|
|
8
8
|
synopsis: ["agentplane pr <open|update|check|note> <task-id> [options]"],
|
|
9
9
|
args: [{ name: "cmd", required: false, variadic: true, valueHint: "<cmd>" }],
|
|
10
10
|
examples: [
|
|
11
11
|
{ cmd: "agentplane pr open 202602030608-F1Q8AB --author CODER", why: "Create PR artifacts." },
|
|
12
|
-
{
|
|
12
|
+
{
|
|
13
|
+
cmd: "agentplane pr update 202602030608-F1Q8AB",
|
|
14
|
+
why: "Refresh review.md plus github-title/body projections.",
|
|
15
|
+
},
|
|
13
16
|
{ cmd: "agentplane pr check 202602030608-F1Q8AB", why: "Validate PR artifacts." },
|
|
14
17
|
{
|
|
15
18
|
cmd: 'agentplane pr note 202602030608-F1Q8AB --author REVIEWER --body "Looks good"',
|
|
@@ -54,7 +57,7 @@ export const prOpenSpec = {
|
|
|
54
57
|
export const prUpdateSpec = {
|
|
55
58
|
id: ["pr", "update"],
|
|
56
59
|
group: "PR",
|
|
57
|
-
summary: "Update PR artifacts (diffstat and
|
|
60
|
+
summary: "Update PR artifacts (review packet, diffstat, and GitHub projections).",
|
|
58
61
|
args: [{ name: "task-id", required: true, valueHint: "<task-id>" }],
|
|
59
62
|
examples: [{ cmd: "agentplane pr update 202602030608-F1Q8AB", why: "Update artifacts." }],
|
|
60
63
|
parse: (raw) => ({ taskId: String(raw.args["task-id"]) }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/commands/pr/update.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/commands/pr/update.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAIhE,wBAAsB,WAAW,CAAC,IAAI,EAAE;IACtC,GAAG,CAAC,EAAE,cAAc,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;CAChB,GAAG,OAAO,CAAC,MAAM,CAAC,CAiBlB"}
|
|
@@ -1,92 +1,18 @@
|
|
|
1
|
-
import { readFile } from "node:fs/promises";
|
|
2
1
|
import path from "node:path";
|
|
3
|
-
import { resolveBaseBranch } from "@agentplaneorg/core";
|
|
4
2
|
import { mapBackendError } from "../../cli/error-map.js";
|
|
5
|
-
import {
|
|
6
|
-
import { createCliEmitter, workflowModeMessage } from "../../cli/output.js";
|
|
3
|
+
import { createCliEmitter } from "../../cli/output.js";
|
|
7
4
|
import { CliError } from "../../shared/errors.js";
|
|
8
|
-
import {
|
|
9
|
-
import { execFileAsync, gitEnv } from "../shared/git.js";
|
|
10
|
-
import { gitCurrentBranch } from "../shared/git-ops.js";
|
|
11
|
-
import { buildUpdatedPrMeta, parsePrMeta } from "../shared/pr-meta.js";
|
|
12
|
-
import { loadBackendTask, loadCommandContext, } from "../shared/task-backend.js";
|
|
13
|
-
import { resolvePrPaths } from "./internal/pr-paths.js";
|
|
14
|
-
import { updateAutoSummaryBlock } from "./internal/review-template.js";
|
|
15
|
-
function nowIso() {
|
|
16
|
-
return new Date().toISOString();
|
|
17
|
-
}
|
|
5
|
+
import { syncPrArtifacts } from "./internal/sync.js";
|
|
18
6
|
export async function cmdPrUpdate(opts) {
|
|
19
7
|
try {
|
|
20
8
|
const output = createCliEmitter();
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
await loadBackendTask({
|
|
24
|
-
ctx,
|
|
9
|
+
const { prDir, resolved } = await syncPrArtifacts({
|
|
10
|
+
ctx: opts.ctx,
|
|
25
11
|
cwd: opts.cwd,
|
|
26
12
|
rootOverride: opts.rootOverride,
|
|
27
13
|
taskId: opts.taskId,
|
|
14
|
+
mode: "update",
|
|
28
15
|
});
|
|
29
|
-
const { resolved, config, prDir, metaPath, diffstatPath, reviewPath } = await resolvePrPaths({
|
|
30
|
-
...opts,
|
|
31
|
-
ctx,
|
|
32
|
-
});
|
|
33
|
-
if (config.workflow_mode !== "branch_pr") {
|
|
34
|
-
throw new CliError({
|
|
35
|
-
exitCode: 2,
|
|
36
|
-
code: "E_USAGE",
|
|
37
|
-
message: workflowModeMessage(config.workflow_mode, "branch_pr"),
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
if (!(await fileExists(metaPath)) || !(await fileExists(reviewPath))) {
|
|
41
|
-
const missing = [];
|
|
42
|
-
if (!(await fileExists(metaPath)))
|
|
43
|
-
missing.push(path.relative(resolved.gitRoot, metaPath));
|
|
44
|
-
if (!(await fileExists(reviewPath)))
|
|
45
|
-
missing.push(path.relative(resolved.gitRoot, reviewPath));
|
|
46
|
-
throw new CliError({
|
|
47
|
-
exitCode: 3,
|
|
48
|
-
code: "E_VALIDATION",
|
|
49
|
-
message: `PR artifacts missing: ${missing.join(", ")} (run \`agentplane pr open\`)`,
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
const baseBranch = await resolveBaseBranch({
|
|
53
|
-
cwd: opts.cwd,
|
|
54
|
-
rootOverride: opts.rootOverride ?? null,
|
|
55
|
-
cliBaseOpt: null,
|
|
56
|
-
mode: config.workflow_mode,
|
|
57
|
-
});
|
|
58
|
-
if (!baseBranch) {
|
|
59
|
-
throw new CliError({
|
|
60
|
-
exitCode: 2,
|
|
61
|
-
code: "E_USAGE",
|
|
62
|
-
message: "Base branch could not be resolved (use `agentplane branch base set`).",
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
const branch = await gitCurrentBranch(resolved.gitRoot);
|
|
66
|
-
const { stdout: diffStatOut } = await execFileAsync("git", ["diff", "--stat", `${baseBranch}...HEAD`], { cwd: resolved.gitRoot, env: gitEnv() });
|
|
67
|
-
const diffstat = diffStatOut.trimEnd();
|
|
68
|
-
await writeTextIfChanged(diffstatPath, diffstat ? `${diffstat}\n` : "");
|
|
69
|
-
const { stdout: headOut } = await execFileAsync("git", ["rev-parse", "HEAD"], {
|
|
70
|
-
cwd: resolved.gitRoot,
|
|
71
|
-
env: gitEnv(),
|
|
72
|
-
});
|
|
73
|
-
const headSha = headOut.trim();
|
|
74
|
-
const summaryLines = [
|
|
75
|
-
`- Updated: ${nowIso()}`,
|
|
76
|
-
`- Branch: ${branch}`,
|
|
77
|
-
`- Head: ${headSha.slice(0, 12)}`,
|
|
78
|
-
"- Diffstat:",
|
|
79
|
-
"```",
|
|
80
|
-
diffstat || "No changes detected.",
|
|
81
|
-
"```",
|
|
82
|
-
];
|
|
83
|
-
const reviewText = await readFile(reviewPath, "utf8");
|
|
84
|
-
const nextReview = updateAutoSummaryBlock(reviewText, summaryLines.join("\n"));
|
|
85
|
-
await writeTextIfChanged(reviewPath, nextReview);
|
|
86
|
-
const rawMeta = await readFile(metaPath, "utf8");
|
|
87
|
-
const meta = parsePrMeta(rawMeta, opts.taskId);
|
|
88
|
-
const nextMeta = buildUpdatedPrMeta({ meta, branch, at: nowIso() });
|
|
89
|
-
await writeJsonStableIfChanged(metaPath, nextMeta);
|
|
90
16
|
output.success("pr update", path.relative(resolved.gitRoot, prDir));
|
|
91
17
|
return 0;
|
|
92
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply.d.ts","sourceRoot":"","sources":["../../../../src/commands/recipes/impl/apply.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"apply.d.ts","sourceRoot":"","sources":["../../../../src/commands/recipes/impl/apply.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAErE,wBAAsB,aAAa,CAAC,IAAI,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAarF;AAkBD,wBAAsB,oBAAoB,CAAC,IAAI,EAAE;IAC/C,QAAQ,EAAE,cAAc,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB,GAAG,OAAO,CAAC,IAAI,CAAC,CA4BhB;AAED,wBAAsB,iBAAiB,CAAC,IAAI,EAAE;IAC5C,QAAQ,EAAE,cAAc,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,kBAAkB,CAAC;CAChC,GAAG,OAAO,CAAC,IAAI,CAAC,CAgDhB;AAED,wBAAsB,oBAAoB,CAAC,IAAI,EAAE;IAC/C,QAAQ,EAAE,cAAc,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB,GAAG,OAAO,CAAC,IAAI,CAAC,CA0BhB"}
|
|
@@ -6,8 +6,8 @@ import { invalidFieldMessage, missingFileMessage } from "../../../cli/output.js"
|
|
|
6
6
|
import { CliError } from "../../../shared/errors.js";
|
|
7
7
|
import { isRecord } from "../../../shared/guards.js";
|
|
8
8
|
import { writeJsonStableIfChanged } from "../../../shared/write-if-changed.js";
|
|
9
|
-
import { readScenarioDefinition, } from "@agentplane/recipes";
|
|
10
9
|
import { RECIPES_SCENARIOS_DIR_NAME, RECIPES_SCENARIOS_INDEX_NAME } from "./constants.js";
|
|
10
|
+
import { readScenarioDefinition } from "./scenario.js";
|
|
11
11
|
import { normalizeAgentId } from "./normalize.js";
|
|
12
12
|
export async function moveRecipeDir(opts) {
|
|
13
13
|
await mkdir(path.dirname(opts.to), { recursive: true });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache-prune.d.ts","sourceRoot":"","sources":["../../../../../src/commands/recipes/impl/commands/cache-prune.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cache-prune.d.ts","sourceRoot":"","sources":["../../../../../src/commands/recipes/impl/commands/cache-prune.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AA6BzD,wBAAsB,yBAAyB,CAAC,IAAI,EAAE;IACpD,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,qBAAqB,CAAC;CAC9B,GAAG,OAAO,CAAC,MAAM,CAAC,CA8FlB"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { readdir, rm } from "node:fs/promises";
|
|
2
2
|
import path from "node:path";
|
|
3
|
+
import { defaultConfig } from "@agentplaneorg/core";
|
|
3
4
|
import { mapCoreError } from "../../../../cli/error-map.js";
|
|
4
5
|
import { fileExists } from "../../../../cli/fs-utils.js";
|
|
5
6
|
import { infoMessage, successMessage } from "../../../../cli/output.js";
|
|
6
7
|
import { CliError } from "../../../../shared/errors.js";
|
|
8
|
+
import { ensureActionApproved } from "../../../shared/approval-requirements.js";
|
|
7
9
|
import { readInstalledRecipesFile, writeInstalledRecipesFile } from "../installed-recipes.js";
|
|
8
10
|
import { resolveGlobalRecipesDir, resolveInstalledRecipesPath } from "../paths.js";
|
|
9
11
|
async function listRecipeCacheEntries(cacheDir) {
|
|
@@ -49,6 +51,12 @@ export async function cmdRecipeCachePruneParsed(opts) {
|
|
|
49
51
|
process.stdout.write(`${infoMessage(`dry-run: would remove ${cacheEntries.length} cached recipes`)}\n`);
|
|
50
52
|
return 0;
|
|
51
53
|
}
|
|
54
|
+
await ensureActionApproved({
|
|
55
|
+
action: "dangerous_fs",
|
|
56
|
+
config: defaultConfig(),
|
|
57
|
+
yes: false,
|
|
58
|
+
reason: `recipes cache prune --all (${cacheEntries.length} cached recipes)`,
|
|
59
|
+
});
|
|
52
60
|
await rm(cacheDir, { recursive: true, force: true });
|
|
53
61
|
await writeInstalledRecipesFile(resolveInstalledRecipesPath(), {
|
|
54
62
|
schema_version: 1,
|
|
@@ -72,6 +80,12 @@ export async function cmdRecipeCachePruneParsed(opts) {
|
|
|
72
80
|
process.stdout.write(`${infoMessage(`dry-run: would remove ${prune.length} cached recipes`)}\n`);
|
|
73
81
|
return 0;
|
|
74
82
|
}
|
|
83
|
+
await ensureActionApproved({
|
|
84
|
+
action: "dangerous_fs",
|
|
85
|
+
config: defaultConfig(),
|
|
86
|
+
yes: false,
|
|
87
|
+
reason: `recipes cache prune (${prune.length} cached recipes)`,
|
|
88
|
+
});
|
|
75
89
|
const recipeDirs = new Set();
|
|
76
90
|
for (const entry of prune) {
|
|
77
91
|
recipeDirs.add(path.dirname(entry.path));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { resolveProject } from "@agentplaneorg/core";
|
|
2
|
-
import { collectRecipeScenarioDetails } from "@agentplane/recipes";
|
|
3
2
|
import { mapCoreError } from "../../../../cli/error-map.js";
|
|
4
3
|
import { exitCodeForError } from "../../../../cli/exit-codes.js";
|
|
5
4
|
import { CliError } from "../../../../shared/errors.js";
|
|
6
5
|
import { formatJsonBlock } from "../format.js";
|
|
7
6
|
import { readProjectInstalledRecipes } from "../project-installed-recipes.js";
|
|
8
7
|
import { resolveProjectInstalledRecipeDir } from "../paths.js";
|
|
8
|
+
import { collectRecipeScenarioDetails } from "../scenario.js";
|
|
9
9
|
export async function cmdRecipeExplainParsed(opts) {
|
|
10
10
|
try {
|
|
11
11
|
const resolved = await resolveProject({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../../../src/commands/recipes/impl/commands/install.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../../../src/commands/recipes/impl/commands/install.ts"],"names":[],"mappings":"AAiCA,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAM3E,wBAAsB,gBAAgB,CAAC,IAAI,EAAE;IAC3C,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,kBAAkB,CAAC;IAC/B,GAAG,EAAE,OAAO,CAAC;CACd,GAAG,OAAO,CAAC,MAAM,CAAC,CA4NlB"}
|
|
@@ -2,7 +2,6 @@ import { cp, mkdir, mkdtemp, rm } from "node:fs/promises";
|
|
|
2
2
|
import os from "node:os";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { defaultConfig, loadConfig, resolveProject } from "@agentplaneorg/core";
|
|
5
|
-
import { DEFAULT_RECIPES_INDEX_URL, RECIPE_RUNS_DIR_NAME, readRecipeManifest, } from "@agentplane/recipes";
|
|
6
5
|
import { extractArchive } from "../../../../cli/archive.js";
|
|
7
6
|
import { sha256File } from "../../../../cli/checksum.js";
|
|
8
7
|
import { mapCoreError } from "../../../../cli/error-map.js";
|
|
@@ -15,7 +14,9 @@ import { ensureNetworkApproved } from "../../../shared/network-approval.js";
|
|
|
15
14
|
import { resolvePathFallback } from "../../../shared/path.js";
|
|
16
15
|
import { moveRecipeDir, validateRecipeAssets } from "../apply.js";
|
|
17
16
|
import { resolveRecipeRoot } from "../archive.js";
|
|
17
|
+
import { DEFAULT_RECIPES_INDEX_URL, RECIPE_RUNS_DIR_NAME } from "../constants.js";
|
|
18
18
|
import { loadRecipesRemoteIndex, willFetchRemoteRecipesIndex } from "../index.js";
|
|
19
|
+
import { readRecipeManifest } from "../manifest.js";
|
|
19
20
|
import { normalizeRecipeTags } from "../normalize.js";
|
|
20
21
|
import { writeRecipeInstallMetadata } from "../project-installed-recipes.js";
|
|
21
22
|
import { resolveProjectInstalledRecipeDir, resolveProjectRecipeInstallMetaPath, resolveProjectRecipesDir, resolveRecipesIndexCachePath, } from "../paths.js";
|
|
@@ -36,7 +37,7 @@ export async function cmdRecipeInstall(opts) {
|
|
|
36
37
|
const ensureApproved = async (reason) => {
|
|
37
38
|
if (networkApproved)
|
|
38
39
|
return;
|
|
39
|
-
await ensureNetworkApproved({ config, yes: opts.yes, reason });
|
|
40
|
+
await ensureNetworkApproved({ action: "recipe_install", config, yes: opts.yes, reason });
|
|
40
41
|
networkApproved = true;
|
|
41
42
|
};
|
|
42
43
|
const tempRoot = await mkdtemp(path.join(os.tmpdir(), "agentplane-recipe-"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-remote.d.ts","sourceRoot":"","sources":["../../../../../src/commands/recipes/impl/commands/list-remote.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEzD,wBAAsB,yBAAyB,CAAC,IAAI,EAAE;IACpD,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,qBAAqB,CAAC;CAC9B,GAAG,OAAO,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"list-remote.d.ts","sourceRoot":"","sources":["../../../../../src/commands/recipes/impl/commands/list-remote.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEzD,wBAAsB,yBAAyB,CAAC,IAAI,EAAE;IACpD,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,qBAAqB,CAAC;CAC9B,GAAG,OAAO,CAAC,MAAM,CAAC,CAyClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove.d.ts","sourceRoot":"","sources":["../../../../../src/commands/recipes/impl/commands/remove.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"remove.d.ts","sourceRoot":"","sources":["../../../../../src/commands/recipes/impl/commands/remove.ts"],"names":[],"mappings":"AAaA,wBAAsB,qBAAqB,CAAC,IAAI,EAAE;IAChD,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,EAAE,EAAE,MAAM,CAAC;CACZ,GAAG,OAAO,CAAC,MAAM,CAAC,CA+BlB"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { resolveProject } from "@agentplaneorg/core";
|
|
1
|
+
import { loadConfig, resolveProject } from "@agentplaneorg/core";
|
|
2
2
|
import { rm } from "node:fs/promises";
|
|
3
3
|
import { mapCoreError } from "../../../../cli/error-map.js";
|
|
4
4
|
import { exitCodeForError } from "../../../../cli/exit-codes.js";
|
|
5
5
|
import { successMessage } from "../../../../cli/output.js";
|
|
6
6
|
import { CliError } from "../../../../shared/errors.js";
|
|
7
|
+
import { ensureActionApproved } from "../../../shared/approval-requirements.js";
|
|
7
8
|
import { readProjectInstalledRecipes } from "../project-installed-recipes.js";
|
|
8
9
|
import { resolveProjectInstalledRecipeDir } from "../paths.js";
|
|
9
10
|
export async function cmdRecipeRemoveParsed(opts) {
|
|
@@ -12,6 +13,7 @@ export async function cmdRecipeRemoveParsed(opts) {
|
|
|
12
13
|
cwd: opts.cwd,
|
|
13
14
|
rootOverride: opts.rootOverride ?? null,
|
|
14
15
|
});
|
|
16
|
+
const loaded = await loadConfig(resolved.agentplaneDir);
|
|
15
17
|
const installed = await readProjectInstalledRecipes(resolved);
|
|
16
18
|
const entry = installed.recipes.find((recipe) => recipe.id === opts.id);
|
|
17
19
|
if (!entry) {
|
|
@@ -22,6 +24,12 @@ export async function cmdRecipeRemoveParsed(opts) {
|
|
|
22
24
|
});
|
|
23
25
|
}
|
|
24
26
|
const recipeDir = resolveProjectInstalledRecipeDir(resolved, entry.id);
|
|
27
|
+
await ensureActionApproved({
|
|
28
|
+
action: "dangerous_fs",
|
|
29
|
+
config: loaded.config,
|
|
30
|
+
yes: false,
|
|
31
|
+
reason: `recipes remove ${entry.id}@${entry.version}`,
|
|
32
|
+
});
|
|
25
33
|
await rm(recipeDir, { recursive: true, force: true });
|
|
26
34
|
process.stdout.write(`${successMessage("removed recipe", `${entry.id}@${entry.version}`)}\n`);
|
|
27
35
|
return 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { InstalledRecipesFile } from "./types.js";
|
|
2
2
|
export declare function readInstalledRecipesFile(filePath: string): Promise<InstalledRecipesFile>;
|
|
3
3
|
export declare function writeInstalledRecipesFile(filePath: string, file: InstalledRecipesFile): Promise<void>;
|
|
4
4
|
//# sourceMappingURL=installed-recipes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installed-recipes.d.ts","sourceRoot":"","sources":["../../../../src/commands/recipes/impl/installed-recipes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"installed-recipes.d.ts","sourceRoot":"","sources":["../../../../src/commands/recipes/impl/installed-recipes.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAoCvD,wBAAsB,wBAAwB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAS9F;AAED,wBAAsB,yBAAyB,CAC7C,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,oBAAoB,GACzB,OAAO,CAAC,IAAI,CAAC,CAOf"}
|
|
@@ -3,7 +3,8 @@ import path from "node:path";
|
|
|
3
3
|
import { invalidFieldMessage } from "../../../cli/output.js";
|
|
4
4
|
import { isRecord } from "../../../shared/guards.js";
|
|
5
5
|
import { writeJsonStableIfChanged } from "../../../shared/write-if-changed.js";
|
|
6
|
-
import {
|
|
6
|
+
import { validateRecipeManifest } from "./manifest.js";
|
|
7
|
+
import { normalizeRecipeTags } from "./normalize.js";
|
|
7
8
|
function validateInstalledRecipesFile(raw) {
|
|
8
9
|
if (!isRecord(raw))
|
|
9
10
|
throw new Error(invalidFieldMessage("recipes.json", "object"));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { InstalledRecipesFile, RecipeInstallMetadata } from "./types.js";
|
|
2
2
|
export declare function readRecipeInstallMetadata(filePath: string): Promise<RecipeInstallMetadata | null>;
|
|
3
3
|
export declare function writeRecipeInstallMetadata(filePath: string, metadata: RecipeInstallMetadata): Promise<void>;
|
|
4
4
|
export declare function readProjectInstalledRecipes(opts: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-installed-recipes.d.ts","sourceRoot":"","sources":["../../../../src/commands/recipes/impl/project-installed-recipes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"project-installed-recipes.d.ts","sourceRoot":"","sources":["../../../../src/commands/recipes/impl/project-installed-recipes.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAwB,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAuCpG,wBAAsB,yBAAyB,CAC7C,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAAC,CASvC;AAED,wBAAsB,0BAA0B,CAC9C,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,qBAAqB,GAC9B,OAAO,CAAC,IAAI,CAAC,CAGf;AAED,wBAAsB,2BAA2B,CAAC,IAAI,EAAE;IACtD,aAAa,EAAE,MAAM,CAAC;CACvB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CA0DhC"}
|
|
@@ -4,8 +4,9 @@ import { fileExists, getPathKind } from "../../../cli/fs-utils.js";
|
|
|
4
4
|
import { invalidFieldMessage, missingFileMessage } from "../../../cli/output.js";
|
|
5
5
|
import { isRecord } from "../../../shared/guards.js";
|
|
6
6
|
import { writeJsonStableIfChanged } from "../../../shared/write-if-changed.js";
|
|
7
|
-
import { normalizeRecipeTags, readRecipeManifest, } from "@agentplane/recipes";
|
|
8
7
|
import { resolveProjectInstalledRecipeDir, resolveProjectRecipeInstallMetaPath, resolveProjectRecipesDir, } from "./paths.js";
|
|
8
|
+
import { readRecipeManifest } from "./manifest.js";
|
|
9
|
+
import { normalizeRecipeTags } from "./normalize.js";
|
|
9
10
|
function validateRecipeInstallMetadata(raw) {
|
|
10
11
|
if (!isRecord(raw))
|
|
11
12
|
throw new Error(invalidFieldMessage("recipe install metadata", "object"));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ResolvedProject } from "@agentplaneorg/core";
|
|
2
|
-
import { type RecipeCompatibility, type RecipeResolverCompatibility, type RecipeResolverContext, type RecipeScenarioDescriptor, type ResolveRecipeScenarioSelectionFlags, type ResolvedRecipeRunProfile, type ResolvedRecipeScenario, type ResolvedRecipeScenarioSelection } from "
|
|
2
|
+
import { type RecipeCompatibility, type RecipeResolverCompatibility, type RecipeResolverContext, type RecipeScenarioDescriptor, type ResolveRecipeScenarioSelectionFlags, type ResolvedRecipeRunProfile, type ResolvedRecipeScenario, type ResolvedRecipeScenarioSelection } from "./types.js";
|
|
3
3
|
export declare function buildRecipeResolverContext(opts: {
|
|
4
4
|
project: ResolvedProject;
|
|
5
5
|
}): Promise<RecipeResolverContext>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../../../src/commands/recipes/impl/resolver.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAEhC,KAAK,qBAAqB,EAE1B,KAAK,wBAAwB,EAE7B,KAAK,mCAAmC,EACxC,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,+BAA+B,EACrC,MAAM,
|
|
1
|
+
{"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../../../src/commands/recipes/impl/resolver.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAEhC,KAAK,qBAAqB,EAE1B,KAAK,wBAAwB,EAE7B,KAAK,mCAAmC,EACxC,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,+BAA+B,EACrC,MAAM,YAAY,CAAC;AA+BpB,wBAAsB,0BAA0B,CAAC,IAAI,EAAE;IACrD,OAAO,EAAE,eAAe,CAAC;CAC1B,GAAG,OAAO,CAAC,qBAAqB,CAAC,CASjC;AAYD,wBAAgB,0BAA0B,CAAC,IAAI,EAAE;IAC/C,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC,OAAO,EAAE,qBAAqB,CAAC;CAChC,GAAG,2BAA2B,CAkG9B;AAED,wBAAgB,iCAAiC,CAC/C,QAAQ,EAAE,wBAAwB,GACjC,wBAAwB,CAO1B;AAmDD,wBAAsB,2BAA2B,CAAC,IAAI,EAAE;IACtD,OAAO,EAAE,eAAe,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,GAAG,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAsBpC;AAED,wBAAsB,8BAA8B,CAAC,IAAI,EAAE;IACzD,OAAO,EAAE,eAAe,CAAC;IACzB,KAAK,EAAE,mCAAmC,CAAC;CAC5C,GAAG,OAAO,CAAC,+BAA+B,CAAC,CA6D3C"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
|
-
import { readScenarioDefinition, } from "@agentplane/recipes";
|
|
3
2
|
import { fileExists } from "../../../cli/fs-utils.js";
|
|
4
3
|
import { getVersion } from "../../../meta/version.js";
|
|
5
4
|
import { dedupeStrings } from "../../../shared/strings.js";
|
|
6
5
|
import { compareVersions } from "../../../shared/version-compare.js";
|
|
7
6
|
import { resolveProjectInstalledRecipeDir } from "./paths.js";
|
|
8
7
|
import { readProjectInstalledRecipes } from "./project-installed-recipes.js";
|
|
8
|
+
import { readScenarioDefinition } from "./scenario.js";
|
|
9
9
|
const SUPPORTED_MANIFEST_API_VERSION = "1";
|
|
10
10
|
const SUPPORTED_SCENARIO_API_VERSION = "1";
|
|
11
11
|
const SUPPORTED_RUNTIME_API_VERSION = "1";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { RECIPES_DIR_NAME, RECIPES_SCENARIOS_DIR_NAME, RECIPES_SCENARIOS_INDEX_NAME, RECIPE_RUNS_DIR_NAME, } from "
|
|
2
|
-
export type { RecipeCachePruneFlags, RecipeConflictMode, RecipeInstallSource, RecipeListFlags, RecipeListRemoteFlags, RecipeResolverCompatibility, RecipeResolverCompatibilityFailure, RecipeResolverContext, ResolveRecipeScenarioSelectionFlags, ResolvedRecipeRunProfile, ResolvedRecipeScenario, ResolvedRecipeScenarioSelection, ScenarioDefinition, } from "
|
|
3
|
-
export { readRecipeManifest } from "
|
|
1
|
+
export { RECIPES_DIR_NAME, RECIPES_SCENARIOS_DIR_NAME, RECIPES_SCENARIOS_INDEX_NAME, RECIPE_RUNS_DIR_NAME, } from "./recipes/impl/constants.js";
|
|
2
|
+
export type { RecipeCachePruneFlags, RecipeConflictMode, RecipeInstallSource, RecipeListFlags, RecipeListRemoteFlags, RecipeResolverCompatibility, RecipeResolverCompatibilityFailure, RecipeResolverContext, ResolveRecipeScenarioSelectionFlags, ResolvedRecipeRunProfile, ResolvedRecipeScenario, ResolvedRecipeScenarioSelection, ScenarioDefinition, } from "./recipes/impl/types.js";
|
|
3
|
+
export { readRecipeManifest } from "./recipes/impl/manifest.js";
|
|
4
4
|
export { readInstalledRecipesFile } from "./recipes/impl/installed-recipes.js";
|
|
5
5
|
export { readProjectInstalledRecipes, readRecipeInstallMetadata, writeRecipeInstallMetadata, } from "./recipes/impl/project-installed-recipes.js";
|
|
6
6
|
export { resolveInstalledRecipeDir, resolveInstalledRecipesPath, resolveProjectInstalledRecipeDir, resolveProjectRecipeInstallMetaPath, resolveProjectRecipesDir, resolveProjectRecipesCacheDir, } from "./recipes/impl/paths.js";
|
|
7
|
-
export { collectRecipeScenarioDetails, normalizeScenarioToolStep, readScenarioDefinition, readScenarioIndex, } from "
|
|
7
|
+
export { collectRecipeScenarioDetails, normalizeScenarioToolStep, readScenarioDefinition, readScenarioIndex, } from "./recipes/impl/scenario.js";
|
|
8
8
|
export { buildRecipeResolverContext, listResolvedRecipeScenarios, normalizeResolvedRecipeRunProfile, resolveRecipeCompatibility, resolveRecipeScenarioSelection, } from "./recipes/impl/resolver.js";
|
|
9
9
|
export { cmdRecipeCachePruneParsed, cmdRecipeExplainParsed, cmdRecipeInfoParsed, cmdRecipeInstall, cmdRecipeListParsed, cmdRecipeListRemoteParsed, cmdRecipeRemoveParsed, } from "./recipes/impl/commands.js";
|
|
10
10
|
//# sourceMappingURL=recipes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipes.d.ts","sourceRoot":"","sources":["../../src/commands/recipes.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,0BAA0B,EAC1B,4BAA4B,EAC5B,oBAAoB,GACrB,MAAM,
|
|
1
|
+
{"version":3,"file":"recipes.d.ts","sourceRoot":"","sources":["../../src/commands/recipes.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,0BAA0B,EAC1B,4BAA4B,EAC5B,oBAAoB,GACrB,MAAM,6BAA6B,CAAC;AAErC,YAAY,EACV,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACrB,2BAA2B,EAC3B,kCAAkC,EAClC,qBAAqB,EACrB,mCAAmC,EACnC,wBAAwB,EACxB,sBAAsB,EACtB,+BAA+B,EAC/B,kBAAkB,GACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EACL,2BAA2B,EAC3B,yBAAyB,EACzB,0BAA0B,GAC3B,MAAM,6CAA6C,CAAC;AAErD,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,gCAAgC,EAChC,mCAAmC,EACnC,wBAAwB,EACxB,6BAA6B,GAC9B,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,EACzB,sBAAsB,EACtB,iBAAiB,GAClB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EACL,0BAA0B,EAC1B,2BAA2B,EAC3B,iCAAiC,EACjC,0BAA0B,EAC1B,8BAA8B,GAC/B,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EACL,yBAAyB,EACzB,sBAAsB,EACtB,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,4BAA4B,CAAC"}
|
package/dist/commands/recipes.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { RECIPES_DIR_NAME, RECIPES_SCENARIOS_DIR_NAME, RECIPES_SCENARIOS_INDEX_NAME, RECIPE_RUNS_DIR_NAME, } from "
|
|
2
|
-
export { readRecipeManifest } from "
|
|
1
|
+
export { RECIPES_DIR_NAME, RECIPES_SCENARIOS_DIR_NAME, RECIPES_SCENARIOS_INDEX_NAME, RECIPE_RUNS_DIR_NAME, } from "./recipes/impl/constants.js";
|
|
2
|
+
export { readRecipeManifest } from "./recipes/impl/manifest.js";
|
|
3
3
|
export { readInstalledRecipesFile } from "./recipes/impl/installed-recipes.js";
|
|
4
4
|
export { readProjectInstalledRecipes, readRecipeInstallMetadata, writeRecipeInstallMetadata, } from "./recipes/impl/project-installed-recipes.js";
|
|
5
5
|
export { resolveInstalledRecipeDir, resolveInstalledRecipesPath, resolveProjectInstalledRecipeDir, resolveProjectRecipeInstallMetaPath, resolveProjectRecipesDir, resolveProjectRecipesCacheDir, } from "./recipes/impl/paths.js";
|
|
6
|
-
export { collectRecipeScenarioDetails, normalizeScenarioToolStep, readScenarioDefinition, readScenarioIndex, } from "
|
|
6
|
+
export { collectRecipeScenarioDetails, normalizeScenarioToolStep, readScenarioDefinition, readScenarioIndex, } from "./recipes/impl/scenario.js";
|
|
7
7
|
export { buildRecipeResolverContext, listResolvedRecipeScenarios, normalizeResolvedRecipeRunProfile, resolveRecipeCompatibility, resolveRecipeScenarioSelection, } from "./recipes/impl/resolver.js";
|
|
8
8
|
export { cmdRecipeCachePruneParsed, cmdRecipeExplainParsed, cmdRecipeInfoParsed, cmdRecipeInstall, cmdRecipeListParsed, cmdRecipeListRemoteParsed, cmdRecipeRemoveParsed, } from "./recipes/impl/commands.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply.command.d.ts","sourceRoot":"","sources":["../../../src/commands/release/apply.command.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"apply.command.d.ts","sourceRoot":"","sources":["../../../src/commands/release/apply.command.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AA8B1E,OAAO,KAAK,EAAE,kBAAkB,EAA0C,MAAM,kBAAkB,CAAC;AAkOnG,eAAO,MAAM,gBAAgB,EAAE,WAAW,CAAC,kBAAkB,CAiF5D,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,cAAc,CAAC,kBAAkB,CAmF9D,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -7,6 +7,7 @@ import { withDiagnosticContext } from "../../shared/diagnostics.js";
|
|
|
7
7
|
import { CliError } from "../../shared/errors.js";
|
|
8
8
|
import { execFileAsync, gitEnv } from "../shared/git.js";
|
|
9
9
|
import { GitContext } from "../shared/git-context.js";
|
|
10
|
+
import { ensureActionApproved } from "../shared/approval-requirements.js";
|
|
10
11
|
import { ensureNetworkApproved } from "../shared/network-approval.js";
|
|
11
12
|
import { runOperatorPipeline } from "../shared/operator-pipeline.js";
|
|
12
13
|
import { cleanHookEnv, maybePersistExpectedCliVersion, maybeRefreshGeneratedReference, maybeUpdateBunLockfile, replaceAgentplanePackageMetadata, replacePackageVersionInFile, } from "./apply.mutation.js";
|
|
@@ -84,11 +85,19 @@ async function ensureReleasePlanMatchesRepoState(opts) {
|
|
|
84
85
|
async function runPushPreflight(opts) {
|
|
85
86
|
const loaded = await loadConfig(opts.agentplaneDir);
|
|
86
87
|
await ensureNetworkApproved({
|
|
88
|
+
action: "release_apply",
|
|
87
89
|
config: loaded.config,
|
|
88
90
|
yes: opts.yes,
|
|
89
91
|
reason: "release apply --push validates npm version availability and pushes over network",
|
|
90
92
|
interactive: Boolean(process.stdin.isTTY),
|
|
91
93
|
});
|
|
94
|
+
await ensureActionApproved({
|
|
95
|
+
action: "git_push",
|
|
96
|
+
config: loaded.config,
|
|
97
|
+
yes: opts.yes,
|
|
98
|
+
reason: `release apply --push will push HEAD and ${opts.nextTag} to ${opts.remote}`,
|
|
99
|
+
interactive: Boolean(process.stdin.isTTY),
|
|
100
|
+
});
|
|
92
101
|
await ensureRemoteExists(opts.gitRoot, opts.remote);
|
|
93
102
|
await ensureRemoteTagDoesNotExist(opts.gitRoot, opts.remote, opts.nextTag);
|
|
94
103
|
await ensureNpmVersionsAvailable(opts.gitRoot, opts.nextVersion);
|
|
@@ -4,6 +4,13 @@ export declare function seedReleaseWorkspace(root: string, opts?: {
|
|
|
4
4
|
coreVersion?: string;
|
|
5
5
|
cliVersion?: string;
|
|
6
6
|
dependencyVersion?: string;
|
|
7
|
+
extraDependencies?: Record<string, string>;
|
|
8
|
+
extraWorkspacePackages?: {
|
|
9
|
+
relDir: string;
|
|
10
|
+
name: string;
|
|
11
|
+
version?: string;
|
|
12
|
+
private?: boolean;
|
|
13
|
+
}[];
|
|
7
14
|
writeNotes?: boolean;
|
|
8
15
|
notesVersion?: string;
|
|
9
16
|
notesBody?: string;
|
|
@@ -13,6 +20,13 @@ export declare function initReleaseWorkspace(opts?: {
|
|
|
13
20
|
coreVersion?: string;
|
|
14
21
|
cliVersion?: string;
|
|
15
22
|
dependencyVersion?: string;
|
|
23
|
+
extraDependencies?: Record<string, string>;
|
|
24
|
+
extraWorkspacePackages?: {
|
|
25
|
+
relDir: string;
|
|
26
|
+
name: string;
|
|
27
|
+
version?: string;
|
|
28
|
+
private?: boolean;
|
|
29
|
+
}[];
|
|
16
30
|
writeNotes?: boolean;
|
|
17
31
|
notesVersion?: string;
|
|
18
32
|
notesBody?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"release.test-helpers.d.ts","sourceRoot":"","sources":["../../src/commands/release.test-helpers.ts"],"names":[],"mappings":"AAIA,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,OAAO,CAAC,IAAI,CAAC,CAIf;AAED,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,IAAI,SAAc,GACjB,OAAO,CAAC,IAAI,CAAC,CAIf;AAED,wBAAsB,oBAAoB,CACxC,IAAI,EAAE,MAAM,EACZ,IAAI,GAAE;IACJ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACf,GACL,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"release.test-helpers.d.ts","sourceRoot":"","sources":["../../src/commands/release.test-helpers.ts"],"names":[],"mappings":"AAIA,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,OAAO,CAAC,IAAI,CAAC,CAIf;AAED,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,IAAI,SAAc,GACjB,OAAO,CAAC,IAAI,CAAC,CAIf;AAED,wBAAsB,oBAAoB,CACxC,IAAI,EAAE,MAAM,EACZ,IAAI,GAAE;IACJ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3C,sBAAsB,CAAC,EAAE;QACvB,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,OAAO,CAAC;KACnB,EAAE,CAAC;IACJ,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACf,GACL,OAAO,CAAC,IAAI,CAAC,CA6Bf;AAED,wBAAsB,oBAAoB,CACxC,IAAI,GAAE;IACJ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3C,sBAAsB,CAAC,EAAE;QACvB,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,OAAO,CAAC;KACnB,EAAE,CAAC;IACJ,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACf,GACL,OAAO,CAAC,MAAM,CAAC,CAIjB"}
|