deepline 0.3.170 → 0.3.172

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.
@@ -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.170',
203
+ version: '0.3.172',
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: {
@@ -39,3 +39,11 @@ export function isManuallyRunnableConvexCronJob(
39
39
  ): jobId is ManuallyRunnableConvexCronJobId {
40
40
  return manuallyRunnableConvexCronJobIds.has(jobId);
41
41
  }
42
+
43
+ /** Preview cron roots run only when requested during a check. */
44
+ export function isPreviewOnDemandScheduledWork(
45
+ jobId: string,
46
+ environment: string,
47
+ ): boolean {
48
+ return environment === 'preview' && isManuallyRunnableConvexCronJob(jobId);
49
+ }
package/dist/cli/index.js CHANGED
@@ -3051,7 +3051,7 @@ var SDK_RELEASE = {
3051
3051
  // getters keep their established compatibility behavior.
3052
3052
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
3053
3053
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
3054
- version: "0.3.170",
3054
+ version: "0.3.172",
3055
3055
  updateSummary: "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.",
3056
3056
  packageCapabilities: {
3057
3057
  updatePreferences: 1
@@ -37115,34 +37115,8 @@ async function handleSessionsSend(options) {
37115
37115
  { json: options.json }
37116
37116
  );
37117
37117
  }
37118
- function fallbackViewerAssets() {
37119
- return {
37120
- css: [
37121
- "body{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;margin:0;padding:16px;background:#fafafa;color:#111}",
37122
- ".section{background:#fff;border:1px solid #ddd;border-radius:8px;padding:12px;margin-bottom:12px}",
37123
- ".section h2{margin:0 0 8px 0;font-size:14px}",
37124
- "pre{margin:0;white-space:pre-wrap;word-break:break-word;background:#f6f8fa;border:1px solid #e3e5e8;border-radius:6px;padding:10px}"
37125
- ].join(""),
37126
- js: [
37127
- "(() => {",
37128
- 'const root=document.getElementById("main-content");',
37129
- 'const raw=document.getElementById("raw-sessions");',
37130
- "if(!root||!raw)return;",
37131
- 'let sessions=[];try{sessions=JSON.parse(raw.textContent||"[]")}catch{}',
37132
- 'root.innerHTML="";',
37133
- "for(const session of sessions){",
37134
- 'const section=document.createElement("section");section.className="section";',
37135
- 'const title=document.createElement("h2");title.textContent=String(session.label||"session");',
37136
- 'const pre=document.createElement("pre");',
37137
- 'pre.textContent=(Array.isArray(session.events)?session.events:[]).map((event)=>JSON.stringify(event)).join("\\n");',
37138
- "section.append(title,pre);root.appendChild(section);",
37139
- "}",
37140
- "})();"
37141
- ].join("")
37142
- };
37143
- }
37144
37118
  function loadViewerAssets() {
37145
- const cliEntry = process.argv[1]?.trim() ? (0, import_node_path19.resolve)(process.argv[1]) : null;
37119
+ const cliEntry = process.argv[1]?.trim() ? (0, import_node_fs14.realpathSync)((0, import_node_path19.resolve)(process.argv[1])) : null;
37146
37120
  const candidateRoots2 = [
37147
37121
  ...cliEntry ? [
37148
37122
  (0, import_node_path19.join)((0, import_node_path19.dirname)((0, import_node_path19.dirname)(cliEntry)), "viewer"),
@@ -37169,7 +37143,9 @@ function loadViewerAssets() {
37169
37143
  continue;
37170
37144
  }
37171
37145
  }
37172
- return fallbackViewerAssets();
37146
+ throw new Error(
37147
+ `Session viewer assets not found. Reinstall the CLI or build its viewer assets. Searched: ${candidateRoots2.join(", ")}`
37148
+ );
37173
37149
  }
37174
37150
  function parsePreparedEvents(buffer) {
37175
37151
  return normalizedJsonLines(buffer).map((line) => {
@@ -3046,7 +3046,7 @@ var SDK_RELEASE = {
3046
3046
  // getters keep their established compatibility behavior.
3047
3047
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
3048
3048
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
3049
- version: "0.3.170",
3049
+ version: "0.3.172",
3050
3050
  updateSummary: "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.",
3051
3051
  packageCapabilities: {
3052
3052
  updatePreferences: 1
@@ -36658,6 +36658,7 @@ import {
36658
36658
  mkdirSync as mkdirSync8,
36659
36659
  readdirSync as readdirSync3,
36660
36660
  readFileSync as readFileSync11,
36661
+ realpathSync as realpathSync3,
36661
36662
  statSync as statSync4,
36662
36663
  writeFileSync as writeFileSync11
36663
36664
  } from "fs";
@@ -37194,34 +37195,8 @@ async function handleSessionsSend(options) {
37194
37195
  { json: options.json }
37195
37196
  );
37196
37197
  }
37197
- function fallbackViewerAssets() {
37198
- return {
37199
- css: [
37200
- "body{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;margin:0;padding:16px;background:#fafafa;color:#111}",
37201
- ".section{background:#fff;border:1px solid #ddd;border-radius:8px;padding:12px;margin-bottom:12px}",
37202
- ".section h2{margin:0 0 8px 0;font-size:14px}",
37203
- "pre{margin:0;white-space:pre-wrap;word-break:break-word;background:#f6f8fa;border:1px solid #e3e5e8;border-radius:6px;padding:10px}"
37204
- ].join(""),
37205
- js: [
37206
- "(() => {",
37207
- 'const root=document.getElementById("main-content");',
37208
- 'const raw=document.getElementById("raw-sessions");',
37209
- "if(!root||!raw)return;",
37210
- 'let sessions=[];try{sessions=JSON.parse(raw.textContent||"[]")}catch{}',
37211
- 'root.innerHTML="";',
37212
- "for(const session of sessions){",
37213
- 'const section=document.createElement("section");section.className="section";',
37214
- 'const title=document.createElement("h2");title.textContent=String(session.label||"session");',
37215
- 'const pre=document.createElement("pre");',
37216
- 'pre.textContent=(Array.isArray(session.events)?session.events:[]).map((event)=>JSON.stringify(event)).join("\\n");',
37217
- "section.append(title,pre);root.appendChild(section);",
37218
- "}",
37219
- "})();"
37220
- ].join("")
37221
- };
37222
- }
37223
37198
  function loadViewerAssets() {
37224
- const cliEntry = process.argv[1]?.trim() ? resolve14(process.argv[1]) : null;
37199
+ const cliEntry = process.argv[1]?.trim() ? realpathSync3(resolve14(process.argv[1])) : null;
37225
37200
  const candidateRoots2 = [
37226
37201
  ...cliEntry ? [
37227
37202
  join15(dirname12(dirname12(cliEntry)), "viewer"),
@@ -37248,7 +37223,9 @@ function loadViewerAssets() {
37248
37223
  continue;
37249
37224
  }
37250
37225
  }
37251
- return fallbackViewerAssets();
37226
+ throw new Error(
37227
+ `Session viewer assets not found. Reinstall the CLI or build its viewer assets. Searched: ${candidateRoots2.join(", ")}`
37228
+ );
37252
37229
  }
37253
37230
  function parsePreparedEvents(buffer) {
37254
37231
  return normalizedJsonLines(buffer).map((line) => {
@@ -42734,7 +42711,7 @@ import {
42734
42711
  lstatSync as lstatSync2,
42735
42712
  mkdirSync as mkdirSync12,
42736
42713
  readFileSync as readFileSync17,
42737
- realpathSync as realpathSync4,
42714
+ realpathSync as realpathSync5,
42738
42715
  writeFileSync as writeFileSync16
42739
42716
  } from "fs";
42740
42717
  import { homedir as homedir9 } from "os";
@@ -42745,7 +42722,7 @@ import {
42745
42722
  existsSync as existsSync12,
42746
42723
  lstatSync,
42747
42724
  readFileSync as readFileSync14,
42748
- realpathSync as realpathSync3,
42725
+ realpathSync as realpathSync4,
42749
42726
  rmSync as rmSync4
42750
42727
  } from "fs";
42751
42728
  import { basename as basename6, dirname as dirname13, join as join17, relative as relative6, resolve as resolve16 } from "path";
@@ -42767,7 +42744,7 @@ var nodeFileSystem = {
42767
42744
  },
42768
42745
  realpath(path) {
42769
42746
  try {
42770
- return realpathSync3(path);
42747
+ return realpathSync4(path);
42771
42748
  } catch {
42772
42749
  return null;
42773
42750
  }
@@ -44737,7 +44714,7 @@ function resolvePathCommand(command) {
44737
44714
  function isHomebrewFormulaCommand(path) {
44738
44715
  let resolvedPath = path;
44739
44716
  try {
44740
- resolvedPath = realpathSync4(path);
44717
+ resolvedPath = realpathSync5(path);
44741
44718
  } catch {
44742
44719
  return false;
44743
44720
  }
@@ -44773,7 +44750,7 @@ function inspectGlobalCliAvailability(input2) {
44773
44750
  }
44774
44751
  function pathsResolveToSameFile(left, right) {
44775
44752
  try {
44776
- return realpathSync4(left) === realpathSync4(right);
44753
+ return realpathSync5(left) === realpathSync5(right);
44777
44754
  } catch {
44778
44755
  return resolve17(left) === resolve17(right);
44779
44756
  }
@@ -44782,7 +44759,7 @@ function isKnownDeeplineCommand(path) {
44782
44759
  const entrypoint = process.argv[1] ? resolve17(process.argv[1]) : "";
44783
44760
  let resolvedPath = path;
44784
44761
  try {
44785
- resolvedPath = realpathSync4(path);
44762
+ resolvedPath = realpathSync5(path);
44786
44763
  } catch {
44787
44764
  }
44788
44765
  if (entrypoint && resolvedPath === entrypoint) return true;
@@ -44795,7 +44772,7 @@ function inspectPathConflict() {
44795
44772
  if (!commandPath || isKnownDeeplineCommand(commandPath)) return null;
44796
44773
  try {
44797
44774
  if (lstatSync2(commandPath).isSymbolicLink()) {
44798
- const target = realpathSync4(commandPath);
44775
+ const target = realpathSync5(commandPath);
44799
44776
  if (target.includes(`${join20("node_modules", "deepline")}`)) return null;
44800
44777
  }
44801
44778
  } catch {
@@ -45599,7 +45576,7 @@ import { spawn as spawn4, spawnSync as spawnSync4 } from "child_process";
45599
45576
  import {
45600
45577
  existsSync as existsSync18,
45601
45578
  mkdirSync as mkdirSync14,
45602
- realpathSync as realpathSync5,
45579
+ realpathSync as realpathSync6,
45603
45580
  readFileSync as readFileSync20,
45604
45581
  renameSync as renameSync3,
45605
45582
  rmSync as rmSync7,
@@ -45919,7 +45896,7 @@ function findRepoBackedSdkRoot(startPath) {
45919
45896
  function inferNpmGlobalPrefixFromEntrypoint(entrypoint, env) {
45920
45897
  const normalized = (() => {
45921
45898
  try {
45922
- return realpathSync5(entrypoint);
45899
+ return realpathSync6(entrypoint);
45923
45900
  } catch {
45924
45901
  return resolve19(entrypoint);
45925
45902
  }
@@ -45952,7 +45929,7 @@ function normalizedNpmPrefix(value) {
45952
45929
  if (!trimmed) return null;
45953
45930
  const normalized = (() => {
45954
45931
  try {
45955
- return realpathSync5(resolve19(trimmed));
45932
+ return realpathSync6(resolve19(trimmed));
45956
45933
  } catch {
45957
45934
  return resolve19(trimmed);
45958
45935
  }
@@ -45977,7 +45954,7 @@ function resolveNpmGlobalPrefix(env) {
45977
45954
  function isHomebrewFormulaEntrypoint(entrypoint) {
45978
45955
  const normalized = (() => {
45979
45956
  try {
45980
- return realpathSync5(entrypoint);
45957
+ return realpathSync6(entrypoint);
45981
45958
  } catch {
45982
45959
  return resolve19(entrypoint);
45983
45960
  }
package/dist/index.js CHANGED
@@ -864,7 +864,7 @@ var SDK_RELEASE = {
864
864
  // getters keep their established compatibility behavior.
865
865
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
866
866
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
867
- version: "0.3.170",
867
+ version: "0.3.172",
868
868
  updateSummary: "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.",
869
869
  packageCapabilities: {
870
870
  updatePreferences: 1
package/dist/index.mjs CHANGED
@@ -768,7 +768,7 @@ var SDK_RELEASE = {
768
768
  // getters keep their established compatibility behavior.
769
769
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
770
770
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
771
- version: "0.3.170",
771
+ version: "0.3.172",
772
772
  updateSummary: "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.",
773
773
  packageCapabilities: {
774
774
  updatePreferences: 1
@@ -149,7 +149,7 @@ type SdkRelease = {
149
149
  supportPolicy: SdkSupportPolicy;
150
150
  };
151
151
  declare const SDK_RELEASE: {
152
- readonly version: "0.3.170";
152
+ readonly version: "0.3.172";
153
153
  readonly updateSummary: "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.";
154
154
  readonly packageCapabilities: {
155
155
  readonly updatePreferences: 1;
package/dist/release.d.ts CHANGED
@@ -149,7 +149,7 @@ type SdkRelease = {
149
149
  supportPolicy: SdkSupportPolicy;
150
150
  };
151
151
  declare const SDK_RELEASE: {
152
- readonly version: "0.3.170";
152
+ readonly version: "0.3.172";
153
153
  readonly updateSummary: "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.";
154
154
  readonly packageCapabilities: {
155
155
  readonly updatePreferences: 1;
package/dist/release.js CHANGED
@@ -74,7 +74,7 @@ var SDK_RELEASE = {
74
74
  // getters keep their established compatibility behavior.
75
75
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
76
76
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
77
- version: "0.3.170",
77
+ version: "0.3.172",
78
78
  updateSummary: "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.",
79
79
  packageCapabilities: {
80
80
  updatePreferences: 1
package/dist/release.mjs CHANGED
@@ -48,7 +48,7 @@ var SDK_RELEASE = {
48
48
  // getters keep their established compatibility behavior.
49
49
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
50
50
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
51
- version: "0.3.170",
51
+ version: "0.3.172",
52
52
  updateSummary: "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.",
53
53
  packageCapabilities: {
54
54
  updatePreferences: 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepline",
3
- "version": "0.3.170",
3
+ "version": "0.3.172",
4
4
  "description": "GTM data CLI and TypeScript SDK for coding agents",
5
5
  "license": "MIT",
6
6
  "homepage": "https://code.deepline.com",