@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.
- package/CHANGELOG.md +6 -1
- package/dist/bundled-resources/skills/tool-call-repair/SKILL.md +22 -18
- package/dist/cli/list-models.d.ts.map +1 -1
- package/dist/cli/list-models.js +5 -0
- package/dist/cli/list-models.js.map +1 -1
- package/dist/core/agent-session.d.ts +28 -1
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +215 -19
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/model-registry.d.ts +1 -0
- package/dist/core/model-registry.d.ts.map +1 -1
- package/dist/core/model-registry.js +6 -0
- package/dist/core/model-registry.js.map +1 -1
- package/dist/core/models/adaptation-store.d.ts +18 -1
- package/dist/core/models/adaptation-store.d.ts.map +1 -1
- package/dist/core/models/adaptation-store.js +31 -3
- package/dist/core/models/adaptation-store.js.map +1 -1
- package/dist/core/slash-commands.d.ts.map +1 -1
- package/dist/core/slash-commands.js +5 -0
- package/dist/core/slash-commands.js.map +1 -1
- package/dist/core/tool-repair-health.d.ts.map +1 -1
- package/dist/core/tool-repair-health.js +21 -1
- package/dist/core/tool-repair-health.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +24 -0
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-mode.js +8 -0
- package/dist/modes/rpc/rpc-mode.js.map +1 -1
- package/dist/modes/rpc/rpc-types.d.ts +23 -1
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-types.js.map +1 -1
- package/docs/models.md +5 -1
- package/docs/rpc.md +39 -0
- package/docs/settings.md +4 -2
- package/docs/tool-repair.md +13 -5
- package/docs/usage.md +1 -0
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/npm-shrinkwrap.json +12 -12
- 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();
|