@caupulican/pi-adaptative 0.80.98 → 0.80.100

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 (50) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/core/agent-session.d.ts +27 -3
  3. package/dist/core/agent-session.d.ts.map +1 -1
  4. package/dist/core/agent-session.js +200 -11
  5. package/dist/core/agent-session.js.map +1 -1
  6. package/dist/core/autonomy/foreground-envelope.d.ts +22 -0
  7. package/dist/core/autonomy/foreground-envelope.d.ts.map +1 -0
  8. package/dist/core/autonomy/foreground-envelope.js +65 -0
  9. package/dist/core/autonomy/foreground-envelope.js.map +1 -0
  10. package/dist/core/autonomy/status.d.ts +11 -0
  11. package/dist/core/autonomy/status.d.ts.map +1 -1
  12. package/dist/core/autonomy/status.js.map +1 -1
  13. package/dist/core/delegation/worker-actions.d.ts +50 -0
  14. package/dist/core/delegation/worker-actions.d.ts.map +1 -0
  15. package/dist/core/delegation/worker-actions.js +70 -0
  16. package/dist/core/delegation/worker-actions.js.map +1 -0
  17. package/dist/core/delegation/worker-runner.d.ts +9 -0
  18. package/dist/core/delegation/worker-runner.d.ts.map +1 -1
  19. package/dist/core/delegation/worker-runner.js +38 -4
  20. package/dist/core/delegation/worker-runner.js.map +1 -1
  21. package/dist/core/model-capability.d.ts +19 -0
  22. package/dist/core/model-capability.d.ts.map +1 -1
  23. package/dist/core/model-capability.js +19 -0
  24. package/dist/core/model-capability.js.map +1 -1
  25. package/dist/core/models/default-model-suggestions.d.ts +34 -0
  26. package/dist/core/models/default-model-suggestions.d.ts.map +1 -0
  27. package/dist/core/models/default-model-suggestions.js +58 -0
  28. package/dist/core/models/default-model-suggestions.js.map +1 -0
  29. package/dist/core/settings-manager.d.ts +3 -0
  30. package/dist/core/settings-manager.d.ts.map +1 -1
  31. package/dist/core/settings-manager.js +5 -0
  32. package/dist/core/settings-manager.js.map +1 -1
  33. package/dist/core/slash-commands.d.ts.map +1 -1
  34. package/dist/core/slash-commands.js +1 -1
  35. package/dist/core/slash-commands.js.map +1 -1
  36. package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
  37. package/dist/modes/interactive/components/settings-selector.js +20 -0
  38. package/dist/modes/interactive/components/settings-selector.js.map +1 -1
  39. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  40. package/dist/modes/interactive/interactive-mode.js +10 -1
  41. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  42. package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
  43. package/examples/extensions/custom-provider-anthropic/package.json +1 -1
  44. package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  45. package/examples/extensions/sandbox/package-lock.json +2 -2
  46. package/examples/extensions/sandbox/package.json +1 -1
  47. package/examples/extensions/with-deps/package-lock.json +2 -2
  48. package/examples/extensions/with-deps/package.json +1 -1
  49. package/npm-shrinkwrap.json +12 -12
  50. package/package.json +4 -4
@@ -22,6 +22,7 @@ import { configureHttpDispatcher, formatHttpIdleTimeoutMs } from "../../core/htt
22
22
  import { KeybindingsManager } from "../../core/keybindings.js";
23
23
  import { createCompactionSummaryMessage } from "../../core/messages.js";
24
24
  import { cliProviderAliases, defaultModelPerProvider, findExactModelReferenceMatch, resolveCliModel, resolveModelScope, } from "../../core/model-resolver.js";
25
+ import { formatModelSuggestions } from "../../core/models/default-model-suggestions.js";
25
26
  import { FitnessStore } from "../../core/models/fitness-store.js";
26
27
  import { registerLocalModel, unregisterLocalModel } from "../../core/models/local-registration.js";
27
28
  import { OllamaRuntime } from "../../core/models/local-runtime.js";
@@ -5151,6 +5152,11 @@ export class InteractiveMode {
5151
5152
  async handleModelsCommand(argsText) {
5152
5153
  const [action = "list", ...rest] = argsText.split(/\s+/).filter(Boolean);
5153
5154
  try {
5155
+ if (action === "suggest" || action === "suggestions") {
5156
+ for (const line of formatModelSuggestions())
5157
+ this.showStatus(line);
5158
+ return;
5159
+ }
5154
5160
  if (action === "stop") {
5155
5161
  const stopped = this.localRuntime.stop();
5156
5162
  this.showStatus(stopped.stopped
@@ -5162,6 +5168,7 @@ export class InteractiveMode {
5162
5168
  const rawRef = rest.join(" ");
5163
5169
  if (!rawRef) {
5164
5170
  this.showStatus("Usage: /models add <ollama-tag | hf.co/org/repo[:quant] | huggingface URL | pasted install command>");
5171
+ this.showStatus("Or start from a validated suggestion: /models suggest");
5165
5172
  return;
5166
5173
  }
5167
5174
  const source = normalizeModelSource(rawRef);
@@ -5224,7 +5231,9 @@ export class InteractiveMode {
5224
5231
  const fitness = FitnessStore.forAgentDir(getAgentDir()).getForHost();
5225
5232
  const lines = [
5226
5233
  `Local models (${status.managedByPi ? `pi-managed server, storage: ${status.ownedModelsDir}` : "system server — storage owned by the system daemon"}):`,
5227
- ...(models.length === 0 ? [" (none installed — /models add <ref>)"] : []),
5234
+ ...(models.length === 0
5235
+ ? [" (none installed — /models add <ref>, or /models suggest for a validated roster)"]
5236
+ : []),
5228
5237
  ...models.map((model) => {
5229
5238
  const report = fitness.find((entry) => entry.model === `ollama/${model.name}`);
5230
5239
  const gb = (model.sizeBytes / 1e9).toFixed(2);