deepline 0.3.324 → 0.3.325

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.
Files changed (109) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/sdk/src/types.ts +6 -0
  3. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +2 -0
  4. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +7 -1
  5. package/dist/bundling-sources/shared_libs/play-runtime/runtime-actions.ts +1 -0
  6. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +5 -0
  7. package/dist/bundling-sources/shared_libs/plays/artifact-types.ts +9 -0
  8. package/dist/cli/{auth-6KWNR6AI.mjs → auth-PIZESRPC.mjs} +4 -4
  9. package/dist/cli/auth-RXCD4GOV.js +31 -0
  10. package/dist/cli/{billing-CLLWHIAT.js → billing-DQKFCQV5.js} +70 -70
  11. package/dist/cli/{billing-VQ2NUJLB.mjs → billing-HSL6VTCM.mjs} +4 -4
  12. package/dist/cli/{chunk-5QZFWY7C.mjs → chunk-5FHU7TV4.mjs} +2 -2
  13. package/dist/cli/{chunk-LHJKYMTS.mjs → chunk-5TYU3UIS.mjs} +1 -1
  14. package/dist/cli/{chunk-EHSI2DMO.mjs → chunk-6RMKHN7S.mjs} +4 -4
  15. package/dist/cli/{chunk-DO2VA5UP.mjs → chunk-6VZDSBK6.mjs} +2 -2
  16. package/dist/cli/{chunk-U2RPP53P.mjs → chunk-7MD453WV.mjs} +6 -6
  17. package/dist/cli/{chunk-I7RLL7LN.mjs → chunk-AQUNQJ5Y.mjs} +1 -1
  18. package/dist/cli/{chunk-PAA4FYCF.js → chunk-CV5GDCKN.js} +15 -15
  19. package/dist/cli/{chunk-EXKRHZRG.js → chunk-DLW7X2UK.js} +220 -220
  20. package/dist/cli/{chunk-NIOFMRYW.mjs → chunk-H5TJBRSC.mjs} +5 -5
  21. package/dist/cli/{chunk-GMO3NBE2.js → chunk-HPTQEWCF.js} +60 -60
  22. package/dist/cli/{chunk-2UQUOUAW.js → chunk-HUKWYHBG.js} +2 -2
  23. package/dist/cli/{chunk-IXYR65PW.js → chunk-K7FC5IUU.js} +1 -1
  24. package/dist/cli/{chunk-QM2Z4FQF.js → chunk-KZNFYOHX.js} +6 -6
  25. package/dist/cli/{chunk-N5E66DP3.js → chunk-MNKDSR2J.js} +6 -6
  26. package/dist/cli/{chunk-HHZDWBSQ.mjs → chunk-NWBARG3F.mjs} +1 -1
  27. package/dist/cli/{chunk-G4F2AIQ5.js → chunk-OOPSX57I.js} +6 -6
  28. package/dist/cli/{chunk-NQJQ3CLX.mjs → chunk-OPERWJR6.mjs} +3 -3
  29. package/dist/cli/{chunk-V5PA6TCT.js → chunk-PBNZXZCW.js} +48 -48
  30. package/dist/cli/{chunk-D5YJHGST.js → chunk-PVDQ55PS.js} +4 -4
  31. package/dist/cli/{chunk-5CQ554BM.mjs → chunk-PWV2M4LW.mjs} +1 -1
  32. package/dist/cli/{chunk-GROXVGGW.js → chunk-QQ2FG5W3.js} +6 -6
  33. package/dist/cli/{chunk-NC2ZXG2Y.js → chunk-UYFWTIKF.js} +26 -26
  34. package/dist/cli/{chunk-AKM5JVPG.mjs → chunk-WW4XZIVM.mjs} +2 -2
  35. package/dist/cli/{chunk-3ZKAKQYC.mjs → chunk-XIVUB36F.mjs} +1 -1
  36. package/dist/cli/{chunk-TJGJTB5T.mjs → chunk-YE3O2UHM.mjs} +1 -1
  37. package/dist/cli/{chunk-TZZNI2A4.js → chunk-YXRPWMGN.js} +50 -50
  38. package/dist/cli/client-562MULXK.js +20 -0
  39. package/dist/cli/{client-VHUKTDAZ.mjs → client-57SR4KVM.mjs} +3 -3
  40. package/dist/cli/{csv-5MZY7HU5.js → csv-5DJSC6BD.js} +12 -12
  41. package/dist/cli/{csv-7DA4APB6.mjs → csv-G2FRMOXL.mjs} +3 -3
  42. package/dist/cli/{db-ICG3FUVE.js → db-NVO7P4VO.js} +20 -20
  43. package/dist/cli/{db-7UPW3N5U.mjs → db-WWZEXM3N.mjs} +4 -4
  44. package/dist/cli/{describe-ZAPGM5ND.mjs → describe-26OMF3A4.mjs} +8 -8
  45. package/dist/cli/{describe-VDRY2JCE.js → describe-M26LHDBQ.js} +15 -15
  46. package/dist/cli/{executions-TK3C2FAQ.mjs → executions-2LLHY3IL.mjs} +4 -4
  47. package/dist/cli/{executions-D5GYCY3A.js → executions-KI47LPKE.js} +6 -6
  48. package/dist/cli/{feedback-PZAZZUXF.js → feedback-2Y26C2BZ.js} +6 -6
  49. package/dist/cli/{feedback-T4EIP5QR.mjs → feedback-O26VL2OF.mjs} +3 -3
  50. package/dist/cli/git-KGPX5YPD.js +23 -0
  51. package/dist/cli/{git-WBFWIVO5.mjs → git-UVPGZN3K.mjs} +4 -4
  52. package/dist/cli/index.js +75 -75
  53. package/dist/cli/index.mjs +31 -31
  54. package/dist/cli/{legacy-noops-LRBJWXRK.js → legacy-noops-H6Y3SEVB.js} +7 -7
  55. package/dist/cli/{legacy-noops-DUCK7OKN.mjs → legacy-noops-IK5CH72U.mjs} +4 -4
  56. package/dist/cli/{monitors-7S2SL62G.js → monitors-JL6TTQCI.js} +85 -85
  57. package/dist/cli/{monitors-WYH5AQIO.mjs → monitors-SFVVMAJT.mjs} +4 -4
  58. package/dist/cli/{org-EQNGGHPV.js → org-OVMAZCQS.js} +60 -60
  59. package/dist/cli/{org-XCSMLTUW.mjs → org-SSDONL57.mjs} +4 -4
  60. package/dist/cli/play-3DB4MSHN.js +152 -0
  61. package/dist/cli/{play-A5ISFBJM.mjs → play-X6NPACUO.mjs} +7 -7
  62. package/dist/cli/{providers-DR2CLD3N.js → providers-E24JDWSR.js} +7 -7
  63. package/dist/cli/{providers-KHTZFQ5I.mjs → providers-ONUBYYY4.mjs} +4 -4
  64. package/dist/cli/{quickstart-KT4LKORA.mjs → quickstart-B7NIXACV.mjs} +3 -3
  65. package/dist/cli/{quickstart-NIRWI6YU.js → quickstart-TB7C3DLG.js} +5 -5
  66. package/dist/cli/{search-WCEXPBAT.mjs → search-N3QUIATW.mjs} +5 -5
  67. package/dist/cli/search-NJ637YGQ.js +26 -0
  68. package/dist/cli/{secrets-QSFEZGVE.js → secrets-CPCVFDYB.js} +13 -13
  69. package/dist/cli/{secrets-TN7DW3QR.mjs → secrets-V7Z4M67T.mjs} +4 -4
  70. package/dist/cli/{sessions-LJS6W67T.js → sessions-E4FIZLQP.js} +5 -5
  71. package/dist/cli/{sessions-WSE5FN4H.mjs → sessions-PDOBKAKO.mjs} +4 -4
  72. package/dist/cli/{settings-Z3V53A6J.mjs → settings-QYHYHZDI.mjs} +7 -7
  73. package/dist/cli/{settings-FGS3VYJN.js → settings-UVM2WDE4.js} +74 -74
  74. package/dist/cli/{setup-ZA234HEY.js → setup-3JFAXQLJ.js} +41 -41
  75. package/dist/cli/{setup-GMH4VJS3.mjs → setup-4RLAETDW.mjs} +6 -6
  76. package/dist/cli/skills-BYRYG64R.js +28 -0
  77. package/dist/cli/{skills-7G2RZMYH.mjs → skills-ZX2JSWOZ.mjs} +4 -4
  78. package/dist/cli/{tools-7EE4BGXO.mjs → tools-EGXCVIPJ.mjs} +6 -6
  79. package/dist/cli/tools-TAWOAY5X.js +38 -0
  80. package/dist/cli/{update-O5QEWS7K.mjs → update-7FEKRQFE.mjs} +6 -6
  81. package/dist/cli/update-H24GEBXM.js +28 -0
  82. package/dist/cli/{workflow-M5PAAW3O.js → workflow-54VCKIG2.js} +15 -15
  83. package/dist/cli/{workflow-KE54RUTR.mjs → workflow-7V7TTTKK.mjs} +5 -5
  84. package/dist/{client-BV68GMPo.d.ts → client-Bb4Jjzmj.d.ts} +7 -1
  85. package/dist/{client-D9ACjiRC.d.mts → client-COa-3GHK.d.mts} +7 -1
  86. package/dist/{compiler-manifest-BXcZ4P4W.d.mts → compiler-manifest-CsnWj-AK.d.mts} +6 -0
  87. package/dist/{compiler-manifest-BXcZ4P4W.d.ts → compiler-manifest-CsnWj-AK.d.ts} +6 -0
  88. package/dist/index.d.mts +4 -4
  89. package/dist/index.d.ts +4 -4
  90. package/dist/index.js +6 -6
  91. package/dist/index.mjs +3 -3
  92. package/dist/install-integrity.json +78 -78
  93. package/dist/plays/bundle-play-file.d.mts +2 -2
  94. package/dist/plays/bundle-play-file.d.ts +2 -2
  95. package/dist/plays/run-request.d.mts +2 -2
  96. package/dist/plays/run-request.d.ts +2 -2
  97. package/dist/release.d.mts +1 -1
  98. package/dist/release.d.ts +1 -1
  99. package/dist/release.js +2 -2
  100. package/dist/release.mjs +1 -1
  101. package/package.json +1 -1
  102. package/dist/cli/auth-LKSTC3YV.js +0 -31
  103. package/dist/cli/client-WMSTRUGP.js +0 -20
  104. package/dist/cli/git-73N6EUZ3.js +0 -23
  105. package/dist/cli/play-CLC2Z5SO.js +0 -152
  106. package/dist/cli/search-DM7IQS5F.js +0 -26
  107. package/dist/cli/skills-6APAQV6W.js +0 -28
  108. package/dist/cli/tools-EPYUFWPB.js +0 -38
  109. package/dist/cli/update-FPVX3XJC.js +0 -28
@@ -200,7 +200,7 @@ export const SDK_RELEASE = {
200
200
  // getters keep their established compatibility behavior.
201
201
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
202
202
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
203
- version: '0.3.324',
203
+ version: '0.3.325',
204
204
  updateSummary:
205
205
  'Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.',
206
206
  packageCapabilities: {
@@ -124,6 +124,12 @@ export interface CustomerDbColumn {
124
124
  * query and selected customer tables.
125
125
  */
126
126
  export interface CustomerDbQueryResult {
127
+ /** Present for explicitly keyed SQL; recovery keeps the original completion time. */
128
+ operation?: {
129
+ operation_key: string;
130
+ completed_at_ms: number;
131
+ source: 'executed' | 'operation_recovery';
132
+ };
127
133
  /** This query reads the current mutable customer database, not one run snapshot. */
128
134
  scope?: { kind: 'database'; mutability: 'current' };
129
135
  /** Database command executed by the query endpoint. */
@@ -241,6 +241,7 @@ type RuntimeApiRequest =
241
241
  }
242
242
  | {
243
243
  action: 'launch_play_async';
244
+ resolveImportedArtifact?: boolean;
244
245
  key: string;
245
246
  invocationKey: string;
246
247
  playRef: string;
@@ -2725,6 +2726,7 @@ export async function recordFirstClaimLatencyViaAppRuntime(
2725
2726
  export async function launchPlayAsyncViaAppRuntime(
2726
2727
  context: WorkerRuntimeApiContext,
2727
2728
  input: {
2729
+ resolveImportedArtifact?: boolean;
2728
2730
  key: string;
2729
2731
  invocationKey: string;
2730
2732
  playRef: string;
@@ -2139,6 +2139,11 @@ async function run(
2139
2139
  const runtimeInput = config.input ?? {};
2140
2140
  const runtimeInputObject: Record<string, unknown> =
2141
2141
  playRunInputObjectView(runtimeInput);
2142
+ const importedArtifactOptions = (playRef: string) =>
2143
+ config.artifact.importedPlayArtifacts &&
2144
+ Object.hasOwn(config.artifact.importedPlayArtifacts, playRef)
2145
+ ? { resolveImportedArtifact: true as const }
2146
+ : {};
2142
2147
  const resolveChildPlay =
2143
2148
  createRunScopedChildPlayResolver<ResolvedPlayExecution>({
2144
2149
  resolvePlay: async (playRef) => {
@@ -2157,6 +2162,7 @@ async function run(
2157
2162
  userEmail: config.context.userEmail,
2158
2163
  },
2159
2164
  playRef,
2165
+ importedArtifactOptions(playRef),
2160
2166
  );
2161
2167
  if (resolved?.resolutionDiagnostics) {
2162
2168
  emitWorkerLog(
@@ -2284,7 +2290,7 @@ async function run(
2284
2290
  ...appRuntimeApiContext,
2285
2291
  requestTimeoutMs: RUNNER_RUNTIME_CONTROL_REQUEST_TIMEOUT_MS,
2286
2292
  },
2287
- request,
2293
+ { ...request, ...importedArtifactOptions(request.playRef) },
2288
2294
  ),
2289
2295
  onBatchComplete: (checkpoint) => {
2290
2296
  emitRunnerEvent(
@@ -275,6 +275,7 @@ export type RuntimeReceiptFailure = RuntimeReceiptLease & {
275
275
  export type RuntimePlayResolutionAction = {
276
276
  action: 'resolve_play';
277
277
  playRef: string;
278
+ resolveImportedArtifact?: boolean;
278
279
  };
279
280
 
280
281
  export type RuntimeResultsAction = {
@@ -540,6 +540,7 @@ type RuntimeApiActionRequest =
540
540
  | {
541
541
  action: 'resolve_play';
542
542
  playRef: string;
543
+ resolveImportedArtifact?: boolean;
543
544
  acceptRetainedPipelineGraph?: boolean;
544
545
  }
545
546
  | {
@@ -3675,6 +3676,7 @@ async function writeRuntimeRowsWithProvisioningRetry(
3675
3676
  export async function resolveRuntimeReferencedPlay(
3676
3677
  context: RuntimeApiContext,
3677
3678
  playRef: string,
3679
+ options?: { resolveImportedArtifact?: boolean },
3678
3680
  ): Promise<ResolvedRuntimePlay | null> {
3679
3681
  const wire = await postRuntimeApi<{
3680
3682
  play: ResolvedRuntimePlay | null;
@@ -3682,6 +3684,9 @@ export async function resolveRuntimeReferencedPlay(
3682
3684
  }>(context, {
3683
3685
  action: 'resolve_play',
3684
3686
  playRef,
3687
+ ...(options?.resolveImportedArtifact === true
3688
+ ? { resolveImportedArtifact: true }
3689
+ : {}),
3685
3690
  acceptRetainedPipelineGraph: true,
3686
3691
  });
3687
3692
  const response = {
@@ -62,6 +62,15 @@ export type PlayBundleArtifact = {
62
62
  sourceMap: string;
63
63
  importPolicy: PlayImportPolicy;
64
64
  compatibility: PlayArtifactCompatibility;
65
+ /** Immutable imported execution closure; absent artifacts retain named live resolution. */
66
+ importedPlayArtifacts?: Record<
67
+ string,
68
+ {
69
+ artifactStorageKey: string;
70
+ artifactHash: string;
71
+ graphHash: string;
72
+ }
73
+ >;
65
74
  generatedAt: number;
66
75
  cacheHit: boolean;
67
76
  };
@@ -9,11 +9,11 @@ import {
9
9
  registerAuthCommands,
10
10
  reportSetupCompleted,
11
11
  resolvePendingAuthClaimForResume
12
- } from "./chunk-5QZFWY7C.mjs";
13
- import "./chunk-I7RLL7LN.mjs";
14
- import "./chunk-TJGJTB5T.mjs";
12
+ } from "./chunk-5FHU7TV4.mjs";
13
+ import "./chunk-AQUNQJ5Y.mjs";
14
+ import "./chunk-YE3O2UHM.mjs";
15
15
  import "./chunk-DLIRSHV6.mjs";
16
- import "./chunk-HHZDWBSQ.mjs";
16
+ import "./chunk-NWBARG3F.mjs";
17
17
  import "./chunk-NXGCO4JB.mjs";
18
18
  import "./chunk-WZYKRD7T.mjs";
19
19
  import "./chunk-KRD6H754.mjs";
@@ -0,0 +1,31 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+ var _chunkPBNZXZCWjs = require('./chunk-PBNZXZCW.js');
13
+ require('./chunk-QQ2FG5W3.js');
14
+ require('./chunk-PVDQ55PS.js');
15
+ require('./chunk-XNYIZMNQ.js');
16
+ require('./chunk-K7FC5IUU.js');
17
+ require('./chunk-7P5AA3SN.js');
18
+ require('./chunk-OG64RBAC.js');
19
+ require('./chunk-COGTRVWW.js');
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+ exports.EXIT_WORKSPACE_MISMATCH = _chunkPBNZXZCWjs.EXIT_WORKSPACE_MISMATCH; exports.clearPendingClaim = _chunkPBNZXZCWjs.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkPBNZXZCWjs.clearSatisfiedPendingClaim; exports.handleRegister = _chunkPBNZXZCWjs.handleRegister; exports.handleStatus = _chunkPBNZXZCWjs.handleStatus; exports.handleWait = _chunkPBNZXZCWjs.handleWait; exports.readPendingAuthClaim = _chunkPBNZXZCWjs.readPendingAuthClaim; exports.registerAuthCommands = _chunkPBNZXZCWjs.registerAuthCommands; exports.reportSetupCompleted = _chunkPBNZXZCWjs.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkPBNZXZCWjs.resolvePendingAuthClaimForResume;