@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.
Files changed (128) hide show
  1. package/.agents/plugins/marketplace.json +1 -1
  2. package/.claude-plugin/marketplace.json +1 -1
  3. package/.claude-plugin/plugin.json +1 -1
  4. package/.mcp.json +1 -1
  5. package/dist/{apply-TM6B2Y3G.js → apply-6FLMTJDV.js} +57 -23
  6. package/dist/{attachment-D84OGI6n.d.ts → attachment-ms6s8Aow.d.ts} +1 -1
  7. package/dist/{available-HYSDAFYH.js → available-BFXLII4A.js} +7 -7
  8. package/dist/{broadcast-DSCHWUMB.js → broadcast-ZALGUJVR.js} +4 -4
  9. package/dist/chunk-2GI5RM3M.js +53 -0
  10. package/dist/{chunk-ICF2JZSN.js → chunk-2MAD4WNZ.js} +2 -2
  11. package/dist/{chunk-QYQGPDBE.js → chunk-33KGCJB2.js} +2 -2
  12. package/dist/{chunk-XNPOHPMJ.js → chunk-3X5JQYKN.js} +3 -3
  13. package/dist/{chunk-4XNAKVSO.js → chunk-57Q75MS4.js} +18 -18
  14. package/dist/{chunk-2S44RDO4.js → chunk-5FW7A6TG.js} +7 -4
  15. package/dist/chunk-5YCKFU5Q.js +1672 -0
  16. package/dist/{chunk-MCYGYZVZ.js → chunk-7FV2LORT.js} +2 -2
  17. package/dist/{chunk-57FHYW74.js → chunk-DEY23WTH.js} +122 -4
  18. package/dist/chunk-DJZPPCJP.js +274 -0
  19. package/dist/{chunk-4XWVLC23.js → chunk-G6JXCUSK.js} +2 -2
  20. package/dist/{chunk-T6GOWHK6.js → chunk-GFOQDLPL.js} +6 -1
  21. package/dist/{chunk-PG42KALG.js → chunk-GQP4GWU4.js} +5 -5
  22. package/dist/chunk-H4ZOKIER.js +7 -0
  23. package/dist/{chunk-XPWIJOZT.js → chunk-JQVSDPFL.js} +3 -3
  24. package/dist/{chunk-OG7QR2DP.js → chunk-KEHB4FZP.js} +17 -2
  25. package/dist/chunk-KUBHGVTD.js +126 -0
  26. package/dist/{chunk-SPUCY4AG.js → chunk-KVNNVLJR.js} +2 -2
  27. package/dist/chunk-LFFIQBNY.js +115 -0
  28. package/dist/{chunk-V7HG3STC.js → chunk-MR5IBS6L.js} +31 -15
  29. package/dist/{chunk-W5RLIUNC.js → chunk-NHUMPEPV.js} +2 -2
  30. package/dist/{chunk-I4DLMIN5.js → chunk-OFJIMBTL.js} +2 -2
  31. package/dist/{chunk-A6TM4NTI.js → chunk-OFPNCLG7.js} +2 -2
  32. package/dist/{chunk-3UOFHLY4.js → chunk-OS5DF3LL.js} +207 -15
  33. package/dist/{chunk-BZ2RXI5I.js → chunk-POTI2RJ6.js} +2 -2
  34. package/dist/{chunk-QTKD7JEL.js → chunk-R3MVL67T.js} +34 -34
  35. package/dist/{chunk-YN5GQCHN.js → chunk-RHJEGLYM.js} +6 -1
  36. package/dist/{chunk-YKU7KHJO.js → chunk-TBKVC2TA.js} +3 -5
  37. package/dist/{chunk-YYG3GUQW.js → chunk-UFWQTZDX.js} +29 -17
  38. package/dist/{chunk-PBDPWE5J.js → chunk-VBDDFO2V.js} +2 -2
  39. package/dist/{chunk-BRSESCGX.js → chunk-VUM6LO77.js} +4717 -4694
  40. package/dist/{chunk-FR6JHNLC.js → chunk-YLITJLTR.js} +3 -3
  41. package/dist/{chunk-CJ6OFTS3.js → chunk-YOWIYFIV.js} +6 -37
  42. package/dist/{chunk-VDBUZKXC.js → chunk-Z4Q6RYJH.js} +2 -2
  43. package/dist/{chunk-RRKGSYQ4.js → chunk-Z6WRFOFT.js} +13 -2
  44. package/dist/{chunk-YXAPCHXJ.js → chunk-ZIJ5IUXH.js} +31 -5
  45. package/dist/{claude-2C5L2HQL.js → claude-XVLF4N4S.js} +3 -3
  46. package/dist/{cli-BVRPAI23.js → cli-6FWRBCWM.js} +8 -8
  47. package/dist/{cli-YV6SFE4D.js → cli-RVPR3MH3.js} +7 -7
  48. package/dist/cli.js +11 -11
  49. package/dist/{completion-B3UT3GVI.js → completion-YTPHEVEW.js} +7 -7
  50. package/dist/{diagnostics-ONIAKCA3.js → diagnostics-IW54MLFK.js} +5 -6
  51. package/dist/{doctor-MJFU5L6R.js → doctor-EN4JPSKV.js} +35 -35
  52. package/dist/{entry-DZGKCL4G.js → entry-TQWSDTJ4.js} +14 -15
  53. package/dist/{exec-mcp-QK2VC6RX.js → exec-mcp-KKQ75N5O.js} +15 -13
  54. package/dist/{harness-GTED4GLK.js → harness-EB76F6BG.js} +6 -6
  55. package/dist/harness-launch-gate.js +3 -4
  56. package/dist/harness-worker.js +5 -6
  57. package/dist/hook-body.js +281 -98
  58. package/dist/{hook-spec-C7umArqw.d.ts → hook-spec-hZL4MSgi.d.ts} +8 -3
  59. package/dist/hooks-YWSHUNLM.js +24 -0
  60. package/dist/{host-AGNF2AQH.js → host-LSVITS6M.js} +6 -7
  61. package/dist/{host-3HTCZNVJ.js → host-OGGADMBT.js} +17 -15
  62. package/dist/{host-run-2OQZVQID.js → host-run-XO2TS4JC.js} +5 -7
  63. package/dist/http.d.ts +1 -1
  64. package/dist/http.js +1 -1
  65. package/dist/{import-mcp-7KEPR2B6.js → import-mcp-BJDJTPVS.js} +14 -11
  66. package/dist/index.d.ts +12 -3
  67. package/dist/index.js +25 -25
  68. package/dist/{init-BHGCF7JL.js → init-773PTQM5.js} +3 -3
  69. package/dist/{install-HF6CROQP.js → install-7V6NIA7W.js} +4 -4
  70. package/dist/{invoke-CVHF6PEK.js → invoke-Y7XH5S2L.js} +7 -8
  71. package/dist/{list-6XGQ3FR3.js → list-5W65XVES.js} +20 -17
  72. package/dist/{logout-6RJLG2KG.js → logout-XO6ALD45.js} +15 -12
  73. package/dist/{logs-VTW7S2LR.js → logs-74JGLQG6.js} +4 -4
  74. package/dist/mailbox/index.d.ts +3 -3
  75. package/dist/{mailbox-CNAONXN7.js → mailbox-VK5AVTHI.js} +9 -9
  76. package/dist/{mainline-JSG4MUKH.js → mainline-M2NSTAGC.js} +105 -36
  77. package/dist/{mcp-P55VLQLR.js → mcp-R62ZNVGJ.js} +2 -2
  78. package/dist/{pause-V5VCNOSH.js → pause-CZ2OZYLC.js} +4 -4
  79. package/dist/project/hook-adapter.d.ts +1 -1
  80. package/dist/{project-B57IQPDK.js → project-W5DQIZA6.js} +5 -5
  81. package/dist/{pty-FD4JGBZL.js → pty-CDLQ4NP2.js} +3 -3
  82. package/dist/report-Z3JV2PCT.js +105 -0
  83. package/dist/{resume-7S4K3R4X.js → resume-DFIHT2RO.js} +4 -4
  84. package/dist/{run-MC2BPLOE.js → run-OZLGSRHF.js} +14 -11
  85. package/dist/{run-LFJXONLW.js → run-WYJMTLX7.js} +4 -4
  86. package/dist/{serve-TFAEVXX3.js → serve-DCQGAGB7.js} +3 -3
  87. package/dist/{session-XM2CR425.js → session-YZVX4NGN.js} +4 -4
  88. package/dist/{setup-FHFQZJY6.js → setup-D3KEJBGO.js} +4 -4
  89. package/dist/smoke-FQQJOQBD.js +16 -0
  90. package/dist/{start-login-KXOHCR5A.js → start-login-EKXM75XQ.js} +15 -12
  91. package/dist/{status-YXOIEVOJ.js → status-23UDIYYP.js} +39 -22
  92. package/dist/{status-OYRB3KL5.js → status-3RTGDN2K.js} +10 -10
  93. package/dist/{status-AW7DOW7A.js → status-EDSEG32U.js} +15 -12
  94. package/dist/stdio.d.ts +2 -2
  95. package/dist/stdio.js +2 -2
  96. package/dist/{sweep-ZSYG6FNR.js → sweep-EPJMEZR6.js} +4 -4
  97. package/dist/{test-2HTOY4PJ.js → test-TM6PIZTV.js} +26 -18
  98. package/dist/{tui-DQFXYQ4H.js → tui-EQNJIDN5.js} +4 -4
  99. package/dist/{unbroadcast-FONZJWEW.js → unbroadcast-NTOC3PY3.js} +4 -4
  100. package/dist/{validate-WOFI7TMT.js → validate-KFBCUFI4.js} +2 -2
  101. package/dist/{worker-UXPGXAV2.js → worker-7X6WBPEI.js} +9 -10
  102. package/dist/{worktree-list-4PLE7K6L.js → worktree-list-EMKUMCTQ.js} +2 -2
  103. package/dist/{worktree-sync-GQVYAXGJ.js → worktree-sync-T6C5YEYS.js} +3 -3
  104. package/docs/commands.md +13 -6
  105. package/docs/git-workflow.md +46 -10
  106. package/docs/hooks.md +139 -12
  107. package/docs/project-configuration.md +34 -6
  108. package/docs/upgrading.md +94 -0
  109. package/gemini-extension.json +2 -2
  110. package/mcp.json +1 -1
  111. package/package.json +5 -5
  112. package/plugin.json +1 -1
  113. package/plugins/pmcp/.claude-plugin/plugin.json +1 -1
  114. package/plugins/pmcp/.mcp.json +1 -1
  115. package/plugins/pmcp/gemini-extension.json +2 -2
  116. package/plugins/pmcp/mcp.json +1 -1
  117. package/plugins/pmcp/mod/reader/read.ts +14 -4
  118. package/plugins/pmcp/mod/sessions/format.ts +16 -1
  119. package/plugins/pmcp/mod/sessions/types.ts +1 -1
  120. package/plugins/pmcp/plugin.json +1 -1
  121. package/schema/catalog-v1.json +1 -7
  122. package/dist/chunk-EONAJAMJ.js +0 -130
  123. package/dist/chunk-IACJDHFQ.js +0 -1025
  124. package/dist/chunk-ISNRDHSD.js +0 -74
  125. package/dist/chunk-YGTJQVCK.js +0 -7
  126. package/dist/chunk-YLPXTJJM.js +0 -396
  127. package/dist/hooks-FRZ4SUNJ.js +0 -21
  128. 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.19.9",
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" },
@@ -445,7 +445,7 @@
445
445
  },
446
446
  {
447
447
  "name": "pmcp",
448
- "version": "0.19.9",
448
+ "version": "0.21.0",
449
449
  "description": "Find package skills and use native runtime project configuration.",
450
450
  "source": "./plugins/pmcp"
451
451
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcp",
3
- "version": "0.19.9",
3
+ "version": "0.21.0",
4
4
  "description": "Find package skills and use native runtime project configuration.",
5
5
  "author": { "name": "modootoday" },
6
6
  "license": "Elastic-2.0",
package/.mcp.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "pmcp": {
4
4
  "type": "stdio",
5
5
  "command": "npx",
6
- "args": ["-y", "@modootoday/pmcp@0.19.9", "serve"]
6
+ "args": ["-y", "@modootoday/pmcp@0.21.0", "serve"]
7
7
  }
8
8
  }
9
9
  }
@@ -3,51 +3,63 @@ import {
3
3
  } from "./chunk-PEMMV5YQ.js";
4
4
  import {
5
5
  specFrom
6
- } from "./chunk-PBDPWE5J.js";
7
- import "./chunk-RPCIROW7.js";
6
+ } from "./chunk-VBDDFO2V.js";
8
7
  import {
9
- project
10
- } from "./chunk-3UOFHLY4.js";
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-IACJDHFQ.js";
16
- import "./chunk-YLPXTJJM.js";
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-ISNRDHSD.js";
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-I4DLMIN5.js";
34
+ import "./chunk-LFFIQBNY.js";
35
+ import "./chunk-HQOB7OQS.js";
36
+ import "./chunk-73AKO4UL.js";
30
37
  import "./chunk-P6LNYYYH.js";
31
- import "./chunk-YXAPCHXJ.js";
38
+ import "./chunk-ZIJ5IUXH.js";
32
39
  import "./chunk-2Q6MNGU5.js";
33
- import "./chunk-V7HG3STC.js";
34
- import "./chunk-RRKGSYQ4.js";
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 "./chunk-A4PKLESO.js";
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-57FHYW74.js";
59
+ } from "./chunk-DEY23WTH.js";
48
60
  import "./chunk-OEH47H6A.js";
49
61
  import "./chunk-IJBSOWHK.js";
50
- import "./chunk-YGTJQVCK.js";
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
- return 0;
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-TM6B2Y3G.js.map
277
+ //# sourceMappingURL=apply-6FLMTJDV.js.map
@@ -1,4 +1,4 @@
1
- import { a as MailboxConfig, M as MailboxService } from './core-C1LPjxK6.js';
1
+ import { a as MailboxConfig, M as MailboxService } from './core-Sug_rZrx.js';
2
2
 
3
3
  interface MailboxAttachmentOptions {
4
4
  readonly config: MailboxConfig;
@@ -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-HYSDAFYH.js.map
73
+ //# sourceMappingURL=available-BFXLII4A.js.map
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  change
3
- } from "./chunk-MCYGYZVZ.js";
4
- import "./chunk-V7HG3STC.js";
5
- import "./chunk-RRKGSYQ4.js";
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-DSCHWUMB.js.map
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-ISNRDHSD.js";
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-ICF2JZSN.js.map
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-EONAJAMJ.js";
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-QYQGPDBE.js.map
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-YKU7KHJO.js";
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-BZ2RXI5I.js";
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-XNPOHPMJ.js.map
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-V7HG3STC.js";
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-4XNAKVSO.js.map
155
+ //# sourceMappingURL=chunk-57Q75MS4.js.map
@@ -3,9 +3,12 @@ import {
3
3
  } from "./chunk-7TD53M7L.js";
4
4
  import {
5
5
  POLICIES,
6
- RUNTIMES,
6
+ customMode,
7
7
  customPolicy
8
- } from "./chunk-BRSESCGX.js";
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: "deny"
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-2S44RDO4.js.map
45
+ //# sourceMappingURL=chunk-5FW7A6TG.js.map