@robota-sdk/agent-provider-openai 3.0.0-beta.84 → 3.0.0-beta.86

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 CHANGED
@@ -1,5 +1,28 @@
1
1
  # @robota-sdk/agent-provider-openai
2
2
 
3
+ ## 3.0.0-beta.86
4
+
5
+ ### Patch Changes
6
+
7
+ - @robota-sdk/agent-core@3.0.0-beta.86
8
+ - @robota-sdk/agent-provider-openai-compatible@3.0.0-beta.86
9
+
10
+ ## 3.0.0-beta.85
11
+
12
+ ### Patch Changes
13
+
14
+ - 3ab2eca: - External presets accept every permission mode a session does, `auto` included; `auto` used to fail validation.
15
+ - `createDagFramework({ ports: { costMeta } })` wires cost-metadata management; without it cost operations still report that they are unsupported.
16
+ - `startCli()` runs the subagent worker when a subagent starts the embedder's entry script again, as the `robota` executable already did; an embedded CLI used to start a second CLI there.
17
+ - The provider `executor` option docs no longer import a `RemoteExecutor` that does not exist, and `IRemoteExecutorConfig` is marked deprecated: nothing implements a remote executor.
18
+ - Updated dependencies [41cca13]
19
+ - Updated dependencies [ada3841]
20
+ - Updated dependencies [5093a30]
21
+ - Updated dependencies [94b2c87]
22
+ - Updated dependencies [3ab2eca]
23
+ - @robota-sdk/agent-core@3.0.0-beta.85
24
+ - @robota-sdk/agent-provider-openai-compatible@3.0.0-beta.85
25
+
3
26
  ## 3.0.0-beta.84
4
27
 
5
28
  ### Patch Changes
@@ -173,26 +173,18 @@ interface IOpenAIProviderOptions {
173
173
  /**
174
174
  * Optional executor for handling AI requests
175
175
  *
176
- * When provided, the provider will delegate all chat operations to this executor
177
- * instead of making direct API calls. This enables remote execution capabilities.
176
+ * When provided, the provider delegates every chat call to this executor instead of calling the
177
+ * API itself — for example to route calls through your own server. Implement `IExecutor` from
178
+ * `@robota-sdk/agent-core`; `LocalExecutor` is the in-process one.
178
179
  *
179
180
  * @example
180
181
  * ```typescript
181
- * import { LocalExecutor, RemoteExecutor } from '@robota-sdk/agent-core';
182
+ * import { LocalExecutor } from '@robota-sdk/agent-core';
182
183
  *
183
- * // Local execution (registers this provider)
184
- * const localExecutor = new LocalExecutor();
185
- * localExecutor.registerProvider('openai', new OpenAIProvider({ apiKey: 'sk-...' }));
184
+ * const executor = new LocalExecutor();
185
+ * executor.registerProvider('openai', new OpenAIProvider({ apiKey: 'sk-...' }));
186
186
  *
187
- * // Remote execution
188
- * const remoteExecutor = new RemoteExecutor({
189
- * serverUrl: 'https://api.robota.io',
190
- * userApiKey: 'user-token-123'
191
- * });
192
- *
193
- * const provider = new OpenAIProvider({
194
- * executor: remoteExecutor // No direct API key needed
195
- * });
187
+ * const provider = new OpenAIProvider({ executor });
196
188
  * ```
197
189
  */
198
190
  executor?: IExecutor;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/openai/types.ts","../../src/openai/provider.ts","../../src/openai/adapter.ts","../../src/openai/provider-definition.ts"],"mappings":";;;;KAIY;UAEK;EACf;EACA;EACA,SAAS,eAAe;EACxB;;UAGe;EACf;EACA;;UAGe;EACf;EACA;;;;;KAMU,4EAMR,8BACA,+BACA,mCACA,SACA,iBACA,UACA,YACA,2BACA;GACG,cAAc;;;;;UAKJ;;;;GAId,cAAc;;;;EAKf;;;;EAKA;;;;EAKA;;;;;;;EAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BA;;;;EAKA;;;;;;;EAQA,aAAa;;;;;;;EAQb;;;;EAKA,aAAa;;;;;EAMb,YAAY;;;;EAKZ;;;;EAKA;;;;;;;;;;;;;;;;;EAkBA;;;;;;;;EASA,iBAAiB;;;;EAKjB,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BT,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BhB,WAAW;;;;;EAMX,SAAS;;;;;;;;;;;;cC1ME,uBAAuB;WAChB;WACA;mBAED;mBACA;mBACA;mBACA;mBACA;;;;;;;EAQjB,cAAc;EAEF,YAAA,SAAS;EA6BN,KACb,UAAU,qBACV,UAAU,eACT,QAAQ;EAgDK,WACd,UAAU,qBACV,UAAU,eACT,cAAc;UAiCF;;;;;;;;;;EAuCf;;;;;;EASA;UAIQ;UAKA;EAKC,eAAe;UAMhB;;;;;YAcW,qBAAqB;;;;;;;;UAahC;UAYA;EAiCC;EAIA,mBAAmB;EAwBnB;EAIM,WAAW;YAIP,iBAAiB,UAAU;;;;;;;;;;;;cC/UnC;;;;;;;;;SASJ,wBAAwB,UAAU,sBAAsB;;;;;SAqBxD,eAAe,UAAU,sBAAsB,OAAO,KAAK;;;;;SAU3D,eAAe,KAAK,oBAAoB,OAAO,KAAK;;;;SA2EpD,wBACL,UAAU,OAAO,KAAK,8BACtB,wBACC,OAAO,KAAK;;;;cC1HJ;cACA;iBAeG,kCAAkC"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/openai/types.ts","../../src/openai/provider.ts","../../src/openai/adapter.ts","../../src/openai/provider-definition.ts"],"mappings":";;;;KAIY;UAEK;EACf;EACA;EACA,SAAS,eAAe;EACxB;;UAGe;EACf;EACA;;UAGe;EACf;EACA;;;;;KAMU,4EAMR,8BACA,+BACA,mCACA,SACA,iBACA,UACA,YACA,2BACA;GACG,cAAc;;;;;UAKJ;;;;GAId,cAAc;;;;EAKf;;;;EAKA;;;;EAKA;;;;;;;EAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BA;;;;EAKA;;;;;;;EAQA,aAAa;;;;;;;EAQb;;;;EAKA,aAAa;;;;;EAMb,YAAY;;;;EAKZ;;;;EAKA;;;;;;;;;;;;;;;;;EAkBA;;;;;;;;EASA,iBAAiB;;;;EAKjB,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BT,gBAAgB;;;;;;;;;;;;;;;;;;EAmBhB,WAAW;;;;;EAMX,SAAS;;;;;;;;;;;;cClME,uBAAuB;WAChB;WACA;mBAED;mBACA;mBACA;mBACA;mBACA;;;;;;;EAQjB,cAAc;EAEF,YAAA,SAAS;EA6BN,KACb,UAAU,qBACV,UAAU,eACT,QAAQ;EAgDK,WACd,UAAU,qBACV,UAAU,eACT,cAAc;UAiCF;;;;;;;;;;EAuCf;;;;;;EASA;UAIQ;UAKA;EAKC,eAAe;UAMhB;;;;;YAcW,qBAAqB;;;;;;;;UAahC;UAYA;EAiCC;EAIA,mBAAmB;EAwBnB;EAIM,WAAW;YAIP,iBAAiB,UAAU;;;;;;;;;;;;cC/UnC;;;;;;;;;SASJ,wBAAwB,UAAU,sBAAsB;;;;;SAqBxD,eAAe,UAAU,sBAAsB,OAAO,KAAK;;;;;SAU3D,eAAe,KAAK,oBAAoB,OAAO,KAAK;;;;SA2EpD,wBACL,UAAU,OAAO,KAAK,8BACtB,wBACC,OAAO,KAAK;;;;cC1HJ;cACA;iBAeG,kCAAkC"}
@@ -173,26 +173,18 @@ interface IOpenAIProviderOptions {
173
173
  /**
174
174
  * Optional executor for handling AI requests
175
175
  *
176
- * When provided, the provider will delegate all chat operations to this executor
177
- * instead of making direct API calls. This enables remote execution capabilities.
176
+ * When provided, the provider delegates every chat call to this executor instead of calling the
177
+ * API itself — for example to route calls through your own server. Implement `IExecutor` from
178
+ * `@robota-sdk/agent-core`; `LocalExecutor` is the in-process one.
178
179
  *
179
180
  * @example
180
181
  * ```typescript
181
- * import { LocalExecutor, RemoteExecutor } from '@robota-sdk/agent-core';
182
+ * import { LocalExecutor } from '@robota-sdk/agent-core';
182
183
  *
183
- * // Local execution (registers this provider)
184
- * const localExecutor = new LocalExecutor();
185
- * localExecutor.registerProvider('openai', new OpenAIProvider({ apiKey: 'sk-...' }));
184
+ * const executor = new LocalExecutor();
185
+ * executor.registerProvider('openai', new OpenAIProvider({ apiKey: 'sk-...' }));
186
186
  *
187
- * // Remote execution
188
- * const remoteExecutor = new RemoteExecutor({
189
- * serverUrl: 'https://api.robota.io',
190
- * userApiKey: 'user-token-123'
191
- * });
192
- *
193
- * const provider = new OpenAIProvider({
194
- * executor: remoteExecutor // No direct API key needed
195
- * });
187
+ * const provider = new OpenAIProvider({ executor });
196
188
  * ```
197
189
  */
198
190
  executor?: IExecutor;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/openai/types.ts","../../src/openai/provider.ts","../../src/openai/adapter.ts","../../src/openai/provider-definition.ts"],"mappings":";;;;KAIY;UAEK;EACf;EACA;EACA,SAAS,eAAe;EACxB;;UAGe;EACf;EACA;;UAGe;EACf;EACA;;;;;KAMU,4EAMR,8BACA,+BACA,mCACA,SACA,iBACA,UACA,YACA,2BACA;GACG,cAAc;;;;;UAKJ;;;;GAId,cAAc;;;;EAKf;;;;EAKA;;;;EAKA;;;;;;;EAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BA;;;;EAKA;;;;;;;EAQA,aAAa;;;;;;;EAQb;;;;EAKA,aAAa;;;;;EAMb,YAAY;;;;EAKZ;;;;EAKA;;;;;;;;;;;;;;;;;EAkBA;;;;;;;;EASA,iBAAiB;;;;EAKjB,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BT,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BhB,WAAW;;;;;EAMX,SAAS;;;;;;;;;;;;cC1ME,uBAAuB;WAChB;WACA;mBAED;mBACA;mBACA;mBACA;mBACA;;;;;;;EAQjB,cAAc;EAEF,YAAA,SAAS;EA6BN,KACb,UAAU,qBACV,UAAU,eACT,QAAQ;EAgDK,WACd,UAAU,qBACV,UAAU,eACT,cAAc;UAiCF;;;;;;;;;;EAuCf;;;;;;EASA;UAIQ;UAKA;EAKC,eAAe;UAMhB;;;;;YAcW,qBAAqB;;;;;;;;UAahC;UAYA;EAiCC;EAIA,mBAAmB;EAwBnB;EAIM,WAAW;YAIP,iBAAiB,UAAU;;;;;;;;;;;;cC/UnC;;;;;;;;;SASJ,wBAAwB,UAAU,sBAAsB;;;;;SAqBxD,eAAe,UAAU,sBAAsB,OAAO,KAAK;;;;;SAU3D,eAAe,KAAK,oBAAoB,OAAO,KAAK;;;;SA2EpD,wBACL,UAAU,OAAO,KAAK,8BACtB,wBACC,OAAO,KAAK;;;;cC1HJ;cACA;iBAeG,kCAAkC"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/openai/types.ts","../../src/openai/provider.ts","../../src/openai/adapter.ts","../../src/openai/provider-definition.ts"],"mappings":";;;;KAIY;UAEK;EACf;EACA;EACA,SAAS,eAAe;EACxB;;UAGe;EACf;EACA;;UAGe;EACf;EACA;;;;;KAMU,4EAMR,8BACA,+BACA,mCACA,SACA,iBACA,UACA,YACA,2BACA;GACG,cAAc;;;;;UAKJ;;;;GAId,cAAc;;;;EAKf;;;;EAKA;;;;EAKA;;;;;;;EAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BA;;;;EAKA;;;;;;;EAQA,aAAa;;;;;;;EAQb;;;;EAKA,aAAa;;;;;EAMb,YAAY;;;;EAKZ;;;;EAKA;;;;;;;;;;;;;;;;;EAkBA;;;;;;;;EASA,iBAAiB;;;;EAKjB,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BT,gBAAgB;;;;;;;;;;;;;;;;;;EAmBhB,WAAW;;;;;EAMX,SAAS;;;;;;;;;;;;cClME,uBAAuB;WAChB;WACA;mBAED;mBACA;mBACA;mBACA;mBACA;;;;;;;EAQjB,cAAc;EAEF,YAAA,SAAS;EA6BN,KACb,UAAU,qBACV,UAAU,eACT,QAAQ;EAgDK,WACd,UAAU,qBACV,UAAU,eACT,cAAc;UAiCF;;;;;;;;;;EAuCf;;;;;;EASA;UAIQ;UAKA;EAKC,eAAe;UAMhB;;;;;YAcW,qBAAqB;;;;;;;;UAahC;UAYA;EAiCC;EAIA,mBAAmB;EAwBnB;EAIM,WAAW;YAIP,iBAAiB,UAAU;;;;;;;;;;;;cC/UnC;;;;;;;;;SASJ,wBAAwB,UAAU,sBAAsB;;;;;SAqBxD,eAAe,UAAU,sBAAsB,OAAO,KAAK;;;;;SAU3D,eAAe,KAAK,oBAAoB,OAAO,KAAK;;;;SA2EpD,wBACL,UAAU,OAAO,KAAK,8BACtB,wBACC,OAAO,KAAK;;;;cC1HJ;cACA;iBAeG,kCAAkC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robota-sdk/agent-provider-openai",
3
- "version": "3.0.0-beta.84",
3
+ "version": "3.0.0-beta.86",
4
4
  "description": "OpenAI provider implementation for Robota SDK",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -81,8 +81,8 @@
81
81
  "homepage": "https://docs.robota.io/en/packages/agent-provider-openai/",
82
82
  "dependencies": {
83
83
  "openai": "^4.104.0",
84
- "@robota-sdk/agent-core": "3.0.0-beta.84",
85
- "@robota-sdk/agent-provider-openai-compatible": "3.0.0-beta.84"
84
+ "@robota-sdk/agent-provider-openai-compatible": "3.0.0-beta.86",
85
+ "@robota-sdk/agent-core": "3.0.0-beta.86"
86
86
  },
87
87
  "volta": {
88
88
  "extends": "../../package.json"
@@ -208,26 +208,18 @@ export interface IOpenAIProviderOptions {
208
208
  /**
209
209
  * Optional executor for handling AI requests
210
210
  *
211
- * When provided, the provider will delegate all chat operations to this executor
212
- * instead of making direct API calls. This enables remote execution capabilities.
211
+ * When provided, the provider delegates every chat call to this executor instead of calling the
212
+ * API itself — for example to route calls through your own server. Implement `IExecutor` from
213
+ * `@robota-sdk/agent-core`; `LocalExecutor` is the in-process one.
213
214
  *
214
215
  * @example
215
216
  * ```typescript
216
- * import { LocalExecutor, RemoteExecutor } from '@robota-sdk/agent-core';
217
+ * import { LocalExecutor } from '@robota-sdk/agent-core';
217
218
  *
218
- * // Local execution (registers this provider)
219
- * const localExecutor = new LocalExecutor();
220
- * localExecutor.registerProvider('openai', new OpenAIProvider({ apiKey: 'sk-...' }));
219
+ * const executor = new LocalExecutor();
220
+ * executor.registerProvider('openai', new OpenAIProvider({ apiKey: 'sk-...' }));
221
221
  *
222
- * // Remote execution
223
- * const remoteExecutor = new RemoteExecutor({
224
- * serverUrl: 'https://api.robota.io',
225
- * userApiKey: 'user-token-123'
226
- * });
227
- *
228
- * const provider = new OpenAIProvider({
229
- * executor: remoteExecutor // No direct API key needed
230
- * });
222
+ * const provider = new OpenAIProvider({ executor });
231
223
  * ```
232
224
  */
233
225
  executor?: IExecutor;