deepline 0.2.13 → 0.2.14
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/dist/bundling-sources/sdk/src/index.ts +3 -0
- package/dist/bundling-sources/sdk/src/play.ts +150 -691
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/child-execution-strategy.ts +7 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +249 -51
- package/dist/bundling-sources/shared_libs/play-runtime/csv-rename.ts +10 -6
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +32 -51
- package/dist/bundling-sources/shared_libs/play-runtime/durable-call-cache.ts +11 -22
- package/dist/bundling-sources/shared_libs/play-runtime/durable-call-policy.ts +34 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-call-execution.ts +2 -1
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger-projection-contract.ts +95 -0
- package/dist/bundling-sources/shared_libs/play-runtime/secret-capability.ts +23 -15
- package/dist/bundling-sources/shared_libs/plays/artifact-types.ts +3 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +2222 -0
- package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +3 -2
- package/dist/bundling-sources/shared_libs/plays/compiler-manifest.ts +2 -0
- package/dist/bundling-sources/shared_libs/plays/contracts.ts +16 -0
- package/dist/bundling-sources/shared_libs/plays/input-contract-definition.ts +28 -0
- package/dist/bundling-sources/shared_libs/plays/input-contract.ts +3 -3
- package/dist/cli/index.js +5074 -829
- package/dist/cli/index.mjs +5019 -759
- package/dist/compiler-manifest-xFkbJX2B.d.mts +2517 -0
- package/dist/compiler-manifest-xFkbJX2B.d.ts +2517 -0
- package/dist/index.d.mts +36 -1011
- package/dist/index.d.ts +36 -1011
- package/dist/index.js +25 -7
- package/dist/index.mjs +25 -7
- package/dist/plays/bundle-play-file.d.mts +5 -8
- package/dist/plays/bundle-play-file.d.ts +5 -8
- package/dist/plays/bundle-play-file.mjs +3844 -3
- package/package.json +1 -1
- package/dist/bundling-sources/shared_libs/plays/source-metadata.ts +0 -240
- package/dist/tool-execution-error-4-rhemLQ.d.mts +0 -446
- package/dist/tool-execution-error-4-rhemLQ.d.ts +0 -446
package/dist/index.js
CHANGED
|
@@ -763,7 +763,7 @@ var SDK_RELEASE = {
|
|
|
763
763
|
// 0.2.0 makes Dataset Handles uniformly async-only after 0.1.320 briefly
|
|
764
764
|
// exposed storage-dependent synchronous access. This deliberate minor
|
|
765
765
|
// release keeps lazy paging semantics independent of row residency.
|
|
766
|
-
version: "0.2.
|
|
766
|
+
version: "0.2.14",
|
|
767
767
|
contracts: {
|
|
768
768
|
api: {
|
|
769
769
|
name: "sdk-http-api",
|
|
@@ -7185,6 +7185,29 @@ function isQueryResultDatasetTool(toolId) {
|
|
|
7185
7185
|
return isCustomerDbDatasetTool(toolId) || isSnowflakeQueryDatasetTool(toolId);
|
|
7186
7186
|
}
|
|
7187
7187
|
|
|
7188
|
+
// ../shared_libs/plays/input-contract-definition.ts
|
|
7189
|
+
function freezeInputSchema(schema) {
|
|
7190
|
+
const visited = /* @__PURE__ */ new WeakSet();
|
|
7191
|
+
const freeze = (value) => {
|
|
7192
|
+
if (value === null || typeof value !== "object" || visited.has(value)) {
|
|
7193
|
+
return;
|
|
7194
|
+
}
|
|
7195
|
+
visited.add(value);
|
|
7196
|
+
for (const child of Object.values(value)) freeze(child);
|
|
7197
|
+
Object.freeze(value);
|
|
7198
|
+
};
|
|
7199
|
+
freeze(schema);
|
|
7200
|
+
return schema;
|
|
7201
|
+
}
|
|
7202
|
+
function createPlayInputContract(schema) {
|
|
7203
|
+
if (!schema || typeof schema !== "object" || Array.isArray(schema)) {
|
|
7204
|
+
throw new Error(
|
|
7205
|
+
"defineInput<T>(schema) requires a JSON-schema-like object."
|
|
7206
|
+
);
|
|
7207
|
+
}
|
|
7208
|
+
return Object.freeze({ schema: freezeInputSchema(schema) });
|
|
7209
|
+
}
|
|
7210
|
+
|
|
7188
7211
|
// src/play.ts
|
|
7189
7212
|
var DeeplineConditionalStepResolver = class _DeeplineConditionalStepResolver {
|
|
7190
7213
|
constructor(when, run, elseValue) {
|
|
@@ -7703,12 +7726,7 @@ function toolExecutionEnvelopeToResult(fallbackToolId, response, options) {
|
|
|
7703
7726
|
);
|
|
7704
7727
|
}
|
|
7705
7728
|
function defineInput(schema) {
|
|
7706
|
-
|
|
7707
|
-
throw new Error(
|
|
7708
|
-
"defineInput<T>(schema) requires a JSON-schema-like object."
|
|
7709
|
-
);
|
|
7710
|
-
}
|
|
7711
|
-
return { schema };
|
|
7729
|
+
return createPlayInputContract(schema);
|
|
7712
7730
|
}
|
|
7713
7731
|
function definePlay(nameOrConfig, maybeFn, maybeBindings) {
|
|
7714
7732
|
const config = typeof nameOrConfig === "string" ? {
|
package/dist/index.mjs
CHANGED
|
@@ -689,7 +689,7 @@ var SDK_RELEASE = {
|
|
|
689
689
|
// 0.2.0 makes Dataset Handles uniformly async-only after 0.1.320 briefly
|
|
690
690
|
// exposed storage-dependent synchronous access. This deliberate minor
|
|
691
691
|
// release keeps lazy paging semantics independent of row residency.
|
|
692
|
-
version: "0.2.
|
|
692
|
+
version: "0.2.14",
|
|
693
693
|
contracts: {
|
|
694
694
|
api: {
|
|
695
695
|
name: "sdk-http-api",
|
|
@@ -7111,6 +7111,29 @@ function isQueryResultDatasetTool(toolId) {
|
|
|
7111
7111
|
return isCustomerDbDatasetTool(toolId) || isSnowflakeQueryDatasetTool(toolId);
|
|
7112
7112
|
}
|
|
7113
7113
|
|
|
7114
|
+
// ../shared_libs/plays/input-contract-definition.ts
|
|
7115
|
+
function freezeInputSchema(schema) {
|
|
7116
|
+
const visited = /* @__PURE__ */ new WeakSet();
|
|
7117
|
+
const freeze = (value) => {
|
|
7118
|
+
if (value === null || typeof value !== "object" || visited.has(value)) {
|
|
7119
|
+
return;
|
|
7120
|
+
}
|
|
7121
|
+
visited.add(value);
|
|
7122
|
+
for (const child of Object.values(value)) freeze(child);
|
|
7123
|
+
Object.freeze(value);
|
|
7124
|
+
};
|
|
7125
|
+
freeze(schema);
|
|
7126
|
+
return schema;
|
|
7127
|
+
}
|
|
7128
|
+
function createPlayInputContract(schema) {
|
|
7129
|
+
if (!schema || typeof schema !== "object" || Array.isArray(schema)) {
|
|
7130
|
+
throw new Error(
|
|
7131
|
+
"defineInput<T>(schema) requires a JSON-schema-like object."
|
|
7132
|
+
);
|
|
7133
|
+
}
|
|
7134
|
+
return Object.freeze({ schema: freezeInputSchema(schema) });
|
|
7135
|
+
}
|
|
7136
|
+
|
|
7114
7137
|
// src/play.ts
|
|
7115
7138
|
var DeeplineConditionalStepResolver = class _DeeplineConditionalStepResolver {
|
|
7116
7139
|
constructor(when, run, elseValue) {
|
|
@@ -7629,12 +7652,7 @@ function toolExecutionEnvelopeToResult(fallbackToolId, response, options) {
|
|
|
7629
7652
|
);
|
|
7630
7653
|
}
|
|
7631
7654
|
function defineInput(schema) {
|
|
7632
|
-
|
|
7633
|
-
throw new Error(
|
|
7634
|
-
"defineInput<T>(schema) requires a JSON-schema-like object."
|
|
7635
|
-
);
|
|
7636
|
-
}
|
|
7637
|
-
return { schema };
|
|
7655
|
+
return createPlayInputContract(schema);
|
|
7638
7656
|
}
|
|
7639
7657
|
function definePlay(nameOrConfig, maybeFn, maybeBindings) {
|
|
7640
7658
|
const config = typeof nameOrConfig === "string" ? {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { T as ToolExecutionErrorSchemaVersion, P as PlayArtifactKind$1,
|
|
2
|
-
export {
|
|
1
|
+
import { T as ToolExecutionErrorSchemaVersion, P as PlayAuthoringContractEdition, a as PlayArtifactKind$1, b as PlaySandboxRuntimeDeclaration, c as PlayCompilerManifest } from '../compiler-manifest-xFkbJX2B.mjs';
|
|
2
|
+
export { d as PLAY_ARTIFACT_KINDS } from '../compiler-manifest-xFkbJX2B.mjs';
|
|
3
|
+
import '@sinclair/typebox';
|
|
3
4
|
|
|
4
5
|
type PlayPackageImport = {
|
|
5
6
|
name: string;
|
|
@@ -19,6 +20,8 @@ type PlayArtifactCompatibility = {
|
|
|
19
20
|
runtimeBackend?: string | null;
|
|
20
21
|
/** Missing preserves the legacy schema used before this field existed. */
|
|
21
22
|
toolErrorSchemaVersion?: ToolExecutionErrorSchemaVersion;
|
|
23
|
+
/** Missing preserves edition 1 for artifacts created before authoring contracts were pinned. */
|
|
24
|
+
authoringContractEdition?: PlayAuthoringContractEdition;
|
|
22
25
|
};
|
|
23
26
|
/** The only executable Play artifact contract. */
|
|
24
27
|
type PlayArtifactKind = 'cjs_node20';
|
|
@@ -40,12 +43,6 @@ type PlayBundleArtifact = {
|
|
|
40
43
|
cacheHit: boolean;
|
|
41
44
|
};
|
|
42
45
|
|
|
43
|
-
type PlaySandboxSize = 'standard';
|
|
44
|
-
type PlaySandboxRuntimeDeclaration = {
|
|
45
|
-
timeout?: string;
|
|
46
|
-
size?: PlaySandboxSize;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
46
|
type ImportedPlayDependency = {
|
|
50
47
|
filePath: string;
|
|
51
48
|
playName: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { T as ToolExecutionErrorSchemaVersion, P as PlayArtifactKind$1,
|
|
2
|
-
export {
|
|
1
|
+
import { T as ToolExecutionErrorSchemaVersion, P as PlayAuthoringContractEdition, a as PlayArtifactKind$1, b as PlaySandboxRuntimeDeclaration, c as PlayCompilerManifest } from '../compiler-manifest-xFkbJX2B.js';
|
|
2
|
+
export { d as PLAY_ARTIFACT_KINDS } from '../compiler-manifest-xFkbJX2B.js';
|
|
3
|
+
import '@sinclair/typebox';
|
|
3
4
|
|
|
4
5
|
type PlayPackageImport = {
|
|
5
6
|
name: string;
|
|
@@ -19,6 +20,8 @@ type PlayArtifactCompatibility = {
|
|
|
19
20
|
runtimeBackend?: string | null;
|
|
20
21
|
/** Missing preserves the legacy schema used before this field existed. */
|
|
21
22
|
toolErrorSchemaVersion?: ToolExecutionErrorSchemaVersion;
|
|
23
|
+
/** Missing preserves edition 1 for artifacts created before authoring contracts were pinned. */
|
|
24
|
+
authoringContractEdition?: PlayAuthoringContractEdition;
|
|
22
25
|
};
|
|
23
26
|
/** The only executable Play artifact contract. */
|
|
24
27
|
type PlayArtifactKind = 'cjs_node20';
|
|
@@ -40,12 +43,6 @@ type PlayBundleArtifact = {
|
|
|
40
43
|
cacheHit: boolean;
|
|
41
44
|
};
|
|
42
45
|
|
|
43
|
-
type PlaySandboxSize = 'standard';
|
|
44
|
-
type PlaySandboxRuntimeDeclaration = {
|
|
45
|
-
timeout?: string;
|
|
46
|
-
size?: PlaySandboxSize;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
46
|
type ImportedPlayDependency = {
|
|
50
47
|
filePath: string;
|
|
51
48
|
playName: string;
|