deepline 0.2.74 → 0.3.0

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.
@@ -1,7 +1,15 @@
1
- import { T as ToolExecutionErrorSchemaVersion, P as PlayAuthoringContractEdition, a as PlayArtifactKind$1, b as PlaySandboxRuntimeDeclaration, c as PlayCompilerManifest } from '../compiler-manifest-DFuz9-0_.mjs';
2
- export { d as PLAY_ARTIFACT_KINDS } from '../compiler-manifest-DFuz9-0_.mjs';
1
+ import { T as ToolExecutionErrorSchemaVersion, P as PlayAuthoringContractEdition, a as PlayArtifactKind$1, b as PlaySandboxRuntimeDeclaration, c as PlayCompilerManifest } from '../compiler-manifest-BX85pKXW.mjs';
2
+ export { d as PLAY_ARTIFACT_KINDS } from '../compiler-manifest-BX85pKXW.mjs';
3
3
  import '@sinclair/typebox';
4
4
 
5
+ /**
6
+ * Public tool-response contracts shared by the API, SDK, Play bundler, and
7
+ * runtime. A response contract is transport behavior, never Play authoring.
8
+ */
9
+ declare const V2_TOOL_RESPONSE_CONTRACT: "v2-tool-response";
10
+ declare const RAW_V2_TOOL_RESPONSE_CONTRACT: "raw-v2";
11
+ type ToolResponseContract = typeof V2_TOOL_RESPONSE_CONTRACT | typeof RAW_V2_TOOL_RESPONSE_CONTRACT;
12
+
5
13
  type PlayPackageImport = {
6
14
  name: string;
7
15
  version: string | null;
@@ -22,6 +30,8 @@ type PlayArtifactCompatibility = {
22
30
  toolErrorSchemaVersion?: ToolExecutionErrorSchemaVersion;
23
31
  /** Missing preserves edition 1 for artifacts created before authoring contracts were pinned. */
24
32
  authoringContractEdition?: PlayAuthoringContractEdition;
33
+ /** Missing preserves the raw-only V2 execute response contract. */
34
+ toolResponseContract?: ToolResponseContract;
25
35
  };
26
36
  /** The only executable Play artifact contract. */
27
37
  type PlayArtifactKind = 'cjs_node20';
@@ -1,7 +1,15 @@
1
- import { T as ToolExecutionErrorSchemaVersion, P as PlayAuthoringContractEdition, a as PlayArtifactKind$1, b as PlaySandboxRuntimeDeclaration, c as PlayCompilerManifest } from '../compiler-manifest-DFuz9-0_.js';
2
- export { d as PLAY_ARTIFACT_KINDS } from '../compiler-manifest-DFuz9-0_.js';
1
+ import { T as ToolExecutionErrorSchemaVersion, P as PlayAuthoringContractEdition, a as PlayArtifactKind$1, b as PlaySandboxRuntimeDeclaration, c as PlayCompilerManifest } from '../compiler-manifest-BX85pKXW.js';
2
+ export { d as PLAY_ARTIFACT_KINDS } from '../compiler-manifest-BX85pKXW.js';
3
3
  import '@sinclair/typebox';
4
4
 
5
+ /**
6
+ * Public tool-response contracts shared by the API, SDK, Play bundler, and
7
+ * runtime. A response contract is transport behavior, never Play authoring.
8
+ */
9
+ declare const V2_TOOL_RESPONSE_CONTRACT: "v2-tool-response";
10
+ declare const RAW_V2_TOOL_RESPONSE_CONTRACT: "raw-v2";
11
+ type ToolResponseContract = typeof V2_TOOL_RESPONSE_CONTRACT | typeof RAW_V2_TOOL_RESPONSE_CONTRACT;
12
+
5
13
  type PlayPackageImport = {
6
14
  name: string;
7
15
  version: string | null;
@@ -22,6 +30,8 @@ type PlayArtifactCompatibility = {
22
30
  toolErrorSchemaVersion?: ToolExecutionErrorSchemaVersion;
23
31
  /** Missing preserves edition 1 for artifacts created before authoring contracts were pinned. */
24
32
  authoringContractEdition?: PlayAuthoringContractEdition;
33
+ /** Missing preserves the raw-only V2 execute response contract. */
34
+ toolResponseContract?: ToolResponseContract;
25
35
  };
26
36
  /** The only executable Play artifact contract. */
27
37
  type PlayArtifactKind = 'cjs_node20';
@@ -4001,6 +4001,9 @@ var PLAY_AUTHORING_CLOUD_TYPE_DECLARATIONS = [
4001
4001
  "export type DefinedPlay<TInput, TOutput extends PlayReturnObject> = ((ctx: DeeplinePlayRuntimeContext, input: TInput) => Promise<TOutput>) & { readonly name: string; readonly __inputType?: TInput; readonly __outputType?: TOutput; readonly runtime?: PlayBindings['runtime']; readonly compatibility?: PlayBindings['compatibility'] };"
4002
4002
  ];
4003
4003
 
4004
+ // ../shared_libs/play-runtime/tool-response-contract.ts
4005
+ var RAW_V2_TOOL_RESPONSE_CONTRACT = "raw-v2";
4006
+
4004
4007
  // ../shared_libs/plays/contracts.ts
4005
4008
  var PLAY_PUBLIC_API_VERSION = 1;
4006
4009
  var PLAY_ARTIFACT_VERSION = CURRENT_PLAY_ARTIFACT_CONTRACT_VERSION;
@@ -4019,7 +4022,8 @@ function buildPlayContractCompatibility(input) {
4019
4022
  runtimeFeatures: [...PLAY_RUNTIME_FEATURES],
4020
4023
  runtimeBackend: input?.runtimeBackend ?? null,
4021
4024
  toolErrorSchemaVersion: input?.toolErrorSchemaVersion ?? TOOL_EXECUTION_ERROR_SCHEMA_VERSION,
4022
- authoringContractEdition: input?.authoringContractEdition ?? PLAY_AUTHORING_CONTRACT_EDITION
4025
+ authoringContractEdition: input?.authoringContractEdition ?? PLAY_AUTHORING_CONTRACT_EDITION,
4026
+ toolResponseContract: input?.toolResponseContract ?? RAW_V2_TOOL_RESPONSE_CONTRACT
4023
4027
  };
4024
4028
  }
4025
4029
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepline",
3
- "version": "0.2.74",
3
+ "version": "0.3.0",
4
4
  "description": "GTM data CLI and TypeScript SDK for coding agents",
5
5
  "license": "MIT",
6
6
  "homepage": "https://code.deepline.com",