@karmaniverous/jeeves 0.6.0-4 → 0.6.0-5

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.
@@ -140,14 +140,14 @@ const DEFAULT_PORTS = {
140
140
  * Core library version, inlined at build time.
141
141
  *
142
142
  * @remarks
143
- * The `0.6.0-3` placeholder is replaced by
143
+ * The `0.6.0-4` placeholder is replaced by
144
144
  * `@rollup/plugin-replace` during the build with the actual version
145
145
  * from `package.json`. This ensures the correct version survives
146
146
  * when consumers bundle core into their own dist (where runtime
147
147
  * `import.meta.url`-based resolution would find the wrong package.json).
148
148
  */
149
149
  /** The core library version from package.json (inlined at build time). */
150
- const CORE_VERSION = '0.6.0-3';
150
+ const CORE_VERSION = '0.6.0-4';
151
151
 
152
152
  /**
153
153
  * Shared internal utility functions.
package/dist/index.d.ts CHANGED
@@ -1174,11 +1174,13 @@ type PluginToolsetOptions = z.infer<typeof pluginToolsetOptionsSchema>;
1174
1174
  * Create the standard plugin tool set from a component descriptor.
1175
1175
  *
1176
1176
  * @param descriptor - The component descriptor.
1177
- * @param options - Tool options; pass the plugin's `apiUrl` (string or lazy
1178
- * resolver). Omitted, the tools call `http://127.0.0.1:<defaultPort>`.
1177
+ * @param options - Tool options (required, so each plugin consciously
1178
+ * chooses its service URL). Pass the plugin's `apiUrl` (string or lazy
1179
+ * resolver); with `apiUrl` unset, the tools call
1180
+ * `http://127.0.0.1:<defaultPort>`.
1179
1181
  * @returns Array of tool descriptors to register.
1180
1182
  */
1181
- declare function createPluginToolset(descriptor: JeevesComponentDescriptor, options?: PluginToolsetOptions): ToolDescriptor[];
1183
+ declare function createPluginToolset(descriptor: JeevesComponentDescriptor, options: PluginToolsetOptions): ToolDescriptor[];
1182
1184
 
1183
1185
  /**
1184
1186
  * Resolve the package root directory from a module's `import.meta.url`.
package/dist/index.js CHANGED
@@ -142,14 +142,14 @@ const DEFAULT_PORTS = {
142
142
  * Core library version, inlined at build time.
143
143
  *
144
144
  * @remarks
145
- * The `0.6.0-3` placeholder is replaced by
145
+ * The `0.6.0-4` placeholder is replaced by
146
146
  * `@rollup/plugin-replace` during the build with the actual version
147
147
  * from `package.json`. This ensures the correct version survives
148
148
  * when consumers bundle core into their own dist (where runtime
149
149
  * `import.meta.url`-based resolution would find the wrong package.json).
150
150
  */
151
151
  /** The core library version from package.json (inlined at build time). */
152
- const CORE_VERSION = '0.6.0-3';
152
+ const CORE_VERSION = '0.6.0-4';
153
153
 
154
154
  /**
155
155
  * Workspace and config root initialization.
@@ -2475,11 +2475,13 @@ const PROBE_TIMEOUT_MS = 5000;
2475
2475
  * Create the standard plugin tool set from a component descriptor.
2476
2476
  *
2477
2477
  * @param descriptor - The component descriptor.
2478
- * @param options - Tool options; pass the plugin's `apiUrl` (string or lazy
2479
- * resolver). Omitted, the tools call `http://127.0.0.1:<defaultPort>`.
2478
+ * @param options - Tool options (required, so each plugin consciously
2479
+ * chooses its service URL). Pass the plugin's `apiUrl` (string or lazy
2480
+ * resolver); with `apiUrl` unset, the tools call
2481
+ * `http://127.0.0.1:<defaultPort>`.
2480
2482
  * @returns Array of tool descriptors to register.
2481
2483
  */
2482
- function createPluginToolset(descriptor, options = {}) {
2484
+ function createPluginToolset(descriptor, options) {
2483
2485
  const { name, defaultPort } = descriptor;
2484
2486
  const { apiUrl } = pluginToolsetOptionsSchema.parse(options);
2485
2487
  const resolveBaseUrl = () => resolvePluginApiUrl(apiUrl, defaultPort);
package/package.json CHANGED
@@ -133,7 +133,7 @@
133
133
  },
134
134
  "type": "module",
135
135
  "types": "dist/index.d.ts",
136
- "version": "0.6.0-4",
136
+ "version": "0.6.0-5",
137
137
  "allowScripts": {
138
138
  "lefthook": true
139
139
  }