deepline 0.3.337 → 0.3.339

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 (99) hide show
  1. package/dist/bundling-sources/sdk/src/agent-runtime.ts +21 -0
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +2 -2
  4. package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +20 -7
  5. package/dist/cli/{auth-6EREYQBM.mjs → auth-DLHLIJBP.mjs} +4 -4
  6. package/dist/cli/auth-M5OWKMLF.js +31 -0
  7. package/dist/cli/{billing-HZBD5KW6.js → billing-7UQXVLH2.js} +71 -71
  8. package/dist/cli/{billing-VMXYQMW6.mjs → billing-MLOOWHEX.mjs} +4 -4
  9. package/dist/cli/{chunk-YSR4PFTZ.js → chunk-2HTS4ZMF.js} +1 -1
  10. package/dist/cli/{chunk-A75J52BM.js → chunk-2OJGKWOX.js} +89 -76
  11. package/dist/cli/{chunk-NIXE5325.js → chunk-2UGEF3HR.js} +26 -26
  12. package/dist/cli/{chunk-ZUB3LXOI.mjs → chunk-35IBDQNW.mjs} +5 -5
  13. package/dist/cli/{chunk-5WTJ73QU.js → chunk-6KKVUVA6.js} +293 -308
  14. package/dist/cli/{chunk-IYK6XS5X.mjs → chunk-7CQBFUGN.mjs} +59 -74
  15. package/dist/cli/{chunk-MHWEX6GA.js → chunk-CI6TSINO.js} +8 -8
  16. package/dist/cli/{chunk-6PGYQ6IG.js → chunk-DOGZHHO5.js} +6 -6
  17. package/dist/cli/{chunk-FY65AYHZ.mjs → chunk-FC4X6GQI.mjs} +4 -4
  18. package/dist/cli/{chunk-35JNW43E.mjs → chunk-FTV2LY4S.mjs} +3 -3
  19. package/dist/cli/{chunk-7MRAPBWB.mjs → chunk-G5KDPFKG.mjs} +1 -1
  20. package/dist/cli/{chunk-NC5ODEG7.js → chunk-G7DUWWKO.js} +9 -9
  21. package/dist/cli/{chunk-EV4QJE4J.mjs → chunk-IIOBMOMH.mjs} +18 -7
  22. package/dist/cli/{chunk-4SRIWSEG.js → chunk-ISV5JQ43.js} +60 -60
  23. package/dist/cli/{chunk-2LHYWYHM.mjs → chunk-JMKUKFQS.mjs} +54 -12
  24. package/dist/cli/{chunk-VXCRG4J7.mjs → chunk-KGMWBR5S.mjs} +1 -1
  25. package/dist/cli/{chunk-NQ42LHHS.mjs → chunk-KSHINNFC.mjs} +14 -1
  26. package/dist/cli/{chunk-GPN5QAN2.mjs → chunk-MIMOIQXH.mjs} +2 -2
  27. package/dist/cli/{chunk-HDI6GSRQ.js → chunk-OAQ3JR4F.js} +48 -48
  28. package/dist/cli/{chunk-UQV5M6HN.js → chunk-OJVAVQLB.js} +18 -7
  29. package/dist/cli/{chunk-M7IN66XB.js → chunk-OWNN6BDD.js} +15 -15
  30. package/dist/cli/{chunk-TB6HY4BW.mjs → chunk-RI7LPAUP.mjs} +2 -2
  31. package/dist/cli/{chunk-XFSDLHGS.js → chunk-RKSYETCE.js} +2 -2
  32. package/dist/cli/{chunk-3OBY2AGM.js → chunk-RWPA6MGP.js} +45 -45
  33. package/dist/cli/{chunk-QEBA4KXE.js → chunk-S3WJ6LZJ.js} +70 -28
  34. package/dist/cli/{chunk-HBM2UKEU.mjs → chunk-TJSLXGQ2.mjs} +1 -1
  35. package/dist/cli/{chunk-5ERCVX2D.mjs → chunk-TOB6N2QF.mjs} +2 -2
  36. package/dist/cli/{chunk-YQW2FPKQ.mjs → chunk-YSM3GVSU.mjs} +1 -1
  37. package/dist/cli/client-7RSITSKJ.js +20 -0
  38. package/dist/cli/{client-BLGAYJME.mjs → client-NVSE7EBL.mjs} +3 -3
  39. package/dist/cli/{csv-43QTLWPN.mjs → csv-FC2PSRSE.mjs} +3 -3
  40. package/dist/cli/{csv-6WIFI6WR.js → csv-L7MQDTXX.js} +12 -12
  41. package/dist/cli/{db-5XFKB76V.js → db-7WOBHZBZ.js} +29 -29
  42. package/dist/cli/{db-NCERSUPL.mjs → db-G5HO22EN.mjs} +4 -4
  43. package/dist/cli/{describe-4DNSNQKM.js → describe-AWFEE2EE.js} +16 -16
  44. package/dist/cli/{describe-V4BPRUES.mjs → describe-KCUL54J3.mjs} +9 -9
  45. package/dist/cli/{executions-GQ4C2FGI.js → executions-MXEI32CR.js} +6 -6
  46. package/dist/cli/{executions-IGXMYAYA.mjs → executions-TSEMNPMJ.mjs} +4 -4
  47. package/dist/cli/{feedback-UFFCKVNH.js → feedback-EPVGGNT6.js} +11 -6
  48. package/dist/cli/{feedback-UVDBDHE4.mjs → feedback-R72V4O7H.mjs} +8 -3
  49. package/dist/cli/git-FZN5IHKS.js +23 -0
  50. package/dist/cli/{git-XI6XRTIZ.mjs → git-GVFRGXZI.mjs} +4 -4
  51. package/dist/cli/index.js +79 -79
  52. package/dist/cli/index.mjs +31 -31
  53. package/dist/cli/{legacy-noops-5Z3YLPCN.js → legacy-noops-3Q4O5QJT.js} +7 -7
  54. package/dist/cli/{legacy-noops-IUJOLPED.mjs → legacy-noops-4QF2EUUO.mjs} +4 -4
  55. package/dist/cli/{monitors-KUS3ROXZ.mjs → monitors-AWGYR66F.mjs} +4 -4
  56. package/dist/cli/{monitors-TZAGTEID.js → monitors-RKV3XM5P.js} +85 -85
  57. package/dist/cli/{org-AHHROX6T.js → org-DTERGBF7.js} +60 -60
  58. package/dist/cli/{org-SLIG47UE.mjs → org-YMHTIEYB.mjs} +4 -4
  59. package/dist/cli/play-F7ZUV3HE.js +153 -0
  60. package/dist/cli/{play-G4AQ2OZ5.mjs → play-VRTGFHNX.mjs} +8 -8
  61. package/dist/cli/{providers-XQIQO6M3.mjs → providers-VJJSRFOV.mjs} +4 -4
  62. package/dist/cli/{providers-PBFVQ2EP.js → providers-WIKQGBZQ.js} +7 -7
  63. package/dist/cli/{quickstart-X6CLGXVG.js → quickstart-BUXTOSWT.js} +5 -5
  64. package/dist/cli/{quickstart-PCASXB6T.mjs → quickstart-MJUJ3JM2.mjs} +3 -3
  65. package/dist/cli/search-5MYDHDTY.js +26 -0
  66. package/dist/cli/{search-ZTYQBKME.mjs → search-LAJ4V4OY.mjs} +5 -5
  67. package/dist/cli/{secrets-IDF3FB7W.mjs → secrets-JGZRDC7K.mjs} +4 -4
  68. package/dist/cli/{secrets-N3DWWVAY.js → secrets-UDB4XWHC.js} +13 -13
  69. package/dist/cli/{sessions-ECDSBB7P.mjs → sessions-5BPLCV4K.mjs} +4 -4
  70. package/dist/cli/{sessions-SXXMNGUT.js → sessions-YO24QYTQ.js} +5 -5
  71. package/dist/cli/{settings-FKARLN4C.mjs → settings-RMHY4XMX.mjs} +7 -7
  72. package/dist/cli/{settings-IXHK6BAK.js → settings-YLWSKW7F.js} +74 -74
  73. package/dist/cli/{setup-MJXYEE27.js → setup-MVCAZC64.js} +41 -41
  74. package/dist/cli/{setup-LJG55UUU.mjs → setup-MWD2WOPN.mjs} +6 -6
  75. package/dist/cli/{skills-3IBFR2ZU.mjs → skills-7XXKMWN3.mjs} +4 -4
  76. package/dist/cli/skills-D7IDTAKN.js +28 -0
  77. package/dist/cli/tools-BH4LHBHV.js +40 -0
  78. package/dist/cli/{tools-ZJTHJHAD.mjs → tools-BM22TL5A.mjs} +6 -6
  79. package/dist/cli/update-BF2BPMYK.js +28 -0
  80. package/dist/cli/{update-ZN34FLDH.mjs → update-BLLLZRDG.mjs} +6 -6
  81. package/dist/cli/{workflow-LPCF7OMO.mjs → workflow-EOMW666N.mjs} +5 -5
  82. package/dist/cli/{workflow-VLCSTKPW.js → workflow-WG6QFCFL.js} +15 -15
  83. package/dist/index.js +6 -6
  84. package/dist/index.mjs +3 -3
  85. package/dist/install-integrity.json +76 -76
  86. package/dist/plays/bundle-play-file.mjs +1 -1
  87. package/dist/release.d.mts +1 -1
  88. package/dist/release.d.ts +1 -1
  89. package/dist/release.js +2 -2
  90. package/dist/release.mjs +1 -1
  91. package/package.json +1 -1
  92. package/dist/cli/auth-XS3LNSAH.js +0 -31
  93. package/dist/cli/client-ERDYIAWV.js +0 -20
  94. package/dist/cli/git-4ORFOHYQ.js +0 -23
  95. package/dist/cli/play-RRKTT3F2.js +0 -153
  96. package/dist/cli/search-QGFQSDJI.js +0 -26
  97. package/dist/cli/skills-RI3IZNWB.js +0 -28
  98. package/dist/cli/tools-NQJLSI4O.js +0 -40
  99. package/dist/cli/update-JY7TJJDL.js +0 -28
@@ -29,6 +29,27 @@ export function normalizeAgentRuntime(
29
29
  return EXPLICIT_AGENT_RUNTIMES.has(explicit) ? explicit : null;
30
30
  }
31
31
 
32
+ /** Variables agents set to tell the commands they run their session ID. */
33
+ const AGENT_SESSION_ID_VARIABLES = [
34
+ 'CLAUDE_CODE_SESSION_ID',
35
+ 'CODEX_SESSION_ID',
36
+ 'CODEX_THREAD_ID',
37
+ ];
38
+
39
+ /**
40
+ * The ID of the agent session this process was launched from, or null outside
41
+ * one. Every command that needs the session ID reads it here.
42
+ */
43
+ export function agentSessionIdFromEnvironment(
44
+ env: NodeJS.ProcessEnv = process.env,
45
+ ): string | null {
46
+ for (const variable of AGENT_SESSION_ID_VARIABLES) {
47
+ const sessionId = env[variable]?.trim();
48
+ if (sessionId) return sessionId;
49
+ }
50
+ return null;
51
+ }
52
+
32
53
  export function isCoworkLikeSandbox(): boolean {
33
54
  const pluginMode = truthyEnv('DEEPLINE_PLUGIN_MODE');
34
55
  const claudeRemote = truthyEnv('CLAUDE_CODE_REMOTE');
@@ -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.337',
203
+ version: '0.3.339',
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: {
@@ -111,8 +111,8 @@
111
111
  "id": "github.convex-data-sync-to-snowflake",
112
112
  "name": "Convex Data Sync to Snowflake",
113
113
  "scheduler": "github_actions",
114
- "cadence": "17,47 * * * *",
115
- "timezone": "UTC",
114
+ "cadence": "17,47 9-23 * * 1-5; 17 1-7/2 * * 1-5; 17 1-23/2 * * 0,6",
115
+ "timezone": "America/New_York",
116
116
  "source": ".github/workflows/convex-data-sync-to-snowflake.yml",
117
117
  "locator": "schedule:",
118
118
  "owner": "data-platform",
@@ -2101,6 +2101,7 @@ async function analyzeSourceGraph(
2101
2101
  const packages = new Map<string, string | null>();
2102
2102
  const importedPlayDependencies = new Map<string, ImportedPlayDependency>();
2103
2103
  const visited = new Set<string>();
2104
+ const importViolations: string[] = [];
2104
2105
 
2105
2106
  const visitFile = async (filePath: string) => {
2106
2107
  const absolutePath = await normalizeLocalPath(filePath);
@@ -2186,24 +2187,29 @@ async function analyzeSourceGraph(
2186
2187
  packages.set(packageImport.name, packageImport.version);
2187
2188
  };
2188
2189
 
2189
- try {
2190
- for (const reference of findSourceImportReferences(sourceCode)) {
2190
+ // Collect every import violation in the graph instead of stopping at the
2191
+ // first, so one check reports them all.
2192
+ for (const reference of findSourceImportReferences(sourceCode)) {
2193
+ try {
2191
2194
  await handleSpecifier(
2192
2195
  reference.specifier,
2193
2196
  reference.line,
2194
2197
  reference.column,
2195
2198
  reference.kind,
2196
2199
  );
2200
+ } catch (error) {
2201
+ const message = error instanceof Error ? error.message : String(error);
2202
+ importViolations.push(
2203
+ message.startsWith(':') ? `${absolutePath}${message}` : message,
2204
+ );
2197
2205
  }
2198
- } catch (error) {
2199
- if (error instanceof Error && error.message.startsWith(':')) {
2200
- throw new Error(`${absolutePath}${error.message}`);
2201
- }
2202
- throw error;
2203
2206
  }
2204
2207
  };
2205
2208
 
2206
2209
  await visitFile(absoluteEntryFile);
2210
+ if (importViolations.length > 0) {
2211
+ throw new AggregateError(importViolations, importViolations.join('\n'));
2212
+ }
2207
2213
 
2208
2214
  const sourceCode = localFiles.get(absoluteEntryFile) ?? '';
2209
2215
  const sourceHash = sha256(sourceCode);
@@ -2657,6 +2663,13 @@ export async function bundlePlayFile(
2657
2663
  importedPlayDependencies: analysis.importedPlayDependencies,
2658
2664
  };
2659
2665
  } catch (error) {
2666
+ if (error instanceof AggregateError) {
2667
+ return {
2668
+ success: false,
2669
+ filePath: absolutePath,
2670
+ errors: error.errors.map(String),
2671
+ };
2672
+ }
2660
2673
  if (error && typeof error === 'object' && 'errors' in error) {
2661
2674
  const errors = Array.isArray((error as { errors?: Message[] }).errors)
2662
2675
  ? (error as { errors: Message[] }).errors.map(formatEsbuildMessage)
@@ -9,11 +9,11 @@ import {
9
9
  registerAuthCommands,
10
10
  reportSetupCompleted,
11
11
  resolvePendingAuthClaimForResume
12
- } from "./chunk-GPN5QAN2.mjs";
13
- import "./chunk-YQW2FPKQ.mjs";
14
- import "./chunk-NQ42LHHS.mjs";
12
+ } from "./chunk-MIMOIQXH.mjs";
13
+ import "./chunk-YSM3GVSU.mjs";
14
+ import "./chunk-KSHINNFC.mjs";
15
15
  import "./chunk-DLIRSHV6.mjs";
16
- import "./chunk-VXCRG4J7.mjs";
16
+ import "./chunk-KGMWBR5S.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 _chunkOAQ3JR4Fjs = require('./chunk-OAQ3JR4F.js');
13
+ require('./chunk-DOGZHHO5.js');
14
+ require('./chunk-2OJGKWOX.js');
15
+ require('./chunk-XNYIZMNQ.js');
16
+ require('./chunk-2HTS4ZMF.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 = _chunkOAQ3JR4Fjs.EXIT_WORKSPACE_MISMATCH; exports.clearPendingClaim = _chunkOAQ3JR4Fjs.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkOAQ3JR4Fjs.clearSatisfiedPendingClaim; exports.handleRegister = _chunkOAQ3JR4Fjs.handleRegister; exports.handleStatus = _chunkOAQ3JR4Fjs.handleStatus; exports.handleWait = _chunkOAQ3JR4Fjs.handleWait; exports.readPendingAuthClaim = _chunkOAQ3JR4Fjs.readPendingAuthClaim; exports.registerAuthCommands = _chunkOAQ3JR4Fjs.registerAuthCommands; exports.reportSetupCompleted = _chunkOAQ3JR4Fjs.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkOAQ3JR4Fjs.resolvePendingAuthClaimForResume;