deepline 0.3.391 → 0.3.392

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 (106) hide show
  1. package/dist/bundling-sources/sdk/src/plays/csv-data-input.ts +3 -0
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/sdk/src/types.ts +2 -0
  4. package/dist/bundling-sources/shared_libs/plays/extension-bridge.ts +57 -0
  5. package/dist/bundling-sources/shared_libs/plays/run-summary-types.ts +1 -0
  6. package/dist/cli/auth-67TAELQL.js +39 -0
  7. package/dist/cli/{auth-6QET7NFP.mjs → auth-6JSA2ZCW.mjs} +4 -4
  8. package/dist/cli/{billing-HAQ2VDQX.mjs → billing-MRRO643H.mjs} +4 -4
  9. package/dist/cli/{billing-KJAGTCFR.js → billing-Q5BLQHIU.js} +73 -73
  10. package/dist/cli/{chunk-H2ER7QWR.mjs → chunk-24VEN5PQ.mjs} +7 -7
  11. package/dist/cli/{chunk-UOSKJIXE.js → chunk-2FQG2HU4.js} +8 -8
  12. package/dist/cli/{chunk-VH4B5OYM.mjs → chunk-2G7DXFHI.mjs} +1 -1
  13. package/dist/cli/{chunk-K3ODOHOI.mjs → chunk-2GAHHSLB.mjs} +1 -1
  14. package/dist/cli/{chunk-I3MKXASV.mjs → chunk-2Q3GEFL4.mjs} +2 -2
  15. package/dist/cli/{chunk-YBZY3EZF.mjs → chunk-2QLML6G4.mjs} +4 -4
  16. package/dist/cli/{chunk-H3DCZOXR.mjs → chunk-3FV4GBRK.mjs} +5 -5
  17. package/dist/cli/{chunk-ME2DZAHC.js → chunk-4SFPVW7A.js} +26 -26
  18. package/dist/cli/{chunk-KA7X75HC.js → chunk-6DBOU7UH.js} +48 -48
  19. package/dist/cli/{chunk-QCWIORKR.mjs → chunk-A3APGZFP.mjs} +2 -2
  20. package/dist/cli/{chunk-4S6X74A3.js → chunk-BB3FNYFY.js} +2 -2
  21. package/dist/cli/{chunk-556BMGEB.js → chunk-CVLM3WMJ.js} +9 -9
  22. package/dist/cli/{chunk-RA2SDTSX.js → chunk-EY7RFC6A.js} +15 -15
  23. package/dist/cli/{chunk-5JLQPVNX.js → chunk-GSK6NHVM.js} +1 -0
  24. package/dist/cli/{chunk-HFTOOZGN.mjs → chunk-HGYBEAQP.mjs} +3 -3
  25. package/dist/cli/{chunk-EDWJY6T4.mjs → chunk-HQXL5526.mjs} +1 -0
  26. package/dist/cli/{chunk-XEV5LMS2.js → chunk-JOFPQGXW.js} +50 -50
  27. package/dist/cli/{chunk-WLODHQ7S.js → chunk-JSLPHFP7.js} +1 -1
  28. package/dist/cli/{chunk-TLHF54VX.mjs → chunk-MU6M3URX.mjs} +1 -1
  29. package/dist/cli/{chunk-PFPP4BKS.mjs → chunk-R3O2CZ4H.mjs} +2 -2
  30. package/dist/cli/{chunk-ED42XCOW.js → chunk-RIV2GS5E.js} +228 -228
  31. package/dist/cli/{chunk-I7EVBLTW.js → chunk-RV6ALZIX.js} +6 -6
  32. package/dist/cli/{chunk-RTH26NF3.js → chunk-T7OKJ2T6.js} +61 -61
  33. package/dist/cli/{chunk-XBPLTHGB.js → chunk-UCKJQG25.js} +8 -8
  34. package/dist/cli/{chunk-MHLCMJ2E.js → chunk-WMS5U6YB.js} +4 -4
  35. package/dist/cli/{chunk-KWF4HJF7.mjs → chunk-YAZCDBXX.mjs} +1 -1
  36. package/dist/cli/{chunk-DRZFTRZJ.mjs → chunk-YN6YA7ZZ.mjs} +1 -1
  37. package/dist/cli/{chunk-6L4P7Z6C.mjs → chunk-ZTACINO5.mjs} +2 -2
  38. package/dist/cli/{csv-2WSF5TEM.js → csv-26U5T24Z.js} +12 -12
  39. package/dist/cli/{csv-V7UHOBFE.mjs → csv-E4QGUIGI.mjs} +3 -3
  40. package/dist/cli/{db-TD375E4N.mjs → db-JTRJIAQW.mjs} +4 -4
  41. package/dist/cli/{db-42RL4FZD.js → db-QHBFLMVL.js} +29 -29
  42. package/dist/cli/{describe-GPUKAWOZ.mjs → describe-E3DE3ZK3.mjs} +9 -9
  43. package/dist/cli/{describe-7WFCBZUY.js → describe-FDV2V74F.js} +19 -19
  44. package/dist/cli/{executions-M7O63JNA.mjs → executions-B3GTNPRE.mjs} +4 -4
  45. package/dist/cli/{executions-LGVG3FPH.js → executions-VZYOGVQY.js} +6 -6
  46. package/dist/cli/{feedback-6PBSKVB2.mjs → feedback-4CEBR3OV.mjs} +3 -3
  47. package/dist/cli/{feedback-PZZA2M4S.js → feedback-CR55FJA2.js} +7 -7
  48. package/dist/cli/git-I5JTK6YU.js +23 -0
  49. package/dist/cli/{git-2VIFM5DI.mjs → git-NM2PHHZ4.mjs} +4 -4
  50. package/dist/cli/index.js +89 -89
  51. package/dist/cli/index.mjs +32 -32
  52. package/dist/cli/{legacy-noops-DPUBZI7N.mjs → legacy-noops-A7MSW5ND.mjs} +4 -4
  53. package/dist/cli/{legacy-noops-IQ6QTZNZ.js → legacy-noops-ZUA4YFIH.js} +7 -7
  54. package/dist/cli/{monitors-KBZVQG2U.mjs → monitors-NVPRQYP3.mjs} +4 -4
  55. package/dist/cli/{monitors-6GWAZFYV.js → monitors-ZE3TLZ4H.js} +85 -85
  56. package/dist/cli/{org-CP3VSJBX.mjs → org-KUBILNQV.mjs} +4 -4
  57. package/dist/cli/{org-JKGTHXOZ.js → org-U7A6DV5D.js} +64 -64
  58. package/dist/cli/play-A2V7YDU7.js +157 -0
  59. package/dist/cli/{play-DD2ME4L4.mjs → play-HRDXQ4QE.mjs} +8 -8
  60. package/dist/cli/{providers-JUNOFKI7.mjs → providers-OHIWI453.mjs} +4 -4
  61. package/dist/cli/{providers-P34QYYG6.js → providers-VD6YTVQZ.js} +7 -7
  62. package/dist/cli/{quickstart-UL3DEFA4.js → quickstart-ETTCWPA4.js} +5 -5
  63. package/dist/cli/{quickstart-N6SWOK7E.mjs → quickstart-UBV2FONF.mjs} +3 -3
  64. package/dist/cli/{search-SC7I56HX.mjs → search-F44IZRT7.mjs} +5 -5
  65. package/dist/cli/search-WWXMBVPH.js +26 -0
  66. package/dist/cli/{secrets-6ZJE7ZPM.js → secrets-CAEMRORF.js} +13 -13
  67. package/dist/cli/{secrets-RTARNYF5.mjs → secrets-R6XOJZKU.mjs} +4 -4
  68. package/dist/cli/{sessions-6IZ2XHGW.js → sessions-6GC7OFTT.js} +5 -5
  69. package/dist/cli/{sessions-7RKV2T3O.mjs → sessions-RLN6UQS3.mjs} +4 -4
  70. package/dist/cli/{settings-YX3XJDXE.js → settings-DPNVUAV2.js} +74 -74
  71. package/dist/cli/{settings-V6PXA6HY.mjs → settings-KIPAMRPP.mjs} +7 -7
  72. package/dist/cli/{setup-CQ5VRNNU.js → setup-DTL3L5SG.js} +41 -41
  73. package/dist/cli/{setup-V2O4UJNT.mjs → setup-TU2F7PU5.mjs} +6 -6
  74. package/dist/cli/skills-SWOSEZLB.js +28 -0
  75. package/dist/cli/{skills-VHJZWEHA.mjs → skills-UV5MYJ46.mjs} +4 -4
  76. package/dist/cli/tools-IL2YCDQ6.js +40 -0
  77. package/dist/cli/{tools-OD5WKEWY.mjs → tools-QRRNDCQ7.mjs} +6 -6
  78. package/dist/cli/{update-CRMNOMJ3.mjs → update-4426TF35.mjs} +6 -6
  79. package/dist/cli/update-BERDPEYR.js +28 -0
  80. package/dist/cli/{workflow-XHORSD5T.js → workflow-HNLOVISB.js} +15 -15
  81. package/dist/cli/{workflow-EVDYNCDD.mjs → workflow-N4U5VLZ3.mjs} +5 -5
  82. package/dist/{client-BhK9kix9.d.ts → client-Uxuy-xQ2.d.ts} +4 -0
  83. package/dist/{client-DpzZi4fU.d.mts → client-e6Qh5ZIg.d.mts} +4 -0
  84. package/dist/index.d.mts +2 -2
  85. package/dist/index.d.ts +2 -2
  86. package/dist/index.js +6 -6
  87. package/dist/index.mjs +3 -3
  88. package/dist/install-integrity.json +77 -76
  89. package/dist/plays/csv-data-input.d.mts +2 -0
  90. package/dist/plays/csv-data-input.d.ts +2 -0
  91. package/dist/plays/csv-data-input.js +2 -2
  92. package/dist/plays/csv-data-input.mjs +1 -1
  93. package/dist/plays/run-request.d.mts +1 -1
  94. package/dist/plays/run-request.d.ts +1 -1
  95. package/dist/release.d.mts +1 -1
  96. package/dist/release.d.ts +1 -1
  97. package/dist/release.js +2 -2
  98. package/dist/release.mjs +1 -1
  99. package/package.json +1 -1
  100. package/dist/cli/auth-6ZUH42ZA.js +0 -39
  101. package/dist/cli/git-ZSJD3BID.js +0 -23
  102. package/dist/cli/play-G5GVMIBN.js +0 -157
  103. package/dist/cli/search-W4GXWTOM.js +0 -26
  104. package/dist/cli/skills-LBZPJTPI.js +0 -28
  105. package/dist/cli/tools-TQNM473H.js +0 -40
  106. package/dist/cli/update-QY6GAK6B.js +0 -28
@@ -41,6 +41,8 @@ export function parseCsvDataInput(
41
41
  source: CsvDataInputSource,
42
42
  content: string,
43
43
  options: {
44
+ /** Explicit import delimiter. Staged Play files still use canonical CSV. */
45
+ delimiter?: ',' | '\t';
44
46
  /**
45
47
  * Called after each parsed record (header included) with the running
46
48
  * count. Observation only: it cannot change, drop, or reorder records.
@@ -57,6 +59,7 @@ export function parseCsvDataInput(
57
59
  let records: string[][];
58
60
  try {
59
61
  records = parseCsvSync(content, {
62
+ delimiter: options.delimiter ?? ',',
60
63
  bom: true,
61
64
  columns: false,
62
65
  skip_empty_lines: true,
@@ -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.391',
203
+ version: '0.3.392',
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: {
@@ -847,6 +847,8 @@ export interface PlayRunPackage {
847
847
  /** Revision pinned at admission, never the play's current revision. */
848
848
  revisionId?: string;
849
849
  playName: string;
850
+ /** Retained manual requester, when requested with include=requester. */
851
+ requestedBy?: { name: string };
850
852
  status: string;
851
853
  dashboardUrl?: string;
852
854
  /** Durable acceptance time: the run record was created. */
@@ -0,0 +1,57 @@
1
+ /** Narrow protocol shared by the hosted Play launcher and its Chrome shell. */
2
+ export const EXTENSION_BRIDGE = 'deepline-play-launcher-v1';
3
+ export const WORKSPACE_HEADER = 'x-deepline-workspace-id';
4
+ export const EXTENSION_PANEL_PATH = '/extension/plays';
5
+
6
+ export type BridgeFormEntry = [
7
+ string,
8
+ string | { name: string; type: string; bytes: ArrayBuffer },
9
+ ];
10
+ export type BridgeRequest = {
11
+ id: string;
12
+ } & (
13
+ | { kind: 'current-url' }
14
+ | { kind: 'sign-in' }
15
+ | {
16
+ kind: 'fetch';
17
+ path: string;
18
+ method: 'GET' | 'POST';
19
+ workspaceId?: string;
20
+ body?: string;
21
+ form?: BridgeFormEntry[];
22
+ }
23
+ );
24
+ export type BridgeResponse = {
25
+ id: string;
26
+ error?: string;
27
+ status?: number;
28
+ body?: string;
29
+ url?: string;
30
+ };
31
+
32
+ /** The frame cannot turn the extension into an arbitrary credentialed proxy. */
33
+ export function isAllowedExtensionRequest(
34
+ path: string,
35
+ method: string,
36
+ ): boolean {
37
+ if (!path.startsWith('/api/v2/') || /[\\#\u0000-\u0020]/u.test(path))
38
+ return false;
39
+ const url = new URL(path, 'https://extension.invalid');
40
+ if (url.origin !== 'https://extension.invalid') return false;
41
+ const pathname = url.pathname;
42
+ if (method === 'POST')
43
+ return [
44
+ '/api/v2/plays/run',
45
+ '/api/v2/plays/files/stage',
46
+ '/api/v2/plays/files/stage/mint',
47
+ ].includes(pathname);
48
+ return (
49
+ method === 'GET' &&
50
+ (pathname === '/api/v2/auth/workspace' ||
51
+ pathname === '/api/v2/auth/session' ||
52
+ pathname === '/api/v2/plays' ||
53
+ pathname === '/api/v2/runs' ||
54
+ /^\/api\/v2\/plays\/[^/]+(?:\/sheet(?:\/export)?)?$/.test(pathname) ||
55
+ /^\/api\/v2\/runs\/[^/]+(?:\/input)?$/.test(pathname))
56
+ );
57
+ }
@@ -16,6 +16,7 @@ export type PlayRunSummaryRecord = {
16
16
  /** Backend runtime attempt identifier, when the scheduler exposes one. */
17
17
  runId?: string;
18
18
  playName?: string | null;
19
+ requestedBy?: { name: string };
19
20
  parentRunId?: string | null;
20
21
  rootRunId?: string | null;
21
22
  status: string;
@@ -0,0 +1,39 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+ var _chunkJOFPQGXWjs = require('./chunk-JOFPQGXW.js');
17
+ require('./chunk-RV6ALZIX.js');
18
+ require('./chunk-WMS5U6YB.js');
19
+ require('./chunk-XNYIZMNQ.js');
20
+ require('./chunk-7P5AA3SN.js');
21
+ require('./chunk-JSLPHFP7.js');
22
+ require('./chunk-OG64RBAC.js');
23
+ require('./chunk-COGTRVWW.js');
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+ exports.EXIT_WORKSPACE_MISMATCH = _chunkJOFPQGXWjs.EXIT_WORKSPACE_MISMATCH; exports.authStatusLine = _chunkJOFPQGXWjs.authStatusLine; exports.clearPendingClaim = _chunkJOFPQGXWjs.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkJOFPQGXWjs.clearSatisfiedPendingClaim; exports.handleRegister = _chunkJOFPQGXWjs.handleRegister; exports.handleStatus = _chunkJOFPQGXWjs.handleStatus; exports.handleWait = _chunkJOFPQGXWjs.handleWait; exports.httpJson = _chunkJOFPQGXWjs.httpJson; exports.readPendingAuthClaim = _chunkJOFPQGXWjs.readPendingAuthClaim; exports.readStatusBanner = _chunkJOFPQGXWjs.readStatusBanner; exports.registerAuthCommands = _chunkJOFPQGXWjs.registerAuthCommands; exports.reportSetupCompleted = _chunkJOFPQGXWjs.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkJOFPQGXWjs.resolvePendingAuthClaimForResume; exports.statusBannerLine = _chunkJOFPQGXWjs.statusBannerLine;
@@ -13,12 +13,12 @@ import {
13
13
  reportSetupCompleted,
14
14
  resolvePendingAuthClaimForResume,
15
15
  statusBannerLine
16
- } from "./chunk-PFPP4BKS.mjs";
17
- import "./chunk-VH4B5OYM.mjs";
18
- import "./chunk-K3ODOHOI.mjs";
16
+ } from "./chunk-R3O2CZ4H.mjs";
17
+ import "./chunk-2G7DXFHI.mjs";
18
+ import "./chunk-2GAHHSLB.mjs";
19
19
  import "./chunk-DLIRSHV6.mjs";
20
20
  import "./chunk-NXGCO4JB.mjs";
21
- import "./chunk-KWF4HJF7.mjs";
21
+ import "./chunk-YAZCDBXX.mjs";
22
22
  import "./chunk-WZYKRD7T.mjs";
23
23
  import "./chunk-KRD6H754.mjs";
24
24
  export {
@@ -2,7 +2,7 @@ import {
2
2
  DeeplineClient,
3
3
  iterateCursorPages,
4
4
  requireBillingIdempotencyKey
5
- } from "./chunk-DRZFTRZJ.mjs";
5
+ } from "./chunk-YN6YA7ZZ.mjs";
6
6
  import "./chunk-6IKARAYD.mjs";
7
7
  import "./chunk-Q6EOHNRH.mjs";
8
8
  import {
@@ -11,16 +11,16 @@ import {
11
11
  openInBrowser,
12
12
  printCommandEnvelope,
13
13
  shouldEmitJson
14
- } from "./chunk-VH4B5OYM.mjs";
14
+ } from "./chunk-2G7DXFHI.mjs";
15
15
  import {
16
16
  AuthError,
17
17
  ConfigError
18
- } from "./chunk-K3ODOHOI.mjs";
18
+ } from "./chunk-2GAHHSLB.mjs";
19
19
  import "./chunk-DLIRSHV6.mjs";
20
20
  import {
21
21
  DeeplineError
22
22
  } from "./chunk-NXGCO4JB.mjs";
23
- import "./chunk-KWF4HJF7.mjs";
23
+ import "./chunk-YAZCDBXX.mjs";
24
24
  import "./chunk-WZYKRD7T.mjs";
25
25
  import "./chunk-KRD6H754.mjs";
26
26