deepline 0.3.311 → 0.3.312
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/play.ts +7 -1
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +100 -25
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +23 -1
- package/dist/bundling-sources/shared_libs/plays/core.ts +7 -1
- package/dist/bundling-sources/shared_libs/plays/settings-contract.ts +29 -3
- package/dist/cli/{auth-2A7OYHFJ.mjs → auth-ACDTPM3M.mjs} +4 -4
- package/dist/cli/auth-TFDGA24W.js +31 -0
- package/dist/cli/{billing-P7GIAP3U.mjs → billing-FVBBJ77L.mjs} +5 -5
- package/dist/cli/{billing-2PQ4VDRR.js → billing-YTJFHEGU.js} +71 -71
- package/dist/cli/{chunk-5IBHISKA.js → chunk-6KKETQSI.js} +6 -6
- package/dist/cli/{chunk-XDUQQTIS.js → chunk-6LLJWMYH.js} +6 -6
- package/dist/cli/{chunk-HOCPOTDX.mjs → chunk-6OGNRAS7.mjs} +2 -2
- package/dist/cli/chunk-76VKBPOC.mjs +406 -0
- package/dist/cli/{chunk-7TT4LZIR.js → chunk-7SW43OAX.js} +60 -60
- package/dist/cli/{chunk-SGTSJCOA.mjs → chunk-AA66YTS7.mjs} +1 -1
- package/dist/cli/{chunk-QO3GH6UP.js → chunk-BRJOVSTH.js} +2 -2
- package/dist/cli/{chunk-4WFNAWVO.mjs → chunk-EHVJ7XXD.mjs} +2 -2
- package/dist/cli/{chunk-G3QP2WYR.mjs → chunk-ENSDO4SG.mjs} +4 -4
- package/dist/cli/{chunk-VODJJUKE.js → chunk-FQVTHBEH.js} +15 -15
- package/dist/cli/{chunk-DUEHAEPM.mjs → chunk-GTEDCRKC.mjs} +1 -1
- package/dist/cli/{play-SOG5Q2GE.mjs → chunk-I25C4KL7.mjs} +166 -90
- package/dist/cli/{chunk-W7INSYJS.js → chunk-IALPYID6.js} +3 -3
- package/dist/cli/{chunk-ICZB4GTY.mjs → chunk-MK4K5MQU.mjs} +23 -3
- package/dist/cli/{chunk-WB6Z2Q44.mjs → chunk-N5V2SBB2.mjs} +19 -1
- package/dist/cli/{chunk-TBX7AA7Y.mjs → chunk-NJNYWVEF.mjs} +2 -2
- package/dist/cli/{chunk-QJA6SJHA.mjs → chunk-NMZPK7LM.mjs} +1 -1
- package/dist/cli/{chunk-5OVNL6LS.mjs → chunk-NWFE4PGX.mjs} +1 -1
- package/dist/cli/{chunk-ZDO3TO3M.js → chunk-OJ243ZA5.js} +19 -1
- package/dist/cli/{tools-G4HGCHNQ.mjs → chunk-OV6IFAXH.mjs} +180 -36
- package/dist/cli/{play-BCMGFYTF.js → chunk-QFSLMI42.js} +342 -266
- package/dist/cli/{chunk-LRI2FQF2.js → chunk-T4IJQKRE.js} +26 -26
- package/dist/cli/{chunk-RNJ74JDH.js → chunk-TID5XLTZ.js} +4 -4
- package/dist/cli/{chunk-QYL5ZV4U.js → chunk-ULI6UVV6.js} +6 -6
- package/dist/cli/{chunk-4NIQA6S7.mjs → chunk-US4S3E4Y.mjs} +1 -1
- package/dist/cli/{tools-WN7T25LW.js → chunk-V7N6BJQD.js} +231 -87
- package/dist/cli/{chunk-IB7OGQGH.js → chunk-VJDKV5RU.js} +29 -9
- package/dist/cli/{chunk-Q3LYQTSO.mjs → chunk-WPTUKXIF.mjs} +1 -1
- package/dist/cli/chunk-XNL3SEMC.js +406 -0
- package/dist/cli/{chunk-GCX3343L.js → chunk-YYU3PYVK.js} +48 -48
- package/dist/cli/{chunk-SPUTBCUR.mjs → chunk-ZH7KTVAB.mjs} +1 -1
- package/dist/cli/{chunk-FYPZ43Y4.js → chunk-ZQJDRSR5.js} +1 -1
- package/dist/cli/{client-PNLDT2M3.mjs → client-ENGOMTTU.mjs} +3 -3
- package/dist/cli/client-T6YGH6TT.js +20 -0
- package/dist/cli/{csv-L5DN7F45.js → csv-6WOJC6NZ.js} +12 -12
- package/dist/cli/{csv-KUAATBZQ.mjs → csv-ENKTPYAJ.mjs} +3 -3
- package/dist/cli/{db-6NIH4KTZ.js → db-BAEVP4QK.js} +20 -20
- package/dist/cli/{db-WZOD6NP5.mjs → db-DSCJZYJU.mjs} +4 -4
- package/dist/cli/describe-PAUHJF7H.mjs +236 -0
- package/dist/cli/describe-X2AFAC4B.js +236 -0
- package/dist/cli/{executions-TQ5WRHDS.js → executions-LXS6NLCV.js} +6 -6
- package/dist/cli/{executions-RDDXGT2Y.mjs → executions-R6JOR67D.mjs} +4 -4
- package/dist/cli/{feedback-ZB4WKBSS.mjs → feedback-CYRVNCGT.mjs} +3 -3
- package/dist/cli/{feedback-NYKLEQB6.js → feedback-HXP2D7K6.js} +6 -6
- package/dist/cli/git-JOE2RM3Q.js +23 -0
- package/dist/cli/{git-E6DKAX3X.mjs → git-XBYBZB4R.mjs} +4 -4
- package/dist/cli/index.js +82 -78
- package/dist/cli/index.mjs +45 -41
- package/dist/cli/{legacy-noops-26Y5NSU6.js → legacy-noops-AUNAFEZP.js} +7 -7
- package/dist/cli/{legacy-noops-25B7JCOZ.mjs → legacy-noops-OQP6VZKE.mjs} +4 -4
- package/dist/cli/{monitors-WRTHO7DT.mjs → monitors-L2HAAPAL.mjs} +7 -7
- package/dist/cli/{monitors-L3GFT4MG.js → monitors-QSIZG3CJ.js} +88 -88
- package/dist/cli/{org-BNCTGPWF.js → org-JUHQGBQE.js} +60 -60
- package/dist/cli/{org-ZTHOFVEO.mjs → org-UCSN5XRC.mjs} +4 -4
- package/dist/cli/play-2SNMTZGK.js +152 -0
- package/dist/cli/play-5AT2RB3M.mjs +152 -0
- package/dist/cli/{providers-MLOKTD6O.js → providers-CVG4L3VR.js} +7 -7
- package/dist/cli/{providers-SLAPPVMU.mjs → providers-GVPAPZ4L.mjs} +4 -4
- package/dist/cli/{quickstart-IWJLGET3.js → quickstart-7OIFIQG3.js} +5 -5
- package/dist/cli/{quickstart-LZRKZLNQ.mjs → quickstart-Y6ZU27LE.mjs} +3 -3
- package/dist/cli/{search-RCDGSNWW.mjs → search-4I2Y2NKK.mjs} +13 -5
- package/dist/cli/search-DS36UHOX.js +26 -0
- package/dist/cli/{secrets-GDPYV6OC.mjs → secrets-3Z4IUEBA.mjs} +4 -4
- package/dist/cli/{secrets-24KEMSCU.js → secrets-O2UFLU52.js} +13 -13
- package/dist/cli/{sessions-ST5XQQZN.mjs → sessions-OMAXRY5I.mjs} +4 -4
- package/dist/cli/{sessions-QOUUGVP3.js → sessions-T6MWWQRH.js} +5 -5
- package/dist/cli/{settings-V6Z775TO.mjs → settings-C47WXZY5.mjs} +7 -7
- package/dist/cli/{settings-4XWDMAA2.js → settings-R4LO5NMY.js} +74 -74
- package/dist/cli/{setup-W7SPZTUL.js → setup-FIUTV4DD.js} +41 -41
- package/dist/cli/{setup-QPZLP25U.mjs → setup-JPJVTIQ6.mjs} +6 -6
- package/dist/cli/{skills-QG22R2EI.mjs → skills-6WVTMKP5.mjs} +4 -4
- package/dist/cli/skills-GLPKPF7R.js +28 -0
- package/dist/cli/tools-L3YLQ7BR.js +38 -0
- package/dist/cli/tools-TKS77TNU.mjs +38 -0
- package/dist/cli/{update-5PSYBGVU.mjs → update-GD754XMA.mjs} +6 -6
- package/dist/cli/update-HXI35NME.js +28 -0
- package/dist/cli/{workflow-ZEQ46MGG.js → workflow-OCUQCNXA.js} +16 -16
- package/dist/cli/{workflow-EK7DV4AQ.mjs → workflow-YKQSPXQZ.mjs} +6 -6
- package/dist/{client-DpnkGBn-.d.mts → client-CtVdLZux.d.mts} +21 -4
- package/dist/{client-ypdBvf1o.d.ts → client-OBwghxPC.d.ts} +21 -4
- package/dist/{compiler-manifest-qtTNYvBl.d.ts → compiler-manifest-wOKNiXpa.d.mts} +21 -0
- package/dist/{compiler-manifest-qtTNYvBl.d.mts → compiler-manifest-wOKNiXpa.d.ts} +21 -0
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +13 -10
- package/dist/index.mjs +16 -13
- package/dist/install-integrity.json +84 -76
- package/dist/plays/bundle-play-file.d.mts +2 -2
- package/dist/plays/bundle-play-file.d.ts +2 -2
- package/dist/plays/bundle-play-file.mjs +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-66JFXP6C.js +0 -31
- package/dist/cli/client-ADWRS22F.js +0 -20
- package/dist/cli/git-E56KOYJR.js +0 -23
- package/dist/cli/search-6FBDSA3K.js +0 -18
- package/dist/cli/skills-WKOQBJY7.js +0 -28
- package/dist/cli/update-WKVCWGYY.js +0 -28
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
2
|
+
addDescribeOptions,
|
|
3
|
+
schemaFields
|
|
4
|
+
} from "./chunk-76VKBPOC.mjs";
|
|
5
5
|
import {
|
|
6
6
|
parseCsvDataInput
|
|
7
7
|
} from "./chunk-EDWJY6T4.mjs";
|
|
8
8
|
import {
|
|
9
9
|
registerDeprecatedSearchCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MK4K5MQU.mjs";
|
|
11
|
+
import {
|
|
12
|
+
handleDeploymentGet,
|
|
13
|
+
handleDeploymentsList
|
|
14
|
+
} from "./chunk-EHVJ7XXD.mjs";
|
|
11
15
|
import {
|
|
12
16
|
PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY,
|
|
13
17
|
PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER,
|
|
@@ -30,7 +34,7 @@ import {
|
|
|
30
34
|
normalizeRunEventOperationRequest,
|
|
31
35
|
parseLogLevel,
|
|
32
36
|
playInputExampleArgs
|
|
33
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-NWFE4PGX.mjs";
|
|
34
38
|
import {
|
|
35
39
|
CSV_DATA_INPUT_KEY,
|
|
36
40
|
buildNamedPlayRunRequest,
|
|
@@ -62,12 +66,10 @@ import {
|
|
|
62
66
|
printJson,
|
|
63
67
|
printJsonError,
|
|
64
68
|
renderCommandEnvelopeText
|
|
65
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-ZH7KTVAB.mjs";
|
|
66
70
|
import {
|
|
67
71
|
fetchWithDeploymentProtection
|
|
68
|
-
} from "./chunk-
|
|
69
|
-
import "./chunk-DLIRSHV6.mjs";
|
|
70
|
-
import "./chunk-SGTSJCOA.mjs";
|
|
72
|
+
} from "./chunk-WPTUKXIF.mjs";
|
|
71
73
|
import {
|
|
72
74
|
PLAY_DEFAULT_EXPORT,
|
|
73
75
|
extractDefinedPlayName,
|
|
@@ -75,14 +77,10 @@ import {
|
|
|
75
77
|
listPlayFileExports,
|
|
76
78
|
parsePlaySourceForAnalysis,
|
|
77
79
|
resolveEnabledExecutionProfile
|
|
78
|
-
} from "./chunk-
|
|
79
|
-
import "./chunk-H7HIDGZ7.mjs";
|
|
80
|
-
import "./chunk-WB6Z2Q44.mjs";
|
|
81
|
-
import "./chunk-6IKARAYD.mjs";
|
|
80
|
+
} from "./chunk-US4S3E4Y.mjs";
|
|
82
81
|
import {
|
|
83
82
|
DeeplineError
|
|
84
83
|
} from "./chunk-NXGCO4JB.mjs";
|
|
85
|
-
import "./chunk-WZYKRD7T.mjs";
|
|
86
84
|
import {
|
|
87
85
|
__commonJS,
|
|
88
86
|
__toESM
|
|
@@ -1917,6 +1915,7 @@ function displayPlayPath(path, ownerName) {
|
|
|
1917
1915
|
...path?.folders ?? []
|
|
1918
1916
|
].join(" / ");
|
|
1919
1917
|
}
|
|
1918
|
+
var playDisplayNameSchema = z.string().trim().nullable().transform((value) => value || null);
|
|
1920
1919
|
var PLAY_SETTING_FIELDS = {
|
|
1921
1920
|
path: {
|
|
1922
1921
|
schema: playPathSchema.default(null).describe(
|
|
@@ -1937,9 +1936,26 @@ var PLAY_SETTING_FIELDS = {
|
|
|
1937
1936
|
"null"
|
|
1938
1937
|
],
|
|
1939
1938
|
parse: (value) => value === "null" ? null : parsePlayPath(value),
|
|
1940
|
-
format: formatPlayPath
|
|
1939
|
+
format: (value) => formatPlayPath(playPathSchema.parse(value))
|
|
1941
1940
|
},
|
|
1942
1941
|
ui: { control: "play-location-picker" }
|
|
1942
|
+
},
|
|
1943
|
+
displayName: {
|
|
1944
|
+
schema: playDisplayNameSchema.default(null).describe(
|
|
1945
|
+
"Optional human-readable Play name. Null uses the name derived from the identifier."
|
|
1946
|
+
),
|
|
1947
|
+
label: "Display name",
|
|
1948
|
+
description: "Optional name shown in the UI. Leave empty to use the name derived from the Play identifier.",
|
|
1949
|
+
get defaultValue() {
|
|
1950
|
+
return this.schema.parse(void 0);
|
|
1951
|
+
},
|
|
1952
|
+
cli: {
|
|
1953
|
+
valueSyntax: "text | null",
|
|
1954
|
+
examples: ["Find verified emails", "null"],
|
|
1955
|
+
parse: (value) => value === "null" ? null : value,
|
|
1956
|
+
format: (value) => playDisplayNameSchema.parse(value) ?? "null"
|
|
1957
|
+
},
|
|
1958
|
+
ui: { control: "text" }
|
|
1943
1959
|
}
|
|
1944
1960
|
};
|
|
1945
1961
|
var playSettingsSchema = z.object(
|
|
@@ -2043,6 +2059,7 @@ function resolveField(key, command) {
|
|
|
2043
2059
|
return entry[1];
|
|
2044
2060
|
}
|
|
2045
2061
|
function printSettings(result, json, name) {
|
|
2062
|
+
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2046
2063
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2047
2064
|
printCommandEnvelope(
|
|
2048
2065
|
{
|
|
@@ -4295,7 +4312,7 @@ Example: deepline plays bootstrap people-email --from csv:data/leads.csv --using
|
|
|
4295
4312
|
`Unknown plays bootstrap template: ${rawTemplate}
|
|
4296
4313
|
Supported templates: ${formatPlayBootstrapTemplates()}|${MONITOR_BOOTSTRAP_TEMPLATE}` + (looksLikePlayReference ? `
|
|
4297
4314
|
|
|
4298
|
-
"${rawTemplate}" looks like an existing play reference or file, not a bootstrap template. Do not run plays bootstrap on prebuilt/<play-name>. Use "deepline plays run ${rawTemplate} --input '{...}'" to run it directly, "deepline
|
|
4315
|
+
"${rawTemplate}" looks like an existing play reference or file, not a bootstrap template. Do not run plays bootstrap on prebuilt/<play-name>. Use "deepline plays run ${rawTemplate} --input '{...}'" to run it directly, "deepline describe ${rawTemplate}" to inspect its contract, or "deepline plays get ${rawTemplate} --source --out scratchpad.play.ts" to clone/edit it.` : "")
|
|
4299
4316
|
);
|
|
4300
4317
|
}
|
|
4301
4318
|
return rawTemplate;
|
|
@@ -4798,7 +4815,7 @@ function generateSourceProviderInputObject(input) {
|
|
|
4798
4815
|
);
|
|
4799
4816
|
const lines = [
|
|
4800
4817
|
`${indent}// TODO: fill ${entity} source inputs for ${label}.`,
|
|
4801
|
-
`${indent}// Inspect: deepline
|
|
4818
|
+
`${indent}// Inspect: deepline describe ${label}`
|
|
4802
4819
|
];
|
|
4803
4820
|
for (const field of required) {
|
|
4804
4821
|
lines.push(`${indent}// ${field}: ${exampleValueComment(field)},`);
|
|
@@ -4891,7 +4908,7 @@ function safeIdentifier(value) {
|
|
|
4891
4908
|
return value.replace(/[^A-Za-z0-9_]+/g, "_");
|
|
4892
4909
|
}
|
|
4893
4910
|
function playInspectionComments(playRef, indent) {
|
|
4894
|
-
return [`${indent}// Inspect: deepline
|
|
4911
|
+
return [`${indent}// Inspect: deepline describe ${playRef}`];
|
|
4895
4912
|
}
|
|
4896
4913
|
function accessorExpression(base, field) {
|
|
4897
4914
|
return /^[A-Za-z_$][A-Za-z0-9_$]*$/.test(field) ? `${base}.${field}` : `${base}[${jsString(field)}]`;
|
|
@@ -5005,7 +5022,7 @@ function validateBootstrapRoutes(input) {
|
|
|
5005
5022
|
}
|
|
5006
5023
|
if (getterNamesFromTool(tool, "list").length === 0) {
|
|
5007
5024
|
throw new PlayBootstrapValidationError(
|
|
5008
|
-
`Cannot use ${tool.toolId} as a ${config.sourceEntity} source: it exposes no extracted list getters. Run: deepline
|
|
5025
|
+
`Cannot use ${tool.toolId} as a ${config.sourceEntity} source: it exposes no extracted list getters. Run: deepline describe ${tool.toolId}`
|
|
5009
5026
|
);
|
|
5010
5027
|
}
|
|
5011
5028
|
}
|
|
@@ -5034,7 +5051,7 @@ function validateBootstrapRoutes(input) {
|
|
|
5034
5051
|
}
|
|
5035
5052
|
if (getterNamesFromTool(tool, "value").length === 0) {
|
|
5036
5053
|
throw new PlayBootstrapValidationError(
|
|
5037
|
-
`Cannot use ${tool.toolId} as a ${finder}: it exposes no extracted value getters. Run: deepline
|
|
5054
|
+
`Cannot use ${tool.toolId} as a ${finder}: it exposes no extracted value getters. Run: deepline describe ${tool.toolId}`
|
|
5038
5055
|
);
|
|
5039
5056
|
}
|
|
5040
5057
|
}
|
|
@@ -6956,7 +6973,7 @@ function stringValue2(value) {
|
|
|
6956
6973
|
}
|
|
6957
6974
|
|
|
6958
6975
|
// src/cli/play-check-hints.ts
|
|
6959
|
-
var EXTRACTED_GETTER_ERROR_HINT = "Deepline hint: extractedValues/extractedLists .get() only works for declared Deepline getters listed by `deepline
|
|
6976
|
+
var EXTRACTED_GETTER_ERROR_HINT = "Deepline hint: extractedValues/extractedLists .get() only works for declared Deepline getters listed by `deepline describe <tool>`. Read tool-specific fields from `toolExecutionResult.toolResponse.rawV2` using the nesting shown in the response example, and use `toolExecutionResult.extractedLists.<name>.get()` for declared row/list outputs.";
|
|
6960
6977
|
var DATASET_API_HINT = "Deepline hint: PlayDataset is lazy, durable, and async-only. Use `.count()`, `.first()`, `.at(index)`, `.peek(n)`, `.materialize(limit)`, or async iteration; do not use `.length`, numeric indexing, spread, synchronous iteration, `.rows`, or `.toArray()`.";
|
|
6961
6978
|
var ROW_PROPERTY_HINT = "Deepline hint: this row type only contains fields produced by the CSV/schema and previous map steps. Check source column casing and the exact output field names from earlier steps before scaling.";
|
|
6962
6979
|
var TOOLS_EXECUTE_SIGNATURE_HINT = "Deepline hint: ctx.tools.execute requires a request object: `ctx.tools.execute({ id, tool, input, description })`. The stable `id` is required for logs, metadata, and result-cache identity; terminal cache reuse is based on play, tool, semantic input, auth scope, provider action version, and cache policy.";
|
|
@@ -9359,9 +9376,7 @@ function buildPlayReferenceNotFoundMessage(input) {
|
|
|
9359
9376
|
` deepline plays versions --name ${suggestion.reference} --json`
|
|
9360
9377
|
);
|
|
9361
9378
|
} else {
|
|
9362
|
-
lines.push(
|
|
9363
|
-
` deepline plays describe ${suggestion.reference} --json`
|
|
9364
|
-
);
|
|
9379
|
+
lines.push(` deepline describe ${suggestion.reference}`);
|
|
9365
9380
|
}
|
|
9366
9381
|
}
|
|
9367
9382
|
}
|
|
@@ -9611,7 +9626,7 @@ function parseJsonInput(raw, flag = "--input") {
|
|
|
9611
9626
|
parsed = JSON.parse(source);
|
|
9612
9627
|
} catch {
|
|
9613
9628
|
throw new DeeplineError(
|
|
9614
|
-
`${flag} expects a valid JSON object or @input.json. A bare file path is not JSON.${flag === "--input" ? " Use the field names and run example from plays check <file> or
|
|
9629
|
+
`${flag} expects a valid JSON object or @input.json. A bare file path is not JSON.${flag === "--input" ? " Use the field names and run example from plays check <file> or deepline describe <play>. --csv contacts.csv supplies input.csv only when the Play declares that field." : ""}`,
|
|
9615
9630
|
void 0,
|
|
9616
9631
|
"INVALID_JSON"
|
|
9617
9632
|
);
|
|
@@ -16738,6 +16753,42 @@ function csvColumnLines(csvInput) {
|
|
|
16738
16753
|
CSV_HEADER_MATCHING_NOTE
|
|
16739
16754
|
];
|
|
16740
16755
|
}
|
|
16756
|
+
function describedPlay(play) {
|
|
16757
|
+
const reference = formatPlayListReference(play);
|
|
16758
|
+
const starter = play.cloneEditStarter ?? buildCloneEditStarter(play);
|
|
16759
|
+
const csv = play.csvInput ?? {};
|
|
16760
|
+
const headers = isRecord3(csv.defaultColumns) ? csv.defaultColumns : {};
|
|
16761
|
+
const rowInputs = schemaFields(csv.rowInputSchema).map((field) => {
|
|
16762
|
+
const header = [headers[field.name]].flat().filter((name) => name && name !== field.name).join(" or ");
|
|
16763
|
+
return header ? {
|
|
16764
|
+
...field,
|
|
16765
|
+
description: [field.description, `CSV header: ${header}`].filter(Boolean).join(" - ")
|
|
16766
|
+
} : field;
|
|
16767
|
+
});
|
|
16768
|
+
const rowOutput = play.rowOutputSchema ?? {};
|
|
16769
|
+
const added = isRecord3(rowOutput.addedColumns) ? rowOutput.addedColumns : {};
|
|
16770
|
+
const rowOutputs = schemaFields(
|
|
16771
|
+
Object.keys(added).length ? { properties: added } : rowOutput
|
|
16772
|
+
).map((field) => ({ ...field, required: true }));
|
|
16773
|
+
return {
|
|
16774
|
+
kind: play.ownerType === "deepline" ? "prebuilt_play" : "custom_play",
|
|
16775
|
+
id: reference,
|
|
16776
|
+
...play.displayName && play.displayName !== play.name ? { displayName: play.displayName } : {},
|
|
16777
|
+
...play.description ? { description: play.description } : {},
|
|
16778
|
+
guidance: [],
|
|
16779
|
+
inputs: schemaFields(play.inputSchema),
|
|
16780
|
+
outputs: schemaFields(play.outputSchema),
|
|
16781
|
+
...rowInputs.length ? { rowInputs } : {},
|
|
16782
|
+
...rowOutputs.length ? { rowOutputs } : {},
|
|
16783
|
+
runner: {
|
|
16784
|
+
via: "play",
|
|
16785
|
+
reference,
|
|
16786
|
+
// A CSV play's run command is built by the server around its columns.
|
|
16787
|
+
...play.csvInput ? { cli: play.runCommand } : {}
|
|
16788
|
+
},
|
|
16789
|
+
...starter ? { source: starter.command } : {}
|
|
16790
|
+
};
|
|
16791
|
+
}
|
|
16741
16792
|
function printPlayDescription(play) {
|
|
16742
16793
|
const reference = formatPlayListReference(play);
|
|
16743
16794
|
const labels = [
|
|
@@ -16816,7 +16867,7 @@ function printPlayDescription(play) {
|
|
|
16816
16867
|
);
|
|
16817
16868
|
}
|
|
16818
16869
|
printScheduledPlayCapacity(play.activeScheduledPlays);
|
|
16819
|
-
console.log(` Describe: deepline
|
|
16870
|
+
console.log(` Describe: deepline describe ${reference}`);
|
|
16820
16871
|
console.log(` Run: ${play.runCommand}`);
|
|
16821
16872
|
const cloneEditStarter = play.cloneEditStarter ?? buildCloneEditStarter(play);
|
|
16822
16873
|
if (cloneEditStarter) {
|
|
@@ -16827,10 +16878,11 @@ function printPlayDescription(play) {
|
|
|
16827
16878
|
function summarizePlayGrepResult(play) {
|
|
16828
16879
|
const reference = formatPlayListReference(play);
|
|
16829
16880
|
return {
|
|
16830
|
-
name: play.
|
|
16881
|
+
name: play.name,
|
|
16882
|
+
...play.displayName ? { displayName: play.displayName } : {},
|
|
16831
16883
|
reference,
|
|
16832
16884
|
matches: play.matches ?? [],
|
|
16833
|
-
describe: `deepline
|
|
16885
|
+
describe: `deepline describe ${reference}`
|
|
16834
16886
|
};
|
|
16835
16887
|
}
|
|
16836
16888
|
function formatPlayGrepMatches(matches) {
|
|
@@ -16861,7 +16913,7 @@ async function handlePlayGrep(args) {
|
|
|
16861
16913
|
`
|
|
16862
16914
|
);
|
|
16863
16915
|
for (const result of results) {
|
|
16864
|
-
console.log(result.name);
|
|
16916
|
+
console.log(result.displayName?.trim() || result.name);
|
|
16865
16917
|
const matches = formatPlayGrepMatches(result.matches);
|
|
16866
16918
|
if (matches) console.log(` Matched: ${matches}`);
|
|
16867
16919
|
console.log(` Describe: ${result.describe}`);
|
|
@@ -16902,7 +16954,7 @@ async function handlePlayDescribe(args) {
|
|
|
16902
16954
|
})() : null;
|
|
16903
16955
|
const next = [
|
|
16904
16956
|
`deepline plays check ${playName}`,
|
|
16905
|
-
...definedName ? [`deepline
|
|
16957
|
+
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
16906
16958
|
];
|
|
16907
16959
|
if (argsWantJson(args)) {
|
|
16908
16960
|
printCompactJson({
|
|
@@ -17404,7 +17456,7 @@ Concepts:
|
|
|
17404
17456
|
|
|
17405
17457
|
Run and retrieve results:
|
|
17406
17458
|
1. Discover a Play: deepline plays search email --json
|
|
17407
|
-
Inspect its input contract: deepline
|
|
17459
|
+
Inspect its input contract: deepline describe <play-name>
|
|
17408
17460
|
2. Start and follow a new run: deepline plays run workflow.play.ts --csv contacts.csv
|
|
17409
17461
|
This example requires input.csv. Use the selected Play's actual input fields.
|
|
17410
17462
|
Run waits and shows progress by default; --no-wait returns immediately.
|
|
@@ -17439,7 +17491,7 @@ Authoring:
|
|
|
17439
17491
|
|
|
17440
17492
|
Common commands:
|
|
17441
17493
|
deepline search --type prebuilts email --json
|
|
17442
|
-
deepline
|
|
17494
|
+
deepline describe prebuilt/person-linkedin-to-email
|
|
17443
17495
|
deepline plays check prebuilt/name-and-domain-to-email-waterfall-batch
|
|
17444
17496
|
deepline plays run prebuilt/person-linkedin-to-email --input '{"linkedin_url":"..."}'
|
|
17445
17497
|
deepline plays get prebuilt/person-linkedin-to-email --json
|
|
@@ -17829,7 +17881,7 @@ Notes:
|
|
|
17829
17881
|
|
|
17830
17882
|
Examples:
|
|
17831
17883
|
deepline plays grep email --json
|
|
17832
|
-
deepline
|
|
17884
|
+
deepline describe prebuilt/company-to-contact
|
|
17833
17885
|
`
|
|
17834
17886
|
).option("--json", "Emit JSON output. Also automatic when stdout is piped").action(async (query, options) => {
|
|
17835
17887
|
process.exitCode = await handlePlayGrep([
|
|
@@ -17837,7 +17889,7 @@ Examples:
|
|
|
17837
17889
|
...options.json ? ["--json"] : []
|
|
17838
17890
|
]);
|
|
17839
17891
|
});
|
|
17840
|
-
play.command("describe [target]").usage("<target> [options]").description("Describe a play contract and how to run it.").addHelpText(
|
|
17892
|
+
const describeCommand = play.command("describe [target]", { hidden: true }).usage("<target> [options]").description("Describe a play contract and how to run it.").addHelpText(
|
|
17841
17893
|
"after",
|
|
17842
17894
|
`
|
|
17843
17895
|
Notes:
|
|
@@ -17855,11 +17907,33 @@ Examples:
|
|
|
17855
17907
|
).option("--compact", "Emit compact schemas").option(
|
|
17856
17908
|
"--json [fields]",
|
|
17857
17909
|
"JSON output; optionally select comma-separated dotted paths"
|
|
17858
|
-
)
|
|
17859
|
-
|
|
17860
|
-
|
|
17861
|
-
|
|
17862
|
-
|
|
17910
|
+
);
|
|
17911
|
+
addDescribeOptions(describeCommand, { json: false }).action(
|
|
17912
|
+
async (target, options) => {
|
|
17913
|
+
const ownView = () => handlePlayDescribe(describeArgs(target, options));
|
|
17914
|
+
const [flagText] = [options.json].filter(
|
|
17915
|
+
(value) => typeof value === "string"
|
|
17916
|
+
);
|
|
17917
|
+
const name = target || flagText;
|
|
17918
|
+
const selectsFields = Boolean(target && flagText);
|
|
17919
|
+
const own = !name || options.compact || selectsFields || looksLikeRunId(name) || isFileTarget(name) || looksLikeFilePath(name);
|
|
17920
|
+
if (own) {
|
|
17921
|
+
process.exitCode = await ownView();
|
|
17922
|
+
return;
|
|
17923
|
+
}
|
|
17924
|
+
const { describeAnything } = await import("./describe-PAUHJF7H.mjs");
|
|
17925
|
+
process.exitCode = await describeAnything(
|
|
17926
|
+
name,
|
|
17927
|
+
{
|
|
17928
|
+
...options,
|
|
17929
|
+
kinds: ["prebuilts", "custom"],
|
|
17930
|
+
json: Boolean(options.json)
|
|
17931
|
+
},
|
|
17932
|
+
// An unknown play keeps this command's suggestions.
|
|
17933
|
+
ownView
|
|
17934
|
+
);
|
|
17935
|
+
}
|
|
17936
|
+
);
|
|
17863
17937
|
play.command("versions").description("List revisions for a named play.").addHelpText(
|
|
17864
17938
|
"after",
|
|
17865
17939
|
`
|
|
@@ -18794,68 +18868,70 @@ async function handlePlayShareUnpublish(args) {
|
|
|
18794
18868
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|
|
18795
18869
|
return 0;
|
|
18796
18870
|
}
|
|
18871
|
+
|
|
18797
18872
|
export {
|
|
18798
|
-
|
|
18799
|
-
|
|
18800
|
-
|
|
18801
|
-
|
|
18802
|
-
|
|
18803
|
-
buildRunLogsText,
|
|
18804
|
-
buildRunPackageTextLines,
|
|
18805
|
-
buildStopAllDryRunTextLines,
|
|
18806
|
-
clampJsonPreviewText,
|
|
18807
|
-
compactPlayStatus,
|
|
18808
|
-
csvColumnLines,
|
|
18873
|
+
resolveDatasetByName,
|
|
18874
|
+
loadPlayBundler,
|
|
18875
|
+
parsePlayRunHeaderFlag,
|
|
18876
|
+
writePlayRunIdFile,
|
|
18877
|
+
preflightLocalFileInputs,
|
|
18809
18878
|
describeSleepUntil,
|
|
18810
|
-
exportPlayStatusRows,
|
|
18811
|
-
formatPlaySandboxRuntimeWarning,
|
|
18812
|
-
formatStepLabelFromNodeId,
|
|
18813
18879
|
getFinalStatusFromLiveEvent,
|
|
18880
|
+
formatStepLabelFromNodeId,
|
|
18881
|
+
getStepTransitionLineFromLiveEvent,
|
|
18814
18882
|
getProgressLinesFromLiveEvent,
|
|
18883
|
+
shouldPrintPlayProgressLine,
|
|
18815
18884
|
getRunningHeartbeatLine,
|
|
18816
|
-
|
|
18885
|
+
waitForPlayCompletionByWatch,
|
|
18886
|
+
startAndWaitForPlayCompletionByStream,
|
|
18887
|
+
truncateErrorForDisplay,
|
|
18888
|
+
clampJsonPreviewText,
|
|
18889
|
+
withTerminalPlayIdentity,
|
|
18890
|
+
compactPlayStatus,
|
|
18891
|
+
buildRunActivityTextLines,
|
|
18892
|
+
buildRunPackageTextLines,
|
|
18893
|
+
buildRunLaunch,
|
|
18894
|
+
buildPlayCompletionTextLines,
|
|
18895
|
+
resolvePlayRunOutputStatus,
|
|
18896
|
+
assertDatasetHasExportableRows,
|
|
18897
|
+
exportPlayStatusRows,
|
|
18898
|
+
parsePlayRunOptions,
|
|
18899
|
+
parsePlayPublishOptions,
|
|
18900
|
+
formatPlaySandboxRuntimeWarning,
|
|
18817
18901
|
handlePlayCheck,
|
|
18818
|
-
handlePlayDelete,
|
|
18819
|
-
handlePlayDescribe,
|
|
18820
|
-
handlePlayGet,
|
|
18821
|
-
handlePlayGrep,
|
|
18822
|
-
handlePlayList,
|
|
18823
|
-
handlePlayPin,
|
|
18824
|
-
handlePlayPublish,
|
|
18825
|
-
handlePlayRestore,
|
|
18826
18902
|
handlePlayRun,
|
|
18827
|
-
|
|
18828
|
-
handlePlaySharePublish,
|
|
18829
|
-
handlePlayShareRegenerate,
|
|
18830
|
-
handlePlayShareStatus,
|
|
18831
|
-
handlePlayShareUnpublish,
|
|
18832
|
-
handlePlayShareUpdate,
|
|
18833
|
-
handlePlayVersions,
|
|
18834
|
-
handleRunEventSearch,
|
|
18835
|
-
handleRunExport,
|
|
18903
|
+
renderRunOverviewText,
|
|
18836
18904
|
handleRunGet,
|
|
18837
18905
|
handleRunLifecycleStatus,
|
|
18906
|
+
handleRunsRerun,
|
|
18907
|
+
handleRunsList,
|
|
18908
|
+
handleRunTail,
|
|
18838
18909
|
handleRunLogs,
|
|
18910
|
+
selectRunLogTailPage,
|
|
18911
|
+
handleRunEventSearch,
|
|
18912
|
+
buildRunLogsText,
|
|
18913
|
+
resolveRunStopState,
|
|
18839
18914
|
handleRunStop,
|
|
18915
|
+
buildStopAllDryRunTextLines,
|
|
18840
18916
|
handleRunStopAll,
|
|
18841
|
-
|
|
18842
|
-
|
|
18843
|
-
|
|
18844
|
-
|
|
18845
|
-
|
|
18846
|
-
|
|
18847
|
-
|
|
18848
|
-
|
|
18917
|
+
handleRunExport,
|
|
18918
|
+
handlePlayGet,
|
|
18919
|
+
handlePlayVersions,
|
|
18920
|
+
PREBUILT_PLAY_TAG_KEYS,
|
|
18921
|
+
handlePlayList,
|
|
18922
|
+
handlePlayPin,
|
|
18923
|
+
csvColumnLines,
|
|
18924
|
+
describedPlay,
|
|
18925
|
+
handlePlayGrep,
|
|
18926
|
+
handlePlayDescribe,
|
|
18927
|
+
handlePlaySave,
|
|
18928
|
+
handlePlayPublish,
|
|
18929
|
+
handlePlayDelete,
|
|
18930
|
+
handlePlayRestore,
|
|
18849
18931
|
registerPlayCommands,
|
|
18850
|
-
|
|
18851
|
-
|
|
18852
|
-
|
|
18853
|
-
|
|
18854
|
-
|
|
18855
|
-
shouldPrintPlayProgressLine,
|
|
18856
|
-
startAndWaitForPlayCompletionByStream,
|
|
18857
|
-
truncateErrorForDisplay,
|
|
18858
|
-
waitForPlayCompletionByWatch,
|
|
18859
|
-
withTerminalPlayIdentity,
|
|
18860
|
-
writePlayRunIdFile
|
|
18932
|
+
handlePlayShareStatus,
|
|
18933
|
+
handlePlaySharePublish,
|
|
18934
|
+
handlePlayShareUpdate,
|
|
18935
|
+
handlePlayShareRegenerate,
|
|
18936
|
+
handlePlayShareUnpublish
|
|
18861
18937
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunk3KC45UVFjs = require('./chunk-3KC45UVF.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkOJ243ZA5js = require('./chunk-OJ243ZA5.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -54,7 +54,7 @@ function buildPlayContractCompatibility(input) {
|
|
|
54
54
|
artifactVersion: PLAY_ARTIFACT_VERSION,
|
|
55
55
|
runtimeBackend: _nullishCoalesce(_optionalChain([input, 'optionalAccess', _ => _.runtimeBackend]), () => ( null)),
|
|
56
56
|
toolErrorSchemaVersion: _nullishCoalesce(_optionalChain([input, 'optionalAccess', _2 => _2.toolErrorSchemaVersion]), () => ( _chunk7P5AA3SNjs.TOOL_EXECUTION_ERROR_SCHEMA_VERSION)),
|
|
57
|
-
authoringContractEdition: _nullishCoalesce(_optionalChain([input, 'optionalAccess', _3 => _3.authoringContractEdition]), () => (
|
|
57
|
+
authoringContractEdition: _nullishCoalesce(_optionalChain([input, 'optionalAccess', _3 => _3.authoringContractEdition]), () => ( _chunkOJ243ZA5js.PLAY_AUTHORING_CONTRACT_EDITION)),
|
|
58
58
|
toolResponseContract: _nullishCoalesce(_optionalChain([input, 'optionalAccess', _4 => _4.toolResponseContract]), () => ( _chunkS6R3OX7Bjs.RAW_V2_TOOL_RESPONSE_CONTRACT)),
|
|
59
59
|
toolResponseReceiptRevision: _chunkS6R3OX7Bjs.normalizeToolResponseReceiptRevision.call(void 0,
|
|
60
60
|
_nullishCoalesce(_optionalChain([input, 'optionalAccess', _5 => _5.toolResponseReceiptRevision]), () => ( _chunkS6R3OX7Bjs.RAW_V2_TOOL_RESPONSE_RECEIPT_REVISION))
|
|
@@ -2729,7 +2729,7 @@ async function bundlePlayFile(filePath, options) {
|
|
|
2729
2729
|
analysis.graphHash = sha256(
|
|
2730
2730
|
`${analysis.graphHash}
|
|
2731
2731
|
entry-export:${exportName}
|
|
2732
|
-
authoring-contract-edition:${
|
|
2732
|
+
authoring-contract-edition:${_chunkOJ243ZA5js.PLAY_AUTHORING_CONTRACT_EDITION}`
|
|
2733
2733
|
);
|
|
2734
2734
|
const sourceFiles = Object.fromEntries(
|
|
2735
2735
|
Object.entries(analysis.sourceFiles).map(([sourcePath, sourceCode]) => [
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NWFE4PGX.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZH7KTVAB.mjs";
|
|
7
7
|
import {
|
|
8
8
|
resolveConfig,
|
|
9
9
|
sdkCliStateDirPath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WPTUKXIF.mjs";
|
|
11
11
|
|
|
12
12
|
// src/cli/search-ref.ts
|
|
13
13
|
import { mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
@@ -75,6 +75,21 @@ function addSearchOptions(command) {
|
|
|
75
75
|
"What you are trying to accomplish: input you have -> result you need"
|
|
76
76
|
).option("--limit <count>", "Maximum ranked results to return (1-50)").option("--offset <count>", "Zero-based ranked result offset").option("--search-mode <mode>", "Ranked search mode: v1 or v2").option("--include-search-debug", "Include ranked search debug metadata").option("--json", "Emit JSON output instead of the readable default");
|
|
77
77
|
}
|
|
78
|
+
function pointAtDescribe(result) {
|
|
79
|
+
const old = /`deepline (tools|plays) describe [^`]*`/;
|
|
80
|
+
const render = result.render;
|
|
81
|
+
for (const section of render?.sections ?? []) {
|
|
82
|
+
if (!section.lines?.some((line) => old.test(line))) continue;
|
|
83
|
+
section.lines = [
|
|
84
|
+
"Run `deepline describe <id>` before executing a tool or running a play.",
|
|
85
|
+
...section.lines.filter((line) => !old.test(line))
|
|
86
|
+
];
|
|
87
|
+
}
|
|
88
|
+
const templates = result.commandTemplates;
|
|
89
|
+
for (const template of Object.values(templates ?? {})) {
|
|
90
|
+
if (template.describe) template.describe = "deepline describe <id>";
|
|
91
|
+
}
|
|
92
|
+
}
|
|
78
93
|
async function runSearch(queryInput, options, types, exclude = []) {
|
|
79
94
|
const query = queryInput?.trim() ?? "";
|
|
80
95
|
const searchTerms = options.searchTerms ?? options.search_terms;
|
|
@@ -95,6 +110,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
95
110
|
includeSearchDebug: Boolean(options.includeSearchDebug)
|
|
96
111
|
});
|
|
97
112
|
if (searchRef) rememberSearchRef(searchRef);
|
|
113
|
+
pointAtDescribe(result);
|
|
98
114
|
printCommandEnvelope(result, {
|
|
99
115
|
json: options.json === true
|
|
100
116
|
});
|
|
@@ -185,6 +201,10 @@ Examples:
|
|
|
185
201
|
|
|
186
202
|
export {
|
|
187
203
|
recentSearchRef,
|
|
204
|
+
SEARCH_TYPES,
|
|
205
|
+
parseTypes,
|
|
206
|
+
appendCsv,
|
|
207
|
+
pointAtDescribe,
|
|
188
208
|
registerDeprecatedSearchCommand,
|
|
189
209
|
registerSearchCommand
|
|
190
210
|
};
|
|
@@ -89,6 +89,7 @@ var PLAY_SQL_LISTENER_WHERE_OPERATOR_SET = new Set(
|
|
|
89
89
|
);
|
|
90
90
|
var PLAY_AUTHORING_BINDING_FIELDS = {
|
|
91
91
|
root: [
|
|
92
|
+
"displayName",
|
|
92
93
|
"billing",
|
|
93
94
|
"compatibility",
|
|
94
95
|
"cron",
|
|
@@ -185,6 +186,22 @@ var SqlListenerFilterScalarSchema = Type.Union([
|
|
|
185
186
|
Type.Null()
|
|
186
187
|
]);
|
|
187
188
|
var PLAY_AUTHORING_FIELD_REGISTRY = {
|
|
189
|
+
displayName: {
|
|
190
|
+
schema: Type.String(),
|
|
191
|
+
fixtures: {
|
|
192
|
+
valid: "Find verified emails",
|
|
193
|
+
invalid: 42,
|
|
194
|
+
absent: void 0,
|
|
195
|
+
unresolved: { expression: "displayName" },
|
|
196
|
+
edition1: "Legacy play"
|
|
197
|
+
},
|
|
198
|
+
referenceType: "string",
|
|
199
|
+
required: false,
|
|
200
|
+
resolution: "static-required",
|
|
201
|
+
issueCode: "play_authoring_binding_invalid",
|
|
202
|
+
description: "Optional human-readable Play name; empty uses the derived identifier.",
|
|
203
|
+
errorMessage: "displayName must be a static string."
|
|
204
|
+
},
|
|
188
205
|
description: {
|
|
189
206
|
schema: Type.String({ minLength: 1 }),
|
|
190
207
|
fixtures: {
|
|
@@ -1532,6 +1549,7 @@ var PLAY_AUTHORING_CLOUD_TYPE_DECLARATIONS = [
|
|
|
1532
1549
|
"};",
|
|
1533
1550
|
"export type PlayCronInput<TInput> = TInput extends readonly unknown[] ? never : TInput extends object ? TInput : never;",
|
|
1534
1551
|
"export type PlayBindings<TInput = Record<string, unknown>> = {",
|
|
1552
|
+
` displayName?: ${cloudReferenceType("displayName")};`,
|
|
1535
1553
|
` description?: ${cloudReferenceType("description")};`,
|
|
1536
1554
|
` compatibility?: { toolErrorSchemaVersion?: ${cloudReferenceType("compatibility.toolErrorSchemaVersion")}; toolResponseReceiptRevision?: ${cloudReferenceType("compatibility.toolResponseReceiptRevision")} };`,
|
|
1537
1555
|
` inline?: ${cloudReferenceType("inline")};`,
|
|
@@ -1610,7 +1628,7 @@ var PLAY_AUTHORING_CLOUD_TYPE_DECLARATIONS = [
|
|
|
1610
1628
|
" log(message: string, options?: { level?: 'debug' | 'info' | 'warn' | 'error'; context?: Readonly<Record<string, string | number | boolean>> }): void;",
|
|
1611
1629
|
` sleep(ms: ${cloudReferenceType("ctx.sleep.ms")}): Promise<void>;`,
|
|
1612
1630
|
"}",
|
|
1613
|
-
"export type DefinePlayConfig<TInput, TOutput extends PlayReturnObject> = { id: string; description?: string; input: PlayInputContract<TInput>; run: (ctx: DeeplinePlayRuntimeContext, input: TInput) => Promise<TOutput>; bindings?: PlayBindings<TInput>; billing?: PlayBindings<TInput>['billing']; runtime?: PlayBindings<TInput>['runtime']; compatibility?: PlayBindings<TInput>['compatibility'] };",
|
|
1631
|
+
"export type DefinePlayConfig<TInput, TOutput extends PlayReturnObject> = { id: string; displayName?: string; description?: string; input: PlayInputContract<TInput>; run: (ctx: DeeplinePlayRuntimeContext, input: TInput) => Promise<TOutput>; bindings?: PlayBindings<TInput>; billing?: PlayBindings<TInput>['billing']; runtime?: PlayBindings<TInput>['runtime']; compatibility?: PlayBindings<TInput>['compatibility'] };",
|
|
1614
1632
|
"export type DefinedPlay<TInput, TOutput extends PlayReturnObject> = ((ctx: DeeplinePlayRuntimeContext, input: TInput) => Promise<TOutput>) & { readonly name: string; readonly __inputType?: TInput; readonly __outputType?: TOutput; readonly bindings?: PlayBindings<TInput>; readonly runtime?: PlayBindings<TInput>['runtime']; readonly compatibility?: PlayBindings<TInput>['compatibility'] };",
|
|
1615
1633
|
"export type PlayHandlerInput<THandler> = THandler extends (context: DeeplinePlayRuntimeContext, input: infer TInput) => Promise<PlayReturnObject> ? TInput : never;",
|
|
1616
1634
|
"export type PlayHandlerOutput<THandler> = THandler extends (context: DeeplinePlayRuntimeContext, input: unknown) => Promise<infer TOutput extends PlayReturnObject> ? TOutput : never;"
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-GAMFK2ZP.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZH7KTVAB.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_SKILL_AGENTS,
|
|
9
9
|
KNOWN_SKILL_AGENTS,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
sdkCliStateDirPath,
|
|
23
23
|
skillsAgentPathSegment,
|
|
24
24
|
writeSdkSkillsLocalVersion
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-WPTUKXIF.mjs";
|
|
26
26
|
import {
|
|
27
27
|
DeeplineError
|
|
28
28
|
} from "./chunk-NXGCO4JB.mjs";
|