@cydm/pie 4.3.5 → 4.3.7
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/dist/builtin/extensions/ask-user/index.js +4 -4
- package/dist/builtin/extensions/cron/index.js +7 -1
- package/dist/builtin/extensions/im-forward/index.js +101 -83
- package/dist/builtin/extensions/mcp-adapter/index.js +7 -1
- package/dist/builtin/extensions/memory/index.js +5 -5
- package/dist/builtin/extensions/pie-ipc/index.js +1 -1
- package/dist/builtin/extensions/pie-proc/index.js +3 -2
- package/dist/builtin/extensions/plan-mode/index.js +4 -4
- package/dist/builtin/extensions/subagent/index.js +5 -5
- package/dist/builtin/extensions/todo/index.js +4 -4
- package/dist/chunks/{chunk-J2LGVYH2.js → chunk-2SAFRLFJ.js} +28 -13
- package/dist/chunks/{chunk-JQRZLVPY.js → chunk-6JEYRAQM.js} +1898 -1692
- package/dist/chunks/{chunk-NCP264ZE.js → chunk-B4N5LJMD.js} +1 -1
- package/dist/chunks/{chunk-PFXSA2LK.js → chunk-BJ4XN5VX.js} +5 -5
- package/dist/chunks/{chunk-H5G55G3R.js → chunk-N3BWFAMZ.js} +11 -1
- package/dist/chunks/{chunk-QX6WS73C.js → chunk-VHKMWOG3.js} +1 -1
- package/dist/chunks/{chunk-PC6HUZAD.js → chunk-WZLO5V2X.js} +3 -3
- package/dist/chunks/{chunk-BK36Y35W.js → chunk-XMOWWL4B.js} +2 -2
- package/dist/chunks/{concierge-cli-MCHXTFBA.js → manager-cli-QNMCCIFG.js} +322 -44
- package/dist/chunks/{model-registry-YA6U366L.js → model-registry-NKE3BRSZ.js} +2 -2
- package/dist/chunks/{src-ODLT57PQ.js → src-46R5ZFOU.js} +2 -2
- package/dist/chunks/{src-VPMIQGEW.js → src-4EQ7PBEI.js} +3 -3
- package/dist/chunks/{src-XSLD2IQ2.js → src-BHIH4VLE.js} +1 -1
- package/dist/chunks/{src-AQ4H43UM.js → src-UVULNQOO.js} +4 -4
- package/dist/chunks/{test-stream-GIUD5JWS.js → test-stream-FC6ZRENI.js} +1 -1
- package/dist/cli.js +347 -208
- package/package.json +3 -3
|
@@ -171,11 +171,11 @@ async function runDistillWorkerMain(memoryRoot, date, noExit = false) {
|
|
|
171
171
|
let result;
|
|
172
172
|
let ledger;
|
|
173
173
|
try {
|
|
174
|
-
const { ModelRegistry } = await import("./model-registry-
|
|
174
|
+
const { ModelRegistry } = await import("./model-registry-NKE3BRSZ.js");
|
|
175
175
|
const { AuthStorage } = await import("./auth-storage-3EGM3VTK.js");
|
|
176
176
|
const { getSessionsDir } = await import("./config-74AUVDLT.js");
|
|
177
|
-
const { FileSessionStore } = await import("./src-
|
|
178
|
-
const { MemoryStore, runDistillation } = await import("./src-
|
|
177
|
+
const { FileSessionStore } = await import("./src-4EQ7PBEI.js");
|
|
178
|
+
const { MemoryStore, runDistillation } = await import("./src-UVULNQOO.js");
|
|
179
179
|
const store = new MemoryStore(memoryRoot);
|
|
180
180
|
ledger = store;
|
|
181
181
|
const registry = new ModelRegistry(AuthStorage.create());
|
|
@@ -190,7 +190,7 @@ async function runDistillWorkerMain(memoryRoot, date, noExit = false) {
|
|
|
190
190
|
if (!resolved.model || !resolved.apiKey) {
|
|
191
191
|
throw new Error(`no complete model/key pair for class ${modelClass}${resolved.fallbackReason ? `: ${resolved.fallbackReason}` : ""}`);
|
|
192
192
|
}
|
|
193
|
-
const { completeSimple } = await import("./src-
|
|
193
|
+
const { completeSimple } = await import("./src-BHIH4VLE.js");
|
|
194
194
|
const message = await withModelTimeout(
|
|
195
195
|
completeSimple(
|
|
196
196
|
resolved.model,
|
|
@@ -252,7 +252,7 @@ async function runDistillAuto(memoryRoot, days = 7) {
|
|
|
252
252
|
} catch {
|
|
253
253
|
}
|
|
254
254
|
};
|
|
255
|
-
const { MemoryStore, todayKey } = await import("./src-
|
|
255
|
+
const { MemoryStore, todayKey } = await import("./src-UVULNQOO.js");
|
|
256
256
|
const store = new MemoryStore(memoryRoot);
|
|
257
257
|
const today = todayKey(Date.now());
|
|
258
258
|
const dates = [];
|
|
@@ -611,7 +611,7 @@ function lockAlive(info, now = Date.now()) {
|
|
|
611
611
|
if (!info) return false;
|
|
612
612
|
return pidAlive(info.pid) && now - info.heartbeatAt < LOCK_STALE_MS;
|
|
613
613
|
}
|
|
614
|
-
function tryClaimConsumer(binding, holder, onLost) {
|
|
614
|
+
function tryClaimConsumer(binding, holder, onLost, shouldYield) {
|
|
615
615
|
const target = lockPath(binding);
|
|
616
616
|
const mine = JSON.stringify({ pid: process.pid, holder, heartbeatAt: Date.now(), binding });
|
|
617
617
|
const takeOver = () => {
|
|
@@ -653,6 +653,16 @@ function tryClaimConsumer(binding, holder, onLost) {
|
|
|
653
653
|
onLost?.();
|
|
654
654
|
return;
|
|
655
655
|
}
|
|
656
|
+
if (shouldYield?.() === true) {
|
|
657
|
+
released = true;
|
|
658
|
+
clearInterval(heartbeatTimer);
|
|
659
|
+
try {
|
|
660
|
+
if (readLock(binding)?.pid === process.pid) fs2.rmSync(target, { force: true });
|
|
661
|
+
} catch {
|
|
662
|
+
}
|
|
663
|
+
onLost?.();
|
|
664
|
+
return;
|
|
665
|
+
}
|
|
656
666
|
fs2.writeFileSync(target, `${JSON.stringify({ pid: process.pid, holder, heartbeatAt: Date.now(), binding })}
|
|
657
667
|
`);
|
|
658
668
|
} catch {
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
parseEntryIdSeq,
|
|
14
14
|
readAncestryPage,
|
|
15
15
|
requestInteraction
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XMOWWL4B.js";
|
|
17
17
|
import {
|
|
18
18
|
Agent,
|
|
19
19
|
getToolCallerIdentity
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-B4N5LJMD.js";
|
|
21
21
|
import {
|
|
22
22
|
AssistantMessageEventStream,
|
|
23
23
|
completeSimple,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
getFileSystem,
|
|
26
26
|
hashText,
|
|
27
27
|
streamSimple
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-6JEYRAQM.js";
|
|
29
29
|
import {
|
|
30
30
|
Type
|
|
31
31
|
} from "./chunk-XXGYUYXI.js";
|
|
@@ -2,14 +2,14 @@ import { createRequire as __createRequire } from "node:module"; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
createAgentOperationError,
|
|
4
4
|
getAgentFailureMetadata
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-B4N5LJMD.js";
|
|
6
6
|
import {
|
|
7
7
|
FileSystemGateway,
|
|
8
8
|
detectPlatform,
|
|
9
9
|
getFileSystemGateway,
|
|
10
10
|
getPlatformConfig,
|
|
11
11
|
streamSimple
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6JEYRAQM.js";
|
|
13
13
|
import {
|
|
14
14
|
Type
|
|
15
15
|
} from "./chunk-XXGYUYXI.js";
|