@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,33 @@
1
+ import { claudeApi } from "./claudeApi.js";
2
+ import { commandsApi } from "./commandsApi.js";
3
+ import { reachedByFeed, sessionEvents } from "./sessionEvents.js";
4
+ import { sessionsApi } from "./sessionsApi.js";
5
+ import { settingsApi } from "./settingsApi.js";
6
+ import { useMemo } from "react";
7
+ // src/createPwCodeApi.ts
8
+ /** The calls and data hooks of pw code sessions over the host's API client,
9
+ * which carries its base URL and signs its requests. Create it once per
10
+ * client: its hooks share SWR cache entries keyed as
11
+ * `@parallelworks/client/swr`'s are, and the open feeds it counts are its own. */
12
+ function createPwCodeApi(client, options = {}) {
13
+ const routes = client;
14
+ const sessions = sessionsApi(routes);
15
+ const { useSessionEvents, useFedMachines } = sessionEvents(options);
16
+ /** The listing's machines. One with a session feed open counts as connected
17
+ * whatever the poll says: the feed is the machine answering, and the polled
18
+ * listing can lose a machine it still reaches. */
19
+ function useMachines() {
20
+ const { data } = sessions.useSessions();
21
+ const fed = useFedMachines();
22
+ return useMemo(() => reachedByFeed(data?.machines ?? [], fed), [data, fed]);
23
+ }
24
+ return {
25
+ ...sessions,
26
+ ...commandsApi(routes),
27
+ ...claudeApi(routes),
28
+ ...settingsApi(routes),
29
+ useMachines,
30
+ useSessionEvents
31
+ };
32
+ }
33
+ export { createPwCodeApi };
@@ -0,0 +1,12 @@
1
+ import type { PwCodeTranslator } from './messages.js';
2
+ export interface HowSessionsAppearStep {
3
+ before: string;
4
+ /** What to run, offered for copying. */
5
+ command: string;
6
+ after?: string | undefined;
7
+ }
8
+ /** How a session gets listed: nothing is until its owner opens it to remote control. */
9
+ export declare function howSessionsAppear(t: PwCodeTranslator<'agents'>): {
10
+ title: string;
11
+ steps: HowSessionsAppearStep[];
12
+ };
@@ -0,0 +1,24 @@
1
+ // src/howSessionsAppear.ts
2
+ /** How a session gets listed: nothing is until its owner opens it to remote control. */
3
+ function howSessionsAppear(t) {
4
+ return {
5
+ title: t("start.howTitle"),
6
+ steps: [
7
+ {
8
+ before: t("start.howRemoteBefore"),
9
+ command: "/rc",
10
+ after: t("start.howRemoteAfter")
11
+ },
12
+ {
13
+ before: t("start.howNewBefore"),
14
+ command: "pw code --remote"
15
+ },
16
+ {
17
+ before: t("start.howAllBefore"),
18
+ command: "/settings",
19
+ after: t("start.howAllAfter")
20
+ }
21
+ ]
22
+ };
23
+ }
24
+ export { howSessionsAppear };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,41 @@
1
- export type { PwCodeAddedDirectory, PwCodeAllowedDirectory, PwCodeApprovalAnswer, PwCodeApprovalRequest, PwCodeAskOption, PwCodeGoalStatus, PwCodeHistoryItem, PwCodeHistoryKind, PwCodeImage, PwCodeImageRef, PwCodePasteView, PwCodeSessionDetail, PwCodeSessionState, PwCodeSessionStatus, PwCodeStreamEvent, } from './types.js';
1
+ export type { PwCodeAddedDirectory, PwCodeAllowedDirectory, PwCodeApprovalAnswer, PwCodeApprovalRequest, PwCodeAskOption, PwCodeGoalStatus, PwCodeHistoryItem, PwCodeHistoryKind, PwCodeImage, PwCodeImageRef, PwCodePasteView, PwCodeSessionDetail, PwCodeSessionState, PwCodeSessionStatus, PwCodeStreamEvent, PwCodeSubagentDetail, PwCodeSubagentUsage, } from './types.js';
2
+ export { type PwCodeClient, type PwCodeComponents, type PwCodePaths, QUERY_KEY_PREFIX, } from './apiClient.js';
3
+ export { createPwCodeApi, type PwCodeApi, type PwCodeApiOptions, } from './createPwCodeApi.js';
4
+ export { cachedCopyCurrent, pasteRefs, patchPullRequestStates, patchSessionNames, pullRequestsRefreshMs, type PwCodePasteUpload, SESSIONS_REFRESH_MS, useLastReadAt, } from './sessionsApi.js';
5
+ export { type PwCodeLastModel, type PwCodeStartImages, type PwCodeStartLocation, type PwCodeStartMachine, type PwCodeStartModel, type PwCodeStartSession, startingMode, startMachines, useStartLocation, useStartModel, useStartPermissionMode, useStartSession, } from './startSession.js';
6
+ export { canRunModel, isClaudeModel, modelLabel, pickerCommand, type PwCodeModelCatalog, type PwCodePicker, runsClaude, useModelCatalog, } from './models.js';
7
+ export { allowedAccess, cutSpacing, cutToFit, directoryScopes, isSavedDirectory, lastSegmentAt, pathSegments, type PwCodeDirectoryScope, shortestPath, useRemoveSessionDirectory, } from './workingDirectories.js';
8
+ export { type PwCodeWorktreeLines, type PwCodeWorktreeWork, useWorktreeChoice, worktreeWork, } from './worktreeChoice.js';
9
+ export { backgroundOfferDelayMs, type CommandOutcome, type SlashDeps, } from './commandsApi.js';
10
+ export { type PwCodeSessionSettings, type PwCodeSessionSettingsOptions, } from './settingsApi.js';
11
+ export { chatHandoffPrompt, type PwCodeHandoffChat } from './chatHandoff.js';
12
+ export { type ClaudeLogin, type ClaudeLoginEvent, type ClaudeLoginInput, claudeLoginFinished, } from './claudeApi.js';
13
+ export { type ClaudeSignInCalls, type ClaudeSignInState, type ClaudeSignInTerminal, type ClaudeTerminalSize, useClaudeSignIn, } from './claudeSignIn.js';
14
+ export { type ClaudeAccount, type ClaudeAccountAction, type ClaudeAccountCalls, type ClaudeAccountPanelState, type ClaudeAccountUsage, type ClaudeAccountView, type ClaudeUsageLimit, type ClaudeUsageReset, claudeAccountName, claudeSignInRequired, useClaudeAccountName, useClaudeAccountPanel, useClaudeAccountRemoval, useClaudeAccountUsage, } from './claudeAccounts.js';
15
+ export { changesSubagents, reachedByFeed, sessionEventsPath, } from './sessionEvents.js';
2
16
  export { githubAttachmentAsset, isSessionImageUrl, sessionGitHubImageUrl, sessionImageUrl, } from './images.js';
3
- export { sessionStatusVariant } from './session.js';
4
- export { appendOwnMessage, appendSteeredMessage, applyStreamEvent, approvalAnswerBody, approvalToPart, bashRunning, type CompactionNotice, dropMessage, type GoalNotice, historyToMessages, type ImageUrl, initialTranscript, liveSessionStatus, pendingApprovals, pendingMessages, type RecapNotice, resolveApprovalEverywhere, reviewingCount, resumeCursor, type StreamEffect, type TranscriptState, type TranscriptWords, turnRunning, type TurnVerb, } from './transcript.js';
17
+ export { type PwCodePalette, type PwCodeSlashCommand, paletteOptions, type SlashAction, shellCommand, slashAction, steerMayHaveLanded, } from './command.js';
18
+ export { canStartHere, isComputer, isConnected, isMachineDown, isUnreachableError, machinesById, type PwCodeMachine, splitMachines, type TerminalHandoff, terminalHandoff, } from './machine.js';
19
+ export { isPwCodeLocale, loadPwCodeMessages, type PwCodeLocale, type PwCodeMessages, type PwCodeNamespace, type PwCodeTranslator, pwCodeLocales, pwCodeNamespaces, usePwCodeTranslations, } from './messages.js';
20
+ export { turnDuration, useCompactionNotice, useGoalNotice, useRecapNotice, useResumeTime, useTranscriptWords, } from './notices.js';
21
+ export { useCompactAgo } from './ago.js';
22
+ export { pastedPullRequestLabel, pullRequestKind, pullRequestLabel, pullRequestShortLabel, } from './pullRequest.js';
23
+ export { donePullRequestsToFold, foldPullRequests, isPullRequestState, type LabeledPullRequest, labeledPullRequests, orderPullRequests, type PullRequestFold, type PullRequestFoldGroup, type PullRequestState, type PullRequestStateOf, type PullRequestWords, pullRequestFoldGroups, pullRequestGroupState, pullRequestStateBreaks, pullRequestStateOf, pullRequestWords, } from './pullRequestList.js';
24
+ export { type PwCodeContextRow, sessionContextRow } from './contextRow.js';
25
+ export { handoffCommandParts, type TerminalHandoffPanel, terminalHandoffPanel, } from './terminalHandoffPanel.js';
26
+ export { type UsageLimitWait, useUsageLimitWait } from './usageLimit.js';
27
+ export { type PwCodeWorktreeRef, useFollowedWorktree } from './sessionHeader.js';
28
+ export { type HowSessionsAppearStep, howSessionsAppear, } from './howSessionsAppear.js';
29
+ export { isActiveSession, isArchived, isMidTurn, isSession, needsYou, newestFirst, pathBasename, type PwCodePendingApprovals, type PwCodeSession, type RecentDirectory, recentDirectories, sessionClock, sessionKey, sessionStatusVariant, sessionVariant, sharedStoreCopy, spansMachines, triageSessions, waitsOnAnswer, } from './session.js';
30
+ export { groupOf, inFlightFirst, isWorking, type ListedGroup, listGroups, patchGroup, type SessionGroup, type SessionGroups, useSessionGroups, } from './sessionGroups.js';
31
+ export { groupSectionKey, isUngroupedTarget, searchedSessions, type SessionDropTarget, type SessionList, type SessionListOptions, type SessionSection, type SessionSectionKind, sessionMark, sessionRowState, sessionSearchText, sessionSections, showsPinMark, useRetainedSessions, useSessionList, withArchiveSection, } from './sessionList.js';
32
+ export { type OpenSessionRef, type SessionActions, type SessionActionsOptions, type SessionConfirmation, type SessionMenuAction, type SessionMenuCommand, type SessionMenuItem, type SessionRename, type SessionRowKey, type SessionSubmenu, useSessionActions, } from './sessionActions.js';
33
+ export { appendOwnMessage, appendSteeredMessage, applyStreamEvent, approvalAnswerBody, approvalToPart, bashRunning, type CompactionNotice, dropMessage, type GoalNotice, historyToMessages, type ImageUrl, initialTranscript, liveSessionStatus, pendingApprovals, pendingMessages, type RecapNotice, resolveApprovalEverywhere, reviewingCount, resumeCursor, type StreamEffect, subagentFrame, subagentSessionDetail, type TranscriptState, type TranscriptWords, turnRunning, type TurnVerb, } from './transcript.js';
34
+ export { useToolStrings } from './toolStrings.js';
5
35
  export { type PwCodeSendResult, type PwCodeSteerResult, type PwCodeWithdrawResult, usePwCodeTranscript, } from './useTranscript.js';
36
+ export { type PwCodeConversation, type PwCodeConversationState, type PwCodeNotice, transcriptMessages, usePwCodeConversation, } from './useConversation.js';
37
+ export { promptHistory, type PwCodeCommandOutput, type PwCodeComposer, type PwCodeComposerHistory, useCommandOutputs, usePwCodeComposer, } from './useComposer.js';
38
+ export { type PwCodeSubagent, usePwCodeSubagent } from './useSubagent.js';
39
+ export { IMAGE_MAX_BYTES, IMAGE_MAX_SIDE, IMAGE_READ_MAX_BYTES, IMAGE_TYPES, nextImageSeq, type PwCodeComposerImage, type PwCodeImageFile, PwCodeImageTooLarge, type PwCodeImageType, type PwCodeSavedImage, type PwCodeTakenImages, useComposerImages, } from './useComposerImages.js';
40
+ export { type PwCodePresence, recapAfterLeavingMs, recapAfterTurnMs, useAwayRecap, } from './useAwayRecap.js';
41
+ export { composerState, IMAGE_PLACEHOLDER, machineHint, rememberSentPrompt, sessionLabel, sessionStateText, sessionStatusText, } from './wording.js';
package/dist/index.js CHANGED
@@ -1,5 +1,40 @@
1
+ import { QUERY_KEY_PREFIX } from "./apiClient.js";
2
+ import { createPwCodeApi } from "./createPwCodeApi.js";
3
+ import { SESSIONS_REFRESH_MS, cachedCopyCurrent, pasteRefs, patchPullRequestStates, patchSessionNames, pullRequestsRefreshMs, useLastReadAt } from "./sessionsApi.js";
4
+ import { startMachines, startingMode, useStartLocation, useStartModel, useStartPermissionMode, useStartSession } from "./startSession.js";
5
+ import { canRunModel, isClaudeModel, modelLabel, pickerCommand, runsClaude, useModelCatalog } from "./models.js";
6
+ import { allowedAccess, cutSpacing, cutToFit, directoryScopes, isSavedDirectory, lastSegmentAt, pathSegments, shortestPath, useRemoveSessionDirectory } from "./workingDirectories.js";
7
+ import { useWorktreeChoice, worktreeWork } from "./worktreeChoice.js";
8
+ import { backgroundOfferDelayMs } from "./commandsApi.js";
9
+ import { chatHandoffPrompt } from "./chatHandoff.js";
10
+ import { claudeLoginFinished } from "./claudeApi.js";
11
+ import { useClaudeSignIn } from "./claudeSignIn.js";
12
+ import { claudeAccountName, claudeSignInRequired, useClaudeAccountName, useClaudeAccountPanel, useClaudeAccountRemoval, useClaudeAccountUsage } from "./claudeAccounts.js";
13
+ import { changesSubagents, reachedByFeed, sessionEventsPath } from "./sessionEvents.js";
1
14
  import { githubAttachmentAsset, isSessionImageUrl, sessionGitHubImageUrl, sessionImageUrl } from "./images.js";
2
- import { sessionStatusVariant } from "./session.js";
3
- import { appendOwnMessage, appendSteeredMessage, applyStreamEvent, approvalAnswerBody, approvalToPart, bashRunning, dropMessage, historyToMessages, initialTranscript, liveSessionStatus, pendingApprovals, pendingMessages, resolveApprovalEverywhere, resumeCursor, reviewingCount, turnRunning } from "./transcript.js";
15
+ import { paletteOptions, shellCommand, slashAction, steerMayHaveLanded } from "./command.js";
16
+ import { canStartHere, isComputer, isConnected, isMachineDown, isUnreachableError, machinesById, splitMachines, terminalHandoff } from "./machine.js";
17
+ import { isPwCodeLocale, loadPwCodeMessages, pwCodeLocales, pwCodeNamespaces, usePwCodeTranslations } from "./messages.js";
18
+ import { turnDuration, useCompactionNotice, useGoalNotice, useRecapNotice, useResumeTime, useTranscriptWords } from "./notices.js";
19
+ import { useCompactAgo } from "./ago.js";
20
+ import { pastedPullRequestLabel, pullRequestKind, pullRequestLabel, pullRequestShortLabel } from "./pullRequest.js";
21
+ import { donePullRequestsToFold, foldPullRequests, isPullRequestState, labeledPullRequests, orderPullRequests, pullRequestFoldGroups, pullRequestGroupState, pullRequestStateBreaks, pullRequestStateOf, pullRequestWords } from "./pullRequestList.js";
22
+ import { sessionContextRow } from "./contextRow.js";
23
+ import { handoffCommandParts, terminalHandoffPanel } from "./terminalHandoffPanel.js";
24
+ import { useUsageLimitWait } from "./usageLimit.js";
25
+ import { useFollowedWorktree } from "./sessionHeader.js";
26
+ import { howSessionsAppear } from "./howSessionsAppear.js";
27
+ import { isActiveSession, isArchived, isMidTurn, isSession, needsYou, newestFirst, pathBasename, recentDirectories, sessionClock, sessionKey, sessionStatusVariant, sessionVariant, sharedStoreCopy, spansMachines, triageSessions, waitsOnAnswer } from "./session.js";
28
+ import { groupOf, inFlightFirst, isWorking, listGroups, patchGroup, useSessionGroups } from "./sessionGroups.js";
29
+ import { groupSectionKey, isUngroupedTarget, searchedSessions, sessionMark, sessionRowState, sessionSearchText, sessionSections, showsPinMark, useRetainedSessions, useSessionList, withArchiveSection } from "./sessionList.js";
30
+ import { useSessionActions } from "./sessionActions.js";
31
+ import { appendOwnMessage, appendSteeredMessage, applyStreamEvent, approvalAnswerBody, approvalToPart, bashRunning, dropMessage, historyToMessages, initialTranscript, liveSessionStatus, pendingApprovals, pendingMessages, resolveApprovalEverywhere, resumeCursor, reviewingCount, subagentFrame, subagentSessionDetail, turnRunning } from "./transcript.js";
32
+ import { useToolStrings } from "./toolStrings.js";
4
33
  import { usePwCodeTranscript } from "./useTranscript.js";
5
- export { appendOwnMessage, appendSteeredMessage, applyStreamEvent, approvalAnswerBody, approvalToPart, bashRunning, dropMessage, githubAttachmentAsset, historyToMessages, initialTranscript, isSessionImageUrl, liveSessionStatus, pendingApprovals, pendingMessages, resolveApprovalEverywhere, resumeCursor, reviewingCount, sessionGitHubImageUrl, sessionImageUrl, sessionStatusVariant, turnRunning, usePwCodeTranscript };
34
+ import { transcriptMessages, usePwCodeConversation } from "./useConversation.js";
35
+ import { promptHistory, useCommandOutputs, usePwCodeComposer } from "./useComposer.js";
36
+ import { usePwCodeSubagent } from "./useSubagent.js";
37
+ import { IMAGE_MAX_BYTES, IMAGE_MAX_SIDE, IMAGE_READ_MAX_BYTES, IMAGE_TYPES, PwCodeImageTooLarge, nextImageSeq, useComposerImages } from "./useComposerImages.js";
38
+ import { recapAfterLeavingMs, recapAfterTurnMs, useAwayRecap } from "./useAwayRecap.js";
39
+ import { IMAGE_PLACEHOLDER, composerState, machineHint, rememberSentPrompt, sessionLabel, sessionStateText, sessionStatusText } from "./wording.js";
40
+ export { IMAGE_MAX_BYTES, IMAGE_MAX_SIDE, IMAGE_PLACEHOLDER, IMAGE_READ_MAX_BYTES, IMAGE_TYPES, PwCodeImageTooLarge, QUERY_KEY_PREFIX, SESSIONS_REFRESH_MS, allowedAccess, appendOwnMessage, appendSteeredMessage, applyStreamEvent, approvalAnswerBody, approvalToPart, backgroundOfferDelayMs, bashRunning, cachedCopyCurrent, canRunModel, canStartHere, changesSubagents, chatHandoffPrompt, claudeAccountName, claudeLoginFinished, claudeSignInRequired, composerState, createPwCodeApi, cutSpacing, cutToFit, directoryScopes, donePullRequestsToFold, dropMessage, foldPullRequests, githubAttachmentAsset, groupOf, groupSectionKey, handoffCommandParts, historyToMessages, howSessionsAppear, inFlightFirst, initialTranscript, isActiveSession, isArchived, isClaudeModel, isComputer, isConnected, isMachineDown, isMidTurn, isPullRequestState, isPwCodeLocale, isSavedDirectory, isSession, isSessionImageUrl, isUngroupedTarget, isUnreachableError, isWorking, labeledPullRequests, lastSegmentAt, listGroups, liveSessionStatus, loadPwCodeMessages, machineHint, machinesById, modelLabel, needsYou, newestFirst, nextImageSeq, orderPullRequests, paletteOptions, pasteRefs, pastedPullRequestLabel, patchGroup, patchPullRequestStates, patchSessionNames, pathBasename, pathSegments, pendingApprovals, pendingMessages, pickerCommand, promptHistory, pullRequestFoldGroups, pullRequestGroupState, pullRequestKind, pullRequestLabel, pullRequestShortLabel, pullRequestStateBreaks, pullRequestStateOf, pullRequestWords, pullRequestsRefreshMs, pwCodeLocales, pwCodeNamespaces, reachedByFeed, recapAfterLeavingMs, recapAfterTurnMs, recentDirectories, rememberSentPrompt, resolveApprovalEverywhere, resumeCursor, reviewingCount, runsClaude, searchedSessions, sessionClock, sessionContextRow, sessionEventsPath, sessionGitHubImageUrl, sessionImageUrl, sessionKey, sessionLabel, sessionMark, sessionRowState, sessionSearchText, sessionSections, sessionStateText, sessionStatusText, sessionStatusVariant, sessionVariant, sharedStoreCopy, shellCommand, shortestPath, showsPinMark, slashAction, spansMachines, splitMachines, startMachines, startingMode, steerMayHaveLanded, subagentFrame, subagentSessionDetail, terminalHandoff, terminalHandoffPanel, transcriptMessages, triageSessions, turnDuration, turnRunning, useAwayRecap, useClaudeAccountName, useClaudeAccountPanel, useClaudeAccountRemoval, useClaudeAccountUsage, useClaudeSignIn, useCommandOutputs, useCompactAgo, useCompactionNotice, useComposerImages, useFollowedWorktree, useGoalNotice, useLastReadAt, useModelCatalog, usePwCodeComposer, usePwCodeConversation, usePwCodeSubagent, usePwCodeTranscript, usePwCodeTranslations, useRecapNotice, useRemoveSessionDirectory, useResumeTime, useRetainedSessions, useSessionActions, useSessionGroups, useSessionList, useStartLocation, useStartModel, useStartPermissionMode, useStartSession, useToolStrings, useTranscriptWords, useUsageLimitWait, useWorktreeChoice, waitsOnAnswer, withArchiveSection, worktreeWork };
@@ -0,0 +1,162 @@
1
+ // locales/en/agentTranscript.json
2
+ var 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
+ var 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
+ var 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
+ var paste = {
128
+ "title": "Pasted text",
129
+ "lines": "{count, plural, one {# line} other {# lines}}",
130
+ "saving": "Saving…",
131
+ "remove": "Remove paste"
132
+ };
133
+ var thinking = { "thoughtProcess": "Thought process" };
134
+ var modelPicker = {
135
+ "choose": "Model",
136
+ "select": "Select a model",
137
+ "search": "Search models…",
138
+ "loading": "Loading models…",
139
+ "failed": "Failed to load models",
140
+ "none": "No models available",
141
+ "sharedBy": "Shared by {owner}"
142
+ };
143
+ var allocationPicker = {
144
+ "choose": "Allocation",
145
+ "placeholder": "Select allocation",
146
+ "search": "Search allocations…"
147
+ };
148
+ var providerIssue = {
149
+ "keyRejected": "API key rejected",
150
+ "unreachable": "Endpoint unreachable"
151
+ };
152
+ var agentTranscript_default = {
153
+ transcript,
154
+ tools,
155
+ queue,
156
+ paste,
157
+ thinking,
158
+ modelPicker,
159
+ allocationPicker,
160
+ providerIssue
161
+ };
162
+ export { allocationPicker, agentTranscript_default as default, modelPicker, paste, providerIssue, queue, thinking, tools, transcript };