@modootoday/pmcp 0.17.4 → 0.18.0
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/.agents/plugins/marketplace.json +1 -1
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +60 -0
- package/README.md +29 -24
- package/dist/apply-4IGTXOCQ.js +242 -0
- package/dist/{attachment-tU5FZrgZ.d.ts → attachment-D84OGI6n.d.ts} +1 -1
- package/dist/available-DBSIVVJ6.js +73 -0
- package/dist/broadcast-3RY3OZGY.js +18 -0
- package/dist/chunk-25GHX674.js +1246 -0
- package/dist/chunk-2P4Z2NUX.js +28 -0
- package/dist/chunk-34DECPVC.js +22 -0
- package/dist/chunk-3NYG4SGU.js +45 -0
- package/dist/chunk-3PW4FI7U.js +32 -0
- package/dist/chunk-3Y3HDMHA.js +108 -0
- package/dist/chunk-47O3X4VS.js +113 -0
- package/dist/chunk-4NDEP7HU.js +26 -0
- package/dist/chunk-4VCC2NXE.js +104 -0
- package/dist/chunk-5OMOPUE6.js +39 -0
- package/dist/chunk-5QQWS4US.js +53 -0
- package/dist/chunk-5ZABTVSW.js +48 -0
- package/dist/chunk-65ZHM5RH.js +4985 -0
- package/dist/chunk-665TA55Z.js +419 -0
- package/dist/chunk-6STKGOCW.js +27 -0
- package/dist/chunk-6WXMJOMI.js +9 -0
- package/dist/chunk-73AKO4UL.js +24 -0
- package/dist/chunk-7BLPN3W6.js +31 -0
- package/dist/chunk-7DLZC73N.js +29 -0
- package/dist/chunk-7GBYECSK.js +72 -0
- package/dist/chunk-7TD53M7L.js +13 -0
- package/dist/chunk-A4PKLESO.js +112 -0
- package/dist/chunk-ABTJQ4QV.js +74 -0
- package/dist/chunk-BBTBJCFA.js +380 -0
- package/dist/chunk-BU65MNVU.js +13 -0
- package/dist/chunk-BVCTKPT3.js +83 -0
- package/dist/chunk-C4NHQGHL.js +142 -0
- package/dist/chunk-CJTKR6K6.js +1213 -0
- package/dist/chunk-DCU2EXQV.js +78 -0
- package/dist/chunk-DZ2MRTYT.js +135 -0
- package/dist/chunk-E2YOZ2FF.js +207 -0
- package/dist/chunk-E3DQB5LS.js +48 -0
- package/dist/chunk-E7OOHLQR.js +7 -0
- package/dist/chunk-EATCUWGG.js +66 -0
- package/dist/chunk-EIDIVIAD.js +33 -0
- package/dist/chunk-EJBZGIDK.js +1934 -0
- package/dist/chunk-ELAGZ635.js +252 -0
- package/dist/chunk-GZHHEHKY.js +44 -0
- package/dist/chunk-HDMBVLCZ.js +53 -0
- package/dist/chunk-HQOB7OQS.js +81 -0
- package/dist/chunk-IGYRMM62.js +28 -0
- package/dist/chunk-IJBSOWHK.js +86 -0
- package/dist/chunk-INT7QLEU.js +114 -0
- package/dist/chunk-J6QLLQVL.js +1025 -0
- package/dist/chunk-J7UYNJCR.js +9 -0
- package/dist/chunk-JEL35P7S.js +53 -0
- package/dist/chunk-JGJ4INEN.js +32 -0
- package/dist/chunk-JS5RTH4I.js +84 -0
- package/dist/chunk-JUXNIXN4.js +42 -0
- package/dist/chunk-JWRZDYB5.js +59 -0
- package/dist/chunk-KMXRRSKT.js +660 -0
- package/dist/chunk-LAZQBMAU.js +67 -0
- package/dist/chunk-LLBPVZXM.js +67 -0
- package/dist/chunk-LLT5FQBE.js +57 -0
- package/dist/chunk-LMT3PPXJ.js +17 -0
- package/dist/chunk-MM2Y43LC.js +87 -0
- package/dist/chunk-MPSQXSC6.js +346 -0
- package/dist/chunk-MVFH26QT.js +97 -0
- package/dist/chunk-MWFOUBFC.js +39 -0
- package/dist/chunk-N5AQ3PP7.js +211 -0
- package/dist/chunk-NQPURJT5.js +44 -0
- package/dist/chunk-NRBQK6UX.js +105 -0
- package/dist/chunk-NZS5CD72.js +333 -0
- package/dist/chunk-OEH47H6A.js +48 -0
- package/dist/chunk-OG7QR2DP.js +75 -0
- package/dist/chunk-OPYFEHKG.js +52 -0
- package/dist/chunk-P4N7DBD5.js +83 -0
- package/dist/chunk-PAX3QXX2.js +140 -0
- package/dist/chunk-PLX3BOOS.js +396 -0
- package/dist/chunk-PMJG2CXF.js +122 -0
- package/dist/chunk-PWSJJXLQ.js +643 -0
- package/dist/chunk-Q5H3L6Y4.js +23 -0
- package/dist/chunk-Q65R3XKX.js +155 -0
- package/dist/chunk-QEW4J3IZ.js +74 -0
- package/dist/chunk-QPL7E2HW.js +464 -0
- package/dist/chunk-R2GPCZUX.js +22 -0
- package/dist/chunk-R4L6LJJ2.js +778 -0
- package/dist/chunk-R5MT42JS.js +284 -0
- package/dist/chunk-RK4PYD7L.js +73 -0
- package/dist/chunk-RMATE45Z.js +197 -0
- package/dist/chunk-S3PIAMXV.js +230 -0
- package/dist/chunk-SG5TPMKH.js +93 -0
- package/dist/chunk-T3LKX23M.js +168 -0
- package/dist/chunk-T6GOWHK6.js +30 -0
- package/dist/chunk-TIA4SPU2.js +10 -0
- package/dist/chunk-TNCZ6444.js +57 -0
- package/dist/chunk-TVL5RTE6.js +269 -0
- package/dist/chunk-UOCLRM7P.js +151 -0
- package/dist/chunk-UPQTAHUK.js +189 -0
- package/dist/chunk-V4NPDK6X.js +14 -0
- package/dist/chunk-VJFEN6DJ.js +38 -0
- package/dist/chunk-WIW772I3.js +25 -0
- package/dist/chunk-XELAZAIM.js +136 -0
- package/dist/chunk-XNML2KIC.js +23 -0
- package/dist/chunk-XP2U3LO3.js +30 -0
- package/dist/chunk-YGOWIJPE.js +51 -0
- package/dist/chunk-YIXDHQYE.js +11 -0
- package/dist/chunk-YMHUM7AV.js +22 -0
- package/dist/chunk-YSAWTGNA.js +117 -0
- package/dist/chunk-Z4HRRXRF.js +478 -0
- package/dist/chunk-ZH6R642Z.js +102 -0
- package/dist/claude-U2JC2DNQ.js +77 -0
- package/dist/cli-VYCQJZ5X.js +41 -0
- package/dist/cli-ZTCBSDW4.js +46 -0
- package/dist/cli.js +144 -16197
- package/dist/completion-E7RRG3ZT.js +142 -0
- package/dist/config-DnpLL2kT.d.ts +46 -0
- package/dist/{service-qpCsOXkQ.d.ts → core-C1LPjxK6.d.ts} +2 -6
- package/dist/diagnostics-XXH4FLUG.js +93 -0
- package/dist/doctor-ZIOESU3N.js +538 -0
- package/dist/entry-ZNFCTDVE.js +305 -0
- package/dist/exec-mcp-X6372BLE.js +365 -0
- package/dist/harness-F2XFDYXF.js +177 -0
- package/dist/harness-egress-bridge.js +4 -4
- package/dist/harness-launch-gate.js +47 -940
- package/dist/harness-pane-runner.js +13 -80
- package/dist/harness-worker.js +21 -2703
- package/dist/hook-body.js +5221 -0
- package/dist/hook-spec-C5fWTSCH.d.ts +100 -0
- package/dist/hook.js +26 -0
- package/dist/hooks-FYE2L5RW.js +21 -0
- package/dist/host-GRY3VAHH.js +22 -0
- package/dist/host-X6BR6X4O.js +200 -0
- package/dist/host-run-GCA6H6SR.js +307 -0
- package/dist/http.d.ts +5 -42
- package/dist/http.js +21 -2234
- package/dist/import-mcp-2TTBPVLY.js +400 -0
- package/dist/index.d.ts +146 -168
- package/dist/index.js +133 -4948
- package/dist/init-627KFXTG.js +14 -0
- package/dist/install-GG7HHZK2.js +796 -0
- package/dist/invoke-LW22Z6ET.js +23 -0
- package/dist/list-MCP2FXUF.js +68 -0
- package/dist/list-NGMSQ5SH.js +65 -0
- package/dist/load-BEUBABtB.d.ts +21 -0
- package/dist/logout-6CSHUWWE.js +44 -0
- package/dist/logs-SPB6AANY.js +107 -0
- package/dist/mailbox/index.d.ts +10 -5
- package/dist/mailbox/index.js +53 -1572
- package/dist/mailbox-7BV54Q4R.js +285 -0
- package/dist/mailbox-GDJ7BWQN.js +189 -0
- package/dist/mainline-JQTTYJMI.js +639 -0
- package/dist/marketplace-G4VQET5W.js +191 -0
- package/dist/mcp-2DKVU3SW.js +15 -0
- package/dist/mcp-V23HC3LB.js +193 -0
- package/dist/models-ISU4DCMA.js +32 -0
- package/dist/opencode-CN7JLQYO.js +60 -0
- package/dist/pause-FFAYRBWI.js +18 -0
- package/dist/preview-DT7DWG5F.js +91 -0
- package/dist/project/hook-adapter.d.ts +5 -2
- package/dist/project/hook-adapter.js +41 -27
- package/dist/project-FY62G55N.js +70 -0
- package/dist/pty-XTJ4MIWK.js +94 -0
- package/dist/recovery-U6QB3PMT.js +100 -0
- package/dist/reindex-Y27QJFDB.js +22 -0
- package/dist/resume-UU4HZIUP.js +18 -0
- package/dist/run-HALGEJNJ.js +19 -0
- package/dist/run-OGA3P7FC.js +126 -0
- package/dist/serve-NBKT5BKY.js +104 -0
- package/dist/session-XM2CR425.js +159 -0
- package/dist/setup-DTKZLZUT.js +18 -0
- package/dist/start-login-UIQYQBMC.js +416 -0
- package/dist/status-A2OUTNGK.js +9 -0
- package/dist/status-H2VAHIDV.js +10 -0
- package/dist/status-NOOHW5WA.js +43 -0
- package/dist/status-VHODZPXB.js +55 -0
- package/dist/status-XQANBVXW.js +286 -0
- package/dist/stdio.d.ts +3 -13
- package/dist/stdio.js +16 -3186
- package/dist/sweep-64JDCGK6.js +18 -0
- package/dist/test-MKAXFJOL.js +561 -0
- package/dist/tools-gpHNq9Dh.d.ts +328 -0
- package/dist/tui-MWKAXE4K.js +153 -0
- package/dist/unbroadcast-KPUEFLZD.js +18 -0
- package/dist/validate-5GZ5YWNA.js +46 -0
- package/dist/worker-RQ575EJL.js +80 -0
- package/dist/worktree-create-PZSRB7PH.js +89 -0
- package/dist/worktree-list-JYB6VXLW.js +51 -0
- package/dist/worktree-sync-UF5CXPWV.js +30 -0
- package/docs/hooks/capabilities/antigravity.json +199 -0
- package/docs/hooks/capabilities/claude.json +179 -0
- package/docs/hooks/capabilities/codex.json +179 -0
- package/docs/hooks/capabilities/gemini.json +196 -0
- package/docs/hooks/capabilities/grok.json +192 -0
- package/docs/hooks/capabilities/opencode.json +184 -0
- package/docs/project-configuration.md +821 -4
- package/docs/terminal-harness.md +71 -28
- package/docs/terminal-workspace.md +91 -170
- package/gemini-extension.json +1 -1
- package/package.json +13 -1
- package/plugin.json +1 -1
- package/plugins/pmcp/.claude-plugin/plugin.json +4 -2
- package/plugins/pmcp/gemini-extension.json +1 -1
- package/plugins/pmcp/mod/commands.ts +72 -0
- package/plugins/pmcp/mod/contract.d.ts +39 -0
- package/plugins/pmcp/mod/draw.tsx +216 -0
- package/plugins/pmcp/mod/guard.ts +42 -0
- package/plugins/pmcp/mod/hooks.json +4 -0
- package/plugins/pmcp/mod/host.ts +46 -0
- package/plugins/pmcp/mod/model.ts +144 -0
- package/plugins/pmcp/mod/reader/index.ts +18 -0
- package/plugins/pmcp/mod/reader/read.ts +76 -0
- package/plugins/pmcp/mod/reader/settings.ts +54 -0
- package/plugins/pmcp/mod/reader/types.ts +38 -0
- package/plugins/pmcp/mod/register.tsx +73 -0
- package/plugins/pmcp/mod/sessions/format.ts +91 -0
- package/plugins/pmcp/mod/sessions/types.ts +162 -0
- package/plugins/pmcp/mod/snapshot.ts +75 -0
- package/plugins/pmcp/mod/spinner.tsx +30 -0
- package/plugins/pmcp/mod/state.ts +28 -0
- package/plugins/pmcp/plugin.json +1 -1
- package/plugins/pmcp/skills/agent-assets-migrate/SKILL.md +96 -0
- package/plugins/pmcp/skills/headless-agents-ci-scaffold/SKILL.md +100 -0
- package/plugins/pmcp/skills/marketplace-plugin-scaffold/SKILL.md +87 -0
- package/plugins/pmcp/skills/package-skill-catalog/SKILL.md +51 -11
- package/plugins/pmcp/skills/pmcp-project-init/SKILL.md +145 -0
- package/plugins/pmcp/skills/pmcp-sessions-and-git/SKILL.md +104 -0
- package/plugins/pmcp/skills/skill-package-scaffold/SKILL.md +88 -0
- package/schema/catalog-v1.json +158 -0
- package/schema/library.json +164 -0
- package/schema/marketplace-manifest.json +130 -0
- package/schema/plugin-manifest.json +55 -0
- package/schema/skill-frontmatter.json +144 -0
- package/schema/skill-metadata-core.json +110 -0
- package/skills/agent-assets-migrate/SKILL.md +96 -0
- package/skills/headless-agents-ci-scaffold/SKILL.md +100 -0
- package/skills/marketplace-plugin-scaffold/SKILL.md +87 -0
- package/skills/package-skill-catalog/SKILL.md +51 -11
- package/skills/pmcp-project-init/SKILL.md +145 -0
- package/skills/pmcp-sessions-and-git/SKILL.md +104 -0
- package/skills/skill-package-scaffold/SKILL.md +88 -0
- package/dist/config-BkSpjUG6.d.ts +0 -50
- package/dist/embed-DRROSD3F.d.ts +0 -53
- package/dist/hook-spec-CSJJySsH.d.ts +0 -11
- package/dist/server-VWSY3Shw.d.ts +0 -543
- package/dist/tui-worker.js +0 -6549
- /package/dist/{tui-worker.d.ts → hook.d.ts} +0 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import {
|
|
2
|
+
off
|
|
3
|
+
} from "./chunk-YIXDHQYE.js";
|
|
4
|
+
import {
|
|
5
|
+
git,
|
|
6
|
+
gitOk,
|
|
7
|
+
runCommand
|
|
8
|
+
} from "./chunk-OPYFEHKG.js";
|
|
9
|
+
import {
|
|
10
|
+
ArgumentError,
|
|
11
|
+
one
|
|
12
|
+
} from "./chunk-A4PKLESO.js";
|
|
13
|
+
|
|
14
|
+
// src/git/worktrees/create.ts
|
|
15
|
+
import { existsSync, symlinkSync } from "fs";
|
|
16
|
+
import { join } from "path";
|
|
17
|
+
function linkFromMain(ctx, path, names) {
|
|
18
|
+
const linked = [];
|
|
19
|
+
for (const name of names) {
|
|
20
|
+
const source = join(ctx.mainRoot, name);
|
|
21
|
+
const target = join(path, name);
|
|
22
|
+
if (!existsSync(source) || existsSync(target)) continue;
|
|
23
|
+
symlinkSync(source, target);
|
|
24
|
+
linked.push(name);
|
|
25
|
+
}
|
|
26
|
+
return linked;
|
|
27
|
+
}
|
|
28
|
+
function createWorktree(options) {
|
|
29
|
+
const { ctx, config, alias, report } = options;
|
|
30
|
+
if (!new RegExp(config.aliasPattern, "u").test(alias))
|
|
31
|
+
throw new Error(`alias ${alias} does not match ${config.aliasPattern}`);
|
|
32
|
+
const path = join(ctx.mainRoot, config.root, alias);
|
|
33
|
+
const branch = `${config.branchPrefix}${alias}`;
|
|
34
|
+
if (existsSync(path)) throw new Error(`${path} already exists`);
|
|
35
|
+
if (gitOk(ctx.mainRoot, ["rev-parse", "--verify", "-q", `refs/heads/${branch}`]))
|
|
36
|
+
throw new Error(`branch ${branch} already exists`);
|
|
37
|
+
if (options.base === void 0)
|
|
38
|
+
git(ctx.mainRoot, ["fetch", "-q", ctx.remote, ctx.mainline]);
|
|
39
|
+
const base = options.base ?? ctx.upstream;
|
|
40
|
+
const added = git(ctx.mainRoot, [
|
|
41
|
+
"worktree",
|
|
42
|
+
"add",
|
|
43
|
+
"-q",
|
|
44
|
+
"--no-track",
|
|
45
|
+
"-b",
|
|
46
|
+
branch,
|
|
47
|
+
path,
|
|
48
|
+
base
|
|
49
|
+
]);
|
|
50
|
+
if (added.status !== 0)
|
|
51
|
+
throw new Error(`worktree add failed: ${added.stderr.trim()}`);
|
|
52
|
+
const linked = linkFromMain(ctx, path, config.linkFromMain);
|
|
53
|
+
if (linked.length > 0)
|
|
54
|
+
report.info(`linked from the main checkout: ${linked.join(", ")}`);
|
|
55
|
+
if (config.bootstrap !== void 0) {
|
|
56
|
+
const status = runCommand(config.bootstrap, path, {
|
|
57
|
+
PMCP_WORKTREE_ALIAS: alias
|
|
58
|
+
});
|
|
59
|
+
if (status !== 0)
|
|
60
|
+
throw new Error(
|
|
61
|
+
`bootstrap exited ${status}; the worktree stays at ${path}`
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
report.info(`created ${path} on ${branch} from ${base}`);
|
|
65
|
+
return { path, branch };
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// src/git/cli/worktree-create.ts
|
|
69
|
+
var worktreeCreate = (setup, context, report) => {
|
|
70
|
+
const alias = context.args.positional[2];
|
|
71
|
+
if (alias === void 0)
|
|
72
|
+
throw new ArgumentError("Provide the worktree alias");
|
|
73
|
+
const config = setup.config.worktrees ?? off("git.worktrees");
|
|
74
|
+
const base = one(context.args, "base");
|
|
75
|
+
const created = createWorktree({
|
|
76
|
+
ctx: setup.ctx,
|
|
77
|
+
config,
|
|
78
|
+
alias,
|
|
79
|
+
report,
|
|
80
|
+
...base === void 0 ? {} : { base }
|
|
81
|
+
});
|
|
82
|
+
context.ui.data(`${created.path}
|
|
83
|
+
`);
|
|
84
|
+
return 0;
|
|
85
|
+
};
|
|
86
|
+
export {
|
|
87
|
+
worktreeCreate
|
|
88
|
+
};
|
|
89
|
+
//# sourceMappingURL=worktree-create-PZSRB7PH.js.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import {
|
|
2
|
+
off
|
|
3
|
+
} from "./chunk-YIXDHQYE.js";
|
|
4
|
+
import {
|
|
5
|
+
listWorktrees
|
|
6
|
+
} from "./chunk-JS5RTH4I.js";
|
|
7
|
+
import {
|
|
8
|
+
distance
|
|
9
|
+
} from "./chunk-QEW4J3IZ.js";
|
|
10
|
+
import "./chunk-OPYFEHKG.js";
|
|
11
|
+
|
|
12
|
+
// src/git/worktrees/list.ts
|
|
13
|
+
import { join, relative, sep } from "path";
|
|
14
|
+
function worktreeRows(ctx, config) {
|
|
15
|
+
const root = join(ctx.mainRoot, config.root);
|
|
16
|
+
return listWorktrees(ctx.mainRoot).filter((entry) => !entry.bare).map((entry) => {
|
|
17
|
+
const inside = relative(root, entry.path);
|
|
18
|
+
const alias = inside && !inside.startsWith("..") && !inside.includes(sep) ? inside : void 0;
|
|
19
|
+
const counted = distance(entry.path, ctx.upstream);
|
|
20
|
+
return {
|
|
21
|
+
path: entry.path,
|
|
22
|
+
...alias === void 0 ? {} : { alias },
|
|
23
|
+
...entry.branch === void 0 ? {} : { branch: entry.branch },
|
|
24
|
+
main: entry.path === ctx.mainRoot,
|
|
25
|
+
...counted ?? {}
|
|
26
|
+
};
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// src/git/cli/worktree-list.ts
|
|
31
|
+
var worktreeList = (setup, context) => {
|
|
32
|
+
const config = setup.config.worktrees ?? off("git.worktrees");
|
|
33
|
+
const rows = worktreeRows(setup.ctx, config);
|
|
34
|
+
if (context.args.flags.has("json")) {
|
|
35
|
+
context.ui.data(JSON.stringify({ version: 1, worktrees: rows }) + "\n");
|
|
36
|
+
return 0;
|
|
37
|
+
}
|
|
38
|
+
for (const row of rows) {
|
|
39
|
+
const name = row.main ? "(main)" : row.alias ?? "-";
|
|
40
|
+
const counts = row.behind === void 0 ? "-" : `-${row.behind}/+${row.ahead}`;
|
|
41
|
+
context.ui.data(
|
|
42
|
+
`${name} ${row.branch ?? "(detached)"} ${counts} ${row.path}
|
|
43
|
+
`
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
return 0;
|
|
47
|
+
};
|
|
48
|
+
export {
|
|
49
|
+
worktreeList
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=worktree-list-JYB6VXLW.js.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
off
|
|
3
|
+
} from "./chunk-YIXDHQYE.js";
|
|
4
|
+
import {
|
|
5
|
+
syncWorktree
|
|
6
|
+
} from "./chunk-DCU2EXQV.js";
|
|
7
|
+
import "./chunk-XELAZAIM.js";
|
|
8
|
+
import "./chunk-QEW4J3IZ.js";
|
|
9
|
+
import "./chunk-OPYFEHKG.js";
|
|
10
|
+
|
|
11
|
+
// src/git/cli/worktree-sync.ts
|
|
12
|
+
var worktreeSync = (setup, _context, report) => {
|
|
13
|
+
const { config, ctx } = setup;
|
|
14
|
+
if (config.worktrees === void 0) off("git.worktrees");
|
|
15
|
+
const command = config.sync?.install;
|
|
16
|
+
const installs = command !== void 0 && config.worktreeSync?.installAfterMove !== "off";
|
|
17
|
+
const when = config.sync?.installWhenChanged ?? [];
|
|
18
|
+
const install = installs ? { command, when, stateDir: setup.stateDir } : void 0;
|
|
19
|
+
const result = syncWorktree({
|
|
20
|
+
ctx,
|
|
21
|
+
followSubmodules: config.submodules?.follow === "clean_pins",
|
|
22
|
+
report,
|
|
23
|
+
...install === void 0 ? {} : { install }
|
|
24
|
+
});
|
|
25
|
+
return result === "held" ? 1 : 0;
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
worktreeSync
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=worktree-sync-UF5CXPWV.js.map
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
{
|
|
2
|
+
"runtime": "antigravity",
|
|
3
|
+
"version": "1.3.3",
|
|
4
|
+
"measuredAt": "2026-10-20T00:50:00Z",
|
|
5
|
+
"configuration": {
|
|
6
|
+
"hooks": ".agents/hooks.json in the workspace customization root (also the global customization root, and plugins/<name>/hooks.json). Top-level keys are hook names, each with optional enabled and per-event arrays.",
|
|
7
|
+
"trust": "none: project hooks ran in a fresh, never-opened directory with no trust prompt, interactive or headless",
|
|
8
|
+
"headless": "agy -p '<prompt>' --output-format json [--print-timeout <d>]. Tools needing the command permission are auto-denied in headless mode unless permissions.allow (user settings.json) allows them or --dangerously-skip-permissions is passed; a PreToolUse allow does not grant that permission.",
|
|
9
|
+
"mcp": "documented: mcp_config.json in a customization root (.agents/) or plugins/<name>/mcp_config.json; pmcp already projects .agents/plugins/pmcp-mcp. Not exercised in this run."
|
|
10
|
+
},
|
|
11
|
+
"events": {
|
|
12
|
+
"session_start": {
|
|
13
|
+
"native": "PreInvocation (invocationNum 0, initialNumSteps 1)",
|
|
14
|
+
"fires": true,
|
|
15
|
+
"notes": "no such event; PreInvocation with invocationNum 0 is the first hook of a run"
|
|
16
|
+
},
|
|
17
|
+
"prompt": {
|
|
18
|
+
"native": "PreInvocation",
|
|
19
|
+
"fires": true,
|
|
20
|
+
"fields": [
|
|
21
|
+
"conversationId",
|
|
22
|
+
"workspacePaths",
|
|
23
|
+
"transcriptPath",
|
|
24
|
+
"artifactDirectoryPath",
|
|
25
|
+
"modelName",
|
|
26
|
+
"invocationNum",
|
|
27
|
+
"initialNumSteps"
|
|
28
|
+
],
|
|
29
|
+
"notes": "fires before every model call, not once per prompt; no prompt text in the payload"
|
|
30
|
+
},
|
|
31
|
+
"before_tool": {
|
|
32
|
+
"native": "PreToolUse",
|
|
33
|
+
"fires": true,
|
|
34
|
+
"fields": [
|
|
35
|
+
"conversationId",
|
|
36
|
+
"workspacePaths",
|
|
37
|
+
"transcriptPath",
|
|
38
|
+
"artifactDirectoryPath",
|
|
39
|
+
"modelName",
|
|
40
|
+
"stepIdx",
|
|
41
|
+
"toolCall"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"after_tool": {
|
|
45
|
+
"native": "PostToolUse",
|
|
46
|
+
"fires": true,
|
|
47
|
+
"fields": [
|
|
48
|
+
"conversationId",
|
|
49
|
+
"workspacePaths",
|
|
50
|
+
"transcriptPath",
|
|
51
|
+
"artifactDirectoryPath",
|
|
52
|
+
"modelName",
|
|
53
|
+
"stepIdx",
|
|
54
|
+
"toolCall",
|
|
55
|
+
"error"
|
|
56
|
+
],
|
|
57
|
+
"notes": "fires only for calls that ran; not for a hook-denied call; no tool output in the payload"
|
|
58
|
+
},
|
|
59
|
+
"after_model": {
|
|
60
|
+
"native": "PostInvocation",
|
|
61
|
+
"fires": true,
|
|
62
|
+
"fields": ["same as PreInvocation"]
|
|
63
|
+
},
|
|
64
|
+
"stop": {
|
|
65
|
+
"native": "Stop",
|
|
66
|
+
"fires": true,
|
|
67
|
+
"fields": [
|
|
68
|
+
"conversationId",
|
|
69
|
+
"workspacePaths",
|
|
70
|
+
"transcriptPath",
|
|
71
|
+
"artifactDirectoryPath",
|
|
72
|
+
"modelName",
|
|
73
|
+
"executionNum",
|
|
74
|
+
"terminationReason",
|
|
75
|
+
"error",
|
|
76
|
+
"fullyIdle"
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
"session_end": {
|
|
80
|
+
"native": null,
|
|
81
|
+
"fires": false,
|
|
82
|
+
"notes": "no such event"
|
|
83
|
+
},
|
|
84
|
+
"notification": {
|
|
85
|
+
"native": null,
|
|
86
|
+
"fires": false,
|
|
87
|
+
"notes": "no such event"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"tools": {
|
|
91
|
+
"shell": {
|
|
92
|
+
"tool_name": "run_command",
|
|
93
|
+
"input": "toolCall.args.CommandLine, toolCall.args.Cwd (also WaitMsBeforeAsync, toolAction, toolSummary)"
|
|
94
|
+
},
|
|
95
|
+
"edit": {
|
|
96
|
+
"tool_name": "write_to_file (create)",
|
|
97
|
+
"input": "toolCall.args.TargetFile, CodeContent, Overwrite, Description"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"outputs": {
|
|
101
|
+
"deny": {
|
|
102
|
+
"event": "before_tool",
|
|
103
|
+
"support": "measured",
|
|
104
|
+
"shape": "{decision: deny, reason}; the step fails with 'tool call denied by pre-tool hook: <reason>' and the model reads the reason. Holds under --dangerously-skip-permissions."
|
|
105
|
+
},
|
|
106
|
+
"missing_decision": {
|
|
107
|
+
"support": "measured",
|
|
108
|
+
"notes": "A PreToolUse result without decision (for example {}) denies the call with an empty reason and stops that hook's handler chain. Run 1 lost every tool call this way: a recorder returning {} ran before the probe."
|
|
109
|
+
},
|
|
110
|
+
"allow": {
|
|
111
|
+
"support": "measured",
|
|
112
|
+
"notes": "decision allow lets the hook chain pass but does not grant the headless command permission (run 2: auto-denied, run ended with no output)"
|
|
113
|
+
},
|
|
114
|
+
"context": {
|
|
115
|
+
"support": "measured",
|
|
116
|
+
"delivered": ["session_start", "prompt", "stop"],
|
|
117
|
+
"shape": "PreInvocation/PostInvocation return injectSteps [{ephemeralMessage}] (also userMessage, toolCall); transcript step EPHEMERAL_MESSAGE, source SYSTEM_SDK",
|
|
118
|
+
"not_delivered": ["before_tool reason on allow"],
|
|
119
|
+
"native_delivered": [
|
|
120
|
+
"prompt (PreInvocation)",
|
|
121
|
+
"after_model (PostInvocation)",
|
|
122
|
+
"stop"
|
|
123
|
+
],
|
|
124
|
+
"deferred": {
|
|
125
|
+
"before_tool": "stop (continue at executionNum 0); V2 antigravity-context-before-599fce53"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"stop_context": {
|
|
129
|
+
"support": "measured",
|
|
130
|
+
"notes": "Stop {decision: continue, reason} re-enters the loop and injects the reason as a SYSTEM_MESSAGE; executionNum counts re-entries (0, then 1). An unconditional continue would loop; policies must continue only when executionNum is 0. In the smoke run a continue left print mode waiting until --print-timeout."
|
|
131
|
+
},
|
|
132
|
+
"ask": {
|
|
133
|
+
"support": "documented",
|
|
134
|
+
"notes": "decision ask / force_ask prompt the user; headless cannot prompt"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"fields_absent": [
|
|
138
|
+
"session_id (conversationId instead)",
|
|
139
|
+
"cwd (workspacePaths and toolCall.args.Cwd instead)",
|
|
140
|
+
"hook_event_name (the event is known only from the configured key)",
|
|
141
|
+
"agent_type",
|
|
142
|
+
"prompt text"
|
|
143
|
+
],
|
|
144
|
+
"timeouts": "handler timeout in seconds, default 30",
|
|
145
|
+
"trust": "none for workspace .agents/hooks.json",
|
|
146
|
+
"live": {
|
|
147
|
+
"version": "1.4.2",
|
|
148
|
+
"measuredAt": "2026-10-20T04:07:39.189Z",
|
|
149
|
+
"implementationCommits": ["cfcdf5a", "35f3c77"],
|
|
150
|
+
"deny": {
|
|
151
|
+
"support": "measured",
|
|
152
|
+
"scenarios": [
|
|
153
|
+
"antigravity-heredoc-bb1ebeb1",
|
|
154
|
+
"antigravity-stage-all-cd3d679e",
|
|
155
|
+
"antigravity-pause-521c0215",
|
|
156
|
+
"antigravity-lease-59a85a08"
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
"context": {
|
|
160
|
+
"support": "measured",
|
|
161
|
+
"scenarios": {
|
|
162
|
+
"context-start": "antigravity-context-start-1cc194a9",
|
|
163
|
+
"context-prompt": "antigravity-context-prompt-fad83dcf",
|
|
164
|
+
"context-before": "antigravity-context-before-599fce53",
|
|
165
|
+
"broadcast": "antigravity-broadcast-152964dc"
|
|
166
|
+
},
|
|
167
|
+
"notes": "pause, broadcast and shared_checkout notices reached the model; held context arrived at the next delivering event"
|
|
168
|
+
},
|
|
169
|
+
"workflow": {
|
|
170
|
+
"support": "measured",
|
|
171
|
+
"scenarios": [
|
|
172
|
+
"antigravity-worktree-create-2205cf0e",
|
|
173
|
+
"antigravity-worktree-sync-3aa5f8a5",
|
|
174
|
+
"antigravity-deliver-b1048684",
|
|
175
|
+
"antigravity-deliver-race-ece6d671",
|
|
176
|
+
"antigravity-git-sync-1c9dc319"
|
|
177
|
+
]
|
|
178
|
+
},
|
|
179
|
+
"cost": [
|
|
180
|
+
{
|
|
181
|
+
"event": "before_tool",
|
|
182
|
+
"addedMs": 22.7
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"event": "prompt",
|
|
186
|
+
"addedMs": 19.1
|
|
187
|
+
}
|
|
188
|
+
],
|
|
189
|
+
"turns": {
|
|
190
|
+
"support": "measured",
|
|
191
|
+
"finding": "agy 1.4.2 resets invocationNum for a later prompt in one conversation: 2 PreInvocation calls were dispatched at invocationNum 0, one per turn, so prompt policies run on every turn."
|
|
192
|
+
},
|
|
193
|
+
"scenarios": {
|
|
194
|
+
"passed": 13,
|
|
195
|
+
"failed": []
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"binary": "agy"
|
|
199
|
+
}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
{
|
|
2
|
+
"runtime": "claude",
|
|
3
|
+
"version": "2.1.303",
|
|
4
|
+
"measuredAt": "2026-10-19T11:00:00Z",
|
|
5
|
+
"events": {
|
|
6
|
+
"session_start": {
|
|
7
|
+
"native": "SessionStart",
|
|
8
|
+
"fires": true,
|
|
9
|
+
"fields": [
|
|
10
|
+
"session_id",
|
|
11
|
+
"transcript_path",
|
|
12
|
+
"cwd",
|
|
13
|
+
"hook_event_name",
|
|
14
|
+
"source"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"prompt": {
|
|
18
|
+
"native": "UserPromptSubmit",
|
|
19
|
+
"fires": true,
|
|
20
|
+
"fields": [
|
|
21
|
+
"session_id",
|
|
22
|
+
"transcript_path",
|
|
23
|
+
"cwd",
|
|
24
|
+
"prompt_id",
|
|
25
|
+
"permission_mode",
|
|
26
|
+
"hook_event_name",
|
|
27
|
+
"prompt"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"before_tool": {
|
|
31
|
+
"native": "PreToolUse",
|
|
32
|
+
"fires": true,
|
|
33
|
+
"fields": [
|
|
34
|
+
"session_id",
|
|
35
|
+
"transcript_path",
|
|
36
|
+
"cwd",
|
|
37
|
+
"prompt_id",
|
|
38
|
+
"permission_mode",
|
|
39
|
+
"effort",
|
|
40
|
+
"hook_event_name",
|
|
41
|
+
"tool_name",
|
|
42
|
+
"tool_input",
|
|
43
|
+
"tool_use_id"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"after_tool": {
|
|
47
|
+
"native": "PostToolUse",
|
|
48
|
+
"fires": true,
|
|
49
|
+
"fields": [
|
|
50
|
+
"session_id",
|
|
51
|
+
"transcript_path",
|
|
52
|
+
"cwd",
|
|
53
|
+
"prompt_id",
|
|
54
|
+
"permission_mode",
|
|
55
|
+
"effort",
|
|
56
|
+
"hook_event_name",
|
|
57
|
+
"tool_name",
|
|
58
|
+
"tool_input",
|
|
59
|
+
"tool_response",
|
|
60
|
+
"tool_use_id",
|
|
61
|
+
"duration_ms"
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
"stop": {
|
|
65
|
+
"native": "Stop",
|
|
66
|
+
"fires": true,
|
|
67
|
+
"fields": [
|
|
68
|
+
"session_id",
|
|
69
|
+
"transcript_path",
|
|
70
|
+
"cwd",
|
|
71
|
+
"prompt_id",
|
|
72
|
+
"permission_mode",
|
|
73
|
+
"effort",
|
|
74
|
+
"hook_event_name",
|
|
75
|
+
"stop_hook_active",
|
|
76
|
+
"last_assistant_message",
|
|
77
|
+
"background_tasks",
|
|
78
|
+
"session_crons"
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
"session_end": {
|
|
82
|
+
"native": "SessionEnd",
|
|
83
|
+
"fires": true,
|
|
84
|
+
"fields": [
|
|
85
|
+
"session_id",
|
|
86
|
+
"transcript_path",
|
|
87
|
+
"cwd",
|
|
88
|
+
"prompt_id",
|
|
89
|
+
"hook_event_name",
|
|
90
|
+
"reason"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"notification": {
|
|
94
|
+
"native": "Notification",
|
|
95
|
+
"fires": "not in print mode; interactive only"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"tools": {
|
|
99
|
+
"shell": {
|
|
100
|
+
"tool_name": "Bash",
|
|
101
|
+
"input": "tool_input.command, tool_input.description"
|
|
102
|
+
},
|
|
103
|
+
"edit": {
|
|
104
|
+
"tool_name": "Write | Edit | MultiEdit | NotebookEdit",
|
|
105
|
+
"input": "tool_input.file_path (notebook_path for NotebookEdit)"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"outputs": {
|
|
109
|
+
"deny": {
|
|
110
|
+
"event": "before_tool",
|
|
111
|
+
"support": "measured",
|
|
112
|
+
"shape": "hookSpecificOutput.permissionDecision = deny + permissionDecisionReason; the reason reaches the model"
|
|
113
|
+
},
|
|
114
|
+
"context": {
|
|
115
|
+
"support": "measured",
|
|
116
|
+
"delivered": [
|
|
117
|
+
"session_start",
|
|
118
|
+
"prompt",
|
|
119
|
+
"before_tool",
|
|
120
|
+
"after_tool",
|
|
121
|
+
"stop"
|
|
122
|
+
],
|
|
123
|
+
"shape": "hookSpecificOutput.additionalContext; transcript attachment hook_additional_context and the next API request"
|
|
124
|
+
},
|
|
125
|
+
"stop_context": {
|
|
126
|
+
"support": "measured",
|
|
127
|
+
"notes": "additionalContext on Stop continues the conversation: one probe turn produced 9 Stop events. Policies may return Stop context only when stop_hook_active is false, at most once per turn."
|
|
128
|
+
},
|
|
129
|
+
"session_end_output": {
|
|
130
|
+
"support": "unsupported",
|
|
131
|
+
"notes": "SessionEnd context is not delivered (session is over); bookkeeping only"
|
|
132
|
+
},
|
|
133
|
+
"ask": {
|
|
134
|
+
"support": "documented",
|
|
135
|
+
"notes": "permissionDecision ask; not exercised in print mode"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"live": {
|
|
139
|
+
"version": "2.1.303",
|
|
140
|
+
"measuredAt": "2026-10-19T12:41:41.484Z",
|
|
141
|
+
"implementationCommits": ["880aa32"],
|
|
142
|
+
"deny": {
|
|
143
|
+
"support": "measured",
|
|
144
|
+
"scenarios": [
|
|
145
|
+
"claude-heredoc-1cedfb4f",
|
|
146
|
+
"claude-stage-all-87e8f03d",
|
|
147
|
+
"claude-pause-24e9c866",
|
|
148
|
+
"claude-lease-6d0384ea"
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
"context": {
|
|
152
|
+
"support": "measured",
|
|
153
|
+
"delivered": {
|
|
154
|
+
"session_start": "claude-context-start-b1fb6ab1",
|
|
155
|
+
"prompt": "claude-context-prompt-16900ce9",
|
|
156
|
+
"before_tool": "claude-context-before-2b98be30"
|
|
157
|
+
},
|
|
158
|
+
"notes": "after_tool and stop context stay measured by the earlier probe; the live extension did not exercise them. The start and broadcast markers also reached a separate interactive Claude session through its hooks (reported by the person at that session)."
|
|
159
|
+
},
|
|
160
|
+
"stop": {
|
|
161
|
+
"support": "measured",
|
|
162
|
+
"notes": "Stop fires in live sessions; the live extension claims no Stop context, so the once-per-turn stop_context rule above stands"
|
|
163
|
+
},
|
|
164
|
+
"session_end_timeout": {
|
|
165
|
+
"support": "unqualified",
|
|
166
|
+
"notes": "no clamp observed; pmcp keeps the compiled timeout"
|
|
167
|
+
},
|
|
168
|
+
"ask": {
|
|
169
|
+
"support": "unqualified",
|
|
170
|
+
"notes": "interactive ask not exercised"
|
|
171
|
+
},
|
|
172
|
+
"scenarios": {
|
|
173
|
+
"passed": 13,
|
|
174
|
+
"failed": 0
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"fields_absent": ["turn_id (Claude uses prompt_id)"],
|
|
178
|
+
"trust": "none for project settings hooks in print mode"
|
|
179
|
+
}
|