@scalequality/cli 0.4.11 → 0.4.12

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.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "sdkVersion": "0.3.281",
3
- "sha256": "c2e9fefe31fcd4f9b46e4f5323336571b20380b6756c90b494584c1727d9f787",
4
- "sourceCommit": "6437124ad656162948b2c83adfd87e5afc2d82a7"
3
+ "sha256": "7b199d28673b767dce41406f737d3c8042ed0658ca1a233a7d8363b5b7b27dfd",
4
+ "sourceCommit": "0da92af88f77faa5f860d7f37480a65800017946"
5
5
  }
package/dist/connect.cjs CHANGED
@@ -5201,7 +5201,7 @@ function limitInEngineText(text3) {
5201
5201
  // src/application/services/workspaceSandbox/scalequalityTools.ts
5202
5202
  var import_crypto4 = require("crypto");
5203
5203
 
5204
- // node_modules/zod/v3/external.js
5204
+ // ../../scalequality-ai-governance-service/node_modules/zod/v3/external.js
5205
5205
  var external_exports = {};
5206
5206
  __export(external_exports, {
5207
5207
  BRAND: () => BRAND,
@@ -5313,7 +5313,7 @@ __export(external_exports, {
5313
5313
  void: () => voidType
5314
5314
  });
5315
5315
 
5316
- // node_modules/zod/v3/helpers/util.js
5316
+ // ../../scalequality-ai-governance-service/node_modules/zod/v3/helpers/util.js
5317
5317
  var util;
5318
5318
  (function(util2) {
5319
5319
  util2.assertEqual = (_) => {
@@ -5447,7 +5447,7 @@ var getParsedType = (data) => {
5447
5447
  }
5448
5448
  };
5449
5449
 
5450
- // node_modules/zod/v3/ZodError.js
5450
+ // ../../scalequality-ai-governance-service/node_modules/zod/v3/ZodError.js
5451
5451
  var ZodIssueCode = util.arrayToEnum([
5452
5452
  "invalid_type",
5453
5453
  "invalid_literal",
@@ -5565,7 +5565,7 @@ ZodError.create = (issues) => {
5565
5565
  return error;
5566
5566
  };
5567
5567
 
5568
- // node_modules/zod/v3/locales/en.js
5568
+ // ../../scalequality-ai-governance-service/node_modules/zod/v3/locales/en.js
5569
5569
  var errorMap = (issue, _ctx) => {
5570
5570
  let message;
5571
5571
  switch (issue.code) {
@@ -5668,7 +5668,7 @@ var errorMap = (issue, _ctx) => {
5668
5668
  };
5669
5669
  var en_default = errorMap;
5670
5670
 
5671
- // node_modules/zod/v3/errors.js
5671
+ // ../../scalequality-ai-governance-service/node_modules/zod/v3/errors.js
5672
5672
  var overrideErrorMap = en_default;
5673
5673
  function setErrorMap(map) {
5674
5674
  overrideErrorMap = map;
@@ -5677,7 +5677,7 @@ function getErrorMap() {
5677
5677
  return overrideErrorMap;
5678
5678
  }
5679
5679
 
5680
- // node_modules/zod/v3/helpers/parseUtil.js
5680
+ // ../../scalequality-ai-governance-service/node_modules/zod/v3/helpers/parseUtil.js
5681
5681
  var makeIssue = (params) => {
5682
5682
  const { data, path, errorMaps, issueData } = params;
5683
5683
  const fullPath = [...path, ...issueData.path || []];
@@ -5787,14 +5787,14 @@ var isDirty = (x) => x.status === "dirty";
5787
5787
  var isValid = (x) => x.status === "valid";
5788
5788
  var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
5789
5789
 
5790
- // node_modules/zod/v3/helpers/errorUtil.js
5790
+ // ../../scalequality-ai-governance-service/node_modules/zod/v3/helpers/errorUtil.js
5791
5791
  var errorUtil;
5792
5792
  (function(errorUtil2) {
5793
5793
  errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
5794
5794
  errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
5795
5795
  })(errorUtil || (errorUtil = {}));
5796
5796
 
5797
- // node_modules/zod/v3/types.js
5797
+ // ../../scalequality-ai-governance-service/node_modules/zod/v3/types.js
5798
5798
  var ParseInputLazyPath = class {
5799
5799
  constructor(parent, value, path, key) {
5800
5800
  this._cachedPath = [];
@@ -9640,7 +9640,8 @@ var SdkEventMapper = class {
9640
9640
  startedAt: iso(startedAt)
9641
9641
  } });
9642
9642
  const target = activityTarget(name, input);
9643
- this.cb.emit({ type: "activity", data: { tool: name, ...target ? { target } : {} } });
9643
+ const description = d.code === "STEP_COMMAND_DESCRIBED" && typeof d.params?.description === "string" ? d.params.description : void 0;
9644
+ this.cb.emit({ type: "activity", data: { tool: name, ...target ? { target } : {}, ...description ? { description } : {} } });
9644
9645
  }
9645
9646
  stepDone(id, t, status, endedAt = this.now()) {
9646
9647
  this.cb.emit({ type: "step", data: {
@@ -9851,7 +9852,8 @@ function activityTarget(name, input) {
9851
9852
  for (const part of s("command").split(/&&|\|\||[;|\n]/)) {
9852
9853
  for (const token of part.trim().split(/\s+/)) {
9853
9854
  if (!token || token.includes("=") || COMMAND_WRAPPERS.has(token)) continue;
9854
- if (COMMAND_SETUP.has(token)) break;
9855
+ if (SHELL_PREFIX.has(token)) continue;
9856
+ if (COMMAND_SETUP.has(token) || SHELL_HEADER.has(token)) break;
9855
9857
  if (!/^[A-Za-z0-9._/-]+$/.test(token)) return void 0;
9856
9858
  const word = token.split("/").filter(Boolean).pop() ?? "";
9857
9859
  return word && word.length <= 40 ? word : void 0;
@@ -9862,6 +9864,8 @@ function activityTarget(name, input) {
9862
9864
  }
9863
9865
  var COMMAND_WRAPPERS = /* @__PURE__ */ new Set(["sudo", "env", "time", "nice", "exec", "command", "nohup"]);
9864
9866
  var COMMAND_SETUP = /* @__PURE__ */ new Set(["cd", "pushd", "popd", "export", "source", ".", "set", "unset"]);
9867
+ var SHELL_HEADER = /* @__PURE__ */ new Set(["for", "case", "select", "[", "[[", "test", "true", "false", ":"]);
9868
+ var SHELL_PREFIX = /* @__PURE__ */ new Set(["do", "then", "else", "elif", "if", "while", "until", "done", "fi", "esac", "!", "{", "}", "(", ")"]);
9865
9869
  function blockText(content) {
9866
9870
  if (typeof content === "string") return content;
9867
9871
  if (Array.isArray(content)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scalequality/cli",
3
- "version": "0.4.11",
3
+ "version": "0.4.12",
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": {