@webpresso/agent-kit 3.3.3 → 3.3.4
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/THIRD-PARTY-NOTICES.md +12 -10
- package/catalog/agent/rules/changeset-release.md +15 -4
- package/catalog/agent/rules/managed-tool-binaries.md +67 -0
- package/catalog/agent/rules/parallel-orchestration-quota.md +99 -1
- package/catalog/agent/rules/pre-implementation.md +36 -20
- package/catalog/agent/rules/rtk-routing.md +22 -16
- package/catalog/agent/skills/autopilot/SKILL.md +4 -3
- package/catalog/agent/skills/ultragoal/SKILL.md +11 -9
- package/dist/esm/audit/hook-surface.js +5 -1
- package/dist/esm/audit/repo-guardrails.d.ts +8 -0
- package/dist/esm/audit/repo-guardrails.js +71 -1
- package/dist/esm/blueprint/core/parser.js +38 -12
- package/dist/esm/blueprint/execution/artifacts.js +8 -4
- package/dist/esm/blueprint/execution/frontmatter-keys.d.ts +17 -0
- package/dist/esm/blueprint/execution/frontmatter-keys.js +24 -0
- package/dist/esm/blueprint/execution/metadata.js +8 -4
- package/dist/esm/blueprint/lifecycle/audit.d.ts +21 -0
- package/dist/esm/blueprint/lifecycle/audit.js +89 -3
- package/dist/esm/blueprint/lifecycle/review-provenance.js +63 -10
- package/dist/esm/blueprint/lifecycle/rollout-anchor.d.ts +22 -0
- package/dist/esm/blueprint/lifecycle/rollout-anchor.js +37 -1
- package/dist/esm/blueprint/markdown/blocked-line.d.ts +49 -0
- package/dist/esm/blueprint/markdown/blocked-line.js +63 -0
- package/dist/esm/blueprint/markdown/helpers.js +10 -4
- package/dist/esm/blueprint/tracked-document/parser.js +3 -3
- package/dist/esm/blueprint/trust/gate-row.d.ts +55 -0
- package/dist/esm/blueprint/trust/gate-row.js +113 -0
- package/dist/esm/blueprint/trust/promotion.d.ts +17 -0
- package/dist/esm/blueprint/trust/promotion.js +19 -19
- package/dist/esm/build/atomic-file-copy.d.ts +32 -0
- package/dist/esm/build/atomic-file-copy.js +44 -0
- package/dist/esm/build/vendor-oxlint-plugins.d.ts +8 -0
- package/dist/esm/build/vendor-oxlint-plugins.js +53 -0
- package/dist/esm/cli/commands/blueprint/mutations.d.ts +15 -0
- package/dist/esm/cli/commands/blueprint/mutations.js +8 -2
- package/dist/esm/cli/commands/compile.d.ts +13 -0
- package/dist/esm/cli/commands/compile.js +182 -62
- package/dist/esm/cli/commands/format.js +17 -1
- package/dist/esm/cli/commands/gain/index.js +10 -3
- package/dist/esm/cli/commands/init/gitignore-patcher.js +6 -0
- package/dist/esm/cli/commands/init/index.js +29 -48
- package/dist/esm/cli/commands/init/mcp-spec.d.ts +48 -13
- package/dist/esm/cli/commands/init/mcp-spec.js +86 -30
- package/dist/esm/cli/commands/init/merge.js +30 -10
- package/dist/esm/cli/commands/init/scaffolders/codex-mcp/index.d.ts +56 -31
- package/dist/esm/cli/commands/init/scaffolders/codex-mcp/index.js +180 -43
- package/dist/esm/cli/commands/init/scaffolders/rtk/index.d.ts +17 -5
- package/dist/esm/cli/commands/init/scaffolders/rtk/index.js +56 -75
- package/dist/esm/cli/commands/init/scaffolders/runtime-check/index.js +7 -6
- package/dist/esm/cli/commands/init/untracked-collision.d.ts +12 -1
- package/dist/esm/cli/commands/init/untracked-collision.js +23 -1
- package/dist/esm/cli/commands/pr-help.js +1 -1
- package/dist/esm/cli/commands/pr.js +18 -4
- package/dist/esm/cli/commands/review.js +60 -6
- package/dist/esm/cli/commands/worktree/router-dispatch.d.ts +24 -2
- package/dist/esm/cli/commands/worktree/router-dispatch.js +80 -48
- package/dist/esm/cli/commands/worktree/router.js +5 -2
- package/dist/esm/cli/direct-provider-launch.js +12 -4
- package/dist/esm/compiler/flatten.d.ts +10 -1
- package/dist/esm/compiler/flatten.js +14 -4
- package/dist/esm/compose/admin-blocks-registry-integrity.d.ts +22 -0
- package/dist/esm/compose/admin-blocks-registry-integrity.js +90 -0
- package/dist/esm/compose/compose.d.ts +8 -0
- package/dist/esm/compose/compose.js +115 -8
- package/dist/esm/compose/ops-report-schema.js +17 -3
- package/dist/esm/compose/registry-resolve.d.ts +17 -0
- package/dist/esm/compose/registry-resolve.js +78 -11
- package/dist/esm/config/oxlint/graphql-conventions.js +2 -5
- package/dist/esm/config/oxlint/import-hygiene.js +21 -8
- package/dist/esm/config/oxlint/oxlint-config.fixture.d.ts +1 -1
- package/dist/esm/config/oxlint/oxlint-config.fixture.js +2 -3
- package/dist/esm/config/oxlint/oxlintrc.d.ts +5 -7
- package/dist/esm/config/oxlint/oxlintrc.js +18 -21
- package/dist/esm/config/oxlint/path-roles.js +53 -0
- package/dist/esm/config/oxlint/query-patterns.js +2 -5
- package/dist/esm/daemon/domains/blueprint-exec-ledger.d.ts +86 -0
- package/dist/esm/daemon/domains/blueprint-exec-ledger.js +134 -0
- package/dist/esm/daemon/domains/blueprint-exec.d.ts +106 -0
- package/dist/esm/daemon/domains/blueprint-exec.js +161 -0
- package/dist/esm/daemon/domains/launch.d.ts +25 -0
- package/dist/esm/daemon/domains/launch.js +30 -1
- package/dist/esm/daemon/handlers/blueprints-handlers.d.ts +12 -1
- package/dist/esm/daemon/handlers/blueprints-handlers.js +148 -6
- package/dist/esm/daemon/handlers/product.d.ts +10 -0
- package/dist/esm/daemon/handlers/product.js +10 -1
- package/dist/esm/daemon/methods.d.ts +21 -1
- package/dist/esm/daemon/methods.js +20 -0
- package/dist/esm/daemon/protocol/contract.d.ts +58 -0
- package/dist/esm/daemon/protocol/contract.js +38 -0
- package/dist/esm/daemon/server.js +7 -0
- package/dist/esm/docs-linter/blueprint-plan.js +2 -2
- package/dist/esm/errors/wp-error.js +21 -2
- package/dist/esm/hooks/doctor.d.ts +11 -0
- package/dist/esm/hooks/doctor.js +114 -45
- package/dist/esm/hooks/pretool-guard/dev-routing.js +1 -1
- package/dist/esm/hooks/pretool-guard/rtk-rewrite.d.ts +24 -0
- package/dist/esm/hooks/pretool-guard/rtk-rewrite.js +50 -0
- package/dist/esm/hooks/pretool-guard/runner.js +6 -0
- package/dist/esm/hooks/status/index.js +1 -1
- package/dist/esm/mcp/blueprint/_shared/lifecycle.js +39 -11
- package/dist/esm/mcp/blueprint/handlers/review-log.d.ts +14 -7
- package/dist/esm/mcp/blueprint/handlers/review-log.js +46 -22
- package/dist/esm/mcp/blueprint/registration.js +1 -1
- package/dist/esm/mcp/tools/_shared/redact.d.ts +22 -0
- package/dist/esm/mcp/tools/_shared/redact.js +114 -8
- package/dist/esm/mcp/tools/gain.js +28 -2
- package/dist/esm/mcp/tools/worktree.js +65 -3
- package/dist/esm/mcp/tools/wp-ui-compose.js +38 -4
- package/dist/esm/mcp/tools/wp-ui-preview.js +14 -7
- package/dist/esm/review/lifecycle-writers.d.ts +76 -0
- package/dist/esm/review/lifecycle-writers.js +330 -0
- package/dist/esm/review/subject.js +66 -32
- package/dist/esm/status/snapshot.d.ts +5 -0
- package/dist/esm/status/snapshot.js +27 -2
- package/dist/esm/test/shard-durations.json +0 -1
- package/dist/esm/test-helpers/global-setup.js +38 -3
- package/dist/esm/tool-runtime/managed-rtk.d.ts +44 -0
- package/dist/esm/tool-runtime/managed-rtk.js +275 -0
- package/dist/esm/tool-runtime/resolve-runner.js +18 -194
- package/dist/esm/utils/package-root.d.ts +32 -0
- package/dist/esm/utils/package-root.js +82 -0
- package/dist/esm/worktrees/git-metadata.d.ts +41 -0
- package/dist/esm/worktrees/git-metadata.js +48 -0
- package/package.json +16 -21
- package/dist/esm/config/oxlint/code-safety.d.ts +0 -18
- package/dist/esm/config/oxlint/foundation-purity.d.ts +0 -21
- package/dist/esm/config/oxlint/graphql-conventions.d.ts +0 -23
- package/dist/esm/config/oxlint/import-hygiene.d.ts +0 -34
- package/dist/esm/config/oxlint/index.d.ts +0 -22
- package/dist/esm/config/oxlint/index.js +0 -28
- package/dist/esm/config/oxlint/monorepo-paths.d.ts +0 -22
- package/dist/esm/config/oxlint/query-patterns.d.ts +0 -24
- package/dist/esm/config/oxlint/testing-quality.d.ts +0 -35
- package/dist/esm/config/oxlint/tier-boundaries.d.ts +0 -35
- package/dist/esm/output-transforms/rulesync.d.ts +0 -2
- package/dist/esm/output-transforms/rulesync.js +0 -79
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export declare function hardcodedRepoRootDepth(args: any): {
|
|
2
|
-
depth: number;
|
|
3
|
-
index: number;
|
|
4
|
-
} | null;
|
|
5
|
-
declare const plugin: {
|
|
6
|
-
meta: {
|
|
7
|
-
name: string;
|
|
8
|
-
};
|
|
9
|
-
rules: {
|
|
10
|
-
"no-hardcoded-repo-root": {
|
|
11
|
-
create(context: any): {
|
|
12
|
-
CallExpression(node: any): void;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
"no-cross-package-paths": {
|
|
16
|
-
create(context: any): {
|
|
17
|
-
CallExpression(node: any): void;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export default plugin;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
declare const plugin: {
|
|
2
|
-
meta: {
|
|
3
|
-
name: string;
|
|
4
|
-
};
|
|
5
|
-
rules: {
|
|
6
|
-
"no-adhoc-useQuery": {
|
|
7
|
-
create(context: any): {
|
|
8
|
-
CallExpression?: undefined;
|
|
9
|
-
} | {
|
|
10
|
-
CallExpression(node: any): void;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
"no-isLoading-on-queries": {
|
|
14
|
-
create(context: any): {
|
|
15
|
-
VariableDeclarator?: undefined;
|
|
16
|
-
MemberExpression?: undefined;
|
|
17
|
-
} | {
|
|
18
|
-
VariableDeclarator(node: any): void;
|
|
19
|
-
MemberExpression(node: any): void;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export default plugin;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
declare const plugin: {
|
|
2
|
-
meta: {
|
|
3
|
-
name: string;
|
|
4
|
-
};
|
|
5
|
-
rules: {
|
|
6
|
-
"no-weak-assertions": {
|
|
7
|
-
create(context: any): {
|
|
8
|
-
CallExpression(node: any): void;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
"no-bare-spy-assertions": {
|
|
12
|
-
create(context: any): {
|
|
13
|
-
CallExpression(node: any): void;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
"no-internal-mocks": {
|
|
17
|
-
create(context: any): {
|
|
18
|
-
CallExpression(node: any): void;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
"no-real-timers-in-tests": {
|
|
22
|
-
create(context: any): {
|
|
23
|
-
NewExpression(node: any): void;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
"no-cold-dynamic-import": {
|
|
27
|
-
create(context: any): {
|
|
28
|
-
CallExpression(node: any): void;
|
|
29
|
-
"CallExpression:exit"(node: any): void;
|
|
30
|
-
ImportExpression(node: any): void;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
export default plugin;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export declare function resolveFileTierContext(filename: any): {
|
|
2
|
-
kind: string;
|
|
3
|
-
packageName: any;
|
|
4
|
-
tier: number;
|
|
5
|
-
} | {
|
|
6
|
-
kind: string;
|
|
7
|
-
} | null;
|
|
8
|
-
export declare function resolveImportTierContext(source: any): {
|
|
9
|
-
kind: string;
|
|
10
|
-
packageName: any;
|
|
11
|
-
tier: number;
|
|
12
|
-
} | {
|
|
13
|
-
kind: string;
|
|
14
|
-
} | null;
|
|
15
|
-
declare const plugin: {
|
|
16
|
-
meta: {
|
|
17
|
-
name: string;
|
|
18
|
-
};
|
|
19
|
-
rules: {
|
|
20
|
-
"no-higher-tier-imports": {
|
|
21
|
-
create(context: any): {
|
|
22
|
-
ImportDeclaration?: undefined;
|
|
23
|
-
ExportNamedDeclaration?: undefined;
|
|
24
|
-
ExportAllDeclaration?: undefined;
|
|
25
|
-
ImportExpression?: undefined;
|
|
26
|
-
} | {
|
|
27
|
-
ImportDeclaration(node: any): void;
|
|
28
|
-
ExportNamedDeclaration(node: any): void;
|
|
29
|
-
ExportAllDeclaration(node: any): void;
|
|
30
|
-
ImportExpression(node: any): void;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
export default plugin;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { createTransformResult } from "./metadata.js";
|
|
2
|
-
import { passthroughTransform } from "./passthrough.js";
|
|
3
|
-
const MAX_OUTPUT_BYTES = 4_000;
|
|
4
|
-
// Matches: ✓ Claude Code: 3 skills, 2 commands, 1 agent
|
|
5
|
-
const SUCCESS_LINE_RE = /^[✓✔]\s+([\w\s]+?):\s+(\d+)\s+skills?,\s+(\d+)\s+commands?,\s+(\d+)\s+agents?/u;
|
|
6
|
-
// Matches: ✗ OpenCode: failed to write .opencode/rules/foo.md: EACCES
|
|
7
|
-
const FAILURE_LINE_RE = /^[✗✘]\s+([\w\s]+?):\s+(.+)$/u;
|
|
8
|
-
// Summary line: Generated in 120ms
|
|
9
|
-
const SUMMARY_LINE_RE = /^Generated in \d+ms$/u;
|
|
10
|
-
function parseRulesyncOutput(raw) {
|
|
11
|
-
const targets = [];
|
|
12
|
-
let hasSummaryLine = false;
|
|
13
|
-
for (const line of raw.split(/\r?\n/u)) {
|
|
14
|
-
const trimmed = line.trim();
|
|
15
|
-
if (!trimmed)
|
|
16
|
-
continue;
|
|
17
|
-
if (SUMMARY_LINE_RE.test(trimmed)) {
|
|
18
|
-
hasSummaryLine = true;
|
|
19
|
-
continue;
|
|
20
|
-
}
|
|
21
|
-
const successMatch = SUCCESS_LINE_RE.exec(trimmed);
|
|
22
|
-
if (successMatch) {
|
|
23
|
-
targets.push({
|
|
24
|
-
target: successMatch[1]?.trim() ?? "",
|
|
25
|
-
skills: parseInt(successMatch[2] ?? "0", 10),
|
|
26
|
-
commands: parseInt(successMatch[3] ?? "0", 10),
|
|
27
|
-
agents: parseInt(successMatch[4] ?? "0", 10),
|
|
28
|
-
failed: false,
|
|
29
|
-
});
|
|
30
|
-
continue;
|
|
31
|
-
}
|
|
32
|
-
const failureMatch = FAILURE_LINE_RE.exec(trimmed);
|
|
33
|
-
if (failureMatch) {
|
|
34
|
-
targets.push({
|
|
35
|
-
target: failureMatch[1]?.trim() ?? "",
|
|
36
|
-
skills: 0,
|
|
37
|
-
commands: 0,
|
|
38
|
-
agents: 0,
|
|
39
|
-
failed: true,
|
|
40
|
-
failureDetail: failureMatch[2]?.trim(),
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
return { targets, hasSummaryLine };
|
|
45
|
-
}
|
|
46
|
-
function buildSummaryLine(targets) {
|
|
47
|
-
const total = targets.length;
|
|
48
|
-
const failed = targets.filter((t) => t.failed).length;
|
|
49
|
-
const passed = total - failed;
|
|
50
|
-
if (failed === 0)
|
|
51
|
-
return `rulesync: ${passed} target${passed === 1 ? "" : "s"} synced`;
|
|
52
|
-
return `rulesync: ${passed}/${total} targets synced, ${failed} failed`;
|
|
53
|
-
}
|
|
54
|
-
export function rulesyncTransform(rawOutput, context) {
|
|
55
|
-
if (!rawOutput)
|
|
56
|
-
return {};
|
|
57
|
-
const { targets, hasSummaryLine } = parseRulesyncOutput(rawOutput);
|
|
58
|
-
if (targets.length === 0 && !hasSummaryLine) {
|
|
59
|
-
return passthroughTransform(rawOutput, context);
|
|
60
|
-
}
|
|
61
|
-
const failures = targets
|
|
62
|
-
.filter((t) => t.failed)
|
|
63
|
-
.map((t) => ({
|
|
64
|
-
message: t.failureDetail ? `${t.target}: ${t.failureDetail}` : `${t.target}: failed`,
|
|
65
|
-
}));
|
|
66
|
-
const summaryLine = buildSummaryLine(targets);
|
|
67
|
-
const successLines = targets
|
|
68
|
-
.filter((t) => !t.failed)
|
|
69
|
-
.map((t) => ` ${t.target}: ${t.skills} skills, ${t.commands} commands, ${t.agents} agents`);
|
|
70
|
-
const failureLines = targets
|
|
71
|
-
.filter((t) => t.failed)
|
|
72
|
-
.map((t) => ` ${t.target}: FAILED — ${t.failureDetail ?? "unknown error"}`);
|
|
73
|
-
const compactOutput = [summaryLine, ...successLines, ...failureLines].join("\n");
|
|
74
|
-
// Clip to 4000 bytes via createTransformResult
|
|
75
|
-
return createTransformResult(rawOutput, compactOutput.slice(0, MAX_OUTPUT_BYTES), context, {
|
|
76
|
-
tier: 1,
|
|
77
|
-
failures,
|
|
78
|
-
});
|
|
79
|
-
}
|