cuelo 0.10.359 → 0.10.360
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/.next/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +56 -56
- package/.next/build-manifest.json +2 -2
- package/.next/prerender-manifest.json +3 -3
- package/.next/required-server-files.js +1 -1
- package/.next/required-server-files.json +1 -1
- package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +2 -2
- package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/api/updates/apply/route.js +2 -2
- package/.next/server/app/api/updates/route.js +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +4 -4
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +3 -3
- package/.next/server/app/index.segments/_full.segment.rsc +4 -4
- package/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/server/app/index.segments/_index.segment.rsc +2 -2
- package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/page.js +2 -2
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/recover/page_client-reference-manifest.js +1 -1
- package/.next/server/app/recover.html +1 -1
- package/.next/server/app/recover.rsc +2 -2
- package/.next/server/app/recover.segments/_full.segment.rsc +2 -2
- package/.next/server/app/recover.segments/_head.segment.rsc +1 -1
- package/.next/server/app/recover.segments/_index.segment.rsc +2 -2
- package/.next/server/app/recover.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/recover.segments/recover/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/recover.segments/recover.segment.rsc +1 -1
- package/.next/server/app-paths-manifest.json +56 -56
- package/.next/server/chunks/5228.js +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/app/{layout-ee5121c5bdcf8ed2.js → layout-50225821bcc7cbdb.js} +1 -1
- package/.next/static/chunks/app/{page-850a3c23b950a55b.js → page-0c93543d938a7f89.js} +2 -2
- package/.next/trace +118 -118
- package/.next/trace-build +1 -1
- package/Tools/CUELO_Setup/files/native-runtime-patch.js +1 -1
- package/Tools/OMP_Global_Config/agent/extensions/draft-coverage.ts +33 -10
- package/Tools/OMP_Global_Config/agent/extensions/lib/draft-coverage.ts +4 -2
- package/package.json +1 -1
- /package/.next/static/{Fv9DSUHJTmKsAWWcOTAUo → 5iQk2kaP0kioaYSmPb4IH}/_buildManifest.js +0 -0
- /package/.next/static/{Fv9DSUHJTmKsAWWcOTAUo → 5iQk2kaP0kioaYSmPb4IH}/_ssgManifest.js +0 -0
package/.next/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-webpack","duration":
|
|
1
|
+
[{"name":"run-webpack","duration":85067935,"timestamp":388983,"id":14,"parentId":1,"tags":{},"startTime":1795560868139,"traceId":"213be9ff789a69da"},{"name":"run-typescript","duration":18842015,"timestamp":85918267,"id":12143,"parentId":1,"tags":{},"startTime":1795560953668,"traceId":"213be9ff789a69da"},{"name":"static-check","duration":2668336,"timestamp":104854229,"id":12146,"parentId":1,"tags":{},"startTime":1795560972604,"traceId":"213be9ff789a69da"},{"name":"static-generation","duration":5431510,"timestamp":107614029,"id":12374,"parentId":1,"tags":{},"startTime":1795560975364,"traceId":"213be9ff789a69da"},{"name":"collect-build-traces","duration":17098069,"timestamp":107596346,"id":12371,"parentId":1,"tags":{},"startTime":1795560975346,"traceId":"213be9ff789a69da"},{"name":"telemetry-flush","duration":44,"timestamp":124698317,"id":12383,"parentId":1,"tags":{},"startTime":1795560992448,"traceId":"213be9ff789a69da"},{"name":"next-build","duration":124374095,"timestamp":324282,"id":1,"tags":{"buildMode":"default","version":"16.2.12","bundler":"webpack","has-custom-webpack-config":"true","use-build-worker":"false"},"startTime":1795560868074,"traceId":"213be9ff789a69da"}]
|
|
@@ -9,7 +9,7 @@ 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.
|
|
12
|
+
version: '0.10.360',
|
|
13
13
|
distribution: 'cuelo',
|
|
14
14
|
coreVersion: '19.1.1',
|
|
15
15
|
};
|
|
@@ -12,7 +12,9 @@ import { coverage, COVERED_RATIO, denyText, inScope, lettersOf, MIN_UNCOVERED_LE
|
|
|
12
12
|
* 같은 프로세스의 다른 세션(Main·Maker)이 만든 결과는 이 세션이 그 경로를 read한 뒤에만 쓴다.
|
|
13
13
|
* - 바뀌기 전 내용(기준선)은 사용자 입력마다 파일별로 처음 손댈 때 고정한다: 잘게 나눠 직접 더한 글이 기준선으로 씻기지 않는다.
|
|
14
14
|
* - 같은 파일·같은 덩어리 묶음을 그대로 다시 보내면 통과시킨다(예외를 밝힌 경우의 복구 길). 통과는 덮음으로 기록하지 않는다.
|
|
15
|
-
* - bash·eval
|
|
15
|
+
* - bash·eval은 호출 전에 명령에 나온 글 파일의 지금 내용을 기준선으로 잡고, 끝난 뒤 바뀐 파일 전체를 같은 4-gram으로 대조해 덮이지 않은 글이
|
|
16
|
+
* 문단 분량 이상일 때만 알린다(멈추지 않는다). 2026-11-25 비교 실험 2건과 운영 7일 19건이 draft 결과를 옮겼는데도 알리던 무조건 안내였다.
|
|
17
|
+
* 이 기준선은 그 호출에만 쓰고 write·edit의 입력별 기준선 고정에는 넣지 않는다. docx·xlsx·pdf draft 결과와 그 밖의 도구가 쓴 글은 범위 밖이다.
|
|
16
18
|
* - 이 세션이 read로 연 파일의 그때 내용도 덮는 출처다(2026-10-30 사용자 결정 B7): 이미 있는 글을 미리보기 사본으로 옮기는 것은 새 글이 아니다.
|
|
17
19
|
* 처음부터 새로 쓰는 노트(facts 파일 등)는 그대로 확인한다. 근거: doc/history/2026/10/30-harness-friction.
|
|
18
20
|
*/
|
|
@@ -56,10 +58,12 @@ export default function draftCoverage(pi: ExtensionAPI): void {
|
|
|
56
58
|
let denied = new Set<string>();
|
|
57
59
|
let reminded = new Set<string>();
|
|
58
60
|
let started = new Map<string, number>();
|
|
61
|
+
// bash·eval 호출마다 명령에 나온 글 파일의 호출 전 내용.
|
|
62
|
+
let commandBaselines = new Map<string, Map<string, Set<string>>>();
|
|
59
63
|
// 통과시킨 write·edit의 기록은 그 도구가 성공한 뒤에만 남긴다(실패한 시도는 더한 글이 아니다).
|
|
60
64
|
let staged = new Map<string, (() => void)[]>();
|
|
61
65
|
const resetInput = () => {
|
|
62
|
-
baselines = new Map(); pending = new Map(); acknowledged = new Map(); denied = new Set(); reminded = new Set(); started = new Map(); staged = new Map();
|
|
66
|
+
baselines = new Map(); pending = new Map(); acknowledged = new Map(); denied = new Set(); reminded = new Set(); started = new Map(); staged = new Map(); commandBaselines = new Map();
|
|
63
67
|
};
|
|
64
68
|
const resetSession = () => { owner = {}; granted = new WeakSet(); readSources = []; resetInput(); };
|
|
65
69
|
|
|
@@ -71,7 +75,17 @@ export default function draftCoverage(pi: ExtensionAPI): void {
|
|
|
71
75
|
|
|
72
76
|
pi.on("tool_call", (event, ctx) => {
|
|
73
77
|
const input = (event.input ?? {}) as Record<string, unknown>;
|
|
74
|
-
if (event.toolName === "bash" || event.toolName === "eval") {
|
|
78
|
+
if (event.toolName === "bash" || event.toolName === "eval") {
|
|
79
|
+
started.set(event.toolCallId, Date.now());
|
|
80
|
+
const before = new Map<string, Set<string>>();
|
|
81
|
+
for (const path of candidatesOf(event.toolName, input, ctx.cwd).files) {
|
|
82
|
+
if (!inScope(path, ctx.cwd) || reminded.has(path) || baselines.has(path)) continue;
|
|
83
|
+
const text = readText(path);
|
|
84
|
+
if (text !== undefined) before.set(path, shingles(text));
|
|
85
|
+
}
|
|
86
|
+
if (before.size > 0) commandBaselines.set(event.toolCallId, before);
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
75
89
|
const changes = proseChanges(event.toolName, input, ctx.cwd);
|
|
76
90
|
if (changes.length === 0) return;
|
|
77
91
|
const usable = [...drafts.filter((snap) => snap.owner === owner || granted.has(snap)).map((snap) => snap.grams), ...readSources];
|
|
@@ -150,12 +164,21 @@ export default function draftCoverage(pi: ExtensionAPI): void {
|
|
|
150
164
|
if (event.toolName !== "bash" && event.toolName !== "eval") return;
|
|
151
165
|
const since = (started.get(event.toolCallId) ?? Date.now()) - 2_000;
|
|
152
166
|
started.delete(event.toolCallId);
|
|
153
|
-
const
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
167
|
+
const before = commandBaselines.get(event.toolCallId);
|
|
168
|
+
commandBaselines.delete(event.toolCallId);
|
|
169
|
+
const usable = [...drafts.filter((snap) => snap.owner === owner || granted.has(snap)).map((snap) => snap.grams), ...readSources];
|
|
170
|
+
const found: { path: string; blocks?: string[] }[] = [];
|
|
171
|
+
for (const path of candidatesOf(event.toolName, input, ctx.cwd).files) {
|
|
172
|
+
if (!inScope(path, ctx.cwd) || reminded.has(path)) continue;
|
|
173
|
+
try { if (statSync(path).mtimeMs < since) continue; } catch { continue; }
|
|
174
|
+
const text = readText(path);
|
|
175
|
+
// 너무 커서 읽지 못한 파일은 대조 없이 예전처럼 알린다.
|
|
176
|
+
if (text === undefined) { found.push({ path }); continue; }
|
|
177
|
+
const blocks = uncoveredBlocks(text, path, [baselines.get(path) ?? before?.get(path) ?? new Set<string>(), ...usable]);
|
|
178
|
+
if (lettersOf(blocks) >= MIN_UNCOVERED_LETTERS) found.push({ path, blocks });
|
|
179
|
+
}
|
|
180
|
+
if (found.length === 0) return;
|
|
181
|
+
for (const { path } of found) reminded.add(path);
|
|
182
|
+
pi.sendMessage({ customType: "draft-coverage", content: reminderText(found), display: false, attribution: "agent" }, { deliverAs: "aside" });
|
|
160
183
|
});
|
|
161
184
|
}
|
|
@@ -224,6 +224,8 @@ export function denyText(path: string, blocks: readonly string[]): string {
|
|
|
224
224
|
예외일 때만: 위 덩어리가 정확한 사실·오타·슬롭 교정, 배치·코드만 옮긴 기존 글, 사용자·원문 인용처럼 draft 대상이 아니면, 다시 보내기 전에 응답 본문에 덩어리마다 어떤 예외인지와 그 근거(원문 위치 등)를 먼저 적고 같은 호출을 바꾸지 않고 다시 보낸다. 그 다시 보내기는 한 번 통과할 뿐 draft를 거친 것으로 기록되지 않으며, 새 예시·설명·결론은 예외가 아니다. 이 판단은 글자 유사도에 기댄 단서이며 저자 증명이 아니다.`;
|
|
225
225
|
}
|
|
226
226
|
|
|
227
|
-
|
|
228
|
-
|
|
227
|
+
/** bash·eval이 바꾼 글 파일의 알림. blocks가 없으면 너무 커서 대조하지 못한 파일이다. */
|
|
228
|
+
export function reminderText(files: readonly { path: string; blocks?: readonly string[] }[]): string {
|
|
229
|
+
const list = files.map(({ path, blocks }) => (blocks ? `${path}(draft 결과에도 바뀌기 전 내용에도 없는 글 ${blocks.length}덩어리, ${lettersOf(blocks)}자)` : `${path}(너무 커서 대조하지 못함)`));
|
|
230
|
+
return `[draft-coverage] 이 명령이 글 파일을 바꿨다: ${list.join(", ")}. 새 문단·설명·예시를 넣었다면 그 부분을 draft로 쓰게 한 뒤 적용하라(사실·오타·슬롭 교정과 배치 변경은 예외). 글자 유사도에 기댄 단서이며 저자 증명이 아니다.`;
|
|
229
231
|
}
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|