@modootoday/pmcp 0.31.0 → 0.32.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/{affected-4FILH743.js → affected-BHHN2Q3D.js} +3 -2
- package/dist/{apply-O36MB3Q5.js → apply-SSYZGDJU.js} +10 -10
- package/dist/{chunk-V5ZOISWG.js → chunk-3DRV5KHZ.js} +2 -2
- package/dist/{chunk-6FOP5S63.js → chunk-6H3HN7E7.js} +4 -4
- package/dist/{chunk-NPLTVGBP.js → chunk-AALSWFPA.js} +5 -5
- package/dist/{chunk-T6C3TSTO.js → chunk-ESM7TFTO.js} +36 -2
- package/dist/{chunk-2UKP5A7F.js → chunk-FALOBFE6.js} +3 -3
- package/dist/{chunk-O7OYOL64.js → chunk-FFQA2R5P.js} +3 -3
- package/dist/{chunk-S6QMSCFS.js → chunk-FGG7JJ5M.js} +2 -2
- package/dist/{chunk-RQQHZEVM.js → chunk-IAR7BL5R.js} +2 -2
- package/dist/{chunk-54FOQB2E.js → chunk-IFFOJ3IE.js} +2 -2
- package/dist/chunk-KNIHXLDE.js +7 -0
- package/dist/{chunk-SLWE4SGW.js → chunk-KWCZKCTC.js} +4 -4
- package/dist/{chunk-QEH7WOBC.js → chunk-MUGHZ6QC.js} +2 -2
- package/dist/{chunk-VLY6AGVN.js → chunk-OIV44CYB.js} +2 -2
- package/dist/{chunk-WZGK5TPF.js → chunk-OIYZT4BG.js} +13 -4
- package/dist/{chunk-DLM2BQXY.js → chunk-OS5CYV27.js} +3 -3
- package/dist/{chunk-VEXPKCAC.js → chunk-PPWEOXIU.js} +14 -14
- package/dist/{chunk-KFIKI44F.js → chunk-PRQICZXO.js} +3 -3
- package/dist/{chunk-LVCASOV4.js → chunk-QZY36KNT.js} +4 -2
- package/dist/{chunk-PTD3YQIT.js → chunk-SMHHL25Y.js} +5 -5
- package/dist/{chunk-NZTZHTW3.js → chunk-SU6R4VWV.js} +3 -3
- package/dist/{chunk-5WAMDZHF.js → chunk-UKGO2RR7.js} +2 -2
- package/dist/{chunk-RQWJGNS6.js → chunk-UT2NACLW.js} +2 -2
- package/dist/{chunk-5SMF2OKY.js → chunk-VEJU5HXJ.js} +2 -2
- package/dist/{chunk-OF42VZRG.js → chunk-XADROJFL.js} +2 -2
- package/dist/{cli-NSZLKKLU.js → cli-RHOETDBX.js} +5 -5
- package/dist/cli.js +3 -3
- package/dist/{completion-7QNGLW4X.js → completion-PE6CHX4K.js} +2 -2
- package/dist/{diagnostics-4FUIW53N.js → diagnostics-7Y5OFV44.js} +7 -7
- package/dist/{doctor-3XJJBENL.js → doctor-GBIPPKPD.js} +12 -12
- package/dist/{doctor-T647TNS5.js → doctor-XY6OMK7W.js} +6 -5
- package/dist/{entry-E65VAN5N.js → entry-4WT2WM6C.js} +11 -11
- package/dist/{exec-mcp-VYS4FTKF.js → exec-mcp-BLTFBWND.js} +8 -8
- package/dist/{harness-2MCF2ZWN.js → harness-HGBKFIUT.js} +3 -3
- package/dist/harness-launch-gate.js +5 -5
- package/dist/harness-worker.js +7 -7
- package/dist/{heavy-AZSP6VEW.js → heavy-E55QD5LR.js} +5 -4
- package/dist/{hooks-SEC6WIP5.js → hooks-MT3CGRSU.js} +3 -3
- package/dist/{host-VPSNIHRO.js → host-5AI4JAXD.js} +8 -8
- package/dist/{host-33YTCKQK.js → host-AMKVSOYU.js} +10 -10
- package/dist/{host-2CKQ6H6W.js → host-FXO4VGE6.js} +4 -4
- package/dist/{host-run-AVJRPDL6.js → host-run-M2KMMU72.js} +6 -6
- package/dist/http.js +1 -1
- package/dist/{import-mcp-NCOFK75O.js → import-mcp-QTUVK5GE.js} +7 -7
- package/dist/index.d.ts +1 -1
- package/dist/index.js +11 -11
- package/dist/{init-VHCYXPTG.js → init-RAAQOP4D.js} +2 -2
- package/dist/{invoke-XY5FIQZB.js → invoke-D2CYSRFG.js} +9 -9
- package/dist/{list-M6MMCCNY.js → list-UG67V5EO.js} +9 -9
- package/dist/{logout-WJDFPQCF.js → logout-Z5KMKTTP.js} +8 -8
- package/dist/{mainline-HQPAQ5N2.js → mainline-Y4HOI5R7.js} +5 -4
- package/dist/{mcp-DGNTEMHQ.js → mcp-QARZ7L22.js} +2 -2
- package/dist/{measure-BR6R5ZGJ.js → measure-K7D3GLC6.js} +6 -6
- package/dist/{plan-KGGJRUY5.js → plan-JAHYXJHP.js} +6 -5
- package/dist/{project-UQQLPD4K.js → project-5SL2CE5F.js} +4 -4
- package/dist/{run-UKTQKE5X.js → run-EUU6TJBI.js} +4 -4
- package/dist/{run-I7425NVX.js → run-H22CN65S.js} +7 -7
- package/dist/{serve-EAYEISOY.js → serve-36VOPK47.js} +3 -3
- package/dist/{setup-V7QJKJ3M.js → setup-Y5SM4LKI.js} +4 -3
- package/dist/{start-login-OYS26DEB.js → start-login-3CUVLBDP.js} +8 -8
- package/dist/{status-K5SO4Q5K.js → status-SLQQMCZP.js} +8 -8
- package/dist/{status-NI4TJ56E.js → status-ZGFOO5YT.js} +9 -9
- package/dist/stdio.js +2 -2
- package/dist/{test-72IQFIXF.js → test-JKU4KELV.js} +8 -8
- package/dist/{tui-O6AP46M3.js → tui-QB42W3XZ.js} +4 -4
- package/dist/{worker-UUYKNLVW.js → worker-VPP2HD6O.js} +9 -9
- package/docs/project-configuration.md +1 -0
- package/docs/upgrading.md +10 -1
- 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/plugin.json +1 -1
- package/dist/chunk-3QW5KA52.js +0 -7
|
@@ -612,7 +612,7 @@
|
|
|
612
612
|
},
|
|
613
613
|
{
|
|
614
614
|
"name": "pmcp",
|
|
615
|
-
"version": "0.
|
|
615
|
+
"version": "0.32.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
|
@@ -15,7 +15,8 @@ import {
|
|
|
15
15
|
Reader,
|
|
16
16
|
child,
|
|
17
17
|
table
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ESM7TFTO.js";
|
|
19
|
+
import "./chunk-KNIHXLDE.js";
|
|
19
20
|
import {
|
|
20
21
|
ConfigError,
|
|
21
22
|
findConfig,
|
|
@@ -1274,4 +1275,4 @@ export {
|
|
|
1274
1275
|
AFFECTED_SCHEMA,
|
|
1275
1276
|
gitAffected
|
|
1276
1277
|
};
|
|
1277
|
-
//# sourceMappingURL=affected-
|
|
1278
|
+
//# sourceMappingURL=affected-BHHN2Q3D.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-2MX5C7B2.js";
|
|
4
4
|
import {
|
|
5
5
|
specFrom
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XADROJFL.js";
|
|
7
7
|
import {
|
|
8
8
|
printSmoke,
|
|
9
9
|
runSmoke
|
|
@@ -15,14 +15,14 @@ import {
|
|
|
15
15
|
describeHookProblem,
|
|
16
16
|
project,
|
|
17
17
|
unmanagedHookProblems
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-6H3HN7E7.js";
|
|
19
19
|
import "./chunk-ANJMLKBR.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-SU6R4VWV.js";
|
|
21
21
|
import {
|
|
22
22
|
checkBudget,
|
|
23
23
|
renderFrontmatter,
|
|
24
24
|
splitFrontmatter
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-KWCZKCTC.js";
|
|
26
26
|
import "./chunk-YEO6I6XN.js";
|
|
27
27
|
import "./chunk-FLG7VRTC.js";
|
|
28
28
|
import "./chunk-2GD7PQ7J.js";
|
|
@@ -33,7 +33,7 @@ import "./chunk-LFFIQBNY.js";
|
|
|
33
33
|
import "./chunk-HQOB7OQS.js";
|
|
34
34
|
import "./chunk-73AKO4UL.js";
|
|
35
35
|
import "./chunk-VQBXWMLT.js";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-UKGO2RR7.js";
|
|
37
37
|
import "./chunk-WUFNKK3U.js";
|
|
38
38
|
import "./chunk-374AZ4J4.js";
|
|
39
39
|
import "./chunk-SDFJJJB5.js";
|
|
@@ -57,18 +57,18 @@ import {
|
|
|
57
57
|
import "./chunk-YSAWTGNA.js";
|
|
58
58
|
import {
|
|
59
59
|
recordProjector
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import "./chunk-
|
|
60
|
+
} from "./chunk-PRQICZXO.js";
|
|
61
|
+
import "./chunk-QZY36KNT.js";
|
|
62
62
|
import "./chunk-N7ANFMA5.js";
|
|
63
63
|
import {
|
|
64
64
|
ProjectError
|
|
65
65
|
} from "./chunk-TYY5TYHF.js";
|
|
66
|
-
import "./chunk-
|
|
66
|
+
import "./chunk-ESM7TFTO.js";
|
|
67
67
|
import "./chunk-KLIYFD3W.js";
|
|
68
68
|
import "./chunk-GUHOEIHP.js";
|
|
69
69
|
import "./chunk-IJBSOWHK.js";
|
|
70
70
|
import "./chunk-XWLMZKH2.js";
|
|
71
|
-
import "./chunk-
|
|
71
|
+
import "./chunk-KNIHXLDE.js";
|
|
72
72
|
import "./chunk-GJXOFDJT.js";
|
|
73
73
|
import "./chunk-PMJG2CXF.js";
|
|
74
74
|
import "./chunk-J6KL3COD.js";
|
|
@@ -283,4 +283,4 @@ export {
|
|
|
283
283
|
projectOrCheck,
|
|
284
284
|
removeAndProject
|
|
285
285
|
};
|
|
286
|
-
//# sourceMappingURL=apply-
|
|
286
|
+
//# sourceMappingURL=apply-SSYZGDJU.js.map
|
|
@@ -1190,7 +1190,7 @@ function registerReadTool(server, tools) {
|
|
|
1190
1190
|
|
|
1191
1191
|
// src/mcp.ts
|
|
1192
1192
|
var SERVER_NAME = "pmcp";
|
|
1193
|
-
var SERVER_VERSION = "0.
|
|
1193
|
+
var SERVER_VERSION = "0.32.0";
|
|
1194
1194
|
var MAX_TOOL_INPUT_ELEMENTS = 1e4;
|
|
1195
1195
|
function registerSkillTools(server, tools) {
|
|
1196
1196
|
registerCatalogTool(server, tools);
|
|
@@ -1247,4 +1247,4 @@ export {
|
|
|
1247
1247
|
registerSkillTools,
|
|
1248
1248
|
createSkillServer
|
|
1249
1249
|
};
|
|
1250
|
-
//# sourceMappingURL=chunk-
|
|
1250
|
+
//# sourceMappingURL=chunk-3DRV5KHZ.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
prepare,
|
|
8
8
|
present,
|
|
9
9
|
writeNative
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SU6R4VWV.js";
|
|
11
11
|
import {
|
|
12
12
|
ANTIGRAVITY_MCP_PLUGIN,
|
|
13
13
|
BUNDLE_NATIVE_FILES,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
same,
|
|
22
22
|
splitKeyed,
|
|
23
23
|
withoutBlock
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-KWCZKCTC.js";
|
|
25
25
|
import {
|
|
26
26
|
HOOK_DIRECTORY
|
|
27
27
|
} from "./chunk-GQRDEIQA.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
replaceFile,
|
|
31
31
|
replaceLink,
|
|
32
32
|
writeLock
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-PRQICZXO.js";
|
|
34
34
|
import {
|
|
35
35
|
RULES_DIR,
|
|
36
36
|
legacyLinks
|
|
@@ -400,4 +400,4 @@ export {
|
|
|
400
400
|
unmanagedHooks,
|
|
401
401
|
describeHookProblem
|
|
402
402
|
};
|
|
403
|
-
//# sourceMappingURL=chunk-
|
|
403
|
+
//# sourceMappingURL=chunk-6H3HN7E7.js.map
|
|
@@ -7,20 +7,20 @@ import {
|
|
|
7
7
|
observeSession,
|
|
8
8
|
openGroup,
|
|
9
9
|
runOperation
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FFQA2R5P.js";
|
|
11
11
|
import {
|
|
12
12
|
nativeHostTools
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-MUGHZ6QC.js";
|
|
14
14
|
import {
|
|
15
15
|
locateExecutable
|
|
16
16
|
} from "./chunk-R2GPCZUX.js";
|
|
17
17
|
import {
|
|
18
18
|
artifact,
|
|
19
19
|
stateDirectory
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FGG7JJ5M.js";
|
|
21
21
|
import {
|
|
22
22
|
ptyBinary
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-PRQICZXO.js";
|
|
24
24
|
import {
|
|
25
25
|
GroupStore,
|
|
26
26
|
privateJson
|
|
@@ -249,4 +249,4 @@ async function invoke(operation) {
|
|
|
249
249
|
export {
|
|
250
250
|
invoke
|
|
251
251
|
};
|
|
252
|
-
//# sourceMappingURL=chunk-
|
|
252
|
+
//# sourceMappingURL=chunk-AALSWFPA.js.map
|
|
@@ -1,7 +1,38 @@
|
|
|
1
|
+
import {
|
|
2
|
+
VERSION
|
|
3
|
+
} from "./chunk-KNIHXLDE.js";
|
|
1
4
|
import {
|
|
2
5
|
ConfigError
|
|
3
6
|
} from "./chunk-GJXOFDJT.js";
|
|
4
7
|
|
|
8
|
+
// src/git/config/newer-pin.ts
|
|
9
|
+
import { readFileSync } from "fs";
|
|
10
|
+
import { dirname, join } from "path";
|
|
11
|
+
import semver from "semver";
|
|
12
|
+
var PACKAGE = "@modootoday/pmcp";
|
|
13
|
+
var FIELDS = ["dependencies", "devDependencies", "optionalDependencies"];
|
|
14
|
+
function pinnedVersion(configPath) {
|
|
15
|
+
let manifest;
|
|
16
|
+
try {
|
|
17
|
+
manifest = JSON.parse(
|
|
18
|
+
readFileSync(join(dirname(configPath), "package.json"), "utf8")
|
|
19
|
+
);
|
|
20
|
+
} catch {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
for (const field of FIELDS) {
|
|
24
|
+
const deps = manifest[field];
|
|
25
|
+
const pin = deps?.[PACKAGE];
|
|
26
|
+
if (typeof pin === "string") return semver.valid(pin);
|
|
27
|
+
}
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
function newerPinHint(configPath) {
|
|
31
|
+
const pin = pinnedVersion(configPath);
|
|
32
|
+
if (!pin || !semver.gt(pin, VERSION)) return "";
|
|
33
|
+
return `; this checkout pins ${PACKAGE} ${pin} but runs ${VERSION}: install the pinned version (for example bun install --frozen-lockfile, or npm ci) and run the command again`;
|
|
34
|
+
}
|
|
35
|
+
|
|
5
36
|
// src/git/config/reader.ts
|
|
6
37
|
var Reader = class {
|
|
7
38
|
constructor(path, name, table2, keys) {
|
|
@@ -10,7 +41,10 @@ var Reader = class {
|
|
|
10
41
|
this.table = table2;
|
|
11
42
|
for (const key of Object.keys(table2)) {
|
|
12
43
|
if (!keys.includes(key))
|
|
13
|
-
throw new ConfigError(
|
|
44
|
+
throw new ConfigError(
|
|
45
|
+
path,
|
|
46
|
+
`unknown key [${name}] ${key}${newerPinHint(path)}`
|
|
47
|
+
);
|
|
14
48
|
}
|
|
15
49
|
}
|
|
16
50
|
path;
|
|
@@ -96,4 +130,4 @@ export {
|
|
|
96
130
|
table,
|
|
97
131
|
child
|
|
98
132
|
};
|
|
99
|
-
//# sourceMappingURL=chunk-
|
|
133
|
+
//# sourceMappingURL=chunk-ESM7TFTO.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-IAR7BL5R.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-MUGHZ6QC.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-FALOBFE6.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assertNativeHost
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MUGHZ6QC.js";
|
|
4
4
|
import {
|
|
5
5
|
locateExecutable
|
|
6
6
|
} from "./chunk-R2GPCZUX.js";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
resourceClaim,
|
|
34
34
|
resourceRunning,
|
|
35
35
|
runtimeUnit
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-FGG7JJ5M.js";
|
|
37
37
|
import {
|
|
38
38
|
command
|
|
39
39
|
} from "./chunk-34DECPVC.js";
|
|
@@ -1981,4 +1981,4 @@ export {
|
|
|
1981
1981
|
isReadOnly,
|
|
1982
1982
|
runOperation
|
|
1983
1983
|
};
|
|
1984
|
-
//# sourceMappingURL=chunk-
|
|
1984
|
+
//# sourceMappingURL=chunk-FFQA2R5P.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-PRQICZXO.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-FGG7JJ5M.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
nativeBinary,
|
|
9
9
|
ptyBinary
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PRQICZXO.js";
|
|
11
11
|
|
|
12
12
|
// src/tui/rust.ts
|
|
13
13
|
import { spawn } from "child_process";
|
|
@@ -62,4 +62,4 @@ export {
|
|
|
62
62
|
runTui,
|
|
63
63
|
dependencies
|
|
64
64
|
};
|
|
65
|
-
//# sourceMappingURL=chunk-
|
|
65
|
+
//# sourceMappingURL=chunk-IAR7BL5R.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-7CHUMF3E.js";
|
|
4
4
|
import {
|
|
5
5
|
readSpec
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KWCZKCTC.js";
|
|
7
7
|
import {
|
|
8
8
|
ArgumentError
|
|
9
9
|
} from "./chunk-Y6NFETNG.js";
|
|
@@ -25,4 +25,4 @@ function serverFrom(context) {
|
|
|
25
25
|
export {
|
|
26
26
|
serverFrom
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=chunk-
|
|
28
|
+
//# sourceMappingURL=chunk-IFFOJ3IE.js.map
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
leaseSpecs,
|
|
30
30
|
readGitConfig
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-UKGO2RR7.js";
|
|
32
32
|
import {
|
|
33
33
|
ownerLine,
|
|
34
34
|
ownersOf,
|
|
@@ -77,11 +77,11 @@ import {
|
|
|
77
77
|
readHost,
|
|
78
78
|
readLock,
|
|
79
79
|
readLockFile
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-PRQICZXO.js";
|
|
81
81
|
import {
|
|
82
82
|
DISABLE_ENV,
|
|
83
83
|
readLeaseSettings
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-QZY36KNT.js";
|
|
85
85
|
import {
|
|
86
86
|
ProjectError,
|
|
87
87
|
RULES_DIR,
|
|
@@ -6991,4 +6991,4 @@ export {
|
|
|
6991
6991
|
checkBudget,
|
|
6992
6992
|
readSpec
|
|
6993
6993
|
};
|
|
6994
|
-
//# sourceMappingURL=chunk-
|
|
6994
|
+
//# sourceMappingURL=chunk-KWCZKCTC.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-34DECPVC.js";
|
|
7
7
|
import {
|
|
8
8
|
ptyBinary
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PRQICZXO.js";
|
|
10
10
|
|
|
11
11
|
// src/harness/adapters/systemd/admission.ts
|
|
12
12
|
var nativeHostTools = ["systemctl", "systemd-run"];
|
|
@@ -36,4 +36,4 @@ export {
|
|
|
36
36
|
nativeHostTools,
|
|
37
37
|
assertNativeHost
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=chunk-
|
|
39
|
+
//# sourceMappingURL=chunk-MUGHZ6QC.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
customPolicy,
|
|
8
8
|
externalId,
|
|
9
9
|
externalPolicy
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KWCZKCTC.js";
|
|
11
11
|
import {
|
|
12
12
|
RUNTIMES
|
|
13
13
|
} from "./chunk-GQRDEIQA.js";
|
|
@@ -50,4 +50,4 @@ function policyRows(compiled) {
|
|
|
50
50
|
export {
|
|
51
51
|
policyRows
|
|
52
52
|
};
|
|
53
|
-
//# sourceMappingURL=chunk-
|
|
53
|
+
//# sourceMappingURL=chunk-OIV44CYB.js.map
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
BUSY_EXIT,
|
|
21
21
|
DISABLE_ENV
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-QZY36KNT.js";
|
|
23
23
|
import {
|
|
24
24
|
LANES,
|
|
25
25
|
epoch,
|
|
@@ -467,7 +467,7 @@ import {
|
|
|
467
467
|
// src/lease/admit.ts
|
|
468
468
|
import { closeSync, openSync } from "fs";
|
|
469
469
|
import { join as join3 } from "path";
|
|
470
|
-
function admissible(settings, running, waiters) {
|
|
470
|
+
function admissible(settings, running, waiters, now = Date.now()) {
|
|
471
471
|
const gateOnly = settings.gateAlone && gateWanted(running, waiters);
|
|
472
472
|
const free = { ...settings.slots };
|
|
473
473
|
let budget = settings.budget;
|
|
@@ -479,7 +479,7 @@ function admissible(settings, running, waiters) {
|
|
|
479
479
|
const found = new Set(
|
|
480
480
|
waiters.filter((waiter) => waiter.weight === 0).map((w) => w.pid)
|
|
481
481
|
);
|
|
482
|
-
for (const waiter of waiters) {
|
|
482
|
+
for (const waiter of admissionOrder(settings, waiters, now)) {
|
|
483
483
|
if (waiter.weight === 0 || free[waiter.lane] <= 0) continue;
|
|
484
484
|
if (gateOnly && waiter.lane !== "gate") continue;
|
|
485
485
|
if (waiter.weight > budget) break;
|
|
@@ -489,6 +489,15 @@ function admissible(settings, running, waiters) {
|
|
|
489
489
|
}
|
|
490
490
|
return found;
|
|
491
491
|
}
|
|
492
|
+
var AHEAD = ["gate", "hook"];
|
|
493
|
+
function admissionOrder(settings, waiters, now) {
|
|
494
|
+
if (settings.ageLimit === 0) return [...waiters];
|
|
495
|
+
const first = waiters.filter((waiter) => AHEAD.includes(waiter.lane));
|
|
496
|
+
const later = waiters.filter((waiter) => !AHEAD.includes(waiter.lane));
|
|
497
|
+
const aged = (waiter) => now - waiter.queued >= settings.ageLimit * 1e3;
|
|
498
|
+
const old = later.filter(aged).sort((a, b) => a.queued - b.queued);
|
|
499
|
+
return [...first, ...old, ...later.filter((waiter) => !aged(waiter))];
|
|
500
|
+
}
|
|
492
501
|
function gateWanted(running, waiters) {
|
|
493
502
|
return [...running, ...waiters].some(
|
|
494
503
|
(job) => job.lane === "gate" && job.weight > 0
|
|
@@ -1152,4 +1161,4 @@ export {
|
|
|
1152
1161
|
usageStats,
|
|
1153
1162
|
runHeavy
|
|
1154
1163
|
};
|
|
1155
|
-
//# sourceMappingURL=chunk-
|
|
1164
|
+
//# sourceMappingURL=chunk-OIYZT4BG.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runHeavy,
|
|
3
3
|
userManager
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OIYZT4BG.js";
|
|
5
5
|
import {
|
|
6
6
|
MODEL_KEYS,
|
|
7
7
|
RESULT,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk-Y6NFETNG.js";
|
|
19
19
|
import {
|
|
20
20
|
leaseSettingsFor
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-QZY36KNT.js";
|
|
22
22
|
import {
|
|
23
23
|
ConfigError,
|
|
24
24
|
findConfig
|
|
@@ -151,4 +151,4 @@ export {
|
|
|
151
151
|
probeDir,
|
|
152
152
|
underLease
|
|
153
153
|
};
|
|
154
|
-
//# sourceMappingURL=chunk-
|
|
154
|
+
//# sourceMappingURL=chunk-OS5CYV27.js.map
|
|
@@ -75,11 +75,11 @@ var completionSpec = {
|
|
|
75
75
|
var COMMANDS = [
|
|
76
76
|
{
|
|
77
77
|
...statusSpec,
|
|
78
|
-
load: async () => (await import("./status-
|
|
78
|
+
load: async () => (await import("./status-ZGFOO5YT.js")).statusCommand
|
|
79
79
|
},
|
|
80
|
-
{ ...initSpec, load: async () => (await import("./init-
|
|
81
|
-
{ ...hooksSpec, load: async () => (await import("./hooks-
|
|
82
|
-
{ ...serveSpec, load: async () => (await import("./serve-
|
|
80
|
+
{ ...initSpec, load: async () => (await import("./init-RAAQOP4D.js")).initCommand },
|
|
81
|
+
{ ...hooksSpec, load: async () => (await import("./hooks-MT3CGRSU.js")).hooksCommand },
|
|
82
|
+
{ ...serveSpec, load: async () => (await import("./serve-36VOPK47.js")).serveCommand },
|
|
83
83
|
{ ...listSpec, load: async () => (await import("./list-LV5EKCF6.js")).listCommand },
|
|
84
84
|
{
|
|
85
85
|
...indexSpec,
|
|
@@ -116,29 +116,29 @@ var COMMANDS = [
|
|
|
116
116
|
{ ...syncSpec, load: async () => (await import("./install-5JH4DSFF.js")).syncCommand },
|
|
117
117
|
{
|
|
118
118
|
...projectSpec,
|
|
119
|
-
load: async () => (await import("./project-
|
|
119
|
+
load: async () => (await import("./project-5SL2CE5F.js")).projectCommand
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
122
|
...doctorSpec,
|
|
123
|
-
load: async () => (await import("./doctor-
|
|
123
|
+
load: async () => (await import("./doctor-GBIPPKPD.js")).doctorCommand
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
126
|
...sessionsSpec,
|
|
127
127
|
load: async () => (await import("./cli-ZOY2274X.js")).sessionsCommand
|
|
128
128
|
},
|
|
129
129
|
{ ...logsSpec, load: async () => (await import("./logs-J4W6GFMK.js")).logsCommand },
|
|
130
|
-
{ ...gitSpec, load: async () => (await import("./cli-
|
|
130
|
+
{ ...gitSpec, load: async () => (await import("./cli-RHOETDBX.js")).gitCommand },
|
|
131
131
|
{
|
|
132
132
|
...heavySpec,
|
|
133
|
-
load: async () => (await import("./heavy-
|
|
133
|
+
load: async () => (await import("./heavy-E55QD5LR.js")).heavyCommand
|
|
134
134
|
},
|
|
135
|
-
{ ...hostSpec, load: async () => (await import("./host-
|
|
135
|
+
{ ...hostSpec, load: async () => (await import("./host-FXO4VGE6.js")).hostCommand },
|
|
136
136
|
{ ...waitSpec, load: async () => (await import("./wait-HEODT7KV.js")).waitCommand },
|
|
137
137
|
{
|
|
138
138
|
...ownersSpec,
|
|
139
139
|
load: async () => (await import("./owners-MPI22SFU.js")).ownersCommand
|
|
140
140
|
},
|
|
141
|
-
{ ...mcpSpec, load: async () => (await import("./mcp-
|
|
141
|
+
{ ...mcpSpec, load: async () => (await import("./mcp-QARZ7L22.js")).mcpCommand },
|
|
142
142
|
{
|
|
143
143
|
...validateSpec,
|
|
144
144
|
load: async () => (await import("./validate-YXR7FJJX.js")).validateCommand
|
|
@@ -149,16 +149,16 @@ var COMMANDS = [
|
|
|
149
149
|
},
|
|
150
150
|
{
|
|
151
151
|
...harnessSpec,
|
|
152
|
-
load: async () => (await import("./harness-
|
|
152
|
+
load: async () => (await import("./harness-HGBKFIUT.js")).harnessCommand
|
|
153
153
|
},
|
|
154
|
-
{ ...tuiSpec, load: async () => (await import("./tui-
|
|
154
|
+
{ ...tuiSpec, load: async () => (await import("./tui-QB42W3XZ.js")).tuiCommand },
|
|
155
155
|
{
|
|
156
156
|
...marketplaceSpec,
|
|
157
157
|
load: async () => (await import("./marketplace-2X3OOEPW.js")).marketplaceCommand
|
|
158
158
|
},
|
|
159
159
|
{
|
|
160
160
|
...completionSpec,
|
|
161
|
-
load: async () => (await import("./completion-
|
|
161
|
+
load: async () => (await import("./completion-PE6CHX4K.js")).completionCommand
|
|
162
162
|
}
|
|
163
163
|
];
|
|
164
164
|
var PLANNED = [];
|
|
@@ -172,4 +172,4 @@ export {
|
|
|
172
172
|
PLANNED,
|
|
173
173
|
commandNamed
|
|
174
174
|
};
|
|
175
|
-
//# sourceMappingURL=chunk-
|
|
175
|
+
//# sourceMappingURL=chunk-PPWEOXIU.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readLeaseSettings
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QZY36KNT.js";
|
|
4
4
|
import {
|
|
5
5
|
ProjectError
|
|
6
6
|
} from "./chunk-TYY5TYHF.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-XWLMZKH2.js";
|
|
13
13
|
import {
|
|
14
14
|
VERSION
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KNIHXLDE.js";
|
|
16
16
|
import {
|
|
17
17
|
ConfigError
|
|
18
18
|
} from "./chunk-GJXOFDJT.js";
|
|
@@ -610,4 +610,4 @@ export {
|
|
|
610
610
|
hostEnvDoctor,
|
|
611
611
|
hostDoctor
|
|
612
612
|
};
|
|
613
|
-
//# sourceMappingURL=chunk-
|
|
613
|
+
//# sourceMappingURL=chunk-PRQICZXO.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
Reader,
|
|
6
6
|
child,
|
|
7
7
|
table
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ESM7TFTO.js";
|
|
9
9
|
import {
|
|
10
10
|
expandPath
|
|
11
11
|
} from "./chunk-GUHOEIHP.js";
|
|
@@ -118,6 +118,7 @@ var KEYS = [
|
|
|
118
118
|
"load_grace",
|
|
119
119
|
"hold_warn",
|
|
120
120
|
"hold_max",
|
|
121
|
+
"age_limit",
|
|
121
122
|
"heartbeat",
|
|
122
123
|
"poll",
|
|
123
124
|
"memory_max",
|
|
@@ -339,6 +340,7 @@ function readLeaseSettings(path, dir, host, ignored) {
|
|
|
339
340
|
poll: read.int("poll", 15),
|
|
340
341
|
budget: read.int("budget", 4),
|
|
341
342
|
gateAlone: read.bool("gate_alone", false),
|
|
343
|
+
ageLimit: whole(path, "host.lease", "age_limit", raw["age_limit"], 600),
|
|
342
344
|
slots: perLane(
|
|
343
345
|
path,
|
|
344
346
|
"host.lease.lanes",
|
|
@@ -399,4 +401,4 @@ export {
|
|
|
399
401
|
readLeaseSettings,
|
|
400
402
|
leaseSettingsFor
|
|
401
403
|
};
|
|
402
|
-
//# sourceMappingURL=chunk-
|
|
404
|
+
//# sourceMappingURL=chunk-QZY36KNT.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
hostApprovalDoctor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UT2NACLW.js";
|
|
4
4
|
import {
|
|
5
5
|
wakeableBy
|
|
6
6
|
} from "./chunk-JQVSDPFL.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
describeHookProblem,
|
|
13
13
|
project,
|
|
14
14
|
unmanagedHooks
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6H3HN7E7.js";
|
|
16
16
|
import {
|
|
17
17
|
ANTIGRAVITY_MCP_PLUGIN,
|
|
18
18
|
agentNames,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
skillNames,
|
|
24
24
|
splitFrontmatter,
|
|
25
25
|
uiClaudeDoctor
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-KWCZKCTC.js";
|
|
27
27
|
import {
|
|
28
28
|
pathPmcp,
|
|
29
29
|
pmcpCommand
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
hostEnvDoctor,
|
|
38
38
|
ptyBinaryDoctor,
|
|
39
39
|
readLockFile
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-PRQICZXO.js";
|
|
41
41
|
import {
|
|
42
42
|
ProjectError
|
|
43
43
|
} from "./chunk-TYY5TYHF.js";
|
|
@@ -671,4 +671,4 @@ export {
|
|
|
671
671
|
spawnRunner,
|
|
672
672
|
doctor
|
|
673
673
|
};
|
|
674
|
-
//# sourceMappingURL=chunk-
|
|
674
|
+
//# sourceMappingURL=chunk-SMHHL25Y.js.map
|