deepline 0.1.241 → 0.1.243
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/release.ts +2 -2
- package/dist/cli/index.js +33 -6
- package/dist/cli/index.mjs +33 -6
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
|
@@ -113,10 +113,10 @@ export const SDK_RELEASE = {
|
|
|
113
113
|
// 0.1.241 hard-cuts published and launched plays to immutable cjs_node20
|
|
114
114
|
// artifacts. Older clients can submit esm_workers artifacts that the Absurd
|
|
115
115
|
// runtime intentionally no longer compiles at publish or launch time.
|
|
116
|
-
version: '0.1.
|
|
116
|
+
version: '0.1.243',
|
|
117
117
|
apiContract: '2026-07-immutable-cjs-play-artifacts-hard-cutover',
|
|
118
118
|
supportPolicy: {
|
|
119
|
-
latest: '0.1.
|
|
119
|
+
latest: '0.1.243',
|
|
120
120
|
minimumSupported: '0.1.53',
|
|
121
121
|
deprecatedBelow: '0.1.219',
|
|
122
122
|
commandMinimumSupported: [
|
package/dist/cli/index.js
CHANGED
|
@@ -630,10 +630,10 @@ var SDK_RELEASE = {
|
|
|
630
630
|
// 0.1.241 hard-cuts published and launched plays to immutable cjs_node20
|
|
631
631
|
// artifacts. Older clients can submit esm_workers artifacts that the Absurd
|
|
632
632
|
// runtime intentionally no longer compiles at publish or launch time.
|
|
633
|
-
version: "0.1.
|
|
633
|
+
version: "0.1.243",
|
|
634
634
|
apiContract: "2026-07-immutable-cjs-play-artifacts-hard-cutover",
|
|
635
635
|
supportPolicy: {
|
|
636
|
-
latest: "0.1.
|
|
636
|
+
latest: "0.1.243",
|
|
637
637
|
minimumSupported: "0.1.53",
|
|
638
638
|
deprecatedBelow: "0.1.219",
|
|
639
639
|
commandMinimumSupported: [
|
|
@@ -26561,17 +26561,22 @@ async function grepTools(queryInput, options = {}) {
|
|
|
26561
26561
|
const client2 = new DeeplineClient();
|
|
26562
26562
|
const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
|
|
26563
26563
|
const mode = options.mode ?? "all";
|
|
26564
|
+
const jsonOutput = options.json === true;
|
|
26565
|
+
let apiCompact = !jsonOutput;
|
|
26566
|
+
if (typeof options.compact === "boolean") {
|
|
26567
|
+
apiCompact = options.compact;
|
|
26568
|
+
}
|
|
26564
26569
|
const tools = (await client2.listTools({
|
|
26565
26570
|
grep: query,
|
|
26566
26571
|
grepMode: mode,
|
|
26567
26572
|
...options.categories ? { categories: options.categories } : {},
|
|
26568
|
-
compact:
|
|
26573
|
+
compact: apiCompact
|
|
26569
26574
|
})).map(toListedTool).filter(
|
|
26570
26575
|
(item) => requestedCategories.length === 0 || requestedCategories.some(
|
|
26571
26576
|
(category) => item.categories.includes(category)
|
|
26572
26577
|
)
|
|
26573
26578
|
).filter(
|
|
26574
|
-
(item) => matchesGrepQuery(
|
|
26579
|
+
(item) => apiCompact ? true : matchesGrepQuery(
|
|
26575
26580
|
{
|
|
26576
26581
|
id: item.toolId,
|
|
26577
26582
|
toolId: item.toolId,
|
|
@@ -26581,13 +26586,15 @@ async function grepTools(queryInput, options = {}) {
|
|
|
26581
26586
|
categories: item.categories,
|
|
26582
26587
|
operation: item.operation,
|
|
26583
26588
|
operationAliases: item.operationAliases,
|
|
26589
|
+
inputSchema: item.inputSchema,
|
|
26590
|
+
outputSchema: item.outputSchema,
|
|
26584
26591
|
inputFields: item.inputFields
|
|
26585
26592
|
},
|
|
26586
26593
|
query,
|
|
26587
26594
|
mode
|
|
26588
26595
|
)
|
|
26589
26596
|
);
|
|
26590
|
-
const shouldCompact =
|
|
26597
|
+
const shouldCompact = apiCompact;
|
|
26591
26598
|
const outputTools = shouldCompact ? tools.slice(0, 8).map(compactTool) : tools;
|
|
26592
26599
|
const emptyResult = tools.length === 0 ? zeroMatchToolGuidance({
|
|
26593
26600
|
categories: requestedCategories,
|
|
@@ -29050,6 +29057,22 @@ function sidecarStateDir(input2) {
|
|
|
29050
29057
|
}
|
|
29051
29058
|
return (0, import_node_path19.join)(input2.homeDir, ".local", "deepline", scope, "sdk-cli");
|
|
29052
29059
|
}
|
|
29060
|
+
function sidecarRegistryUrl(hostUrl) {
|
|
29061
|
+
let url;
|
|
29062
|
+
try {
|
|
29063
|
+
url = new URL(hostUrl);
|
|
29064
|
+
} catch {
|
|
29065
|
+
throw new Error(
|
|
29066
|
+
"The Python-managed SDK sidecar is missing a valid Deepline host URL for its npm registry."
|
|
29067
|
+
);
|
|
29068
|
+
}
|
|
29069
|
+
if (url.protocol !== "https:" && url.protocol !== "http:" || !url.hostname || url.username || url.password) {
|
|
29070
|
+
throw new Error(
|
|
29071
|
+
"The Python-managed SDK sidecar has an invalid Deepline host URL for its npm registry."
|
|
29072
|
+
);
|
|
29073
|
+
}
|
|
29074
|
+
return new URL("/api/v2/npm/", url).toString();
|
|
29075
|
+
}
|
|
29053
29076
|
function readOptionalText(path) {
|
|
29054
29077
|
try {
|
|
29055
29078
|
return (0, import_node_fs17.readFileSync)(path, "utf8").trim();
|
|
@@ -29079,8 +29102,9 @@ function resolvePythonSidecarUpdatePlan(options) {
|
|
|
29079
29102
|
);
|
|
29080
29103
|
const packageSpec = options.packageSpec || "deepline@latest";
|
|
29081
29104
|
const npmCommand = "npm";
|
|
29105
|
+
const registryUrl = sidecarRegistryUrl(hostUrl);
|
|
29082
29106
|
const versionDir = (0, import_node_path19.join)(stateDir, "versions", "<version>");
|
|
29083
|
-
const manualCommand = `${buildSidecarProjectConfigCommand(versionDir, nodeBin)} && ${npmCommand} install --prefix ${shellQuote6(versionDir)} ${NPM_SDK_INSTALL_COMMON_FLAGS.map(shellQuote6).join(" ")} ${shellQuote6(packageSpec)}`;
|
|
29107
|
+
const manualCommand = `${buildSidecarProjectConfigCommand(versionDir, nodeBin)} && ${npmCommand} install --prefix ${shellQuote6(versionDir)} --registry ${shellQuote6(registryUrl)} ${NPM_SDK_INSTALL_COMMON_FLAGS.map(shellQuote6).join(" ")} ${shellQuote6(packageSpec)}`;
|
|
29084
29108
|
return {
|
|
29085
29109
|
kind: "python-sidecar",
|
|
29086
29110
|
stateDir,
|
|
@@ -29089,6 +29113,7 @@ function resolvePythonSidecarUpdatePlan(options) {
|
|
|
29089
29113
|
npmCommand,
|
|
29090
29114
|
scope,
|
|
29091
29115
|
hostUrl,
|
|
29116
|
+
registryUrl,
|
|
29092
29117
|
packageSpec,
|
|
29093
29118
|
manualCommand
|
|
29094
29119
|
};
|
|
@@ -29348,6 +29373,8 @@ async function runPythonSidecarUpdatePlan(plan, options = {}) {
|
|
|
29348
29373
|
"install",
|
|
29349
29374
|
"--prefix",
|
|
29350
29375
|
tempDir,
|
|
29376
|
+
"--registry",
|
|
29377
|
+
plan.registryUrl,
|
|
29351
29378
|
...NPM_SDK_INSTALL_COMMON_FLAGS,
|
|
29352
29379
|
plan.packageSpec
|
|
29353
29380
|
],
|
package/dist/cli/index.mjs
CHANGED
|
@@ -615,10 +615,10 @@ var SDK_RELEASE = {
|
|
|
615
615
|
// 0.1.241 hard-cuts published and launched plays to immutable cjs_node20
|
|
616
616
|
// artifacts. Older clients can submit esm_workers artifacts that the Absurd
|
|
617
617
|
// runtime intentionally no longer compiles at publish or launch time.
|
|
618
|
-
version: "0.1.
|
|
618
|
+
version: "0.1.243",
|
|
619
619
|
apiContract: "2026-07-immutable-cjs-play-artifacts-hard-cutover",
|
|
620
620
|
supportPolicy: {
|
|
621
|
-
latest: "0.1.
|
|
621
|
+
latest: "0.1.243",
|
|
622
622
|
minimumSupported: "0.1.53",
|
|
623
623
|
deprecatedBelow: "0.1.219",
|
|
624
624
|
commandMinimumSupported: [
|
|
@@ -26609,17 +26609,22 @@ async function grepTools(queryInput, options = {}) {
|
|
|
26609
26609
|
const client2 = new DeeplineClient();
|
|
26610
26610
|
const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
|
|
26611
26611
|
const mode = options.mode ?? "all";
|
|
26612
|
+
const jsonOutput = options.json === true;
|
|
26613
|
+
let apiCompact = !jsonOutput;
|
|
26614
|
+
if (typeof options.compact === "boolean") {
|
|
26615
|
+
apiCompact = options.compact;
|
|
26616
|
+
}
|
|
26612
26617
|
const tools = (await client2.listTools({
|
|
26613
26618
|
grep: query,
|
|
26614
26619
|
grepMode: mode,
|
|
26615
26620
|
...options.categories ? { categories: options.categories } : {},
|
|
26616
|
-
compact:
|
|
26621
|
+
compact: apiCompact
|
|
26617
26622
|
})).map(toListedTool).filter(
|
|
26618
26623
|
(item) => requestedCategories.length === 0 || requestedCategories.some(
|
|
26619
26624
|
(category) => item.categories.includes(category)
|
|
26620
26625
|
)
|
|
26621
26626
|
).filter(
|
|
26622
|
-
(item) => matchesGrepQuery(
|
|
26627
|
+
(item) => apiCompact ? true : matchesGrepQuery(
|
|
26623
26628
|
{
|
|
26624
26629
|
id: item.toolId,
|
|
26625
26630
|
toolId: item.toolId,
|
|
@@ -26629,13 +26634,15 @@ async function grepTools(queryInput, options = {}) {
|
|
|
26629
26634
|
categories: item.categories,
|
|
26630
26635
|
operation: item.operation,
|
|
26631
26636
|
operationAliases: item.operationAliases,
|
|
26637
|
+
inputSchema: item.inputSchema,
|
|
26638
|
+
outputSchema: item.outputSchema,
|
|
26632
26639
|
inputFields: item.inputFields
|
|
26633
26640
|
},
|
|
26634
26641
|
query,
|
|
26635
26642
|
mode
|
|
26636
26643
|
)
|
|
26637
26644
|
);
|
|
26638
|
-
const shouldCompact =
|
|
26645
|
+
const shouldCompact = apiCompact;
|
|
26639
26646
|
const outputTools = shouldCompact ? tools.slice(0, 8).map(compactTool) : tools;
|
|
26640
26647
|
const emptyResult = tools.length === 0 ? zeroMatchToolGuidance({
|
|
26641
26648
|
categories: requestedCategories,
|
|
@@ -29113,6 +29120,22 @@ function sidecarStateDir(input2) {
|
|
|
29113
29120
|
}
|
|
29114
29121
|
return join14(input2.homeDir, ".local", "deepline", scope, "sdk-cli");
|
|
29115
29122
|
}
|
|
29123
|
+
function sidecarRegistryUrl(hostUrl) {
|
|
29124
|
+
let url;
|
|
29125
|
+
try {
|
|
29126
|
+
url = new URL(hostUrl);
|
|
29127
|
+
} catch {
|
|
29128
|
+
throw new Error(
|
|
29129
|
+
"The Python-managed SDK sidecar is missing a valid Deepline host URL for its npm registry."
|
|
29130
|
+
);
|
|
29131
|
+
}
|
|
29132
|
+
if (url.protocol !== "https:" && url.protocol !== "http:" || !url.hostname || url.username || url.password) {
|
|
29133
|
+
throw new Error(
|
|
29134
|
+
"The Python-managed SDK sidecar has an invalid Deepline host URL for its npm registry."
|
|
29135
|
+
);
|
|
29136
|
+
}
|
|
29137
|
+
return new URL("/api/v2/npm/", url).toString();
|
|
29138
|
+
}
|
|
29116
29139
|
function readOptionalText(path) {
|
|
29117
29140
|
try {
|
|
29118
29141
|
return readFileSync13(path, "utf8").trim();
|
|
@@ -29142,8 +29165,9 @@ function resolvePythonSidecarUpdatePlan(options) {
|
|
|
29142
29165
|
);
|
|
29143
29166
|
const packageSpec = options.packageSpec || "deepline@latest";
|
|
29144
29167
|
const npmCommand = "npm";
|
|
29168
|
+
const registryUrl = sidecarRegistryUrl(hostUrl);
|
|
29145
29169
|
const versionDir = join14(stateDir, "versions", "<version>");
|
|
29146
|
-
const manualCommand = `${buildSidecarProjectConfigCommand(versionDir, nodeBin)} && ${npmCommand} install --prefix ${shellQuote6(versionDir)} ${NPM_SDK_INSTALL_COMMON_FLAGS.map(shellQuote6).join(" ")} ${shellQuote6(packageSpec)}`;
|
|
29170
|
+
const manualCommand = `${buildSidecarProjectConfigCommand(versionDir, nodeBin)} && ${npmCommand} install --prefix ${shellQuote6(versionDir)} --registry ${shellQuote6(registryUrl)} ${NPM_SDK_INSTALL_COMMON_FLAGS.map(shellQuote6).join(" ")} ${shellQuote6(packageSpec)}`;
|
|
29147
29171
|
return {
|
|
29148
29172
|
kind: "python-sidecar",
|
|
29149
29173
|
stateDir,
|
|
@@ -29152,6 +29176,7 @@ function resolvePythonSidecarUpdatePlan(options) {
|
|
|
29152
29176
|
npmCommand,
|
|
29153
29177
|
scope,
|
|
29154
29178
|
hostUrl,
|
|
29179
|
+
registryUrl,
|
|
29155
29180
|
packageSpec,
|
|
29156
29181
|
manualCommand
|
|
29157
29182
|
};
|
|
@@ -29411,6 +29436,8 @@ async function runPythonSidecarUpdatePlan(plan, options = {}) {
|
|
|
29411
29436
|
"install",
|
|
29412
29437
|
"--prefix",
|
|
29413
29438
|
tempDir,
|
|
29439
|
+
"--registry",
|
|
29440
|
+
plan.registryUrl,
|
|
29414
29441
|
...NPM_SDK_INSTALL_COMMON_FLAGS,
|
|
29415
29442
|
plan.packageSpec
|
|
29416
29443
|
],
|
package/dist/index.js
CHANGED
|
@@ -429,10 +429,10 @@ var SDK_RELEASE = {
|
|
|
429
429
|
// 0.1.241 hard-cuts published and launched plays to immutable cjs_node20
|
|
430
430
|
// artifacts. Older clients can submit esm_workers artifacts that the Absurd
|
|
431
431
|
// runtime intentionally no longer compiles at publish or launch time.
|
|
432
|
-
version: "0.1.
|
|
432
|
+
version: "0.1.243",
|
|
433
433
|
apiContract: "2026-07-immutable-cjs-play-artifacts-hard-cutover",
|
|
434
434
|
supportPolicy: {
|
|
435
|
-
latest: "0.1.
|
|
435
|
+
latest: "0.1.243",
|
|
436
436
|
minimumSupported: "0.1.53",
|
|
437
437
|
deprecatedBelow: "0.1.219",
|
|
438
438
|
commandMinimumSupported: [
|
package/dist/index.mjs
CHANGED
|
@@ -359,10 +359,10 @@ var SDK_RELEASE = {
|
|
|
359
359
|
// 0.1.241 hard-cuts published and launched plays to immutable cjs_node20
|
|
360
360
|
// artifacts. Older clients can submit esm_workers artifacts that the Absurd
|
|
361
361
|
// runtime intentionally no longer compiles at publish or launch time.
|
|
362
|
-
version: "0.1.
|
|
362
|
+
version: "0.1.243",
|
|
363
363
|
apiContract: "2026-07-immutable-cjs-play-artifacts-hard-cutover",
|
|
364
364
|
supportPolicy: {
|
|
365
|
-
latest: "0.1.
|
|
365
|
+
latest: "0.1.243",
|
|
366
366
|
minimumSupported: "0.1.53",
|
|
367
367
|
deprecatedBelow: "0.1.219",
|
|
368
368
|
commandMinimumSupported: [
|