@scalequality/cli 0.4.28 → 0.4.29
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/connect.build.json +2 -2
- package/dist/connect.cjs +21 -11
- package/package.json +1 -1
package/dist/connect.build.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"sdkVersion": "0.3.281",
|
|
3
|
-
"sha256": "
|
|
4
|
-
"sourceCommit": "
|
|
3
|
+
"sha256": "4b79a46af574de81267e70c31c7aa612ed39a08300461fc58c8e74272938573e",
|
|
4
|
+
"sourceCommit": "3b50cf2b25653763cbfcf55dd685d06f0645da45"
|
|
5
5
|
}
|
package/dist/connect.cjs
CHANGED
|
@@ -5124,6 +5124,7 @@ var ENGINE_MESSAGES = {
|
|
|
5124
5124
|
MODEL_RATE_LIMIT: "The AI gateway limited this request. Try again in a moment.",
|
|
5125
5125
|
MODEL_OVERLOADED: "The model provider is overloaded right now. Try again in a moment.",
|
|
5126
5126
|
MODEL_AUTHENTICATION_FAILED: "The workspace could not authenticate with the AI gateway for this context.",
|
|
5127
|
+
MODEL_BLOCKED_BEFORE_GATEWAY: "A network filter refused this request before it reached the AI gateway.",
|
|
5127
5128
|
MODEL_BILLING_ERROR: "The AI gateway refused this request for billing reasons.",
|
|
5128
5129
|
MODEL_MODEL_NOT_FOUND: "The selected model is not available for this workspace.",
|
|
5129
5130
|
MODEL_MAX_OUTPUT_TOKENS: "The answer reached the maximum output length.",
|
|
@@ -5429,7 +5430,7 @@ function limitInEngineText(text3) {
|
|
|
5429
5430
|
// src/application/services/workspaceSandbox/scalequalityTools.ts
|
|
5430
5431
|
var import_crypto5 = require("crypto");
|
|
5431
5432
|
|
|
5432
|
-
//
|
|
5433
|
+
// node_modules/zod/v3/external.js
|
|
5433
5434
|
var external_exports = {};
|
|
5434
5435
|
__export(external_exports, {
|
|
5435
5436
|
BRAND: () => BRAND,
|
|
@@ -5541,7 +5542,7 @@ __export(external_exports, {
|
|
|
5541
5542
|
void: () => voidType
|
|
5542
5543
|
});
|
|
5543
5544
|
|
|
5544
|
-
//
|
|
5545
|
+
// node_modules/zod/v3/helpers/util.js
|
|
5545
5546
|
var util;
|
|
5546
5547
|
(function(util2) {
|
|
5547
5548
|
util2.assertEqual = (_) => {
|
|
@@ -5675,7 +5676,7 @@ var getParsedType = (data) => {
|
|
|
5675
5676
|
}
|
|
5676
5677
|
};
|
|
5677
5678
|
|
|
5678
|
-
//
|
|
5679
|
+
// node_modules/zod/v3/ZodError.js
|
|
5679
5680
|
var ZodIssueCode = util.arrayToEnum([
|
|
5680
5681
|
"invalid_type",
|
|
5681
5682
|
"invalid_literal",
|
|
@@ -5793,7 +5794,7 @@ ZodError.create = (issues) => {
|
|
|
5793
5794
|
return error;
|
|
5794
5795
|
};
|
|
5795
5796
|
|
|
5796
|
-
//
|
|
5797
|
+
// node_modules/zod/v3/locales/en.js
|
|
5797
5798
|
var errorMap = (issue, _ctx) => {
|
|
5798
5799
|
let message;
|
|
5799
5800
|
switch (issue.code) {
|
|
@@ -5896,7 +5897,7 @@ var errorMap = (issue, _ctx) => {
|
|
|
5896
5897
|
};
|
|
5897
5898
|
var en_default = errorMap;
|
|
5898
5899
|
|
|
5899
|
-
//
|
|
5900
|
+
// node_modules/zod/v3/errors.js
|
|
5900
5901
|
var overrideErrorMap = en_default;
|
|
5901
5902
|
function setErrorMap(map) {
|
|
5902
5903
|
overrideErrorMap = map;
|
|
@@ -5905,7 +5906,7 @@ function getErrorMap() {
|
|
|
5905
5906
|
return overrideErrorMap;
|
|
5906
5907
|
}
|
|
5907
5908
|
|
|
5908
|
-
//
|
|
5909
|
+
// node_modules/zod/v3/helpers/parseUtil.js
|
|
5909
5910
|
var makeIssue = (params) => {
|
|
5910
5911
|
const { data, path, errorMaps, issueData } = params;
|
|
5911
5912
|
const fullPath = [...path, ...issueData.path || []];
|
|
@@ -6015,14 +6016,14 @@ var isDirty = (x) => x.status === "dirty";
|
|
|
6015
6016
|
var isValid = (x) => x.status === "valid";
|
|
6016
6017
|
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
6017
6018
|
|
|
6018
|
-
//
|
|
6019
|
+
// node_modules/zod/v3/helpers/errorUtil.js
|
|
6019
6020
|
var errorUtil;
|
|
6020
6021
|
(function(errorUtil2) {
|
|
6021
6022
|
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
6022
6023
|
errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
|
|
6023
6024
|
})(errorUtil || (errorUtil = {}));
|
|
6024
6025
|
|
|
6025
|
-
//
|
|
6026
|
+
// node_modules/zod/v3/types.js
|
|
6026
6027
|
var ParseInputLazyPath = class {
|
|
6027
6028
|
constructor(parent, value, path, key) {
|
|
6028
6029
|
this._cachedPath = [];
|
|
@@ -9859,7 +9860,7 @@ var SdkEventMapper = class {
|
|
|
9859
9860
|
if (typeof err === "string" && err) {
|
|
9860
9861
|
const raw = (msg?.content ?? []).map((b) => b.type === "text" && typeof b.text === "string" ? b.text : "").join("\n");
|
|
9861
9862
|
const gw = gatewayError(raw);
|
|
9862
|
-
const key = gw ? gw.code : `MODEL_${err.toUpperCase()}`;
|
|
9863
|
+
const key = gw ? gw.code : /API Error:\s*403 Forbidden\s*$/i.test(raw.trim()) ? "MODEL_BLOCKED_BEFORE_GATEWAY" : `MODEL_${err.toUpperCase()}`;
|
|
9863
9864
|
if (this.reported.has(key)) return;
|
|
9864
9865
|
this.reported.add(key);
|
|
9865
9866
|
if (gw) this.cb.emit({ type: "error", data: { code: gw.code, message: engineMessage(gw.code, gw.params), params: gw.params } });
|
|
@@ -10409,6 +10410,15 @@ function briefLines(c) {
|
|
|
10409
10410
|
"</scope_brief>"
|
|
10410
10411
|
];
|
|
10411
10412
|
}
|
|
10413
|
+
function folderIsScopeCode(c) {
|
|
10414
|
+
if (c.layout?.kind === "folder") return c.layout.repos.some((r) => !!r.repoFullName) || c.layout.looseLinked.length > 0;
|
|
10415
|
+
return c.open.some((o) => !!o.repoFullName);
|
|
10416
|
+
}
|
|
10417
|
+
function localScopeLines(c) {
|
|
10418
|
+
if (!c.local || c.scope.kind === "ALL") return [];
|
|
10419
|
+
if (folderIsScopeCode(c)) return [`The user chose this association in ScaleQuality: it is what they are working on, and the folder ${c.root} is where its code is on this machine.`];
|
|
10420
|
+
return [`The user chose this association in ScaleQuality, and the folder ${c.root} is not its code: none of the association's repositories is in it, and it is not linked to its project. Do not treat the folder's files as the association's code, and do not take their structure, language or style as the project's. Before working, tell the user in one line that this folder is not the code of the association, and that they can choose the project's folder in "Runs on" or run in the cloud, where the association's repositories are cloned; then wait for their answer.`];
|
|
10421
|
+
}
|
|
10412
10422
|
function openLine(c) {
|
|
10413
10423
|
if (!c.open.length) return "No repository is open yet.";
|
|
10414
10424
|
return `Open now: ${c.open.map((o) => `${o.repoFullName ?? "this folder (not a repository of the scope)"} at ${o.path} (branch ${o.branch})`).join("; ")}.`;
|
|
@@ -10416,8 +10426,8 @@ function openLine(c) {
|
|
|
10416
10426
|
function buildSystemAppend(c) {
|
|
10417
10427
|
return [
|
|
10418
10428
|
"# ScaleQuality workspace",
|
|
10419
|
-
|
|
10420
|
-
scopeLine(c),
|
|
10429
|
+
// On the user's machine the association comes first, the folder after it (Erik, 24/10/2026).
|
|
10430
|
+
...c.local ? [scopeLine(c), ...localScopeLines(c), `You are ScaleQuality's coding workspace, working in the user's own folder ${c.root} on the user's machine.`] : [`You are ScaleQuality's coding workspace. The workspace root is ${c.root}, an isolated machine created for this conversation.`, scopeLine(c)],
|
|
10421
10431
|
...c.layout?.kind === "folder" ? [] : [openLine(c)],
|
|
10422
10432
|
...layoutLines(c.root, c.layout),
|
|
10423
10433
|
...c.onDemand ? [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scalequality/cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.29",
|
|
4
4
|
"description": "ScaleQuality CLI. Connect your computer to the ScaleQuality AI Workspace (`scalequality login`), run its coding engine in any folder of your computer, and import your Claude Code and Codex conversations.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|