oasis_test_v2 2.2.126 → 2.2.127

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.
Files changed (2) hide show
  1. package/dist/index.js +19 -6
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -255856,7 +255856,7 @@ function metaString(meta, key2) {
255856
255856
  }
255857
255857
  return null;
255858
255858
  }
255859
- var SEG_TURN_CAP, RUN_PAGE, RUN_CAP, NODE_WORK_CAP, MAX_CHAIN_NODES, MESSAGE_CAP, SIGNAL_TEXT_CAP, EXOGENOUS_TEXT_CAP, FIND_DEFAULT_LIMIT, FIND_BATCH_MAX, FIND_MAX_LIMIT, RUN_ROW_CAP, TURN_TERMINAL, REVIEW_ENDED, DELEGATION_ENDED, SYSTEM_CANCEL_REASONS, EXOGENOUS_RUN_STATUS, UnitError, ms, turnStart, turnEnd, UnitService, unitTypeOf, segId, clipField, outcomeFetchCmd, exogenousFetchCmd, UnitReader;
255859
+ var SEG_TURN_CAP, RUN_PAGE, RUN_CAP, NODE_WORK_CAP, MAX_CHAIN_NODES, MESSAGE_CAP, SIGNAL_TEXT_CAP, EXOGENOUS_TEXT_CAP, EXOGENOUS_SUMMARY_CAP, FIND_DEFAULT_LIMIT, FIND_BATCH_MAX, FIND_MAX_LIMIT, RUN_ROW_CAP, TURN_TERMINAL, REVIEW_ENDED, DELEGATION_ENDED, SYSTEM_CANCEL_REASONS, EXOGENOUS_RUN_STATUS, UnitError, ms, turnStart, turnEnd, UnitService, unitTypeOf, segId, clipField, outcomeFetchCmd, exogenousFetchCmd, UnitReader;
255860
255860
  var init_units = __esm({
255861
255861
  "../server/src/domains/trace/units.ts"() {
255862
255862
  "use strict";
@@ -255871,6 +255871,7 @@ var init_units = __esm({
255871
255871
  MESSAGE_CAP = 1e3;
255872
255872
  SIGNAL_TEXT_CAP = 2e3;
255873
255873
  EXOGENOUS_TEXT_CAP = 500;
255874
+ EXOGENOUS_SUMMARY_CAP = 120;
255874
255875
  FIND_DEFAULT_LIMIT = 20;
255875
255876
  FIND_BATCH_MAX = 200;
255876
255877
  FIND_MAX_LIMIT = 200;
@@ -256745,11 +256746,13 @@ var init_units = __esm({
256745
256746
  const nodeIds = [...nodes5];
256746
256747
  for (const i5 of await this.data.issuesInWorkorder(w2.workorderId, { aboutNodeIds: nodeIds, fromIso: from, toIso: to, limit: 50 })) {
256747
256748
  const b6 = field(i5.body);
256749
+ const head = (i5.body.split("\n")[0] ?? "").slice(0, EXOGENOUS_SUMMARY_CAP);
256750
+ const more = head.length < i5.body.length ? ` \u2026\uFF08\u5168\u6587 ${i5.body.length} \u5B57 \u2192 ${b6.fetchCmd}\uFF09` : "";
256748
256751
  out.push({
256749
256752
  kind: "upstream-issue",
256750
256753
  at: i5.createdAt,
256751
256754
  runId: null,
256752
- summary: `\u6267\u884C\u671F\u95F4\u4E0A\u6E38\u8282\u70B9 ${i5.aboutNodeId} \u6536\u5230 ${i5.kind}\uFF1A${b6.text.split("\n")[0]}`,
256755
+ summary: `\u6267\u884C\u671F\u95F4\u4E0A\u6E38\u8282\u70B9 ${i5.aboutNodeId} \u6536\u5230 ${i5.kind}\uFF1A${head}${more}`,
256753
256756
  detail: { issueId: i5.id, kind: i5.kind, aboutNodeId: i5.aboutNodeId, author: i5.authorActorId, resolved: i5.resolvedAt != null, body: b6 }
256754
256757
  });
256755
256758
  }
@@ -343935,7 +343938,7 @@ var COMMAND_DECLS = {
343935
343938
  "trace exogenous": {
343936
343939
  group: "\u6267\u884C\u8BB0\u5F55\uFF08trace\uFF09",
343937
343940
  usage: "oasis trace exogenous <unit> [--full] [--json]",
343938
- description: "\u5916\u90E8\u56E0\u7D20\u4E8B\u5B9E\uFF1Arun \u8D85\u65F6 / \u88AB\u6740 / \u5931\u8054\u3001\u767B\u5F55\u5931\u6548\u4E0E\u989D\u5EA6\u4E00\u7C7B\u9519\u8BEF\u7801\u3001\u6362\u673A\u3001\u7CFB\u7EDF\u539F\u56E0\u7684\u53EB\u505C\u3001\u534F\u8BAE\u6062\u590D\u3001\u4E0A\u6E38 issue\u3001\u6267\u884C\u671F\u95F4\u9700\u6C42\u53D8\u4E86\u3002\u53CD\u601D\u65F6\u5148\u770B\u5B83\uFF0C\u5C5E\u4E8E\u5916\u90E8\u539F\u56E0\u7684\u6539\u8FDB\u70B9\u6807 category=external\u3002\u9519\u8BEF\u4FE1\u606F\u4E0E issue \u539F\u6587\u8FC7\u957F\u65F6\u622A\u65AD\u5E76\u5E26 `[\u5DF2\u7701\u7565 N \u5B57 \u2192 oasis trace exogenous <unit> --full]`\u3002",
343941
+ description: "\u5916\u90E8\u56E0\u7D20\u4E8B\u5B9E\uFF1Arun \u8D85\u65F6 / \u88AB\u6740 / \u5931\u8054\u3001\u767B\u5F55\u5931\u6548\u4E0E\u989D\u5EA6\u4E00\u7C7B\u9519\u8BEF\u7801\u3001\u6362\u673A\u3001\u7CFB\u7EDF\u539F\u56E0\u7684\u53EB\u505C\u3001\u534F\u8BAE\u6062\u590D\u3001\u4E0A\u6E38 issue\u3001\u6267\u884C\u671F\u95F4\u9700\u6C42\u53D8\u4E86\u3002\u53CD\u601D\u65F6\u5148\u770B\u5B83\uFF0C\u5C5E\u4E8E\u5916\u90E8\u539F\u56E0\u7684\u6539\u8FDB\u70B9\u6807 category=external\u3002\u6BCF\u6761\u4E8B\u5B9E\u4E0B\u65B9\u7F29\u8FDB\u6253\u51FA run \u7684\u9519\u8BEF\u4FE1\u606F\u4E0E\u4E0A\u6E38 issue \u6B63\u6587\uFF1B\u8FC7\u957F\u65F6\u622A\u65AD\u5E76\u5E26 `[\u5DF2\u7701\u7565 N \u5B57 \u2192 oasis trace exogenous <unit> --full]`\uFF0C\u52A0 --full \u6253\u51FA\u5168\u6587\u3002",
343939
343942
  positional: [{ name: "<unit>", required: true, desc: "\u5355\u5143 id \u6216 run id" }],
343940
343943
  flags: [
343941
343944
  { name: "full", desc: "\u957F\u6587\u672C\u4E0D\u622A\u65AD", boolean: true, own: true },
@@ -345058,6 +345061,9 @@ var fmtMs = (ms2) => {
345058
345061
  return s3 < 120 ? `${s3}s` : `${Math.round(s3 / 60)}min`;
345059
345062
  };
345060
345063
  var scalar = (v2) => typeof v2 === "string" ? v2 : JSON.stringify(v2);
345064
+ var isTruncatedField = (v2) => typeof v2 === "object" && v2 !== null && typeof v2.text === "string" && typeof v2.truncated === "boolean" && typeof v2.fullChars === "number";
345065
+ var EXOGENOUS_TEXT_LABELS = { errorMessage: "\u9519\u8BEF\u4FE1\u606F", body: "\u6B63\u6587" };
345066
+ var EXOGENOUS_TEXT_INDENT = " ";
345061
345067
  function renderEventPreview(e5, opts = {}) {
345062
345068
  const head = `#${e5.seq} [${e5.eventType}] ${e5.kind}${e5.toolName ? ` ${e5.toolName}` : ""}${e5.level === "error" ? " \u26A0error" : ""}`;
345063
345069
  const tail = e5.ingestTruncated ? " [\u5165\u5E93\u524D\u5DF2\u88AB\u9002\u914D\u5668\u622A\u65AD\uFF0C\u539F\u6837\u7ED9\u51FA]" : "";
@@ -345096,7 +345102,14 @@ function renderTrace(sub, data, flags, println) {
345096
345102
  return;
345097
345103
  }
345098
345104
  println(`${r5.unitId} \u7684\u5916\u90E8\u56E0\u7D20\uFF08${r5.facts.length} \u6761\uFF09\uFF1A`);
345099
- for (const f6 of r5.facts) println(` [${f6.kind}] ${orDash(f6.at)}${f6.runId ? ` ${f6.runId}` : ""} ${oneLine3(f6.summary)}`);
345105
+ for (const f6 of r5.facts) {
345106
+ println(` [${f6.kind}] ${orDash(f6.at)}${f6.runId ? ` ${f6.runId}` : ""} ${oneLine3(f6.summary)}`);
345107
+ for (const [k6, v2] of Object.entries(f6.detail ?? {})) {
345108
+ if (!isTruncatedField(v2)) continue;
345109
+ println(` ${EXOGENOUS_TEXT_LABELS[k6] ?? k6}\uFF08\u5171 ${v2.fullChars} \u5B57${v2.truncated ? `\uFF0C\u5DF2\u622A\u65AD\uFF0C\u53D6\u5168\u6587\uFF1A${v2.fetchCmd}` : ""}\uFF09\uFF1A`);
345110
+ println(v2.text.replace(/^/gm, EXOGENOUS_TEXT_INDENT));
345111
+ }
345112
+ }
345100
345113
  return;
345101
345114
  }
345102
345115
  case "runs": {
@@ -346025,7 +346038,7 @@ async function waitForCommandAuthorization(base, headers, draftId, fallback2) {
346025
346038
  }
346026
346039
  }
346027
346040
  }
346028
- var CLI_VERSION = "2.2.126" ? "2.2.126" : "dev";
346041
+ var CLI_VERSION = "2.2.127" ? "2.2.127" : "dev";
346029
346042
  function apiHeaders(token2, company) {
346030
346043
  const headers = {
346031
346044
  authorization: `Bearer ${token2}`,
@@ -350339,7 +350352,7 @@ function shimScript() {
350339
350352
  }
350340
350353
 
350341
350354
  // src/index.ts
350342
- var PKG_VERSION = true ? "2.2.126" : "dev";
350355
+ var PKG_VERSION = true ? "2.2.127" : "dev";
350343
350356
  var LOCAL_BIN = localBin();
350344
350357
  var NPM_PREFIX = npmPrefix();
350345
350358
  var INSTANCE = DEFAULT_INSTANCE;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oasis_test_v2",
3
- "version": "2.2.126",
3
+ "version": "2.2.127",
4
4
  "description": "Oasis node daemon + CLI — background daemon, auto-start, full server CLI",
5
5
  "bin": {
6
6
  "oasis": "./dist/index.js"
@@ -26,6 +26,6 @@
26
26
  "node": ">=20"
27
27
  },
28
28
  "oasisRelease": {
29
- "sourceHead": "b1403f15edbd747bb5d7cbc69d8cf5931df713d1"
29
+ "sourceHead": "62b2156dcd16b8d497b4439183a6a7ca32fd2fac"
30
30
  }
31
31
  }