@caupulican/pi-adaptative 0.81.12 → 0.81.13

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 (46) hide show
  1. package/CHANGELOG.md +6 -1
  2. package/dist/bundled-resources/skills/tool-call-repair/SKILL.md +22 -18
  3. package/dist/cli/list-models.d.ts.map +1 -1
  4. package/dist/cli/list-models.js +5 -0
  5. package/dist/cli/list-models.js.map +1 -1
  6. package/dist/core/agent-session.d.ts +28 -1
  7. package/dist/core/agent-session.d.ts.map +1 -1
  8. package/dist/core/agent-session.js +215 -19
  9. package/dist/core/agent-session.js.map +1 -1
  10. package/dist/core/model-registry.d.ts +1 -0
  11. package/dist/core/model-registry.d.ts.map +1 -1
  12. package/dist/core/model-registry.js +6 -0
  13. package/dist/core/model-registry.js.map +1 -1
  14. package/dist/core/models/adaptation-store.d.ts +18 -1
  15. package/dist/core/models/adaptation-store.d.ts.map +1 -1
  16. package/dist/core/models/adaptation-store.js +31 -3
  17. package/dist/core/models/adaptation-store.js.map +1 -1
  18. package/dist/core/slash-commands.d.ts.map +1 -1
  19. package/dist/core/slash-commands.js +5 -0
  20. package/dist/core/slash-commands.js.map +1 -1
  21. package/dist/core/tool-repair-health.d.ts.map +1 -1
  22. package/dist/core/tool-repair-health.js +21 -1
  23. package/dist/core/tool-repair-health.js.map +1 -1
  24. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  25. package/dist/modes/interactive/interactive-mode.js +24 -0
  26. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  27. package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
  28. package/dist/modes/rpc/rpc-mode.js +8 -0
  29. package/dist/modes/rpc/rpc-mode.js.map +1 -1
  30. package/dist/modes/rpc/rpc-types.d.ts +23 -1
  31. package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
  32. package/dist/modes/rpc/rpc-types.js.map +1 -1
  33. package/docs/models.md +5 -1
  34. package/docs/rpc.md +39 -0
  35. package/docs/settings.md +4 -2
  36. package/docs/tool-repair.md +13 -5
  37. package/docs/usage.md +1 -0
  38. package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
  39. package/examples/extensions/custom-provider-anthropic/package.json +1 -1
  40. package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  41. package/examples/extensions/sandbox/package-lock.json +2 -2
  42. package/examples/extensions/sandbox/package.json +1 -1
  43. package/examples/extensions/with-deps/package-lock.json +2 -2
  44. package/examples/extensions/with-deps/package.json +1 -1
  45. package/npm-shrinkwrap.json +12 -12
  46. package/package.json +4 -4
@@ -1332,6 +1332,19 @@ export class InteractiveMode {
1332
1332
  this.editor.setText("");
1333
1333
  return;
1334
1334
  }
1335
+ if (text === "/toolprobe" || text.startsWith("/toolprobe ")) {
1336
+ const target = text.slice("/toolprobe".length).trim();
1337
+ this.editor.setText("");
1338
+ this.showStatus("Running tool probe...");
1339
+ try {
1340
+ const report = await this.session.probeToolCalling(target || undefined);
1341
+ this.showStatus(report.table);
1342
+ }
1343
+ catch (error) {
1344
+ this.showWarning(error instanceof Error ? error.message : String(error));
1345
+ }
1346
+ return;
1347
+ }
1335
1348
  if (text.startsWith("/toolrule-remove")) {
1336
1349
  const [model, mode] = text.slice("/toolrule-remove".length).trim().split(/\s+/, 2);
1337
1350
  const message = model && mode
@@ -1343,6 +1356,17 @@ export class InteractiveMode {
1343
1356
  this.editor.setText("");
1344
1357
  return;
1345
1358
  }
1359
+ if (text.startsWith("/toolprotocol-reset")) {
1360
+ const model = text.slice("/toolprotocol-reset".length).trim();
1361
+ const message = model
1362
+ ? this.session.resetToolProtocolCalibration(model)
1363
+ ? `Reset text tool protocol calibration for ${model}.`
1364
+ : `No text tool protocol calibration found for ${model}.`
1365
+ : "Usage: /toolprotocol-reset <provider/model>";
1366
+ this.showStatus(message);
1367
+ this.editor.setText("");
1368
+ return;
1369
+ }
1346
1370
  if (text === "/scoped-models") {
1347
1371
  this.editor.setText("");
1348
1372
  await this.showModelsSelector();