@cydm/pie 4.8.0 → 4.10.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/README.md +51 -27
- package/dist/builtin/extensions/ask-user/index.js +4 -4
- package/dist/builtin/extensions/cron/index.js +906 -158
- package/dist/builtin/extensions/im-forward/README.md +4 -2
- package/dist/builtin/extensions/im-forward/index.js +6875 -3972
- package/dist/builtin/extensions/memory/index.js +76 -28
- package/dist/builtin/extensions/pie-ipc/README.md +2 -2
- package/dist/builtin/extensions/pie-ipc/index.js +285 -61
- package/dist/builtin/extensions/pie-proc/README.md +7 -7
- package/dist/builtin/extensions/pie-proc/index.js +493 -107
- package/dist/builtin/extensions/plan-mode/index.js +5 -5
- package/dist/builtin/extensions/subagent/index.js +8 -8
- package/dist/builtin/extensions/todo/index.js +4 -4
- package/dist/builtin/skills/chrome-devtools-axi/SKILL.md +26 -24
- package/dist/builtin/skills/chrome-devtools-axi/chrome-devtools-axi-bridge.js +199 -121
- package/dist/builtin/skills/chrome-devtools-axi/chrome-devtools-axi-runtime.js +1 -1
- package/dist/builtin/skills/chrome-devtools-axi/chunk-HAUDUMDO.js +795 -0
- package/dist/builtin/skills/chrome-devtools-axi/{cli-ZE754CTH.js → cli-K7ESY3XD.js} +433 -255
- package/dist/builtin/skills/computer-use-axi/SKILL.md +25 -8
- package/dist/builtin/skills/computer-use-axi/computer-use-axi-broker.js +367 -65
- package/dist/builtin/skills/computer-use-axi/computer-use-axi-runtime.js +2 -2
- package/dist/builtin/skills/tui-use/tui-use-daemon.cjs +451 -43
- package/dist/chunks/{chunk-Y3I2UV5Y.js → chunk-5QMS6RQC.js} +353 -287
- package/dist/chunks/chunk-6WKBQZWM.js +19 -0
- package/dist/chunks/{chunk-LAJXWOKS.js → chunk-7LICWWUE.js} +11 -9
- package/dist/chunks/{chunk-5KI4Y4LA.js → chunk-BQWHLYYZ.js} +4 -3
- package/dist/chunks/{chunk-4PR34UZF.js → chunk-BTUMBUDU.js} +159 -145
- package/dist/chunks/{chunk-NHV2CALB.js → chunk-FC5AN5QP.js} +409 -32
- package/dist/chunks/{chunk-3W3SXVPB.js → chunk-G2K4GY6N.js} +993 -371
- package/dist/chunks/{chunk-BLDI2GRF.js → chunk-HK3FHIAH.js} +1364 -446
- package/dist/chunks/chunk-IZKHSUNQ.js +30 -0
- package/dist/chunks/{chunk-CGSFBWOM.js → chunk-KWK7KTSZ.js} +4 -3
- package/dist/chunks/chunk-OU33ROFD.js +717 -0
- package/dist/chunks/{chunk-Z2FKA2ZH.js → chunk-XMTRKMBG.js} +104 -22
- package/dist/chunks/{host-image-fallback-N7RHNPYN.js → host-image-fallback-3TEMOQM5.js} +1 -1
- package/dist/chunks/{manager-cli-NEZA46M5.js → manager-cli-Y6HM3MHA.js} +5 -5
- package/dist/chunks/{model-registry-3XAHXXTA.js → model-registry-QKJ3YVDS.js} +2 -2
- package/dist/chunks/{read-file-understanding-FMPXR6EJ.js → read-file-understanding-N2ZZQLTZ.js} +5 -5
- package/dist/chunks/{src-EGXFJ3WA.js → src-3PSR2AAX.js} +3 -3
- package/dist/chunks/{src-B44QWSGM.js → src-D5GN4Q5O.js} +2 -2
- package/dist/chunks/{src-CLE5ILN4.js → src-F5N6O2HR.js} +20 -4
- package/dist/chunks/{src-Q7LU27C2.js → src-TIDKYA5F.js} +31 -1
- package/dist/chunks/{test-stream-OR3EJBNF.js → test-stream-JAJHK44G.js} +2 -2
- package/dist/cli.js +4123 -2389
- package/models.schema.json +271 -0
- package/package.json +2 -2
- package/dist/builtin/skills/chrome-devtools-axi/chunk-Z2A5LA5A.js +0 -407
- package/dist/chunks/chunk-EGZ5TZRM.js +0 -1444
- package/dist/chunks/{manager-upgrade-CTU3ISCW.js → manager-upgrade-LSTOHBUV.js} +3 -3
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// src/core/cron-panel-bridge.ts
|
|
4
|
+
var activeBridge;
|
|
5
|
+
function registerCronPanelBridge(bridge) {
|
|
6
|
+
const token = /* @__PURE__ */ Symbol("cron-panel-bridge");
|
|
7
|
+
activeBridge = { token, bridge };
|
|
8
|
+
return () => {
|
|
9
|
+
if (activeBridge?.token === token) activeBridge = void 0;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
function currentCronPanelBridge() {
|
|
13
|
+
return activeBridge?.bridge;
|
|
14
|
+
}
|
|
15
|
+
function cronActiveCount(sessionId) {
|
|
16
|
+
const bridge = activeBridge?.bridge;
|
|
17
|
+
if (!bridge) return 0;
|
|
18
|
+
try {
|
|
19
|
+
const res = bridge.listJobs(sessionId ? { sessionId } : void 0);
|
|
20
|
+
return res.jobs.filter((j) => j.enabled || j.state === "running").length;
|
|
21
|
+
} catch {
|
|
22
|
+
return 0;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export {
|
|
27
|
+
registerCronPanelBridge,
|
|
28
|
+
currentCronPanelBridge,
|
|
29
|
+
cronActiveCount
|
|
30
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
getSessionsDir
|
|
4
|
-
} from "./chunk-CBDQJMUI.js";
|
|
5
2
|
import {
|
|
6
3
|
claimOwnership,
|
|
7
4
|
pidDefinitelyDead,
|
|
8
5
|
readOwnership
|
|
9
6
|
} from "./chunk-ZPJ3BNQB.js";
|
|
7
|
+
import {
|
|
8
|
+
getSessionsDir
|
|
9
|
+
} from "./chunk-CBDQJMUI.js";
|
|
10
10
|
|
|
11
11
|
// src/app/session-ownership.ts
|
|
12
12
|
import * as fs from "node:fs";
|
|
@@ -94,6 +94,7 @@ function liveSessionHolder(sessionId) {
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
export {
|
|
97
|
+
sessionOwnerAlive,
|
|
97
98
|
claimSessionOwnership,
|
|
98
99
|
SessionOwnershipLifecycle,
|
|
99
100
|
liveSessionHolder
|