deepline 0.3.310 → 0.3.311

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 (86) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/ledger-safe-payload.ts +7 -3
  3. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +53 -7
  4. package/dist/cli/{auth-CS6NQ737.mjs → auth-2A7OYHFJ.mjs} +4 -4
  5. package/dist/cli/auth-66JFXP6C.js +31 -0
  6. package/dist/cli/{billing-7SIQJUEI.js → billing-2PQ4VDRR.js} +70 -70
  7. package/dist/cli/{billing-SDRP5BYV.mjs → billing-P7GIAP3U.mjs} +4 -4
  8. package/dist/cli/{chunk-7L27LIZO.mjs → chunk-4WFNAWVO.mjs} +2 -2
  9. package/dist/cli/{chunk-D3HSRXCJ.js → chunk-5IBHISKA.js} +6 -6
  10. package/dist/cli/{chunk-NKRSVEP4.mjs → chunk-5OVNL6LS.mjs} +1 -1
  11. package/dist/cli/{chunk-MWY35HT3.js → chunk-7TT4LZIR.js} +60 -60
  12. package/dist/cli/{chunk-HYACJPRJ.mjs → chunk-DUEHAEPM.mjs} +1 -1
  13. package/dist/cli/{chunk-KKAAKV77.js → chunk-FYPZ43Y4.js} +1 -1
  14. package/dist/cli/{chunk-T25I3M2J.mjs → chunk-G3QP2WYR.mjs} +4 -4
  15. package/dist/cli/{chunk-DCUYMHHV.js → chunk-GCX3343L.js} +48 -48
  16. package/dist/cli/{chunk-LUJGLZCJ.mjs → chunk-HOCPOTDX.mjs} +2 -2
  17. package/dist/cli/{chunk-5VVRQY4Y.js → chunk-IB7OGQGH.js} +6 -6
  18. package/dist/cli/{chunk-NXFFT73P.mjs → chunk-ICZB4GTY.mjs} +3 -3
  19. package/dist/cli/{chunk-JVCD2CWD.js → chunk-LRI2FQF2.js} +26 -26
  20. package/dist/cli/{chunk-M4KGWEN2.mjs → chunk-Q3LYQTSO.mjs} +1 -1
  21. package/dist/cli/{chunk-XOIOZ5JA.mjs → chunk-QJA6SJHA.mjs} +1 -1
  22. package/dist/cli/{chunk-4YCPND5A.js → chunk-QO3GH6UP.js} +2 -2
  23. package/dist/cli/{chunk-PNNFR4L5.js → chunk-QYL5ZV4U.js} +6 -6
  24. package/dist/cli/{chunk-QARMMLYE.js → chunk-RNJ74JDH.js} +4 -4
  25. package/dist/cli/{chunk-VN7Y4LVH.mjs → chunk-SGTSJCOA.mjs} +1 -1
  26. package/dist/cli/{chunk-OJWZADOG.mjs → chunk-SPUTBCUR.mjs} +1 -1
  27. package/dist/cli/{chunk-AV4CJWNP.mjs → chunk-TBX7AA7Y.mjs} +2 -2
  28. package/dist/cli/{chunk-N2VXH4GK.js → chunk-VODJJUKE.js} +15 -15
  29. package/dist/cli/{chunk-RYO6353O.js → chunk-XDUQQTIS.js} +6 -6
  30. package/dist/cli/client-ADWRS22F.js +20 -0
  31. package/dist/cli/{client-G7HWPY6S.mjs → client-PNLDT2M3.mjs} +3 -3
  32. package/dist/cli/{csv-4JIXNZ6J.mjs → csv-KUAATBZQ.mjs} +3 -3
  33. package/dist/cli/{csv-6GDEDRY6.js → csv-L5DN7F45.js} +12 -12
  34. package/dist/cli/{db-MXNCRZNY.js → db-6NIH4KTZ.js} +20 -20
  35. package/dist/cli/{db-TGAQ7XWX.mjs → db-WZOD6NP5.mjs} +4 -4
  36. package/dist/cli/{executions-XSGG4VCW.mjs → executions-RDDXGT2Y.mjs} +4 -4
  37. package/dist/cli/{executions-VEBKTUFZ.js → executions-TQ5WRHDS.js} +6 -6
  38. package/dist/cli/{feedback-GI3Q4RGW.js → feedback-NYKLEQB6.js} +6 -6
  39. package/dist/cli/{feedback-PY4ZCKEV.mjs → feedback-ZB4WKBSS.mjs} +3 -3
  40. package/dist/cli/git-E56KOYJR.js +23 -0
  41. package/dist/cli/{git-7QAK7CKT.mjs → git-E6DKAX3X.mjs} +4 -4
  42. package/dist/cli/index.js +73 -73
  43. package/dist/cli/index.mjs +30 -30
  44. package/dist/cli/{legacy-noops-KCG3YZCN.mjs → legacy-noops-25B7JCOZ.mjs} +4 -4
  45. package/dist/cli/{legacy-noops-2VT7K2VQ.js → legacy-noops-26Y5NSU6.js} +7 -7
  46. package/dist/cli/{monitors-7CLNZE7C.js → monitors-L3GFT4MG.js} +85 -85
  47. package/dist/cli/{monitors-GTIHVO56.mjs → monitors-WRTHO7DT.mjs} +4 -4
  48. package/dist/cli/{org-HTA6MXVO.js → org-BNCTGPWF.js} +60 -60
  49. package/dist/cli/{org-FCPAM7NW.mjs → org-ZTHOFVEO.mjs} +4 -4
  50. package/dist/cli/{play-Q5SVL5MG.js → play-BCMGFYTF.js} +220 -220
  51. package/dist/cli/{play-YO22ZNSN.mjs → play-SOG5Q2GE.mjs} +6 -6
  52. package/dist/cli/{providers-YHWPMW4J.js → providers-MLOKTD6O.js} +7 -7
  53. package/dist/cli/{providers-25X5A5JC.mjs → providers-SLAPPVMU.mjs} +4 -4
  54. package/dist/cli/{quickstart-SLE7UMAK.js → quickstart-IWJLGET3.js} +5 -5
  55. package/dist/cli/{quickstart-Z4CXNAQ3.mjs → quickstart-LZRKZLNQ.mjs} +3 -3
  56. package/dist/cli/{search-UBWCREKT.js → search-6FBDSA3K.js} +6 -6
  57. package/dist/cli/{search-RQO3ZVKK.mjs → search-RCDGSNWW.mjs} +5 -5
  58. package/dist/cli/{secrets-N37STTK4.js → secrets-24KEMSCU.js} +13 -13
  59. package/dist/cli/{secrets-MV6MRXW5.mjs → secrets-GDPYV6OC.mjs} +4 -4
  60. package/dist/cli/{sessions-KBWZYHNE.js → sessions-QOUUGVP3.js} +5 -5
  61. package/dist/cli/{sessions-4M2BUN2J.mjs → sessions-ST5XQQZN.mjs} +4 -4
  62. package/dist/cli/{settings-OCRYSYWC.js → settings-4XWDMAA2.js} +74 -74
  63. package/dist/cli/{settings-EYMOSUED.mjs → settings-V6Z775TO.mjs} +7 -7
  64. package/dist/cli/{setup-TUVPIGJV.mjs → setup-QPZLP25U.mjs} +6 -6
  65. package/dist/cli/{setup-3UKEGBFB.js → setup-W7SPZTUL.js} +41 -41
  66. package/dist/cli/{skills-56ADS5BA.mjs → skills-QG22R2EI.mjs} +4 -4
  67. package/dist/cli/skills-WKOQBJY7.js +28 -0
  68. package/dist/cli/{tools-M73P2E7K.mjs → tools-G4HGCHNQ.mjs} +5 -5
  69. package/dist/cli/{tools-XSF6FCIM.js → tools-WN7T25LW.js} +50 -50
  70. package/dist/cli/{update-Y6KMCBWD.mjs → update-5PSYBGVU.mjs} +6 -6
  71. package/dist/cli/update-WKVCWGYY.js +28 -0
  72. package/dist/cli/{workflow-DWKZA4FR.mjs → workflow-EK7DV4AQ.mjs} +5 -5
  73. package/dist/cli/{workflow-DHQ3NCVT.js → workflow-ZEQ46MGG.js} +15 -15
  74. package/dist/index.js +6 -6
  75. package/dist/index.mjs +3 -3
  76. package/dist/install-integrity.json +68 -68
  77. package/dist/release.d.mts +1 -1
  78. package/dist/release.d.ts +1 -1
  79. package/dist/release.js +2 -2
  80. package/dist/release.mjs +1 -1
  81. package/package.json +1 -1
  82. package/dist/cli/auth-CP4YBO33.js +0 -31
  83. package/dist/cli/client-MIVDO6SP.js +0 -20
  84. package/dist/cli/git-5KB2XFJ6.js +0 -23
  85. package/dist/cli/skills-CUWFLZG4.js +0 -28
  86. package/dist/cli/update-QOQRJM2S.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.310',
203
+ version: '0.3.311',
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: {
@@ -95,8 +95,12 @@ export function sanitizeLedgerLogLines(value: unknown): string[] {
95
95
  return value
96
96
  .filter((line): line is string => typeof line === 'string')
97
97
  .slice(0, MAX_LEDGER_LOG_LINES_PER_EVENT)
98
- .map((line) =>
99
- boundRunLogLine(ledgerIngressRedactor.redactString(line.trim())),
100
- )
98
+ .map((line) => sanitizeLedgerLogLine(line))
101
99
  .filter(Boolean);
102
100
  }
101
+
102
+ /** Runtime measurement records use the terminal transport's existing byte budget. */
103
+ export function sanitizeLedgerLogLine(line: string, bounded = true): string {
104
+ const redacted = ledgerIngressRedactor.redactString(line.trim());
105
+ return bounded ? boundRunLogLine(redacted) : redacted;
106
+ }
@@ -4,6 +4,7 @@ import {
4
4
  type RunLedgerDispatchLaunch,
5
5
  } from './run-ledger-dispatch-authority';
6
6
  import { normalizeRunLogIds } from '../run-log-buffer';
7
+ import { sanitizeLedgerLogLine } from '../ledger-safe-payload';
7
8
  import {
8
9
  retainedPlayPipelineFields,
9
10
  hydrateRetainedPlayPipelines,
@@ -10926,7 +10927,9 @@ export async function directCompletePostgresSchedulerRunnerTerminal(
10926
10927
  stringifyPostgresJson(runtimeTiming ?? null),
10927
10928
  stringifyPostgresJson(ledgerTerminalResult ?? null),
10928
10929
  JSON.stringify(terminalLogLines),
10929
- JSON.stringify(input.terminalProgressEvents ?? []),
10930
+ JSON.stringify(
10931
+ sanitizeTerminalProgressEvents(input.terminalProgressEvents),
10932
+ ),
10930
10933
  postgresSchedulerNotifyChannel('terminal', options),
10931
10934
  JSON.stringify({ runId: input.runId, status: 'completed' }),
10932
10935
  input.leaseToken,
@@ -13305,7 +13308,7 @@ export async function completePostgresSchedulerAttempt(
13305
13308
  );
13306
13309
  const terminalLogEntries = (input.terminalLogLines ?? [])
13307
13310
  .map((line, index) => ({
13308
- line: line.trim(),
13311
+ line: sanitizeTerminalLogBody(line),
13309
13312
  context: input.terminalLogContexts?.[index] ?? null,
13310
13313
  metadata: input.terminalLogMetadata?.[index] ?? null,
13311
13314
  entryId: terminalLogIds?.[index] ?? null,
@@ -13529,7 +13532,9 @@ export async function completePostgresSchedulerAttempt(
13529
13532
  JSON.stringify(terminalLogContexts),
13530
13533
  stringifyPostgresJson(input.terminalWorkCounterSegment ?? null),
13531
13534
  JSON.stringify(terminalLogMetadata),
13532
- JSON.stringify(input.terminalProgressEvents ?? []),
13535
+ JSON.stringify(
13536
+ sanitizeTerminalProgressEvents(input.terminalProgressEvents),
13537
+ ),
13533
13538
  stringifyPostgresJson(
13534
13539
  terminalLogIds
13535
13540
  ? terminalLogEntries.map((entry) => entry.entryId)
@@ -13615,7 +13620,7 @@ export async function failPostgresSchedulerAttempt(
13615
13620
  );
13616
13621
  const terminalLogEntries = (input.terminalLogLines ?? [])
13617
13622
  .map((line, index) => ({
13618
- line: line.trim(),
13623
+ line: sanitizeTerminalLogBody(line),
13619
13624
  context: input.terminalLogContexts?.[index] ?? null,
13620
13625
  metadata: input.terminalLogMetadata?.[index] ?? null,
13621
13626
  entryId: terminalLogIds?.[index] ?? null,
@@ -13901,7 +13906,9 @@ export async function failPostgresSchedulerAttempt(
13901
13906
  stringifyPostgresJson(resultSummary),
13902
13907
  JSON.stringify(terminalLogContexts),
13903
13908
  stringifyPostgresJson(terminalWorkCounterSegment ?? null),
13904
- stringifyPostgresJson(input.terminalProgressEvents ?? []),
13909
+ stringifyPostgresJson(
13910
+ sanitizeTerminalProgressEvents(input.terminalProgressEvents),
13911
+ ),
13905
13912
  JSON.stringify(terminalLogMetadata),
13906
13913
  stringifyPostgresJson(
13907
13914
  terminalLogIds
@@ -14612,7 +14619,9 @@ function runnerTerminalLogPayload(input: {
14612
14619
  terminalLogContexts: projection.lineContexts,
14613
14620
  terminalLogMetadata: projection.lineMetadata,
14614
14621
  ...(projection.lineIds ? { terminalLogIds: projection.lineIds } : {}),
14615
- terminalProgressEvents: input.terminalProgressEvents ?? [],
14622
+ terminalProgressEvents: sanitizeTerminalProgressEvents(
14623
+ input.terminalProgressEvents,
14624
+ ),
14616
14625
  // Older runner envelopes conveyed these diagnostics only in tagged log
14617
14626
  // text. Preserve their small structured facts before removing that text.
14618
14627
  recoveredRuntimeDiagnostics:
@@ -14629,6 +14638,41 @@ function runnerTerminalLogPayload(input: {
14629
14638
  };
14630
14639
  }
14631
14640
 
14641
+ function sanitizeTerminalProgressEvents(
14642
+ events: readonly unknown[] = [],
14643
+ ): unknown[] {
14644
+ return events.map((event) => {
14645
+ if (!event || typeof event !== 'object' || Array.isArray(event))
14646
+ return event;
14647
+ const item = event as Record<string, unknown>;
14648
+ if (item.type !== 'log.appended' || !Array.isArray(item.lines))
14649
+ return event;
14650
+ return {
14651
+ ...item,
14652
+ // Keep every position and annotation aligned, including blank lines.
14653
+ // Invalid values still reach the existing SQL validation unchanged.
14654
+ lines: item.lines.map((line) =>
14655
+ typeof line === 'string'
14656
+ ? sanitizeTerminalLogBody(line) || '(blank log line)'
14657
+ : line,
14658
+ ),
14659
+ };
14660
+ });
14661
+ }
14662
+
14663
+ function sanitizeTerminalLogBody(line: string): string {
14664
+ const body = line.trim();
14665
+ const runtimeDiagnostic =
14666
+ body.startsWith('[runtime.failure_diagnostic] ') ||
14667
+ body.startsWith('[runtime.phase_summary] ') ||
14668
+ body.startsWith('[runtime.logs] ') ||
14669
+ body.startsWith('[runtime.log_transport] ');
14670
+ // These runtime records contain machine-readable JSON, already bounded by
14671
+ // the terminal transport. Keep it parseable while applying the same redaction.
14672
+ // Authored tagged lines retain the ordinary live-ingress line bound.
14673
+ return sanitizeLedgerLogLine(body, !runtimeDiagnostic);
14674
+ }
14675
+
14632
14676
  function terminalLogProjectionForOutbox(
14633
14677
  runnerResult: unknown,
14634
14678
  mode: PostgresSchedulerTerminalLogOutbox | undefined,
@@ -14689,7 +14733,9 @@ function terminalLogProjectionForOutbox(
14689
14733
  normalized.startsWith('[runtime.log_transport] ');
14690
14734
  if (!retained) return null;
14691
14735
  return {
14692
- line: line.trim(),
14736
+ // The live API applies this same canonicalization before indexing.
14737
+ // Replaying an origin ID must carry that exact redacted, bounded body.
14738
+ line: sanitizeTerminalLogBody(line),
14693
14739
  context: normalizePlayLogContext(logContexts?.[index]),
14694
14740
  metadata: normalizePlayLogMetadata(logMetadata?.[index]),
14695
14741
  entryId: logIds?.[index] ?? null,
@@ -9,11 +9,11 @@ import {
9
9
  registerAuthCommands,
10
10
  reportSetupCompleted,
11
11
  resolvePendingAuthClaimForResume
12
- } from "./chunk-LUJGLZCJ.mjs";
13
- import "./chunk-OJWZADOG.mjs";
14
- import "./chunk-M4KGWEN2.mjs";
12
+ } from "./chunk-HOCPOTDX.mjs";
13
+ import "./chunk-SPUTBCUR.mjs";
14
+ import "./chunk-Q3LYQTSO.mjs";
15
15
  import "./chunk-DLIRSHV6.mjs";
16
- import "./chunk-VN7Y4LVH.mjs";
16
+ import "./chunk-SGTSJCOA.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 _chunkGCX3343Ljs = require('./chunk-GCX3343L.js');
13
+ require('./chunk-XDUQQTIS.js');
14
+ require('./chunk-RNJ74JDH.js');
15
+ require('./chunk-XNYIZMNQ.js');
16
+ require('./chunk-FYPZ43Y4.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 = _chunkGCX3343Ljs.EXIT_WORKSPACE_MISMATCH; exports.clearPendingClaim = _chunkGCX3343Ljs.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkGCX3343Ljs.clearSatisfiedPendingClaim; exports.handleRegister = _chunkGCX3343Ljs.handleRegister; exports.handleStatus = _chunkGCX3343Ljs.handleStatus; exports.handleWait = _chunkGCX3343Ljs.handleWait; exports.readPendingAuthClaim = _chunkGCX3343Ljs.readPendingAuthClaim; exports.registerAuthCommands = _chunkGCX3343Ljs.registerAuthCommands; exports.reportSetupCompleted = _chunkGCX3343Ljs.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkGCX3343Ljs.resolvePendingAuthClaimForResume;