deepline 0.3.2 → 0.3.4
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/plays/bundle-play-file.ts +1 -1
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +3 -3
- package/dist/cli/index.js +12 -2
- package/dist/cli/index.mjs +12 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/plays/bundle-play-file.mjs +4 -4
- package/package.json +1 -1
|
@@ -40,7 +40,7 @@ export type {
|
|
|
40
40
|
|
|
41
41
|
export { extractDefinedPlayName } from '../../../shared_libs/plays/bundling/index.js';
|
|
42
42
|
|
|
43
|
-
const PLAY_BUNDLE_CACHE_VERSION =
|
|
43
|
+
const PLAY_BUNDLE_CACHE_VERSION = 35;
|
|
44
44
|
const MODULE_DIR = dirname(fileURLToPath(import.meta.url));
|
|
45
45
|
const SDK_PACKAGE_ROOT = resolve(MODULE_DIR, '..', '..');
|
|
46
46
|
const SOURCE_REPO_ROOT = resolve(SDK_PACKAGE_ROOT, '..');
|
|
@@ -192,7 +192,7 @@ export const SDK_RELEASE = {
|
|
|
192
192
|
// 0.3.0 introduces raw-v2: complete scrubbed provider responses are
|
|
193
193
|
// available at toolResponse.rawV2 while toolResponse.raw and all declared
|
|
194
194
|
// getters keep their established compatibility behavior.
|
|
195
|
-
version: '0.3.
|
|
195
|
+
version: '0.3.4',
|
|
196
196
|
updateSummary:
|
|
197
197
|
'New raw-v2 tool responses preserve complete scrubbed provider envelopes at toolResponse.rawV2, including JSON:API included resources, links, cursors, and totals. Existing toolResponse.raw and declared getters keep working unchanged.',
|
|
198
198
|
contracts: {
|
|
@@ -60,7 +60,7 @@ import { PLAY_AUTHORING_CONTRACT_EDITION } from '../authoring-contract';
|
|
|
60
60
|
// of the artifact bytes. Do not reuse a local bundle cached before either
|
|
61
61
|
// compatibility selection or docflow instrumentation entered graph analysis.
|
|
62
62
|
// Keep this aligned with the app and SDK adapters' cache namespace.
|
|
63
|
-
const PLAY_BUNDLE_CACHE_VERSION =
|
|
63
|
+
const PLAY_BUNDLE_CACHE_VERSION = 35;
|
|
64
64
|
const PLAY_ARTIFACT_CACHE_DIR = join(
|
|
65
65
|
tmpdir(),
|
|
66
66
|
`deepline-play-artifacts-v${PLAY_BUNDLE_CACHE_VERSION}`,
|
|
@@ -1508,7 +1508,7 @@ function docflowObservedExpression(input: {
|
|
|
1508
1508
|
const callback = input.awaitsResult
|
|
1509
1509
|
? `async()=>(${input.expression})`
|
|
1510
1510
|
: `()=>(${input.expression})`;
|
|
1511
|
-
const observation =
|
|
1511
|
+
const observation = `((runtimeContext,inputCaptures,execute)=>typeof runtimeContext.__deeplineObserveDocflowNode==="function"?runtimeContext.__deeplineObserveDocflowNode(${JSON.stringify(input.nodeId)},inputCaptures,${JSON.stringify(input.outputs)},execute):execute())(${input.contextName},${docflowInputCaptureSource(input.inputs)},${callback})`;
|
|
1512
1512
|
return input.awaitsResult ? `await ${observation}` : observation;
|
|
1513
1513
|
}
|
|
1514
1514
|
|
|
@@ -1624,7 +1624,7 @@ export function instrumentPlayDocflowRuntimeHits(sourceCode: string): string {
|
|
|
1624
1624
|
replacements.push({
|
|
1625
1625
|
start: lineStart + indentationLength,
|
|
1626
1626
|
end: lineStart + indentationLength,
|
|
1627
|
-
value: `await ${contextName}.__deeplineDocflowHit(${JSON.stringify(binding.nodeId)}); `,
|
|
1627
|
+
value: `await (typeof ${contextName}.__deeplineDocflowHit==="function"?${contextName}.__deeplineDocflowHit(${JSON.stringify(binding.nodeId)}):void 0); `,
|
|
1628
1628
|
});
|
|
1629
1629
|
}
|
|
1630
1630
|
}
|
package/dist/cli/index.js
CHANGED
|
@@ -1047,7 +1047,7 @@ var SDK_RELEASE = {
|
|
|
1047
1047
|
// 0.3.0 introduces raw-v2: complete scrubbed provider responses are
|
|
1048
1048
|
// available at toolResponse.rawV2 while toolResponse.raw and all declared
|
|
1049
1049
|
// getters keep their established compatibility behavior.
|
|
1050
|
-
version: "0.3.
|
|
1050
|
+
version: "0.3.4",
|
|
1051
1051
|
updateSummary: "New raw-v2 tool responses preserve complete scrubbed provider envelopes at toolResponse.rawV2, including JSON:API included resources, links, cursors, and totals. Existing toolResponse.raw and declared getters keep working unchanged.",
|
|
1052
1052
|
contracts: {
|
|
1053
1053
|
api: {
|
|
@@ -16912,7 +16912,7 @@ function collectInlineSecretFindings(sourceCode) {
|
|
|
16912
16912
|
var MAX_PLAY_BUNDLE_BYTES = 30 * 1024 * 1024;
|
|
16913
16913
|
|
|
16914
16914
|
// ../shared_libs/plays/bundling/index.ts
|
|
16915
|
-
var PLAY_BUNDLE_CACHE_VERSION =
|
|
16915
|
+
var PLAY_BUNDLE_CACHE_VERSION = 35;
|
|
16916
16916
|
var PLAY_ARTIFACT_CACHE_DIR = (0, import_node_path11.join)(
|
|
16917
16917
|
(0, import_node_os8.tmpdir)(),
|
|
16918
16918
|
`deepline-play-artifacts-v${PLAY_BUNDLE_CACHE_VERSION}`
|
|
@@ -24471,6 +24471,16 @@ function printPlayDescription(play) {
|
|
|
24471
24471
|
console.log(` ${line}`);
|
|
24472
24472
|
}
|
|
24473
24473
|
}
|
|
24474
|
+
const configuredTriggers = [
|
|
24475
|
+
play.triggerStatus?.cron ? `cron=${play.triggerStatus.cron}` : null,
|
|
24476
|
+
play.triggerStatus?.webhook ? `webhook=${play.triggerStatus.webhook}` : null
|
|
24477
|
+
].filter(Boolean);
|
|
24478
|
+
if (configuredTriggers.length > 0) {
|
|
24479
|
+
console.log(` Triggers: ${configuredTriggers.join(", ")}`);
|
|
24480
|
+
}
|
|
24481
|
+
if (play.triggerStatus?.blockedReason) {
|
|
24482
|
+
console.log(` Trigger issue: ${play.triggerStatus.blockedReason}`);
|
|
24483
|
+
}
|
|
24474
24484
|
console.log(` Describe: deepline plays describe ${reference} --json`);
|
|
24475
24485
|
console.log(` Run: ${play.runCommand}`);
|
|
24476
24486
|
const cloneEditStarter = play.cloneEditStarter ?? buildCloneEditStarter(play);
|
package/dist/cli/index.mjs
CHANGED
|
@@ -1033,7 +1033,7 @@ var SDK_RELEASE = {
|
|
|
1033
1033
|
// 0.3.0 introduces raw-v2: complete scrubbed provider responses are
|
|
1034
1034
|
// available at toolResponse.rawV2 while toolResponse.raw and all declared
|
|
1035
1035
|
// getters keep their established compatibility behavior.
|
|
1036
|
-
version: "0.3.
|
|
1036
|
+
version: "0.3.4",
|
|
1037
1037
|
updateSummary: "New raw-v2 tool responses preserve complete scrubbed provider envelopes at toolResponse.rawV2, including JSON:API included resources, links, cursors, and totals. Existing toolResponse.raw and declared getters keep working unchanged.",
|
|
1038
1038
|
contracts: {
|
|
1039
1039
|
api: {
|
|
@@ -16965,7 +16965,7 @@ function collectInlineSecretFindings(sourceCode) {
|
|
|
16965
16965
|
var MAX_PLAY_BUNDLE_BYTES = 30 * 1024 * 1024;
|
|
16966
16966
|
|
|
16967
16967
|
// ../shared_libs/plays/bundling/index.ts
|
|
16968
|
-
var PLAY_BUNDLE_CACHE_VERSION =
|
|
16968
|
+
var PLAY_BUNDLE_CACHE_VERSION = 35;
|
|
16969
16969
|
var PLAY_ARTIFACT_CACHE_DIR = join7(
|
|
16970
16970
|
tmpdir2(),
|
|
16971
16971
|
`deepline-play-artifacts-v${PLAY_BUNDLE_CACHE_VERSION}`
|
|
@@ -24531,6 +24531,16 @@ function printPlayDescription(play) {
|
|
|
24531
24531
|
console.log(` ${line}`);
|
|
24532
24532
|
}
|
|
24533
24533
|
}
|
|
24534
|
+
const configuredTriggers = [
|
|
24535
|
+
play.triggerStatus?.cron ? `cron=${play.triggerStatus.cron}` : null,
|
|
24536
|
+
play.triggerStatus?.webhook ? `webhook=${play.triggerStatus.webhook}` : null
|
|
24537
|
+
].filter(Boolean);
|
|
24538
|
+
if (configuredTriggers.length > 0) {
|
|
24539
|
+
console.log(` Triggers: ${configuredTriggers.join(", ")}`);
|
|
24540
|
+
}
|
|
24541
|
+
if (play.triggerStatus?.blockedReason) {
|
|
24542
|
+
console.log(` Trigger issue: ${play.triggerStatus.blockedReason}`);
|
|
24543
|
+
}
|
|
24534
24544
|
console.log(` Describe: deepline plays describe ${reference} --json`);
|
|
24535
24545
|
console.log(` Run: ${play.runCommand}`);
|
|
24536
24546
|
const cloneEditStarter = play.cloneEditStarter ?? buildCloneEditStarter(play);
|
package/dist/index.js
CHANGED
|
@@ -783,7 +783,7 @@ var SDK_RELEASE = {
|
|
|
783
783
|
// 0.3.0 introduces raw-v2: complete scrubbed provider responses are
|
|
784
784
|
// available at toolResponse.rawV2 while toolResponse.raw and all declared
|
|
785
785
|
// getters keep their established compatibility behavior.
|
|
786
|
-
version: "0.3.
|
|
786
|
+
version: "0.3.4",
|
|
787
787
|
updateSummary: "New raw-v2 tool responses preserve complete scrubbed provider envelopes at toolResponse.rawV2, including JSON:API included resources, links, cursors, and totals. Existing toolResponse.raw and declared getters keep working unchanged.",
|
|
788
788
|
contracts: {
|
|
789
789
|
api: {
|
package/dist/index.mjs
CHANGED
|
@@ -706,7 +706,7 @@ var SDK_RELEASE = {
|
|
|
706
706
|
// 0.3.0 introduces raw-v2: complete scrubbed provider responses are
|
|
707
707
|
// available at toolResponse.rawV2 while toolResponse.raw and all declared
|
|
708
708
|
// getters keep their established compatibility behavior.
|
|
709
|
-
version: "0.3.
|
|
709
|
+
version: "0.3.4",
|
|
710
710
|
updateSummary: "New raw-v2 tool responses preserve complete scrubbed provider envelopes at toolResponse.rawV2, including JSON:API included resources, links, cursors, and totals. Existing toolResponse.raw and declared getters keep working unchanged.",
|
|
711
711
|
contracts: {
|
|
712
712
|
api: {
|
|
@@ -5245,7 +5245,7 @@ function validatePlaySourceFilesHaveNoInlineSecrets(sourceFiles) {
|
|
|
5245
5245
|
var MAX_PLAY_BUNDLE_BYTES = 30 * 1024 * 1024;
|
|
5246
5246
|
|
|
5247
5247
|
// ../shared_libs/plays/bundling/index.ts
|
|
5248
|
-
var PLAY_BUNDLE_CACHE_VERSION =
|
|
5248
|
+
var PLAY_BUNDLE_CACHE_VERSION = 35;
|
|
5249
5249
|
var PLAY_ARTIFACT_CACHE_DIR = join(
|
|
5250
5250
|
tmpdir(),
|
|
5251
5251
|
`deepline-play-artifacts-v${PLAY_BUNDLE_CACHE_VERSION}`
|
|
@@ -6054,7 +6054,7 @@ function docflowObservationTarget(statement) {
|
|
|
6054
6054
|
}
|
|
6055
6055
|
function docflowObservedExpression(input) {
|
|
6056
6056
|
const callback = input.awaitsResult ? `async()=>(${input.expression})` : `()=>(${input.expression})`;
|
|
6057
|
-
const observation =
|
|
6057
|
+
const observation = `((runtimeContext,inputCaptures,execute)=>typeof runtimeContext.__deeplineObserveDocflowNode==="function"?runtimeContext.__deeplineObserveDocflowNode(${JSON.stringify(input.nodeId)},inputCaptures,${JSON.stringify(input.outputs)},execute):execute())(${input.contextName},${docflowInputCaptureSource(input.inputs)},${callback})`;
|
|
6058
6058
|
return input.awaitsResult ? `await ${observation}` : observation;
|
|
6059
6059
|
}
|
|
6060
6060
|
function expressionContainsTopLevelAwait(expression) {
|
|
@@ -6106,7 +6106,7 @@ function instrumentPlayDocflowRuntimeHits(sourceCode) {
|
|
|
6106
6106
|
replacements.push({
|
|
6107
6107
|
start: lineStart + indentationLength,
|
|
6108
6108
|
end: lineStart + indentationLength,
|
|
6109
|
-
value: `await ${contextName}.__deeplineDocflowHit(${JSON.stringify(binding.nodeId)}); `
|
|
6109
|
+
value: `await (typeof ${contextName}.__deeplineDocflowHit==="function"?${contextName}.__deeplineDocflowHit(${JSON.stringify(binding.nodeId)}):void 0); `
|
|
6110
6110
|
});
|
|
6111
6111
|
}
|
|
6112
6112
|
}
|
|
@@ -7143,7 +7143,7 @@ async function discoverPackagedLocalFiles(entryFile) {
|
|
|
7143
7143
|
}
|
|
7144
7144
|
|
|
7145
7145
|
// src/plays/bundle-play-file.ts
|
|
7146
|
-
var PLAY_BUNDLE_CACHE_VERSION2 =
|
|
7146
|
+
var PLAY_BUNDLE_CACHE_VERSION2 = 35;
|
|
7147
7147
|
var MODULE_DIR = dirname3(fileURLToPath(import.meta.url));
|
|
7148
7148
|
var SDK_PACKAGE_ROOT = resolve3(MODULE_DIR, "..", "..");
|
|
7149
7149
|
var SOURCE_REPO_ROOT = resolve3(SDK_PACKAGE_ROOT, "..");
|