@parallelworks/code 0.3.0 → 0.4.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 (103) hide show
  1. package/README.md +598 -113
  2. package/dist/accountApi.d.ts +31 -0
  3. package/dist/accountApi.js +182 -0
  4. package/dist/agentSwitcher.d.ts +109 -0
  5. package/dist/agentSwitcher.js +165 -0
  6. package/dist/ago.d.ts +3 -3
  7. package/dist/ago.js +10 -10
  8. package/dist/allocations.d.ts +41 -0
  9. package/dist/allocations.js +76 -0
  10. package/dist/api.d.ts +1080 -11
  11. package/dist/chatStrings.d.ts +188 -0
  12. package/dist/chatStrings.js +217 -0
  13. package/dist/claudeAccounts.d.ts +38 -1
  14. package/dist/claudeAccounts.js +98 -4
  15. package/dist/claudeApi.js +1 -1
  16. package/dist/claudeSignIn.d.ts +19 -1
  17. package/dist/claudeSignIn.js +12 -2
  18. package/dist/commandsApi.d.ts +11 -1
  19. package/dist/commandsApi.js +24 -5
  20. package/dist/createPwCodeApi.d.ts +44 -5
  21. package/dist/createPwCodeApi.js +18 -2
  22. package/dist/directories.d.ts +161 -0
  23. package/dist/directories.js +301 -0
  24. package/dist/goal.d.ts +89 -0
  25. package/dist/goal.js +164 -0
  26. package/dist/imageFit.d.ts +23 -0
  27. package/dist/imageFit.js +27 -0
  28. package/dist/images.d.ts +28 -0
  29. package/dist/images.js +38 -6
  30. package/dist/index.d.ts +27 -12
  31. package/dist/index.js +26 -12
  32. package/dist/loadError.d.ts +8 -0
  33. package/dist/loadError.js +19 -0
  34. package/dist/locales/en/agentTranscript.js +73 -12
  35. package/dist/locales/en/agents.js +71 -9
  36. package/dist/locales/en.d.ts +124 -8
  37. package/dist/locales/es/agentTranscript.js +73 -12
  38. package/dist/locales/es/agents.js +71 -9
  39. package/dist/locales/ja/agentTranscript.js +76 -15
  40. package/dist/locales/ja/agents.js +45 -120
  41. package/dist/locales/ko/agentTranscript.js +73 -12
  42. package/dist/locales/ko/agents.js +71 -9
  43. package/dist/locales/zh/agentTranscript.js +71 -10
  44. package/dist/locales/zh/agents.js +71 -9
  45. package/dist/machine.d.ts +2 -0
  46. package/dist/modelPicker.d.ts +79 -0
  47. package/dist/modelPicker.js +107 -0
  48. package/dist/notices.js +47 -19
  49. package/dist/platformDefaults.d.ts +22 -0
  50. package/dist/platformDefaults.js +30 -0
  51. package/dist/preferences.d.ts +78 -0
  52. package/dist/preferences.js +128 -0
  53. package/dist/pullRequestList.d.ts +10 -2
  54. package/dist/pullRequestList.js +41 -22
  55. package/dist/query.d.ts +6 -2
  56. package/dist/query.js +85 -10
  57. package/dist/session.d.ts +5 -2
  58. package/dist/session.js +12 -8
  59. package/dist/sessionActions.d.ts +11 -1
  60. package/dist/sessionActions.js +14 -6
  61. package/dist/sessionEvents.d.ts +8 -3
  62. package/dist/sessionEvents.js +10 -5
  63. package/dist/sessionGroups.d.ts +3 -2
  64. package/dist/sessionGroups.js +4 -3
  65. package/dist/sessionList.d.ts +57 -9
  66. package/dist/sessionList.js +74 -12
  67. package/dist/sessionScreen.d.ts +193 -0
  68. package/dist/sessionScreen.js +213 -0
  69. package/dist/sessionsApi.d.ts +13 -3
  70. package/dist/sessionsApi.js +88 -29
  71. package/dist/settingsApi.d.ts +3 -1
  72. package/dist/startPage.d.ts +153 -0
  73. package/dist/startPage.js +174 -0
  74. package/dist/startSession.d.ts +41 -7
  75. package/dist/startSession.js +26 -4
  76. package/dist/transcript.js +48 -15
  77. package/dist/types.d.ts +11 -1
  78. package/dist/useComposer.d.ts +25 -1
  79. package/dist/useComposer.js +54 -3
  80. package/dist/useComposerImages.d.ts +5 -0
  81. package/dist/useComposerImages.js +24 -1
  82. package/dist/useComposerPastes.d.ts +70 -0
  83. package/dist/useComposerPastes.js +130 -0
  84. package/dist/useConversation.d.ts +10 -1
  85. package/dist/useConversation.js +32 -5
  86. package/dist/useSubagent.d.ts +49 -3
  87. package/dist/useSubagent.js +70 -7
  88. package/dist/useTranscript.d.ts +23 -3
  89. package/dist/useTranscript.js +76 -19
  90. package/dist/wording.js +2 -2
  91. package/dist/workingDirectories.d.ts +31 -0
  92. package/dist/workingDirectories.js +25 -1
  93. package/locales/en/agentTranscript.json +67 -11
  94. package/locales/en/agents.json +68 -8
  95. package/locales/es/agentTranscript.json +67 -11
  96. package/locales/es/agents.json +68 -8
  97. package/locales/ja/agentTranscript.json +70 -14
  98. package/locales/ja/agents.json +68 -8
  99. package/locales/ko/agentTranscript.json +67 -11
  100. package/locales/ko/agents.json +68 -8
  101. package/locales/zh/agentTranscript.json +65 -9
  102. package/locales/zh/agents.json +68 -8
  103. package/package.json +6 -3
@@ -34,7 +34,7 @@ function forgetPlaced(unechoed, detail) {
34
34
  }
35
35
  /** Holds the live transcript for one session. The host still owns the socket
36
36
  * and the fetch: it feeds events to `onEvent` and posts through `send`. */
37
- function usePwCodeTranscript({ sessionId, subagent, detail, send, steer, withdraw, onEffect, goalNotice, compactionNotice, recapNotice, words, imageUrl }) {
37
+ function usePwCodeTranscript({ sessionId, subagent, detail, send, steer, withdraw, withdrawDirection, onEffect, goalNotice, compactionNotice, recapNotice, words, imageUrl }) {
38
38
  const [transcript, setTranscript] = useState(null);
39
39
  const transcriptRef = useRef(null);
40
40
  const [sending, setSending] = useState(false);
@@ -46,10 +46,12 @@ function usePwCodeTranscript({ sessionId, subagent, detail, send, steer, withdra
46
46
  const sendRef = useRef(send);
47
47
  const steerRef = useRef(steer);
48
48
  const withdrawRef = useRef(withdraw);
49
+ const withdrawDirectionRef = useRef(withdrawDirection);
49
50
  const onEffectRef = useRef(onEffect);
50
51
  sendRef.current = send;
51
52
  steerRef.current = steer;
52
53
  withdrawRef.current = withdraw;
54
+ withdrawDirectionRef.current = withdrawDirection;
53
55
  onEffectRef.current = onEffect;
54
56
  const goalNoticeRef = useRef(goalNotice);
55
57
  goalNoticeRef.current = goalNotice;
@@ -153,26 +155,32 @@ function usePwCodeTranscript({ sessionId, subagent, detail, send, steer, withdra
153
155
  ]);
154
156
  /** True once the running turn took the text, or the refusal if it may have.
155
157
  * Commands and shell escapes change the next turn, so like the TUI they wait. */
156
- const trySteer = useCallback(async (text, { pastes, images, previews }) => {
158
+ const trySteer = useCallback(async (text, { typed, pastes, images, previews }) => {
157
159
  const steerTo = steerRef.current;
158
160
  if (!steerTo || !turnRunning(transcriptRef.current) || /^[/!]/.test(text.trimStart())) return false;
159
161
  ownSeq.current += 1;
160
162
  const localId = `own-${ownSeq.current}`;
161
163
  unechoed.current.set(localId, {
162
164
  text,
165
+ typed,
163
166
  pastes,
167
+ images,
164
168
  previews,
165
169
  steered: true
166
170
  });
167
171
  apply((state) => appendSteeredMessage(state, text, localId, pastes, previews));
168
172
  const result = await steerTo(text, pastes, images);
169
- if ("delivered" in result && result.delivered) return true;
173
+ if ("delivered" in result && result.delivered) {
174
+ const sent = unechoed.current.get(localId);
175
+ if (sent && result.id) sent.noteId = result.id;
176
+ return true;
177
+ }
170
178
  unechoed.current.delete(localId);
171
179
  apply((state) => dropMessage(state, localId));
172
180
  return "lost" in result ? result.lost : false;
173
181
  }, [apply]);
174
182
  const sendMessage = useCallback(async (text, options = {}) => {
175
- const { pastes, images, previews } = options;
183
+ const { typed, pastes, images, previews } = options;
176
184
  setSending(true);
177
185
  const steered = options.steer !== false && await trySteer(text, options);
178
186
  if (steered) {
@@ -184,7 +192,9 @@ function usePwCodeTranscript({ sessionId, subagent, detail, send, steer, withdra
184
192
  const localId = `own-${ownSeq.current}`;
185
193
  unechoed.current.set(localId, {
186
194
  text,
195
+ typed,
187
196
  pastes,
197
+ images,
188
198
  previews
189
199
  });
190
200
  const append = subagent ? appendTurnMessage : appendOwnMessage;
@@ -213,11 +223,38 @@ function usePwCodeTranscript({ sessionId, subagent, detail, send, steer, withdra
213
223
  ]);
214
224
  const resolveApproval = useCallback((approvalId) => apply((state) => resolveApprovalEverywhere(state, approvalId)), [apply]);
215
225
  const noteShellRun = useCallback((command, output) => apply((state) => appendShellRun(state, command, output)), [apply]);
216
- const queuedTurn = (id) => {
226
+ /** Takes back a message queued as a turn of its own, or one steered into
227
+ * the turn that the model has not been handed yet. */
228
+ const withdrawal = (id) => {
217
229
  const sent = unechoed.current.get(id);
218
- const queued = transcriptRef.current?.queued.some((m) => m.id === id);
219
- return sent && !sent.steered && queued ? sent.turnId : void 0;
230
+ const state = transcriptRef.current;
231
+ if (!sent || !state) return;
232
+ const { noteId, turnId } = sent;
233
+ if (sent.steered) {
234
+ const withdrawNote = withdrawDirectionRef.current;
235
+ return noteId && withdrawNote && state.steered.some((m) => m.id === id) ? () => withdrawNote(noteId) : void 0;
236
+ }
237
+ const withdrawTurn = withdrawRef.current;
238
+ return turnId && withdrawTurn && state.queued.some((m) => m.id === id) ? () => withdrawTurn(turnId) : void 0;
220
239
  };
240
+ const canRemoveQueued = useCallback((id) => !!withdrawal(id), []);
241
+ /** The message as it was sent once the machine gave it back, or the refusal. */
242
+ const withdrawMessage = useCallback(async (id) => {
243
+ const withdrawIt = withdrawal(id);
244
+ const sent = unechoed.current.get(id);
245
+ if (!withdrawIt || !sent) return null;
246
+ const result = await withdrawIt();
247
+ if (result.error) return { refusal: result.error };
248
+ unechoed.current.delete(id);
249
+ if (sent.turnId) ownTurnIds.current.delete(sent.turnId);
250
+ apply((state) => dropMessage(state, id));
251
+ return { sent };
252
+ }, [apply]);
253
+ const removeQueued = useCallback(async (id) => {
254
+ const outcome = await withdrawMessage(id);
255
+ return outcome && "refusal" in outcome ? outcome.refusal : null;
256
+ }, [withdrawMessage]);
257
+ const takingBack = useRef(false);
221
258
  return {
222
259
  transcript,
223
260
  sending,
@@ -225,18 +262,38 @@ function usePwCodeTranscript({ sessionId, subagent, detail, send, steer, withdra
225
262
  sendMessage,
226
263
  resolveApproval,
227
264
  noteShellRun,
228
- canRemoveQueued: useCallback((id) => !!withdrawRef.current && !!queuedTurn(id), []),
229
- removeQueued: useCallback(async (id) => {
230
- const turnId = queuedTurn(id);
231
- const withdrawFrom = withdrawRef.current;
232
- if (!turnId || !withdrawFrom) return null;
233
- const result = await withdrawFrom(turnId);
234
- if (result.error) return result.error;
235
- unechoed.current.delete(id);
236
- ownTurnIds.current.delete(turnId);
237
- apply((state) => dropMessage(state, id));
238
- return null;
239
- }, [apply]),
265
+ canRemoveQueued,
266
+ removeQueued,
267
+ takeBackPending: useCallback(async () => {
268
+ if (takingBack.current) return {
269
+ taken: [],
270
+ refusal: null
271
+ };
272
+ takingBack.current = true;
273
+ try {
274
+ const state = transcriptRef.current;
275
+ const ids = state ? [...state.steered, ...state.queued].map((m) => m.id) : [];
276
+ const outcomes = [];
277
+ for (const id of ids.toReversed()) outcomes.unshift(await withdrawMessage(id));
278
+ const taken = [];
279
+ let refusal = null;
280
+ for (const outcome of outcomes) if (outcome && "sent" in outcome) {
281
+ const { text, typed, pastes, images, previews } = outcome.sent;
282
+ taken.push({
283
+ text: typed ?? text,
284
+ pastes,
285
+ images,
286
+ previews
287
+ });
288
+ } else if (outcome) refusal ??= outcome.refusal;
289
+ return {
290
+ taken,
291
+ refusal
292
+ };
293
+ } finally {
294
+ takingBack.current = false;
295
+ }
296
+ }, [withdrawMessage]),
240
297
  cursor: useCallback(() => transcriptRef.current?.cursor ?? 0, [])
241
298
  };
242
299
  }
package/dist/wording.js CHANGED
@@ -82,8 +82,8 @@ function composerState(args) {
82
82
  if (status === "awaiting_approval") {
83
83
  const answer = waitsOnAnswer(approvals);
84
84
  return {
85
- placeholder: t(answer ? "detail.composerAwaitingAnswer" : "detail.composerAwaiting"),
86
- hint: t(answer ? "detail.footerAwaitingAnswer" : "detail.footerAwaiting"),
85
+ placeholder: answer ? t("detail.composerAwaitingAnswer") : t("detail.composerAwaiting"),
86
+ hint: answer ? t("detail.footerAwaitingAnswer") : t("detail.footerAwaiting"),
87
87
  locked: true
88
88
  };
89
89
  }
@@ -1,5 +1,7 @@
1
1
  import type { PwCodeApi } from './createPwCodeApi.js';
2
+ import type { PwCodeTranslator } from './messages.js';
2
3
  import type { PwCodeAddedDirectory, PwCodeAllowedDirectory } from './types.js';
4
+ type Translate = PwCodeTranslator<'agents'>;
3
5
  /** Where a path's last segment starts, at its last separator. */
4
6
  export declare const lastSegmentAt: (path: string) => number;
5
7
  /** The path's segments, each with the separator that ends it. */
@@ -20,6 +22,35 @@ export declare function directoryScopes(dir: PwCodeAddedDirectory): PwCodeDirect
20
22
  /** What an approval let the session do in a directory, and whether that
21
23
  * reaches below it. */
22
24
  export declare function allowedAccess({ edit, subtree, }: PwCodeAllowedDirectory): 'edit' | 'read' | 'editFolder' | 'readFolder';
25
+ /** A session's working directory as it is written, on its machine. */
26
+ export interface PwCodeWorkingDirectoryText {
27
+ /** Stays whole before the path, which may be cut from the middle. */
28
+ prefix: string;
29
+ text: string;
30
+ /** What a control that opens the session's directories is called. */
31
+ label: string;
32
+ }
33
+ export declare function workingDirectoryText(machineName: string, workspace: string, t: Translate): PwCodeWorkingDirectoryText;
34
+ export interface PwCodeAddedDirectoryRow {
35
+ path: string;
36
+ /** Where it is kept, a line each: the session alone, or each settings file it is saved in. */
37
+ scopes: string[];
38
+ /** Only one added for the session alone: one saved in settings outlives it. */
39
+ removable: boolean;
40
+ removeLabel: string;
41
+ }
42
+ export interface PwCodeAllowedDirectoryRow {
43
+ path: string;
44
+ access: string;
45
+ }
46
+ /** A session's added and allowed directories as they are listed. */
47
+ export interface PwCodeSessionDirectories {
48
+ added: PwCodeAddedDirectoryRow[];
49
+ /** How the ones saved in settings are removed instead, while one is listed. */
50
+ savedNote: string | undefined;
51
+ allowed: PwCodeAllowedDirectoryRow[];
52
+ }
53
+ export declare function sessionDirectories(added: readonly PwCodeAddedDirectory[], allowed: readonly PwCodeAllowedDirectory[], t: Translate): PwCodeSessionDirectories;
23
54
  /** Removing the directories added for a session only, one request per path at
24
55
  * a time. A refusal puts the path back, so it can be tried again. */
25
56
  export declare function useRemoveSessionDirectory(api: Pick<PwCodeApi, 'removeSessionDirectory'>, machine: string, sessionId: string): {
@@ -43,6 +43,30 @@ function allowedAccess({ edit, subtree }) {
43
43
  if (!subtree) return edit ? "editFolder" : "readFolder";
44
44
  return edit ? "edit" : "read";
45
45
  }
46
+ function workingDirectoryText(machineName, workspace, t) {
47
+ const prefix = `${machineName}:`;
48
+ const text = `${prefix}${workspace}`;
49
+ return {
50
+ prefix,
51
+ text,
52
+ label: t("detail.workingDirectory", { path: text })
53
+ };
54
+ }
55
+ function sessionDirectories(added, allowed, t) {
56
+ return {
57
+ added: added.map((dir) => ({
58
+ path: dir.path,
59
+ scopes: isSavedDirectory(dir) ? directoryScopes(dir).map((scope) => t(`detail.directoryScope.${scope}`)) : [t("detail.directoryScope.session")],
60
+ removable: !isSavedDirectory(dir),
61
+ removeLabel: t("detail.removeDirectory", { path: dir.path })
62
+ })),
63
+ savedNote: added.some(isSavedDirectory) ? t("detail.savedDirectoriesNote") : void 0,
64
+ allowed: allowed.map((dir) => ({
65
+ path: dir.path,
66
+ access: t(`detail.allowedAccess.${allowedAccess(dir)}`)
67
+ }))
68
+ };
69
+ }
46
70
  /** Removing the directories added for a session only, one request per path at
47
71
  * a time. A refusal puts the path back, so it can be tried again. */
48
72
  function useRemoveSessionDirectory(api, machine, sessionId) {
@@ -68,4 +92,4 @@ function useRemoveSessionDirectory(api, machine, sessionId) {
68
92
  remove
69
93
  };
70
94
  }
71
- export { allowedAccess, cutSpacing, cutToFit, directoryScopes, isSavedDirectory, lastSegmentAt, pathSegments, shortestPath, useRemoveSessionDirectory };
95
+ export { allowedAccess, cutSpacing, cutToFit, directoryScopes, isSavedDirectory, lastSegmentAt, pathSegments, sessionDirectories, shortestPath, useRemoveSessionDirectory, workingDirectoryText };
@@ -24,19 +24,21 @@
24
24
  "denyPath": "No, deny",
25
25
  "allowCall": "Yes, allow this call",
26
26
  "denyCall": "No, deny this call",
27
- "denyWithFeedback": "No, and provide feedback to the agent",
28
- "feedbackPlaceholder": "Tell the agent what to do instead…",
27
+ "denyWithFeedback": "No, and tell the assistant why",
28
+ "feedbackPlaceholder": "Tell the assistant what to do instead…",
29
29
  "answered": "Answered",
30
- "allowedBy": "Allowed by {name}",
31
- "deniedBy": "Denied by {name}",
30
+ "allowedBy": "{name} approved",
31
+ "allowedWithChangesBy": "{name} approved with changes",
32
+ "deniedBy": "{name} denied",
32
33
  "allowed": "Allowed",
34
+ "allowedWithChanges": "Allowed with changes",
33
35
  "denied": "Denied",
34
- "allowedByReviewer": "Allowed by the auto-reviewer",
35
- "deniedByReviewer": "Denied by the auto-reviewer",
36
+ "allowedByReviewer": "Auto-reviewer approved",
37
+ "deniedByReviewer": "Auto-reviewer denied",
36
38
  "approvalExpired": "Expired without an answer",
37
39
  "approvalTimedOut": "Denied: no answer in time",
38
- "reviewTimedOut": "Denied: the auto-reviewer timed out",
39
- "reviewFailed": "Denied: the auto-reviewer failed",
40
+ "reviewTimedOut": "Auto-review timed out",
41
+ "reviewFailed": "Auto-review failed",
40
42
  "writeOwnAnswer": "Write my own answer…",
41
43
  "subagent": "Task",
42
44
  "tasks": "Tasks",
@@ -48,7 +50,7 @@
48
50
  "approvalDenied": "Declined",
49
51
  "approvalRequestExpired": "This request expired. Ask again to run it.",
50
52
  "approvalWaitingOn": "Waiting for {name} to answer",
51
- "feedbackLabel": "Feedback for the agent",
53
+ "feedbackLabel": "Feedback for the assistant",
52
54
  "ownAnswerLabel": "Your answer",
53
55
  "typeYourAnswer": "Type your answer…",
54
56
  "questionsLabel": "Questions",
@@ -122,7 +124,10 @@
122
124
  "remove": "Remove queued message",
123
125
  "waiting": "Queued · sends when this reply finishes",
124
126
  "waitingNextStep": "Queued · reaches the agent after its current step",
125
- "handedOver": "Sent to the running turn"
127
+ "handedOver": "Sent to the running turn",
128
+ "edit": "Edit",
129
+ "editLabel": "Edit queued messages",
130
+ "editHint": "Press ↑ to edit queued messages"
126
131
  },
127
132
  "paste": {
128
133
  "title": "Pasted text",
@@ -131,7 +136,58 @@
131
136
  "remove": "Remove paste"
132
137
  },
133
138
  "thinking": {
134
- "thoughtProcess": "Thought process"
139
+ "label": "Thinking",
140
+ "ellipsis": "Thinking…",
141
+ "thoughtFor": "Thought for {duration}",
142
+ "thoughtProcess": "Thought process",
143
+ "activity": "Activity",
144
+ "ranToolCalls": "{count, plural, one {Ran # tool call} other {Ran # tool calls}}",
145
+ "ranToolCallsAs": "{count, plural, one {Ran # tool call as {name}} other {Ran # tool calls as {name}}}"
146
+ },
147
+ "activity": {
148
+ "tokens": "↑{input} ↓{output} tokens",
149
+ "stop": "Stop"
150
+ },
151
+ "input": {
152
+ "stopGenerating": "Stop generating (Escape)",
153
+ "loadingCommands": "Loading commands…"
154
+ },
155
+ "thread": {
156
+ "jumpToPrompt": "Go to message: {text}"
157
+ },
158
+ "find": {
159
+ "label": "Find in conversation",
160
+ "count": "{current, number} of {total, number}",
161
+ "countCapped": "{current, number} of {total, number}+",
162
+ "none": "No results",
163
+ "previous": "Previous match",
164
+ "next": "Next match",
165
+ "close": "Close find"
166
+ },
167
+ "chrome": {
168
+ "jumpToLatest": "Jump to latest"
169
+ },
170
+ "messageMeta": {
171
+ "copyLabel": "message"
172
+ },
173
+ "attachmentManager": {
174
+ "unnamedImage": "Image attachment",
175
+ "unnamedFile": "File",
176
+ "open": "Open {name}",
177
+ "download": "Download {name}",
178
+ "previousImage": "Previous image",
179
+ "nextImage": "Next image",
180
+ "imagePosition": "{position, number} of {total, number}",
181
+ "fullImageFailed": "Couldn't load the full image. Showing a preview."
182
+ },
183
+ "markdownImage": {
184
+ "untitled": "Image",
185
+ "open": "Open {name} on GitHub"
186
+ },
187
+ "sidebar": {
188
+ "openSidebar": "Open sidebar",
189
+ "closeSidebar": "Close sidebar",
190
+ "manageProviders": "Manage providers"
135
191
  },
136
192
  "modelPicker": {
137
193
  "choose": "Model",
@@ -1,5 +1,11 @@
1
1
  {
2
2
  "title": "pw code",
3
+ "ago": {
4
+ "now": "now",
5
+ "minutes": "{n}m",
6
+ "hours": "{n}h",
7
+ "days": "{n}d"
8
+ },
3
9
  "sidebar": {
4
10
  "label": "Sessions",
5
11
  "listNoun": "sessions",
@@ -7,6 +13,7 @@
7
13
  "search": "Search sessions",
8
14
  "find": "Find in this session",
9
15
  "noSessions": "No sessions open yet",
16
+ "loading": "Loading sessions…",
10
17
  "open": "Open sidebar",
11
18
  "close": "Close sidebar",
12
19
  "untitled": "Untitled",
@@ -29,7 +36,6 @@
29
36
  "renameLabel": "Session name",
30
37
  "renamePlaceholder": "Enter a new name",
31
38
  "renameAction": "Rename",
32
- "moreOptions": "More options",
33
39
  "groupNeedsYou": "Needs you",
34
40
  "groupActive": "Active",
35
41
  "groupInactive": "Inactive",
@@ -45,8 +51,6 @@
45
51
  "deleteGroupTitle": "Delete group",
46
52
  "deleteGroupBody": "“{name}” will be removed. Its sessions stay in the list.",
47
53
  "groupsNeedUpdate": "Update pw on {machine} to keep its sessions in groups",
48
- "groupWaiting": "{count, plural, one {# session needs you} other {# sessions need you}}",
49
- "groupRunning": "{count, plural, one {# session running} other {# sessions running}}",
50
54
  "pin": "Pin",
51
55
  "unpin": "Unpin",
52
56
  "pinned": "Pinned",
@@ -72,9 +76,34 @@
72
76
  "workspacePlaceholder": "/home/you/your-repo",
73
77
  "startButton": "Start session",
74
78
  "chooseMachine": "Choose a machine",
79
+ "findingMachines": "Finding your machines…",
75
80
  "notAnswering": "Not answering ({count})",
76
81
  "chooseDirectory": "Choose a directory",
77
- "otherPath": "Use another path…",
82
+ "browse": "Browse",
83
+ "directorySuggestions": "Directories",
84
+ "useDirectory": "Use this directory",
85
+ "useTypedPath": "Use this path as typed",
86
+ "recentDirectories": "Recent",
87
+ "inThisDirectory": "In this directory",
88
+ "inHomeDirectory": "In the home directory",
89
+ "parentDirectory": "Parent directory",
90
+ "repository": "Git repository",
91
+ "openDirectory": "Open {name}",
92
+ "directoriesLoading": "Listing directories…",
93
+ "directoryUnlisted": "No directory at {path}, or this account cannot read it.",
94
+ "directoriesUnsupported": "pw code on this machine is too old to list its directories. Type a path, or update pw there.",
95
+ "noDirectories": "No directories in here.",
96
+ "noDirectoryMatches": "No directory here matches “{name}”.",
97
+ "directoriesCut": "More directories than fit here. Type a name to narrow them.",
98
+ "pathKeys": {
99
+ "move": "move",
100
+ "use": "use",
101
+ "open": "open",
102
+ "cancel": "cancel"
103
+ },
104
+ "browseTitle": "Choose a directory on {machine}",
105
+ "showHidden": "Show hidden directories",
106
+ "browseCancel": "Cancel",
78
107
  "composerPlaceholder": "Describe a task or ask a question",
79
108
  "choosePermission": "Choose what the agent may do",
80
109
  "howTitle": "Sessions you open show up here",
@@ -126,6 +155,7 @@
126
155
  "archiveWhileRunning": "Wait for the turn to finish, then run /archive.",
127
156
  "archived": "Archived “{name}”. Restore it from the Archived group to use it again.",
128
157
  "steerUncertain": "No answer came back, so this may have reached the agent. Check the transcript before you send it again.",
158
+ "steerAlreadyRead": "The agent already read this message, so it can't be taken back.",
129
159
  "shellStopped": "A hook stopped the agent from reacting: {reason}",
130
160
  "backgroundHint": "({key} to run in background)",
131
161
  "backgroundTitle": "The command keeps running, and the agent carries on without waiting for it",
@@ -158,7 +188,6 @@
158
188
  "waitingForUsageLimit": "Waiting for the usage limit to reset",
159
189
  "waitingForUsageLimitUntil": "Waiting for the usage limit to reset at {time}",
160
190
  "switchClaudeAccount": "Switch account",
161
- "loading": "Loading transcript…",
162
191
  "cleared": "The session was cleared; showing the new session.",
163
192
  "dismiss": "Dismiss",
164
193
  "transcriptLabel": "Session transcript",
@@ -187,9 +216,30 @@
187
216
  "goalAchieved": "✓ Goal achieved ({elapsed} · {turns, plural, one {# turn} other {# turns}} · {tokens} tokens)",
188
217
  "goalContinuing": "○ Goal not yet met… continuing",
189
218
  "goalCheckFailed": "Goal check failed: {error}. The goal is still set and is checked again after the next turn.",
219
+ "goalCheckin": "○ Goal check-in: background work still running ({waited})",
190
220
  "goalUsageLimit": "Usage limit reached. The goal is checked again at {time}.",
191
221
  "goalActive": "goal active",
192
222
  "goalPaused": "goal paused",
223
+ "goalPanel": {
224
+ "title": "Goal",
225
+ "loading": "Reading the goal…",
226
+ "none": "This session has no goal now.",
227
+ "active": "Active",
228
+ "paused": "Paused",
229
+ "checking": "Checking",
230
+ "turns": "{count, plural, one {# turn checked} other {# turns checked}}",
231
+ "tokens": "{tokens} tokens",
232
+ "lastCheck": "Last check",
233
+ "pausedNote": "No turn starts toward it while it is paused. Resuming starts one right away.",
234
+ "edit": "Edit",
235
+ "pause": "Pause",
236
+ "resume": "Resume",
237
+ "clear": "Clear goal",
238
+ "conditionLabel": "Goal condition",
239
+ "editHint": "The run keeps its progress. Bound it in the condition itself, such as “or stop after 20 turns”.",
240
+ "cancel": "Cancel",
241
+ "save": "Save"
242
+ },
193
243
  "addedDirectory": "Added working directory: {path}",
194
244
  "addedDirectoryAndMore": "{path} and {count, plural, one {# more working directory} other {# more working directories}}",
195
245
  "workingDirectory": "Working directory: {path}",
@@ -225,6 +275,11 @@
225
275
  "subagentMessage": "Message from {name}",
226
276
  "commandCompleted": "Background command \"{name}\" completed (exit code 0)",
227
277
  "commandFailed": "Background command \"{name}\" failed with exit code {code}",
278
+ "monitorEvent": "Monitor event: {line} · {name}",
279
+ "monitorEnded": "Monitor \"{name}\" stream ended",
280
+ "monitorFailed": "Monitor \"{name}\" script failed (exit {code})",
281
+ "monitorExpired": "Monitor \"{name}\" expired after {elapsed} with {count, plural, =0 {no events} one {# event} other {# events}} delivered",
282
+ "monitorFlooded": "Monitor \"{name}\" stopped after {elapsed} of too much output",
228
283
  "agentEnded": "Agent \"{name}\" {outcome, select, failed {failed} other {finished}}",
229
284
  "agentEndedAfter": "Agent \"{name}\" {outcome, select, failed {failed} other {finished}} · {elapsed}",
230
285
  "expandAll": "Expand all",
@@ -283,6 +338,14 @@
283
338
  "plan": "The workspace is left unchanged while a plan is drafted."
284
339
  }
285
340
  },
341
+ "allocation": {
342
+ "notRatedInUsd": "Not rated in USD",
343
+ "noBudget": "No budget set",
344
+ "noActivePeriod": "No active period",
345
+ "budgetSpent": "Budget used up",
346
+ "noAccess": "Not shared with you to bill",
347
+ "budgetExceeded": "Budget exceeded"
348
+ },
286
349
  "dash": {
287
350
  "needsYou": "Needs you",
288
351
  "waitingFor": "waiting {when}",
@@ -304,10 +367,7 @@
304
367
  "loadingUsage": "Loading usage…",
305
368
  "signedOut": "Not signed in",
306
369
  "usageUnavailable": "Usage unavailable",
307
- "current": "Selected account",
308
370
  "loginOnHost": "To sign in, run /claude-code in pw code on this host.",
309
- "fiveHour": "5h {percent} used",
310
- "week": "Week {percent} used",
311
371
  "resets": "resets {time}",
312
372
  "platformModels": "Platform models",
313
373
  "shortAccount": "Account",
@@ -24,19 +24,21 @@
24
24
  "denyPath": "No, denegar",
25
25
  "allowCall": "Sí, permitir esta llamada",
26
26
  "denyCall": "No, denegar esta llamada",
27
- "denyWithFeedback": "No, y dar indicaciones al agente",
28
- "feedbackPlaceholder": "Dile al agente qué hacer en su lugar…",
27
+ "denyWithFeedback": "No, y decirle al asistente por qué",
28
+ "feedbackPlaceholder": "Dile al asistente qué hacer en su lugar…",
29
29
  "answered": "Respondido",
30
- "allowedBy": "Permitido por {name}",
31
- "deniedBy": "Denegado por {name}",
30
+ "allowedBy": "{name} aprobó",
31
+ "allowedWithChangesBy": "{name} aprobó con cambios",
32
+ "deniedBy": "{name} denegó",
32
33
  "allowed": "Permitido",
34
+ "allowedWithChanges": "Permitido con cambios",
33
35
  "denied": "Denegado",
34
- "allowedByReviewer": "Permitido por el revisor automático",
35
- "deniedByReviewer": "Denegado por el revisor automático",
36
+ "allowedByReviewer": "El revisor automático aprobó",
37
+ "deniedByReviewer": "El revisor automático denegó",
36
38
  "approvalExpired": "Caducó sin respuesta",
37
39
  "approvalTimedOut": "Denegado: sin respuesta a tiempo",
38
- "reviewTimedOut": "Denegado: el revisor automático agotó el tiempo",
39
- "reviewFailed": "Denegado: el revisor automático falló",
40
+ "reviewTimedOut": "La revisión automática agotó el tiempo",
41
+ "reviewFailed": "La revisión automática falló",
40
42
  "writeOwnAnswer": "Escribir mi propia respuesta…",
41
43
  "subagent": "Tarea",
42
44
  "tasks": "Tareas",
@@ -48,7 +50,7 @@
48
50
  "approvalDenied": "Rechazado",
49
51
  "approvalRequestExpired": "Esta solicitud caducó. Vuelve a pedirla para ejecutarla.",
50
52
  "approvalWaitingOn": "Esperando la respuesta de {name}",
51
- "feedbackLabel": "Indicaciones para el agente",
53
+ "feedbackLabel": "Comentarios para el asistente",
52
54
  "ownAnswerLabel": "Tu respuesta",
53
55
  "typeYourAnswer": "Escribe tu respuesta…",
54
56
  "questionsLabel": "Preguntas",
@@ -122,7 +124,10 @@
122
124
  "remove": "Quitar mensaje en cola",
123
125
  "waiting": "En cola · se envía cuando termine esta respuesta",
124
126
  "waitingNextStep": "En cola · llega al agente tras su paso actual",
125
- "handedOver": "Enviado al turno en curso"
127
+ "handedOver": "Enviado al turno en curso",
128
+ "edit": "Editar",
129
+ "editLabel": "Editar mensajes en cola",
130
+ "editHint": "Pulsa ↑ para editar los mensajes en cola"
126
131
  },
127
132
  "paste": {
128
133
  "title": "Texto pegado",
@@ -131,7 +136,58 @@
131
136
  "remove": "Quitar texto pegado"
132
137
  },
133
138
  "thinking": {
134
- "thoughtProcess": "Razonamiento"
139
+ "label": "Pensando",
140
+ "ellipsis": "Pensando...",
141
+ "thoughtFor": "Pensó durante {duration}",
142
+ "thoughtProcess": "Razonamiento",
143
+ "activity": "Actividad",
144
+ "ranToolCalls": "{count, plural, one {Ejecutó # llamada a herramienta} other {Ejecutó # llamadas a herramientas}}",
145
+ "ranToolCallsAs": "{count, plural, one {Ejecutó # llamada a herramienta como {name}} other {Ejecutó # llamadas a herramientas como {name}}}"
146
+ },
147
+ "activity": {
148
+ "tokens": "↑{input} ↓{output} tokens",
149
+ "stop": "Detener"
150
+ },
151
+ "input": {
152
+ "stopGenerating": "Detener generación (Escape)",
153
+ "loadingCommands": "Cargando comandos..."
154
+ },
155
+ "thread": {
156
+ "jumpToPrompt": "Ir al mensaje: {text}"
157
+ },
158
+ "find": {
159
+ "label": "Buscar en la conversación",
160
+ "count": "{current, number} de {total, number}",
161
+ "countCapped": "{current, number} de {total, number}+",
162
+ "none": "Sin resultados",
163
+ "previous": "Coincidencia anterior",
164
+ "next": "Coincidencia siguiente",
165
+ "close": "Cerrar búsqueda"
166
+ },
167
+ "chrome": {
168
+ "jumpToLatest": "Ir a lo más reciente"
169
+ },
170
+ "messageMeta": {
171
+ "copyLabel": "mensaje"
172
+ },
173
+ "attachmentManager": {
174
+ "unnamedImage": "Imagen adjunta",
175
+ "unnamedFile": "Archivo",
176
+ "open": "Abrir {name}",
177
+ "download": "Descargar {name}",
178
+ "previousImage": "Imagen anterior",
179
+ "nextImage": "Imagen siguiente",
180
+ "imagePosition": "{position, number} de {total, number}",
181
+ "fullImageFailed": "No se pudo cargar la imagen completa. Se muestra una vista previa."
182
+ },
183
+ "markdownImage": {
184
+ "untitled": "Imagen",
185
+ "open": "Abrir {name} en GitHub"
186
+ },
187
+ "sidebar": {
188
+ "openSidebar": "Abrir barra lateral",
189
+ "closeSidebar": "Cerrar barra lateral",
190
+ "manageProviders": "Gestionar proveedores"
135
191
  },
136
192
  "modelPicker": {
137
193
  "choose": "Modelo",