@ai-sdk/harness-acp 1.0.40 → 1.0.42

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,22 @@
1
1
  # @ai-sdk/harness-acp
2
2
 
3
+ ## 1.0.42
4
+
5
+ ### Patch Changes
6
+
7
+ - c04ded8: chore(harness): remove formerly deprecated `model` and `modelId` config on harness adapter settings
8
+ - Updated dependencies [c04ded8]
9
+ - @ai-sdk/harness@1.0.104
10
+
11
+ ## 1.0.41
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [9e1d1b2]
16
+ - Updated dependencies [a495511]
17
+ - @ai-sdk/provider-utils@5.0.37
18
+ - @ai-sdk/harness@1.0.103
19
+
3
20
  ## 1.0.40
4
21
 
5
22
  ### Patch Changes
package/README.md CHANGED
@@ -105,7 +105,7 @@ selection operations. Use `session-config-option` with the ACP configuration
105
105
  option ID as `path`, or `session-model` with the JSON-RPC request property as
106
106
  `path` for implementations such as Grok Build that use the legacy
107
107
  `session/set_model` method. No model operation is sent when `HarnessAgent` has
108
- no model and the deprecated `modelId` fallback is also unset.
108
+ no model configured.
109
109
 
110
110
  Use `instructionMapping` when the ACP implementation exposes a native system
111
111
  or developer prompt. A `session-meta` mapping writes `HarnessAgent`
@@ -12,7 +12,7 @@ import {
12
12
  ListToolsRequestSchema,
13
13
  McpError
14
14
  } from "@modelcontextprotocol/sdk/types.js";
15
- var VERSION = true ? "1.0.40" : "0.0.0-test";
15
+ var VERSION = true ? "1.0.42" : "0.0.0-test";
16
16
  function createHostToolMCPServer({
17
17
  tools: tools2,
18
18
  revision = 1,
@@ -2416,7 +2416,7 @@ import {
2416
2416
  ListToolsRequestSchema,
2417
2417
  McpError
2418
2418
  } from "@modelcontextprotocol/sdk/types.js";
2419
- var VERSION = true ? "1.0.40" : "0.0.0-test";
2419
+ var VERSION = true ? "1.0.42" : "0.0.0-test";
2420
2420
  function createHostToolMCPServer({
2421
2421
  tools,
2422
2422
  revision = 1,
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { HarnessV1StreamPart, HarnessV1Authentication, HarnessV1RequestTransformation, HarnessV1CredentialForwarding, HarnessV1PermissionMode, HarnessV1PortEndpoint, HarnessV1, HARNESS_V1_BUILTIN_TOOLS } from '@ai-sdk/harness';
1
+ import { HarnessV1StreamPart, HarnessV1Authentication, HarnessV1RequestTransformation, HarnessV1CredentialForwarding, HarnessV1PermissionMode, HarnessV1MintBridgeTokenCallback, HarnessV1PortEndpoint, HarnessV1, HARNESS_V1_BUILTIN_TOOLS } from '@ai-sdk/harness';
2
2
  import { ToolResultPart, ToolSet } from '@ai-sdk/provider-utils';
3
3
 
4
4
  type ACPMetadata = Record<string, unknown>;
@@ -241,10 +241,6 @@ type ACPV1Settings = {
241
241
  * Maps the HarnessAgent model identifier to an ACP session operation.
242
242
  */
243
243
  readonly modelMapping: ACPModelMapping;
244
- /**
245
- * @deprecated Use `model` on `HarnessAgent` instead.
246
- */
247
- readonly modelId?: string;
248
244
  /**
249
245
  * Native skills directory relative to the ACP implementation's home
250
246
  * directory. Defaults to `.agents/skills`.
@@ -278,7 +274,7 @@ type ACPV1Settings = {
278
274
  * Creates the authentication token used by the sandbox bridge. Defaults to
279
275
  * a random 32-byte hexadecimal token.
280
276
  */
281
- readonly mintBridgeToken?: (sandboxId: string) => string;
277
+ readonly mintBridgeToken?: HarnessV1MintBridgeTokenCallback;
282
278
  };
283
279
 
284
280
  type ACPAuthenticationMode = ACPAuthenticationMode$1;
@@ -305,7 +301,7 @@ type ACPHarnessSettings<TBuiltinTools extends ToolSet = {}, TAskUserQuestions ex
305
301
  readonly clientApp?: ACPClientApp;
306
302
  readonly version?: ACPV1Settings['version'];
307
303
  readonly harnessId: ACPV1Settings['harnessId'];
308
- readonly auth?: ACPV1Settings['auth'];
304
+ readonly auth?: ACPAuthenticationMode;
309
305
  readonly source: ACPV1Settings['source'];
310
306
  readonly executable: ACPV1Settings['executable'];
311
307
  readonly args?: ACPV1Settings['args'];
@@ -317,7 +313,7 @@ type ACPHarnessSettings<TBuiltinTools extends ToolSet = {}, TAskUserQuestions ex
317
313
  * process. This does not restrict which credentials the harness adapter can
318
314
  * discover, read, or otherwise access in the host process.
319
315
  */
320
- readonly credentialForwarding?: ACPV1Settings['credentialForwarding'];
316
+ readonly credentialForwarding?: HarnessV1CredentialForwarding;
321
317
  readonly env?: ACPV1Settings['env'];
322
318
  readonly authentication?: ACPV1Settings['authentication'];
323
319
  readonly clientCapabilities?: ACPV1Settings['clientCapabilities'];
@@ -326,10 +322,6 @@ type ACPHarnessSettings<TBuiltinTools extends ToolSet = {}, TAskUserQuestions ex
326
322
  * Maps the HarnessAgent model identifier to an ACP session operation.
327
323
  */
328
324
  readonly modelMapping: ACPV1Settings['modelMapping'];
329
- /**
330
- * @deprecated Use `model` on `HarnessAgent` instead.
331
- */
332
- readonly modelId?: ACPV1Settings['modelId'];
333
325
  readonly skillsDirectory?: ACPV1Settings['skillsDirectory'];
334
326
  readonly instructionMapping?: ACPV1Settings['instructionMapping'];
335
327
  readonly outputSchemaMapping?: ACPV1Settings['outputSchemaMapping'];
@@ -344,7 +336,7 @@ type ACPHarnessSettings<TBuiltinTools extends ToolSet = {}, TAskUserQuestions ex
344
336
  readonly askUserQuestions?: TAskUserQuestions;
345
337
  readonly permissionModeMapping?: ACPV1Settings['permissionModeMapping'];
346
338
  readonly session?: ACPV1Settings['session'];
347
- readonly mintBridgeToken?: ACPV1Settings['mintBridgeToken'];
339
+ readonly mintBridgeToken?: HarnessV1MintBridgeTokenCallback;
348
340
  };
349
341
  type ACPHarnessTools<TBuiltinTools extends ToolSet, TAskUserQuestions> = TBuiltinTools & ([TAskUserQuestions] extends [undefined] ? {} : {
350
342
  askUserQuestions: typeof HARNESS_V1_BUILTIN_TOOLS.askUserQuestions;
package/dist/index.js CHANGED
@@ -1448,7 +1448,6 @@ function createACPV1({
1448
1448
  channel: attachChannel,
1449
1449
  proc: void 0,
1450
1450
  modelMapping: settings.modelMapping,
1451
- defaultModelId: settings.modelId,
1452
1451
  sessionMeta: settings.session?.meta,
1453
1452
  instructionMapping: settings.instructionMapping,
1454
1453
  outputSchemaMapping: settings.outputSchemaMapping,
@@ -1711,7 +1710,6 @@ function createACPV1({
1711
1710
  channel,
1712
1711
  proc,
1713
1712
  modelMapping: settings.modelMapping,
1714
- defaultModelId: settings.modelId,
1715
1713
  sessionMeta: settings.session?.meta,
1716
1714
  instructionMapping: settings.instructionMapping,
1717
1715
  outputSchemaMapping: settings.outputSchemaMapping,
@@ -1950,7 +1948,6 @@ function createSession({
1950
1948
  channel,
1951
1949
  proc,
1952
1950
  modelMapping,
1953
- defaultModelId,
1954
1951
  sessionMeta,
1955
1952
  instructionMapping,
1956
1953
  outputSchemaMapping,
@@ -2449,7 +2446,7 @@ function createSession({
2449
2446
  prompt: options.prompt,
2450
2447
  harnessId
2451
2448
  });
2452
- const model = options.model ?? defaultModelId;
2449
+ const model = options.model;
2453
2450
  const turnStartConfig = createACPTurnStartConfig({
2454
2451
  prompt,
2455
2452
  tools: options.tools ?? [],
@@ -2840,7 +2837,7 @@ function deserializeBridgeError({
2840
2837
  }
2841
2838
 
2842
2839
  // src/version.ts
2843
- var VERSION = true ? "1.0.40" : "0.0.0-test";
2840
+ var VERSION = true ? "1.0.42" : "0.0.0-test";
2844
2841
 
2845
2842
  // src/acp-harness.ts
2846
2843
  var ACP_CLIENT_APP = {