@cydm/pie 2.6.12 → 2.7.1

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 (35) hide show
  1. package/README.md +85 -3
  2. package/dist/builtin/extensions/ask-user/index.js +3 -3
  3. package/dist/builtin/extensions/plan-mode/index.js +130 -21
  4. package/dist/builtin/extensions/subagent/index.js +15 -6
  5. package/dist/builtin/extensions/todo/index.js +3 -3
  6. package/dist/builtin/skills/computer-use-axi/SKILL.md +172 -0
  7. package/dist/builtin/{extensions/computer-use/index.js → skills/computer-use-axi/computer-use-axi-broker.js} +2122 -708
  8. package/dist/builtin/skills/computer-use-axi/computer-use-axi-cli.js +37 -0
  9. package/dist/builtin/skills/computer-use-axi/computer-use-axi-runtime.js +728 -0
  10. package/dist/builtin/skills/computer-use-axi/package.json +11 -0
  11. package/dist/chunks/{chunk-PPEWRUMQ.js → chunk-M44CWVDZ.js} +1249 -752
  12. package/dist/chunks/{chunk-HHNOENEH.js → chunk-NJFPBU36.js} +14 -1
  13. package/dist/chunks/{chunk-AAEBH6KX.js → chunk-W74NRSRV.js} +239 -231
  14. package/dist/chunks/{chunk-7B4IIBVS.js → chunk-XUROMYTT.js} +1747 -14
  15. package/dist/chunks/{src-OWQI5M6W.js → src-C4KA4G75.js} +2 -2
  16. package/dist/chunks/{test-stream-Y7WXELAJ.js → test-stream-A5ZELKNG.js} +1 -1
  17. package/dist/cli.js +863 -305
  18. package/models.schema.json +57 -0
  19. package/package.json +3 -3
  20. package/dist/builtin/extensions/computer-use/package.json +0 -14
  21. package/dist/builtin/extensions/computer-use/scripts/build-native.mjs +0 -278
  22. package/dist/builtin/extensions/computer-use/scripts/test-native-retention.mjs +0 -204
  23. package/dist/chunks/chunk-5353DEEC.js +0 -130
  24. package/dist/chunks/webapi-MBCKO7ZV.js +0 -2481
  25. package/dist/code-intel-worker.cjs +0 -211227
  26. /package/dist/builtin/{extensions/computer-use → skills/computer-use-axi}/prebuilt/linux/arm64/linux-bridge +0 -0
  27. /package/dist/builtin/{extensions/computer-use → skills/computer-use-axi}/prebuilt/linux/x64/linux-bridge +0 -0
  28. /package/dist/builtin/{extensions/computer-use → skills/computer-use-axi}/prebuilt/macos/arm64/pie-computer-use +0 -0
  29. /package/dist/builtin/{extensions/computer-use → skills/computer-use-axi}/prebuilt/macos/universal/pie-computer-use.app/Contents/Info.plist +0 -0
  30. /package/dist/builtin/{extensions/computer-use → skills/computer-use-axi}/prebuilt/macos/universal/pie-computer-use.app/Contents/MacOS/pie-computer-use +0 -0
  31. /package/dist/builtin/{extensions/computer-use → skills/computer-use-axi}/prebuilt/macos/universal/pie-computer-use.app/Contents/_CodeSignature/CodeResources +0 -0
  32. /package/dist/builtin/{extensions/computer-use → skills/computer-use-axi}/prebuilt/macos/x64/pie-computer-use +0 -0
  33. /package/dist/builtin/{extensions/computer-use → skills/computer-use-axi}/prebuilt/windows/windows-bridge.exe +0 -0
  34. /package/dist/builtin/{extensions/computer-use → skills/computer-use-axi}/scripts/helper-path.mjs +0 -0
  35. /package/dist/builtin/{extensions/computer-use → skills/computer-use-axi}/scripts/setup-helper.mjs +0 -0
@@ -1,9 +1,10 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  EventStream,
4
+ disposeModelTransports,
4
5
  streamSimple,
5
6
  validateToolArguments
6
- } from "./chunk-7B4IIBVS.js";
7
+ } from "./chunk-XUROMYTT.js";
7
8
 
8
9
  // ../../packages/agent-core/src/agent-loop.ts
9
10
  function createLoopErrorMessage(error, config, signal) {
@@ -457,6 +458,7 @@ var Agent = class {
457
458
  followUpMode;
458
459
  streamFn;
459
460
  _sessionId;
461
+ transportOwner = {};
460
462
  _apiKey;
461
463
  getApiKey;
462
464
  runningPrompt;
@@ -504,12 +506,14 @@ var Agent = class {
504
506
  return this._sessionId;
505
507
  }
506
508
  set sessionId(value) {
509
+ if (this._sessionId !== value) this.releaseTransport();
507
510
  this._sessionId = value;
508
511
  }
509
512
  get apiKey() {
510
513
  return this._apiKey;
511
514
  }
512
515
  set apiKey(value) {
516
+ if (this._apiKey !== value) this.releaseTransport();
513
517
  this._apiKey = value;
514
518
  }
515
519
  get thinkingBudgets() {
@@ -542,6 +546,7 @@ var Agent = class {
542
546
  this._state.systemPrompt = v;
543
547
  }
544
548
  setModel(m) {
549
+ this.releaseTransport();
545
550
  this._state.model = m;
546
551
  }
547
552
  setThinkingLevel(l) {
@@ -554,12 +559,14 @@ var Agent = class {
554
559
  this.hooks = hooks;
555
560
  }
556
561
  replaceMessages(ms) {
562
+ this.releaseTransport();
557
563
  this._state.messages = ms.slice();
558
564
  }
559
565
  appendMessage(m) {
560
566
  this._state.messages = [...this._state.messages, m];
561
567
  }
562
568
  clearMessages() {
569
+ this.releaseTransport();
563
570
  this._state.messages = [];
564
571
  }
565
572
  steer(m) {
@@ -619,13 +626,18 @@ var Agent = class {
619
626
  this.followUpQueue = [];
620
627
  return followUp;
621
628
  }
629
+ releaseTransport() {
630
+ disposeModelTransports(this.transportOwner);
631
+ }
622
632
  abort() {
633
+ this.releaseTransport();
623
634
  this.abortController?.abort();
624
635
  }
625
636
  waitForIdle() {
626
637
  return this.runningPrompt ?? Promise.resolve();
627
638
  }
628
639
  reset() {
640
+ this.releaseTransport();
629
641
  this._state.messages = [];
630
642
  this._state.isStreaming = false;
631
643
  this._state.streamMessage = null;
@@ -771,6 +783,7 @@ var Agent = class {
771
783
  reasoning,
772
784
  apiKey: this._apiKey,
773
785
  sessionId: this._sessionId,
786
+ transportOwner: this.transportOwner,
774
787
  thinkingBudgets: this._thinkingBudgets,
775
788
  maxRetryDelayMs: this._maxRetryDelayMs,
776
789
  convertToLlm: this.convertToLlm,