@parallelworks/code 0.2.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.
- package/README.md +602 -84
- package/dist/accountApi.d.ts +31 -0
- package/dist/accountApi.js +182 -0
- package/dist/agentSwitcher.d.ts +109 -0
- package/dist/agentSwitcher.js +165 -0
- package/dist/ago.d.ts +8 -0
- package/dist/ago.js +26 -0
- package/dist/allocations.d.ts +41 -0
- package/dist/allocations.js +76 -0
- package/dist/api.d.ts +1213 -66
- package/dist/base64.d.ts +3 -0
- package/dist/base64.js +15 -0
- package/dist/chatHandoff.d.ts +12 -0
- package/dist/chatHandoff.js +27 -0
- package/dist/chatStrings.d.ts +188 -0
- package/dist/chatStrings.js +217 -0
- package/dist/claudeAccounts.d.ts +149 -0
- package/dist/claudeAccounts.js +328 -0
- package/dist/claudeApi.js +1 -1
- package/dist/claudeSignIn.d.ts +80 -0
- package/dist/claudeSignIn.js +249 -0
- package/dist/commandsApi.d.ts +11 -1
- package/dist/commandsApi.js +24 -5
- package/dist/contextRow.d.ts +25 -0
- package/dist/contextRow.js +16 -0
- package/dist/createPwCodeApi.d.ts +52 -5
- package/dist/createPwCodeApi.js +20 -2
- package/dist/directories.d.ts +161 -0
- package/dist/directories.js +301 -0
- package/dist/goal.d.ts +89 -0
- package/dist/goal.js +164 -0
- package/dist/howSessionsAppear.d.ts +12 -0
- package/dist/howSessionsAppear.js +24 -0
- package/dist/imageFit.d.ts +23 -0
- package/dist/imageFit.js +27 -0
- package/dist/images.d.ts +28 -0
- package/dist/images.js +38 -6
- package/dist/index.d.ts +41 -3
- package/dist/index.js +40 -4
- package/dist/loadError.d.ts +8 -0
- package/dist/loadError.js +19 -0
- package/dist/locales/en/agentTranscript.js +75 -22
- package/dist/locales/en/agents.js +76 -14
- package/dist/locales/en.d.ts +129 -21
- package/dist/locales/es/agentTranscript.js +75 -22
- package/dist/locales/es/agents.js +76 -14
- package/dist/locales/ja/agentTranscript.js +78 -25
- package/dist/locales/ja/agents.js +49 -124
- package/dist/locales/ko/agentTranscript.js +75 -22
- package/dist/locales/ko/agents.js +76 -14
- package/dist/locales/zh/agentTranscript.js +73 -20
- package/dist/locales/zh/agents.js +76 -14
- package/dist/machine.d.ts +4 -0
- package/dist/modelPicker.d.ts +79 -0
- package/dist/modelPicker.js +107 -0
- package/dist/models.d.ts +47 -0
- package/dist/models.js +49 -0
- package/dist/notices.d.ts +2 -1
- package/dist/notices.js +75 -21
- package/dist/platformDefaults.d.ts +22 -0
- package/dist/platformDefaults.js +30 -0
- package/dist/preferences.d.ts +78 -0
- package/dist/preferences.js +128 -0
- package/dist/pullRequestList.d.ts +60 -0
- package/dist/pullRequestList.js +125 -0
- package/dist/query.d.ts +6 -2
- package/dist/query.js +85 -10
- package/dist/session.d.ts +10 -2
- package/dist/session.js +12 -8
- package/dist/sessionActions.d.ts +115 -0
- package/dist/sessionActions.js +186 -0
- package/dist/sessionEvents.d.ts +8 -3
- package/dist/sessionEvents.js +10 -5
- package/dist/sessionGroups.d.ts +50 -0
- package/dist/sessionGroups.js +73 -0
- package/dist/sessionHeader.d.ts +14 -0
- package/dist/sessionHeader.js +16 -0
- package/dist/sessionList.d.ts +182 -0
- package/dist/sessionList.js +333 -0
- package/dist/sessionScreen.d.ts +193 -0
- package/dist/sessionScreen.js +213 -0
- package/dist/sessionsApi.d.ts +13 -3
- package/dist/sessionsApi.js +90 -33
- package/dist/settingsApi.d.ts +38 -0
- package/dist/settingsApi.js +151 -0
- package/dist/startPage.d.ts +153 -0
- package/dist/startPage.js +174 -0
- package/dist/startSession.d.ts +172 -0
- package/dist/startSession.js +256 -0
- package/dist/terminalHandoffPanel.d.ts +30 -0
- package/dist/terminalHandoffPanel.js +33 -0
- package/dist/transcript.d.ts +2 -0
- package/dist/transcript.js +62 -26
- package/dist/types.d.ts +11 -1
- package/dist/usageLimit.d.ts +8 -0
- package/dist/usageLimit.js +13 -0
- package/dist/useAwayRecap.d.ts +30 -0
- package/dist/useAwayRecap.js +75 -0
- package/dist/useComposer.d.ts +145 -0
- package/dist/useComposer.js +295 -0
- package/dist/useComposerImages.d.ts +71 -0
- package/dist/useComposerImages.js +218 -0
- package/dist/useComposerPastes.d.ts +70 -0
- package/dist/useComposerPastes.js +130 -0
- package/dist/useConversation.d.ts +199 -0
- package/dist/useConversation.js +314 -0
- package/dist/useSubagent.d.ts +104 -0
- package/dist/useSubagent.js +212 -0
- package/dist/useTranscript.d.ts +23 -3
- package/dist/useTranscript.js +76 -19
- package/dist/wording.js +2 -2
- package/dist/workingDirectories.d.ts +63 -0
- package/dist/workingDirectories.js +95 -0
- package/dist/worktreeChoice.d.ts +31 -0
- package/dist/worktreeChoice.js +38 -0
- package/locales/en/agentTranscript.json +69 -21
- package/locales/en/agents.json +73 -13
- package/locales/es/agentTranscript.json +69 -21
- package/locales/es/agents.json +73 -13
- package/locales/ja/agentTranscript.json +72 -24
- package/locales/ja/agents.json +73 -13
- package/locales/ko/agentTranscript.json +69 -21
- package/locales/ko/agents.json +73 -13
- package/locales/zh/agentTranscript.json +67 -19
- package/locales/zh/agents.json +73 -13
- package/package.json +6 -3
package/dist/images.js
CHANGED
|
@@ -1,22 +1,54 @@
|
|
|
1
1
|
// src/images.ts
|
|
2
2
|
var SESSION_IMAGES = "/api/code/machines/";
|
|
3
|
-
var
|
|
3
|
+
var GITHUB_ORIGIN = /^https:\/\/github\.com(?::443)?(?=[/?#]|$)/i;
|
|
4
|
+
var ENDS_SPACE = /^[\t\n\f\r ]+|[\t\n\f\r ]+$/g;
|
|
5
|
+
var GITHUB_ASSET_PATH = /^\/user-attachments\/assets\/([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})(?:[?#]|$)/;
|
|
4
6
|
/** The full-size image a session's transcript names by ref. */
|
|
5
7
|
function sessionImageUrl(machine, session, ref) {
|
|
6
8
|
return `${SESSION_IMAGES}${encodeURIComponent(machine)}/sessions/${encodeURIComponent(session)}/images/${encodeURIComponent(ref)}`;
|
|
7
9
|
}
|
|
10
|
+
/** The preview of the image `original` serves, as a transcript read with
|
|
11
|
+
* `PREVIEWS_BY_REF` leaves it to be loaded. */
|
|
12
|
+
function sessionImagePreviewUrl(original) {
|
|
13
|
+
return `${original}?preview=true`;
|
|
14
|
+
}
|
|
15
|
+
/** Asks for a session's transcript with each image that has a ref left
|
|
16
|
+
* without its preview. Previews are most of what a transcript with pictures
|
|
17
|
+
* weighs, and the page loads only the ones it draws. A machine whose pw code
|
|
18
|
+
* predates it sends every preview, which draws as before. */
|
|
19
|
+
var PREVIEWS_BY_REF = "refs";
|
|
8
20
|
function isSessionImageUrl(url) {
|
|
9
21
|
return url.startsWith(SESSION_IMAGES) && url.includes("/images/");
|
|
10
22
|
}
|
|
11
23
|
/** The asset id of a file attached on GitHub, which a private repository shows only to its members. */
|
|
12
24
|
function githubAttachmentAsset(src) {
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
if (
|
|
16
|
-
return GITHUB_ASSET_PATH.exec(url.
|
|
25
|
+
const url = src.replace(ENDS_SPACE, "");
|
|
26
|
+
const origin = GITHUB_ORIGIN.exec(url);
|
|
27
|
+
if (!origin) return;
|
|
28
|
+
return GITHUB_ASSET_PATH.exec(url.slice(origin[0].length))?.[1];
|
|
17
29
|
}
|
|
18
30
|
/** A GitHub attachment as the session's machine reads it from a pull request the session opened. */
|
|
19
31
|
function sessionGitHubImageUrl(machine, session, asset) {
|
|
20
32
|
return `${SESSION_IMAGES}${encodeURIComponent(machine)}/sessions/${encodeURIComponent(session)}/github-images/${encodeURIComponent(asset)}`;
|
|
21
33
|
}
|
|
22
|
-
|
|
34
|
+
/** A private repository's GitHub attachment loads only through the session's
|
|
35
|
+
* machine, so that comes first, then GitHub itself. Null for any other image,
|
|
36
|
+
* which loads as it is. */
|
|
37
|
+
function markdownImageSources(src, session) {
|
|
38
|
+
const asset = githubAttachmentAsset(src);
|
|
39
|
+
if (!asset) return null;
|
|
40
|
+
return {
|
|
41
|
+
sources: session ? [sessionGitHubImageUrl(session.machine, session.sessionId, asset), src] : [src],
|
|
42
|
+
link: src
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
/** The link a GitHub attachment becomes once none of its sources loads: its
|
|
46
|
+
* alt text, or the word for an image when it has none. */
|
|
47
|
+
function markdownImageLink(alt, t) {
|
|
48
|
+
const name = alt || t("markdownImage.untitled");
|
|
49
|
+
return {
|
|
50
|
+
name,
|
|
51
|
+
title: t("markdownImage.open", { name })
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export { PREVIEWS_BY_REF, githubAttachmentAsset, isSessionImageUrl, markdownImageLink, markdownImageSources, sessionGitHubImageUrl, sessionImagePreviewUrl, sessionImageUrl };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,17 +2,55 @@ export type { PwCodeAddedDirectory, PwCodeAllowedDirectory, PwCodeApprovalAnswer
|
|
|
2
2
|
export { type PwCodeClient, type PwCodeComponents, type PwCodePaths, QUERY_KEY_PREFIX, } from './apiClient.js';
|
|
3
3
|
export { createPwCodeApi, type PwCodeApi, type PwCodeApiOptions, } from './createPwCodeApi.js';
|
|
4
4
|
export { cachedCopyCurrent, pasteRefs, patchPullRequestStates, patchSessionNames, pullRequestsRefreshMs, type PwCodePasteUpload, SESSIONS_REFRESH_MS, useLastReadAt, } from './sessionsApi.js';
|
|
5
|
-
export {
|
|
5
|
+
export { type PwCodeLastModel, type PwCodeStartControls, type PwCodeStartImages, type PwCodeStartLocation, type PwCodeStartMachine, type PwCodeStartModel, type PwCodeStartPermission, type PwCodeStartSession, startControls, startingMode, startMachines, useStartLocation, useStartModel, useStartPermissionMode, useStartSession, } from './startSession.js';
|
|
6
|
+
export { type PwCodePlatformDefaults, usePlatformDefaults, } from './platformDefaults.js';
|
|
7
|
+
export { chatHandoffStart, machineChip, machineMenu, type PwCodeMachineChoice, type PwCodeMachineMenu, type PwCodeSessionLinkState, type PwCodeStartHandoff, type PwCodeStartScreen, type PwCodeStartSearch, START_SHORTLIST, sessionLinkNotice, shortlistMark, startCommands, startSearch, startShortlist, useSessionLink, useStartScreen, waitingQuestions, waitingSince, } from './startPage.js';
|
|
8
|
+
export { modelGroups, platformModelStatus, providerIssueOf, type PwCodeModelChoice, type PwCodeModelEntry, type PwCodeModelGroup, type PwCodeModelPicker, type PwCodePlatformModelList, useModelPicker, } from './modelPicker.js';
|
|
9
|
+
export { aiAllocations, allocationChoice, allocationProblem, allocationsForType, allocationUsage, billsAllocation, type PwCodeAllocationChoice, type PwCodeAllocationProblem, useModelAllocations, } from './allocations.js';
|
|
10
|
+
export { type PwCodeAccountOptions, type PwCodePlatformModels, PW_CODE_PREVIEW, pwCodeEnabled, } from './accountApi.js';
|
|
11
|
+
export { chatModelPreference, foldedGroupsPreference, lastModelPreference, preferenceKey, type PwCodePreference, type PwCodePreferenceState, sessionGroupsPreference, showHiddenPreference, startAccountPreference, startEffortPreference, startMachinePreference, startModePreference, useLastModelPreference, useStartAccountPreference, useStartDefaultsFromSession, useStartEffortPreference, useStartMachinePreference, useStartModePreference, } from './preferences.js';
|
|
12
|
+
export { canRunModel, isClaudeModel, modelLabel, pickerCommand, type PwCodeModelCatalog, type PwCodePicker, runsClaude, useModelCatalog, } from './models.js';
|
|
13
|
+
export { allowedAccess, cutSpacing, cutToFit, directoryScopes, isSavedDirectory, lastSegmentAt, pathSegments, type PwCodeAddedDirectoryRow, type PwCodeAllowedDirectoryRow, type PwCodeDirectoryScope, type PwCodeSessionDirectories, type PwCodeWorkingDirectoryText, sessionDirectories, shortestPath, useRemoveSessionDirectory, workingDirectoryText, } from './workingDirectories.js';
|
|
14
|
+
export { browseStart, directoryChip, FOLDER_LIMIT, isPathText, isUnlistedDirectory, joinDirectory, listedText, matchingFolders, type PathCompletion, parentDirectory, pathCompletions, pathNote, pathSections, pickedOnClose, type PwCodeDirectories, type PwCodePathRow, type PwCodePathSection, RECENT_LIMIT, splitTypedPath, type TypedPath, typedDirectory, visibleFolders, } from './directories.js';
|
|
15
|
+
export { type PwCodeWorktreeLines, type PwCodeWorktreeWork, useWorktreeChoice, worktreeWork, } from './worktreeChoice.js';
|
|
16
|
+
export { BACKGROUND_TOOL, backgroundOfferDelayMs, type CommandOutcome, offersBackground, type SlashDeps, } from './commandsApi.js';
|
|
17
|
+
export { goalElapsed, goalFacts, type PwCodeGoal, type PwCodeGoalAction, type PwCodeGoalMark, type PwCodeSessionGoal, useGoalElapsed, useSessionGoal, } from './goal.js';
|
|
18
|
+
export type { PwCodeSessionSettings, PwCodeSessionSettingsOptions, } from './settingsApi.js';
|
|
19
|
+
export { chatHandoffPrompt, type PwCodeHandoffChat } from './chatHandoff.js';
|
|
6
20
|
export { type ClaudeLogin, type ClaudeLoginEvent, type ClaudeLoginInput, claudeLoginFinished, } from './claudeApi.js';
|
|
21
|
+
export { type ClaudeSignInCalls, type ClaudeSignInState, type ClaudeSignInTerminal, type ClaudeTerminalSize, canOpenSignInLink, useClaudeSignIn, } from './claudeSignIn.js';
|
|
22
|
+
export { type ClaudeAccount, type ClaudeAccountAction, type ClaudeAccountCalls, type ClaudeAccountDetail, type ClaudeAccountPanelState, type ClaudeAccountUsage, type ClaudeAccountView, type ClaudeUsageLimit, type ClaudeUsageReset, claudeAccountName, claudeSignInRequired, useClaudeAccountName, useClaudeAccountPanel, useClaudeAccountRemoval, useClaudeAccountStartRow, useClaudeAccountUsage, } from './claudeAccounts.js';
|
|
7
23
|
export { changesSubagents, reachedByFeed, sessionEventsPath, } from './sessionEvents.js';
|
|
8
24
|
export { githubAttachmentAsset, isSessionImageUrl, sessionGitHubImageUrl, sessionImageUrl, } from './images.js';
|
|
9
25
|
export { type PwCodePalette, type PwCodeSlashCommand, paletteOptions, type SlashAction, shellCommand, slashAction, steerMayHaveLanded, } from './command.js';
|
|
10
26
|
export { canStartHere, isComputer, isConnected, isMachineDown, isUnreachableError, machinesById, type PwCodeMachine, splitMachines, type TerminalHandoff, terminalHandoff, } from './machine.js';
|
|
11
27
|
export { isPwCodeLocale, loadPwCodeMessages, type PwCodeLocale, type PwCodeMessages, type PwCodeNamespace, type PwCodeTranslator, pwCodeLocales, pwCodeNamespaces, usePwCodeTranslations, } from './messages.js';
|
|
12
|
-
export {
|
|
28
|
+
export { type PwCodeChatStrings, usePwCodeChatStrings } from './chatStrings.js';
|
|
29
|
+
export { turnDuration, useCompactionNotice, useGoalNotice, useRecapNotice, useResumeTime, useTranscriptWords, } from './notices.js';
|
|
30
|
+
export { useCompactAgo } from './ago.js';
|
|
13
31
|
export { pastedPullRequestLabel, pullRequestKind, pullRequestLabel, pullRequestShortLabel, } from './pullRequest.js';
|
|
32
|
+
export { donePullRequestsToFold, FOLD_DONE_PULL_REQUESTS_FROM, foldPullRequests, isPullRequestState, type LabeledPullRequest, labeledPullRequests, orderPullRequests, type PullRequestFold, type PullRequestFoldGroup, type PullRequestState, type PullRequestStateOf, type PullRequestTone, type PullRequestWords, pullRequestFoldGroups, pullRequestGroupState, pullRequestStateBreaks, pullRequestStateOf, pullRequestTone, pullRequestWords, } from './pullRequestList.js';
|
|
33
|
+
export { type PwCodeContextRow, sessionContextRow } from './contextRow.js';
|
|
34
|
+
export { handoffCommandParts, type TerminalHandoffPanel, terminalHandoffPanel, } from './terminalHandoffPanel.js';
|
|
35
|
+
export { type UsageLimitWait, useUsageLimitWait } from './usageLimit.js';
|
|
36
|
+
export { type PwCodeWorktreeRef, useFollowedWorktree } from './sessionHeader.js';
|
|
37
|
+
export { type HowSessionsAppearStep, howSessionsAppear, } from './howSessionsAppear.js';
|
|
14
38
|
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';
|
|
39
|
+
export { groupOf, inFlightFirst, isWorking, type ListedGroup, listGroups, patchGroup, type SessionGroup, type SessionGroups, useSessionGroups, } from './sessionGroups.js';
|
|
40
|
+
export { type GroupDeleteWords, groupSectionKey, isUngroupedTarget, type PwCodeSearchScorer, searchedSessions, type SessionDropTarget, type SessionGroupKey, type SessionList, type SessionListOptions, type SessionSection, type SessionSectionKind, sessionMark, sessionRailLabel, sessionRowState, sessionSearchScore, sessionSearchStatus, sessionSearchText, sessionSections, showsPinMark, useRetainedSessions, useSessionList, withArchiveSection, } from './sessionList.js';
|
|
41
|
+
export { type NamePromptWords, nameToSave, type OpenSessionRef, type SessionActions, type SessionActionsOptions, type SessionConfirmation, type SessionMenuAction, type SessionMenuCommand, type SessionMenuItem, type SessionRename, type SessionRowKey, type SessionSubmenu, useSessionActions, } from './sessionActions.js';
|
|
15
42
|
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';
|
|
16
43
|
export { useToolStrings } from './toolStrings.js';
|
|
17
|
-
export { type PwCodeSendResult, type PwCodeSteerResult, type PwCodeWithdrawResult, usePwCodeTranscript, } from './useTranscript.js';
|
|
44
|
+
export { type PwCodeSendResult, type PwCodeSteerResult, type PwCodeTakenBack, type PwCodeWithdrawResult, usePwCodeTranscript, } from './useTranscript.js';
|
|
45
|
+
export { type PwCodeConversation, type PwCodeConversationState, type PwCodeNotice, transcriptMessages, usePwCodeConversation, } from './useConversation.js';
|
|
46
|
+
export { promptHistory, type PwCodeCommandOutput, type PwCodeComposer, type PwCodeComposerHistory, stopTurn, useCommandOutputs, usePwCodeComposer, } from './useComposer.js';
|
|
47
|
+
export { pasteCardText, type PwCodePasteCards, type PwCodePasteSend, useComposerPastes, usePasteCards, } from './useComposerPastes.js';
|
|
48
|
+
export { claudeAccountChip, claudeOnMachine, goalLabel, newSessionDraftKey, type PwCodeAccountChip, type PwCodeGoalLabel, type PwCodeSessionActivity, type PwCodeSessionBanner, type PwCodeSessionScreen, sessionActivity, sessionBanner, sessionDraftKey, sessionModel, sessionSettingsOptions, usePwCodeSessionScreen, useSessionPicker, useStaleFor, } from './sessionScreen.js';
|
|
49
|
+
export { fitImageWith, type PwCodeImageFit } from './imageFit.js';
|
|
50
|
+
export { loadErrorMessage } from './loadError.js';
|
|
51
|
+
export { markdownImageLink, markdownImageSources, type PwCodeMarkdownImage, } from './images.js';
|
|
52
|
+
export { type PwCodeSubagent, usePwCodeSubagent } from './useSubagent.js';
|
|
53
|
+
export { agentMark, type PwCodeAgentLine, type PwCodeAgentState, type PwCodeAgentSwitcher, type PwCodeStateTone, type PwCodeSwitcherAgent, type PwCodeSwitcherCount, type PwCodeSwitcherRow, switcherAgent, useAgentTypeLabel, usePwCodeAgentLine, usePwCodeAgentSwitcher, } from './agentSwitcher.js';
|
|
54
|
+
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, withoutAppendedImages, } from './useComposerImages.js';
|
|
55
|
+
export { type PwCodePresence, recapAfterLeavingMs, recapAfterTurnMs, useAwayRecap, } from './useAwayRecap.js';
|
|
18
56
|
export { composerState, IMAGE_PLACEHOLDER, machineHint, rememberSentPrompt, sessionLabel, sessionStateText, sessionStatusText, } from './wording.js';
|
package/dist/index.js
CHANGED
|
@@ -1,18 +1,54 @@
|
|
|
1
1
|
import { QUERY_KEY_PREFIX } from "./apiClient.js";
|
|
2
2
|
import { createPwCodeApi } from "./createPwCodeApi.js";
|
|
3
3
|
import { SESSIONS_REFRESH_MS, cachedCopyCurrent, pasteRefs, patchPullRequestStates, patchSessionNames, pullRequestsRefreshMs, useLastReadAt } from "./sessionsApi.js";
|
|
4
|
-
import {
|
|
4
|
+
import { startControls, startMachines, startingMode, useStartLocation, useStartModel, useStartPermissionMode, useStartSession } from "./startSession.js";
|
|
5
|
+
import { usePlatformDefaults } from "./platformDefaults.js";
|
|
6
|
+
import { START_SHORTLIST, chatHandoffStart, machineChip, machineMenu, sessionLinkNotice, shortlistMark, startCommands, startSearch, startShortlist, useSessionLink, useStartScreen, waitingQuestions, waitingSince } from "./startPage.js";
|
|
7
|
+
import { modelGroups, platformModelStatus, providerIssueOf, useModelPicker } from "./modelPicker.js";
|
|
8
|
+
import { aiAllocations, allocationChoice, allocationProblem, allocationUsage, allocationsForType, billsAllocation, useModelAllocations } from "./allocations.js";
|
|
9
|
+
import { PW_CODE_PREVIEW, pwCodeEnabled } from "./accountApi.js";
|
|
10
|
+
import { chatModelPreference, foldedGroupsPreference, lastModelPreference, preferenceKey, sessionGroupsPreference, showHiddenPreference, startAccountPreference, startEffortPreference, startMachinePreference, startModePreference, useLastModelPreference, useStartAccountPreference, useStartDefaultsFromSession, useStartEffortPreference, useStartMachinePreference, useStartModePreference } from "./preferences.js";
|
|
11
|
+
import { canRunModel, isClaudeModel, modelLabel, pickerCommand, runsClaude, useModelCatalog } from "./models.js";
|
|
12
|
+
import { allowedAccess, cutSpacing, cutToFit, directoryScopes, isSavedDirectory, lastSegmentAt, pathSegments, sessionDirectories, shortestPath, useRemoveSessionDirectory, workingDirectoryText } from "./workingDirectories.js";
|
|
13
|
+
import { FOLDER_LIMIT, RECENT_LIMIT, browseStart, directoryChip, isPathText, isUnlistedDirectory, joinDirectory, listedText, matchingFolders, parentDirectory, pathCompletions, pathNote, pathSections, pickedOnClose, splitTypedPath, typedDirectory, visibleFolders } from "./directories.js";
|
|
14
|
+
import { useWorktreeChoice, worktreeWork } from "./worktreeChoice.js";
|
|
15
|
+
import { BACKGROUND_TOOL, backgroundOfferDelayMs, offersBackground } from "./commandsApi.js";
|
|
16
|
+
import { goalElapsed, goalFacts, useGoalElapsed, useSessionGoal } from "./goal.js";
|
|
17
|
+
import { chatHandoffPrompt } from "./chatHandoff.js";
|
|
5
18
|
import { claudeLoginFinished } from "./claudeApi.js";
|
|
19
|
+
import { canOpenSignInLink, useClaudeSignIn } from "./claudeSignIn.js";
|
|
20
|
+
import { claudeAccountName, claudeSignInRequired, useClaudeAccountName, useClaudeAccountPanel, useClaudeAccountRemoval, useClaudeAccountStartRow, useClaudeAccountUsage } from "./claudeAccounts.js";
|
|
6
21
|
import { changesSubagents, reachedByFeed, sessionEventsPath } from "./sessionEvents.js";
|
|
7
|
-
import { githubAttachmentAsset, isSessionImageUrl, sessionGitHubImageUrl, sessionImageUrl } from "./images.js";
|
|
22
|
+
import { githubAttachmentAsset, isSessionImageUrl, markdownImageLink, markdownImageSources, sessionGitHubImageUrl, sessionImageUrl } from "./images.js";
|
|
8
23
|
import { paletteOptions, shellCommand, slashAction, steerMayHaveLanded } from "./command.js";
|
|
9
24
|
import { canStartHere, isComputer, isConnected, isMachineDown, isUnreachableError, machinesById, splitMachines, terminalHandoff } from "./machine.js";
|
|
10
25
|
import { isPwCodeLocale, loadPwCodeMessages, pwCodeLocales, pwCodeNamespaces, usePwCodeTranslations } from "./messages.js";
|
|
11
|
-
import {
|
|
26
|
+
import { usePwCodeChatStrings } from "./chatStrings.js";
|
|
27
|
+
import { turnDuration, useCompactionNotice, useGoalNotice, useRecapNotice, useResumeTime, useTranscriptWords } from "./notices.js";
|
|
28
|
+
import { useCompactAgo } from "./ago.js";
|
|
12
29
|
import { pastedPullRequestLabel, pullRequestKind, pullRequestLabel, pullRequestShortLabel } from "./pullRequest.js";
|
|
30
|
+
import { FOLD_DONE_PULL_REQUESTS_FROM, donePullRequestsToFold, foldPullRequests, isPullRequestState, labeledPullRequests, orderPullRequests, pullRequestFoldGroups, pullRequestGroupState, pullRequestStateBreaks, pullRequestStateOf, pullRequestTone, pullRequestWords } from "./pullRequestList.js";
|
|
31
|
+
import { sessionContextRow } from "./contextRow.js";
|
|
32
|
+
import { handoffCommandParts, terminalHandoffPanel } from "./terminalHandoffPanel.js";
|
|
33
|
+
import { useUsageLimitWait } from "./usageLimit.js";
|
|
34
|
+
import { useFollowedWorktree } from "./sessionHeader.js";
|
|
35
|
+
import { howSessionsAppear } from "./howSessionsAppear.js";
|
|
13
36
|
import { isActiveSession, isArchived, isMidTurn, isSession, needsYou, newestFirst, pathBasename, recentDirectories, sessionClock, sessionKey, sessionStatusVariant, sessionVariant, sharedStoreCopy, spansMachines, triageSessions, waitsOnAnswer } from "./session.js";
|
|
37
|
+
import { groupOf, inFlightFirst, isWorking, listGroups, patchGroup, useSessionGroups } from "./sessionGroups.js";
|
|
38
|
+
import { groupSectionKey, isUngroupedTarget, searchedSessions, sessionMark, sessionRailLabel, sessionRowState, sessionSearchScore, sessionSearchStatus, sessionSearchText, sessionSections, showsPinMark, useRetainedSessions, useSessionList, withArchiveSection } from "./sessionList.js";
|
|
39
|
+
import { nameToSave, useSessionActions } from "./sessionActions.js";
|
|
14
40
|
import { appendOwnMessage, appendSteeredMessage, applyStreamEvent, approvalAnswerBody, approvalToPart, bashRunning, dropMessage, historyToMessages, initialTranscript, liveSessionStatus, pendingApprovals, pendingMessages, resolveApprovalEverywhere, resumeCursor, reviewingCount, subagentFrame, subagentSessionDetail, turnRunning } from "./transcript.js";
|
|
15
41
|
import { useToolStrings } from "./toolStrings.js";
|
|
16
42
|
import { usePwCodeTranscript } from "./useTranscript.js";
|
|
43
|
+
import { transcriptMessages, usePwCodeConversation } from "./useConversation.js";
|
|
44
|
+
import { promptHistory, stopTurn, useCommandOutputs, usePwCodeComposer } from "./useComposer.js";
|
|
45
|
+
import { pasteCardText, useComposerPastes, usePasteCards } from "./useComposerPastes.js";
|
|
46
|
+
import { claudeAccountChip, claudeOnMachine, goalLabel, newSessionDraftKey, sessionActivity, sessionBanner, sessionDraftKey, sessionModel, sessionSettingsOptions, usePwCodeSessionScreen, useSessionPicker, useStaleFor } from "./sessionScreen.js";
|
|
47
|
+
import { fitImageWith } from "./imageFit.js";
|
|
48
|
+
import { loadErrorMessage } from "./loadError.js";
|
|
49
|
+
import { usePwCodeSubagent } from "./useSubagent.js";
|
|
50
|
+
import { agentMark, switcherAgent, useAgentTypeLabel, usePwCodeAgentLine, usePwCodeAgentSwitcher } from "./agentSwitcher.js";
|
|
51
|
+
import { IMAGE_MAX_BYTES, IMAGE_MAX_SIDE, IMAGE_READ_MAX_BYTES, IMAGE_TYPES, PwCodeImageTooLarge, nextImageSeq, useComposerImages, withoutAppendedImages } from "./useComposerImages.js";
|
|
52
|
+
import { recapAfterLeavingMs, recapAfterTurnMs, useAwayRecap } from "./useAwayRecap.js";
|
|
17
53
|
import { IMAGE_PLACEHOLDER, composerState, machineHint, rememberSentPrompt, sessionLabel, sessionStateText, sessionStatusText } from "./wording.js";
|
|
18
|
-
export { IMAGE_PLACEHOLDER, QUERY_KEY_PREFIX, SESSIONS_REFRESH_MS, appendOwnMessage, appendSteeredMessage, applyStreamEvent, approvalAnswerBody, approvalToPart, backgroundOfferDelayMs, bashRunning, cachedCopyCurrent, canStartHere, changesSubagents, claudeLoginFinished, composerState, createPwCodeApi, dropMessage, githubAttachmentAsset, historyToMessages, initialTranscript, isActiveSession, isArchived, isComputer, isConnected, isMachineDown, isMidTurn, isPwCodeLocale, isSession, isSessionImageUrl, isUnreachableError, liveSessionStatus, loadPwCodeMessages, machineHint, machinesById, needsYou, newestFirst, paletteOptions, pasteRefs, pastedPullRequestLabel, patchPullRequestStates, patchSessionNames, pathBasename, pendingApprovals, pendingMessages, pullRequestKind, pullRequestLabel, pullRequestShortLabel, pullRequestsRefreshMs, pwCodeLocales, pwCodeNamespaces, reachedByFeed, recentDirectories, rememberSentPrompt, resolveApprovalEverywhere, resumeCursor, reviewingCount, sessionClock, sessionEventsPath, sessionGitHubImageUrl, sessionImageUrl, sessionKey, sessionLabel, sessionStateText, sessionStatusText, sessionStatusVariant, sessionVariant, sharedStoreCopy, shellCommand, slashAction, spansMachines, splitMachines, steerMayHaveLanded, subagentFrame, subagentSessionDetail, terminalHandoff, triageSessions, turnDuration, turnRunning, useCompactionNotice, useLastReadAt, usePwCodeTranscript, usePwCodeTranslations, useRecapNotice, useResumeTime, useToolStrings, useTranscriptWords, waitsOnAnswer };
|
|
54
|
+
export { BACKGROUND_TOOL, FOLDER_LIMIT, FOLD_DONE_PULL_REQUESTS_FROM, IMAGE_MAX_BYTES, IMAGE_MAX_SIDE, IMAGE_PLACEHOLDER, IMAGE_READ_MAX_BYTES, IMAGE_TYPES, PW_CODE_PREVIEW, PwCodeImageTooLarge, QUERY_KEY_PREFIX, RECENT_LIMIT, SESSIONS_REFRESH_MS, START_SHORTLIST, agentMark, aiAllocations, allocationChoice, allocationProblem, allocationUsage, allocationsForType, allowedAccess, appendOwnMessage, appendSteeredMessage, applyStreamEvent, approvalAnswerBody, approvalToPart, backgroundOfferDelayMs, bashRunning, billsAllocation, browseStart, cachedCopyCurrent, canOpenSignInLink, canRunModel, canStartHere, changesSubagents, chatHandoffPrompt, chatHandoffStart, chatModelPreference, claudeAccountChip, claudeAccountName, claudeLoginFinished, claudeOnMachine, claudeSignInRequired, composerState, createPwCodeApi, cutSpacing, cutToFit, directoryChip, directoryScopes, donePullRequestsToFold, dropMessage, fitImageWith, foldPullRequests, foldedGroupsPreference, githubAttachmentAsset, goalElapsed, goalFacts, goalLabel, groupOf, groupSectionKey, handoffCommandParts, historyToMessages, howSessionsAppear, inFlightFirst, initialTranscript, isActiveSession, isArchived, isClaudeModel, isComputer, isConnected, isMachineDown, isMidTurn, isPathText, isPullRequestState, isPwCodeLocale, isSavedDirectory, isSession, isSessionImageUrl, isUngroupedTarget, isUnlistedDirectory, isUnreachableError, isWorking, joinDirectory, labeledPullRequests, lastModelPreference, lastSegmentAt, listGroups, listedText, liveSessionStatus, loadErrorMessage, loadPwCodeMessages, machineChip, machineHint, machineMenu, machinesById, markdownImageLink, markdownImageSources, matchingFolders, modelGroups, modelLabel, nameToSave, needsYou, newSessionDraftKey, newestFirst, nextImageSeq, offersBackground, orderPullRequests, paletteOptions, parentDirectory, pasteCardText, pasteRefs, pastedPullRequestLabel, patchGroup, patchPullRequestStates, patchSessionNames, pathBasename, pathCompletions, pathNote, pathSections, pathSegments, pendingApprovals, pendingMessages, pickedOnClose, pickerCommand, platformModelStatus, preferenceKey, promptHistory, providerIssueOf, pullRequestFoldGroups, pullRequestGroupState, pullRequestKind, pullRequestLabel, pullRequestShortLabel, pullRequestStateBreaks, pullRequestStateOf, pullRequestTone, pullRequestWords, pullRequestsRefreshMs, pwCodeEnabled, pwCodeLocales, pwCodeNamespaces, reachedByFeed, recapAfterLeavingMs, recapAfterTurnMs, recentDirectories, rememberSentPrompt, resolveApprovalEverywhere, resumeCursor, reviewingCount, runsClaude, searchedSessions, sessionActivity, sessionBanner, sessionClock, sessionContextRow, sessionDirectories, sessionDraftKey, sessionEventsPath, sessionGitHubImageUrl, sessionGroupsPreference, sessionImageUrl, sessionKey, sessionLabel, sessionLinkNotice, sessionMark, sessionModel, sessionRailLabel, sessionRowState, sessionSearchScore, sessionSearchStatus, sessionSearchText, sessionSections, sessionSettingsOptions, sessionStateText, sessionStatusText, sessionStatusVariant, sessionVariant, sharedStoreCopy, shellCommand, shortestPath, shortlistMark, showHiddenPreference, showsPinMark, slashAction, spansMachines, splitMachines, splitTypedPath, startAccountPreference, startCommands, startControls, startEffortPreference, startMachinePreference, startMachines, startModePreference, startSearch, startShortlist, startingMode, steerMayHaveLanded, stopTurn, subagentFrame, subagentSessionDetail, switcherAgent, terminalHandoff, terminalHandoffPanel, transcriptMessages, triageSessions, turnDuration, turnRunning, typedDirectory, useAgentTypeLabel, useAwayRecap, useClaudeAccountName, useClaudeAccountPanel, useClaudeAccountRemoval, useClaudeAccountStartRow, useClaudeAccountUsage, useClaudeSignIn, useCommandOutputs, useCompactAgo, useCompactionNotice, useComposerImages, useComposerPastes, useFollowedWorktree, useGoalElapsed, useGoalNotice, useLastModelPreference, useLastReadAt, useModelAllocations, useModelCatalog, useModelPicker, usePasteCards, usePlatformDefaults, usePwCodeAgentLine, usePwCodeAgentSwitcher, usePwCodeChatStrings, usePwCodeComposer, usePwCodeConversation, usePwCodeSessionScreen, usePwCodeSubagent, usePwCodeTranscript, usePwCodeTranslations, useRecapNotice, useRemoveSessionDirectory, useResumeTime, useRetainedSessions, useSessionActions, useSessionGoal, useSessionGroups, useSessionLink, useSessionList, useSessionPicker, useStaleFor, useStartAccountPreference, useStartDefaultsFromSession, useStartEffortPreference, useStartLocation, useStartMachinePreference, useStartModePreference, useStartModel, useStartPermissionMode, useStartScreen, useStartSession, useToolStrings, useTranscriptWords, useUsageLimitWait, useWorktreeChoice, visibleFolders, waitingQuestions, waitingSince, waitsOnAnswer, withArchiveSection, withoutAppendedImages, workingDirectoryText, worktreeWork };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** A failed read in `describeError`'s words, by its code alone and never the
|
|
2
|
+
* server's text; undefined when only "it failed" is known, leaving the
|
|
3
|
+
* host's own line. */
|
|
4
|
+
export declare function loadErrorMessage(error: unknown, describeError: (error: unknown) => string): string | undefined;
|
|
5
|
+
/** A read that failed before anything loaded, in `loadErrorMessage`'s words. */
|
|
6
|
+
export declare function loadFailure(error: unknown, loaded: boolean, describeError: (error: unknown) => string): {
|
|
7
|
+
message: string | undefined;
|
|
8
|
+
} | null;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ApiError, toApiError } from "@parallelworks/problem";
|
|
2
|
+
// src/loadError.ts
|
|
3
|
+
/** A failed read in `describeError`'s words, by its code alone and never the
|
|
4
|
+
* server's text; undefined when only "it failed" is known, leaving the
|
|
5
|
+
* host's own line. */
|
|
6
|
+
function loadErrorMessage(error, describeError) {
|
|
7
|
+
const { status, code, params } = toApiError(error);
|
|
8
|
+
if (code === "unknown") return;
|
|
9
|
+
return describeError(new ApiError({
|
|
10
|
+
status,
|
|
11
|
+
code,
|
|
12
|
+
params
|
|
13
|
+
}));
|
|
14
|
+
}
|
|
15
|
+
/** A read that failed before anything loaded, in `loadErrorMessage`'s words. */
|
|
16
|
+
function loadFailure(error, loaded, describeError) {
|
|
17
|
+
return error && !loaded ? { message: loadErrorMessage(error, describeError) } : null;
|
|
18
|
+
}
|
|
19
|
+
export { loadErrorMessage, loadFailure };
|
|
@@ -24,19 +24,21 @@ var transcript = {
|
|
|
24
24
|
"denyPath": "No, deny",
|
|
25
25
|
"allowCall": "Yes, allow this call",
|
|
26
26
|
"denyCall": "No, deny this call",
|
|
27
|
-
"denyWithFeedback": "No, and
|
|
28
|
-
"feedbackPlaceholder": "Tell the
|
|
27
|
+
"denyWithFeedback": "No, and tell the assistant why",
|
|
28
|
+
"feedbackPlaceholder": "Tell the assistant what to do instead…",
|
|
29
29
|
"answered": "Answered",
|
|
30
|
-
"allowedBy": "
|
|
31
|
-
"
|
|
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": "
|
|
35
|
-
"deniedByReviewer": "
|
|
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": "
|
|
39
|
-
"reviewFailed": "
|
|
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 @@ var transcript = {
|
|
|
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
|
|
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 @@ var queue = {
|
|
|
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
|
var paste = {
|
|
128
133
|
"title": "Pasted text",
|
|
@@ -130,7 +135,54 @@ var paste = {
|
|
|
130
135
|
"saving": "Saving…",
|
|
131
136
|
"remove": "Remove paste"
|
|
132
137
|
};
|
|
133
|
-
var thinking = {
|
|
138
|
+
var thinking = {
|
|
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
|
+
var activity = {
|
|
148
|
+
"tokens": "↑{input} ↓{output} tokens",
|
|
149
|
+
"stop": "Stop"
|
|
150
|
+
};
|
|
151
|
+
var input = {
|
|
152
|
+
"stopGenerating": "Stop generating (Escape)",
|
|
153
|
+
"loadingCommands": "Loading commands…"
|
|
154
|
+
};
|
|
155
|
+
var thread = { "jumpToPrompt": "Go to message: {text}" };
|
|
156
|
+
var find = {
|
|
157
|
+
"label": "Find in conversation",
|
|
158
|
+
"count": "{current, number} of {total, number}",
|
|
159
|
+
"countCapped": "{current, number} of {total, number}+",
|
|
160
|
+
"none": "No results",
|
|
161
|
+
"previous": "Previous match",
|
|
162
|
+
"next": "Next match",
|
|
163
|
+
"close": "Close find"
|
|
164
|
+
};
|
|
165
|
+
var chrome = { "jumpToLatest": "Jump to latest" };
|
|
166
|
+
var messageMeta = { "copyLabel": "message" };
|
|
167
|
+
var attachmentManager = {
|
|
168
|
+
"unnamedImage": "Image attachment",
|
|
169
|
+
"unnamedFile": "File",
|
|
170
|
+
"open": "Open {name}",
|
|
171
|
+
"download": "Download {name}",
|
|
172
|
+
"previousImage": "Previous image",
|
|
173
|
+
"nextImage": "Next image",
|
|
174
|
+
"imagePosition": "{position, number} of {total, number}",
|
|
175
|
+
"fullImageFailed": "Couldn't load the full image. Showing a preview."
|
|
176
|
+
};
|
|
177
|
+
var markdownImage = {
|
|
178
|
+
"untitled": "Image",
|
|
179
|
+
"open": "Open {name} on GitHub"
|
|
180
|
+
};
|
|
181
|
+
var sidebar = {
|
|
182
|
+
"openSidebar": "Open sidebar",
|
|
183
|
+
"closeSidebar": "Close sidebar",
|
|
184
|
+
"manageProviders": "Manage providers"
|
|
185
|
+
};
|
|
134
186
|
var modelPicker = {
|
|
135
187
|
"choose": "Model",
|
|
136
188
|
"select": "Select a model",
|
|
@@ -138,11 +190,7 @@ var modelPicker = {
|
|
|
138
190
|
"loading": "Loading models…",
|
|
139
191
|
"failed": "Failed to load models",
|
|
140
192
|
"none": "No models available",
|
|
141
|
-
"sharedBy": "Shared by {owner}"
|
|
142
|
-
"connecting": "Connecting…",
|
|
143
|
-
"notResponding": "Not responding",
|
|
144
|
-
"manageProvider": "Manage provider",
|
|
145
|
-
"selectFirst": "Select a model first"
|
|
193
|
+
"sharedBy": "Shared by {owner}"
|
|
146
194
|
};
|
|
147
195
|
var allocationPicker = {
|
|
148
196
|
"choose": "Allocation",
|
|
@@ -151,11 +199,7 @@ var allocationPicker = {
|
|
|
151
199
|
};
|
|
152
200
|
var providerIssue = {
|
|
153
201
|
"keyRejected": "API key rejected",
|
|
154
|
-
"unreachable": "Endpoint unreachable"
|
|
155
|
-
"keyRejectedHint": "The provider rejected this connection's API key. Update the key in the provider settings to resume.",
|
|
156
|
-
"unreachableHint": "The provider's endpoint did not respond. Check the endpoint URL and network access.",
|
|
157
|
-
"bannerKeyRejected": "API key rejected for “{provider}”",
|
|
158
|
-
"bannerUnreachable": "“{provider}” is unreachable"
|
|
202
|
+
"unreachable": "Endpoint unreachable"
|
|
159
203
|
};
|
|
160
204
|
var agentTranscript_default = {
|
|
161
205
|
transcript,
|
|
@@ -163,8 +207,17 @@ var agentTranscript_default = {
|
|
|
163
207
|
queue,
|
|
164
208
|
paste,
|
|
165
209
|
thinking,
|
|
210
|
+
activity,
|
|
211
|
+
input,
|
|
212
|
+
thread,
|
|
213
|
+
find,
|
|
214
|
+
chrome,
|
|
215
|
+
messageMeta,
|
|
216
|
+
attachmentManager,
|
|
217
|
+
markdownImage,
|
|
218
|
+
sidebar,
|
|
166
219
|
modelPicker,
|
|
167
220
|
allocationPicker,
|
|
168
221
|
providerIssue
|
|
169
222
|
};
|
|
170
|
-
export { allocationPicker, agentTranscript_default as default, modelPicker, paste, providerIssue, queue, thinking, tools, transcript };
|
|
223
|
+
export { activity, allocationPicker, attachmentManager, chrome, agentTranscript_default as default, find, input, markdownImage, messageMeta, modelPicker, paste, providerIssue, queue, sidebar, thinking, thread, tools, transcript };
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
// locales/en/agents.json
|
|
2
2
|
var title = "pw code";
|
|
3
|
+
var ago = {
|
|
4
|
+
"now": "now",
|
|
5
|
+
"minutes": "{n}m",
|
|
6
|
+
"hours": "{n}h",
|
|
7
|
+
"days": "{n}d"
|
|
8
|
+
};
|
|
3
9
|
var sidebar = {
|
|
4
10
|
"label": "Sessions",
|
|
5
11
|
"listNoun": "sessions",
|
|
@@ -7,6 +13,7 @@ var sidebar = {
|
|
|
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 @@ var sidebar = {
|
|
|
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",
|
|
@@ -44,10 +50,7 @@ var sidebar = {
|
|
|
44
50
|
"groupNamePlaceholder": "Enter a name",
|
|
45
51
|
"deleteGroupTitle": "Delete group",
|
|
46
52
|
"deleteGroupBody": "“{name}” will be removed. Its sessions stay in the list.",
|
|
47
|
-
"groupActions": "Actions for {name}",
|
|
48
53
|
"groupsNeedUpdate": "Update pw on {machine} to keep its sessions in groups",
|
|
49
|
-
"groupWaiting": "{count, plural, one {# session needs you} other {# sessions need you}}",
|
|
50
|
-
"groupRunning": "{count, plural, one {# session running} other {# sessions running}}",
|
|
51
54
|
"pin": "Pin",
|
|
52
55
|
"unpin": "Unpin",
|
|
53
56
|
"pinned": "Pinned",
|
|
@@ -73,9 +76,34 @@ var start = {
|
|
|
73
76
|
"workspacePlaceholder": "/home/you/your-repo",
|
|
74
77
|
"startButton": "Start session",
|
|
75
78
|
"chooseMachine": "Choose a machine",
|
|
79
|
+
"findingMachines": "Finding your machines…",
|
|
76
80
|
"notAnswering": "Not answering ({count})",
|
|
77
81
|
"chooseDirectory": "Choose a directory",
|
|
78
|
-
"
|
|
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",
|
|
79
107
|
"composerPlaceholder": "Describe a task or ask a question",
|
|
80
108
|
"choosePermission": "Choose what the agent may do",
|
|
81
109
|
"howTitle": "Sessions you open show up here",
|
|
@@ -127,8 +155,9 @@ var detail = {
|
|
|
127
155
|
"archiveWhileRunning": "Wait for the turn to finish, then run /archive.",
|
|
128
156
|
"archived": "Archived “{name}”. Restore it from the Archived group to use it again.",
|
|
129
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.",
|
|
130
159
|
"shellStopped": "A hook stopped the agent from reacting: {reason}",
|
|
131
|
-
"
|
|
160
|
+
"backgroundHint": "({key} to run in background)",
|
|
132
161
|
"backgroundTitle": "The command keeps running, and the agent carries on without waiting for it",
|
|
133
162
|
"liveOn": "Live on {host}",
|
|
134
163
|
"pullRequest": "{kind, select, mergeRequest {Merge request} other {Pull request}} {pr}, opened by this session",
|
|
@@ -159,7 +188,6 @@ var detail = {
|
|
|
159
188
|
"waitingForUsageLimit": "Waiting for the usage limit to reset",
|
|
160
189
|
"waitingForUsageLimitUntil": "Waiting for the usage limit to reset at {time}",
|
|
161
190
|
"switchClaudeAccount": "Switch account",
|
|
162
|
-
"loading": "Loading transcript…",
|
|
163
191
|
"cleared": "The session was cleared; showing the new session.",
|
|
164
192
|
"dismiss": "Dismiss",
|
|
165
193
|
"transcriptLabel": "Session transcript",
|
|
@@ -188,9 +216,30 @@ var detail = {
|
|
|
188
216
|
"goalAchieved": "✓ Goal achieved ({elapsed} · {turns, plural, one {# turn} other {# turns}} · {tokens} tokens)",
|
|
189
217
|
"goalContinuing": "○ Goal not yet met… continuing",
|
|
190
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})",
|
|
191
220
|
"goalUsageLimit": "Usage limit reached. The goal is checked again at {time}.",
|
|
192
221
|
"goalActive": "goal active",
|
|
193
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
|
+
},
|
|
194
243
|
"addedDirectory": "Added working directory: {path}",
|
|
195
244
|
"addedDirectoryAndMore": "{path} and {count, plural, one {# more working directory} other {# more working directories}}",
|
|
196
245
|
"workingDirectory": "Working directory: {path}",
|
|
@@ -226,6 +275,11 @@ var detail = {
|
|
|
226
275
|
"subagentMessage": "Message from {name}",
|
|
227
276
|
"commandCompleted": "Background command \"{name}\" completed (exit code 0)",
|
|
228
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",
|
|
229
283
|
"agentEnded": "Agent \"{name}\" {outcome, select, failed {failed} other {finished}}",
|
|
230
284
|
"agentEndedAfter": "Agent \"{name}\" {outcome, select, failed {failed} other {finished}} · {elapsed}",
|
|
231
285
|
"expandAll": "Expand all",
|
|
@@ -234,13 +288,13 @@ var detail = {
|
|
|
234
288
|
var switcher = {
|
|
235
289
|
"title": "Agents",
|
|
236
290
|
"main": "Main conversation",
|
|
237
|
-
"
|
|
291
|
+
"runningCount": "{count} running",
|
|
292
|
+
"doneCount": "{count} done",
|
|
293
|
+
"stoppedCount": "{count} stopped",
|
|
238
294
|
"earlierOnly": "{count, plural, one {# earlier agent} other {# earlier agents}}",
|
|
239
295
|
"approvals": "{count, plural, one {# approval needed} other {# approvals needed}}",
|
|
240
296
|
"failedCount": "{count} failed",
|
|
241
297
|
"stopAll": "Stop all",
|
|
242
|
-
"show": "Show agents",
|
|
243
|
-
"hide": "Hide agents",
|
|
244
298
|
"showEarlier": "{count, plural, one {Show # earlier agent} other {Show # earlier agents}}",
|
|
245
299
|
"hideEarlier": "{count, plural, one {Hide # earlier agent} other {Hide # earlier agents}}",
|
|
246
300
|
"agentName": "{type}: {description}",
|
|
@@ -261,6 +315,7 @@ var switcher = {
|
|
|
261
315
|
};
|
|
262
316
|
var effort = {
|
|
263
317
|
"label": "Effort",
|
|
318
|
+
"named": "Effort: {level}",
|
|
264
319
|
"low": "low",
|
|
265
320
|
"medium": "medium",
|
|
266
321
|
"high": "high",
|
|
@@ -283,6 +338,14 @@ var permission = {
|
|
|
283
338
|
"plan": "The workspace is left unchanged while a plan is drafted."
|
|
284
339
|
}
|
|
285
340
|
};
|
|
341
|
+
var 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
|
var dash = {
|
|
287
350
|
"needsYou": "Needs you",
|
|
288
351
|
"waitingFor": "waiting {when}",
|
|
@@ -304,10 +367,7 @@ var claude = {
|
|
|
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",
|
|
@@ -365,6 +425,7 @@ var terminal = {
|
|
|
365
425
|
};
|
|
366
426
|
var agents_default = {
|
|
367
427
|
title,
|
|
428
|
+
ago,
|
|
368
429
|
sidebar,
|
|
369
430
|
start,
|
|
370
431
|
status,
|
|
@@ -373,8 +434,9 @@ var agents_default = {
|
|
|
373
434
|
switcher,
|
|
374
435
|
effort,
|
|
375
436
|
permission,
|
|
437
|
+
allocation,
|
|
376
438
|
dash,
|
|
377
439
|
claude,
|
|
378
440
|
terminal
|
|
379
441
|
};
|
|
380
|
-
export { claude, dash, agents_default as default, detail, effort, machine, permission, sidebar, start, status, switcher, terminal, title };
|
|
442
|
+
export { ago, allocation, claude, dash, agents_default as default, detail, effort, machine, permission, sidebar, start, status, switcher, terminal, title };
|