@parallelworks/code 0.3.0 → 0.5.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 +625 -113
- package/dist/accountApi.d.ts +31 -0
- package/dist/accountApi.js +182 -0
- package/dist/agentSwitcher.d.ts +120 -0
- package/dist/agentSwitcher.js +187 -0
- package/dist/ago.d.ts +1 -3
- package/dist/ago.js +8 -10
- package/dist/allocations.d.ts +41 -0
- package/dist/allocations.js +76 -0
- package/dist/api.d.ts +1319 -50
- package/dist/chatStrings.d.ts +189 -0
- package/dist/chatStrings.js +218 -0
- package/dist/claudeAccounts.d.ts +57 -2
- package/dist/claudeAccounts.js +144 -6
- package/dist/claudeApi.d.ts +2 -1
- package/dist/claudeApi.js +50 -4
- package/dist/claudeSignIn.d.ts +19 -1
- package/dist/claudeSignIn.js +12 -2
- package/dist/command.d.ts +5 -1
- package/dist/command.js +6 -1
- package/dist/commandsApi.d.ts +11 -1
- package/dist/commandsApi.js +24 -5
- package/dist/createPwCodeApi.d.ts +114 -6
- package/dist/createPwCodeApi.js +21 -3
- 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/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 +31 -15
- package/dist/index.js +29 -14
- package/dist/loadError.d.ts +8 -0
- package/dist/loadError.js +19 -0
- package/dist/locales/en/agentTranscript.js +74 -12
- package/dist/locales/en/agents.js +86 -11
- package/dist/locales/en.d.ts +137 -8
- package/dist/locales/es/agentTranscript.js +74 -12
- package/dist/locales/es/agents.js +86 -11
- package/dist/locales/ja/agentTranscript.js +77 -15
- package/dist/locales/ja/agents.js +60 -122
- package/dist/locales/ko/agentTranscript.js +74 -12
- package/dist/locales/ko/agents.js +86 -11
- package/dist/locales/zh/agentTranscript.js +72 -10
- package/dist/locales/zh/agents.js +86 -11
- package/dist/machine.d.ts +2 -0
- package/dist/modelPicker.d.ts +79 -0
- package/dist/modelPicker.js +107 -0
- package/dist/notices.d.ts +2 -0
- package/dist/notices.js +67 -32
- 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 +10 -2
- package/dist/pullRequestList.js +41 -22
- package/dist/query.d.ts +9 -2
- package/dist/query.js +91 -10
- package/dist/session.d.ts +11 -2
- package/dist/session.js +16 -8
- package/dist/sessionActions.d.ts +11 -1
- package/dist/sessionActions.js +14 -6
- package/dist/sessionEvents.d.ts +37 -5
- package/dist/sessionEvents.js +196 -77
- package/dist/sessionGroups.d.ts +5 -4
- package/dist/sessionGroups.js +6 -5
- package/dist/sessionHeader.js +6 -2
- package/dist/sessionList.d.ts +68 -15
- package/dist/sessionList.js +91 -19
- package/dist/sessionScreen.d.ts +197 -0
- package/dist/sessionScreen.js +218 -0
- package/dist/sessionsApi.d.ts +29 -3
- package/dist/sessionsApi.js +180 -33
- package/dist/sessionsFeed.d.ts +22 -0
- package/dist/sessionsFeed.js +125 -0
- package/dist/settingsApi.d.ts +3 -1
- package/dist/startPage.d.ts +153 -0
- package/dist/startPage.js +174 -0
- package/dist/startSession.d.ts +41 -7
- package/dist/startSession.js +26 -4
- package/dist/todos.d.ts +42 -0
- package/dist/todos.js +104 -0
- package/dist/transcript.d.ts +1 -2
- package/dist/transcript.js +111 -117
- package/dist/transcriptRead.d.ts +56 -0
- package/dist/transcriptRead.js +121 -0
- package/dist/types.d.ts +11 -1
- package/dist/useComposer.d.ts +39 -6
- package/dist/useComposer.js +73 -9
- package/dist/useComposerImages.d.ts +5 -0
- package/dist/useComposerImages.js +27 -5
- package/dist/useComposerPastes.d.ts +70 -0
- package/dist/useComposerPastes.js +125 -0
- package/dist/useConversation.d.ts +16 -1
- package/dist/useConversation.js +104 -10
- package/dist/useMounted.d.ts +3 -0
- package/dist/useMounted.js +14 -0
- package/dist/useSubagent.d.ts +51 -3
- package/dist/useSubagent.js +72 -7
- package/dist/useTranscript.d.ts +23 -3
- package/dist/useTranscript.js +76 -19
- package/dist/wording.d.ts +5 -2
- package/dist/wording.js +8 -6
- package/dist/workingDirectories.d.ts +31 -0
- package/dist/workingDirectories.js +25 -1
- package/locales/en/agentTranscript.json +68 -11
- package/locales/en/agents.json +82 -10
- package/locales/es/agentTranscript.json +68 -11
- package/locales/es/agents.json +82 -10
- package/locales/ja/agentTranscript.json +71 -14
- package/locales/ja/agents.json +82 -10
- package/locales/ko/agentTranscript.json +68 -11
- package/locales/ko/agents.json +82 -10
- package/locales/zh/agentTranscript.json +66 -9
- package/locales/zh/agents.json +82 -10
- 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,40 +2,56 @@ 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 { type PwCodeLastModel, type PwCodeStartImages, type PwCodeStartLocation, type PwCodeStartMachine, type PwCodeStartModel, type PwCodeStartSession, startingMode, startMachines, useStartLocation, useStartModel, useStartPermissionMode, useStartSession, } from './startSession.js';
|
|
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';
|
|
6
12
|
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';
|
|
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';
|
|
8
15
|
export { type PwCodeWorktreeLines, type PwCodeWorktreeWork, useWorktreeChoice, worktreeWork, } from './worktreeChoice.js';
|
|
9
|
-
export { backgroundOfferDelayMs, type CommandOutcome, type SlashDeps, } from './commandsApi.js';
|
|
10
|
-
export { type
|
|
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';
|
|
11
19
|
export { chatHandoffPrompt, type PwCodeHandoffChat } from './chatHandoff.js';
|
|
12
20
|
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';
|
|
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';
|
|
15
23
|
export { changesSubagents, reachedByFeed, sessionEventsPath, } from './sessionEvents.js';
|
|
16
24
|
export { githubAttachmentAsset, isSessionImageUrl, sessionGitHubImageUrl, sessionImageUrl, } from './images.js';
|
|
17
|
-
export { type PwCodePalette, type PwCodeSlashCommand, paletteOptions, type SlashAction, shellCommand, slashAction, steerMayHaveLanded, } from './command.js';
|
|
25
|
+
export { type PwCodePalette, type PwCodePaletteOption, type PwCodeSlashCommand, paletteOptions, type SlashAction, shellCommand, slashAction, steerMayHaveLanded, } from './command.js';
|
|
18
26
|
export { canStartHere, isComputer, isConnected, isMachineDown, isUnreachableError, machinesById, type PwCodeMachine, splitMachines, type TerminalHandoff, terminalHandoff, } from './machine.js';
|
|
19
27
|
export { isPwCodeLocale, loadPwCodeMessages, type PwCodeLocale, type PwCodeMessages, type PwCodeNamespace, type PwCodeTranslator, pwCodeLocales, pwCodeNamespaces, usePwCodeTranslations, } from './messages.js';
|
|
20
|
-
export {
|
|
28
|
+
export { type PwCodeChatStrings, usePwCodeChatStrings } from './chatStrings.js';
|
|
29
|
+
export { turnDuration, useCompactionNotice, useGoalNotice, useRecapNotice, useResumeClock, useResumeTime, useTranscriptWords, } from './notices.js';
|
|
21
30
|
export { useCompactAgo } from './ago.js';
|
|
22
31
|
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';
|
|
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';
|
|
24
33
|
export { type PwCodeContextRow, sessionContextRow } from './contextRow.js';
|
|
25
34
|
export { handoffCommandParts, type TerminalHandoffPanel, terminalHandoffPanel, } from './terminalHandoffPanel.js';
|
|
26
35
|
export { type UsageLimitWait, useUsageLimitWait } from './usageLimit.js';
|
|
27
36
|
export { type PwCodeWorktreeRef, useFollowedWorktree } from './sessionHeader.js';
|
|
28
37
|
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';
|
|
38
|
+
export { isActiveSession, isArchived, isMidTurn, isSession, needsYou, newestFirst, pathBasename, type PwCodePendingApprovals, type PwCodeSession, type RecentDirectory, recentDirectories, sessionClock, sessionKey, sessionStatusVariant, sessionVariant, sharedStoreCopy, spansMachines, triageSessions, waitsOnAnswer, waitsOnUsageLimit, } from './session.js';
|
|
30
39
|
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';
|
|
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';
|
|
33
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';
|
|
43
|
+
export { type PwCodeTodoPanel, type PwCodeTodoRow, todoLabel, todoWindow, useTodoPanel, } from './todos.js';
|
|
34
44
|
export { useToolStrings } from './toolStrings.js';
|
|
35
|
-
export { type PwCodeSendResult, type PwCodeSteerResult, type PwCodeWithdrawResult, usePwCodeTranscript, } from './useTranscript.js';
|
|
45
|
+
export { type PwCodeSendResult, type PwCodeSteerResult, type PwCodeTakenBack, type PwCodeWithdrawResult, usePwCodeTranscript, } from './useTranscript.js';
|
|
36
46
|
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';
|
|
47
|
+
export { promptHistory, type PwCodeCommandOutput, type PwCodeComposer, type PwCodeComposerHistory, stopTurn, useCommandOutputs, usePwCodeComposer, } from './useComposer.js';
|
|
48
|
+
export { pasteCardText, type PwCodePasteCards, type PwCodePasteSend, useComposerPastes, usePasteCards, } from './useComposerPastes.js';
|
|
49
|
+
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';
|
|
50
|
+
export { fitImageWith, type PwCodeImageFit } from './imageFit.js';
|
|
51
|
+
export { loadErrorMessage } from './loadError.js';
|
|
52
|
+
export { markdownImageLink, markdownImageSources, type PwCodeMarkdownImage, } from './images.js';
|
|
38
53
|
export { type PwCodeSubagent, usePwCodeSubagent } from './useSubagent.js';
|
|
39
|
-
export {
|
|
54
|
+
export { agentMark, type PwCodeAgentLine, type PwCodeAgentState, type PwCodeAgentSwitcher, type PwCodeStateTone, type PwCodeSwitcherAgent, type PwCodeSwitcherCount, type PwCodeSwitcherRow, switcherAgent, useAgentTypeLabel, useDismissSubagent, usePwCodeAgentLine, usePwCodeAgentSwitcher, } from './agentSwitcher.js';
|
|
55
|
+
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';
|
|
40
56
|
export { type PwCodePresence, recapAfterLeavingMs, recapAfterTurnMs, useAwayRecap, } from './useAwayRecap.js';
|
|
41
57
|
export { composerState, IMAGE_PLACEHOLDER, machineHint, rememberSentPrompt, sessionLabel, sessionStateText, sessionStatusText, } from './wording.js';
|
package/dist/index.js
CHANGED
|
@@ -1,40 +1,55 @@
|
|
|
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 { startMachines, startingMode, useStartLocation, useStartModel, useStartPermissionMode, useStartSession } from "./startSession.js";
|
|
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";
|
|
5
11
|
import { canRunModel, isClaudeModel, modelLabel, pickerCommand, runsClaude, useModelCatalog } from "./models.js";
|
|
6
|
-
import { allowedAccess, cutSpacing, cutToFit, directoryScopes, isSavedDirectory, lastSegmentAt, pathSegments, shortestPath, useRemoveSessionDirectory } from "./workingDirectories.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";
|
|
7
14
|
import { useWorktreeChoice, worktreeWork } from "./worktreeChoice.js";
|
|
8
|
-
import { backgroundOfferDelayMs } from "./commandsApi.js";
|
|
15
|
+
import { BACKGROUND_TOOL, backgroundOfferDelayMs, offersBackground } from "./commandsApi.js";
|
|
16
|
+
import { goalElapsed, goalFacts, useGoalElapsed, useSessionGoal } from "./goal.js";
|
|
9
17
|
import { chatHandoffPrompt } from "./chatHandoff.js";
|
|
10
18
|
import { claudeLoginFinished } from "./claudeApi.js";
|
|
11
|
-
import { useClaudeSignIn } from "./claudeSignIn.js";
|
|
12
|
-
import { claudeAccountName, claudeSignInRequired, useClaudeAccountName, useClaudeAccountPanel, useClaudeAccountRemoval, useClaudeAccountUsage } from "./claudeAccounts.js";
|
|
19
|
+
import { canOpenSignInLink, useClaudeSignIn } from "./claudeSignIn.js";
|
|
20
|
+
import { claudeAccountName, claudeSignInRequired, useClaudeAccountName, useClaudeAccountPanel, useClaudeAccountRemoval, useClaudeAccountStartRow, useClaudeAccountUsage } from "./claudeAccounts.js";
|
|
13
21
|
import { changesSubagents, reachedByFeed, sessionEventsPath } from "./sessionEvents.js";
|
|
14
|
-
import { githubAttachmentAsset, isSessionImageUrl, sessionGitHubImageUrl, sessionImageUrl } from "./images.js";
|
|
22
|
+
import { githubAttachmentAsset, isSessionImageUrl, markdownImageLink, markdownImageSources, sessionGitHubImageUrl, sessionImageUrl } from "./images.js";
|
|
15
23
|
import { paletteOptions, shellCommand, slashAction, steerMayHaveLanded } from "./command.js";
|
|
16
24
|
import { canStartHere, isComputer, isConnected, isMachineDown, isUnreachableError, machinesById, splitMachines, terminalHandoff } from "./machine.js";
|
|
17
25
|
import { isPwCodeLocale, loadPwCodeMessages, pwCodeLocales, pwCodeNamespaces, usePwCodeTranslations } from "./messages.js";
|
|
18
|
-
import {
|
|
26
|
+
import { usePwCodeChatStrings } from "./chatStrings.js";
|
|
27
|
+
import { turnDuration, useCompactionNotice, useGoalNotice, useRecapNotice, useResumeClock, useResumeTime, useTranscriptWords } from "./notices.js";
|
|
19
28
|
import { useCompactAgo } from "./ago.js";
|
|
20
29
|
import { pastedPullRequestLabel, pullRequestKind, pullRequestLabel, pullRequestShortLabel } from "./pullRequest.js";
|
|
21
|
-
import { donePullRequestsToFold, foldPullRequests, isPullRequestState, labeledPullRequests, orderPullRequests, pullRequestFoldGroups, pullRequestGroupState, pullRequestStateBreaks, pullRequestStateOf, pullRequestWords } from "./pullRequestList.js";
|
|
30
|
+
import { FOLD_DONE_PULL_REQUESTS_FROM, donePullRequestsToFold, foldPullRequests, isPullRequestState, labeledPullRequests, orderPullRequests, pullRequestFoldGroups, pullRequestGroupState, pullRequestStateBreaks, pullRequestStateOf, pullRequestTone, pullRequestWords } from "./pullRequestList.js";
|
|
22
31
|
import { sessionContextRow } from "./contextRow.js";
|
|
23
32
|
import { handoffCommandParts, terminalHandoffPanel } from "./terminalHandoffPanel.js";
|
|
24
33
|
import { useUsageLimitWait } from "./usageLimit.js";
|
|
25
34
|
import { useFollowedWorktree } from "./sessionHeader.js";
|
|
26
35
|
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";
|
|
36
|
+
import { isActiveSession, isArchived, isMidTurn, isSession, needsYou, newestFirst, pathBasename, recentDirectories, sessionClock, sessionKey, sessionStatusVariant, sessionVariant, sharedStoreCopy, spansMachines, triageSessions, waitsOnAnswer, waitsOnUsageLimit } from "./session.js";
|
|
28
37
|
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";
|
|
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";
|
|
31
40
|
import { appendOwnMessage, appendSteeredMessage, applyStreamEvent, approvalAnswerBody, approvalToPart, bashRunning, dropMessage, historyToMessages, initialTranscript, liveSessionStatus, pendingApprovals, pendingMessages, resolveApprovalEverywhere, resumeCursor, reviewingCount, subagentFrame, subagentSessionDetail, turnRunning } from "./transcript.js";
|
|
41
|
+
import { todoLabel, todoWindow, useTodoPanel } from "./todos.js";
|
|
32
42
|
import { useToolStrings } from "./toolStrings.js";
|
|
33
43
|
import { usePwCodeTranscript } from "./useTranscript.js";
|
|
34
44
|
import { transcriptMessages, usePwCodeConversation } from "./useConversation.js";
|
|
35
|
-
import { promptHistory, useCommandOutputs, usePwCodeComposer } from "./useComposer.js";
|
|
45
|
+
import { promptHistory, stopTurn, useCommandOutputs, usePwCodeComposer } from "./useComposer.js";
|
|
46
|
+
import { pasteCardText, useComposerPastes, usePasteCards } from "./useComposerPastes.js";
|
|
47
|
+
import { claudeAccountChip, claudeOnMachine, goalLabel, newSessionDraftKey, sessionActivity, sessionBanner, sessionDraftKey, sessionModel, sessionSettingsOptions, usePwCodeSessionScreen, useSessionPicker, useStaleFor } from "./sessionScreen.js";
|
|
48
|
+
import { fitImageWith } from "./imageFit.js";
|
|
49
|
+
import { loadErrorMessage } from "./loadError.js";
|
|
36
50
|
import { usePwCodeSubagent } from "./useSubagent.js";
|
|
37
|
-
import {
|
|
51
|
+
import { agentMark, switcherAgent, useAgentTypeLabel, useDismissSubagent, usePwCodeAgentLine, usePwCodeAgentSwitcher } from "./agentSwitcher.js";
|
|
52
|
+
import { IMAGE_MAX_BYTES, IMAGE_MAX_SIDE, IMAGE_READ_MAX_BYTES, IMAGE_TYPES, PwCodeImageTooLarge, nextImageSeq, useComposerImages, withoutAppendedImages } from "./useComposerImages.js";
|
|
38
53
|
import { recapAfterLeavingMs, recapAfterTurnMs, useAwayRecap } from "./useAwayRecap.js";
|
|
39
54
|
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 };
|
|
55
|
+
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, todoLabel, todoWindow, transcriptMessages, triageSessions, turnDuration, turnRunning, typedDirectory, useAgentTypeLabel, useAwayRecap, useClaudeAccountName, useClaudeAccountPanel, useClaudeAccountRemoval, useClaudeAccountStartRow, useClaudeAccountUsage, useClaudeSignIn, useCommandOutputs, useCompactAgo, useCompactionNotice, useComposerImages, useComposerPastes, useDismissSubagent, useFollowedWorktree, useGoalElapsed, useGoalNotice, useLastModelPreference, useLastReadAt, useModelAllocations, useModelCatalog, useModelPicker, usePasteCards, usePlatformDefaults, usePwCodeAgentLine, usePwCodeAgentSwitcher, usePwCodeChatStrings, usePwCodeComposer, usePwCodeConversation, usePwCodeSessionScreen, usePwCodeSubagent, usePwCodeTranscript, usePwCodeTranslations, useRecapNotice, useRemoveSessionDirectory, useResumeClock, useResumeTime, useRetainedSessions, useSessionActions, useSessionGoal, useSessionGroups, useSessionLink, useSessionList, useSessionPicker, useStaleFor, useStartAccountPreference, useStartDefaultsFromSession, useStartEffortPreference, useStartLocation, useStartMachinePreference, useStartModePreference, useStartModel, useStartPermissionMode, useStartScreen, useStartSession, useTodoPanel, useToolStrings, useTranscriptWords, useUsageLimitWait, useWorktreeChoice, visibleFolders, waitingQuestions, waitingSince, waitsOnAnswer, waitsOnUsageLimit, 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,55 @@ 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
|
+
"emoji": "Emoji"
|
|
155
|
+
};
|
|
156
|
+
var thread = { "jumpToPrompt": "Go to message: {text}" };
|
|
157
|
+
var find = {
|
|
158
|
+
"label": "Find in conversation",
|
|
159
|
+
"count": "{current, number} of {total, number}",
|
|
160
|
+
"countCapped": "{current, number} of {total, number}+",
|
|
161
|
+
"none": "No results",
|
|
162
|
+
"previous": "Previous match",
|
|
163
|
+
"next": "Next match",
|
|
164
|
+
"close": "Close find"
|
|
165
|
+
};
|
|
166
|
+
var chrome = { "jumpToLatest": "Jump to latest" };
|
|
167
|
+
var messageMeta = { "copyLabel": "message" };
|
|
168
|
+
var attachmentManager = {
|
|
169
|
+
"unnamedImage": "Image attachment",
|
|
170
|
+
"unnamedFile": "File",
|
|
171
|
+
"open": "Open {name}",
|
|
172
|
+
"download": "Download {name}",
|
|
173
|
+
"previousImage": "Previous image",
|
|
174
|
+
"nextImage": "Next image",
|
|
175
|
+
"imagePosition": "{position, number} of {total, number}",
|
|
176
|
+
"fullImageFailed": "Couldn't load the full image. Showing a preview."
|
|
177
|
+
};
|
|
178
|
+
var markdownImage = {
|
|
179
|
+
"untitled": "Image",
|
|
180
|
+
"open": "Open {name} on GitHub"
|
|
181
|
+
};
|
|
182
|
+
var sidebar = {
|
|
183
|
+
"openSidebar": "Open sidebar",
|
|
184
|
+
"closeSidebar": "Close sidebar",
|
|
185
|
+
"manageProviders": "Manage providers"
|
|
186
|
+
};
|
|
134
187
|
var modelPicker = {
|
|
135
188
|
"choose": "Model",
|
|
136
189
|
"select": "Select a model",
|
|
@@ -155,8 +208,17 @@ var agentTranscript_default = {
|
|
|
155
208
|
queue,
|
|
156
209
|
paste,
|
|
157
210
|
thinking,
|
|
211
|
+
activity,
|
|
212
|
+
input,
|
|
213
|
+
thread,
|
|
214
|
+
find,
|
|
215
|
+
chrome,
|
|
216
|
+
messageMeta,
|
|
217
|
+
attachmentManager,
|
|
218
|
+
markdownImage,
|
|
219
|
+
sidebar,
|
|
158
220
|
modelPicker,
|
|
159
221
|
allocationPicker,
|
|
160
222
|
providerIssue
|
|
161
223
|
};
|
|
162
|
-
export { allocationPicker, agentTranscript_default as default, modelPicker, paste, providerIssue, queue, thinking, tools, transcript };
|
|
224
|
+
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",
|
|
@@ -45,8 +51,6 @@ var sidebar = {
|
|
|
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 @@ var start = {
|
|
|
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
|
-
"
|
|
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",
|
|
@@ -102,7 +131,9 @@ var status = {
|
|
|
102
131
|
"running": "running",
|
|
103
132
|
"awaiting_approval": "approval needed",
|
|
104
133
|
"awaiting_answer": "answer needed",
|
|
105
|
-
"live_elsewhere": "live on {host}"
|
|
134
|
+
"live_elsewhere": "live on {host}",
|
|
135
|
+
"usage_limit": "usage limit reached",
|
|
136
|
+
"usage_limit_until": "limit resets {time}"
|
|
106
137
|
};
|
|
107
138
|
var machine = {
|
|
108
139
|
"connected": "connected",
|
|
@@ -126,6 +157,7 @@ var detail = {
|
|
|
126
157
|
"archiveWhileRunning": "Wait for the turn to finish, then run /archive.",
|
|
127
158
|
"archived": "Archived “{name}”. Restore it from the Archived group to use it again.",
|
|
128
159
|
"steerUncertain": "No answer came back, so this may have reached the agent. Check the transcript before you send it again.",
|
|
160
|
+
"steerAlreadyRead": "The agent already read this message, so it can't be taken back.",
|
|
129
161
|
"shellStopped": "A hook stopped the agent from reacting: {reason}",
|
|
130
162
|
"backgroundHint": "({key} to run in background)",
|
|
131
163
|
"backgroundTitle": "The command keeps running, and the agent carries on without waiting for it",
|
|
@@ -158,7 +190,6 @@ var detail = {
|
|
|
158
190
|
"waitingForUsageLimit": "Waiting for the usage limit to reset",
|
|
159
191
|
"waitingForUsageLimitUntil": "Waiting for the usage limit to reset at {time}",
|
|
160
192
|
"switchClaudeAccount": "Switch account",
|
|
161
|
-
"loading": "Loading transcript…",
|
|
162
193
|
"cleared": "The session was cleared; showing the new session.",
|
|
163
194
|
"dismiss": "Dismiss",
|
|
164
195
|
"transcriptLabel": "Session transcript",
|
|
@@ -187,9 +218,30 @@ var detail = {
|
|
|
187
218
|
"goalAchieved": "✓ Goal achieved ({elapsed} · {turns, plural, one {# turn} other {# turns}} · {tokens} tokens)",
|
|
188
219
|
"goalContinuing": "○ Goal not yet met… continuing",
|
|
189
220
|
"goalCheckFailed": "Goal check failed: {error}. The goal is still set and is checked again after the next turn.",
|
|
221
|
+
"goalCheckin": "○ Goal check-in: background work still running ({waited})",
|
|
190
222
|
"goalUsageLimit": "Usage limit reached. The goal is checked again at {time}.",
|
|
191
223
|
"goalActive": "goal active",
|
|
192
224
|
"goalPaused": "goal paused",
|
|
225
|
+
"goalPanel": {
|
|
226
|
+
"title": "Goal",
|
|
227
|
+
"loading": "Reading the goal…",
|
|
228
|
+
"none": "This session has no goal now.",
|
|
229
|
+
"active": "Active",
|
|
230
|
+
"paused": "Paused",
|
|
231
|
+
"checking": "Checking",
|
|
232
|
+
"turns": "{count, plural, one {# turn checked} other {# turns checked}}",
|
|
233
|
+
"tokens": "{tokens} tokens",
|
|
234
|
+
"lastCheck": "Last check",
|
|
235
|
+
"pausedNote": "No turn starts toward it while it is paused. Resuming starts one right away.",
|
|
236
|
+
"edit": "Edit",
|
|
237
|
+
"pause": "Pause",
|
|
238
|
+
"resume": "Resume",
|
|
239
|
+
"clear": "Clear goal",
|
|
240
|
+
"conditionLabel": "Goal condition",
|
|
241
|
+
"editHint": "The run keeps its progress. Bound it in the condition itself, such as “or stop after 20 turns”.",
|
|
242
|
+
"cancel": "Cancel",
|
|
243
|
+
"save": "Save"
|
|
244
|
+
},
|
|
193
245
|
"addedDirectory": "Added working directory: {path}",
|
|
194
246
|
"addedDirectoryAndMore": "{path} and {count, plural, one {# more working directory} other {# more working directories}}",
|
|
195
247
|
"workingDirectory": "Working directory: {path}",
|
|
@@ -225,6 +277,11 @@ var detail = {
|
|
|
225
277
|
"subagentMessage": "Message from {name}",
|
|
226
278
|
"commandCompleted": "Background command \"{name}\" completed (exit code 0)",
|
|
227
279
|
"commandFailed": "Background command \"{name}\" failed with exit code {code}",
|
|
280
|
+
"monitorEvent": "Monitor event: {line} · {name}",
|
|
281
|
+
"monitorEnded": "Monitor \"{name}\" stream ended",
|
|
282
|
+
"monitorFailed": "Monitor \"{name}\" script failed (exit {code})",
|
|
283
|
+
"monitorExpired": "Monitor \"{name}\" expired after {elapsed} with {count, plural, =0 {no events} one {# event} other {# events}} delivered",
|
|
284
|
+
"monitorFlooded": "Monitor \"{name}\" stopped after {elapsed} of too much output",
|
|
228
285
|
"agentEnded": "Agent \"{name}\" {outcome, select, failed {failed} other {finished}}",
|
|
229
286
|
"agentEndedAfter": "Agent \"{name}\" {outcome, select, failed {failed} other {finished}} · {elapsed}",
|
|
230
287
|
"expandAll": "Expand all",
|
|
@@ -244,6 +301,7 @@ var switcher = {
|
|
|
244
301
|
"hideEarlier": "{count, plural, one {Hide # earlier agent} other {Hide # earlier agents}}",
|
|
245
302
|
"agentName": "{type}: {description}",
|
|
246
303
|
"stop": "Stop {name}",
|
|
304
|
+
"dismiss": "Remove {name} from the list",
|
|
247
305
|
"stopThis": "Stop",
|
|
248
306
|
"back": "Back to main",
|
|
249
307
|
"tokens": "{tokens} tokens",
|
|
@@ -258,6 +316,12 @@ var switcher = {
|
|
|
258
316
|
"commandsOnMain": "Commands and ! run in the main conversation. Go back to main to use them.",
|
|
259
317
|
"transcriptLabel": "Agent transcript"
|
|
260
318
|
};
|
|
319
|
+
var tasks = {
|
|
320
|
+
"progress": "{done} of {total} done",
|
|
321
|
+
"more": "+{count} more",
|
|
322
|
+
"moreCompleted": "+{count} completed",
|
|
323
|
+
"fewer": "Show fewer"
|
|
324
|
+
};
|
|
261
325
|
var effort = {
|
|
262
326
|
"label": "Effort",
|
|
263
327
|
"named": "Effort: {level}",
|
|
@@ -283,6 +347,14 @@ var permission = {
|
|
|
283
347
|
"plan": "The workspace is left unchanged while a plan is drafted."
|
|
284
348
|
}
|
|
285
349
|
};
|
|
350
|
+
var allocation = {
|
|
351
|
+
"notRatedInUsd": "Not rated in USD",
|
|
352
|
+
"noBudget": "No budget set",
|
|
353
|
+
"noActivePeriod": "No active period",
|
|
354
|
+
"budgetSpent": "Budget used up",
|
|
355
|
+
"noAccess": "Not shared with you to bill",
|
|
356
|
+
"budgetExceeded": "Budget exceeded"
|
|
357
|
+
};
|
|
286
358
|
var dash = {
|
|
287
359
|
"needsYou": "Needs you",
|
|
288
360
|
"waitingFor": "waiting {when}",
|
|
@@ -304,10 +376,7 @@ var claude = {
|
|
|
304
376
|
"loadingUsage": "Loading usage…",
|
|
305
377
|
"signedOut": "Not signed in",
|
|
306
378
|
"usageUnavailable": "Usage unavailable",
|
|
307
|
-
"current": "Selected account",
|
|
308
379
|
"loginOnHost": "To sign in, run /claude-code in pw code on this host.",
|
|
309
|
-
"fiveHour": "5h {percent} used",
|
|
310
|
-
"week": "Week {percent} used",
|
|
311
380
|
"resets": "resets {time}",
|
|
312
381
|
"platformModels": "Platform models",
|
|
313
382
|
"shortAccount": "Account",
|
|
@@ -349,7 +418,10 @@ var claude = {
|
|
|
349
418
|
"expired": "Sign-in expired. Try again."
|
|
350
419
|
},
|
|
351
420
|
"useAccount": "Use",
|
|
352
|
-
"accountActions": "Actions for {account}"
|
|
421
|
+
"accountActions": "Actions for {account}",
|
|
422
|
+
"continueOnAnother": "Continue on another account",
|
|
423
|
+
"moveOthers": "{count, plural, one {Also move # other session on {account}} other {Also move # other sessions on {account}}}",
|
|
424
|
+
"movedOthers": "{count, plural, =0 {No other session moved to {account}} one {Moved # other session to {account}} other {Moved # other sessions to {account}}}"
|
|
353
425
|
};
|
|
354
426
|
var terminal = {
|
|
355
427
|
"title": "Continue in a terminal",
|
|
@@ -365,16 +437,19 @@ var terminal = {
|
|
|
365
437
|
};
|
|
366
438
|
var agents_default = {
|
|
367
439
|
title,
|
|
440
|
+
ago,
|
|
368
441
|
sidebar,
|
|
369
442
|
start,
|
|
370
443
|
status,
|
|
371
444
|
machine,
|
|
372
445
|
detail,
|
|
373
446
|
switcher,
|
|
447
|
+
tasks,
|
|
374
448
|
effort,
|
|
375
449
|
permission,
|
|
450
|
+
allocation,
|
|
376
451
|
dash,
|
|
377
452
|
claude,
|
|
378
453
|
terminal
|
|
379
454
|
};
|
|
380
|
-
export { claude, dash, agents_default as default, detail, effort, machine, permission, sidebar, start, status, switcher, terminal, title };
|
|
455
|
+
export { ago, allocation, claude, dash, agents_default as default, detail, effort, machine, permission, sidebar, start, status, switcher, tasks, terminal, title };
|