@parallelworks/code 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/README.md +171 -24
  2. package/dist/ago.d.ts +8 -0
  3. package/dist/ago.js +26 -0
  4. package/dist/api.d.ts +3547 -0
  5. package/dist/apiClient.d.ts +26 -0
  6. package/dist/apiClient.js +5 -0
  7. package/dist/base64.d.ts +3 -0
  8. package/dist/base64.js +15 -0
  9. package/dist/chatHandoff.d.ts +12 -0
  10. package/dist/chatHandoff.js +27 -0
  11. package/dist/claudeAccounts.d.ts +112 -0
  12. package/dist/claudeAccounts.js +234 -0
  13. package/dist/claudeApi.d.ts +27 -0
  14. package/dist/claudeApi.js +250 -0
  15. package/dist/claudeSignIn.d.ts +62 -0
  16. package/dist/claudeSignIn.js +239 -0
  17. package/dist/command.d.ts +47 -0
  18. package/dist/command.js +64 -0
  19. package/dist/commandsApi.d.ts +64 -0
  20. package/dist/commandsApi.js +267 -0
  21. package/dist/contextRow.d.ts +25 -0
  22. package/dist/contextRow.js +16 -0
  23. package/dist/createPwCodeApi.d.ts +696 -0
  24. package/dist/createPwCodeApi.js +33 -0
  25. package/dist/howSessionsAppear.d.ts +12 -0
  26. package/dist/howSessionsAppear.js +24 -0
  27. package/dist/index.d.ts +39 -3
  28. package/dist/index.js +38 -3
  29. package/dist/locales/en/agentTranscript.js +162 -0
  30. package/dist/locales/en/agents.js +380 -0
  31. package/dist/locales/en.d.ts +523 -0
  32. package/dist/locales/en.js +8 -0
  33. package/dist/locales/es/agentTranscript.js +162 -0
  34. package/dist/locales/es/agents.js +380 -0
  35. package/dist/locales/es.d.ts +3 -0
  36. package/dist/locales/es.js +8 -0
  37. package/dist/locales/ja/agentTranscript.js +162 -0
  38. package/dist/locales/ja/agents.js +380 -0
  39. package/dist/locales/ja.d.ts +3 -0
  40. package/dist/locales/ja.js +8 -0
  41. package/dist/locales/ko/agentTranscript.js +162 -0
  42. package/dist/locales/ko/agents.js +380 -0
  43. package/dist/locales/ko.d.ts +3 -0
  44. package/dist/locales/ko.js +8 -0
  45. package/dist/locales/zh/agentTranscript.js +162 -0
  46. package/dist/locales/zh/agents.js +380 -0
  47. package/dist/locales/zh.d.ts +3 -0
  48. package/dist/locales/zh.js +8 -0
  49. package/dist/machine.d.ts +51 -0
  50. package/dist/machine.js +60 -0
  51. package/dist/messages.d.ts +17 -0
  52. package/dist/messages.js +31 -0
  53. package/dist/models.d.ts +47 -0
  54. package/dist/models.js +49 -0
  55. package/dist/notices.d.ts +12 -0
  56. package/dist/notices.js +120 -0
  57. package/dist/pullRequest.d.ts +8 -0
  58. package/dist/pullRequest.js +29 -0
  59. package/dist/pullRequestList.d.ts +52 -0
  60. package/dist/pullRequestList.js +106 -0
  61. package/dist/query.d.ts +28 -0
  62. package/dist/query.js +25 -0
  63. package/dist/session.d.ts +75 -1
  64. package/dist/session.js +101 -1
  65. package/dist/sessionActions.d.ts +105 -0
  66. package/dist/sessionActions.js +178 -0
  67. package/dist/sessionEvents.d.ts +27 -0
  68. package/dist/sessionEvents.js +212 -0
  69. package/dist/sessionGroups.d.ts +49 -0
  70. package/dist/sessionGroups.js +72 -0
  71. package/dist/sessionHeader.d.ts +14 -0
  72. package/dist/sessionHeader.js +16 -0
  73. package/dist/sessionList.d.ts +134 -0
  74. package/dist/sessionList.js +271 -0
  75. package/dist/sessionsApi.d.ts +105 -0
  76. package/dist/sessionsApi.js +511 -0
  77. package/dist/settingsApi.d.ts +36 -0
  78. package/dist/settingsApi.js +151 -0
  79. package/dist/startSession.d.ts +138 -0
  80. package/dist/startSession.js +234 -0
  81. package/dist/terminalHandoffPanel.d.ts +30 -0
  82. package/dist/terminalHandoffPanel.js +33 -0
  83. package/dist/toolStrings.d.ts +4 -0
  84. package/dist/toolStrings.js +95 -0
  85. package/dist/transcript.d.ts +14 -1
  86. package/dist/transcript.js +55 -14
  87. package/dist/types.d.ts +20 -1
  88. package/dist/usageLimit.d.ts +8 -0
  89. package/dist/usageLimit.js +13 -0
  90. package/dist/useAwayRecap.d.ts +30 -0
  91. package/dist/useAwayRecap.js +75 -0
  92. package/dist/useComposer.d.ts +121 -0
  93. package/dist/useComposer.js +244 -0
  94. package/dist/useComposerImages.d.ts +66 -0
  95. package/dist/useComposerImages.js +195 -0
  96. package/dist/useConversation.d.ts +190 -0
  97. package/dist/useConversation.js +287 -0
  98. package/dist/useSubagent.d.ts +58 -0
  99. package/dist/useSubagent.js +149 -0
  100. package/dist/useTranscript.d.ts +4 -1
  101. package/dist/useTranscript.js +54 -11
  102. package/dist/wording.d.ts +43 -0
  103. package/dist/wording.js +101 -0
  104. package/dist/workingDirectories.d.ts +32 -0
  105. package/dist/workingDirectories.js +71 -0
  106. package/dist/worktreeChoice.d.ts +31 -0
  107. package/dist/worktreeChoice.js +38 -0
  108. package/locales/en/agentTranscript.json +154 -0
  109. package/locales/en/agents.json +366 -0
  110. package/locales/es/agentTranscript.json +154 -0
  111. package/locales/es/agents.json +366 -0
  112. package/locales/ja/agentTranscript.json +154 -0
  113. package/locales/ja/agents.json +366 -0
  114. package/locales/ko/agentTranscript.json +154 -0
  115. package/locales/ko/agents.json +366 -0
  116. package/locales/zh/agentTranscript.json +154 -0
  117. package/locales/zh/agents.json +366 -0
  118. package/package.json +24 -9
@@ -0,0 +1,43 @@
1
+ import { type PwCodeMachine } from './machine.js';
2
+ import type { PwCodeTranslator } from './messages.js';
3
+ import { type PwCodePendingApprovals, type PwCodeSession } from './session.js';
4
+ import type { PwCodeSessionStatus } from './types.js';
5
+ type Translate = PwCodeTranslator<'agents'>;
6
+ /** How a prompt refers to an image sent with it: `[Image #1]`. */
7
+ export declare const IMAGE_PLACEHOLDER: RegExp;
8
+ /** Mirrors the machine's preview of a first prompt, so the label does not
9
+ * change when the listed one arrives. */
10
+ export declare function rememberSentPrompt(machine: string, id: string, text: string): void;
11
+ /** The id is never a label: it is a timestamp the reader did not choose. */
12
+ export declare function sessionLabel(s: Pick<PwCodeSession, 'machineId' | 'id' | 'name' | 'autoName' | 'preview'>, t: Translate): string;
13
+ export declare function sessionStatusText(s: {
14
+ status: PwCodeSessionStatus;
15
+ liveHost?: string | undefined;
16
+ approvals?: PwCodePendingApprovals;
17
+ }, t: Translate): string;
18
+ /** A dropped machine outranks the session's own state. */
19
+ export declare function sessionStateText(s: Parameters<typeof sessionStatusText>[0], machine: Pick<PwCodeMachine, 'status'> | undefined, t: Translate): string;
20
+ export declare function machineHint(machine: Pick<PwCodeMachine, 'status' | 'error' | 'agentVersion'>, t: Translate): {
21
+ text: string;
22
+ detail?: string;
23
+ } | null;
24
+ export declare function composerState(args: {
25
+ unreachable: boolean;
26
+ /** Anything sent to an archived session would attach it, which restores it. */
27
+ archived: boolean;
28
+ machineName: string;
29
+ /** How long ago the transcript was last read, already abbreviated. */
30
+ staleFor: string;
31
+ status: PwCodeSessionStatus | null;
32
+ liveHost: string | undefined;
33
+ /** What the session is waiting on while it awaits approval. */
34
+ approvals?: PwCodePendingApprovals;
35
+ /** The `!` command this client is running on the machine, if any. */
36
+ shellRun?: string | undefined;
37
+ t: Translate;
38
+ }): {
39
+ placeholder: string;
40
+ hint: string;
41
+ locked: boolean;
42
+ };
43
+ export {};
@@ -0,0 +1,101 @@
1
+ import { isMachineDown } from "./machine.js";
2
+ import { sessionKey, waitsOnAnswer } from "./session.js";
3
+ import { nameToEmoji } from "gemoji";
4
+ // src/wording.ts
5
+ /** How a prompt refers to an image sent with it: `[Image #1]`. */
6
+ var IMAGE_PLACEHOLDER = /\[Image #(\d+)\]/g;
7
+ var sentPreviews = /* @__PURE__ */ new Map();
8
+ var PREVIEW_MAX = 80;
9
+ /** Mirrors the machine's preview of a first prompt, so the label does not
10
+ * change when the listed one arrives. */
11
+ function rememberSentPrompt(machine, id, text) {
12
+ const words = (text.replace(IMAGE_PLACEHOLDER, "").trim() || text).split(/\s+/).filter(Boolean).join(" ");
13
+ if (words) sentPreviews.set(sessionKey({
14
+ machineId: machine,
15
+ id
16
+ }), words.length > PREVIEW_MAX ? `${words.slice(0, PREVIEW_MAX)}...` : words);
17
+ }
18
+ /** The id is never a label: it is a timestamp the reader did not choose. */
19
+ function sessionLabel(s, t) {
20
+ return (s.name || s.autoName || s.preview || sentPreviews.get(sessionKey(s)) || t("sidebar.untitled")).replace(/:([\w+-]+):/g, (match, name) => {
21
+ const key = name.toLowerCase();
22
+ return Object.hasOwn(nameToEmoji, key) ? nameToEmoji[key] ?? match : match;
23
+ });
24
+ }
25
+ function sessionStatusText(s, t) {
26
+ if (s.status === "awaiting_approval" && waitsOnAnswer(s.approvals)) return t("status.awaiting_answer");
27
+ return t(`status.${s.status}`, { host: s.liveHost ?? "" });
28
+ }
29
+ var DOWN_STATUSES = [
30
+ "no_daemon",
31
+ "no_agent",
32
+ "unreachable",
33
+ "unsupported_agent"
34
+ ];
35
+ function isDownStatus(status) {
36
+ return DOWN_STATUSES.includes(status);
37
+ }
38
+ /** A dropped machine outranks the session's own state. */
39
+ function sessionStateText(s, machine, t) {
40
+ if (!isMachineDown(machine)) return sessionStatusText(s, t);
41
+ return t(`machine.${isDownStatus(machine.status) ? machine.status : "unreachable"}`);
42
+ }
43
+ function machineHint(machine, t) {
44
+ const detail = machine.error ? { detail: machine.error } : {};
45
+ switch (machine.status) {
46
+ case "connected": return null;
47
+ case "no_daemon": return {
48
+ text: t("machine.noDaemonHint"),
49
+ ...detail
50
+ };
51
+ case "no_agent": return {
52
+ text: t("machine.noAgentHint"),
53
+ ...detail
54
+ };
55
+ case "unsupported_agent": return {
56
+ text: machine.agentVersion ? t("machine.unsupportedHintVersion", { version: machine.agentVersion }) : t("machine.unsupportedHint"),
57
+ ...detail
58
+ };
59
+ default: return {
60
+ text: t("machine.unreachableHint"),
61
+ ...detail
62
+ };
63
+ }
64
+ }
65
+ function composerState(args) {
66
+ const { unreachable, archived, machineName, staleFor, status, liveHost, approvals, shellRun, t } = args;
67
+ if (unreachable) return {
68
+ placeholder: t("detail.composerUnreachable", { machine: machineName }),
69
+ hint: t("detail.footerUnreachable", { when: staleFor }),
70
+ locked: true
71
+ };
72
+ if (archived) return {
73
+ placeholder: t("detail.composerArchived"),
74
+ hint: t("detail.footerArchived"),
75
+ locked: true
76
+ };
77
+ if (status === "live_elsewhere") return {
78
+ placeholder: t("detail.composerLiveElsewhere", { host: liveHost ?? "" }),
79
+ hint: t("detail.footerLiveElsewhere"),
80
+ locked: true
81
+ };
82
+ if (status === "awaiting_approval") {
83
+ const answer = waitsOnAnswer(approvals);
84
+ return {
85
+ placeholder: t(answer ? "detail.composerAwaitingAnswer" : "detail.composerAwaiting"),
86
+ hint: t(answer ? "detail.footerAwaitingAnswer" : "detail.footerAwaiting"),
87
+ locked: true
88
+ };
89
+ }
90
+ if (shellRun) return {
91
+ placeholder: t("detail.composerShellRunning"),
92
+ hint: t("detail.footerShellRunning", { command: shellRun }),
93
+ locked: true
94
+ };
95
+ return {
96
+ placeholder: t("detail.composerPlaceholder"),
97
+ hint: "",
98
+ locked: false
99
+ };
100
+ }
101
+ export { IMAGE_PLACEHOLDER, composerState, machineHint, rememberSentPrompt, sessionLabel, sessionStateText, sessionStatusText };
@@ -0,0 +1,32 @@
1
+ import type { PwCodeApi } from './createPwCodeApi.js';
2
+ import type { PwCodeAddedDirectory, PwCodeAllowedDirectory } from './types.js';
3
+ /** Where a path's last segment starts, at its last separator. */
4
+ export declare const lastSegmentAt: (path: string) => number;
5
+ /** The path's segments, each with the separator that ends it. */
6
+ export declare function pathSegments(path: string): string[];
7
+ /** The monospace `head`, `full` pixels wide, cut to the whole characters and ellipsis that fit in `room`; null when it fits whole. */
8
+ export declare function cutToFit(head: string, full: number, room: number): string | null;
9
+ /** The letter spacing that stretches `cut`, from the monospace `head` `full` pixels wide, across `room`, so the sliver a whole-character cut leaves is spread between its characters rather than left blank beside them; none for a single character. */
10
+ export declare function cutSpacing(head: string, full: number, room: number, cut: string): number;
11
+ /** A path cut as far as it goes: the prefix, an ellipsis for what leads to the last segment, and that segment. */
12
+ export declare function shortestPath(path: string, prefix?: string): string;
13
+ declare const scopes: readonly ['local', 'project', 'user'];
14
+ /** Where pw code saves a directory it adds for every session. */
15
+ export type PwCodeDirectoryScope = (typeof scopes)[number];
16
+ /** A directory saved in settings outlives the session, which cannot remove it. */
17
+ export declare const isSavedDirectory: (dir: PwCodeAddedDirectory) => boolean;
18
+ /** The settings a directory is saved in, of those this package knows. */
19
+ export declare function directoryScopes(dir: PwCodeAddedDirectory): PwCodeDirectoryScope[];
20
+ /** What an approval let the session do in a directory, and whether that
21
+ * reaches below it. */
22
+ export declare function allowedAccess({ edit, subtree, }: PwCodeAllowedDirectory): 'edit' | 'read' | 'editFolder' | 'readFolder';
23
+ /** Removing the directories added for a session only, one request per path at
24
+ * a time. A refusal puts the path back, so it can be tried again. */
25
+ export declare function useRemoveSessionDirectory(api: Pick<PwCodeApi, 'removeSessionDirectory'>, machine: string, sessionId: string): {
26
+ /** The paths whose removal is under way. */
27
+ pending: ReadonlySet<string>;
28
+ /** Why the last removal failed: the machine's refusal, or what was thrown. */
29
+ error: unknown;
30
+ remove: (path: string) => Promise<void>;
31
+ };
32
+ export {};
@@ -0,0 +1,71 @@
1
+ import { useState } from "react";
2
+ // src/workingDirectories.ts
3
+ /** Where a path's last segment starts, at its last separator. */
4
+ var lastSegmentAt = (path) => Math.max(path.lastIndexOf("/"), path.lastIndexOf("\\"), 0);
5
+ /** The path's segments, each with the separator that ends it. */
6
+ function pathSegments(path) {
7
+ return path.match(/[^/\\]*[/\\]|[^/\\]+$/g) ?? [];
8
+ }
9
+ /** The monospace `head`, `full` pixels wide, cut to the whole characters and ellipsis that fit in `room`; null when it fits whole. */
10
+ function cutToFit(head, full, room) {
11
+ const chars = [...head];
12
+ if (full <= room + .5 || chars.length === 0) return null;
13
+ const fit = Math.floor(room / (full / chars.length) + .01);
14
+ return fit > 0 ? `${chars.slice(0, fit - 1).join("")}…` : "";
15
+ }
16
+ /** The letter spacing that stretches `cut`, from the monospace `head` `full` pixels wide, across `room`, so the sliver a whole-character cut leaves is spread between its characters rather than left blank beside them; none for a single character. */
17
+ function cutSpacing(head, full, room, cut) {
18
+ const chars = [...head].length;
19
+ const shown = [...cut].length;
20
+ if (shown < 2 || chars === 0) return 0;
21
+ return Math.max(room - shown * (full / chars), 0) / (shown - 1);
22
+ }
23
+ /** A path cut as far as it goes: the prefix, an ellipsis for what leads to the last segment, and that segment. */
24
+ function shortestPath(path, prefix = "") {
25
+ const cut = lastSegmentAt(path);
26
+ return `${prefix}${cut > 0 ? "…" : ""}${path.slice(cut)}`;
27
+ }
28
+ var scopes = [
29
+ "local",
30
+ "project",
31
+ "user"
32
+ ];
33
+ var isScope = (scope) => scopes.includes(scope);
34
+ /** A directory saved in settings outlives the session, which cannot remove it. */
35
+ var isSavedDirectory = (dir) => (dir.scopes ?? []).length > 0;
36
+ /** The settings a directory is saved in, of those this package knows. */
37
+ function directoryScopes(dir) {
38
+ return (dir.scopes ?? []).filter(isScope);
39
+ }
40
+ /** What an approval let the session do in a directory, and whether that
41
+ * reaches below it. */
42
+ function allowedAccess({ edit, subtree }) {
43
+ if (!subtree) return edit ? "editFolder" : "readFolder";
44
+ return edit ? "edit" : "read";
45
+ }
46
+ /** Removing the directories added for a session only, one request per path at
47
+ * a time. A refusal puts the path back, so it can be tried again. */
48
+ function useRemoveSessionDirectory(api, machine, sessionId) {
49
+ const [pending, setPending] = useState(/* @__PURE__ */ new Set());
50
+ const [error, setError] = useState(null);
51
+ const remove = async (path) => {
52
+ if (pending.has(path)) return;
53
+ setPending((current) => new Set(current).add(path));
54
+ setError(null);
55
+ const refusal = await api.removeSessionDirectory(machine, sessionId, path).catch((thrown) => thrown);
56
+ if (refusal) {
57
+ setError(refusal);
58
+ setPending((current) => {
59
+ const next = new Set(current);
60
+ next.delete(path);
61
+ return next;
62
+ });
63
+ }
64
+ };
65
+ return {
66
+ pending,
67
+ error,
68
+ remove
69
+ };
70
+ }
71
+ export { allowedAccess, cutSpacing, cutToFit, directoryScopes, isSavedDirectory, lastSegmentAt, pathSegments, shortestPath, useRemoveSessionDirectory };
@@ -0,0 +1,31 @@
1
+ import type { Schemas } from './apiClient.js';
2
+ import type { PwCodeApi } from './createPwCodeApi.js';
3
+ type Worktree = Schemas['AgentSessionWorktree'];
4
+ /** Some of what removing a worktree would delete: the lines its machine
5
+ * sent, and how many more there are. */
6
+ export interface PwCodeWorktreeLines {
7
+ total: number;
8
+ lines: string[];
9
+ more: number;
10
+ }
11
+ /** What removing a worktree would delete, as git lists it. */
12
+ export interface PwCodeWorktreeWork {
13
+ /** git could not say what the worktree holds. */
14
+ unchecked: boolean;
15
+ /** Files changed or not tracked; null for none. */
16
+ files: PwCodeWorktreeLines | null;
17
+ /** Commits no other branch holds; null for none. */
18
+ commits: PwCodeWorktreeLines | null;
19
+ }
20
+ /** Null when removing the worktree would delete nothing git knows of. */
21
+ export declare function worktreeWork(worktree: Worktree): PwCodeWorktreeWork | null;
22
+ /** The worktree a session works in, for deleting the session, with the
23
+ * choice to remove it too. It is kept unless removing it is chosen;
24
+ * `onChange` hears the worktree's root then, and undefined once it is kept. */
25
+ export declare function useWorktreeChoice(api: Pick<PwCodeApi, 'useSessionWorktree'>, session: Schemas['AgentSession'] | undefined, onChange: (removeRoot: string | undefined) => void): {
26
+ /** The worktree, while the session works in one. */
27
+ worktree: Worktree | undefined;
28
+ remove: boolean;
29
+ choose: (remove: boolean) => void;
30
+ };
31
+ export {};
@@ -0,0 +1,38 @@
1
+ import { useState } from "react";
2
+ // src/worktreeChoice.ts
3
+ function workLines(lines, total) {
4
+ if (total === 0) return null;
5
+ const shown = lines ?? [];
6
+ return {
7
+ total,
8
+ lines: shown,
9
+ more: Math.max(total - shown.length, 0)
10
+ };
11
+ }
12
+ /** Null when removing the worktree would delete nothing git knows of. */
13
+ function worktreeWork(worktree) {
14
+ const { fileCount = 0, commitCount = 0, unchecked } = worktree;
15
+ if (!unchecked && fileCount === 0 && commitCount === 0) return null;
16
+ return {
17
+ unchecked: !!unchecked,
18
+ files: workLines(worktree.files, fileCount),
19
+ commits: workLines(worktree.commits, commitCount)
20
+ };
21
+ }
22
+ /** The worktree a session works in, for deleting the session, with the
23
+ * choice to remove it too. It is kept unless removing it is chosen;
24
+ * `onChange` hears the worktree's root then, and undefined once it is kept. */
25
+ function useWorktreeChoice(api, session, onChange) {
26
+ const { data } = api.useSessionWorktree(session);
27
+ const [remove, setRemove] = useState(false);
28
+ const root = data?.root;
29
+ return {
30
+ worktree: root ? data : void 0,
31
+ remove,
32
+ choose: (next) => {
33
+ setRemove(next);
34
+ onChange(next ? root : void 0);
35
+ }
36
+ };
37
+ }
38
+ export { useWorktreeChoice, worktreeWork };
@@ -0,0 +1,154 @@
1
+ {
2
+ "transcript": {
3
+ "running": "Running…",
4
+ "done": "Done",
5
+ "failed": "Failed",
6
+ "failedWith": "Failed: {reason}",
7
+ "callGroup": "Ran {tool} {count, plural, one {# time} other {# times}}",
8
+ "editGroup": "Made {count, plural, one {# edit} other {# edits}}",
9
+ "writeGroup": "Wrote {count, plural, one {# file} other {# files}}",
10
+ "failedGroup": "{tool} failed {count, plural, one {# time} other {# times}}",
11
+ "failedCount": "{count} failed",
12
+ "interrupted": "Interrupted",
13
+ "noOutput": "(no output)",
14
+ "diffTruncated": "Diff truncated",
15
+ "moreLines": "+{count, plural, one {# more line} other {# more lines}}",
16
+ "allowOnce": "Yes, allow this command",
17
+ "allowDirectory": "Yes, and allow this directory for the session",
18
+ "allowDirectoryTree": "Yes, and allow {path} and everything under it for the session",
19
+ "allowDirectoryOnly": "Yes, and allow {path} for the session",
20
+ "deny": "No, deny this command",
21
+ "allowCode": "Yes, run this code",
22
+ "denyCode": "No, don't run this code",
23
+ "allowPath": "Yes, allow this once",
24
+ "denyPath": "No, deny",
25
+ "allowCall": "Yes, allow this call",
26
+ "denyCall": "No, deny this call",
27
+ "denyWithFeedback": "No, and provide feedback to the agent",
28
+ "feedbackPlaceholder": "Tell the agent what to do instead…",
29
+ "answered": "Answered",
30
+ "allowedBy": "Allowed by {name}",
31
+ "deniedBy": "Denied by {name}",
32
+ "allowed": "Allowed",
33
+ "denied": "Denied",
34
+ "allowedByReviewer": "Allowed by the auto-reviewer",
35
+ "deniedByReviewer": "Denied by the auto-reviewer",
36
+ "approvalExpired": "Expired without an answer",
37
+ "approvalTimedOut": "Denied: no answer in time",
38
+ "reviewTimedOut": "Denied: the auto-reviewer timed out",
39
+ "reviewFailed": "Denied: the auto-reviewer failed",
40
+ "writeOwnAnswer": "Write my own answer…",
41
+ "subagent": "Task",
42
+ "tasks": "Tasks",
43
+ "planPending": "Plan awaiting approval in the terminal",
44
+ "approvalPending": "Waiting for an answer in the terminal",
45
+ "approvalOptions": "Offered choices",
46
+ "approvalLabel": "Waiting for your answer",
47
+ "approvalAllowed": "Allowed",
48
+ "approvalDenied": "Declined",
49
+ "approvalRequestExpired": "This request expired. Ask again to run it.",
50
+ "approvalWaitingOn": "Waiting for {name} to answer",
51
+ "feedbackLabel": "Feedback for the agent",
52
+ "ownAnswerLabel": "Your answer",
53
+ "typeYourAnswer": "Type your answer…",
54
+ "questionsLabel": "Questions",
55
+ "questionTab": "Q{n}",
56
+ "answeredCount": "{answered} of {total} answered",
57
+ "submitAnswers": "Submit answers",
58
+ "chatAboutThis": "Chat about this",
59
+ "noAnswer": "No answer",
60
+ "noPreview": "No preview for this option",
61
+ "previewOf": "Preview: {label}",
62
+ "notesLabel": "Notes",
63
+ "notesPlaceholder": "Add notes on this design…",
64
+ "notesOnly": "(notes only)",
65
+ "todoPending": "To do",
66
+ "todoInProgress": "In progress",
67
+ "todoCompleted": "Done",
68
+ "argsRewritten": "(args rewritten by hook)",
69
+ "interruptedReason": "interrupted",
70
+ "reviewing": "{count, plural, =1 {Reviewing approval request} other {Reviewing # approval requests}}",
71
+ "backgroundLaunched": "{count, plural, one {# background agent} other {# background agents}} launched"
72
+ },
73
+ "tools": {
74
+ "noOutput": "(no output)",
75
+ "firstLineMore": "{line} (+{more, plural, one {# line} other {# lines}})",
76
+ "emptyFile": "Empty file",
77
+ "readImage": "Read image",
78
+ "readLines": "Read {lines, plural, one {# line} other {# lines}}",
79
+ "readLinesMore": "Read {lines, plural, one {# line} other {# lines}} ({more, number} more)",
80
+ "noMatches": "No matches",
81
+ "foundMatches": "Found {matches, plural, one {# match} other {# matches}} in {files, plural, one {# file} other {# files}}",
82
+ "foundFiles": "Found {files, plural, one {# file} other {# files}}",
83
+ "noFilesMatched": "No files matched",
84
+ "truncated": "{summary} (truncated)",
85
+ "exitCode": "Exit {code}",
86
+ "exitCodeLines": "Exit {code} · {lines, plural, one {# line} other {# lines}}",
87
+ "httpStatus": "HTTP {status} · {lines, plural, one {# line} other {# lines}}",
88
+ "outputTruncated": "{summary} (output truncated)",
89
+ "addedRemoved": "Added {added, plural, one {# line} other {# lines}}, removed {removed, plural, one {# line} other {# lines}}",
90
+ "added": "Added {added, plural, one {# line} other {# lines}}",
91
+ "removed": "Removed {removed, plural, one {# line} other {# lines}}",
92
+ "wrote": "Wrote {lines, plural, one {# line} other {# lines}}",
93
+ "wroteTo": "Wrote {lines, plural, one {# line} other {# lines}} to {path}",
94
+ "rollupSearched": "searched for {count, plural, one {# pattern} other {# patterns}}",
95
+ "rollupRead": "read {count, plural, one {# file} other {# files}}",
96
+ "rollupRanCommands": "ran {count, plural, one {# shell command} other {# shell commands}}",
97
+ "rollupFetched": "fetched {count, plural, one {# URL} other {# URLs}}",
98
+ "rollupLoadedSkills": "loaded {count, plural, one {# skill} other {# skills}}",
99
+ "rollupSentMessages": "sent {count, plural, one {# message} other {# messages}}",
100
+ "rollupCalledMcpTools": "called {count, plural, one {# MCP tool} other {# MCP tools}}",
101
+ "rollupRanTools": "ran {count, plural, one {# tool} other {# tools}}",
102
+ "rollupSearching": "searching for {count, plural, one {# pattern} other {# patterns}}",
103
+ "rollupReading": "reading {count, plural, one {# file} other {# files}}",
104
+ "rollupRunningCommands": "running {count, plural, one {# shell command} other {# shell commands}}",
105
+ "rollupFetching": "fetching {count, plural, one {# URL} other {# URLs}}",
106
+ "rollupLoadingSkills": "loading {count, plural, one {# skill} other {# skills}}",
107
+ "rollupSendingMessages": "sending {count, plural, one {# message} other {# messages}}",
108
+ "rollupRunningTools": "running {count, plural, one {# tool} other {# tools}}",
109
+ "rollupCalledServer": "called {server} {count, plural, one {# time} other {# times}}",
110
+ "rollupCallingServer": "calling {server} {count, plural, one {# time} other {# times}}",
111
+ "rollupSeparator": ", ",
112
+ "rejected": "Tool use rejected",
113
+ "rejectedWith": "Tool use rejected: {feedback}",
114
+ "rejectedUpdate": "User rejected update to {path}",
115
+ "rejectedUpdateWith": "User rejected update to {path}: {feedback}",
116
+ "rejectedWrite": "User rejected write to {path}",
117
+ "rejectedWriteWith": "User rejected write to {path}: {feedback}",
118
+ "unattended": "Denied: this session cannot ask for approval",
119
+ "userInterrupted": "The user interrupted {tool} before it finished."
120
+ },
121
+ "queue": {
122
+ "remove": "Remove queued message",
123
+ "waiting": "Queued · sends when this reply finishes",
124
+ "waitingNextStep": "Queued · reaches the agent after its current step",
125
+ "handedOver": "Sent to the running turn"
126
+ },
127
+ "paste": {
128
+ "title": "Pasted text",
129
+ "lines": "{count, plural, one {# line} other {# lines}}",
130
+ "saving": "Saving…",
131
+ "remove": "Remove paste"
132
+ },
133
+ "thinking": {
134
+ "thoughtProcess": "Thought process"
135
+ },
136
+ "modelPicker": {
137
+ "choose": "Model",
138
+ "select": "Select a model",
139
+ "search": "Search models…",
140
+ "loading": "Loading models…",
141
+ "failed": "Failed to load models",
142
+ "none": "No models available",
143
+ "sharedBy": "Shared by {owner}"
144
+ },
145
+ "allocationPicker": {
146
+ "choose": "Allocation",
147
+ "placeholder": "Select allocation",
148
+ "search": "Search allocations…"
149
+ },
150
+ "providerIssue": {
151
+ "keyRejected": "API key rejected",
152
+ "unreachable": "Endpoint unreachable"
153
+ }
154
+ }