@myk-org/pi-sidecar 1.0.0 → 1.0.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 (2) hide show
  1. package/dist/sessions.js +7 -1
  2. package/package.json +1 -1
package/dist/sessions.js CHANGED
@@ -103,7 +103,13 @@ export class SessionStore {
103
103
  model = getModel(options.provider, options.model) || undefined;
104
104
  }
105
105
  if (!model) {
106
- throw new Error(`Model '${options.model}' not found for provider '${options.provider}'. Use GET /models to list available models.`);
106
+ // Check acpx models (discovered at runtime, not in the Pi SDK registry)
107
+ const isAcpxModel = this.acpxModels.some(m => m.id === options.model);
108
+ if (!isAcpxModel) {
109
+ throw new Error(`Model '${options.model}' not found for provider '${options.provider}'. Use GET /models to list available models.`);
110
+ }
111
+ // acpx model found — proceed without a registry model object
112
+ // (createAgentSession will resolve it via the acpx extension)
107
113
  }
108
114
  // Build extension paths (only include existing files)
109
115
  const extensionPaths = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myk-org/pi-sidecar",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Standalone HTTP sidecar wrapping the Pi coding agent SDK",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {