@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.
Files changed (27) hide show
  1. package/dist/builtin/extensions/ask-user/index.js +4 -4
  2. package/dist/builtin/extensions/cron/index.js +7 -1
  3. package/dist/builtin/extensions/im-forward/index.js +101 -83
  4. package/dist/builtin/extensions/mcp-adapter/index.js +7 -1
  5. package/dist/builtin/extensions/memory/index.js +5 -5
  6. package/dist/builtin/extensions/pie-ipc/index.js +1 -1
  7. package/dist/builtin/extensions/pie-proc/index.js +3 -2
  8. package/dist/builtin/extensions/plan-mode/index.js +4 -4
  9. package/dist/builtin/extensions/subagent/index.js +5 -5
  10. package/dist/builtin/extensions/todo/index.js +4 -4
  11. package/dist/chunks/{chunk-J2LGVYH2.js → chunk-2SAFRLFJ.js} +28 -13
  12. package/dist/chunks/{chunk-JQRZLVPY.js → chunk-6JEYRAQM.js} +1898 -1692
  13. package/dist/chunks/{chunk-NCP264ZE.js → chunk-B4N5LJMD.js} +1 -1
  14. package/dist/chunks/{chunk-PFXSA2LK.js → chunk-BJ4XN5VX.js} +5 -5
  15. package/dist/chunks/{chunk-H5G55G3R.js → chunk-N3BWFAMZ.js} +11 -1
  16. package/dist/chunks/{chunk-QX6WS73C.js → chunk-VHKMWOG3.js} +1 -1
  17. package/dist/chunks/{chunk-PC6HUZAD.js → chunk-WZLO5V2X.js} +3 -3
  18. package/dist/chunks/{chunk-BK36Y35W.js → chunk-XMOWWL4B.js} +2 -2
  19. package/dist/chunks/{concierge-cli-MCHXTFBA.js → manager-cli-QNMCCIFG.js} +322 -44
  20. package/dist/chunks/{model-registry-YA6U366L.js → model-registry-NKE3BRSZ.js} +2 -2
  21. package/dist/chunks/{src-ODLT57PQ.js → src-46R5ZFOU.js} +2 -2
  22. package/dist/chunks/{src-VPMIQGEW.js → src-4EQ7PBEI.js} +3 -3
  23. package/dist/chunks/{src-XSLD2IQ2.js → src-BHIH4VLE.js} +1 -1
  24. package/dist/chunks/{src-AQ4H43UM.js → src-UVULNQOO.js} +4 -4
  25. package/dist/chunks/{test-stream-GIUD5JWS.js → test-stream-FC6ZRENI.js} +1 -1
  26. package/dist/cli.js +347 -208
  27. package/package.json +3 -3
@@ -4,7 +4,7 @@ import {
4
4
  disposeModelTransports,
5
5
  streamSimple,
6
6
  validateToolArguments
7
- } from "./chunk-JQRZLVPY.js";
7
+ } from "./chunk-6JEYRAQM.js";
8
8
 
9
9
  // ../../packages/agent-core/src/failure.ts
10
10
  function getAgentFailureMetadata(error) {
@@ -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-YA6U366L.js");
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-VPMIQGEW.js");
178
- const { MemoryStore, runDistillation } = await import("./src-AQ4H43UM.js");
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-XSLD2IQ2.js");
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-AQ4H43UM.js");
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 {
@@ -7,7 +7,7 @@ import {
7
7
  modelSupportsToolPurpose,
8
8
  requiredCapabilityForToolPurpose,
9
9
  sortToolModelCandidatesByCapability
10
- } from "./chunk-JQRZLVPY.js";
10
+ } from "./chunk-6JEYRAQM.js";
11
11
 
12
12
  // src/core/model-registry.ts
13
13
  import * as fs from "fs";
@@ -13,11 +13,11 @@ import {
13
13
  parseEntryIdSeq,
14
14
  readAncestryPage,
15
15
  requestInteraction
16
- } from "./chunk-BK36Y35W.js";
16
+ } from "./chunk-XMOWWL4B.js";
17
17
  import {
18
18
  Agent,
19
19
  getToolCallerIdentity
20
- } from "./chunk-NCP264ZE.js";
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-JQRZLVPY.js";
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-NCP264ZE.js";
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-JQRZLVPY.js";
12
+ } from "./chunk-6JEYRAQM.js";
13
13
  import {
14
14
  Type
15
15
  } from "./chunk-XXGYUYXI.js";