agentplane 0.2.23 → 0.2.25
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 +44 -30
- package/assets/agents/CODER.json +1 -1
- package/assets/agents/DOCS.json +1 -1
- package/assets/agents/ORCHESTRATOR.json +10 -9
- package/assets/agents/PLANNER.json +9 -4
- package/assets/agents/TESTER.json +1 -1
- package/dist/cli/command-guide.js +7 -7
- package/dist/cli/run-cli/commands/init.d.ts +1 -1
- package/dist/cli/run-cli/commands/init.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/init.js +80 -37
- package/dist/cli/run-cli.test-helpers.d.ts.map +1 -1
- package/dist/cli/run-cli.test-helpers.js +4 -5
- package/dist/commands/block.spec.d.ts.map +1 -1
- package/dist/commands/block.spec.js +23 -2
- package/dist/commands/commit.spec.d.ts.map +1 -1
- package/dist/commands/commit.spec.js +18 -6
- package/dist/commands/finish.spec.d.ts.map +1 -1
- package/dist/commands/finish.spec.js +53 -4
- package/dist/commands/guard/commit.command.d.ts.map +1 -1
- package/dist/commands/guard/commit.command.js +26 -20
- package/dist/commands/guard/impl/allow.d.ts.map +1 -1
- package/dist/commands/guard/impl/allow.js +8 -1
- package/dist/commands/guard/impl/commands.d.ts.map +1 -1
- package/dist/commands/guard/impl/commands.js +7 -15
- package/dist/commands/guard/impl/comment-commit.d.ts.map +1 -1
- package/dist/commands/guard/impl/comment-commit.js +8 -17
- package/dist/commands/hooks/index.d.ts.map +1 -1
- package/dist/commands/hooks/index.js +20 -6
- package/dist/commands/release/apply.command.d.ts.map +1 -1
- package/dist/commands/release/apply.command.js +18 -3
- package/dist/commands/release/plan.command.js +1 -1
- package/dist/commands/scenario/impl/commands.d.ts +18 -0
- package/dist/commands/scenario/impl/commands.d.ts.map +1 -1
- package/dist/commands/scenario/impl/commands.js +37 -5
- package/dist/commands/shared/pr-meta.d.ts +5 -0
- package/dist/commands/shared/pr-meta.d.ts.map +1 -1
- package/dist/commands/shared/pr-meta.js +11 -1
- package/dist/commands/start.spec.d.ts.map +1 -1
- package/dist/commands/start.spec.js +23 -2
- package/dist/commands/task/finish.d.ts.map +1 -1
- package/dist/commands/task/finish.js +32 -10
- package/dist/commands/task/new.d.ts.map +1 -1
- package/dist/commands/task/new.js +110 -7
- package/dist/commands/task/new.spec.d.ts.map +1 -1
- package/dist/commands/task/new.spec.js +2 -1
- package/dist/commands/task/set-status.command.d.ts.map +1 -1
- package/dist/commands/task/set-status.command.js +22 -2
- package/dist/commands/task/shared.d.ts +5 -0
- package/dist/commands/task/shared.d.ts.map +1 -1
- package/dist/commands/task/shared.js +68 -4
- package/dist/commands/task/update.d.ts.map +1 -1
- package/dist/commands/task/update.js +6 -1
- package/dist/policy/rules/allowlist.d.ts.map +1 -1
- package/dist/policy/rules/allowlist.js +9 -0
- package/dist/shared/allow-prefix-policy.d.ts +3 -0
- package/dist/shared/allow-prefix-policy.d.ts.map +1 -0
- package/dist/shared/allow-prefix-policy.js +8 -0
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@ import { mapBackendError } from "../../cli/error-map.js";
|
|
|
2
2
|
import { successMessage, unknownEntityMessage, warnMessage } from "../../cli/output.js";
|
|
3
3
|
import { CliError } from "../../shared/errors.js";
|
|
4
4
|
import { loadCommandContext } from "../shared/task-backend.js";
|
|
5
|
-
import { dedupeStrings, requiresVerifyStepsByPrimary, readTaskTagPolicy, resolvePrimaryTag, toStringArray, warnIfUnknownOwner, } from "./shared.js";
|
|
5
|
+
import { dedupeStrings, ensureTaskDependsOnGraphIsAcyclic, requiresVerifyStepsByPrimary, readTaskTagPolicy, resolvePrimaryTag, toStringArray, warnIfUnknownOwner, } from "./shared.js";
|
|
6
6
|
export async function cmdTaskUpdate(opts) {
|
|
7
7
|
try {
|
|
8
8
|
const ctx = opts.ctx ??
|
|
@@ -52,6 +52,11 @@ export async function cmdTaskUpdate(opts) {
|
|
|
52
52
|
? []
|
|
53
53
|
: dedupeStrings(toStringArray(next.depends_on));
|
|
54
54
|
const mergedDepends = dedupeStrings([...existingDepends, ...opts.dependsOn]);
|
|
55
|
+
await ensureTaskDependsOnGraphIsAcyclic({
|
|
56
|
+
backend: ctx.taskBackend,
|
|
57
|
+
taskId: opts.taskId,
|
|
58
|
+
dependsOn: mergedDepends,
|
|
59
|
+
});
|
|
55
60
|
next.depends_on = mergedDepends;
|
|
56
61
|
const existingVerify = opts.replaceVerify ? [] : dedupeStrings(toStringArray(next.verify));
|
|
57
62
|
const mergedVerify = dedupeStrings([...existingVerify, ...opts.verify]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allowlist.d.ts","sourceRoot":"","sources":["../../../src/policy/rules/allowlist.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE/D,wBAAgB,aAAa,CAAC,GAAG,EAAE,aAAa,GAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"allowlist.d.ts","sourceRoot":"","sources":["../../../src/policy/rules/allowlist.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE/D,wBAAgB,aAAa,CAAC,GAAG,EAAE,aAAa,GAAG,YAAY,CA0C9D"}
|
|
@@ -17,6 +17,15 @@ export function allowlistRule(ctx) {
|
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
const allow = allowRaw.map((p) => normalizeGitPathPrefix(p));
|
|
20
|
+
if (allow.includes(".")) {
|
|
21
|
+
return {
|
|
22
|
+
ok: false,
|
|
23
|
+
errors: [
|
|
24
|
+
gitError("Repo-wide allowlist ('.') is not allowed; choose minimal prefixes (tip: `agentplane guard suggest-allow --format args`)."),
|
|
25
|
+
],
|
|
26
|
+
warnings: [],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
20
29
|
const errors = [];
|
|
21
30
|
for (const filePath of staged) {
|
|
22
31
|
if (!allow.some((prefix) => gitPathIsUnderPrefix(filePath, prefix))) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"allow-prefix-policy.d.ts","sourceRoot":"","sources":["../../src/shared/allow-prefix-policy.ts"],"names":[],"mappings":"AAEA,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAEtE;AAED,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAKnE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { normalizeGitPathPrefix } from "./git-path.js";
|
|
2
|
+
export function findRepoWideAllowPrefixes(prefixes) {
|
|
3
|
+
return prefixes.filter((prefix) => normalizeGitPathPrefix(prefix) === ".");
|
|
4
|
+
}
|
|
5
|
+
export function repoWideAllowPrefixMessage(flagName) {
|
|
6
|
+
return (`${flagName} cannot be repo-wide ('.'). ` +
|
|
7
|
+
"Choose minimal path prefixes; tip: `agentplane guard suggest-allow --format args`.");
|
|
8
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentplane",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.25",
|
|
4
4
|
"description": "Agent Plane CLI for task workflows, recipes, and project automation.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agentplane",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"prepublishOnly": "node ../../scripts/enforce-github-publish.mjs && npm run prepack"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@agentplaneorg/core": "0.2.
|
|
58
|
+
"@agentplaneorg/core": "0.2.25",
|
|
59
59
|
"yauzl": "^2.10.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|