cuelo 0.10.310 → 0.10.311
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 +55 -55
- 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 +1 -1
- 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 +55 -55
- 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-126c33aa03dae3b0.js → layout-165274164c96bc6a.js} +1 -1
- package/.next/static/chunks/app/{page-157f998be6897192.js → page-082093b981ecb830.js} +2 -2
- package/.next/trace +114 -114
- package/.next/trace-build +1 -1
- package/Tools/CUELO_Setup/files/native-runtime-patch.js +1 -1
- package/Tools/OMP_Global_Config/agent/cuelo-plugins/todo-language/index.ts +23 -8
- package/Tools/OMP_Global_Config/agent/cuelo-plugins/todo-language/plugin.json +5 -1
- package/Tools/OMP_Global_Config/agent/cuelo-plugins/todo-language/todo-language.ts +38 -9
- package/package.json +1 -1
- /package/.next/static/{CRNTxNvi6W3l3Zs03qAOA → Wf3AilaVPBlysaa31WOP_}/_buildManifest.js +0 -0
- /package/.next/static/{CRNTxNvi6W3l3Zs03qAOA → Wf3AilaVPBlysaa31WOP_}/_ssgManifest.js +0 -0
package/.next/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-webpack","duration":
|
|
1
|
+
[{"name":"run-webpack","duration":82326437,"timestamp":384142,"id":14,"parentId":1,"tags":{},"startTime":1794969794359,"traceId":"09dc863b2ad29c08"},{"name":"run-typescript","duration":18391090,"timestamp":83146142,"id":11729,"parentId":1,"tags":{},"startTime":1794969877121,"traceId":"09dc863b2ad29c08"},{"name":"static-check","duration":2501691,"timestamp":101633300,"id":11732,"parentId":1,"tags":{},"startTime":1794969895609,"traceId":"09dc863b2ad29c08"},{"name":"static-generation","duration":6577519,"timestamp":104227754,"id":11970,"parentId":1,"tags":{},"startTime":1794969898203,"traceId":"09dc863b2ad29c08"},{"name":"collect-build-traces","duration":17332440,"timestamp":104209960,"id":11967,"parentId":1,"tags":{},"startTime":1794969898185,"traceId":"09dc863b2ad29c08"},{"name":"telemetry-flush","duration":42,"timestamp":121546437,"id":11979,"parentId":1,"tags":{},"startTime":1794969915522,"traceId":"09dc863b2ad29c08"},{"name":"next-build","duration":121230780,"timestamp":315717,"id":1,"tags":{"buildMode":"default","version":"16.2.12","bundler":"webpack","has-custom-webpack-config":"true","use-build-worker":"false"},"startTime":1794969794291,"traceId":"09dc863b2ad29c08"}]
|
|
@@ -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.311',
|
|
13
13
|
distribution: 'cuelo',
|
|
14
14
|
coreVersion: '18.22.1',
|
|
15
15
|
};
|
|
@@ -1,18 +1,27 @@
|
|
|
1
1
|
import type { ExtensionAPI } from "@oh-my-pi/pi-coding-agent";
|
|
2
2
|
import { getLatestTodoPhasesFromEntries } from "@oh-my-pi/pi-coding-agent/tools/todo";
|
|
3
3
|
import { onSessionLifecycle } from "../../extensions/lib/session-identity";
|
|
4
|
-
import { hasJapaneseTodoProse, introducedTodoFields, requestedTodoJapanese } from "./todo-language";
|
|
4
|
+
import { hasEnglishOnlyTodoProse, hasJapaneseTodoProse, introducedTodoFields, requestedTodoEnglish, requestedTodoJapanese, userWritesKorean } from "./todo-language";
|
|
5
5
|
|
|
6
6
|
export default function todoLanguageGuard(pi: ExtensionAPI): void {
|
|
7
7
|
let japaneseRequested = false;
|
|
8
|
+
let englishRequested = false;
|
|
9
|
+
let koreanUser = false;
|
|
10
|
+
const remember = (text: string) => {
|
|
11
|
+
japaneseRequested = requestedTodoJapanese(text) ?? japaneseRequested;
|
|
12
|
+
englishRequested = requestedTodoEnglish(text) ?? englishRequested;
|
|
13
|
+
koreanUser = userWritesKorean(text) ?? koreanUser;
|
|
14
|
+
};
|
|
8
15
|
const readRequest = (message: { role?: string; synthetic?: boolean; attribution?: string; content?: unknown }) => {
|
|
9
16
|
if (message.role !== "user" || message.synthetic === true || message.attribution === "agent") return;
|
|
10
17
|
const text = typeof message.content === "string" ? message.content : Array.isArray(message.content)
|
|
11
18
|
? message.content.flatMap(part => part?.type === "text" && typeof part.text === "string" ? [part.text] : []).join("\n") : "";
|
|
12
|
-
|
|
19
|
+
remember(text);
|
|
13
20
|
};
|
|
14
21
|
onSessionLifecycle(pi, { start: ctx => {
|
|
15
22
|
japaneseRequested = false;
|
|
23
|
+
englishRequested = false;
|
|
24
|
+
koreanUser = false;
|
|
16
25
|
if (ctx.agent.kind !== "main") return;
|
|
17
26
|
for (const entry of ctx.sessionManager.getBranch()) {
|
|
18
27
|
if (entry.type === "message") readRequest(entry.message);
|
|
@@ -20,7 +29,7 @@ export default function todoLanguageGuard(pi: ExtensionAPI): void {
|
|
|
20
29
|
} });
|
|
21
30
|
pi.on("input", (event, ctx) => {
|
|
22
31
|
if (ctx.agent.kind !== "main" || (event.source !== "interactive" && event.source !== "rpc")) return;
|
|
23
|
-
|
|
32
|
+
remember(event.text);
|
|
24
33
|
});
|
|
25
34
|
pi.on("message_start", (event, ctx) => {
|
|
26
35
|
const message = event.message as { role?: string; synthetic?: boolean; attribution?: string; steering?: boolean; content?: unknown };
|
|
@@ -29,14 +38,20 @@ export default function todoLanguageGuard(pi: ExtensionAPI): void {
|
|
|
29
38
|
readRequest(message);
|
|
30
39
|
});
|
|
31
40
|
pi.on("tool_call", (event, ctx) => {
|
|
32
|
-
if (event.toolName !== "todo" || ctx.agent.kind !== "main"
|
|
41
|
+
if (event.toolName !== "todo" || ctx.agent.kind !== "main") return;
|
|
33
42
|
if (!event.input || typeof event.input !== "object" || Array.isArray(event.input)) return;
|
|
34
43
|
const phases = getLatestTodoPhasesFromEntries(ctx.sessionManager.getBranch());
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
if (
|
|
44
|
+
const fields = introducedTodoFields(event.input, new Set(phases.map(phase => phase.name)));
|
|
45
|
+
const japanese = japaneseRequested ? undefined : fields.find(candidate => hasJapaneseTodoProse(candidate.text));
|
|
46
|
+
if (japanese) return {
|
|
47
|
+
block: true,
|
|
48
|
+
reason: `todo-language-guard: ${japanese.location}에 일본어 가나 산문이 있다. 새 표시 문구를 짧은 한국어로 바꿔 다시 호출하라. 코드, 경로, API 이름, 원본 오류와 인용은 그대로 보존하라. 사용자가 직접 일본어 할 일을 요청한 경우만 예외다. 기존 할 일 상태는 변경하지 않았다.`,
|
|
49
|
+
};
|
|
50
|
+
// Only a Korean-speaking user sees an English todo as a foreign language; English users keep English todos.
|
|
51
|
+
const english = !koreanUser || englishRequested ? undefined : fields.find(candidate => hasEnglishOnlyTodoProse(candidate.text));
|
|
52
|
+
if (english) return {
|
|
38
53
|
block: true,
|
|
39
|
-
reason: `todo-language-guard: ${
|
|
54
|
+
reason: `todo-language-guard: ${english.location}이 한글 없는 영어 문장이다. 사용자가 한국어로 말하므로 할 일은 사용자 화면에 그대로 보인다. 새 표시 문구를 짧은 한국어로 바꿔 다시 호출하라. 코드, 경로, 명령, API 이름은 백틱으로 감싸 그대로 두라. 사용자가 직접 영어 할 일을 요청한 경우만 예외다. 기존 할 일 상태는 변경하지 않았다.`,
|
|
40
55
|
};
|
|
41
56
|
});
|
|
42
57
|
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "todo-language",
|
|
3
3
|
"name": "todo 언어",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "새 todo 표시 문구의 일본어 가나 산문과, 한국어로 말하는 사용자에게 보이는 한글 없는 영어 문장을 도구 실행 전에 차단합니다. 사용자가 그 언어의 할 일을 직접 요청한 경우는 예외입니다.",
|
|
5
5
|
"createdAt": "2026-11-10T02:01:37+09:00",
|
|
6
6
|
"enhancements": [
|
|
7
7
|
{
|
|
8
8
|
"at": "2026-11-09T19:08:02+00:00",
|
|
9
9
|
"summary": "중간에 부사가 포함된 영어 부정 명령문을 인식하도록 개선했습니다."
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"at": "2026-11-18T03:00:00+00:00",
|
|
13
|
+
"summary": "한국어로 말하는 사용자의 세션에서 한글 없는 영어 할 일도 막고 한국어로 다시 쓰게 했습니다."
|
|
10
14
|
}
|
|
11
15
|
],
|
|
12
16
|
"extension": "index.ts",
|
|
@@ -13,17 +13,30 @@ export function hasJapaneseTodoProse(text: string): boolean {
|
|
|
13
13
|
return /[\p{Script=Hiragana}\p{Script=Katakana}]/u.test(prose(text));
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
// Standalone Latin words; underscore- or digit-joined identifiers ("REPLAN_WHEN", "x86") are not words.
|
|
17
|
+
const latinWords = (text: string) => text.match(/(?<!\w)[A-Za-z]+(?!\w)/g)?.length ?? 0;
|
|
18
|
+
|
|
19
|
+
// English prose with no Hangul: two or more Latin words left after code, paths, quotes and raw errors are removed.
|
|
20
|
+
// A lone identifier ("CI", "README", "REPLAN_WHEN") stays neutral.
|
|
21
|
+
export function hasEnglishOnlyTodoProse(text: string): boolean {
|
|
22
|
+
const direct = prose(text);
|
|
23
|
+
return !/[\p{Script=Hangul}\p{Script=Hiragana}\p{Script=Katakana}]/u.test(direct) && latinWords(direct) >= 2;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
type TodoLanguage = "ja" | "ko" | "en";
|
|
27
|
+
|
|
16
28
|
// Undefined means no new directive; a neutral follow-up must not revoke a real user instruction.
|
|
17
|
-
|
|
29
|
+
// True: the user asked for `target` todos. False: the user asked for another language or prohibited `target`.
|
|
30
|
+
function requestedTodoLanguage(text: string, target: TodoLanguage): boolean | undefined {
|
|
18
31
|
const direct = prose(text);
|
|
19
32
|
const todo = "(?:할\\s*일(?:\\s*목록)?|투두|todo(?:\\s*list|s)?|task\\s*list|checklist)";
|
|
20
33
|
const particle = "(?:을|를|은|는|만|도)?";
|
|
21
34
|
const verb = "(?:써|쓰|작성|적어|표시|만들|바꿔|정리|부탁|해|계속)";
|
|
22
35
|
const adverbs = "(?:(?:모두|전부|전체|앞으로|이제부터|항상|반드시|꼭|다시|그냥|계속|자세히|짧게|간단히)\\s*)*";
|
|
23
|
-
const contrast = `(?:(
|
|
36
|
+
const contrast = `(?:(?:일본어|일문|한국어|한글|영어|영문)(?:로|으로)\\s*${verb}[하해\\s]*지\\s*말고\\s*)?`;
|
|
24
37
|
let requested: boolean | undefined;
|
|
25
38
|
for (const clause of direct.split(/[.!?。\n;,]/)) {
|
|
26
|
-
for (const [language,
|
|
39
|
+
for (const [language, code] of [["일본어|일문", "ja"], ["한국어|한글", "ko"], ["영어|영문", "en"]] as const) {
|
|
27
40
|
const lang = `(?:${language})(?:로|으로)`;
|
|
28
41
|
const match = new RegExp(`${todo}${particle}\\s*${contrast}${adverbs}${lang}\\s*${adverbs}${verb}|${lang}\\s*${adverbs}${todo}${particle}\\s*${adverbs}${verb}`, "i").exec(clause);
|
|
29
42
|
if (!match) continue;
|
|
@@ -31,21 +44,37 @@ export function requestedTodoJapanese(text: string): boolean | undefined {
|
|
|
31
44
|
const required = /^[하해\s]*지\s*않으면\s*안\s*(?:돼|되|됩|된|됨)/.test(tail);
|
|
32
45
|
const prohibited = !required && (/^[하해서주시어아지진는도록게기가것건걸을를은면\s]*(?:않|못|금지|안\s*(?:돼|되|됩|된|됨))/.test(tail)
|
|
33
46
|
|| /^[하해서주시어아는도록게기가것건걸을를은면\s]*(?:지(?:는|도)?|진)\s*(?:말|마)/.test(tail));
|
|
34
|
-
if (prohibited &&
|
|
35
|
-
else if (!prohibited) requested =
|
|
47
|
+
if (prohibited && code === target) requested = false;
|
|
48
|
+
else if (!prohibited) requested = code === target;
|
|
36
49
|
}
|
|
37
|
-
const english = /\b(?:write|create|show|keep|switch|change)\s+(?:(?:the|my|your|all|every|future)\s+)*(?:todos?|todo\s*(?:list|items?)|task\s*list|checklist)\s+(?:in|to)\s+(japanese|korean)\b/i.exec(clause);
|
|
50
|
+
const english = /\b(?:write|create|show|keep|switch|change)\s+(?:(?:the|my|your|all|every|future)\s+)*(?:todos?|todo\s*(?:list|items?)|task\s*list|checklist)\s+(?:in|to)\s+(japanese|korean|english)\b/i.exec(clause);
|
|
38
51
|
if (english) {
|
|
39
|
-
const
|
|
52
|
+
const code = ({ japanese: "ja", korean: "ko", english: "en" } as const)[english[1]!.toLowerCase() as "japanese" | "korean" | "english"];
|
|
40
53
|
// A bounded adverb list may sit between the negation and the verb ("do not ever write"); anything else ends its reach.
|
|
41
54
|
const prohibited = /\b(?:don't|do not|not|never)(?:\s+(?:ever|again|really|actually|just|even))*\s*$/i.test(clause.slice(0, english.index));
|
|
42
|
-
if (prohibited &&
|
|
43
|
-
else if (!prohibited) requested =
|
|
55
|
+
if (prohibited && code === target) requested = false;
|
|
56
|
+
else if (!prohibited) requested = code === target;
|
|
44
57
|
}
|
|
45
58
|
}
|
|
46
59
|
return requested;
|
|
47
60
|
}
|
|
48
61
|
|
|
62
|
+
export function requestedTodoJapanese(text: string): boolean | undefined {
|
|
63
|
+
return requestedTodoLanguage(text, "ja");
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function requestedTodoEnglish(text: string): boolean | undefined {
|
|
67
|
+
return requestedTodoLanguage(text, "en");
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// Undefined leaves the previous judgement: messages without Hangul or three English words say nothing about the user's language.
|
|
71
|
+
// Hangul inside quotes or code is quoted material, not the language the user writes in.
|
|
72
|
+
export function userWritesKorean(text: string): boolean | undefined {
|
|
73
|
+
const direct = prose(text);
|
|
74
|
+
if (/\p{Script=Hangul}/u.test(direct)) return true;
|
|
75
|
+
return latinWords(direct) >= 3 ? false : undefined;
|
|
76
|
+
}
|
|
77
|
+
|
|
49
78
|
type DisplayField = { location: string; text: string };
|
|
50
79
|
|
|
51
80
|
// This selects fields, not schema validity. TodoTool remains responsible for validation and op inference.
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|