deepline 0.1.128 → 0.1.130
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/bundling-sources/sdk/src/compat.ts +75 -14
- package/dist/bundling-sources/sdk/src/config.ts +13 -0
- package/dist/bundling-sources/sdk/src/http.ts +10 -3
- package/dist/bundling-sources/sdk/src/release.ts +2 -2
- package/dist/bundling-sources/sdk/src/types.ts +2 -0
- package/dist/cli/index.js +228 -95
- package/dist/cli/index.mjs +224 -91
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +18 -4
- package/dist/index.mjs +18 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -200,6 +200,15 @@ function sdkCliConfigDir(baseUrl) {
|
|
|
200
200
|
const home = process.env.HOME?.trim() || (0, import_node_os.homedir)();
|
|
201
201
|
return (0, import_node_path.join)(home, ".local", "deepline", baseUrlSlug(baseUrl || PROD_URL));
|
|
202
202
|
}
|
|
203
|
+
function sdkCliStateDirPath(baseUrl, homeDir = process.env.HOME?.trim() || (0, import_node_os.homedir)()) {
|
|
204
|
+
return (0, import_node_path.join)(
|
|
205
|
+
homeDir,
|
|
206
|
+
".local",
|
|
207
|
+
"deepline",
|
|
208
|
+
baseUrlSlug(baseUrl || PROD_URL),
|
|
209
|
+
"sdk-cli"
|
|
210
|
+
);
|
|
211
|
+
}
|
|
203
212
|
function sdkCliEnvFilePath(baseUrl) {
|
|
204
213
|
return (0, import_node_path.join)(sdkCliConfigDir(baseUrl), ".env");
|
|
205
214
|
}
|
|
@@ -275,10 +284,10 @@ var SDK_RELEASE = {
|
|
|
275
284
|
// 0.1.108 ships explicit dataset column/tool recompute policy and removes
|
|
276
285
|
// the SDK enrich generator's one-second stale policy.
|
|
277
286
|
// 0.1.110 ships authored V2 prebuilts and required top-level play descriptions.
|
|
278
|
-
version: "0.1.
|
|
287
|
+
version: "0.1.130",
|
|
279
288
|
apiContract: "2026-06-dataset-column-cell-stale-hard-cutover",
|
|
280
289
|
supportPolicy: {
|
|
281
|
-
latest: "0.1.
|
|
290
|
+
latest: "0.1.130",
|
|
282
291
|
minimumSupported: "0.1.53",
|
|
283
292
|
deprecatedBelow: "0.1.53",
|
|
284
293
|
commandMinimumSupported: [
|
|
@@ -428,6 +437,10 @@ var HttpClient = class {
|
|
|
428
437
|
if (explicit) return explicit;
|
|
429
438
|
try {
|
|
430
439
|
const versionPath = (0, import_node_path2.join)(
|
|
440
|
+
sdkCliStateDirPath(this.config.baseUrl),
|
|
441
|
+
"skills-version"
|
|
442
|
+
);
|
|
443
|
+
const legacyVersionPath = (0, import_node_path2.join)(
|
|
431
444
|
process.env.HOME?.trim() || (0, import_node_os3.homedir)(),
|
|
432
445
|
".local",
|
|
433
446
|
"deepline",
|
|
@@ -435,8 +448,9 @@ var HttpClient = class {
|
|
|
435
448
|
"sdk-skills",
|
|
436
449
|
".version"
|
|
437
450
|
);
|
|
438
|
-
|
|
439
|
-
|
|
451
|
+
const resolvedPath = (0, import_node_fs2.existsSync)(versionPath) ? versionPath : legacyVersionPath;
|
|
452
|
+
if (!(0, import_node_fs2.existsSync)(resolvedPath)) return null;
|
|
453
|
+
return this.cleanDiagnosticHeader((0, import_node_fs2.readFileSync)(resolvedPath, "utf-8"));
|
|
440
454
|
} catch {
|
|
441
455
|
return null;
|
|
442
456
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -122,6 +122,15 @@ function sdkCliConfigDir(baseUrl) {
|
|
|
122
122
|
const home = process.env.HOME?.trim() || homedir();
|
|
123
123
|
return join(home, ".local", "deepline", baseUrlSlug(baseUrl || PROD_URL));
|
|
124
124
|
}
|
|
125
|
+
function sdkCliStateDirPath(baseUrl, homeDir = process.env.HOME?.trim() || homedir()) {
|
|
126
|
+
return join(
|
|
127
|
+
homeDir,
|
|
128
|
+
".local",
|
|
129
|
+
"deepline",
|
|
130
|
+
baseUrlSlug(baseUrl || PROD_URL),
|
|
131
|
+
"sdk-cli"
|
|
132
|
+
);
|
|
133
|
+
}
|
|
125
134
|
function sdkCliEnvFilePath(baseUrl) {
|
|
126
135
|
return join(sdkCliConfigDir(baseUrl), ".env");
|
|
127
136
|
}
|
|
@@ -197,10 +206,10 @@ var SDK_RELEASE = {
|
|
|
197
206
|
// 0.1.108 ships explicit dataset column/tool recompute policy and removes
|
|
198
207
|
// the SDK enrich generator's one-second stale policy.
|
|
199
208
|
// 0.1.110 ships authored V2 prebuilts and required top-level play descriptions.
|
|
200
|
-
version: "0.1.
|
|
209
|
+
version: "0.1.130",
|
|
201
210
|
apiContract: "2026-06-dataset-column-cell-stale-hard-cutover",
|
|
202
211
|
supportPolicy: {
|
|
203
|
-
latest: "0.1.
|
|
212
|
+
latest: "0.1.130",
|
|
204
213
|
minimumSupported: "0.1.53",
|
|
205
214
|
deprecatedBelow: "0.1.53",
|
|
206
215
|
commandMinimumSupported: [
|
|
@@ -350,6 +359,10 @@ var HttpClient = class {
|
|
|
350
359
|
if (explicit) return explicit;
|
|
351
360
|
try {
|
|
352
361
|
const versionPath = join2(
|
|
362
|
+
sdkCliStateDirPath(this.config.baseUrl),
|
|
363
|
+
"skills-version"
|
|
364
|
+
);
|
|
365
|
+
const legacyVersionPath = join2(
|
|
353
366
|
process.env.HOME?.trim() || homedir3(),
|
|
354
367
|
".local",
|
|
355
368
|
"deepline",
|
|
@@ -357,8 +370,9 @@ var HttpClient = class {
|
|
|
357
370
|
"sdk-skills",
|
|
358
371
|
".version"
|
|
359
372
|
);
|
|
360
|
-
|
|
361
|
-
|
|
373
|
+
const resolvedPath = existsSync2(versionPath) ? versionPath : legacyVersionPath;
|
|
374
|
+
if (!existsSync2(resolvedPath)) return null;
|
|
375
|
+
return this.cleanDiagnosticHeader(readFileSync2(resolvedPath, "utf-8"));
|
|
362
376
|
} catch {
|
|
363
377
|
return null;
|
|
364
378
|
}
|