@webpresso/agent-kit 3.3.4 → 3.3.5
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/dist/esm/audit/agents.js +126 -26
- package/dist/esm/blueprint/trust/dossier.js +41 -1
- package/dist/esm/build/vendor-oxlint-plugins.d.ts +4 -1
- package/dist/esm/build/vendor-oxlint-plugins.js +9 -14
- package/dist/esm/cli/commands/init/index.js +3 -4
- package/dist/esm/cli/commands/review.d.ts +1 -0
- package/dist/esm/cli/commands/review.js +77 -1
- package/dist/esm/cli/commands/sync.d.ts +8 -6
- package/dist/esm/cli/commands/sync.js +11 -9
- package/dist/esm/config/oxlint/oxlintrc.d.ts +1 -1
- package/dist/esm/config/oxlint/oxlintrc.js +3 -12
- package/dist/esm/content/dispatch.js +4 -0
- package/dist/esm/content/loader.d.ts +1 -1
- package/dist/esm/content/loader.js +10 -6
- package/dist/esm/content/skill-policy.d.ts +11 -0
- package/dist/esm/content/skill-policy.js +33 -0
- package/dist/esm/hooks/pretool-guard/dev-routing.js +67 -4
- package/dist/esm/hooks/pretool-guard/validators/worktree-discipline.js +62 -3
- package/dist/esm/review/authority.js +56 -1
- package/dist/esm/review/delivery-verifier.d.ts +4 -0
- package/dist/esm/review/delivery-verifier.js +9 -1
- package/dist/esm/symlinker/consumers.d.ts +3 -1
- package/dist/esm/symlinker/consumers.js +7 -1
- package/dist/esm/symlinker/unified-sync.d.ts +3 -3
- package/dist/esm/symlinker/unified-sync.js +88 -11
- package/dist/esm/test/shard-durations.json +0 -1
- package/package.json +12 -12
- package/dist/esm/cli/commands/init/scaffolders/subagents/index.d.ts +0 -6
- package/dist/esm/cli/commands/init/scaffolders/subagents/index.js +0 -77
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webpresso/agent-kit",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "TypeScript-first agent harness for guarded develop/deploy workflows: wp CLI gates, MCP tools, hooks, memory, worktrees, secrets, audits, and evidence checks.",
|
|
6
6
|
"keywords": [
|
|
@@ -514,16 +514,16 @@
|
|
|
514
514
|
"setupWpActionRef": "c2c71a7a4be446fc6858e6b57bf55a11ccfa2d88"
|
|
515
515
|
},
|
|
516
516
|
"optionalDependencies": {
|
|
517
|
-
"@webpresso/agent-kit-runtime-darwin-arm64": "3.3.
|
|
518
|
-
"@webpresso/agent-kit-runtime-darwin-x64": "3.3.
|
|
519
|
-
"@webpresso/agent-kit-runtime-linux-x64": "3.3.
|
|
520
|
-
"@webpresso/agent-kit-runtime-linux-arm64": "3.3.
|
|
521
|
-
"@webpresso/agent-kit-runtime-windows-x64": "3.3.
|
|
522
|
-
"@webpresso/agent-kit-session-memory-darwin-x64": "3.3.
|
|
523
|
-
"@webpresso/agent-kit-session-memory-darwin-arm64": "3.3.
|
|
524
|
-
"@webpresso/agent-kit-session-memory-linux-x64": "3.3.
|
|
525
|
-
"@webpresso/agent-kit-session-memory-linux-arm64": "3.3.
|
|
526
|
-
"@webpresso/agent-kit-session-memory-win32-x64": "3.3.
|
|
527
|
-
"@webpresso/agent-kit-session-memory-win32-arm64": "3.3.
|
|
517
|
+
"@webpresso/agent-kit-runtime-darwin-arm64": "3.3.5",
|
|
518
|
+
"@webpresso/agent-kit-runtime-darwin-x64": "3.3.5",
|
|
519
|
+
"@webpresso/agent-kit-runtime-linux-x64": "3.3.5",
|
|
520
|
+
"@webpresso/agent-kit-runtime-linux-arm64": "3.3.5",
|
|
521
|
+
"@webpresso/agent-kit-runtime-windows-x64": "3.3.5",
|
|
522
|
+
"@webpresso/agent-kit-session-memory-darwin-x64": "3.3.5",
|
|
523
|
+
"@webpresso/agent-kit-session-memory-darwin-arm64": "3.3.5",
|
|
524
|
+
"@webpresso/agent-kit-session-memory-linux-x64": "3.3.5",
|
|
525
|
+
"@webpresso/agent-kit-session-memory-linux-arm64": "3.3.5",
|
|
526
|
+
"@webpresso/agent-kit-session-memory-win32-x64": "3.3.5",
|
|
527
|
+
"@webpresso/agent-kit-session-memory-win32-arm64": "3.3.5"
|
|
528
528
|
}
|
|
529
529
|
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { existsSync, lstatSync, mkdirSync, readdirSync, readlinkSync, rmSync, symlinkSync, } from "node:fs";
|
|
2
|
-
import { dirname, join, relative } from "node:path";
|
|
3
|
-
import { readPackageJson } from "#cli/commands/init/detect-consumer";
|
|
4
|
-
import { resolveAgentKitPackageRootOrThrow } from "#cli/commands/init/package-root";
|
|
5
|
-
function detectMode(repoRoot) {
|
|
6
|
-
const pkg = readPackageJson(repoRoot).info;
|
|
7
|
-
if (pkg?.name === "@webpresso/agent-kit") {
|
|
8
|
-
return {
|
|
9
|
-
mode: "self",
|
|
10
|
-
sourceRoot: join(repoRoot, "catalog", "agent", "agents"),
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
const installedPackageJsonPath = join(repoRoot, "node_modules", "@webpresso", "agent-kit", "package.json");
|
|
14
|
-
const installedAgentsRoot = join(repoRoot, "node_modules", "@webpresso", "agent-kit", "catalog", "agent", "agents");
|
|
15
|
-
if (existsSync(installedPackageJsonPath) && existsSync(installedAgentsRoot)) {
|
|
16
|
-
return {
|
|
17
|
-
mode: "consumer",
|
|
18
|
-
sourceRoot: installedAgentsRoot,
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
return {
|
|
22
|
-
mode: "package-fallback",
|
|
23
|
-
sourceRoot: join(resolveCurrentPackageRoot(), "catalog", "agent", "agents"),
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
function resolveCurrentPackageRoot() {
|
|
27
|
-
return resolveAgentKitPackageRootOrThrow("wp init: could not locate the webpresso package root for subagents fallback.", { requireCatalog: true });
|
|
28
|
-
}
|
|
29
|
-
export function scaffoldSubagents(input) {
|
|
30
|
-
const { repoRoot, options } = input;
|
|
31
|
-
const mode = detectMode(repoRoot);
|
|
32
|
-
const sourceRoot = mode.sourceRoot;
|
|
33
|
-
const targetRoot = join(repoRoot, ".claude", "agents");
|
|
34
|
-
const results = [];
|
|
35
|
-
if (!existsSync(sourceRoot))
|
|
36
|
-
return results;
|
|
37
|
-
const entries = readdirSync(sourceRoot).filter((f) => f.endsWith(".md") && f !== "README.md");
|
|
38
|
-
if (entries.length === 0)
|
|
39
|
-
return results;
|
|
40
|
-
if (!options.dryRun) {
|
|
41
|
-
mkdirSync(targetRoot, { recursive: true });
|
|
42
|
-
}
|
|
43
|
-
for (const name of entries) {
|
|
44
|
-
const sourcePath = join(sourceRoot, name);
|
|
45
|
-
const targetPath = join(targetRoot, name);
|
|
46
|
-
const symTarget = relative(dirname(targetPath), sourcePath);
|
|
47
|
-
if (options.dryRun) {
|
|
48
|
-
results.push({ targetPath, action: "created" });
|
|
49
|
-
continue;
|
|
50
|
-
}
|
|
51
|
-
try {
|
|
52
|
-
const stat = lstatSync(targetPath);
|
|
53
|
-
if (stat.isSymbolicLink()) {
|
|
54
|
-
const currentTarget = readlinkSync(targetPath);
|
|
55
|
-
if (currentTarget === symTarget) {
|
|
56
|
-
results.push({ targetPath, action: "identical" });
|
|
57
|
-
}
|
|
58
|
-
else if (options.overwrite) {
|
|
59
|
-
rmSync(targetPath);
|
|
60
|
-
symlinkSync(symTarget, targetPath);
|
|
61
|
-
results.push({ targetPath, action: "overwritten" });
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
results.push({ targetPath, action: "drifted" });
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
results.push({ targetPath, action: "identical" });
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
catch {
|
|
72
|
-
symlinkSync(symTarget, targetPath);
|
|
73
|
-
results.push({ targetPath, action: "created" });
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
return results;
|
|
77
|
-
}
|