@cortexkit/magic-context 0.49.54 → 0.49.55

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 (2) hide show
  1. package/dist/index.js +2 -12
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -16132,18 +16132,8 @@ function parseModelListOutput(output) {
16132
16132
  return [...models];
16133
16133
  }
16134
16134
  function getAvailableModels(piPath) {
16135
- const outputs = [
16136
- runPiCommand(piPath, ["--list-models"]),
16137
- runPiCommand(piPath, ["models", "list"])
16138
- ];
16139
- for (const output of outputs) {
16140
- if (!output)
16141
- continue;
16142
- const models = parseModelListOutput(output);
16143
- if (models.length > 0)
16144
- return models;
16145
- }
16146
- return [];
16135
+ const output = runPiCommand(piPath, ["--list-models"]);
16136
+ return output ? parseModelListOutput(output) : [];
16147
16137
  }
16148
16138
  var PI_PACKAGE_SOURCE = "npm:@cortexkit/pi-magic-context", PROVIDER_TOKEN, MODEL_TOKEN, SIZE_TOKEN, CAPABILITY_TOKEN;
16149
16139
  var init_pi_helpers = __esm(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cortexkit/magic-context",
3
- "version": "0.49.54",
3
+ "version": "0.49.55",
4
4
  "description": "Unified CLI for Magic Context — setup, doctor, and migration across OpenCode, Pi, and OMP",
5
5
  "keywords": [
6
6
  "opencode",