vc-extras 0.1.0 → 0.1.1
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/README.md +128 -71
- package/agent-install.mjs +159 -0
- package/agents/tester.md +23 -23
- package/install-extras.mjs +41 -109
- package/install-menu.mjs +22 -43
- package/install-skills.mjs +112 -112
- package/package.json +72 -28
- package/plugin-registry.mjs +73 -0
- package/plugins/config-ui/index.ts +159 -159
- package/plugins/config-ui/lib/arguments.mjs +24 -24
- package/plugins/config-ui/lib/documents.mjs +67 -67
- package/plugins/config-ui/lib/frontmatter.mjs +91 -91
- package/plugins/config-ui/lib/open.mjs +16 -16
- package/plugins/config-ui/lib/ownership.mjs +99 -99
- package/plugins/config-ui/lib/page.mjs +11 -11
- package/plugins/config-ui/lib/patch.mjs +35 -35
- package/plugins/config-ui/lib/paths.mjs +14 -14
- package/plugins/config-ui/lib/plugin-fields.mjs +86 -86
- package/plugins/config-ui/lib/plugin-validation.mjs +28 -28
- package/plugins/config-ui/lib/redaction.mjs +8 -8
- package/plugins/config-ui/lib/registry.mjs +282 -282
- package/plugins/config-ui/lib/secrets.mjs +44 -44
- package/plugins/config-ui/lib/server.mjs +250 -250
- package/plugins/config-ui/lib/sources.mjs +96 -96
- package/plugins/config-ui/lib/state.mjs +156 -156
- package/plugins/config-ui/lib/themes.mjs +113 -113
- package/plugins/config-ui/lib/writer.mjs +690 -690
- package/plugins/config-ui/project-local-owner.ts +106 -106
- package/plugins/config-ui/vc-extras.plugin.json +13 -0
- package/plugins/config-ui/web/app.mjs +997 -997
- package/plugins/config-ui/web/index.html +342 -342
- package/plugins/pi-blackhole/vc-extras.plugin.json +12 -0
- package/plugins/pi-btw/vc-extras.plugin.json +12 -0
- package/plugins/pi-claude-code/vc-extras.plugin.json +12 -0
- package/plugins/pi-fff/vc-extras.plugin.json +12 -0
- package/plugins/pi-jev-auto-mode/vc-extras.plugin.json +12 -0
- package/plugins/pi-mcp-adapter/vc-extras.plugin.json +12 -0
- package/plugins/pi-web-access/vc-extras.plugin.json +12 -0
- package/plugins/vc-ask/claude-hook.mjs +37 -0
- package/plugins/vc-ask/codex-native.mjs +28 -0
- package/plugins/vc-ask/host-channel.mjs +75 -0
- package/plugins/vc-ask/index.ts +57 -0
- package/plugins/vc-ask/native-questions.mjs +33 -0
- package/plugins/vc-ask/package.json +10 -0
- package/plugins/vc-ask/payload.ts +170 -0
- package/plugins/vc-ask/questionnaire/LICENSE.ask-user-question +21 -0
- package/plugins/vc-ask/questionnaire/UPSTREAM.md +104 -0
- package/plugins/vc-ask/questionnaire/answer-channel.ts +135 -0
- package/plugins/vc-ask/questionnaire/config.ts +180 -0
- package/plugins/vc-ask/questionnaire/events.ts +154 -0
- package/plugins/vc-ask/questionnaire/execute.ts +688 -0
- package/plugins/vc-ask/questionnaire/i18n.ts +73 -0
- package/plugins/vc-ask/questionnaire/inline-entry.ts +312 -0
- package/plugins/vc-ask/questionnaire/locales/de.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/en.json +42 -0
- package/plugins/vc-ask/questionnaire/locales/es.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/fr.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/pt-BR.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/pt.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/ru.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/uk.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/zh.json +46 -0
- package/plugins/vc-ask/questionnaire/presentation.ts +11 -0
- package/plugins/vc-ask/questionnaire/question-preview.ts +6 -0
- package/plugins/vc-ask/questionnaire/rpc.ts +221 -0
- package/plugins/vc-ask/questionnaire/session-timeout.ts +67 -0
- package/plugins/vc-ask/questionnaire/state/build-questionnaire.ts +144 -0
- package/plugins/vc-ask/questionnaire/state/external-editor.ts +62 -0
- package/plugins/vc-ask/questionnaire/state/geometry.ts +131 -0
- package/plugins/vc-ask/questionnaire/state/key-router.ts +382 -0
- package/plugins/vc-ask/questionnaire/state/panel-router.ts +32 -0
- package/plugins/vc-ask/questionnaire/state/questionnaire-session.ts +642 -0
- package/plugins/vc-ask/questionnaire/state/row-intent.ts +143 -0
- package/plugins/vc-ask/questionnaire/state/selectors/contract.ts +24 -0
- package/plugins/vc-ask/questionnaire/state/selectors/derivations.ts +40 -0
- package/plugins/vc-ask/questionnaire/state/selectors/focus.ts +17 -0
- package/plugins/vc-ask/questionnaire/state/selectors/projections.ts +99 -0
- package/plugins/vc-ask/questionnaire/state/state-reducer.ts +455 -0
- package/plugins/vc-ask/questionnaire/state/state.ts +90 -0
- package/plugins/vc-ask/questionnaire/state/vertical.ts +158 -0
- package/plugins/vc-ask/questionnaire/timeout.ts +59 -0
- package/plugins/vc-ask/questionnaire/tool/external-answer.ts +103 -0
- package/plugins/vc-ask/questionnaire/tool/format-answer.ts +24 -0
- package/plugins/vc-ask/questionnaire/tool/normalize-params.ts +37 -0
- package/plugins/vc-ask/questionnaire/tool/response-envelope.ts +75 -0
- package/plugins/vc-ask/questionnaire/tool/types.ts +74 -0
- package/plugins/vc-ask/questionnaire/tool/validate-questionnaire.ts +75 -0
- package/plugins/vc-ask/questionnaire/view/card-theme.ts +245 -0
- package/plugins/vc-ask/questionnaire/view/components/inline-input.ts +66 -0
- package/plugins/vc-ask/questionnaire/view/components/multi-select-view.ts +177 -0
- package/plugins/vc-ask/questionnaire/view/components/option-list-view.ts +65 -0
- package/plugins/vc-ask/questionnaire/view/components/preview/markdown-content-cache.ts +101 -0
- package/plugins/vc-ask/questionnaire/view/components/preview/preview-block-renderer.ts +130 -0
- package/plugins/vc-ask/questionnaire/view/components/preview/preview-box-renderer.ts +86 -0
- package/plugins/vc-ask/questionnaire/view/components/preview/preview-layout-decider.ts +204 -0
- package/plugins/vc-ask/questionnaire/view/components/preview/preview-pane.ts +257 -0
- package/plugins/vc-ask/questionnaire/view/components/submit-picker.ts +65 -0
- package/plugins/vc-ask/questionnaire/view/components/tab-bar.ts +57 -0
- package/plugins/vc-ask/questionnaire/view/components/wrapping-select.ts +269 -0
- package/plugins/vc-ask/questionnaire/view/dialog-builder.ts +319 -0
- package/plugins/vc-ask/questionnaire/view/document-theme.ts +53 -0
- package/plugins/vc-ask/questionnaire/view/document-view.ts +306 -0
- package/plugins/vc-ask/questionnaire/view/panel-chrome.ts +133 -0
- package/plugins/vc-ask/questionnaire/view/props-adapter.ts +77 -0
- package/plugins/vc-ask/questionnaire/view/stateful-view.ts +24 -0
- package/plugins/vc-ask/questionnaire/view/tab-components.ts +16 -0
- package/plugins/vc-ask/questionnaire/view/tab-content-strategy.ts +280 -0
- package/plugins/vc-ask/questionnaire/view/vertical-view.ts +218 -0
- package/plugins/vc-ask/user-input-events.ts +34 -0
- package/plugins/vc-ask/vc-extras.plugin.json +18 -0
- package/plugins/vc-footer/agents/claude-code/adapter.mjs +29 -0
- package/plugins/vc-footer/agents/claude-code/cli.mjs +23 -0
- package/plugins/vc-footer/agents/claude-code/renderer.mjs +1 -0
- package/plugins/vc-footer/agents/claude-code/types.d.ts +38 -0
- package/plugins/vc-footer/agents/codex/adapter.mjs +13 -0
- package/plugins/vc-footer/agents/codex/mcp.mjs +45 -0
- package/plugins/vc-footer/agents/codex/native.mjs +19 -0
- package/plugins/vc-footer/agents/codex/renderer.mjs +2 -0
- package/plugins/vc-footer/agents/pi/adapter.mjs +23 -0
- package/plugins/vc-footer/agents/pi/index.js +84 -0
- package/plugins/vc-footer/agents/pi/project-local-owner.mjs +97 -0
- package/plugins/vc-footer/agents/pi/renderer.mjs +5 -0
- package/plugins/vc-footer/core/data.mjs +218 -0
- package/plugins/vc-footer/core/render.mjs +291 -0
- package/plugins/vc-footer/core/types.d.ts +29 -0
- package/plugins/vc-footer/package.json +22 -0
- package/plugins/vc-footer/vc-extras.plugin.json +32 -0
- package/skills/animate/LICENSE +21 -21
- package/skills/animate/RECIPES.md +324 -324
- package/skills/animate/SKILL.md +208 -208
- package/skills/animate/UPSTREAM.md +19 -19
- package/skills/animation-performance/LICENSE +21 -21
- package/skills/animation-performance/SKILL.md +223 -223
- package/skills/animation-performance/UPSTREAM.md +19 -19
- package/skills/answer-me-with-html/SKILL.md +174 -174
- package/skills/answer-me-with-html/scripts/am.mjs +12896 -12896
- package/skills/apple-design/LICENSE +21 -21
- package/skills/apple-design/SKILL.md +291 -291
- package/skills/apple-design/UPSTREAM.md +19 -19
- package/skills/bad-smell/SKILL.md +44 -44
- package/skills/commit/SKILL.md +90 -90
- package/skills/emil-design-eng/LICENSE +21 -21
- package/skills/emil-design-eng/SKILL.md +677 -677
- package/skills/emil-design-eng/UPSTREAM.md +19 -19
- package/skills/find-the-truth/SKILL.md +38 -38
- package/skills/find-the-truth/references/trace-method.md +48 -48
- package/skills/find-the-truth/references/truth-method.md +39 -39
- package/skills/gestures/LICENSE +21 -21
- package/skills/gestures/SKILL.md +107 -107
- package/skills/gestures/UPSTREAM.md +19 -19
- package/skills/humanizer-zh/LICENSE +21 -21
- package/skills/humanizer-zh/SKILL.md +409 -409
- package/skills/humanizer-zh/UPSTREAM.md +7 -7
- package/skills/impeccable/LICENSE +191 -191
- package/skills/impeccable/NOTICE.md +11 -11
- package/skills/impeccable/SKILL.md +89 -89
- package/skills/impeccable/licenses/modern-screenshot-MIT.txt +8 -8
- package/skills/impeccable/licenses/platform-design-skills-MIT.txt +21 -21
- package/skills/impeccable/reference/adapt.md +318 -318
- package/skills/impeccable/reference/adapt.native.md +58 -58
- package/skills/impeccable/reference/android.md +46 -46
- package/skills/impeccable/reference/animate.md +89 -89
- package/skills/impeccable/reference/audit.md +139 -139
- package/skills/impeccable/reference/audit.native.md +139 -139
- package/skills/impeccable/reference/bolder.md +33 -33
- package/skills/impeccable/reference/clarify.md +94 -94
- package/skills/impeccable/reference/colorize.md +86 -86
- package/skills/impeccable/reference/component-review.md +63 -63
- package/skills/impeccable/reference/craft-floor.md +44 -44
- package/skills/impeccable/reference/craft.md +5 -5
- package/skills/impeccable/reference/critique.md +819 -819
- package/skills/impeccable/reference/degraded/asset-producer.md +41 -41
- package/skills/impeccable/reference/degraded/documenter.md +23 -23
- package/skills/impeccable/reference/degraded/finish-reviewer.md +37 -37
- package/skills/impeccable/reference/degraded/manual-edit-applier.md +92 -92
- package/skills/impeccable/reference/delight.md +70 -70
- package/skills/impeccable/reference/distill.md +111 -111
- package/skills/impeccable/reference/doctor.md +54 -54
- package/skills/impeccable/reference/document.md +416 -416
- package/skills/impeccable/reference/extract.md +69 -69
- package/skills/impeccable/reference/generate.md +101 -101
- package/skills/impeccable/reference/harden.md +362 -362
- package/skills/impeccable/reference/hooks.md +114 -114
- package/skills/impeccable/reference/init.md +131 -131
- package/skills/impeccable/reference/ios.md +51 -51
- package/skills/impeccable/reference/layout.md +84 -84
- package/skills/impeccable/reference/live-setup.md +104 -104
- package/skills/impeccable/reference/live.md +327 -327
- package/skills/impeccable/reference/mode-operate.md +21 -21
- package/skills/impeccable/reference/mode-persuade.md +19 -19
- package/skills/impeccable/reference/mode-read.md +21 -21
- package/skills/impeccable/reference/new-work.md +152 -152
- package/skills/impeccable/reference/onboard.md +234 -234
- package/skills/impeccable/reference/operate.md +61 -61
- package/skills/impeccable/reference/optimize.md +257 -257
- package/skills/impeccable/reference/overdrive.md +127 -127
- package/skills/impeccable/reference/polish.md +105 -105
- package/skills/impeccable/reference/quieter.md +99 -99
- package/skills/impeccable/reference/region-map.md +26 -26
- package/skills/impeccable/reference/routing.md +24 -24
- package/skills/impeccable/reference/shape.md +59 -59
- package/skills/impeccable/reference/typeset.md +90 -90
- package/skills/impeccable/reference/visualize.md +47 -47
- package/skills/impeccable/scripts/VERSION +1 -1
- package/skills/impeccable/scripts/command-metadata.json +98 -98
- package/skills/impeccable/scripts/data/font-index-failures.json +120 -120
- package/skills/impeccable/scripts/engine-checksums.txt +9 -9
- package/skills/impeccable/scripts/impeccable +249 -249
- package/skills/impeccable/scripts/impeccable.cmd +278 -278
- package/skills/impeccable/scripts/live-browser-dom.js +320 -320
- package/skills/impeccable/scripts/live-browser-ignores.js +246 -246
- package/skills/impeccable/scripts/live-browser-session.js +183 -183
- package/skills/impeccable/scripts/live-browser.js +13862 -13862
- package/skills/impeccable/scripts/modern-screenshot.umd.js +14 -14
- package/skills/improve-animations/AUDIT.md +115 -115
- package/skills/improve-animations/LICENSE +21 -21
- package/skills/improve-animations/PLAN-TEMPLATE.md +73 -73
- package/skills/improve-animations/SKILL.md +110 -110
- package/skills/improve-animations/UPSTREAM.md +19 -19
- package/skills/pick-ui-library/LICENSE +21 -21
- package/skills/pick-ui-library/SKILL.md +85 -85
- package/skills/pick-ui-library/UPSTREAM.md +19 -19
- package/skills/review-animations/LICENSE +21 -21
- package/skills/review-animations/SKILL.md +120 -120
- package/skills/review-animations/STANDARDS.md +187 -187
- package/skills/review-animations/UPSTREAM.md +19 -19
- package/skills/test/SKILL.md +29 -29
- package/skills/test/references/test-method.md +60 -60
- package/skills/write-doc/SKILL.md +115 -115
- package/skills/write-doc/examples/result-report.md +53 -53
- package/skills/write-doc/examples/task-summary.md +45 -45
- package/skills/write-doc/references/terminology.md +147 -147
- package/specs/ask-host-protocol-v1.md +58 -0
- package/specs/design-demo.md +1102 -1102
- package/specs/frontend-immersive.md +28 -28
- package/specs/plugin-install-v2.md +123 -0
- package/specs/plugin-install.md +38 -0
- package/specs/web-modes/explore.md +31 -31
- package/specs/web-modes/risk.md +15 -15
- package/specs/web-modes/verify.md +16 -16
- package/vc-extras.mjs +46 -62
- package/plugins/essrj/context.ts +0 -47
- package/plugins/essrj/data.ts +0 -190
- package/plugins/essrj/index.ts +0 -139
- package/plugins/essrj/package.json +0 -12
- package/plugins/essrj/project-local-owner.ts +0 -106
- package/plugins/essrj/render.ts +0 -217
- package/plugins/essrj/types.ts +0 -40
- package/plugins.json +0 -38
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import * as fs from "node:fs";
|
|
2
|
+
import * as path from "node:path";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
4
|
+
import { loadQuestionnaireConfig, LOCALES } from "./config.js";
|
|
5
|
+
export { LOCALES } from "./config.js";
|
|
6
|
+
import { ROW_INTENT_META, type SentinelKind } from "./state/row-intent.js";
|
|
7
|
+
|
|
8
|
+
export type LocaleCode = (typeof LOCALES)[number];
|
|
9
|
+
export type LocaleOption = { code: LocaleCode; label: string };
|
|
10
|
+
|
|
11
|
+
const LOCALE_LABELS: Record<LocaleCode, string> = {
|
|
12
|
+
de: "Deutsch",
|
|
13
|
+
en: "English",
|
|
14
|
+
es: "Español",
|
|
15
|
+
fr: "Français",
|
|
16
|
+
pt: "Português",
|
|
17
|
+
"pt-BR": "Português (Brasil)",
|
|
18
|
+
ru: "Русский",
|
|
19
|
+
uk: "Українська",
|
|
20
|
+
zh: "中文",
|
|
21
|
+
};
|
|
22
|
+
const localeDir = path.join(path.dirname(fileURLToPath(import.meta.url)), "locales");
|
|
23
|
+
const dictionaries = new Map<LocaleCode, Record<string, string>>();
|
|
24
|
+
|
|
25
|
+
for (const code of LOCALES) {
|
|
26
|
+
const raw = JSON.parse(fs.readFileSync(path.join(localeDir, `${code}.json`), "utf8")) as Record<string, unknown>;
|
|
27
|
+
dictionaries.set(
|
|
28
|
+
code,
|
|
29
|
+
Object.fromEntries(Object.entries(raw).filter((entry): entry is [string, string] => typeof entry[1] === "string")),
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
let activeLocale: LocaleCode = "en";
|
|
34
|
+
|
|
35
|
+
export function normalizeLocale(value: unknown): LocaleCode | undefined {
|
|
36
|
+
if (typeof value !== "string") return undefined;
|
|
37
|
+
const raw = value.trim().replace(/\..*$/, "").replace(/_/g, "-");
|
|
38
|
+
if (!raw) return undefined;
|
|
39
|
+
const exact = LOCALES.find((code) => code.toLowerCase() === raw.toLowerCase());
|
|
40
|
+
if (exact) return exact;
|
|
41
|
+
const language = raw.split("-")[0]?.toLowerCase();
|
|
42
|
+
return LOCALES.find((code) => code.toLowerCase() === language);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function initializeLocale(explicit?: unknown, env: NodeJS.ProcessEnv = process.env): LocaleCode {
|
|
46
|
+
const config = loadQuestionnaireConfig(env);
|
|
47
|
+
activeLocale = normalizeLocale(explicit)
|
|
48
|
+
?? normalizeLocale(config.locale)
|
|
49
|
+
?? normalizeLocale(env.LC_ALL)
|
|
50
|
+
?? normalizeLocale(env.LANG)
|
|
51
|
+
?? "en";
|
|
52
|
+
return activeLocale;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function setLocale(value: unknown): LocaleCode | undefined {
|
|
56
|
+
const locale = normalizeLocale(value);
|
|
57
|
+
if (locale) activeLocale = locale;
|
|
58
|
+
return locale;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function localeOptions(): LocaleOption[] {
|
|
62
|
+
return LOCALES.map((code) => ({ code, label: LOCALE_LABELS[code] }));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function t(key: string, fallback: string): string {
|
|
66
|
+
return dictionaries.get(activeLocale)?.[key]
|
|
67
|
+
?? dictionaries.get("en")?.[key]
|
|
68
|
+
?? fallback;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function displayLabel(kind: SentinelKind): string {
|
|
72
|
+
return t(`sentinel.${kind}`, ROW_INTENT_META[kind].label);
|
|
73
|
+
}
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Inline (in-transcript) ask card.
|
|
3
|
+
*
|
|
4
|
+
* The ask card used to render as a pi overlay anchored to the terminal viewport
|
|
5
|
+
* (`anchor: "bottom-center"`, `maxHeight: "100%"`). pi-tui overlays are composited
|
|
6
|
+
* on top of the transcript lines (`TuiBase.compositeOverlays`), so a bottom-anchored
|
|
7
|
+
* overlay always pins itself over the transcript and hides the agent output above it.
|
|
8
|
+
* The overlay anchor list is only the nine viewport positions — there is no "anchor to
|
|
9
|
+
* the end of the content", so no overlay option can fix the pinning.
|
|
10
|
+
*
|
|
11
|
+
* This module renders the card as a pi custom *session entry* instead:
|
|
12
|
+
*
|
|
13
|
+
* - `registerAskEntryRenderer()` registers an `EntryRenderer` once at extension start.
|
|
14
|
+
* - `createAskEntry()` calls `pi.appendEntry(...)`, which emits `entry_appended`;
|
|
15
|
+
* pi's interactive mode then adds a `CustomEntryComponent` to the chat container —
|
|
16
|
+
* the transcript flow itself — so the card follows the agent output, scrolls with
|
|
17
|
+
* it, sizes to its own content, and never covers anything above it.
|
|
18
|
+
*
|
|
19
|
+
* The renderer reuses the existing `QuestionnaireSession.component` for the interactive
|
|
20
|
+
* state, so the card's visuals are unchanged. Entry data carries the phase:
|
|
21
|
+
*
|
|
22
|
+
* - `active` — the user is answering; keyboard input reaches the session through
|
|
23
|
+
* the global `onTerminalInput` listener in `execute.ts`.
|
|
24
|
+
* - `superseded` — the runtime-only active entry is hidden after a separate terminal
|
|
25
|
+
* entry has been appended (pi persists append-time JSON snapshots).
|
|
26
|
+
* - `answered` — finished; rendered as a read-only summary and kept in the transcript.
|
|
27
|
+
* - `cancelled` — the run was aborted; rendered as a one-line notice.
|
|
28
|
+
*
|
|
29
|
+
* The live component wrapper reads the active entry object directly, while appending a
|
|
30
|
+
* terminal entry provides durable reload state without relying on an entry-update API.
|
|
31
|
+
*/
|
|
32
|
+
import type { EntryRenderer, Theme } from "@earendil-works/pi-coding-agent";
|
|
33
|
+
import { Text, truncateToWidth, wrapTextWithAnsi, type Component } from "@earendil-works/pi-tui";
|
|
34
|
+
|
|
35
|
+
import { CARD_PALETTES, wrapCardTheme, type CardAccent } from "./view/card-theme.js";
|
|
36
|
+
import { NO_INPUT_PLACEHOLDER, formatAnswerScalar } from "./tool/format-answer.js";
|
|
37
|
+
import type {
|
|
38
|
+
QuestionAnswer,
|
|
39
|
+
QuestionData,
|
|
40
|
+
} from "./tool/types.js";
|
|
41
|
+
import { t } from "./i18n.js";
|
|
42
|
+
|
|
43
|
+
/** Custom-entry type pi keys the renderer on. Stable across sessions. */
|
|
44
|
+
export const EMMA_ASK_ENTRY_TYPE = "emma.ask";
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Bridge between the live `QuestionnaireSession` (created in `execute.ts`, which has
|
|
48
|
+
* `tui`/`keybindings`/`done`) and the entry renderer (which only sees entry data).
|
|
49
|
+
* The renderer looks the active component up by the entry identity `execute.ts`
|
|
50
|
+
* registers here; the interactive component is created lazily on first render and
|
|
51
|
+
* reused for the entry's lifetime.
|
|
52
|
+
*/
|
|
53
|
+
export interface ActiveAskBridge {
|
|
54
|
+
/** Cache and return the interactive component for the active entry. */
|
|
55
|
+
install(component: Component): void;
|
|
56
|
+
/** The cached component, if any. */
|
|
57
|
+
get(): Component | undefined;
|
|
58
|
+
/** Drop the cached component when the entry leaves the active phase. */
|
|
59
|
+
release(): void;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
class SingletonActiveAskBridge implements ActiveAskBridge {
|
|
63
|
+
private component: Component | undefined;
|
|
64
|
+
|
|
65
|
+
install(component: Component): void {
|
|
66
|
+
this.component = component;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
get(): Component | undefined {
|
|
70
|
+
return this.component;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
release(): void {
|
|
74
|
+
this.component = undefined;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/** Create a fresh bridge for one ask card's lifetime. */
|
|
79
|
+
export function createActiveAskBridge(): ActiveAskBridge {
|
|
80
|
+
return new SingletonActiveAskBridge();
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export interface AskEntryActive {
|
|
84
|
+
kind: "active";
|
|
85
|
+
/** The questions being asked, for the active card and terminal summary. */
|
|
86
|
+
questions: readonly QuestionData[];
|
|
87
|
+
/** Whether the card is collapsed to a single line. */
|
|
88
|
+
collapsed: boolean;
|
|
89
|
+
/** Runtime-only bridge; `createAskEntry` defines it as non-enumerable so it is not persisted. */
|
|
90
|
+
bridge?: ActiveAskBridge;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export interface AskEntryAnswered {
|
|
94
|
+
kind: "answered";
|
|
95
|
+
automatic?: boolean;
|
|
96
|
+
questions: readonly QuestionData[];
|
|
97
|
+
answers: readonly QuestionAnswer[];
|
|
98
|
+
notesAreFeedback?: boolean;
|
|
99
|
+
discussion?: boolean;
|
|
100
|
+
askPalette?: "blue" | "purple" | "orange";
|
|
101
|
+
unanswered?: readonly number[];
|
|
102
|
+
globalNote?: string;
|
|
103
|
+
palette: CardAccent;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export interface AskEntryCancelled {
|
|
107
|
+
kind: "cancelled";
|
|
108
|
+
timedOut?: boolean;
|
|
109
|
+
questions: readonly QuestionData[];
|
|
110
|
+
palette: CardAccent;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/** Active entry retained only for the current process after its final snapshot is appended. */
|
|
114
|
+
export interface AskEntrySuperseded {
|
|
115
|
+
kind: "superseded";
|
|
116
|
+
questions: readonly QuestionData[];
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export type AskEntryData = AskEntryActive | AskEntryAnswered | AskEntryCancelled | AskEntrySuperseded;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Bare pi-tui component for a static (non-interactive) entry phase. The interactive
|
|
123
|
+
* phase returns the live `QuestionnaireSession.component` instead — see
|
|
124
|
+
* {@link createAskEntryRenderer}.
|
|
125
|
+
*/
|
|
126
|
+
class StaticEntryComponent implements Component {
|
|
127
|
+
private readonly lines: string[];
|
|
128
|
+
|
|
129
|
+
constructor(lines: string[]) {
|
|
130
|
+
this.lines = lines;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
render(width: number): string[] {
|
|
134
|
+
return fitSummaryLines(this.lines, width);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
invalidate(): void {
|
|
138
|
+
// Static content has no derived state to rebuild.
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
handleInput(_data: string): void {
|
|
142
|
+
// Static entries never receive focus; input is handled globally while active.
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
class LiveAskEntryComponent implements Component {
|
|
147
|
+
constructor(
|
|
148
|
+
private readonly data: AskEntryData,
|
|
149
|
+
private readonly component: Component,
|
|
150
|
+
) {}
|
|
151
|
+
|
|
152
|
+
render(width: number): string[] {
|
|
153
|
+
return this.data.kind === "active" ? this.component.render(width) : [];
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
invalidate(): void {
|
|
157
|
+
this.component.invalidate();
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
handleInput(data: string): void {
|
|
161
|
+
this.component.handleInput?.(data);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
function fitSummaryLines(lines: readonly string[], width: number): string[] {
|
|
166
|
+
if (width <= 0) return [];
|
|
167
|
+
return lines.flatMap(line => wrapTextWithAnsi(line, width)).map(line => truncateToWidth(line, width, ""));
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
function answerLine(question: QuestionData, answer: QuestionAnswer, theme: Theme): string {
|
|
171
|
+
const value = formatAnswerScalar(answer);
|
|
172
|
+
return `${theme.fg("muted", " ")}${question.question} ${theme.fg("accent", value)}`;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
function cancelledLines(questions: readonly QuestionData[], theme: Theme): string[] {
|
|
176
|
+
const first = questions[0];
|
|
177
|
+
const label = first?.question ?? t("entry.question_cancelled", "Question cancelled");
|
|
178
|
+
return [`${theme.fg("dim", ` ${label} — ${t("entry.cancelled", "cancelled")}`)}`];
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
function answeredLines(
|
|
182
|
+
questions: readonly QuestionData[],
|
|
183
|
+
answers: readonly QuestionAnswer[],
|
|
184
|
+
theme: Theme,
|
|
185
|
+
width: number,
|
|
186
|
+
notesAreFeedback = false,
|
|
187
|
+
discussion = false,
|
|
188
|
+
globalNote?: string,
|
|
189
|
+
automatic = false,
|
|
190
|
+
): string[] {
|
|
191
|
+
const lines: string[] = [theme.fg("dim", ` ${automatic ? "Autopilot · not user-approved" : t("entry.answered", "answered")}`)];
|
|
192
|
+
let hasAnswer = false;
|
|
193
|
+
for (const answer of answers) {
|
|
194
|
+
const question = questions[answer.questionIndex];
|
|
195
|
+
if (!question) continue;
|
|
196
|
+
lines.push(notesAreFeedback && answer.kind === "option" && answer.notes?.trim()
|
|
197
|
+
? theme.fg("muted", ` ${t("entry.feedback_no_action", "Feedback — no action requested; repair not authorized")}`)
|
|
198
|
+
: answerLine(question, answer, theme));
|
|
199
|
+
if (answer.notes?.trim()) {
|
|
200
|
+
lines.push(...new Text(theme.fg("muted", `${t("notes.header", "Notes:")} ${answer.notes}`), 2, 0).render(width));
|
|
201
|
+
}
|
|
202
|
+
hasAnswer = true;
|
|
203
|
+
}
|
|
204
|
+
if (discussion) for (let i = 0; i < questions.length; i++) {
|
|
205
|
+
if (!answers.some(answer => answer.questionIndex === i)) lines.push(theme.fg("muted", ` ${questions[i]!.question} → 未选择,后续讨论`));
|
|
206
|
+
}
|
|
207
|
+
if (globalNote) lines.push(theme.fg("muted", ` ${t("notes.header", "Notes:")} ${globalNote}`));
|
|
208
|
+
if (!hasAnswer && !discussion) {
|
|
209
|
+
lines.push(`${theme.fg("dim", ` ${NO_INPUT_PLACEHOLDER}`)}`);
|
|
210
|
+
}
|
|
211
|
+
return lines;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Create the `EntryRenderer` for {@link EMMA_ASK_ENTRY_TYPE}.
|
|
216
|
+
*
|
|
217
|
+
* The interactive phase returns a live wrapper around `QuestionnaireSession.component`;
|
|
218
|
+
* terminal phases render from serializable entry data alone. A stale active snapshot from
|
|
219
|
+
* a previous process has no bridge and is intentionally omitted from the transcript.
|
|
220
|
+
*/
|
|
221
|
+
export function createAskEntryRenderer(): EntryRenderer<AskEntryData> {
|
|
222
|
+
return (entry, _options, theme) => {
|
|
223
|
+
const data = entry.data;
|
|
224
|
+
if (!data) return undefined;
|
|
225
|
+
switch (data.kind) {
|
|
226
|
+
case "active": {
|
|
227
|
+
const bridge = data.bridge;
|
|
228
|
+
if (!bridge || typeof bridge.get !== "function") return undefined;
|
|
229
|
+
const component = bridge.get();
|
|
230
|
+
if (!component) return undefined;
|
|
231
|
+
return new LiveAskEntryComponent(data, component);
|
|
232
|
+
}
|
|
233
|
+
case "answered": {
|
|
234
|
+
const cardTheme = data.palette === "off" ? theme : wrapCardTheme(theme, CARD_PALETTES[data.palette]);
|
|
235
|
+
return {
|
|
236
|
+
render: (width: number) => fitSummaryLines(answeredLines(data.questions, data.answers, cardTheme, width, data.notesAreFeedback, data.discussion, data.globalNote, data.automatic), width),
|
|
237
|
+
invalidate() {},
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
case "cancelled": {
|
|
241
|
+
const cardTheme = data.palette === "off" ? theme : wrapCardTheme(theme, CARD_PALETTES[data.palette]);
|
|
242
|
+
return new StaticEntryComponent(data.timedOut ? [cardTheme.fg("dim", " Timed out · no user answer")] : cancelledLines(data.questions, cardTheme));
|
|
243
|
+
}
|
|
244
|
+
case "superseded":
|
|
245
|
+
return undefined;
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/** Register the entry renderer once per extension start. Idempotent-safe by design. */
|
|
251
|
+
export function registerAskEntryRenderer(
|
|
252
|
+
pi: { registerEntryRenderer?: <T>(type: string, renderer: EntryRenderer<T>) => void },
|
|
253
|
+
): void {
|
|
254
|
+
pi.registerEntryRenderer?.(EMMA_ASK_ENTRY_TYPE, createAskEntryRenderer());
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Handle returned by {@link createAskEntry}. `update` mutates the in-memory entry object
|
|
259
|
+
* and invalidates its live component; `release` clears the active bridge. The bridge is
|
|
260
|
+
* excluded from append-time JSON serialization.
|
|
261
|
+
*/
|
|
262
|
+
export interface AskEntryHandle {
|
|
263
|
+
/** Current phase data. Callers mutate via {@link update}. */
|
|
264
|
+
data: AskEntryData;
|
|
265
|
+
/** Replace the phase and re-render. */
|
|
266
|
+
update(next: AskEntryData): void;
|
|
267
|
+
/** Clear the active bridge and any cached interactive component. */
|
|
268
|
+
release(): void;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Append a fresh active ask entry to the session transcript.
|
|
273
|
+
*
|
|
274
|
+
* pi's `appendEntry` returns `void`, persists an append-time JSON snapshot, and offers no
|
|
275
|
+
* update event. The returned handle keeps the in-memory data reference for live rendering;
|
|
276
|
+
* a separate terminal entry must be appended to make the final answer durable.
|
|
277
|
+
*/
|
|
278
|
+
export function createAskEntry(
|
|
279
|
+
pi: { appendEntry?: (type: string, data?: AskEntryActive) => void },
|
|
280
|
+
questions: readonly QuestionData[],
|
|
281
|
+
onInvalidate: (() => void) | undefined,
|
|
282
|
+
bridge?: ActiveAskBridge,
|
|
283
|
+
): AskEntryHandle {
|
|
284
|
+
const data: AskEntryActive = {
|
|
285
|
+
kind: "active",
|
|
286
|
+
questions,
|
|
287
|
+
collapsed: false,
|
|
288
|
+
};
|
|
289
|
+
// Keep the live component bridge available to the renderer without putting runtime
|
|
290
|
+
// objects in pi's append-time JSON snapshot. The host stores the same data reference.
|
|
291
|
+
if (bridge) {
|
|
292
|
+
Object.defineProperty(data, "bridge", {
|
|
293
|
+
configurable: true,
|
|
294
|
+
value: bridge,
|
|
295
|
+
writable: true,
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
pi.appendEntry?.(EMMA_ASK_ENTRY_TYPE, data);
|
|
299
|
+
return {
|
|
300
|
+
data,
|
|
301
|
+
update(next: AskEntryData): void {
|
|
302
|
+
// Mutate in place: the entry pi stores is this same reference. The live bridge
|
|
303
|
+
// is non-enumerable and is explicitly removed from terminal data.
|
|
304
|
+
Object.assign(data, next);
|
|
305
|
+
if (next.kind !== "active") delete data.bridge;
|
|
306
|
+
onInvalidate?.();
|
|
307
|
+
},
|
|
308
|
+
release(): void {
|
|
309
|
+
bridge?.release();
|
|
310
|
+
},
|
|
311
|
+
};
|
|
312
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"sentinel.other": "Schreibe etwas.",
|
|
3
|
+
"sentinel.next": "Weiter",
|
|
4
|
+
"submit.label": "Antworten senden",
|
|
5
|
+
"submit.cancel": "Abbrechen",
|
|
6
|
+
"hint.enter": "↵ auswählen",
|
|
7
|
+
"hint.navigate": "↑↓ navigieren",
|
|
8
|
+
"hint.newline": "⇧↵ neue zeile",
|
|
9
|
+
"hint.clear": "⌃u leeren",
|
|
10
|
+
"hint.toggle": "␣ umschalten",
|
|
11
|
+
"hint.notes": "n notizen",
|
|
12
|
+
"hint.tab": "⇥ fragen",
|
|
13
|
+
"hint.collapse": "⌃] einklappen",
|
|
14
|
+
"hint.expand_line": "⌃] ausklappen · esc abbrechen",
|
|
15
|
+
"hint.cancel": "esc abbrechen",
|
|
16
|
+
"review.heading": "Antworten überprüfen",
|
|
17
|
+
"review.ready": "Bereit, deine Antworten zu senden?",
|
|
18
|
+
"review.incomplete": "⚠ Beantworte die verbleibenden Fragen vor dem Senden:",
|
|
19
|
+
"preview.no_preview": "Keine Vorschau verfügbar",
|
|
20
|
+
"preview.notes_affordance": "Notizen: drücke n, um Notizen hinzuzufügen",
|
|
21
|
+
"notes.header": "Notizen:",
|
|
22
|
+
"editor.failed": "Externer Editor fehlgeschlagen",
|
|
23
|
+
"entry.answered": "beantwortet",
|
|
24
|
+
"entry.cancelled": "abgebrochen",
|
|
25
|
+
"entry.question_cancelled": "Frage abgebrochen",
|
|
26
|
+
"rpc.multi_instructions": "Gib die Nummern aller zutreffenden Optionen durch Komma getrennt ein (z. B. \"1,3\") oder tippe eine eigene Antwort als Text.",
|
|
27
|
+
"rpc.custom_answer_title": "Gib deine Antwort ein:",
|
|
28
|
+
"_meta.notes": "Auto-translated draft. Native-speaker review welcome via PR. TUI symbols (↑/↓, ⚠) and key names (Enter, Esc, Tab, Space, n, Ctrl+G, Ctrl+U) are universal CLI conventions and stay untranslated.",
|
|
29
|
+
"gate.title": "Emma · Weiter",
|
|
30
|
+
"gate.question": "Wähle den nächsten Schritt.",
|
|
31
|
+
"preview.label": "Hier ist Emmas Zusammenfassung:",
|
|
32
|
+
"preview.label.shape": "Hier ist Emmas Plan:",
|
|
33
|
+
"preview.label.build": "Hier ist Emmas Bericht:",
|
|
34
|
+
"preview.label.hunt": "Hier sind Emmas Ergebnisse:",
|
|
35
|
+
"vertical.too_small": "Vergrößern: 40x20",
|
|
36
|
+
"vertical.too_small_hint": "Esc / Ctrl+C: Abbrechen",
|
|
37
|
+
"vertical.input_label": "Eingabe:",
|
|
38
|
+
"vertical.recommended": "Empfohlen",
|
|
39
|
+
"vertical.unanswered": "unbeantwortet",
|
|
40
|
+
"vertical.global_note": "Globale Notiz",
|
|
41
|
+
"vertical.note_empty": "(n drücken zum Hinzufügen)",
|
|
42
|
+
"vertical.back": "esc zurück"
|
|
43
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"sentinel.other": "Type something.",
|
|
3
|
+
"sentinel.next": "Next",
|
|
4
|
+
"submit.label": "Submit answers",
|
|
5
|
+
"submit.cancel": "Cancel",
|
|
6
|
+
"hint.enter": "↵ select",
|
|
7
|
+
"hint.navigate": "↑↓ navigate",
|
|
8
|
+
"hint.newline": "⇧↵ newline",
|
|
9
|
+
"hint.clear": "⌃u clear",
|
|
10
|
+
"hint.toggle": "space toggle",
|
|
11
|
+
"hint.notes": "n notes",
|
|
12
|
+
"hint.tab": "⇥ questions",
|
|
13
|
+
"hint.collapse": "⌃] collapse",
|
|
14
|
+
"hint.expand_line": "⌃] expand · esc cancel",
|
|
15
|
+
"hint.cancel": "esc cancel",
|
|
16
|
+
"review.heading": "Review your answers",
|
|
17
|
+
"review.ready": "Ready to submit your answers?",
|
|
18
|
+
"review.incomplete": "⚠ Answer remaining questions before submitting:",
|
|
19
|
+
"preview.no_preview": "No preview available",
|
|
20
|
+
"preview.notes_affordance": "Notes: press n to add notes",
|
|
21
|
+
"notes.header": "Notes:",
|
|
22
|
+
"editor.failed": "External editor failed",
|
|
23
|
+
"entry.answered": "answered",
|
|
24
|
+
"entry.cancelled": "cancelled",
|
|
25
|
+
"entry.question_cancelled": "Question cancelled",
|
|
26
|
+
"rpc.multi_instructions": "Enter the numbers of all that apply, comma-separated (e.g. \"1,3\"), or type a custom answer as plain text.",
|
|
27
|
+
"rpc.custom_answer_title": "Type your answer:",
|
|
28
|
+
"gate.title": "Emma · Next step",
|
|
29
|
+
"gate.question": "Choose the next step.",
|
|
30
|
+
"preview.label": "Here is Emma's summary:",
|
|
31
|
+
"preview.label.shape": "Here is Emma's plan:",
|
|
32
|
+
"preview.label.build": "Here is Emma's report:",
|
|
33
|
+
"preview.label.hunt": "Here is Emma's findings:",
|
|
34
|
+
"vertical.too_small": "Enlarge: 40x20",
|
|
35
|
+
"vertical.too_small_hint": "Esc / Ctrl+C: Cancel",
|
|
36
|
+
"vertical.input_label": "Input:",
|
|
37
|
+
"vertical.recommended": "Recommended",
|
|
38
|
+
"vertical.unanswered": "unanswered",
|
|
39
|
+
"vertical.global_note": "Global note",
|
|
40
|
+
"vertical.note_empty": "(press n to add)",
|
|
41
|
+
"vertical.back": "esc back"
|
|
42
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"sentinel.other": "Escribe algo.",
|
|
3
|
+
"sentinel.next": "Siguiente",
|
|
4
|
+
"submit.label": "Enviar respuestas",
|
|
5
|
+
"submit.cancel": "Cancelar",
|
|
6
|
+
"hint.enter": "↵ seleccionar",
|
|
7
|
+
"hint.navigate": "↑↓ navegar",
|
|
8
|
+
"hint.newline": "⇧↵ nueva línea",
|
|
9
|
+
"hint.clear": "⌃u borrar",
|
|
10
|
+
"hint.toggle": "␣ alternar",
|
|
11
|
+
"hint.notes": "n notas",
|
|
12
|
+
"hint.tab": "⇥ preguntas",
|
|
13
|
+
"hint.collapse": "⌃] contraer",
|
|
14
|
+
"hint.expand_line": "⌃] expandir · esc cancelar",
|
|
15
|
+
"hint.cancel": "esc cancelar",
|
|
16
|
+
"review.heading": "Revisa tus respuestas",
|
|
17
|
+
"review.ready": "¿Listo para enviar tus respuestas?",
|
|
18
|
+
"review.incomplete": "⚠ Responde las preguntas restantes antes de enviar:",
|
|
19
|
+
"preview.no_preview": "Vista previa no disponible",
|
|
20
|
+
"preview.notes_affordance": "Notas: pulsa n para añadir notas",
|
|
21
|
+
"notes.header": "Notas:",
|
|
22
|
+
"editor.failed": "Error del editor externo",
|
|
23
|
+
"entry.answered": "respondida",
|
|
24
|
+
"entry.cancelled": "cancelada",
|
|
25
|
+
"entry.question_cancelled": "Pregunta cancelada",
|
|
26
|
+
"rpc.multi_instructions": "Introduce los números de todas las opciones que apliquen, separados por comas (p. ej. \"1,3\"), o escribe una respuesta propia como texto.",
|
|
27
|
+
"rpc.custom_answer_title": "Escribe tu respuesta:",
|
|
28
|
+
"_meta.notes": "Auto-translated draft. Native-speaker review welcome via PR. TUI symbols (↑/↓, ⚠) and key names (Enter, Esc, Tab, Space, n, Ctrl+G, Ctrl+U) are universal CLI conventions and stay untranslated.",
|
|
29
|
+
"gate.title": "Emma · Siguiente",
|
|
30
|
+
"gate.question": "Elige el siguiente paso.",
|
|
31
|
+
"preview.label": "El resumen de Emma:",
|
|
32
|
+
"preview.label.shape": "El plan de Emma:",
|
|
33
|
+
"preview.label.build": "El informe de Emma:",
|
|
34
|
+
"preview.label.hunt": "Las conclusiones de Emma:",
|
|
35
|
+
"vertical.too_small": "Amplía: 40x20",
|
|
36
|
+
"vertical.too_small_hint": "Esc / Ctrl+C: cancelar",
|
|
37
|
+
"vertical.input_label": "Entrada:",
|
|
38
|
+
"vertical.recommended": "Recomendado",
|
|
39
|
+
"vertical.unanswered": "sin responder",
|
|
40
|
+
"vertical.global_note": "Nota global",
|
|
41
|
+
"vertical.note_empty": "(pulsa n para añadir)",
|
|
42
|
+
"vertical.back": "esc volver"
|
|
43
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"sentinel.other": "Écrivez quelque chose.",
|
|
3
|
+
"sentinel.next": "Suivant",
|
|
4
|
+
"submit.label": "Envoyer les réponses",
|
|
5
|
+
"submit.cancel": "Annuler",
|
|
6
|
+
"hint.enter": "↵ sélectionner",
|
|
7
|
+
"hint.navigate": "↑↓ naviguer",
|
|
8
|
+
"hint.newline": "⇧↵ nouvelle ligne",
|
|
9
|
+
"hint.clear": "⌃u effacer",
|
|
10
|
+
"hint.toggle": "␣ basculer",
|
|
11
|
+
"hint.notes": "n notes",
|
|
12
|
+
"hint.tab": "⇥ questions",
|
|
13
|
+
"hint.collapse": "⌃] réduire",
|
|
14
|
+
"hint.expand_line": "⌃] agrandir · esc annuler",
|
|
15
|
+
"hint.cancel": "esc annuler",
|
|
16
|
+
"review.heading": "Vérifiez vos réponses",
|
|
17
|
+
"review.ready": "Prêt à envoyer vos réponses ?",
|
|
18
|
+
"review.incomplete": "⚠ Répondez aux questions restantes avant d'envoyer :",
|
|
19
|
+
"preview.no_preview": "Aucun aperçu disponible",
|
|
20
|
+
"preview.notes_affordance": "Notes : appuyez sur n pour ajouter des notes",
|
|
21
|
+
"notes.header": "Notes :",
|
|
22
|
+
"editor.failed": "Échec de l’éditeur externe",
|
|
23
|
+
"entry.answered": "répondu",
|
|
24
|
+
"entry.cancelled": "annulé",
|
|
25
|
+
"entry.question_cancelled": "Question annulée",
|
|
26
|
+
"rpc.multi_instructions": "Saisissez les numéros de toutes les options applicables, séparés par des virgules (p. ex. « 1,3 »), ou tapez une réponse libre en texte.",
|
|
27
|
+
"rpc.custom_answer_title": "Tapez votre réponse :",
|
|
28
|
+
"_meta.notes": "Auto-translated draft. Native-speaker review welcome via PR. TUI symbols (↑/↓, ⚠) and key names (Enter, Esc, Tab, Space, n, Ctrl+G, Ctrl+U) are universal CLI conventions and stay untranslated.",
|
|
29
|
+
"gate.title": "Emma · Suite",
|
|
30
|
+
"gate.question": "Choisissez l’étape suivante.",
|
|
31
|
+
"preview.label": "Voici le résumé d'Emma :",
|
|
32
|
+
"preview.label.shape": "Voici le plan d'Emma :",
|
|
33
|
+
"preview.label.build": "Voici le rapport d'Emma :",
|
|
34
|
+
"preview.label.hunt": "Voici les conclusions d'Emma :",
|
|
35
|
+
"vertical.too_small": "Agrandir : 40x20",
|
|
36
|
+
"vertical.too_small_hint": "Esc / Ctrl+C : annuler",
|
|
37
|
+
"vertical.input_label": "Saisie :",
|
|
38
|
+
"vertical.recommended": "Recommandé",
|
|
39
|
+
"vertical.unanswered": "sans réponse",
|
|
40
|
+
"vertical.global_note": "Note globale",
|
|
41
|
+
"vertical.note_empty": "(appuyez sur n pour ajouter)",
|
|
42
|
+
"vertical.back": "esc retour"
|
|
43
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"sentinel.other": "Digite algo.",
|
|
3
|
+
"sentinel.next": "Próximo",
|
|
4
|
+
"submit.label": "Enviar respostas",
|
|
5
|
+
"submit.cancel": "Cancelar",
|
|
6
|
+
"hint.enter": "↵ selecionar",
|
|
7
|
+
"hint.navigate": "↑↓ navegar",
|
|
8
|
+
"hint.newline": "⇧↵ nova linha",
|
|
9
|
+
"hint.clear": "⌃u limpar",
|
|
10
|
+
"hint.toggle": "␣ alternar",
|
|
11
|
+
"hint.notes": "n notas",
|
|
12
|
+
"hint.tab": "⇥ perguntas",
|
|
13
|
+
"hint.collapse": "⌃] recolher",
|
|
14
|
+
"hint.expand_line": "⌃] expandir · esc cancelar",
|
|
15
|
+
"hint.cancel": "esc cancelar",
|
|
16
|
+
"review.heading": "Revise suas respostas",
|
|
17
|
+
"review.ready": "Pronto para enviar suas respostas?",
|
|
18
|
+
"review.incomplete": "⚠ Responda as perguntas restantes antes de enviar:",
|
|
19
|
+
"preview.no_preview": "Pré-visualização indisponível",
|
|
20
|
+
"preview.notes_affordance": "Notas: pressione n para adicionar notas",
|
|
21
|
+
"notes.header": "Notas:",
|
|
22
|
+
"editor.failed": "Falha no editor externo",
|
|
23
|
+
"entry.answered": "respondida",
|
|
24
|
+
"entry.cancelled": "cancelada",
|
|
25
|
+
"entry.question_cancelled": "Pergunta cancelada",
|
|
26
|
+
"rpc.multi_instructions": "Digite os números de todas as opções aplicáveis, separados por vírgula (ex.: \"1,3\") ou digite uma resposta própria em texto.",
|
|
27
|
+
"rpc.custom_answer_title": "Digite sua resposta:",
|
|
28
|
+
"_meta.notes": "Auto-translated draft. Native-speaker review welcome via PR. TUI symbols (↑/↓, ⚠) and key names (Enter, Esc, Tab, Space, n, Ctrl+G, Ctrl+U) are universal CLI conventions and stay untranslated.",
|
|
29
|
+
"gate.title": "Emma · Próximo",
|
|
30
|
+
"gate.question": "Escolha o próximo passo.",
|
|
31
|
+
"preview.label": "O resumo da Emma:",
|
|
32
|
+
"preview.label.shape": "O plano da Emma:",
|
|
33
|
+
"preview.label.build": "O relatório da Emma:",
|
|
34
|
+
"preview.label.hunt": "As conclusões da Emma:",
|
|
35
|
+
"vertical.too_small": "Amplie: 40x20",
|
|
36
|
+
"vertical.too_small_hint": "Esc / Ctrl+C: cancelar",
|
|
37
|
+
"vertical.input_label": "Entrada:",
|
|
38
|
+
"vertical.recommended": "Recomendado",
|
|
39
|
+
"vertical.unanswered": "sem resposta",
|
|
40
|
+
"vertical.global_note": "Nota global",
|
|
41
|
+
"vertical.note_empty": "(pressione n para adicionar)",
|
|
42
|
+
"vertical.back": "esc voltar"
|
|
43
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"sentinel.other": "Escreva algo.",
|
|
3
|
+
"sentinel.next": "Seguinte",
|
|
4
|
+
"submit.label": "Enviar respostas",
|
|
5
|
+
"submit.cancel": "Cancelar",
|
|
6
|
+
"hint.enter": "↵ selecionar",
|
|
7
|
+
"hint.navigate": "↑↓ navegar",
|
|
8
|
+
"hint.newline": "⇧↵ nova linha",
|
|
9
|
+
"hint.clear": "⌃u limpar",
|
|
10
|
+
"hint.toggle": "␣ alternar",
|
|
11
|
+
"hint.notes": "n notas",
|
|
12
|
+
"hint.tab": "⇥ perguntas",
|
|
13
|
+
"hint.collapse": "⌃] recolher",
|
|
14
|
+
"hint.expand_line": "⌃] expandir · esc cancelar",
|
|
15
|
+
"hint.cancel": "esc cancelar",
|
|
16
|
+
"review.heading": "Reveja as suas respostas",
|
|
17
|
+
"review.ready": "Pronto para enviar as suas respostas?",
|
|
18
|
+
"review.incomplete": "⚠ Responda às perguntas restantes antes de enviar:",
|
|
19
|
+
"preview.no_preview": "Pré-visualização indisponível",
|
|
20
|
+
"preview.notes_affordance": "Notas: prima n para adicionar notas",
|
|
21
|
+
"notes.header": "Notas:",
|
|
22
|
+
"editor.failed": "Falha no editor externo",
|
|
23
|
+
"entry.answered": "respondida",
|
|
24
|
+
"entry.cancelled": "cancelada",
|
|
25
|
+
"entry.question_cancelled": "Pergunta cancelada",
|
|
26
|
+
"rpc.multi_instructions": "Introduza os números de todas as opções aplicáveis, separados por vírgulas (ex.: \"1,3\") ou escreva uma resposta própria em texto.",
|
|
27
|
+
"rpc.custom_answer_title": "Escreva a sua resposta:",
|
|
28
|
+
"_meta.notes": "European Portuguese (Portugal). Auto-translated draft. Native-speaker review welcome via PR. Distinct from pt-BR (Brasil): differs in lexicon (utilizador / você), conjugation, and some terms. TUI symbols (↑/↓, ⚠) and key names (Enter, Esc, Tab, Space, n, Ctrl+G, Ctrl+U) are universal CLI conventions and stay untranslated.",
|
|
29
|
+
"gate.title": "Emma · Próximo",
|
|
30
|
+
"gate.question": "Escolha o próximo passo.",
|
|
31
|
+
"preview.label": "O resumo da Emma:",
|
|
32
|
+
"preview.label.shape": "O plano da Emma:",
|
|
33
|
+
"preview.label.build": "O relatório da Emma:",
|
|
34
|
+
"preview.label.hunt": "As conclusões da Emma:",
|
|
35
|
+
"vertical.too_small": "Amplie: 40x20",
|
|
36
|
+
"vertical.too_small_hint": "Esc / Ctrl+C: cancelar",
|
|
37
|
+
"vertical.input_label": "Entrada:",
|
|
38
|
+
"vertical.recommended": "Recomendado",
|
|
39
|
+
"vertical.unanswered": "sem resposta",
|
|
40
|
+
"vertical.global_note": "Nota global",
|
|
41
|
+
"vertical.note_empty": "(pressione n para adicionar)",
|
|
42
|
+
"vertical.back": "esc voltar"
|
|
43
|
+
}
|