@modootoday/pmcp 0.19.9 → 0.21.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/.mcp.json +1 -1
- package/dist/{apply-TM6B2Y3G.js → apply-6FLMTJDV.js} +57 -23
- package/dist/{attachment-D84OGI6n.d.ts → attachment-ms6s8Aow.d.ts} +1 -1
- package/dist/{available-HYSDAFYH.js → available-BFXLII4A.js} +7 -7
- package/dist/{broadcast-DSCHWUMB.js → broadcast-ZALGUJVR.js} +4 -4
- package/dist/chunk-2GI5RM3M.js +53 -0
- package/dist/{chunk-ICF2JZSN.js → chunk-2MAD4WNZ.js} +2 -2
- package/dist/{chunk-QYQGPDBE.js → chunk-33KGCJB2.js} +2 -2
- package/dist/{chunk-XNPOHPMJ.js → chunk-3X5JQYKN.js} +3 -3
- package/dist/{chunk-4XNAKVSO.js → chunk-57Q75MS4.js} +18 -18
- package/dist/{chunk-2S44RDO4.js → chunk-5FW7A6TG.js} +7 -4
- package/dist/chunk-5YCKFU5Q.js +1672 -0
- package/dist/{chunk-MCYGYZVZ.js → chunk-7FV2LORT.js} +2 -2
- package/dist/{chunk-57FHYW74.js → chunk-DEY23WTH.js} +122 -4
- package/dist/chunk-DJZPPCJP.js +274 -0
- package/dist/{chunk-4XWVLC23.js → chunk-G6JXCUSK.js} +2 -2
- package/dist/{chunk-T6GOWHK6.js → chunk-GFOQDLPL.js} +6 -1
- package/dist/{chunk-PG42KALG.js → chunk-GQP4GWU4.js} +5 -5
- package/dist/chunk-H4ZOKIER.js +7 -0
- package/dist/{chunk-XPWIJOZT.js → chunk-JQVSDPFL.js} +3 -3
- package/dist/{chunk-OG7QR2DP.js → chunk-KEHB4FZP.js} +17 -2
- package/dist/chunk-KUBHGVTD.js +126 -0
- package/dist/{chunk-SPUCY4AG.js → chunk-KVNNVLJR.js} +2 -2
- package/dist/chunk-LFFIQBNY.js +115 -0
- package/dist/{chunk-V7HG3STC.js → chunk-MR5IBS6L.js} +31 -15
- package/dist/{chunk-W5RLIUNC.js → chunk-NHUMPEPV.js} +2 -2
- package/dist/{chunk-I4DLMIN5.js → chunk-OFJIMBTL.js} +2 -2
- package/dist/{chunk-A6TM4NTI.js → chunk-OFPNCLG7.js} +2 -2
- package/dist/{chunk-3UOFHLY4.js → chunk-OS5DF3LL.js} +207 -15
- package/dist/{chunk-BZ2RXI5I.js → chunk-POTI2RJ6.js} +2 -2
- package/dist/{chunk-QTKD7JEL.js → chunk-R3MVL67T.js} +34 -34
- package/dist/{chunk-YN5GQCHN.js → chunk-RHJEGLYM.js} +6 -1
- package/dist/{chunk-YKU7KHJO.js → chunk-TBKVC2TA.js} +3 -5
- package/dist/{chunk-YYG3GUQW.js → chunk-UFWQTZDX.js} +29 -17
- package/dist/{chunk-PBDPWE5J.js → chunk-VBDDFO2V.js} +2 -2
- package/dist/{chunk-BRSESCGX.js → chunk-VUM6LO77.js} +4717 -4694
- package/dist/{chunk-FR6JHNLC.js → chunk-YLITJLTR.js} +3 -3
- package/dist/{chunk-CJ6OFTS3.js → chunk-YOWIYFIV.js} +6 -37
- package/dist/{chunk-VDBUZKXC.js → chunk-Z4Q6RYJH.js} +2 -2
- package/dist/{chunk-RRKGSYQ4.js → chunk-Z6WRFOFT.js} +13 -2
- package/dist/{chunk-YXAPCHXJ.js → chunk-ZIJ5IUXH.js} +31 -5
- package/dist/{claude-2C5L2HQL.js → claude-XVLF4N4S.js} +3 -3
- package/dist/{cli-BVRPAI23.js → cli-6FWRBCWM.js} +8 -8
- package/dist/{cli-YV6SFE4D.js → cli-RVPR3MH3.js} +7 -7
- package/dist/cli.js +11 -11
- package/dist/{completion-B3UT3GVI.js → completion-YTPHEVEW.js} +7 -7
- package/dist/{diagnostics-ONIAKCA3.js → diagnostics-IW54MLFK.js} +5 -6
- package/dist/{doctor-MJFU5L6R.js → doctor-EN4JPSKV.js} +35 -35
- package/dist/{entry-DZGKCL4G.js → entry-TQWSDTJ4.js} +14 -15
- package/dist/{exec-mcp-QK2VC6RX.js → exec-mcp-KKQ75N5O.js} +15 -13
- package/dist/{harness-GTED4GLK.js → harness-EB76F6BG.js} +6 -6
- package/dist/harness-launch-gate.js +3 -4
- package/dist/harness-worker.js +5 -6
- package/dist/hook-body.js +281 -98
- package/dist/{hook-spec-C7umArqw.d.ts → hook-spec-hZL4MSgi.d.ts} +8 -3
- package/dist/hooks-YWSHUNLM.js +24 -0
- package/dist/{host-AGNF2AQH.js → host-LSVITS6M.js} +6 -7
- package/dist/{host-3HTCZNVJ.js → host-OGGADMBT.js} +17 -15
- package/dist/{host-run-2OQZVQID.js → host-run-XO2TS4JC.js} +5 -7
- package/dist/http.d.ts +1 -1
- package/dist/http.js +1 -1
- package/dist/{import-mcp-7KEPR2B6.js → import-mcp-BJDJTPVS.js} +14 -11
- package/dist/index.d.ts +12 -3
- package/dist/index.js +25 -25
- package/dist/{init-BHGCF7JL.js → init-773PTQM5.js} +3 -3
- package/dist/{install-HF6CROQP.js → install-7V6NIA7W.js} +4 -4
- package/dist/{invoke-CVHF6PEK.js → invoke-Y7XH5S2L.js} +7 -8
- package/dist/{list-6XGQ3FR3.js → list-5W65XVES.js} +20 -17
- package/dist/{logout-6RJLG2KG.js → logout-XO6ALD45.js} +15 -12
- package/dist/{logs-VTW7S2LR.js → logs-74JGLQG6.js} +4 -4
- package/dist/mailbox/index.d.ts +3 -3
- package/dist/{mailbox-CNAONXN7.js → mailbox-VK5AVTHI.js} +9 -9
- package/dist/{mainline-JSG4MUKH.js → mainline-M2NSTAGC.js} +105 -36
- package/dist/{mcp-P55VLQLR.js → mcp-R62ZNVGJ.js} +2 -2
- package/dist/{pause-V5VCNOSH.js → pause-CZ2OZYLC.js} +4 -4
- package/dist/project/hook-adapter.d.ts +1 -1
- package/dist/{project-B57IQPDK.js → project-W5DQIZA6.js} +5 -5
- package/dist/{pty-FD4JGBZL.js → pty-CDLQ4NP2.js} +3 -3
- package/dist/report-Z3JV2PCT.js +105 -0
- package/dist/{resume-7S4K3R4X.js → resume-DFIHT2RO.js} +4 -4
- package/dist/{run-MC2BPLOE.js → run-OZLGSRHF.js} +14 -11
- package/dist/{run-LFJXONLW.js → run-WYJMTLX7.js} +4 -4
- package/dist/{serve-TFAEVXX3.js → serve-DCQGAGB7.js} +3 -3
- package/dist/{session-XM2CR425.js → session-YZVX4NGN.js} +4 -4
- package/dist/{setup-FHFQZJY6.js → setup-D3KEJBGO.js} +4 -4
- package/dist/smoke-FQQJOQBD.js +16 -0
- package/dist/{start-login-KXOHCR5A.js → start-login-EKXM75XQ.js} +15 -12
- package/dist/{status-YXOIEVOJ.js → status-23UDIYYP.js} +39 -22
- package/dist/{status-OYRB3KL5.js → status-3RTGDN2K.js} +10 -10
- package/dist/{status-AW7DOW7A.js → status-EDSEG32U.js} +15 -12
- package/dist/stdio.d.ts +2 -2
- package/dist/stdio.js +2 -2
- package/dist/{sweep-ZSYG6FNR.js → sweep-EPJMEZR6.js} +4 -4
- package/dist/{test-2HTOY4PJ.js → test-TM6PIZTV.js} +26 -18
- package/dist/{tui-DQFXYQ4H.js → tui-EQNJIDN5.js} +4 -4
- package/dist/{unbroadcast-FONZJWEW.js → unbroadcast-NTOC3PY3.js} +4 -4
- package/dist/{validate-WOFI7TMT.js → validate-KFBCUFI4.js} +2 -2
- package/dist/{worker-UXPGXAV2.js → worker-7X6WBPEI.js} +9 -10
- package/dist/{worktree-list-4PLE7K6L.js → worktree-list-EMKUMCTQ.js} +2 -2
- package/dist/{worktree-sync-GQVYAXGJ.js → worktree-sync-T6C5YEYS.js} +3 -3
- package/docs/commands.md +13 -6
- package/docs/git-workflow.md +46 -10
- package/docs/hooks.md +139 -12
- package/docs/project-configuration.md +34 -6
- package/docs/upgrading.md +94 -0
- package/gemini-extension.json +2 -2
- package/mcp.json +1 -1
- package/package.json +5 -5
- package/plugin.json +1 -1
- package/plugins/pmcp/.claude-plugin/plugin.json +1 -1
- package/plugins/pmcp/.mcp.json +1 -1
- package/plugins/pmcp/gemini-extension.json +2 -2
- package/plugins/pmcp/mcp.json +1 -1
- package/plugins/pmcp/mod/reader/read.ts +14 -4
- package/plugins/pmcp/mod/sessions/format.ts +16 -1
- package/plugins/pmcp/mod/sessions/types.ts +1 -1
- package/plugins/pmcp/plugin.json +1 -1
- package/schema/catalog-v1.json +1 -7
- package/dist/chunk-EONAJAMJ.js +0 -130
- package/dist/chunk-IACJDHFQ.js +0 -1025
- package/dist/chunk-ISNRDHSD.js +0 -74
- package/dist/chunk-YGTJQVCK.js +0 -7
- package/dist/chunk-YLPXTJJM.js +0 -396
- package/dist/hooks-FRZ4SUNJ.js +0 -21
- package/dist/{core-C1LPjxK6.d.ts → core-Sug_rZrx.d.ts} +1 -1
|
@@ -612,7 +612,7 @@
|
|
|
612
612
|
},
|
|
613
613
|
{
|
|
614
614
|
"name": "pmcp",
|
|
615
|
-
"version": "0.
|
|
615
|
+
"version": "0.21.0",
|
|
616
616
|
"description": "Find package skills and use native runtime project configuration.",
|
|
617
617
|
"source": { "source": "local", "path": "./plugins/pmcp" },
|
|
618
618
|
"policy": { "installation": "AVAILABLE", "authentication": "ON_USE" },
|
package/.mcp.json
CHANGED
|
@@ -3,51 +3,63 @@ import {
|
|
|
3
3
|
} from "./chunk-PEMMV5YQ.js";
|
|
4
4
|
import {
|
|
5
5
|
specFrom
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-RPCIROW7.js";
|
|
6
|
+
} from "./chunk-VBDDFO2V.js";
|
|
8
7
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
printSmoke,
|
|
9
|
+
runSmoke
|
|
10
|
+
} from "./chunk-2GI5RM3M.js";
|
|
11
|
+
import {
|
|
12
|
+
configFrom
|
|
13
|
+
} from "./chunk-RPCIROW7.js";
|
|
14
|
+
import {
|
|
15
|
+
describeHookProblem,
|
|
16
|
+
project,
|
|
17
|
+
unmanagedHookProblems
|
|
18
|
+
} from "./chunk-OS5DF3LL.js";
|
|
11
19
|
import "./chunk-P4N7DBD5.js";
|
|
20
|
+
import "./chunk-DJZPPCJP.js";
|
|
12
21
|
import {
|
|
22
|
+
checkBudget,
|
|
13
23
|
renderFrontmatter,
|
|
14
24
|
splitFrontmatter
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-73AKO4UL.js";
|
|
18
|
-
import {
|
|
19
|
-
RUNTIMES
|
|
20
|
-
} from "./chunk-BRSESCGX.js";
|
|
21
|
-
import "./chunk-HQOB7OQS.js";
|
|
22
|
-
import "./chunk-ICF2JZSN.js";
|
|
25
|
+
} from "./chunk-VUM6LO77.js";
|
|
26
|
+
import "./chunk-2MAD4WNZ.js";
|
|
23
27
|
import "./chunk-UD3BEEBQ.js";
|
|
24
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-KUBHGVTD.js";
|
|
25
29
|
import "./chunk-EATCUWGG.js";
|
|
30
|
+
import "./chunk-OFJIMBTL.js";
|
|
26
31
|
import {
|
|
27
32
|
ProjectError
|
|
28
33
|
} from "./chunk-NRBQK6UX.js";
|
|
29
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-LFFIQBNY.js";
|
|
35
|
+
import "./chunk-HQOB7OQS.js";
|
|
36
|
+
import "./chunk-73AKO4UL.js";
|
|
30
37
|
import "./chunk-P6LNYYYH.js";
|
|
31
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-ZIJ5IUXH.js";
|
|
32
39
|
import "./chunk-2Q6MNGU5.js";
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-MR5IBS6L.js";
|
|
41
|
+
import "./chunk-Z6WRFOFT.js";
|
|
35
42
|
import "./chunk-G7JONWL4.js";
|
|
36
43
|
import "./chunk-Q5H3L6Y4.js";
|
|
44
|
+
import {
|
|
45
|
+
RUNTIMES,
|
|
46
|
+
readTestTable
|
|
47
|
+
} from "./chunk-5YCKFU5Q.js";
|
|
37
48
|
import "./chunk-JEL35P7S.js";
|
|
38
|
-
import
|
|
49
|
+
import {
|
|
50
|
+
ArgumentError
|
|
51
|
+
} from "./chunk-A4PKLESO.js";
|
|
39
52
|
import "./chunk-V4NPDK6X.js";
|
|
40
53
|
import {
|
|
41
54
|
kindOf
|
|
42
55
|
} from "./chunk-4CRRLDDS.js";
|
|
43
56
|
import "./chunk-YSAWTGNA.js";
|
|
44
|
-
import "./chunk-EONAJAMJ.js";
|
|
45
57
|
import {
|
|
46
58
|
recordProjector
|
|
47
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-DEY23WTH.js";
|
|
48
60
|
import "./chunk-OEH47H6A.js";
|
|
49
61
|
import "./chunk-IJBSOWHK.js";
|
|
50
|
-
import "./chunk-
|
|
62
|
+
import "./chunk-H4ZOKIER.js";
|
|
51
63
|
import "./chunk-GJXOFDJT.js";
|
|
52
64
|
import "./chunk-PMJG2CXF.js";
|
|
53
65
|
import "./chunk-J6KL3COD.js";
|
|
@@ -204,9 +216,23 @@ function reproject(context, spec) {
|
|
|
204
216
|
}
|
|
205
217
|
return 0;
|
|
206
218
|
}
|
|
219
|
+
function smokeCheck(context, spec) {
|
|
220
|
+
const config = configFrom(context);
|
|
221
|
+
const hooks = config?.raw.hooks ?? {};
|
|
222
|
+
const file = readTestTable(hooks["test"]);
|
|
223
|
+
if (file === void 0) {
|
|
224
|
+
context.ui.error("--smoke needs [hooks.test] fixtures in pmcp.toml");
|
|
225
|
+
return 2;
|
|
226
|
+
}
|
|
227
|
+
const result = runSmoke(spec.root, file, context.env);
|
|
228
|
+
printSmoke(context.ui, result);
|
|
229
|
+
return result.findings.length === 0 ? 0 : 2;
|
|
230
|
+
}
|
|
207
231
|
function projectOrCheck(context) {
|
|
208
232
|
const spec = specFrom(context);
|
|
233
|
+
const smoke = context.args.flags.has("smoke");
|
|
209
234
|
if (!context.args.flags.has("check")) {
|
|
235
|
+
if (smoke) throw new ArgumentError("--smoke needs --check");
|
|
210
236
|
return reproject(context, spec);
|
|
211
237
|
}
|
|
212
238
|
const result = project(spec, { check: true });
|
|
@@ -220,7 +246,15 @@ function projectOrCheck(context) {
|
|
|
220
246
|
return 2;
|
|
221
247
|
}
|
|
222
248
|
context.ui.success(`${result.outputs} outputs match`);
|
|
223
|
-
|
|
249
|
+
const broken = unmanagedHookProblems(spec.root, context.env);
|
|
250
|
+
for (const problem of broken)
|
|
251
|
+
context.ui.error(
|
|
252
|
+
`native hook entry pmcp does not own: ${describeHookProblem(problem)}`
|
|
253
|
+
);
|
|
254
|
+
const over = spec.budget ? checkBudget(spec, spec.budget).problems : [];
|
|
255
|
+
for (const problem of over) context.ui.error(problem);
|
|
256
|
+
if (broken.length > 0 || over.length > 0) return 2;
|
|
257
|
+
return smoke ? smokeCheck(context, spec) : 0;
|
|
224
258
|
}
|
|
225
259
|
function addAndProject(context, name) {
|
|
226
260
|
const spec = specFrom(context);
|
|
@@ -240,4 +274,4 @@ export {
|
|
|
240
274
|
projectOrCheck,
|
|
241
275
|
removeAndProject
|
|
242
276
|
};
|
|
243
|
-
//# sourceMappingURL=apply-
|
|
277
|
+
//# sourceMappingURL=apply-6FLMTJDV.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
sayStanding
|
|
3
|
+
} from "./chunk-4NDEP7HU.js";
|
|
1
4
|
import {
|
|
2
5
|
matchingSkills,
|
|
3
6
|
readInstalledDependencies
|
|
4
7
|
} from "./chunk-F5WBMUOT.js";
|
|
5
|
-
import {
|
|
6
|
-
invocation
|
|
7
|
-
} from "./chunk-J7UYNJCR.js";
|
|
8
|
-
import {
|
|
9
|
-
sayStanding
|
|
10
|
-
} from "./chunk-4NDEP7HU.js";
|
|
11
8
|
import {
|
|
12
9
|
projectFrom,
|
|
13
10
|
remoteCatalog
|
|
14
11
|
} from "./chunk-R5MT42JS.js";
|
|
15
12
|
import "./chunk-RMATE45Z.js";
|
|
13
|
+
import {
|
|
14
|
+
invocation
|
|
15
|
+
} from "./chunk-J7UYNJCR.js";
|
|
16
16
|
import "./chunk-73AKO4UL.js";
|
|
17
17
|
import {
|
|
18
18
|
availableSpec
|
|
@@ -70,4 +70,4 @@ var availableCommand = {
|
|
|
70
70
|
export {
|
|
71
71
|
availableCommand
|
|
72
72
|
};
|
|
73
|
-
//# sourceMappingURL=available-
|
|
73
|
+
//# sourceMappingURL=available-BFXLII4A.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
change
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-7FV2LORT.js";
|
|
4
|
+
import "./chunk-MR5IBS6L.js";
|
|
5
|
+
import "./chunk-Z6WRFOFT.js";
|
|
6
6
|
import "./chunk-A4PKLESO.js";
|
|
7
7
|
import "./chunk-OEH47H6A.js";
|
|
8
8
|
import "./chunk-IJBSOWHK.js";
|
|
@@ -14,4 +14,4 @@ var run = (context) => change(context, "broadcast");
|
|
|
14
14
|
export {
|
|
15
15
|
run
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=broadcast-
|
|
17
|
+
//# sourceMappingURL=broadcast-ZALGUJVR.js.map
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import {
|
|
2
|
+
configFrom
|
|
3
|
+
} from "./chunk-RPCIROW7.js";
|
|
4
|
+
import {
|
|
5
|
+
readFixtures,
|
|
6
|
+
smoke
|
|
7
|
+
} from "./chunk-5YCKFU5Q.js";
|
|
8
|
+
import {
|
|
9
|
+
ArgumentError
|
|
10
|
+
} from "./chunk-A4PKLESO.js";
|
|
11
|
+
|
|
12
|
+
// src/commands/hooks/smoke.ts
|
|
13
|
+
import { readFileSync } from "fs";
|
|
14
|
+
import { resolve } from "path";
|
|
15
|
+
function runSmoke(root, file, env) {
|
|
16
|
+
let text;
|
|
17
|
+
try {
|
|
18
|
+
text = readFileSync(resolve(root, file), "utf8");
|
|
19
|
+
} catch {
|
|
20
|
+
throw new ArgumentError(`cannot read fixtures ${file}`);
|
|
21
|
+
}
|
|
22
|
+
try {
|
|
23
|
+
return smoke(root, readFixtures(text), env);
|
|
24
|
+
} catch (error) {
|
|
25
|
+
throw new ArgumentError(
|
|
26
|
+
error instanceof Error ? error.message : String(error)
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
function printSmoke(ui, result) {
|
|
31
|
+
for (const finding of result.findings)
|
|
32
|
+
ui.line(` \u2717 ${finding.where}: ${finding.message}`);
|
|
33
|
+
ui.line(
|
|
34
|
+
result.findings.length === 0 ? ` \u2713 ${result.cases} run(s) on ${result.runtimes.join(", ")}; ${result.guards.length} enforced guard(s) covered` : ` \u2717 ${result.findings.length} finding(s) in ${result.cases} run(s)`
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
async function run(context, file) {
|
|
38
|
+
const config = configFrom(context);
|
|
39
|
+
if (!config)
|
|
40
|
+
throw new ArgumentError("no pmcp.toml here or above; pass --config");
|
|
41
|
+
const result = runSmoke(config.dir, file, context.env);
|
|
42
|
+
if (context.args.flags.has("json"))
|
|
43
|
+
context.ui.data(JSON.stringify({ version: 1, ...result }) + "\n");
|
|
44
|
+
else printSmoke(context.ui, result);
|
|
45
|
+
return result.findings.length === 0 ? 0 : 1;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export {
|
|
49
|
+
runSmoke,
|
|
50
|
+
printSmoke,
|
|
51
|
+
run
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=chunk-2GI5RM3M.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
cherry,
|
|
8
8
|
distance
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KUBHGVTD.js";
|
|
10
10
|
import {
|
|
11
11
|
reportModes,
|
|
12
12
|
restoreModes,
|
|
@@ -89,4 +89,4 @@ function syncOnce(options) {
|
|
|
89
89
|
export {
|
|
90
90
|
syncWorktree
|
|
91
91
|
};
|
|
92
|
-
//# sourceMappingURL=chunk-
|
|
92
|
+
//# sourceMappingURL=chunk-2MAD4WNZ.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-34DECPVC.js";
|
|
4
4
|
import {
|
|
5
5
|
ptyBinary
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DEY23WTH.js";
|
|
7
7
|
import {
|
|
8
8
|
GroupStore,
|
|
9
9
|
egressPolicy,
|
|
@@ -775,4 +775,4 @@ export {
|
|
|
775
775
|
prepareBridge,
|
|
776
776
|
assertBridge
|
|
777
777
|
};
|
|
778
|
-
//# sourceMappingURL=chunk-
|
|
778
|
+
//# sourceMappingURL=chunk-33KGCJB2.js.map
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-5ZABTVSW.js";
|
|
4
4
|
import {
|
|
5
5
|
dependencies
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TBKVC2TA.js";
|
|
7
7
|
import {
|
|
8
8
|
interactiveEntry
|
|
9
9
|
} from "./chunk-LMT3PPXJ.js";
|
|
10
10
|
import {
|
|
11
11
|
assertNativeHost
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-POTI2RJ6.js";
|
|
13
13
|
|
|
14
14
|
// src/tui/startup/host.ts
|
|
15
15
|
function terminalSupport() {
|
|
@@ -42,4 +42,4 @@ export {
|
|
|
42
42
|
terminalSupport,
|
|
43
43
|
requireTerminal
|
|
44
44
|
};
|
|
45
|
-
//# sourceMappingURL=chunk-
|
|
45
|
+
//# sourceMappingURL=chunk-3X5JQYKN.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-HQOB7OQS.js";
|
|
6
6
|
import {
|
|
7
7
|
readStoreSettings
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MR5IBS6L.js";
|
|
9
9
|
import {
|
|
10
10
|
expandPath,
|
|
11
11
|
projectStateDir
|
|
@@ -47,22 +47,6 @@ function pruneLogs(dir, keepDays, now = /* @__PURE__ */ new Date()) {
|
|
|
47
47
|
return removed;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
// src/project/log-location.ts
|
|
51
|
-
import { dirname, join as join2 } from "path";
|
|
52
|
-
function logLocation(config, env) {
|
|
53
|
-
const hooks = config.raw.hooks ?? {};
|
|
54
|
-
const keepDays = readLoggingTable(config.raw.logging).keepDays;
|
|
55
|
-
if (typeof hooks.error_log === "string") {
|
|
56
|
-
const file = expandPath(config.dir, hooks.error_log);
|
|
57
|
-
return { dir: dirname(file), file, keepDays };
|
|
58
|
-
}
|
|
59
|
-
const settings = readStoreSettings(config.raw.sessions);
|
|
60
|
-
return {
|
|
61
|
-
dir: join2(projectStateDir(config.dir, settings.stateDir, env), "logs"),
|
|
62
|
-
keepDays
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
|
|
66
50
|
// src/logging/query.ts
|
|
67
51
|
import { existsSync as existsSync2, readFileSync, statSync as statSync2 } from "fs";
|
|
68
52
|
var UNITS = {
|
|
@@ -143,6 +127,22 @@ function tail(dir, state, file) {
|
|
|
143
127
|
return parse(text);
|
|
144
128
|
}
|
|
145
129
|
|
|
130
|
+
// src/project/log-location.ts
|
|
131
|
+
import { dirname, join as join2 } from "path";
|
|
132
|
+
function logLocation(config, env) {
|
|
133
|
+
const hooks = config.raw.hooks ?? {};
|
|
134
|
+
const keepDays = readLoggingTable(config.raw.logging).keepDays;
|
|
135
|
+
if (typeof hooks.error_log === "string") {
|
|
136
|
+
const file = expandPath(config.dir, hooks.error_log);
|
|
137
|
+
return { dir: dirname(file), file, keepDays };
|
|
138
|
+
}
|
|
139
|
+
const settings = readStoreSettings(config.raw.sessions);
|
|
140
|
+
return {
|
|
141
|
+
dir: join2(projectStateDir(config.dir, settings.stateDir, env), "logs"),
|
|
142
|
+
keepDays
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
|
|
146
146
|
export {
|
|
147
147
|
pruneLogs,
|
|
148
148
|
parseSince,
|
|
@@ -152,4 +152,4 @@ export {
|
|
|
152
152
|
tail,
|
|
153
153
|
logLocation
|
|
154
154
|
};
|
|
155
|
-
//# sourceMappingURL=chunk-
|
|
155
|
+
//# sourceMappingURL=chunk-57Q75MS4.js.map
|
|
@@ -3,9 +3,12 @@ import {
|
|
|
3
3
|
} from "./chunk-7TD53M7L.js";
|
|
4
4
|
import {
|
|
5
5
|
POLICIES,
|
|
6
|
-
|
|
6
|
+
customMode,
|
|
7
7
|
customPolicy
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VUM6LO77.js";
|
|
9
|
+
import {
|
|
10
|
+
RUNTIMES
|
|
11
|
+
} from "./chunk-5YCKFU5Q.js";
|
|
9
12
|
|
|
10
13
|
// src/hooks/inspection/list.ts
|
|
11
14
|
function policyRows(compiled) {
|
|
@@ -19,7 +22,7 @@ function policyRows(compiled) {
|
|
|
19
22
|
id: "custom." + entry.name,
|
|
20
23
|
policy: customPolicy(entry),
|
|
21
24
|
options: {},
|
|
22
|
-
mode:
|
|
25
|
+
mode: customMode(entry)
|
|
23
26
|
}));
|
|
24
27
|
return [...guards, ...custom].flatMap((entry) => {
|
|
25
28
|
const events = entry.policy.eventsFor?.(entry.policy.options(entry.options)) ?? entry.policy.events;
|
|
@@ -39,4 +42,4 @@ function policyRows(compiled) {
|
|
|
39
42
|
export {
|
|
40
43
|
policyRows
|
|
41
44
|
};
|
|
42
|
-
//# sourceMappingURL=chunk-
|
|
45
|
+
//# sourceMappingURL=chunk-5FW7A6TG.js.map
|