deepline 0.3.345 → 0.3.346

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 (94) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +40 -18
  3. package/dist/cli/auth-5YTC2XH2.js +31 -0
  4. package/dist/cli/{auth-YQSQYS2V.mjs → auth-HTWHQNMY.mjs} +4 -4
  5. package/dist/cli/{billing-JRP2ZFMV.js → billing-4DCHVGO5.js} +71 -71
  6. package/dist/cli/{billing-HA75G3SK.mjs → billing-X56CVZWC.mjs} +4 -4
  7. package/dist/cli/{chunk-MO6QJPEB.js → chunk-22GXXUTB.js} +4 -4
  8. package/dist/cli/{chunk-NTIWTBEH.mjs → chunk-2GRMXCLZ.mjs} +1 -1
  9. package/dist/cli/{chunk-WRTLSH6R.js → chunk-2RJ7RMRM.js} +8 -8
  10. package/dist/cli/{chunk-3XKBPPP7.mjs → chunk-3GLIYDIF.mjs} +2 -2
  11. package/dist/cli/{chunk-ITOJRSOU.js → chunk-4Q572AVS.js} +6 -6
  12. package/dist/cli/{chunk-EEPFLZ7V.js → chunk-5NNSJTJ3.js} +9 -9
  13. package/dist/cli/{chunk-2OTDDG2J.js → chunk-5QG2UAYH.js} +2 -2
  14. package/dist/cli/{chunk-YGQ4AIK7.mjs → chunk-62TKYGY6.mjs} +3 -3
  15. package/dist/cli/{chunk-FBUWH67Y.js → chunk-EJ2NVO5K.js} +48 -48
  16. package/dist/cli/{chunk-DOPNLW2H.mjs → chunk-GCBLVWDQ.mjs} +6 -6
  17. package/dist/cli/{chunk-UJCHR3J3.js → chunk-GGSLHWTB.js} +1 -1
  18. package/dist/cli/{chunk-TAX3OOC6.mjs → chunk-KQCTQGUU.mjs} +1 -1
  19. package/dist/cli/{chunk-IT6MAYZ3.js → chunk-L2R72RQJ.js} +8 -8
  20. package/dist/cli/{chunk-EWYAS4WD.mjs → chunk-MOVEHSNM.mjs} +1 -1
  21. package/dist/cli/{chunk-5QPHJFNN.mjs → chunk-NVNHV73C.mjs} +2 -2
  22. package/dist/cli/{chunk-N3GUUSDO.mjs → chunk-O4SXVVNQ.mjs} +1 -1
  23. package/dist/cli/{chunk-AW2G44QA.mjs → chunk-P4IKGWYF.mjs} +4 -4
  24. package/dist/cli/{chunk-FDH572QX.js → chunk-SGBSQHXS.js} +45 -45
  25. package/dist/cli/{chunk-TDW3RU7S.js → chunk-T7EVEXHS.js} +15 -15
  26. package/dist/cli/{chunk-JDSRPSES.mjs → chunk-VC7M2QR7.mjs} +1 -1
  27. package/dist/cli/{chunk-S3JKJL44.mjs → chunk-WKZTHHJI.mjs} +5 -5
  28. package/dist/cli/{chunk-MLO7ZGSH.mjs → chunk-XAM3XOUA.mjs} +2 -2
  29. package/dist/cli/{chunk-URPZWUVN.js → chunk-YEKAGC52.js} +60 -60
  30. package/dist/cli/{chunk-KXFPDFUO.js → chunk-YUKZHAFW.js} +26 -26
  31. package/dist/cli/{chunk-4INBT3OR.js → chunk-ZEUFYRUR.js} +225 -225
  32. package/dist/cli/{chunk-GGRQBO3S.mjs → chunk-ZR4EHO62.mjs} +2 -2
  33. package/dist/cli/client-4RKYHB7Z.js +20 -0
  34. package/dist/cli/{client-VKQGBPZ5.mjs → client-C2KUT452.mjs} +3 -3
  35. package/dist/cli/{csv-UNP7KAXF.js → csv-3TAA2MTR.js} +12 -12
  36. package/dist/cli/{csv-ZFMAI2HY.mjs → csv-SLACAH4F.mjs} +3 -3
  37. package/dist/cli/{db-LDLXC2JQ.js → db-BT6Q3FE6.js} +29 -29
  38. package/dist/cli/{db-C5YWXRLY.mjs → db-IN4I6KJ5.mjs} +4 -4
  39. package/dist/cli/{describe-UYNKJV6T.mjs → describe-EDXTYMOF.mjs} +8 -8
  40. package/dist/cli/{describe-FO62H2CB.js → describe-FJZXYKFH.js} +15 -15
  41. package/dist/cli/{executions-JYKV3GQJ.mjs → executions-X36QA5NY.mjs} +4 -4
  42. package/dist/cli/{executions-DIADSK2E.js → executions-YYQC2TVR.js} +6 -6
  43. package/dist/cli/{feedback-YBO47O7G.js → feedback-BS3S46O3.js} +7 -7
  44. package/dist/cli/{feedback-4UEJJFRL.mjs → feedback-KTEPHZ4S.mjs} +3 -3
  45. package/dist/cli/{git-A6DPLCMU.mjs → git-3ZVYB63W.mjs} +4 -4
  46. package/dist/cli/git-ZHAD5TJN.js +23 -0
  47. package/dist/cli/index.js +79 -79
  48. package/dist/cli/index.mjs +31 -31
  49. package/dist/cli/{legacy-noops-F6TJLZV2.js → legacy-noops-V5R7ITER.js} +7 -7
  50. package/dist/cli/{legacy-noops-HCAOJI7X.mjs → legacy-noops-VVBJXM2K.mjs} +4 -4
  51. package/dist/cli/{monitors-B5QFSFK7.js → monitors-J6XDE76B.js} +85 -85
  52. package/dist/cli/{monitors-XYP7XNCT.mjs → monitors-KYTMBNUQ.mjs} +4 -4
  53. package/dist/cli/{org-NMWNBQZI.js → org-MHF2NGDV.js} +60 -60
  54. package/dist/cli/{org-O5VBVLSP.mjs → org-RGABGQKP.mjs} +4 -4
  55. package/dist/cli/{play-Z2STHYQB.mjs → play-UII4SSA7.mjs} +7 -7
  56. package/dist/cli/play-ZWAH3U44.js +153 -0
  57. package/dist/cli/{providers-BAPO54GE.js → providers-3GDMD7T6.js} +7 -7
  58. package/dist/cli/{providers-WGIJLFBZ.mjs → providers-LQOSKPUH.mjs} +4 -4
  59. package/dist/cli/{quickstart-LL6KUMJ5.mjs → quickstart-GAMYLCLJ.mjs} +3 -3
  60. package/dist/cli/{quickstart-JGRMJ6M4.js → quickstart-R34Z7EMU.js} +5 -5
  61. package/dist/cli/{search-P7BVN4OI.mjs → search-AOOMDVF5.mjs} +5 -5
  62. package/dist/cli/search-FVB7ZNCO.js +26 -0
  63. package/dist/cli/{secrets-QUBFPBE5.js → secrets-T4XXIASK.js} +13 -13
  64. package/dist/cli/{secrets-5JHLILQD.mjs → secrets-U7YGLUSX.mjs} +4 -4
  65. package/dist/cli/{sessions-TATDTEY6.js → sessions-JQGKWKJS.js} +5 -5
  66. package/dist/cli/{sessions-3BYS3WQZ.mjs → sessions-VPXR4DSZ.mjs} +4 -4
  67. package/dist/cli/{settings-TXWQLO34.mjs → settings-LP55G43L.mjs} +7 -7
  68. package/dist/cli/{settings-SLFYXPRP.js → settings-LXF45R7X.js} +74 -74
  69. package/dist/cli/{setup-XTAW2JS2.mjs → setup-36QA4JI3.mjs} +6 -6
  70. package/dist/cli/{setup-A3CXCYRI.js → setup-MA2GLU4N.js} +41 -41
  71. package/dist/cli/skills-GUWC4FV7.js +28 -0
  72. package/dist/cli/{skills-P323CMPH.mjs → skills-HB6PARLZ.mjs} +4 -4
  73. package/dist/cli/{tools-FMSH7Z7I.mjs → tools-E7K7R4AO.mjs} +6 -6
  74. package/dist/cli/tools-T5WIAD5Z.js +40 -0
  75. package/dist/cli/{update-CGKRTVOD.mjs → update-IT63P3NV.mjs} +6 -6
  76. package/dist/cli/update-QY6RY3A6.js +28 -0
  77. package/dist/cli/{workflow-EFOSJKW7.js → workflow-SJHASZ5C.js} +15 -15
  78. package/dist/cli/{workflow-2DVIYBLG.mjs → workflow-UO3PMX7R.mjs} +5 -5
  79. package/dist/index.js +6 -6
  80. package/dist/index.mjs +3 -3
  81. package/dist/install-integrity.json +74 -74
  82. package/dist/release.d.mts +1 -1
  83. package/dist/release.d.ts +1 -1
  84. package/dist/release.js +2 -2
  85. package/dist/release.mjs +1 -1
  86. package/package.json +1 -1
  87. package/dist/cli/auth-4HCZZPZH.js +0 -31
  88. package/dist/cli/client-VOXK5Z4D.js +0 -20
  89. package/dist/cli/git-FPC5VIIK.js +0 -23
  90. package/dist/cli/play-D2SCAJXG.js +0 -153
  91. package/dist/cli/search-UNJN5P72.js +0 -26
  92. package/dist/cli/skills-ZOUUC72T.js +0 -28
  93. package/dist/cli/tools-O7TLYHFT.js +0 -40
  94. package/dist/cli/update-3LT6YSIP.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.345',
203
+ version: '0.3.346',
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: {
@@ -20173,6 +20173,18 @@ async function dispatchRunLedgerOutboxBatchWithScope(
20173
20173
  : undefined),
20174
20174
  );
20175
20175
  const tokenAuthority = input.tokenAuthority ?? 'local_mint';
20176
+ const reuseMarginMs =
20177
+ Math.max(
20178
+ 1,
20179
+ Math.floor(
20180
+ input.runtimeApi?.requestTimeoutMs ??
20181
+ RUNTIME_CAPACITY_POLICY.receiptGateway.requestTimeoutMs,
20182
+ ),
20183
+ ) + RUNTIME_RELIABILITY_POLICY.schedulerDatabase.queryTimeoutMs;
20184
+ const ingressPrefixLimit = Math.min(
20185
+ RUN_LEDGER_PROJECTION_PREFIX_MAX_FACTS,
20186
+ remainingEvents ?? RUN_LEDGER_PROJECTION_PREFIX_MAX_FACTS,
20187
+ );
20176
20188
  const leaseOwner =
20177
20189
  input.leaseOwner?.trim() || `run-ledger-outbox-dispatch:${randomUUID()}`;
20178
20190
  const needsLaunch =
@@ -20249,7 +20261,8 @@ async function dispatchRunLedgerOutboxBatchWithScope(
20249
20261
  const unclaimed: {
20250
20262
  events: PostgresSchedulerOutboxEvent[];
20251
20263
  launchJson: unknown;
20252
- } = { events: [], launchJson: undefined };
20264
+ ingressPrefixClaimed: boolean;
20265
+ } = { events: [], launchJson: undefined, ingressPrefixClaimed: false };
20253
20266
  return unclaimed;
20254
20267
  }
20255
20268
  // A re-invocation with no named head claims again under the same owner,
@@ -20386,6 +20399,25 @@ async function dispatchRunLedgerOutboxBatchWithScope(
20386
20399
  FOR UPDATE OF runs SKIP LOCKED LIMIT 1
20387
20400
  `));
20388
20401
  const runId = selected.rows[0]?.run_id;
20402
+ let ingressPrefixClaimed = false;
20403
+ if (
20404
+ runId &&
20405
+ tokenAuthority === 'gateway' &&
20406
+ !input.searchOnly &&
20407
+ (input.limit ?? 1) === ingressPrefixLimit
20408
+ ) {
20409
+ try {
20410
+ const launch = parseRunLedgerDispatchLaunch(
20411
+ selected.rows[0]?.dispatch_launch_json,
20412
+ );
20413
+ ingressPrefixClaimed =
20414
+ launch.runId === runId &&
20415
+ usableRunLedgerExecutorToken(launch, reuseMarginMs, options)
20416
+ ?.runLedgerIngressPrefixBatching === true;
20417
+ } catch {
20418
+ // Malformed launches retain the existing post-claim failure policy.
20419
+ }
20420
+ }
20389
20421
  const claimed = runId
20390
20422
  ? await readPendingPostgresSchedulerOutboxEvents(
20391
20423
  client,
@@ -20397,6 +20429,7 @@ async function dispatchRunLedgerOutboxBatchWithScope(
20397
20429
  inTransaction: true,
20398
20430
  restartTransactionOnMissingMarker: true,
20399
20431
  searchOnly: input.searchOnly,
20432
+ allowIngressPrefix: ingressPrefixClaimed,
20400
20433
  },
20401
20434
  options,
20402
20435
  )
@@ -20409,6 +20442,7 @@ async function dispatchRunLedgerOutboxBatchWithScope(
20409
20442
  return {
20410
20443
  events: claimed,
20411
20444
  launchJson: selected.rows[0]?.dispatch_launch_json,
20445
+ ingressPrefixClaimed,
20412
20446
  };
20413
20447
  } catch (error) {
20414
20448
  await client.query('ROLLBACK');
@@ -20419,7 +20453,7 @@ async function dispatchRunLedgerOutboxBatchWithScope(
20419
20453
  ? scope.nextClaimed.splice(0)
20420
20454
  : null;
20421
20455
  const claimed = preclaimed
20422
- ? { events: preclaimed, launchJson: null }
20456
+ ? { events: preclaimed, launchJson: null, ingressPrefixClaimed: false }
20423
20457
  : await withClient(async (client) => {
20424
20458
  try {
20425
20459
  return await claimEvents(client);
@@ -20661,14 +20695,6 @@ async function dispatchRunLedgerOutboxBatchWithScope(
20661
20695
  }
20662
20696
  const needsRuntimeApi = ledgerEvents === null || ledgerEvents.length > 0;
20663
20697
  let runtimeApi: WorkerRuntimeApiContext | null = null;
20664
- const reuseMarginMs =
20665
- Math.max(
20666
- 1,
20667
- Math.floor(
20668
- input.runtimeApi?.requestTimeoutMs ??
20669
- RUNTIME_CAPACITY_POLICY.receiptGateway.requestTimeoutMs,
20670
- ),
20671
- ) + RUNTIME_RELIABILITY_POLICY.schedulerDatabase.queryTimeoutMs;
20672
20698
  const cachedAuthority = authorityScope.authority;
20673
20699
  const observeDispatchTokenResponse = (
20674
20700
  observation: RunLedgerDispatchTokenObservation,
@@ -20787,11 +20813,10 @@ async function dispatchRunLedgerOutboxBatchWithScope(
20787
20813
  }
20788
20814
  authorityReadyAtMs = Date.now();
20789
20815
  }
20790
- // The initial claim deliberately uses the old contract until its immutable
20791
- // launch receiver advertises support. Widen under the same run/owner fence
20792
- // before the first HTTP append, so an already-finished run need not pay one
20793
- // authority/append/ACK round trip for every ingress predecessor.
20816
+ // A prefix-capable initial claim freezes even a singleton receipt. Only
20817
+ // widen when receiver support was not already used by that claim.
20794
20818
  if (
20819
+ !claimed.ingressPrefixClaimed &&
20795
20820
  runtimeApi?.runLedgerIngressPrefixBatching === true &&
20796
20821
  events.length === 1 &&
20797
20822
  first.eventType === RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runEvents
@@ -20820,10 +20845,7 @@ async function dispatchRunLedgerOutboxBatchWithScope(
20820
20845
  runId: first.runId,
20821
20846
  leaseOwner,
20822
20847
  leaseSeconds: input.leaseSeconds ?? 120,
20823
- limit: Math.min(
20824
- RUN_LEDGER_PROJECTION_PREFIX_MAX_FACTS,
20825
- remainingEvents ?? RUN_LEDGER_PROJECTION_PREFIX_MAX_FACTS,
20826
- ),
20848
+ limit: ingressPrefixLimit,
20827
20849
  allowIngressPrefix: true,
20828
20850
  extendOwnedHead: first.eventId,
20829
20851
  inTransaction: true,
@@ -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 _chunkEJ2NVO5Kjs = require('./chunk-EJ2NVO5K.js');
13
+ require('./chunk-4Q572AVS.js');
14
+ require('./chunk-22GXXUTB.js');
15
+ require('./chunk-XNYIZMNQ.js');
16
+ require('./chunk-GGSLHWTB.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 = _chunkEJ2NVO5Kjs.EXIT_WORKSPACE_MISMATCH; exports.clearPendingClaim = _chunkEJ2NVO5Kjs.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkEJ2NVO5Kjs.clearSatisfiedPendingClaim; exports.handleRegister = _chunkEJ2NVO5Kjs.handleRegister; exports.handleStatus = _chunkEJ2NVO5Kjs.handleStatus; exports.handleWait = _chunkEJ2NVO5Kjs.handleWait; exports.readPendingAuthClaim = _chunkEJ2NVO5Kjs.readPendingAuthClaim; exports.registerAuthCommands = _chunkEJ2NVO5Kjs.registerAuthCommands; exports.reportSetupCompleted = _chunkEJ2NVO5Kjs.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkEJ2NVO5Kjs.resolvePendingAuthClaimForResume;
@@ -9,11 +9,11 @@ import {
9
9
  registerAuthCommands,
10
10
  reportSetupCompleted,
11
11
  resolvePendingAuthClaimForResume
12
- } from "./chunk-MLO7ZGSH.mjs";
13
- import "./chunk-NTIWTBEH.mjs";
14
- import "./chunk-JDSRPSES.mjs";
12
+ } from "./chunk-XAM3XOUA.mjs";
13
+ import "./chunk-2GRMXCLZ.mjs";
14
+ import "./chunk-VC7M2QR7.mjs";
15
15
  import "./chunk-DLIRSHV6.mjs";
16
- import "./chunk-EWYAS4WD.mjs";
16
+ import "./chunk-MOVEHSNM.mjs";
17
17
  import "./chunk-NXGCO4JB.mjs";
18
18
  import "./chunk-WZYKRD7T.mjs";
19
19
  import "./chunk-KRD6H754.mjs";