tonedial 0.1.0 → 0.1.2
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/dist/cli.js +5 -2
- package/dist/commands/compile.js +3 -12
- package/dist/commands/create.js +7 -7
- package/dist/commands/doctor.js +23 -16
- package/dist/commands/edit.js +10 -11
- package/dist/commands/init.js +8 -14
- package/dist/commands/save.js +5 -13
- package/dist/commands/set.js +85 -62
- package/dist/commands/show.js +20 -30
- package/dist/commands/transfer.js +0 -1
- package/dist/commands/update.js +89 -42
- package/dist/commands/use.js +6 -8
- package/dist/commands/wire.js +1 -1
- package/dist/core/anchors.js +0 -3
- package/dist/core/combos.js +6 -38
- package/dist/core/compile.js +1 -5
- package/dist/core/config.js +0 -1
- package/dist/core/i18n.js +70 -72
- package/dist/core/locales/es.js +35 -36
- package/dist/core/locales/ja.js +35 -36
- package/dist/core/locales/zh.js +35 -36
- package/dist/core/seeds.js +3 -3
- package/dist/core/selfupdate.js +47 -2
- package/dist/core/skill.js +9 -6
- package/dist/ui/format.js +5 -8
- package/package.json +1 -1
package/dist/core/combos.js
CHANGED
|
@@ -30,45 +30,13 @@ const COMPOSITES = [
|
|
|
30
30
|
export function composites(axes) {
|
|
31
31
|
return COMPOSITES.filter((c) => c.fires(axes)).map((c) => c.line);
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
const w = [];
|
|
39
|
-
const add = (layer, rule, id) => w.push({ layer, rule, id });
|
|
40
|
-
if (axes.refusal >= 4 && axes.compliance >= 4) {
|
|
41
|
-
add("forbidden", "refusal≥4 × compliance≥4", "refusalCompliance");
|
|
42
|
-
}
|
|
43
|
-
if (persona) {
|
|
44
|
-
const selfRef = persona.address?.self_ref ?? null;
|
|
45
|
-
const userRef = persona.address?.user_ref ?? null;
|
|
46
|
-
if (axes.formality === 5 && selfRef && INFORMAL_SELF.test(selfRef)) {
|
|
47
|
-
add("awkward", "formality 5 × informal self_ref", "formalSelfRef");
|
|
48
|
-
}
|
|
49
|
-
if (axes.formality <= 2 && speechLevel === "plain" && userRef && DEFERENTIAL_USER.test(userRef)) {
|
|
50
|
-
add("awkward", "formality≤2 × deferential user_ref", "casualUserRef");
|
|
51
|
-
}
|
|
52
|
-
if (persona.age === "teens" && axes.formality === 5) {
|
|
53
|
-
add("awkward", "age: teens × formality 5", "teensFormal");
|
|
54
|
-
}
|
|
55
|
-
if (persona.age === "50s+" && selfRef && INFORMAL_SELF.test(selfRef)) {
|
|
56
|
-
add("awkward", "age: 50s+ with a junior self_ref", "seniorJuniorSelfRef");
|
|
57
|
-
}
|
|
58
|
-
// The spec's eighth awkward rule — `age` contradicting the relative age implied by
|
|
59
|
-
// `address` — is **not implemented**. It needs a kinship lexicon that maps 형 or 누나 to a
|
|
60
|
-
// relative age, in a design that takes address terms as free-form text in any language.
|
|
61
|
-
// Recorded rather than dropped: the rule is right and the input it needs does not exist.
|
|
62
|
-
// Measured, not predicted: across five `terse-operator` runs the configured address never
|
|
63
|
-
// surfaced once, because a maximally terse reply has no natural slot for a vocative.
|
|
64
|
-
// The user is told rather than obeyed, since the alternative is forcing unnatural output.
|
|
65
|
-
if ((selfRef || userRef) && (axes.warmth <= 2 || axes.verbosity <= 2)) {
|
|
66
|
-
add("ineffective", "address set while warmth≤2 or verbosity≤2", "addressUnlikely");
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
return w;
|
|
33
|
+
/** Independent persona choices are valid; warn only when axis instructions conflict. */
|
|
34
|
+
export function check(axes) {
|
|
35
|
+
return axes.refusal >= 4 && axes.compliance >= 4
|
|
36
|
+
? [{ layer: "forbidden", rule: "refusal≥4 × compliance≥4", id: "refusalCompliance" }]
|
|
37
|
+
: [];
|
|
70
38
|
}
|
|
71
|
-
/** The axes a preset moves off their default
|
|
39
|
+
/** The axes a preset moves off their default; custom profiles have no count restriction. */
|
|
72
40
|
export function nonDefaultAxes(axes, defaults) {
|
|
73
41
|
// Walks AXIS_ORDER rather than Object.keys: map iteration order follows the JSON file, and a
|
|
74
42
|
// hand-edited config carrying a stray key would otherwise be reported as a non-default axis.
|
package/dist/core/compile.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ANCHORS, AXIS_ORDER,
|
|
1
|
+
import { ANCHORS, AXIS_ORDER, CONTROLS, FORMAT_COMPOSITION, GENERATION_COMMENT, PERSONA, REGISTER_COMPOSITION, SCOPE_HEADER, SPEECH_LEVEL, STYLE_MARKER, } from "./anchors.js";
|
|
2
2
|
import { composites, PERSONA_DESCRIPTION_MAX } from "./combos.js";
|
|
3
3
|
const UNSPECIFIED = "unspecified";
|
|
4
4
|
const isSet = (v) => typeof v === "string" && v.trim() !== "" && v !== UNSPECIFIED;
|
|
@@ -81,9 +81,5 @@ export function measure(artifact) {
|
|
|
81
81
|
const chars = [...artifact].length;
|
|
82
82
|
return {
|
|
83
83
|
chars,
|
|
84
|
-
target: TARGET_CHARS,
|
|
85
|
-
cap: CAP_CHARS,
|
|
86
|
-
overTarget: chars > TARGET_CHARS,
|
|
87
|
-
overCap: chars > CAP_CHARS,
|
|
88
84
|
};
|
|
89
85
|
}
|
package/dist/core/config.js
CHANGED
|
@@ -11,7 +11,6 @@ export const LEGACY_CONFIG_SCHEMA = 1;
|
|
|
11
11
|
export const AGE_BANDS = ["unspecified", "teens", "20s", "30s", "40s", "50s+"];
|
|
12
12
|
export const GENDERS = ["unspecified", "masculine", "feminine", "neutral"];
|
|
13
13
|
export const SPEECH_LEVELS = ["auto", "polite", "plain"];
|
|
14
|
-
export const NOTE_MAX = 200;
|
|
15
14
|
export const WIRING_SCOPES = ["global", "project"];
|
|
16
15
|
export const RESOURCE_KINDS = ["hook", "skill", "shell", "reader", "command"];
|
|
17
16
|
export const RESOURCE_TYPES = ["file", "directory", "symlink"];
|
package/dist/core/i18n.js
CHANGED
|
@@ -72,7 +72,6 @@ const enMessages = {
|
|
|
72
72
|
`Run tonedial use ${was}, then save it as ${tried}.`,
|
|
73
73
|
noLatin: (name) => `"${name}": no Latin letters or digits for a slug`,
|
|
74
74
|
nameTooLong: (given, cap) => `display name: ${given} characters · maximum ${cap}`,
|
|
75
|
-
sparsity: (slug, count) => `${slug}: ${count} changed axes · recommended 3–7 (5±2). Fewer extremes reduce conflicts`,
|
|
76
75
|
replaced: (slug) => `${slug}: existing preset replaced`,
|
|
77
76
|
imported: (slug, replaced) => `${slug}: ${replaced ? "replaced" : "imported"}`,
|
|
78
77
|
unreadable: (path, reason) => `${path}\ncannot read: ${reason}`,
|
|
@@ -97,7 +96,7 @@ const enMessages = {
|
|
|
97
96
|
introduction: "Choose the profile name, slug, address and role, then adjust all twelve axes. Enter keeps the shown value; \"\" clears an optional field. Final approval saves and applies the whole profile.",
|
|
98
97
|
name: "Display name",
|
|
99
98
|
slug: "Slug (lowercase letters, digits, dashes)",
|
|
100
|
-
user: "Your
|
|
99
|
+
user: "Your role or background (up to 200 characters)",
|
|
101
100
|
agent: "Agent role (up to 200 characters)",
|
|
102
101
|
register: "Register (auto, polite, plain)",
|
|
103
102
|
safeword: "Safeword",
|
|
@@ -144,13 +143,13 @@ const enMessages = {
|
|
|
144
143
|
addressNeedsPair: "address needs both terms: tonedial address <self name> <user name>. " +
|
|
145
144
|
'Use "" in each position to clear them. In a terminal, run it without arguments to be prompted.',
|
|
146
145
|
askSelf: "What should the agent call itself?",
|
|
146
|
+
rolesNeedsPair: 'persona needs both descriptions: tonedial persona <agent role> <user role>. Use "" to clear a description, or run without arguments in a terminal.',
|
|
147
|
+
rolesIntroduction: 'Set the agent\'s role and your role or background. Enter keeps the current value; "" clears a role. Changes apply after both answers.',
|
|
147
148
|
askUser: "What should it call you?",
|
|
148
149
|
addressKept: (current) => `current ${current} · Enter keeps it`,
|
|
149
150
|
addressNone: "currently unset · Enter keeps it unset",
|
|
150
151
|
age: (given, bands) => `persona.age=${given} · available: ${bands.join(", ")}`,
|
|
151
152
|
gender: (options) => `persona.gender · available: ${options.join(", ")}`,
|
|
152
|
-
noteOverCap: (given, cap) => `persona.note: ${given} characters · over ${cap} recommended`,
|
|
153
|
-
noteNamesAxis: (axes) => `persona.note overlaps the ${axes.join(", ")} axes. Axes have anchors, so they win any conflict.`,
|
|
154
153
|
callsYou: (term) => `user name ${term}`,
|
|
155
154
|
callsItself: (term) => `self name ${term}`,
|
|
156
155
|
noteChars: (count) => `note ${count} chars`,
|
|
@@ -169,15 +168,12 @@ const enMessages = {
|
|
|
169
168
|
register: (level) => `register ${level}`,
|
|
170
169
|
},
|
|
171
170
|
artifact: {
|
|
172
|
-
|
|
171
|
+
size: (chars) => `TONE.md ${chars} characters`,
|
|
173
172
|
wouldWrite: "would write",
|
|
174
173
|
wrote: "written",
|
|
175
|
-
overCap: (chars, cap) => `TONE.md: ${chars} characters · over ${cap} maximum`,
|
|
176
|
-
overTarget: (chars, target) => `TONE.md: ${chars} characters · over ${target} target`,
|
|
177
174
|
notWritten: "TONE.md is missing. Run tonedial compile",
|
|
178
175
|
notSetUp: "not initialized. Run tonedial init",
|
|
179
176
|
movedFromDefault: "differs from ToneDial's default",
|
|
180
|
-
recompiled: (chars, cap) => `TONE.md ${chars.toLocaleString("en")} / ${cap.toLocaleString("en")}`,
|
|
181
177
|
defaultMarker: "marks an axis that differs from ToneDial's default, not the agent's native tone.",
|
|
182
178
|
riskMarker: "! risky tone",
|
|
183
179
|
riskHeading: "Advisory risky levels:",
|
|
@@ -270,14 +266,14 @@ const enMessages = {
|
|
|
270
266
|
inspectScope: "To keep using these connections, inspect this scope:",
|
|
271
267
|
disconnectScope: "If no longer needed, disconnect all agents in this scope:",
|
|
272
268
|
scope: "Inspection scope: project",
|
|
273
|
-
toLookAt: (count) => `${count}
|
|
269
|
+
toLookAt: (count) => `${count} ${count === 1 ? "check needs" : "checks need"} attention`,
|
|
274
270
|
needsAPerson: "manual review required · see details above",
|
|
275
271
|
toneMatches: "matches config.json",
|
|
276
272
|
toneNotWritten: "not written",
|
|
277
273
|
toneDisagrees: "differs from config.json · edited directly or write interrupted",
|
|
274
|
+
seedsHeading: "Bundled files",
|
|
278
275
|
seedsOk: (version) => `version ${version}`,
|
|
279
276
|
seedsNotRun: "no bundled files · init has not run here",
|
|
280
|
-
seedsStale: (labels) => `${labels.length} need refresh: ${labels.join(", ")}`,
|
|
281
277
|
seedsAttention: "bundled files need attention",
|
|
282
278
|
recoveryPending: "An operation is active or needs recovery. Nothing was changed. Run tonedial doctor --json to inspect IDs. A recorded rollback uses doctor --fix --rollback ID; a stopped valid operation can be explicitly selected for app rebuild with doctor --fix --from-operation ID. Live or ambiguous owners stay protected.",
|
|
283
279
|
contextCurrent: "AGENTS.md and TONE.md layout is current.",
|
|
@@ -313,13 +309,12 @@ const enMessages = {
|
|
|
313
309
|
rollbackAction: { applied: "restore", "already-reverted": "already restored", changed: "changed · preserve", unsupported: "unsupported · preserve" },
|
|
314
310
|
rollbackQuestion: "Restore the selected operation?",
|
|
315
311
|
seedReason: {
|
|
316
|
-
missing: "
|
|
317
|
-
stale: "
|
|
318
|
-
modified: "
|
|
319
|
-
foreign: "Not owned by ToneDial
|
|
320
|
-
unreadable: "Cannot read safely
|
|
312
|
+
missing: "Missing bundled file",
|
|
313
|
+
stale: "Bundled file update available",
|
|
314
|
+
modified: "Locally modified · review before replacement",
|
|
315
|
+
foreign: "Not owned by ToneDial · preserved",
|
|
316
|
+
unreadable: "Cannot read safely · check path and permissions",
|
|
321
317
|
},
|
|
322
|
-
seedsBehind: (had, has) => `home bundled-file version ${had} · package version ${has}. An npm update does not refresh existing home files`,
|
|
323
318
|
skillLinked: "linked to bundled copy",
|
|
324
319
|
skillCopied: "copied · platform does not support links",
|
|
325
320
|
skillForeign: (path) => `${path}: not installed by ToneDial, so it will not be replaced`,
|
|
@@ -336,9 +331,7 @@ const enMessages = {
|
|
|
336
331
|
},
|
|
337
332
|
hookSettingScope: "Hook status is read from the inspected settings file only; host overrides and session delivery are unverified.",
|
|
338
333
|
hookGroupHeading: "Agent hooks",
|
|
339
|
-
hookGroupUnknown: (tools) => `
|
|
340
|
-
hookGroupMissing: "No managed ToneDial hook is registered for these agents in this scope.",
|
|
341
|
-
hookGroupAction: "To connect ToneDial, run init in this scope and select these agents.",
|
|
334
|
+
hookGroupUnknown: (tools) => `Not connected: ${tools.join(", ")}.`,
|
|
342
335
|
hookNotConnected: "No managed ToneDial hook to inspect. To connect, run init with this agent selected in the same scope.",
|
|
343
336
|
hookNeedsInspection: "Resolve the reported hook settings or program issue before checking enablement in the app.",
|
|
344
337
|
hookGuidance: {
|
|
@@ -382,24 +375,36 @@ const enMessages = {
|
|
|
382
375
|
"Find the global prefix: npm prefix -g\nAdd its bin directory (macOS/Linux) to PATH.",
|
|
383
376
|
},
|
|
384
377
|
notice: {
|
|
385
|
-
modelExpectation: "The model may not produce the tone you expect.",
|
|
386
378
|
riskIntro: "For fun, not recommended for production. Risky tone can distort judgments and work reports through falsehood, omission or exaggeration. ! marks advisory levels, not measured probabilities.",
|
|
387
379
|
riskAxes: (axes) => `! ${axes.join(", ")} · ${[
|
|
388
380
|
axes.some(axis => axis === "profanity" || axis === "critique") ? "harsh language" : null,
|
|
389
381
|
axes.some(axis => axis === "flattery" || axis === "conviction" || axis === "bravado") ? "biased judgments or exaggerated reports" : null,
|
|
390
382
|
axes.some(axis => axis === "compliance" || axis === "refusal") ? "hasty action or refusal" : null,
|
|
391
383
|
].filter(Boolean).join("; ")}`,
|
|
392
|
-
personaUnanchored: "persona has no fixed anchors; axes take precedence. Text may affect content. " +
|
|
393
|
-
"Roleplay does not verify credentials or grant permissions.",
|
|
394
384
|
roleplay: "High playfulness requests frequent, exaggerated role idioms and slang, such as 'your lowly servant' or 'take that function off the books'. They may sound rude or violent; ToneDial does not filter these expressions.",
|
|
395
385
|
risk: "for fun, and not recommended for production use",
|
|
396
386
|
},
|
|
397
387
|
update: {
|
|
398
388
|
running: (version) => `tonedial ${version}`,
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
389
|
+
toUpdate: "Package update:",
|
|
390
|
+
thenRefresh: "Refresh application files:",
|
|
391
|
+
setupNeeded: "Set up ToneDial:",
|
|
392
|
+
refreshFiles: (count) => `Bundled file updates available: ${count}`,
|
|
393
|
+
reviewState: "Inspect the affected application files:",
|
|
394
|
+
npmQuestion: " Run this npm update?",
|
|
395
|
+
npmComplete: (version) => `npm update complete · installed ${version}`,
|
|
396
|
+
npmMissing: "npm was not found on PATH. Use the Node/npm installation that owns this ToneDial copy.",
|
|
397
|
+
npmScopeUnknown: "Cannot verify npm's global installation directory. Check npm prefix -g and npm root -g before retrying.",
|
|
398
|
+
npmScopeMismatch: "This ToneDial copy is not the global package managed by the selected npm. Use the matching Node/npm installation; no update was run.",
|
|
399
|
+
npmFailed: "npm update failed. Check npm's access and registry settings, then retry the displayed command for npm's diagnostics.",
|
|
400
|
+
versionUnknown: "The installed ToneDial version could not be verified. Check the package installation before retrying.",
|
|
401
|
+
stateIssue: {
|
|
402
|
+
missing: "Saved settings are missing.",
|
|
403
|
+
unsafe: "Saved settings cannot be read safely. Check links and file types.",
|
|
404
|
+
changed: "Saved settings changed during inspection. Retry after changes stop.",
|
|
405
|
+
invalid: "Saved settings are invalid.",
|
|
406
|
+
unreadable: "Application state could not be read. Check the path and permissions.",
|
|
407
|
+
},
|
|
403
408
|
fetching: (registry) => `checking · ${registry}`,
|
|
404
409
|
found: (version, bytes) => `${version}, ${bytes.toLocaleString("en")} bytes`,
|
|
405
410
|
already: (version) => `${version} already installed`,
|
|
@@ -407,11 +412,10 @@ const enMessages = {
|
|
|
407
412
|
question: (version) => ` Replace this install with ${version}?`,
|
|
408
413
|
replaced: (version) => `updated · ${version}`,
|
|
409
414
|
declined: "cancelled · existing install kept",
|
|
410
|
-
onlyCurl: (shape) => `${shape} install · use its own update path`,
|
|
411
415
|
noTar: "tar is required for updates but is not on PATH",
|
|
412
416
|
notAPackage: "download is not a ToneDial package",
|
|
413
417
|
linkInPackage: "release contains a symbolic link, but published files need none",
|
|
414
|
-
needsApproval: "
|
|
418
|
+
needsApproval: "Update not run · approval required. Rerun tonedial update --auto to approve.",
|
|
415
419
|
integrityMismatch: "download hash differs from the registry",
|
|
416
420
|
notOurs: (dir) => `${dir}: not created by ToneDial; remove it yourself`,
|
|
417
421
|
swapFailed: (reason) => `installation stopped: ${reason}. Check recovery details before retrying.`,
|
|
@@ -428,8 +432,9 @@ const enMessages = {
|
|
|
428
432
|
init: "set up and refresh bundled files",
|
|
429
433
|
set: "change axes, role or settings · bare opens dial",
|
|
430
434
|
address: "set names for each party · bare prompts",
|
|
435
|
+
persona: "set agent and user roles · bare prompts",
|
|
431
436
|
reset: "reset an axis · bare resets all axes",
|
|
432
|
-
show: "current settings · slug previews saved
|
|
437
|
+
show: "current settings · slug previews a saved profile",
|
|
433
438
|
test: "try saved settings or a preset in a new conversation",
|
|
434
439
|
save: "save the current tone as a profile",
|
|
435
440
|
create: "create and apply a preset · bare guides setup",
|
|
@@ -474,14 +479,8 @@ const enMessages = {
|
|
|
474
479
|
},
|
|
475
480
|
combos: {
|
|
476
481
|
contradiction: (rule) => `${rule} contradicts itself.`,
|
|
477
|
-
reads: (rule) => `${rule}:`,
|
|
478
482
|
refusalCompliance: "One axis requires a declared strike; the other requires immediate action without comment. Lower one.",
|
|
479
|
-
formalSelfRef: "Ceremonious wording and a familiar self-name create a contrast.",
|
|
480
|
-
casualUserRef: "Familiar wording and an honorific address create a contrast.",
|
|
481
|
-
teensFormal: "A teenage persona with ceremonious wording can sound theatrical.",
|
|
482
|
-
seniorJuniorSelfRef: "The stated age and self-name imply different standing.",
|
|
483
483
|
nothingBlocked: "Nothing is blocked.",
|
|
484
|
-
addressUnlikely: "Brief or unemotional replies may omit names; strong roleplay may make them more frequent.",
|
|
485
484
|
},
|
|
486
485
|
errors: {
|
|
487
486
|
notACommand: (name, known, nearest) => `${name} is not a command.${nearest ? ` Did you mean ${nearest}?` : ""} ` +
|
|
@@ -645,7 +644,7 @@ const en = {
|
|
|
645
644
|
"persona.gender": "gender the model may associate with",
|
|
646
645
|
"persona.self_ref": "agent's self-name",
|
|
647
646
|
"persona.user_ref": "agent's name for the user",
|
|
648
|
-
"persona.note": "role the axes cannot express
|
|
647
|
+
"persona.note": "role or manner the axes cannot express",
|
|
649
648
|
"persona.user": "user context · maximum 200 characters",
|
|
650
649
|
"persona.agent": "fictional agent role · maximum 200 characters · credentials are unverified; grants no capability or permission",
|
|
651
650
|
},
|
|
@@ -720,7 +719,6 @@ const koMessages = {
|
|
|
720
719
|
`tonedial use ${was} 명령을 실행한 뒤 저장할 새 이름을 지정하세요: ${tried}`,
|
|
721
720
|
noLatin: (name) => `"${name}": 슬러그로 쓸 라틴 문자나 숫자가 없습니다`,
|
|
722
721
|
nameTooLong: (given, cap) => `표시 이름: ${given}자 · 최대 ${cap}자`,
|
|
723
|
-
sparsity: (slug, count) => `${slug}: 변경 축 ${count}개 · 권장 3~7개(5±2). 극단값이 적으면 충돌도 줄어듭니다`,
|
|
724
722
|
replaced: (slug) => `${slug}: 기존 프리셋 교체됨`,
|
|
725
723
|
imported: (slug, replaced) => `${slug}: ${replaced ? "교체됨" : "가져옴"}`,
|
|
726
724
|
unreadable: (path, reason) => `${path}\n읽을 수 없습니다: ${reason}`,
|
|
@@ -745,7 +743,7 @@ const koMessages = {
|
|
|
745
743
|
introduction: "프로필 이름·슬러그·호칭·역할을 입력한 뒤 열두 축을 조절합니다. Enter를 누르면 표시된 값을 유지하며, '\"\"'를 입력하면 선택 항목을 지웁니다. 마지막 확인에서 전체 프로필을 저장하고 적용합니다.",
|
|
746
744
|
name: "표시 이름",
|
|
747
745
|
slug: "슬러그(영문 소문자·숫자·붙임표)",
|
|
748
|
-
user: "사용자
|
|
746
|
+
user: "사용자 역할·배경(최대 200자)",
|
|
749
747
|
agent: "에이전트 역할(최대 200자)",
|
|
750
748
|
register: "말씨(auto, polite, plain)",
|
|
751
749
|
safeword: "세이프워드",
|
|
@@ -792,13 +790,13 @@ const koMessages = {
|
|
|
792
790
|
addressNeedsPair: "address에는 두 호칭이 모두 필요합니다: tonedial address <자칭> <사용자 호칭>. " +
|
|
793
791
|
'지우려면 각 자리에 ""을 넣으세요. 터미널에서는 인자 없이 실행해 입력할 수도 있습니다.',
|
|
794
792
|
askSelf: "에이전트가 자기를 뭐라고 부를까요?",
|
|
793
|
+
rolesNeedsPair: 'persona에는 두 역할 설명이 필요합니다: tonedial persona <에이전트 역할> <사용자 역할>. 지울 항목에는 ""를 넣으세요. 터미널에서는 인자 없이 실행해 입력할 수도 있습니다.',
|
|
794
|
+
rolesIntroduction: '에이전트와 사용자의 역할·배경을 설정합니다. Enter를 누르면 현재 값을 유지하고, ""를 입력하면 해당 역할을 지웁니다. 두 항목을 입력한 뒤 한 번에 적용합니다.',
|
|
795
795
|
askUser: "에이전트가 사용자를 뭐라고 부를까요?",
|
|
796
796
|
addressKept: (current) => `현재 ${current} · 엔터를 누르면 유지`,
|
|
797
797
|
addressNone: "현재 설정 없음 · 엔터를 누르면 유지",
|
|
798
798
|
age: (given, bands) => `persona.age=${given} · 사용 가능: ${bands.join(", ")}`,
|
|
799
799
|
gender: (options) => `persona.gender · 사용 가능: ${options.join(", ")}`,
|
|
800
|
-
noteOverCap: (given, cap) => `persona.note: ${given}자 · 권장 ${cap}자 초과`,
|
|
801
|
-
noteNamesAxis: (axes) => `persona.note가 ${axes.join(", ")} 축과 겹칩니다. 축에는 앵커가 있으므로 충돌하면 축이 우선합니다`,
|
|
802
800
|
// Labels rather than clauses, for the same reason as `autoChose` above: an address is
|
|
803
801
|
// free-form user text in any language, and `전하이라고` is what attaching `이라고` to it
|
|
804
802
|
// produced — 전하 ends in a vowel and takes `라고`.
|
|
@@ -820,15 +818,12 @@ const koMessages = {
|
|
|
820
818
|
register: (level) => `말씨 ${level}`,
|
|
821
819
|
},
|
|
822
820
|
artifact: {
|
|
823
|
-
|
|
821
|
+
size: (chars) => `TONE.md ${chars}자`,
|
|
824
822
|
wouldWrite: "기록 예정",
|
|
825
823
|
wrote: "기록됨",
|
|
826
|
-
overCap: (chars, cap) => `TONE.md: ${chars}자 · 최대 ${cap}자 초과`,
|
|
827
|
-
overTarget: (chars, target) => `TONE.md: ${chars}자 · 목표 ${target}자 초과`,
|
|
828
824
|
notWritten: "TONE.md가 없습니다. tonedial compile을 실행해 주세요",
|
|
829
825
|
notSetUp: "초기 설정이 없습니다. tonedial init을 실행해 주세요",
|
|
830
826
|
movedFromDefault: "ToneDial 기본값과 다름",
|
|
831
|
-
recompiled: (chars, cap) => `TONE.md ${chars.toLocaleString("ko")} / ${cap.toLocaleString("ko")}`,
|
|
832
827
|
defaultMarker: "ToneDial 기본값과 다른 축을 표시합니다. 에이전트 원래 말투와 비교하지 않습니다.",
|
|
833
828
|
riskMarker: "! 위험 말투",
|
|
834
829
|
riskHeading: "주의할 레벨:",
|
|
@@ -921,14 +916,14 @@ const koMessages = {
|
|
|
921
916
|
inspectScope: "계속 사용하려면 이 범위를 검사하세요:",
|
|
922
917
|
disconnectScope: "더 이상 필요 없으면 이 범위의 모든 에이전트 연결을 해제하세요:",
|
|
923
918
|
scope: "검사 범위: 프로젝트",
|
|
924
|
-
toLookAt: (count) =>
|
|
919
|
+
toLookAt: (count) => `점검 필요 ${count}건`,
|
|
925
920
|
needsAPerson: "직접 확인 필요 · 위 세부 내용을 확인해 주세요",
|
|
926
921
|
toneMatches: "config.json과 일치",
|
|
927
922
|
toneNotWritten: "파일 없음",
|
|
928
923
|
toneDisagrees: "config.json과 다름 · 직접 수정했거나 저장이 중단됨",
|
|
924
|
+
seedsHeading: "기본 파일",
|
|
929
925
|
seedsOk: (version) => `버전 ${version}`,
|
|
930
926
|
seedsNotRun: "기본 파일 없음 · init으로 준비하세요",
|
|
931
|
-
seedsStale: (labels) => `갱신 필요 ${labels.length}개: ${labels.join(", ")}`,
|
|
932
927
|
seedsAttention: "기본 파일 확인 필요",
|
|
933
928
|
recoveryPending: "진행 중이거나 복구가 필요한 작업이 있습니다. 아무것도 바꾸지 않았습니다. tonedial doctor --json으로 ID를 확인하세요. 기록된 롤백은 doctor --fix --rollback ID로, 중단된 유효한 작업을 선택해 앱을 다시 만들 때는 doctor --fix --from-operation ID로 진행하세요. 실행 중이거나 소유자가 불확실한 작업은 유지합니다.",
|
|
934
929
|
contextCurrent: "AGENTS.md와 TONE.md 구성이 최신입니다.",
|
|
@@ -964,13 +959,12 @@ const koMessages = {
|
|
|
964
959
|
rollbackAction: { applied: "복구", "already-reverted": "이미 복구됨", changed: "변경됨 · 보존", unsupported: "지원하지 않음 · 보존" },
|
|
965
960
|
rollbackQuestion: "선택한 작업을 복구할까요?",
|
|
966
961
|
seedReason: {
|
|
967
|
-
missing: "파일 없음
|
|
968
|
-
stale: "
|
|
969
|
-
modified: "직접 수정한 파일 ·
|
|
970
|
-
foreign: "ToneDial
|
|
971
|
-
unreadable: "안전하게 읽을 수
|
|
962
|
+
missing: "기본 파일 없음",
|
|
963
|
+
stale: "기본 파일 업데이트 가능",
|
|
964
|
+
modified: "직접 수정한 파일 · 교체 전 확인 필요",
|
|
965
|
+
foreign: "ToneDial 관리 파일 아님 · 보존됨",
|
|
966
|
+
unreadable: "안전하게 읽을 수 없음 · 경로와 접근 권한 확인 필요",
|
|
972
967
|
},
|
|
973
|
-
seedsBehind: (had, has) => `홈 기본 파일 버전 ${had} · 패키지 버전 ${has}. npm 업데이트만으로는 홈의 기존 파일이 갱신되지 않습니다`,
|
|
974
968
|
skillLinked: "기본 파일 사본에 연결됨",
|
|
975
969
|
skillCopied: "복사됨 · 이 플랫폼은 링크를 쓰지 않음",
|
|
976
970
|
skillForeign: (path) => `${path}: ToneDial이 설치한 스킬이 아니므로 교체하지 않습니다`,
|
|
@@ -987,9 +981,7 @@ const koMessages = {
|
|
|
987
981
|
},
|
|
988
982
|
hookSettingScope: "훅 상태는 검사한 설정 파일만 읽어 표시합니다. 앱의 설정 덮어쓰기와 세션 전달 여부는 확인하지 않습니다.",
|
|
989
983
|
hookGroupHeading: "에이전트 훅",
|
|
990
|
-
hookGroupUnknown: (tools) =>
|
|
991
|
-
hookGroupMissing: "이 검사 범위에는 ToneDial 관리 훅이 등록되어 있지 않습니다.",
|
|
992
|
-
hookGroupAction: "ToneDial을 연결하려면 같은 범위에서 init을 실행하고 이 에이전트들을 선택하세요.",
|
|
984
|
+
hookGroupUnknown: (tools) => `연결 안 됨: ${tools.join(", ")}`,
|
|
993
985
|
hookNotConnected: "검사할 ToneDial 관리 훅이 없습니다. 연결하려면 같은 범위에서 init을 실행하고 이 에이전트를 선택해 주세요.",
|
|
994
986
|
hookNeedsInspection: "위에 나온 훅 설정이나 실행 프로그램 문제를 먼저 확인한 뒤 앱에서 활성화 여부를 확인해 주세요.",
|
|
995
987
|
hookGuidance: {
|
|
@@ -1033,24 +1025,36 @@ const koMessages = {
|
|
|
1033
1025
|
"전역 경로 확인: npm prefix -g\n그 경로의 bin 폴더(macOS/Linux)를 PATH에 추가하세요.",
|
|
1034
1026
|
},
|
|
1035
1027
|
notice: {
|
|
1036
|
-
modelExpectation: "사용하는 모델에 따라 기대한 말투가 나오지 않을 수 있습니다.",
|
|
1037
1028
|
riskIntro: "재미를 위한 도구로 실무 사용은 권장하지 않습니다. 위험한 말투에 거짓·누락·과장이 섞여 판단과 작업 보고가 왜곡될 수 있습니다. !는 주의 표시이며 측정한 확률이 아닙니다.",
|
|
1038
1029
|
riskAxes: (axes) => `! ${axes.join(", ")} · ${[
|
|
1039
1030
|
axes.some(axis => axis === "profanity" || axis === "critique") ? "거친 표현" : null,
|
|
1040
1031
|
axes.some(axis => axis === "flattery" || axis === "conviction" || axis === "bravado") ? "치우친 판단·과장된 보고" : null,
|
|
1041
1032
|
axes.some(axis => axis === "compliance" || axis === "refusal") ? "성급한 실행·거절" : null,
|
|
1042
1033
|
].filter(Boolean).join(" · ")}`,
|
|
1043
|
-
personaUnanchored: "페르소나에는 고정된 행동 규칙이 없으며 축 설정이 우선합니다. 설명은 내용에도 영향을 줄 수 있습니다. " +
|
|
1044
|
-
"역할극은 자격이나 권한을 주지 않습니다.",
|
|
1045
1034
|
roleplay: "playfulness가 높으면 '아뢰옵기 황송하오나', '이 함수, 장부에서 지울까요?' 같은 역할 어휘와 은어를 더 자주, 과장해서 쓰도록 요청합니다. 무례하거나 거칠게 들릴 수 있으며, ToneDial은 이런 표현을 걸러내지 않습니다.",
|
|
1046
1035
|
risk: "재미를 위한 도구이며 실무 사용은 권장하지 않습니다",
|
|
1047
1036
|
},
|
|
1048
1037
|
update: {
|
|
1049
1038
|
running: (version) => `tonedial ${version}`,
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1039
|
+
toUpdate: "패키지 업데이트:",
|
|
1040
|
+
thenRefresh: "앱 파일을 업데이트하려면:",
|
|
1041
|
+
setupNeeded: "ToneDial 초기 설정:",
|
|
1042
|
+
refreshFiles: (count) => `업데이트 가능한 기본 파일 ${count}개`,
|
|
1043
|
+
reviewState: "문제가 있는 앱 파일을 검사하려면:",
|
|
1044
|
+
npmQuestion: " npm으로 업데이트할까요?",
|
|
1045
|
+
npmComplete: (version) => `npm 업데이트 완료 · 설치 버전 ${version}`,
|
|
1046
|
+
npmMissing: "PATH에서 npm을 찾지 못했습니다. 현재 ToneDial을 설치한 Node/npm 환경을 사용해 주세요.",
|
|
1047
|
+
npmScopeUnknown: "npm의 전역 설치 경로를 확인할 수 없습니다. npm prefix -g와 npm root -g를 확인한 뒤 다시 시도해 주세요.",
|
|
1048
|
+
npmScopeMismatch: "현재 ToneDial은 선택한 npm이 관리하는 전역 패키지가 아닙니다. 설치할 때 사용한 Node/npm 환경을 선택해 주세요. 업데이트는 실행하지 않았습니다.",
|
|
1049
|
+
npmFailed: "npm 업데이트에 실패했습니다. npm의 접근 권한과 레지스트리 설정을 확인해 주세요. 표시된 명령을 직접 실행하면 npm의 오류 내용을 볼 수 있습니다.",
|
|
1050
|
+
versionUnknown: "설치된 ToneDial 버전을 확인할 수 없습니다. 패키지 설치 상태를 확인한 뒤 다시 시도해 주세요.",
|
|
1051
|
+
stateIssue: {
|
|
1052
|
+
missing: "저장된 설정이 없습니다.",
|
|
1053
|
+
unsafe: "저장된 설정을 안전하게 읽을 수 없습니다. 링크와 파일 형식을 확인해 주세요.",
|
|
1054
|
+
changed: "검사 중 저장된 설정이 바뀌었습니다. 변경이 끝난 뒤 다시 시도해 주세요.",
|
|
1055
|
+
invalid: "저장된 설정이 올바르지 않습니다.",
|
|
1056
|
+
unreadable: "앱 상태를 읽지 못했습니다. 경로와 접근 권한을 확인해 주세요.",
|
|
1057
|
+
},
|
|
1054
1058
|
fetching: (registry) => `확인 중 · ${registry}`,
|
|
1055
1059
|
found: (version, bytes) => `${version}, ${bytes.toLocaleString("ko")}바이트`,
|
|
1056
1060
|
already: (version) => `설치 버전 ${version} · 이미 설치됨`,
|
|
@@ -1058,11 +1062,10 @@ const koMessages = {
|
|
|
1058
1062
|
question: (version) => ` 대상 버전 ${version} · 이 설치를 바꿀까요?`,
|
|
1059
1063
|
replaced: (version) => `업데이트됨 · ${version}`,
|
|
1060
1064
|
declined: "취소됨 · 기존 설치 유지",
|
|
1061
|
-
onlyCurl: (shape) => `${shape} 설치 · 자체 업데이트 경로 사용`,
|
|
1062
1065
|
noTar: "업데이트에 필요한 tar를 PATH에서 찾지 못했습니다",
|
|
1063
1066
|
notAPackage: "다운로드한 파일이 ToneDial 패키지가 아닙니다",
|
|
1064
1067
|
linkInPackage: "릴리스에 심볼릭 링크가 있지만 배포물에는 필요하지 않습니다",
|
|
1065
|
-
needsApproval: "
|
|
1068
|
+
needsApproval: "업데이트 승인 필요 · 실행하지 않았습니다. 승인하려면 tonedial update --auto를 실행하세요.",
|
|
1066
1069
|
integrityMismatch: "다운로드한 파일의 해시가 레지스트리와 다릅니다",
|
|
1067
1070
|
notOurs: (dir) => `${dir}: ToneDial이 만든 항목이 아니므로 직접 치워 주세요`,
|
|
1068
1071
|
swapFailed: (reason) => `설치를 중단했습니다: ${reason}. 다시 시도하기 전에 복구 안내를 확인하세요.`,
|
|
@@ -1079,8 +1082,9 @@ const koMessages = {
|
|
|
1079
1082
|
init: "초기 설정과 기본 파일 갱신",
|
|
1080
1083
|
set: "축·역할·설정 변경 · 인자 없으면 다이얼",
|
|
1081
1084
|
address: "서로 부르는 말 · 인자 없으면 질문",
|
|
1085
|
+
persona: "에이전트·사용자 역할 · 인자 없으면 질문",
|
|
1082
1086
|
reset: "축을 기본값으로 · 축을 안 주면 전부",
|
|
1083
|
-
show: "현재 설정 · 슬러그를 주면 저장한
|
|
1087
|
+
show: "현재 설정 · 슬러그를 주면 저장한 프로필",
|
|
1084
1088
|
test: "저장된 설정이나 프리셋으로 새 대화 시작",
|
|
1085
1089
|
save: "현재 말투를 프로필로 저장",
|
|
1086
1090
|
create: "프리셋 생성·적용 · 인자 없으면 안내",
|
|
@@ -1125,14 +1129,8 @@ const koMessages = {
|
|
|
1125
1129
|
},
|
|
1126
1130
|
combos: {
|
|
1127
1131
|
contradiction: (rule) => `${rule}: 서로 모순됩니다.`,
|
|
1128
|
-
reads: (rule) => `${rule}:`,
|
|
1129
1132
|
refusalCompliance: "한 축은 거절 선언을 요구하고 다른 축은 군말 없는 실행을 요구합니다. 한쪽을 낮춰 주세요.",
|
|
1130
|
-
formalSelfRef: "의례적인 표현과 친근한 자칭이 대비를 만듭니다.",
|
|
1131
|
-
casualUserRef: "친근한 표현과 깍듯한 호칭이 대비를 만듭니다.",
|
|
1132
|
-
teensFormal: "십대 캐릭터가 의례적인 표현을 쓰면 연극처럼 들릴 수 있습니다.",
|
|
1133
|
-
seniorJuniorSelfRef: "설정한 나이와 자칭이 서로 다른 지위를 나타냅니다.",
|
|
1134
1133
|
nothingBlocked: "막지는 않습니다.",
|
|
1135
|
-
addressUnlikely: "짧거나 감정 없는 답변에서는 호칭이 생략될 수 있습니다. 역할극이 강하면 더 자주 나올 수 있습니다.",
|
|
1136
1134
|
},
|
|
1137
1135
|
errors: {
|
|
1138
1136
|
notACommand: (name, known, nearest) => `${name}: 명령이 아닙니다.${nearest ? ` ${nearest} 말씀이신가요?` : ""} ` +
|
|
@@ -1300,7 +1298,7 @@ const ko = {
|
|
|
1300
1298
|
"persona.gender": "모델이 연상할 성별",
|
|
1301
1299
|
"persona.self_ref": "에이전트의 자칭",
|
|
1302
1300
|
"persona.user_ref": "에이전트가 쓰는 사용자 호칭",
|
|
1303
|
-
"persona.note": "축으로 표현할 수 없는
|
|
1301
|
+
"persona.note": "축으로 표현할 수 없는 역할이나 말투",
|
|
1304
1302
|
"persona.user": "사용자 배경 설명 · 최대 200자",
|
|
1305
1303
|
"persona.agent": "가상 에이전트 역할 · 최대 200자 · 경력은 확인하지 않으며 능력·권한을 부여하지 않음",
|
|
1306
1304
|
},
|