deepline 0.1.97 → 0.1.99

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.
package/dist/cli/index.js CHANGED
@@ -230,10 +230,12 @@ var import_node_path2 = require("path");
230
230
  // src/release.ts
231
231
  var SDK_RELEASE = {
232
232
  // 0.1.94 is claimed by PR #1527 — this watch-render fix ships as 0.1.95.
233
- version: "0.1.97",
233
+ // 0.1.98 ships the duplicate-browser-tab fix (default-browser detection).
234
+ // 0.1.99 ships prebuilt job-change source-column preservation and validation fixes.
235
+ version: "0.1.99",
234
236
  apiContract: "2026-06-dataset-column-cell-stale-hard-cutover",
235
237
  supportPolicy: {
236
- latest: "0.1.97",
238
+ latest: "0.1.99",
237
239
  minimumSupported: "0.1.53",
238
240
  deprecatedBelow: "0.1.53"
239
241
  }
@@ -3114,21 +3116,32 @@ function browserAppNameFromBundleId(bundleId) {
3114
3116
  function readDefaultMacBrowserBundleId(runner = defaultBrowserCommandRunner) {
3115
3117
  try {
3116
3118
  const output2 = runner.execFileSync(
3117
- "/usr/bin/defaults",
3119
+ "plutil",
3118
3120
  [
3119
- "read",
3120
- `${(0, import_node_os3.homedir)()}/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist`,
3121
- "LSHandlers"
3121
+ "-convert",
3122
+ "json",
3123
+ "-o",
3124
+ "-",
3125
+ `${(0, import_node_os3.homedir)()}/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist`
3122
3126
  ],
3123
3127
  { encoding: "utf-8", stdio: ["ignore", "pipe", "ignore"] }
3124
3128
  );
3125
- const httpsMatch = output2.match(
3126
- /LSHandlerURLScheme\s*=\s*https;[\s\S]*?LSHandlerRole(?:All|Viewer|Editor)\s*=\s*"([^"]+)"/
3127
- );
3128
- const httpMatch = output2.match(
3129
- /LSHandlerURLScheme\s*=\s*http;[\s\S]*?LSHandlerRole(?:All|Viewer|Editor)\s*=\s*"([^"]+)"/
3130
- );
3131
- return (httpsMatch?.[1] ?? httpMatch?.[1] ?? "").trim();
3129
+ const payload = JSON.parse(String(output2));
3130
+ const handlers = Array.isArray(payload.LSHandlers) ? payload.LSHandlers : [];
3131
+ const pickBundle = (scheme) => {
3132
+ for (const handler of handlers) {
3133
+ if (!handler || typeof handler !== "object") continue;
3134
+ if (String(handler.LSHandlerURLScheme ?? "").toLowerCase() !== scheme) {
3135
+ continue;
3136
+ }
3137
+ const bundle = String(
3138
+ handler.LSHandlerRoleAll ?? handler.LSHandlerRoleViewer ?? handler.LSHandlerRoleEditor ?? ""
3139
+ ).trim();
3140
+ if (bundle) return bundle;
3141
+ }
3142
+ return "";
3143
+ };
3144
+ return pickBundle("https") || pickBundle("http");
3132
3145
  } catch {
3133
3146
  return "";
3134
3147
  }
@@ -207,10 +207,12 @@ import { join as join2 } from "path";
207
207
  // src/release.ts
208
208
  var SDK_RELEASE = {
209
209
  // 0.1.94 is claimed by PR #1527 — this watch-render fix ships as 0.1.95.
210
- version: "0.1.97",
210
+ // 0.1.98 ships the duplicate-browser-tab fix (default-browser detection).
211
+ // 0.1.99 ships prebuilt job-change source-column preservation and validation fixes.
212
+ version: "0.1.99",
211
213
  apiContract: "2026-06-dataset-column-cell-stale-hard-cutover",
212
214
  supportPolicy: {
213
- latest: "0.1.97",
215
+ latest: "0.1.99",
214
216
  minimumSupported: "0.1.53",
215
217
  deprecatedBelow: "0.1.53"
216
218
  }
@@ -3103,21 +3105,32 @@ function browserAppNameFromBundleId(bundleId) {
3103
3105
  function readDefaultMacBrowserBundleId(runner = defaultBrowserCommandRunner) {
3104
3106
  try {
3105
3107
  const output2 = runner.execFileSync(
3106
- "/usr/bin/defaults",
3108
+ "plutil",
3107
3109
  [
3108
- "read",
3109
- `${homedir3()}/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist`,
3110
- "LSHandlers"
3110
+ "-convert",
3111
+ "json",
3112
+ "-o",
3113
+ "-",
3114
+ `${homedir3()}/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist`
3111
3115
  ],
3112
3116
  { encoding: "utf-8", stdio: ["ignore", "pipe", "ignore"] }
3113
3117
  );
3114
- const httpsMatch = output2.match(
3115
- /LSHandlerURLScheme\s*=\s*https;[\s\S]*?LSHandlerRole(?:All|Viewer|Editor)\s*=\s*"([^"]+)"/
3116
- );
3117
- const httpMatch = output2.match(
3118
- /LSHandlerURLScheme\s*=\s*http;[\s\S]*?LSHandlerRole(?:All|Viewer|Editor)\s*=\s*"([^"]+)"/
3119
- );
3120
- return (httpsMatch?.[1] ?? httpMatch?.[1] ?? "").trim();
3118
+ const payload = JSON.parse(String(output2));
3119
+ const handlers = Array.isArray(payload.LSHandlers) ? payload.LSHandlers : [];
3120
+ const pickBundle = (scheme) => {
3121
+ for (const handler of handlers) {
3122
+ if (!handler || typeof handler !== "object") continue;
3123
+ if (String(handler.LSHandlerURLScheme ?? "").toLowerCase() !== scheme) {
3124
+ continue;
3125
+ }
3126
+ const bundle = String(
3127
+ handler.LSHandlerRoleAll ?? handler.LSHandlerRoleViewer ?? handler.LSHandlerRoleEditor ?? ""
3128
+ ).trim();
3129
+ if (bundle) return bundle;
3130
+ }
3131
+ return "";
3132
+ };
3133
+ return pickBundle("https") || pickBundle("http");
3121
3134
  } catch {
3122
3135
  return "";
3123
3136
  }
package/dist/index.d.mts CHANGED
@@ -2614,6 +2614,7 @@ type PlayDatasetWorkProgressSummary = {
2614
2614
  };
2615
2615
  };
2616
2616
  type PlayDatasetInput<T> = ReadonlyArray<T> | Iterable<T> | AsyncIterable<T> | PlayDataset<T>;
2617
+ type PlayDatasetRow<TInput> = TInput extends PlayDataset<infer Row> ? Row : TInput extends ReadonlyArray<infer Row> ? Row : TInput extends Iterable<infer Row> ? Row : TInput extends AsyncIterable<infer Row> ? Row : never;
2617
2618
  type PlayDatasetTransformOptions = {
2618
2619
  key?: string;
2619
2620
  sourceLabel?: string | null;
@@ -3116,11 +3117,11 @@ interface DeeplinePlayRuntimeContext {
3116
3117
  *
3117
3118
  * @sdkReference runtime 060 ctx.dataset(key, items)
3118
3119
  */
3119
- dataset<TItem extends object>(key: string, items: PlayDatasetInput<TItem>): DatasetBuilder<TItem, TItem>;
3120
+ dataset<TSource extends PlayDatasetInput<object>>(key: string, items: TSource): DatasetBuilder<PlayDatasetRow<TSource> & object, PlayDatasetRow<TSource> & object>;
3120
3121
  /**
3121
3122
  * @deprecated `ctx.map(...)` was replaced by `ctx.dataset(...)`.
3122
3123
  */
3123
- map<TItem extends object>(key: string, items: PlayDatasetInput<TItem>): never;
3124
+ map<TSource extends PlayDatasetInput<object>>(key: string, items: TSource): never;
3124
3125
  /** Tool execution namespace. */
3125
3126
  tools: {
3126
3127
  /**
package/dist/index.d.ts CHANGED
@@ -2614,6 +2614,7 @@ type PlayDatasetWorkProgressSummary = {
2614
2614
  };
2615
2615
  };
2616
2616
  type PlayDatasetInput<T> = ReadonlyArray<T> | Iterable<T> | AsyncIterable<T> | PlayDataset<T>;
2617
+ type PlayDatasetRow<TInput> = TInput extends PlayDataset<infer Row> ? Row : TInput extends ReadonlyArray<infer Row> ? Row : TInput extends Iterable<infer Row> ? Row : TInput extends AsyncIterable<infer Row> ? Row : never;
2617
2618
  type PlayDatasetTransformOptions = {
2618
2619
  key?: string;
2619
2620
  sourceLabel?: string | null;
@@ -3116,11 +3117,11 @@ interface DeeplinePlayRuntimeContext {
3116
3117
  *
3117
3118
  * @sdkReference runtime 060 ctx.dataset(key, items)
3118
3119
  */
3119
- dataset<TItem extends object>(key: string, items: PlayDatasetInput<TItem>): DatasetBuilder<TItem, TItem>;
3120
+ dataset<TSource extends PlayDatasetInput<object>>(key: string, items: TSource): DatasetBuilder<PlayDatasetRow<TSource> & object, PlayDatasetRow<TSource> & object>;
3120
3121
  /**
3121
3122
  * @deprecated `ctx.map(...)` was replaced by `ctx.dataset(...)`.
3122
3123
  */
3123
- map<TItem extends object>(key: string, items: PlayDatasetInput<TItem>): never;
3124
+ map<TSource extends PlayDatasetInput<object>>(key: string, items: TSource): never;
3124
3125
  /** Tool execution namespace. */
3125
3126
  tools: {
3126
3127
  /**
package/dist/index.js CHANGED
@@ -258,10 +258,12 @@ var import_node_path2 = require("path");
258
258
  // src/release.ts
259
259
  var SDK_RELEASE = {
260
260
  // 0.1.94 is claimed by PR #1527 — this watch-render fix ships as 0.1.95.
261
- version: "0.1.97",
261
+ // 0.1.98 ships the duplicate-browser-tab fix (default-browser detection).
262
+ // 0.1.99 ships prebuilt job-change source-column preservation and validation fixes.
263
+ version: "0.1.99",
262
264
  apiContract: "2026-06-dataset-column-cell-stale-hard-cutover",
263
265
  supportPolicy: {
264
- latest: "0.1.97",
266
+ latest: "0.1.99",
265
267
  minimumSupported: "0.1.53",
266
268
  deprecatedBelow: "0.1.53"
267
269
  }
package/dist/index.mjs CHANGED
@@ -180,10 +180,12 @@ import { join as join2 } from "path";
180
180
  // src/release.ts
181
181
  var SDK_RELEASE = {
182
182
  // 0.1.94 is claimed by PR #1527 — this watch-render fix ships as 0.1.95.
183
- version: "0.1.97",
183
+ // 0.1.98 ships the duplicate-browser-tab fix (default-browser detection).
184
+ // 0.1.99 ships prebuilt job-change source-column preservation and validation fixes.
185
+ version: "0.1.99",
184
186
  apiContract: "2026-06-dataset-column-cell-stale-hard-cutover",
185
187
  supportPolicy: {
186
- latest: "0.1.97",
188
+ latest: "0.1.99",
187
189
  minimumSupported: "0.1.53",
188
190
  deprecatedBelow: "0.1.53"
189
191
  }
@@ -80,6 +80,7 @@ export {
80
80
  import type {
81
81
  PlayDataset,
82
82
  PlayDatasetInput,
83
+ PlayDatasetRow,
83
84
  } from '../../shared_libs/plays/dataset.js';
84
85
  import type {
85
86
  ToolExecuteResult,
@@ -636,14 +637,20 @@ export interface DeeplinePlayRuntimeContext {
636
637
  *
637
638
  * @sdkReference runtime 060 ctx.dataset(key, items)
638
639
  */
639
- dataset<TItem extends object>(
640
+ dataset<TSource extends PlayDatasetInput<object>>(
640
641
  key: string,
641
- items: PlayDatasetInput<TItem>,
642
- ): DatasetBuilder<TItem, TItem>;
642
+ items: TSource,
643
+ ): DatasetBuilder<
644
+ PlayDatasetRow<TSource> & object,
645
+ PlayDatasetRow<TSource> & object
646
+ >;
643
647
  /**
644
648
  * @deprecated `ctx.map(...)` was replaced by `ctx.dataset(...)`.
645
649
  */
646
- map<TItem extends object>(key: string, items: PlayDatasetInput<TItem>): never;
650
+ map<TSource extends PlayDatasetInput<object>>(
651
+ key: string,
652
+ items: TSource,
653
+ ): never;
647
654
 
648
655
  /** Tool execution namespace. */
649
656
  tools: {
@@ -1008,6 +1015,7 @@ export type PlayReferenceLike = {
1008
1015
  export type {
1009
1016
  PlayDataset,
1010
1017
  PlayDatasetInput,
1018
+ PlayDatasetRow,
1011
1019
  } from '../../shared_libs/plays/dataset.js';
1012
1020
 
1013
1021
  export type PlayReturnObject = Record<string, unknown> & {
@@ -51,10 +51,12 @@ export type SdkRelease = {
51
51
 
52
52
  export const SDK_RELEASE = {
53
53
  // 0.1.94 is claimed by PR #1527 — this watch-render fix ships as 0.1.95.
54
- version: '0.1.97',
54
+ // 0.1.98 ships the duplicate-browser-tab fix (default-browser detection).
55
+ // 0.1.99 ships prebuilt job-change source-column preservation and validation fixes.
56
+ version: '0.1.99',
55
57
  apiContract: '2026-06-dataset-column-cell-stale-hard-cutover',
56
58
  supportPolicy: {
57
- latest: '0.1.97',
59
+ latest: '0.1.99',
58
60
  minimumSupported: '0.1.53',
59
61
  deprecatedBelow: '0.1.53',
60
62
  },
@@ -55,6 +55,17 @@ export type PlayDatasetInput<T> =
55
55
  | AsyncIterable<T>
56
56
  | PlayDataset<T>;
57
57
 
58
+ export type PlayDatasetRow<TInput> =
59
+ TInput extends PlayDataset<infer Row>
60
+ ? Row
61
+ : TInput extends ReadonlyArray<infer Row>
62
+ ? Row
63
+ : TInput extends Iterable<infer Row>
64
+ ? Row
65
+ : TInput extends AsyncIterable<infer Row>
66
+ ? Row
67
+ : never;
68
+
58
69
  export type PlayDatasetTransformOptions = {
59
70
  key?: string;
60
71
  sourceLabel?: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepline",
3
- "version": "0.1.97",
3
+ "version": "0.1.99",
4
4
  "description": "Deepline SDK + CLI — B2B data enrichment powered by durable cloud execution",
5
5
  "license": "MIT",
6
6
  "repository": {