cuelo 0.10.307 → 0.10.310

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 (65) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +55 -55
  3. package/.next/build-manifest.json +2 -2
  4. package/.next/prerender-manifest.json +3 -3
  5. package/.next/required-server-files.js +2 -2
  6. package/.next/required-server-files.json +2 -2
  7. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  8. package/.next/server/app/_global-error.html +1 -1
  9. package/.next/server/app/_global-error.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  13. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  14. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  15. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  16. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  17. package/.next/server/app/_not-found.html +1 -1
  18. package/.next/server/app/_not-found.rsc +2 -2
  19. package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  20. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  21. package/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
  22. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  23. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  24. package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  25. package/.next/server/app/api/updates/apply/route.js +1 -1
  26. package/.next/server/app/api/updates/route.js +1 -1
  27. package/.next/server/app/index.html +1 -1
  28. package/.next/server/app/index.rsc +4 -4
  29. package/.next/server/app/index.segments/__PAGE__.segment.rsc +3 -3
  30. package/.next/server/app/index.segments/_full.segment.rsc +4 -4
  31. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  32. package/.next/server/app/index.segments/_index.segment.rsc +2 -2
  33. package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  34. package/.next/server/app/page.js +3 -3
  35. package/.next/server/app/page_client-reference-manifest.js +1 -1
  36. package/.next/server/app/recover/page_client-reference-manifest.js +1 -1
  37. package/.next/server/app/recover.html +1 -1
  38. package/.next/server/app/recover.rsc +2 -2
  39. package/.next/server/app/recover.segments/_full.segment.rsc +2 -2
  40. package/.next/server/app/recover.segments/_head.segment.rsc +1 -1
  41. package/.next/server/app/recover.segments/_index.segment.rsc +2 -2
  42. package/.next/server/app/recover.segments/_tree.segment.rsc +1 -1
  43. package/.next/server/app/recover.segments/recover/__PAGE__.segment.rsc +1 -1
  44. package/.next/server/app/recover.segments/recover.segment.rsc +1 -1
  45. package/.next/server/app-paths-manifest.json +55 -55
  46. package/.next/server/chunks/402.js +1 -1
  47. package/.next/server/chunks/5228.js +1 -1
  48. package/.next/server/chunks/8685.js +2 -2
  49. package/.next/server/chunks/9467.js +1 -1
  50. package/.next/server/middleware-build-manifest.js +1 -1
  51. package/.next/server/pages/404.html +1 -1
  52. package/.next/server/pages/500.html +1 -1
  53. package/.next/server/server-reference-manifest.json +1 -1
  54. package/.next/static/chunks/app/{layout-e29e11171611a34f.js → layout-126c33aa03dae3b0.js} +1 -1
  55. package/.next/static/chunks/app/{page-bb030a6c79de5211.js → page-157f998be6897192.js} +15 -15
  56. package/.next/trace +114 -114
  57. package/.next/trace-build +1 -1
  58. package/README.md +2 -2
  59. package/Tools/CUELO_Setup/files/native-runtime-patch.js +3 -3
  60. package/Tools/OMP_Global_Config/agent/agents/maker.md +3 -1
  61. package/Tools/OMP_Global_Config/agent/sop/maker.md +2 -0
  62. package/Tools/OMP_Global_Config/patches/apply-core-patch.mjs +137 -0
  63. package/package.json +7 -7
  64. /package/.next/static/{3gpLJVLSoQssT8xsZp_sc → CRNTxNvi6W3l3Zs03qAOA}/_buildManifest.js +0 -0
  65. /package/.next/static/{3gpLJVLSoQssT8xsZp_sc → CRNTxNvi6W3l3Zs03qAOA}/_ssgManifest.js +0 -0
package/.next/trace-build CHANGED
@@ -1 +1 @@
1
- [{"name":"run-webpack","duration":84326992,"timestamp":395684,"id":14,"parentId":1,"tags":{},"startTime":1794953955680,"traceId":"805d8c46fbf7d31b"},{"name":"run-typescript","duration":18541414,"timestamp":85154400,"id":11729,"parentId":1,"tags":{},"startTime":1794954040439,"traceId":"805d8c46fbf7d31b"},{"name":"static-check","duration":2488022,"timestamp":103777673,"id":11732,"parentId":1,"tags":{},"startTime":1794954059062,"traceId":"805d8c46fbf7d31b"},{"name":"static-generation","duration":5111293,"timestamp":106349860,"id":11970,"parentId":1,"tags":{},"startTime":1794954061635,"traceId":"805d8c46fbf7d31b"},{"name":"collect-build-traces","duration":16839659,"timestamp":106332045,"id":11967,"parentId":1,"tags":{},"startTime":1794954061617,"traceId":"805d8c46fbf7d31b"},{"name":"telemetry-flush","duration":42,"timestamp":123175618,"id":11979,"parentId":1,"tags":{},"startTime":1794954078460,"traceId":"805d8c46fbf7d31b"},{"name":"next-build","duration":122848881,"timestamp":326801,"id":1,"tags":{"buildMode":"default","version":"16.2.12","bundler":"webpack","has-custom-webpack-config":"true","use-build-worker":"false"},"startTime":1794953955612,"traceId":"805d8c46fbf7d31b"}]
1
+ [{"name":"run-webpack","duration":72835626,"timestamp":382642,"id":14,"parentId":1,"tags":{},"startTime":1794969063841,"traceId":"ebb1054293bc7a25"},{"name":"run-typescript","duration":15069590,"timestamp":73576899,"id":11729,"parentId":1,"tags":{},"startTime":1794969137036,"traceId":"ebb1054293bc7a25"},{"name":"static-check","duration":2240615,"timestamp":88712944,"id":11732,"parentId":1,"tags":{},"startTime":1794969152172,"traceId":"ebb1054293bc7a25"},{"name":"static-generation","duration":4530467,"timestamp":91031496,"id":11970,"parentId":1,"tags":{},"startTime":1794969154490,"traceId":"ebb1054293bc7a25"},{"name":"collect-build-traces","duration":14775382,"timestamp":91015853,"id":11967,"parentId":1,"tags":{},"startTime":1794969154475,"traceId":"ebb1054293bc7a25"},{"name":"telemetry-flush","duration":47,"timestamp":105794540,"id":11979,"parentId":1,"tags":{},"startTime":1794969169253,"traceId":"ebb1054293bc7a25"},{"name":"next-build","duration":105516273,"timestamp":278332,"id":1,"tags":{"buildMode":"default","version":"16.2.12","bundler":"webpack","has-custom-webpack-config":"true","use-build-worker":"false"},"startTime":1794969063737,"traceId":"ebb1054293bc7a25"}]
package/README.md CHANGED
@@ -207,7 +207,7 @@ Requires Node.js 22.19+ and Bun 1.4.4+ on Linux. Native Windows server installat
207
207
  - **크게 보여 주기 카드**: 현재 음성 엔진 통화 말풍선을 탭하면 화자를 전환하고 재번역하며, 별도의 크게 보여 주기 버튼을 누르면 숫자와 단위를 강조한 큰 카드가 열립니다. 그 외 말풍선은 기존과 같이 탭하면 카드가 열립니다. 카드 내 들려주기는 휴대전화 음성 합성을 사용하므로 미디어 음량을 확인하세요. 뒤로 가기, 닫기 버튼 또는 Esc 키로 카드를 닫을 수 있습니다.
208
208
  - 「대화 공유」를 누르면 대화를 원문과 통역 줄로 정리한 글을 카카오톡 같은 다른 앱으로 보냅니다. 공유 기능을 지원하지 않는 브라우저에서는 같은 내용을 복사합니다.
209
209
  - 「자주 쓰는 문장」에서는 음식과 알레르기, 화장실, 계산, 길 묻기, 응급 같은 상황별 문장과 직접 더한 문장을 상대 언어로 미리 번역해 휴대폰에 저장합니다. 기본 문장은 내 언어가 한국어나 영어일 때 보입니다. 「모두 미리 번역」으로 한 번에 준비해 두면 데이터가 끊긴 곳에서도 문장을 눌러 카드로 보여 주거나 읽어 줍니다. 이 번역은 타자 통역과 같은 ChatGPT 계정 경로를 사용합니다.
210
- - 일본어, 태국어, 베트남어 번역 결과 아래에 한국어 발음을 작은 글씨로 함께 표시하여 직접 따라 읽을 수 있습니다. 「자주 쓰는 문장」과 타자 통역에서는 번역과 함께 바로 나타나며, 음성 통역에서는 「크게 보여 주기」 카드를 열 때 발음이 표시됩니다(근사 발음이며 읽어 주기, 복사, 공유에는 들어가지 않습니다).
210
+ - 일본어, 태국어, 베트남어 번역 결과 아래에 한국어 발음을 작은 글씨로 함께 표시하여 직접 따라 읽을 수 있습니다. 「자주 쓰는 문장」과 타자 통역에서는 번역과 함께 바로 나타납니다. 음성 통역에서는 줄이 화면에 보이면 조금 뒤에 붙고, 상대가 이 언어로 말한 원문 줄에도 붙습니다. 이때 내 말을 옮긴 줄의 발음을 먼저 받아 옵니다(근사 발음이며 읽어 주기, 복사, 공유에는 들어가지 않습니다).
211
211
  - 상대 말의 글자 그대로의 뜻과 실제 뜻이 다를 때(예: 일본어 「ちょっと…」는 사실상 거절) 그 아래에 속뜻이 한 줄로 나옵니다. 타자 통역에서는 내 말이 상대에게 어떻게 전달됐는지 다시 내 언어로 되짚어, 숫자, 가격, 수량, 한 개당 값과 합계, 날짜, 부정이 어긋나면 경고 한 줄과 되짚은 문장을 보여 줍니다. 음성 통역에서는 전달 확인을 요청하지 않습니다.
212
212
  - 속뜻과 전달 확인은 통역과 따로 요청하므로 실패해도 통역에는 영향이 없습니다. 상대가 한 말의 속뜻은 통역이 끝나기를 기다리지 않고 바로 요청합니다. 설정에서 끌 수 있고(기본 켜짐), 마주보기 화면에는 나오지 않습니다.
213
213
  - 타자 통역에서 일본어, 태국어, 베트남어로 옮길 때는 번역이 끝나는 즉시 줄을 확정하고, 한글 발음은 조금 뒤에 그 아래 붙습니다.
@@ -247,7 +247,7 @@ Requires Node.js 22.19+ and Bun 1.4.4+ on Linux. Native Windows server installat
247
247
 
248
248
  ## 하네스 세부 동작
249
249
 
250
- 내장 OMP 코어는 **18.21.0**입니다. 에이전트가 묻는 질문은 HTML 폼 하나로 오며, 웹은 폼 전체를 한 화면에 보여 줍니다. 별도로 설치한 `omp` CLI의 버전은 웹 업데이트와 독립적이며, 앱에 포함된 CLI를 `omp` 명령으로 사용하는 설치에서는 웹과 같은 코어를 사용합니다.
250
+ 내장 OMP 코어는 **18.22.1**입니다. 에이전트가 묻는 질문은 HTML 폼 하나로 오며, 웹은 폼 전체를 한 화면에 보여 줍니다. 별도로 설치한 `omp` CLI의 버전은 웹 업데이트와 독립적이며, 앱에 포함된 CLI를 `omp` 명령으로 사용하는 설치에서는 웹과 같은 코어를 사용합니다.
251
251
 
252
252
  문서 하네스는 기존 Word·Excel·PowerPoint 문서를 열고 편집하거나 변환할 때 LibreOffice를 우선 사용합니다. 원본은 보존하고 출력 결과를 확인하며, 매크로·전용 기능·서식 호환성이 필요하거나 사용자가 지정하면 MS Office를 사용합니다.
253
253
 
@@ -9,9 +9,9 @@ const MEMORY_RE = /(const phase1Model = await resolveMemoryModel\(\{[^}]*?fallba
9
9
  const MEMORY_DONE = /const phase1Model = await resolveMemoryModel\(\{[^}]*?fallbackRole: "smol"/;
10
10
  const EXPECTED = {
11
11
  name: 'cuelo',
12
- version: '0.10.307',
12
+ version: '0.10.310',
13
13
  distribution: 'cuelo',
14
- coreVersion: '18.21.0',
14
+ coreVersion: '18.22.1',
15
15
  };
16
16
 
17
17
  // OMP core `src/sdk.ts`: session-scoped AsyncJobManager for a process that hosts
@@ -89,7 +89,7 @@ function readNativePackage(target) {
89
89
  throw new Error(`unexpected native package ${packageJson.name}@${packageJson.version}`);
90
90
  }
91
91
  if (!build || build.distribution !== EXPECTED.distribution || build.coreVersion !== EXPECTED.coreVersion) {
92
- throw new Error('native cueloBuild metadata does not match cuelo / core 18.21.0');
92
+ throw new Error('native cueloBuild metadata does not match cuelo / core 18.22.1');
93
93
  }
94
94
  return packageJson;
95
95
  }
@@ -4,9 +4,11 @@ description: Delegated end-to-end implementation agent that investigates, edits,
4
4
  model: "@implSonnet"
5
5
  thinking-level: auto
6
6
  tools: [read, bash, edit, write, grep, glob, skim, draft, lsp, eval, generate_image, ast_grep, ast_edit, debug, todo, web_search, windows_build, windows_control, ego_browser, checkpoint, cross_review, slop_check]
7
+ # OMP 18.22.1 gives `yield` only when a schema resolves; `{}` accepts any report, keeping the schema-less yield of 18.21.0.
8
+ output: {}
7
9
  ---
8
10
 
9
- <!-- omp-global-config:generated source-hash=c789f06010ae generated; edit agent/sop/maker.md, agent/sop/_writer.md, agent/sop/_common.md then run node patches/build-agents.mjs -->
11
+ <!-- omp-global-config:generated source-hash=5a66404059ae generated; edit agent/sop/maker.md, agent/sop/_writer.md, agent/sop/_common.md then run node patches/build-agents.mjs -->
10
12
 
11
13
  You are the delegated implementation Maker on the default `modelRoles.implSonnet` slot. A delegated slice
12
14
  is yours end to end.
@@ -3,6 +3,8 @@ name: maker
3
3
  description: Delegated end-to-end implementation agent that investigates, edits, repairs, validates its own slice, and verifies the actual surface it changed.
4
4
  model: "@implSonnet"
5
5
  tools: [read, bash, edit, write, grep, glob, skim, draft, lsp, eval, generate_image, ast_grep, ast_edit, debug, todo, web_search, windows_build, windows_control, ego_browser, checkpoint, cross_review, slop_check]
6
+ # OMP 18.22.1 gives `yield` only when a schema resolves; `{}` accepts any report, keeping the schema-less yield of 18.21.0.
7
+ output: {}
6
8
  ---
7
9
 
8
10
  You are the delegated implementation Maker on the default `modelRoles.implSonnet` slot. A delegated slice
@@ -26732,6 +26732,143 @@ for (const { file, extra, anchor } of [
26732
26732
  });
26733
26733
  }
26734
26734
 
26735
+ // 18.22.1 (ADAPT): upstream inserted lines inside eleven anchors. Older candidate bodies stay byte-identical;
26736
+ // each new candidate is the last old candidate with only the upstream hunk carried over.
26737
+ // - usage.ts: upstream now tags `request.credentialId` itself, but CUELO consumers read our
26738
+ // `metadata.localCredentialId`, so our attribution stays and sits next to upstream's line.
26739
+ // - eval.md: browser moved to the new first-call list; compact it the same way as the other preludes.
26740
+ // - computer worker: numeric setValue, the macOS background-move note and nested menu paths are carried
26741
+ // into CUELO's `#input`/ComputerActionResult bodies.
26742
+ {
26743
+ const one = predicate => {
26744
+ const entries = EDITS.filter(predicate);
26745
+ if (entries.length !== 1) throw new Error(`18.22.1 candidate: ${entries.length}/1 entries`);
26746
+ return entries[0];
26747
+ };
26748
+ const alternate = (entry, candidate, discriminator) => {
26749
+ for (const old of [entry, ...(entry.alternates ?? [])]) old.excludes = [...[old.excludes ?? []].flat(), discriminator];
26750
+ (entry.alternates ??= []).push({ file: entry.file, ...candidate, requires: discriminator });
26751
+ };
26752
+ const swap = (text, from, to) => {
26753
+ if (text.split(from).length !== 2) throw new Error(`18.22.1 anchor: ${JSON.stringify(from)}`);
26754
+ return text.replace(from, () => to);
26755
+ };
26756
+ const port = (entry, discriminator, edit) => {
26757
+ const prior = entry.alternates?.at(-1) ?? entry;
26758
+ alternate(entry, { marker: prior.marker, anchor: edit(prior.anchor), patched: edit(prior.patched) }, discriminator);
26759
+ };
26760
+
26761
+ const sameModel = "!switchedCredential && currentSelector) {";
26762
+ port(one(entry => entry.file === "src/session/turn-recovery.ts" && entry.marker === "const baiTransportSameModelRetry ="),
26763
+ "#demotedReasoningOmittedFor", text => swap(text, sameModel, "!switchedCredential && !stripDemotedReasoning && currentSelector) {"));
26764
+
26765
+ const tagged = "function tagReportCredentialId(";
26766
+ port(one(entry => entry.marker === "// Stored OAuth row behind this env-policy probe."), tagged, text => swap(text,
26767
+ "\t\t\t\t\trequests.push(request);",
26768
+ "\t\t\t\t\t// Same stored-row attribution contract as the generic loop\n\t\t\t\t\t// below (e.g. xai-oauth probes take this path).\n\t\t\t\t\trequest.credentialId = entry.id;\n\t\t\t\t\trequests.push(request);"));
26769
+ port(one(entry => entry.marker === "// Stored row behind this probe (key references already resolved above)."), tagged, text => swap(text,
26770
+ "\n\t\t\t\trequests.push(request);", "\n\t\t\t\trequest.credentialId = entry.id;\n\t\t\t\trequests.push(request);"));
26771
+
26772
+ const numeric = "const text = valueText(value);";
26773
+ const setValue = text => {
26774
+ const upstream = [
26775
+ ["\tasync setValue(value: string): Promise<void> {\n\t\tconst context = this.#getContext();\n\t\tguardRun(context, \"setValue\");\n\t\tvalidateString(value, \"setValue(value)\");\n",
26776
+ "\tasync setValue(value: string | number): Promise<void> {\n\t\tconst context = this.#getContext();\n\t\tguardRun(context, \"setValue\");\n\t\tconst text = valueText(value);\n"],
26777
+ ["this.#session.axSetValue(this.ref, value));", "this.#session.axSetValue(this.ref, text));"],
26778
+ ["\tasync setValue(value: string): Promise<void> {\n\t\t// Reject a read-only run or a bad argument before the ref lookup reaches the native addon.\n\t\tguardRun(this.#getContext(), \"setValue\");\n\t\tvalidateString(value, \"setValue(value)\");\n\t\tawait (await this.#resolve()).setValue(value);\n",
26779
+ "\tasync setValue(value: string | number): Promise<void> {\n\t\t// Reject a read-only run or a bad argument before the ref lookup reaches the native addon.\n\t\tguardRun(this.#getContext(), \"setValue\");\n\t\tconst text = valueText(value);\n\t\tawait (await this.#resolve()).setValue(text);\n"],
26780
+ // CUELO bodies return ComputerActionResult and verify the read-back value.
26781
+ ["\tasync setValue(value: string): Promise<ComputerActionResult> {\n\t\tguardRun(this.#getContext(), \"setValue\");\n\t\tvalidateString(value, \"setValue(value)\");\n",
26782
+ "\tasync setValue(value: string | number): Promise<ComputerActionResult> {\n\t\tguardRun(this.#getContext(), \"setValue\");\n\t\tconst text = valueText(value);\n"],
26783
+ ["ref => this.#session.axSetValue(ref, value),", "ref => this.#session.axSetValue(ref, text),"],
26784
+ ["return after.value === value\n", "return after.value === text\n"],
26785
+ ["\tasync setValue(value: string): Promise<ComputerActionResult> {\n\t\t// Reject a read-only run or a bad argument before the ref lookup reaches the native addon.\n\t\tguardRun(this.#getContext(), \"setValue\");\n\t\tvalidateString(value, \"setValue(value)\");\n\t\treturn (await this.#resolve()).setValue(value);\n",
26786
+ "\tasync setValue(value: string | number): Promise<ComputerActionResult> {\n\t\t// Reject a read-only run or a bad argument before the ref lookup reaches the native addon.\n\t\tguardRun(this.#getContext(), \"setValue\");\n\t\tconst text = valueText(value);\n\t\treturn (await this.#resolve()).setValue(text);\n"],
26787
+ ];
26788
+ for (const [from, to] of upstream) if (text.includes(from)) text = swap(text, from, to);
26789
+ return text;
26790
+ };
26791
+ port(one(entry => entry.file === "src/tools/computer/worker.ts" && entry.marker === "class RefBook {"), numeric, setValue);
26792
+
26793
+ const backgroundNote = "\t\tif (\n\t\t\tbackground &&\n\t\t\tthis.#session.capabilities.backend === \"quartz\" &&\n\t\t\t!context.backgroundMoveNote &&\n\t\t\t!backgroundMoveNoted.has(this.#session)\n\t\t) {\n\t\t\tcontext.backgroundMoveNote = true;\n\t\t\tconst refuse = context.snapshot.backgroundFallback === \"refuse\";\n\t\t\tcontext.output.push({ type: \"text\", text: prompt.render(backgroundMoveNote, { refuse }).trim() });\n\t\t}\n";
26794
+ const backgroundFlag = "\t\t// A desktop or display move drives the user's own pointer whatever the options, so it is never background.\n\t\tlet background = native.takeover !== true && this.id !== \"desktop\" && !this.id.startsWith(\"display:\");\n";
26795
+ const window = text => {
26796
+ const upstream = [
26797
+ ["\t\tconst native = pointerOptions(options);\n\t\tawait sendInput(\n\t\t\tthis.#session,\n\t\t\tcontext,\n\t\t\t\"move\",\n\t\t\tnative.takeover,\n\t\t\tfallback => this.#session.moveMouse(this.id, x, y, { ...native, ...fallback }),\n\t\t\tthis.pid,\n\t\t);\n\t}\n",
26798
+ "\t\tconst native = pointerOptions(options);\n" + backgroundFlag + "\t\tawait sendInput(\n\t\t\tthis.#session,\n\t\t\tcontext,\n\t\t\t\"move\",\n\t\t\tnative.takeover,\n\t\t\tfallback => {\n\t\t\t\tif (fallback) background = false;\n\t\t\t\treturn this.#session.moveMouse(this.id, x, y, { ...native, ...fallback });\n\t\t\t},\n\t\t\tthis.pid,\n\t\t);\n" + backgroundNote + "\t}\n"],
26799
+ // CUELO body: the same note around `#input`, keeping its ComputerActionResult.
26800
+ ["\t\tconst native = pointerOptions(options);\n\t\treturn this.#input(\"move\", context, native.takeover, fallback =>\n\t\t\tthis.#session.moveMouse(this.id, x, y, { ...native, ...fallback }),\n\t\t);\n\t}\n",
26801
+ "\t\tconst native = pointerOptions(options);\n" + backgroundFlag + "\t\tconst result = await this.#input(\"move\", context, native.takeover, fallback => {\n\t\t\tif (fallback) background = false;\n\t\t\treturn this.#session.moveMouse(this.id, x, y, { ...native, ...fallback });\n\t\t});\n" + backgroundNote + "\t\treturn result;\n\t}\n"],
26802
+ ["\t\t\t\treturn await nativeCall(context.signal, () => this.#session.menuItems(this.id, segments));\n",
26803
+ "\t\t\t\tconst items = await nativeCall(context.signal, () => this.#session.menuItems(this.id, segments));\n\t\t\t\treturn segments?.length ? await this.#menuTree(items, context.signal) : items;\n"],
26804
+ ["\t\t};\n\t}\n\n\tasync bringToCurrentSpace(): Promise<void> {\n", "\t\t};\n\t}\n\n" + [
26805
+ "\tasync #menuTree(items: MenuItem[], signal: AbortSignal): Promise<MenuItem[]> {",
26806
+ "\t\tconst listed: MenuItem[] = [];",
26807
+ "\t\tlet budget = MENU_TREE_LIMIT - items.length;",
26808
+ "\t\tconst visit = async (level: MenuItem[]): Promise<void> => {",
26809
+ "\t\t\tfor (const item of level) {",
26810
+ "\t\t\t\tlisted.push(item);",
26811
+ "\t\t\t\tif (!item.hasSubmenu || !item.enabled || budget <= 0) continue;",
26812
+ "\t\t\t\tlet children: MenuItem[];",
26813
+ "\t\t\t\ttry {",
26814
+ "\t\t\t\t\tchildren = await nativeCall(signal, () => this.#session.menuItems(this.id, item.path));",
26815
+ "\t\t\t\t} catch (error) {",
26816
+ "\t\t\t\t\t// A refusal or AX timeout stops expansion, but keeps discovered paths available.",
26817
+ "\t\t\t\t\tif (error instanceof ToolError && MENU_TREE_SKIPPABLE.some(code => error.message.startsWith(code))) {",
26818
+ "\t\t\t\t\t\tbudget = 0;",
26819
+ "\t\t\t\t\t\tcontinue;",
26820
+ "\t\t\t\t\t}",
26821
+ "\t\t\t\t\tthrow error;",
26822
+ "\t\t\t\t}",
26823
+ "\t\t\t\tif (children.length > budget) continue;",
26824
+ "\t\t\t\tbudget -= children.length;",
26825
+ "\t\t\t\tawait visit(children);",
26826
+ "\t\t\t}",
26827
+ "\t\t};",
26828
+ "\t\tawait visit(items);",
26829
+ "\t\treturn listed;",
26830
+ "\t}",
26831
+ "",
26832
+ "\tasync bringToCurrentSpace(): Promise<void> {",
26833
+ ].join("\n") + "\n"],
26834
+ ];
26835
+ for (const [from, to] of upstream) if (text.includes(from)) text = swap(text, from, to);
26836
+ return text;
26837
+ };
26838
+ port(one(entry => entry.file === "src/tools/computer/worker.ts" && entry.marker === "return windowInputResult(action, this.id, options);"), numeric, window);
26839
+ port(one(entry => entry.file === "src/tools/computer/worker.ts" && entry.marker === "\tgoalProbe?: boolean;"), "\tbackgroundMoveNote: boolean;",
26840
+ text => swap(text, "\toutput: RunOutput;\n", "\toutput: RunOutput;\n\t/** Whether this run's output holds the background-move note, spent for the session only if the run succeeds. */\n\tbackgroundMoveNote: boolean;\n"));
26841
+
26842
+ const skip = 'if(!c.endsWith(".jsonl")||a.includes(".bak")||!r.includeAdvisors&&N2e(c))continue';
26843
+ alternate(one(entry => entry.file === "dist/cli.js" && entry.marker.includes('o==="__advisor.jsonl"')),
26844
+ { marker: skip, anchor: skip, patched: skip }, skip);
26845
+
26846
+ const preludeReturn = "\t\t\treturn getEnabledEvalPreludes(builtins);";
26847
+ port(one(entry => entry.file === "src/sdk.ts" && entry.marker === "\t\t\t\tmcpPrelude ??= createMcpEvalPrelude(toolSession);"),
26848
+ "dsmPrelude ??= createDsmPrelude(toolSession);", text => swap(text, preludeReturn,
26849
+ "\t\t\tif (cfgDisasmBackend.get(settings) !== undefined) {\n\t\t\t\tdsmPrelude ??= createDsmPrelude(toolSession);\n\t\t\t\tbuiltins.push(dsmPrelude);\n\t\t\t}\n" + preludeReturn));
26850
+
26851
+ const invoke = "\t}\n\treturn definition.invoke(parameters, context);\n}";
26852
+ port(one(entry => entry.file === "src/eval/preludes.ts" && entry.marker.startsWith("export function createMcpEvalPrelude(")),
26853
+ "firstCallDocumentation?: string;", text => swap(text, invoke,
26854
+ "\t}\n\t// Even a call that fails shows the model has reached for this prelude, so its guide is due.\n\tif (definition.firstCallDocumentation?.trim()) context.session.noteEvalPreludeCall?.(definition.name);\n\treturn definition.invoke(parameters, context);\n}"));
26855
+
26856
+ // Discriminators must survive our own patch, or the applied file resolves to the old candidate.
26857
+ const read = one(entry => entry.file === "src/prompts/tools/read.md" && entry.marker === "- Read xd://read/sources BEFORE");
26858
+ alternate(read, {
26859
+ marker: read.marker,
26860
+ anchor: swap(read.anchor, "{{#if BINARY_VIEWS}}executables, {{/if}}video", "executable metadata, video"),
26861
+ patched: swap(read.patched, "{{#if BINARY_VIEWS}}executable/{{/if}}video", "executable metadata/video"),
26862
+ }, "executable metadata");
26863
+
26864
+ const firstCall = "{{#each firstCallPreludes}}";
26865
+ alternate(one(entry => entry.file === "src/prompts/tools/eval.md" && entry.marker === "{{/each}}\n{{#each inlinePreludes}}"), {
26866
+ marker: "{{/each}}\n" + firstCall + "\n{{name}}=xd://eval/{{name}} (guide follows first call)\n{{/each}}\n{{#each inlinePreludes}}",
26867
+ anchor: "{{/each}}\n{{#if firstCallPreludes}}\nNo `read` needed before first use; the guide follows the first call's result (full reference linked):\n" + firstCall + "\n- `{{name}}`: {{summary}} → `xd://eval/{{name}}`\n{{/each}}\n{{/if}}\n</namespaces>\n{{#each inlinePreludes}}",
26868
+ patched: "{{/each}}\n" + firstCall + "\n{{name}}=xd://eval/{{name}} (guide follows first call)\n{{/each}}\n{{#each inlinePreludes}}",
26869
+ }, firstCall);
26870
+ }
26871
+
26735
26872
  /**
26736
26873
  * 항목 하나를 이 설치에서 성립하는 후보로 좁힌다. 후보는 항목 자신과 `alternates` 이고 각 후보는
26737
26874
  * file·anchor·marker·patched 묶음이다. upstream 이 그 조각을 다른 모듈이나 다른 패키지로 옮기면
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cuelo",
3
- "version": "0.10.307",
3
+ "version": "0.10.310",
4
4
  "description": "CUELO — open-source AI coding agent workspace and harness for omp (oh-my-pi)",
5
5
  "homepage": "https://github.com/gim47656-ship-it/CUELO#readme",
6
6
  "repository": {
@@ -30,7 +30,7 @@
30
30
  "license": "MIT",
31
31
  "cueloBuild": {
32
32
  "distribution": "cuelo",
33
- "coreVersion": "18.21.0"
33
+ "coreVersion": "18.22.1"
34
34
  },
35
35
  "engines": {
36
36
  "node": ">=22.19.0",
@@ -100,11 +100,11 @@
100
100
  "test:coverage": "bun test --coverage ./app ./components ./hooks ./lib ./public ./bin ./install.test.mjs"
101
101
  },
102
102
  "dependencies": {
103
- "@oh-my-pi/pi-agent-core": "18.21.0",
104
- "@oh-my-pi/pi-ai": "18.21.0",
105
- "@oh-my-pi/pi-coding-agent": "18.21.0",
106
- "@oh-my-pi/pi-tui": "18.21.0",
107
- "@oh-my-pi/pi-utils": "18.21.0",
103
+ "@oh-my-pi/pi-agent-core": "18.22.1",
104
+ "@oh-my-pi/pi-ai": "18.22.1",
105
+ "@oh-my-pi/pi-coding-agent": "18.22.1",
106
+ "@oh-my-pi/pi-tui": "18.22.1",
107
+ "@oh-my-pi/pi-utils": "18.22.1",
108
108
  "@sapphi-red/web-noise-suppressor": "^0.4.1",
109
109
  "@seed-design/css": "2.8.0",
110
110
  "@seed-design/react": "2.4.1",