deepline 0.1.97 → 0.1.98

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,11 @@ 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
+ version: "0.1.98",
234
235
  apiContract: "2026-06-dataset-column-cell-stale-hard-cutover",
235
236
  supportPolicy: {
236
- latest: "0.1.97",
237
+ latest: "0.1.98",
237
238
  minimumSupported: "0.1.53",
238
239
  deprecatedBelow: "0.1.53"
239
240
  }
@@ -3114,21 +3115,32 @@ function browserAppNameFromBundleId(bundleId) {
3114
3115
  function readDefaultMacBrowserBundleId(runner = defaultBrowserCommandRunner) {
3115
3116
  try {
3116
3117
  const output2 = runner.execFileSync(
3117
- "/usr/bin/defaults",
3118
+ "plutil",
3118
3119
  [
3119
- "read",
3120
- `${(0, import_node_os3.homedir)()}/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist`,
3121
- "LSHandlers"
3120
+ "-convert",
3121
+ "json",
3122
+ "-o",
3123
+ "-",
3124
+ `${(0, import_node_os3.homedir)()}/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist`
3122
3125
  ],
3123
3126
  { encoding: "utf-8", stdio: ["ignore", "pipe", "ignore"] }
3124
3127
  );
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();
3128
+ const payload = JSON.parse(String(output2));
3129
+ const handlers = Array.isArray(payload.LSHandlers) ? payload.LSHandlers : [];
3130
+ const pickBundle = (scheme) => {
3131
+ for (const handler of handlers) {
3132
+ if (!handler || typeof handler !== "object") continue;
3133
+ if (String(handler.LSHandlerURLScheme ?? "").toLowerCase() !== scheme) {
3134
+ continue;
3135
+ }
3136
+ const bundle = String(
3137
+ handler.LSHandlerRoleAll ?? handler.LSHandlerRoleViewer ?? handler.LSHandlerRoleEditor ?? ""
3138
+ ).trim();
3139
+ if (bundle) return bundle;
3140
+ }
3141
+ return "";
3142
+ };
3143
+ return pickBundle("https") || pickBundle("http");
3132
3144
  } catch {
3133
3145
  return "";
3134
3146
  }
@@ -207,10 +207,11 @@ 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
+ version: "0.1.98",
211
212
  apiContract: "2026-06-dataset-column-cell-stale-hard-cutover",
212
213
  supportPolicy: {
213
- latest: "0.1.97",
214
+ latest: "0.1.98",
214
215
  minimumSupported: "0.1.53",
215
216
  deprecatedBelow: "0.1.53"
216
217
  }
@@ -3103,21 +3104,32 @@ function browserAppNameFromBundleId(bundleId) {
3103
3104
  function readDefaultMacBrowserBundleId(runner = defaultBrowserCommandRunner) {
3104
3105
  try {
3105
3106
  const output2 = runner.execFileSync(
3106
- "/usr/bin/defaults",
3107
+ "plutil",
3107
3108
  [
3108
- "read",
3109
- `${homedir3()}/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist`,
3110
- "LSHandlers"
3109
+ "-convert",
3110
+ "json",
3111
+ "-o",
3112
+ "-",
3113
+ `${homedir3()}/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist`
3111
3114
  ],
3112
3115
  { encoding: "utf-8", stdio: ["ignore", "pipe", "ignore"] }
3113
3116
  );
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();
3117
+ const payload = JSON.parse(String(output2));
3118
+ const handlers = Array.isArray(payload.LSHandlers) ? payload.LSHandlers : [];
3119
+ const pickBundle = (scheme) => {
3120
+ for (const handler of handlers) {
3121
+ if (!handler || typeof handler !== "object") continue;
3122
+ if (String(handler.LSHandlerURLScheme ?? "").toLowerCase() !== scheme) {
3123
+ continue;
3124
+ }
3125
+ const bundle = String(
3126
+ handler.LSHandlerRoleAll ?? handler.LSHandlerRoleViewer ?? handler.LSHandlerRoleEditor ?? ""
3127
+ ).trim();
3128
+ if (bundle) return bundle;
3129
+ }
3130
+ return "";
3131
+ };
3132
+ return pickBundle("https") || pickBundle("http");
3121
3133
  } catch {
3122
3134
  return "";
3123
3135
  }
package/dist/index.js CHANGED
@@ -258,10 +258,11 @@ 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
+ version: "0.1.98",
262
263
  apiContract: "2026-06-dataset-column-cell-stale-hard-cutover",
263
264
  supportPolicy: {
264
- latest: "0.1.97",
265
+ latest: "0.1.98",
265
266
  minimumSupported: "0.1.53",
266
267
  deprecatedBelow: "0.1.53"
267
268
  }
package/dist/index.mjs CHANGED
@@ -180,10 +180,11 @@ 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
+ version: "0.1.98",
184
185
  apiContract: "2026-06-dataset-column-cell-stale-hard-cutover",
185
186
  supportPolicy: {
186
- latest: "0.1.97",
187
+ latest: "0.1.98",
187
188
  minimumSupported: "0.1.53",
188
189
  deprecatedBelow: "0.1.53"
189
190
  }
@@ -51,10 +51,11 @@ 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
+ version: '0.1.98',
55
56
  apiContract: '2026-06-dataset-column-cell-stale-hard-cutover',
56
57
  supportPolicy: {
57
- latest: '0.1.97',
58
+ latest: '0.1.98',
58
59
  minimumSupported: '0.1.53',
59
60
  deprecatedBelow: '0.1.53',
60
61
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepline",
3
- "version": "0.1.97",
3
+ "version": "0.1.98",
4
4
  "description": "Deepline SDK + CLI — B2B data enrichment powered by durable cloud execution",
5
5
  "license": "MIT",
6
6
  "repository": {