@nextop-os/workspace-issue-manager 0.0.24 → 0.0.25
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/dist/{chunk-DMC3JMM2.js → chunk-PDBLEOV4.js} +671 -550
- package/dist/chunk-PDBLEOV4.js.map +1 -0
- package/dist/{chunk-5Y5GVLKU.js → chunk-QKFOVSRG.js} +55 -55
- package/dist/chunk-QKFOVSRG.js.map +1 -0
- package/dist/{chunk-V75TAM27.js → chunk-QW2WQXOG.js} +23 -2
- package/dist/chunk-QW2WQXOG.js.map +1 -0
- package/dist/{chunk-ZQVG7YMT.js → chunk-UZEH5YBL.js} +11 -4
- package/dist/chunk-UZEH5YBL.js.map +1 -0
- package/dist/core/index.d.ts +6 -1
- package/dist/core/index.js +6 -2
- package/dist/i18n/index.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -3
- package/dist/{issueManagerControllerService.interface-B_Jr7Xw_.d.ts → issueManagerControllerService.interface-BtvnnFla.d.ts} +3 -1
- package/dist/services/index.d.ts +2 -2
- package/dist/services/index.js +3 -3
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +4 -4
- package/dist/workbench/index.d.ts +3 -2
- package/dist/workbench/index.js +8 -17
- package/dist/workbench/index.js.map +1 -1
- package/package.json +5 -5
- package/dist/chunk-5Y5GVLKU.js.map +0 -1
- package/dist/chunk-DMC3JMM2.js.map +0 -1
- package/dist/chunk-V75TAM27.js.map +0 -1
- package/dist/chunk-ZQVG7YMT.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
resolveIssueManagerPriorityLabel,
|
|
9
9
|
resolveIssueManagerStatusLabel,
|
|
10
10
|
uniqueIssueManagerFileReferences
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UZEH5YBL.js";
|
|
12
12
|
import {
|
|
13
13
|
appendIssueManagerWorkspaceFileLinksToContent,
|
|
14
14
|
buildIssueManagerRunOutputDir,
|
|
@@ -24,6 +24,7 @@ import {
|
|
|
24
24
|
extractIssueManagerPlainTextFromContent,
|
|
25
25
|
extractIssueManagerPlainTextWithoutFilesFromContent,
|
|
26
26
|
extractIssueManagerWorkspaceFileLinksFromContent,
|
|
27
|
+
issueManagerDefaultNodeFrameWidth,
|
|
27
28
|
issueManagerExpandedFrameMinWidth,
|
|
28
29
|
issueManagerMainMinWidth,
|
|
29
30
|
issueManagerSidebarDefaultWidth,
|
|
@@ -35,10 +36,11 @@ import {
|
|
|
35
36
|
parseIssueManagerMentionHref,
|
|
36
37
|
removeIssueManagerMentionFromContent,
|
|
37
38
|
removeIssueManagerWorkspaceFileLinkFromContent,
|
|
39
|
+
resolveIssueManagerExpandedFrame,
|
|
38
40
|
resolveIssueManagerWorkspaceRuntimePath,
|
|
39
41
|
shouldAutoCollapseIssueManagerSidebar
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
+
} from "./chunk-QW2WQXOG.js";
|
|
43
|
+
import "./chunk-QKFOVSRG.js";
|
|
42
44
|
export {
|
|
43
45
|
appendIssueManagerWorkspaceFileLinksToContent,
|
|
44
46
|
buildIssueManagerRunOutputDir,
|
|
@@ -58,6 +60,7 @@ export {
|
|
|
58
60
|
extractIssueManagerWorkspaceFileLinksFromContent,
|
|
59
61
|
formatIssueManagerDate,
|
|
60
62
|
formatIssueManagerTimestamp,
|
|
63
|
+
issueManagerDefaultNodeFrameWidth,
|
|
61
64
|
issueManagerExpandedFrameMinWidth,
|
|
62
65
|
issueManagerMainMinWidth,
|
|
63
66
|
issueManagerSidebarDefaultWidth,
|
|
@@ -70,6 +73,7 @@ export {
|
|
|
70
73
|
parseIssueManagerMentionHref,
|
|
71
74
|
removeIssueManagerMentionFromContent,
|
|
72
75
|
removeIssueManagerWorkspaceFileLinkFromContent,
|
|
76
|
+
resolveIssueManagerExpandedFrame,
|
|
73
77
|
resolveIssueManagerPriorityLabel,
|
|
74
78
|
resolveIssueManagerStatusLabel,
|
|
75
79
|
resolveIssueManagerWorkspaceRuntimePath,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SetStateAction } from 'react';
|
|
2
|
-
import { IssueManagerPriority, IssueManagerStatus, IssueManagerFileReference, IssueManagerIssueDetail, IssueManagerTaskDetail, IssueManagerNodeState, IssueManagerIssueSummary } from './contracts/index.js';
|
|
2
|
+
import { IssueManagerPriority, IssueManagerStatus, IssueManagerFileReference, IssueManagerStatusCounts, IssueManagerIssueDetail, IssueManagerTaskDetail, IssueManagerNodeState, IssueManagerIssueSummary } from './contracts/index.js';
|
|
3
3
|
import { I as IssueManagerFeature } from './feature-2zhsUF_g.js';
|
|
4
4
|
import { IssueManagerI18nRuntime } from './i18n/index.js';
|
|
5
5
|
|
|
@@ -38,7 +38,9 @@ interface TaskDraft {
|
|
|
38
38
|
}
|
|
39
39
|
interface AsyncCollectionState<TValue> {
|
|
40
40
|
error: string | null;
|
|
41
|
+
hasResolved?: boolean;
|
|
41
42
|
isLoading: boolean;
|
|
43
|
+
statusCounts?: IssueManagerStatusCounts;
|
|
42
44
|
value: TValue;
|
|
43
45
|
}
|
|
44
46
|
type IssueManagerNotificationTone = "default" | "destructive";
|
package/dist/services/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as IssueManagerControllerService } from '../issueManagerControllerService.interface-
|
|
2
|
-
export { A as AsyncCollectionState, C as CreateIssueManagerControllerRuntimeInput, C as CreateIssueManagerControllerSessionInput, I as IssueDraft, a as IssueManagerControllerRuntime, a as IssueManagerControllerSession, S as IssueManagerControllerSessionSyncInput, c as IssueManagerControllerSnapshot, d as IssueManagerDetailCollections, e as IssueManagerEditorMode, f as IssueManagerNotificationState, g as IssueManagerNotificationTone, h as IssueManagerReferenceTarget, S as SyncIssueManagerControllerRuntimeInput, T as TaskDraft, i as createIssueManagerDate, j as formatIssueManagerDate, k as formatIssueManagerTimestamp, p as parentDirectoryPath, r as resolveIssueManagerPriorityLabel, l as resolveIssueManagerStatusLabel, u as uniqueIssueManagerFileReferences } from '../issueManagerControllerService.interface-
|
|
1
|
+
import { b as IssueManagerControllerService } from '../issueManagerControllerService.interface-BtvnnFla.js';
|
|
2
|
+
export { A as AsyncCollectionState, C as CreateIssueManagerControllerRuntimeInput, C as CreateIssueManagerControllerSessionInput, I as IssueDraft, a as IssueManagerControllerRuntime, a as IssueManagerControllerSession, S as IssueManagerControllerSessionSyncInput, c as IssueManagerControllerSnapshot, d as IssueManagerDetailCollections, e as IssueManagerEditorMode, f as IssueManagerNotificationState, g as IssueManagerNotificationTone, h as IssueManagerReferenceTarget, S as SyncIssueManagerControllerRuntimeInput, T as TaskDraft, i as createIssueManagerDate, j as formatIssueManagerDate, k as formatIssueManagerTimestamp, p as parentDirectoryPath, r as resolveIssueManagerPriorityLabel, l as resolveIssueManagerStatusLabel, u as uniqueIssueManagerFileReferences } from '../issueManagerControllerService.interface-BtvnnFla.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../contracts/index.js';
|
|
5
5
|
import '../feature-2zhsUF_g.js';
|
package/dist/services/index.js
CHANGED
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
resolveIssueManagerPriorityLabel,
|
|
9
9
|
resolveIssueManagerStatusLabel,
|
|
10
10
|
uniqueIssueManagerFileReferences
|
|
11
|
-
} from "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
11
|
+
} from "../chunk-UZEH5YBL.js";
|
|
12
|
+
import "../chunk-QW2WQXOG.js";
|
|
13
|
+
import "../chunk-QKFOVSRG.js";
|
|
14
14
|
export {
|
|
15
15
|
createIssueManagerControllerService,
|
|
16
16
|
createIssueManagerDate,
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { IssueManagerI18nRuntime } from '../i18n/index.js';
|
|
|
3
3
|
import { RichTextAtProvider } from '@nextop-os/ui-rich-text/types';
|
|
4
4
|
import { IssueManagerNodeState } from '../contracts/index.js';
|
|
5
5
|
import { I as IssueManagerFeature } from '../feature-2zhsUF_g.js';
|
|
6
|
-
import { b as IssueManagerControllerService } from '../issueManagerControllerService.interface-
|
|
6
|
+
import { b as IssueManagerControllerService } from '../issueManagerControllerService.interface-BtvnnFla.js';
|
|
7
7
|
import '@nextop-os/ui-i18n-runtime';
|
|
8
8
|
|
|
9
9
|
type IssueManagerRichTextSurface = "issue" | "task";
|
package/dist/ui/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
IssueManagerNode,
|
|
3
3
|
IssueManagerNodeHeader
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-PDBLEOV4.js";
|
|
5
|
+
import "../chunk-UZEH5YBL.js";
|
|
6
|
+
import "../chunk-QW2WQXOG.js";
|
|
7
|
+
import "../chunk-QKFOVSRG.js";
|
|
8
8
|
export {
|
|
9
9
|
IssueManagerNode,
|
|
10
10
|
IssueManagerNodeHeader
|
|
@@ -3,7 +3,7 @@ import { RichTextAtProvider } from '@nextop-os/ui-rich-text/types';
|
|
|
3
3
|
import { WorkbenchHostExternalStateSource, WorkbenchFrame, WorkbenchHostDockEntry, WorkbenchContribution, WorkbenchHostLaunchRequest, WorkbenchHostLaunchResult, WorkbenchHostNodeDefinition } from '@nextop-os/workbench-surface';
|
|
4
4
|
import { IssueManagerNodeState } from '../contracts/index.js';
|
|
5
5
|
import { I as IssueManagerFeature } from '../feature-2zhsUF_g.js';
|
|
6
|
-
import { b as IssueManagerControllerService } from '../issueManagerControllerService.interface-
|
|
6
|
+
import { b as IssueManagerControllerService } from '../issueManagerControllerService.interface-BtvnnFla.js';
|
|
7
7
|
import '@nextop-os/ui-i18n-runtime';
|
|
8
8
|
import '../i18n/index.js';
|
|
9
9
|
|
|
@@ -39,6 +39,7 @@ interface CreateIssueManagerDockEntryInput {
|
|
|
39
39
|
feature: IssueManagerFeature;
|
|
40
40
|
id?: string;
|
|
41
41
|
order?: number;
|
|
42
|
+
separatorAfter?: boolean;
|
|
42
43
|
sectionId?: string;
|
|
43
44
|
typeId?: string;
|
|
44
45
|
}
|
|
@@ -52,7 +53,7 @@ interface CreateIssueManagerWorkbenchContributionInput {
|
|
|
52
53
|
}
|
|
53
54
|
declare const defaultIssueManagerWorkbenchTypeId = "issue-manager";
|
|
54
55
|
declare function createIssueManagerWorkbenchNodeDefinition<TExternalWorkspaceState extends IssueManagerExternalWorkspaceState = IssueManagerExternalWorkspaceState>({ emptyIllustration, feature, frame, onStateChange, resolveRichTextAtProviders, service, title, typeId }: CreateIssueManagerWorkbenchNodeDefinitionInput): WorkbenchHostNodeDefinition<Partial<IssueManagerNodeState> | null, TExternalWorkspaceState>;
|
|
55
|
-
declare function createIssueManagerDockEntry({ dockIcon, feature, id, order, sectionId, typeId }: CreateIssueManagerDockEntryInput): WorkbenchHostDockEntry;
|
|
56
|
+
declare function createIssueManagerDockEntry({ dockIcon, feature, id, order, separatorAfter, sectionId, typeId }: CreateIssueManagerDockEntryInput): WorkbenchHostDockEntry;
|
|
56
57
|
declare function createIssueManagerDockIconImage(src: string): ReactNode;
|
|
57
58
|
declare function createIssueManagerWorkbenchLaunchHandler({ frame, title, typeId }?: CreateIssueManagerWorkbenchLaunchHandlerInput): (request: WorkbenchHostLaunchRequest) => Promise<WorkbenchHostLaunchResult | null>;
|
|
58
59
|
declare function createIssueManagerWorkbenchContribution({ contributionId, dockEntry, externalStateSource, feature, node, typeId }: CreateIssueManagerWorkbenchContributionInput): WorkbenchContribution;
|
package/dist/workbench/index.js
CHANGED
|
@@ -2,13 +2,14 @@ import {
|
|
|
2
2
|
IssueManagerNode,
|
|
3
3
|
IssueManagerNodeHeader,
|
|
4
4
|
dispatchIssueManagerTaskListCollapsed
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-PDBLEOV4.js";
|
|
6
|
+
import "../chunk-UZEH5YBL.js";
|
|
7
7
|
import {
|
|
8
8
|
normalizeIssueManagerNodeState,
|
|
9
|
+
resolveIssueManagerExpandedFrame,
|
|
9
10
|
shouldAutoCollapseIssueManagerSidebar
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-
|
|
11
|
+
} from "../chunk-QW2WQXOG.js";
|
|
12
|
+
import "../chunk-QKFOVSRG.js";
|
|
12
13
|
|
|
13
14
|
// src/workbench/index.ts
|
|
14
15
|
import { createElement } from "react";
|
|
@@ -19,7 +20,6 @@ var defaultIssueManagerNodeFrame = {
|
|
|
19
20
|
x: 220,
|
|
20
21
|
y: 120
|
|
21
22
|
};
|
|
22
|
-
var issueManagerExpandedFrameMinWidth = 668;
|
|
23
23
|
function createIssueManagerWorkbenchNodeDefinition({
|
|
24
24
|
emptyIllustration,
|
|
25
25
|
feature,
|
|
@@ -102,7 +102,7 @@ function createIssueManagerWorkbenchNodeDefinition({
|
|
|
102
102
|
}
|
|
103
103
|
},
|
|
104
104
|
onToggleSidebar: (nextCollapsed) => {
|
|
105
|
-
if (
|
|
105
|
+
if (isSidebarCollapsed && nextCollapsed === false && node.displayMode !== "fullscreen") {
|
|
106
106
|
windowActions.resize(
|
|
107
107
|
resolveIssueManagerExpandedFrame(node.frame, surfaceSize.width)
|
|
108
108
|
);
|
|
@@ -123,22 +123,12 @@ function createIssueManagerWorkbenchNodeDefinition({
|
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
|
-
function resolveIssueManagerExpandedFrame(frame, surfaceWidth) {
|
|
127
|
-
const width = Math.min(
|
|
128
|
-
Math.max(frame.width, issueManagerExpandedFrameMinWidth),
|
|
129
|
-
Math.max(frame.width, surfaceWidth)
|
|
130
|
-
);
|
|
131
|
-
return {
|
|
132
|
-
...frame,
|
|
133
|
-
width,
|
|
134
|
-
x: Math.max(0, Math.min(frame.x, surfaceWidth - width))
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
126
|
function createIssueManagerDockEntry({
|
|
138
127
|
dockIcon,
|
|
139
128
|
feature,
|
|
140
129
|
id,
|
|
141
130
|
order,
|
|
131
|
+
separatorAfter,
|
|
142
132
|
sectionId,
|
|
143
133
|
typeId = defaultIssueManagerWorkbenchTypeId
|
|
144
134
|
}) {
|
|
@@ -152,6 +142,7 @@ function createIssueManagerDockEntry({
|
|
|
152
142
|
resolvePopupItem: ({ node }) => ({
|
|
153
143
|
title: node.title
|
|
154
144
|
}),
|
|
145
|
+
separatorAfter,
|
|
155
146
|
sectionId,
|
|
156
147
|
typeId,
|
|
157
148
|
visibility: "always"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/workbench/index.ts"],"sourcesContent":["import { createElement, type ReactNode } from \"react\";\nimport type { RichTextAtProvider } from \"@nextop-os/ui-rich-text/types\";\nimport type {\n WorkbenchContribution,\n WorkbenchFrame,\n WorkbenchHostDockEntry,\n WorkbenchHostExternalStateSource,\n WorkbenchHostLaunchRequest,\n WorkbenchHostLaunchResult,\n WorkbenchHostNodeDefinition\n} from \"@nextop-os/workbench-surface\";\nimport type { IssueManagerNodeState } from \"../contracts/index.ts\";\nimport {\n normalizeIssueManagerNodeState,\n shouldAutoCollapseIssueManagerSidebar,\n type IssueManagerFeature\n} from \"../core/index.ts\";\nimport type { IssueManagerControllerService } from \"../services/issueManagerControllerService.interface.ts\";\nimport {\n dispatchIssueManagerTaskListCollapsed,\n IssueManagerNode,\n IssueManagerNodeHeader\n} from \"../ui/IssueManagerNode.tsx\";\n\nexport interface IssueManagerExternalWorkspaceState {\n workspaceId?: string | null;\n}\n\nexport interface CreateIssueManagerWorkbenchNodeDefinitionInput {\n emptyIllustration?: ReactNode;\n feature: IssueManagerFeature;\n frame?: WorkbenchFrame;\n onStateChange?: (input: {\n instanceId: string;\n instanceKey?: string | null;\n nodeId: string;\n state: IssueManagerNodeState;\n workspaceState: IssueManagerExternalWorkspaceState;\n }) => void;\n resolveRichTextAtProviders?: (input: {\n surface: \"issue\" | \"task\";\n workspaceId: string;\n }) => readonly RichTextAtProvider[];\n service?: IssueManagerControllerService;\n title?: string;\n typeId?: string;\n}\n\nexport interface CreateIssueManagerWorkbenchLaunchHandlerInput {\n frame?: WorkbenchFrame;\n title?: string;\n typeId?: string;\n}\n\nexport interface CreateIssueManagerDockEntryInput {\n dockIcon?: ReactNode;\n feature: IssueManagerFeature;\n id?: string;\n order?: number;\n sectionId?: string;\n typeId?: string;\n}\n\nexport interface CreateIssueManagerWorkbenchContributionInput {\n contributionId?: string;\n dockEntry?: Omit<CreateIssueManagerDockEntryInput, \"feature\">;\n externalStateSource?: WorkbenchHostExternalStateSource<\n Partial<IssueManagerNodeState> | null,\n IssueManagerExternalWorkspaceState\n >;\n feature: IssueManagerFeature;\n node?: Omit<CreateIssueManagerWorkbenchNodeDefinitionInput, \"feature\">;\n typeId?: string;\n}\n\nexport const defaultIssueManagerWorkbenchTypeId = \"issue-manager\";\n\nconst defaultIssueManagerNodeFrame: WorkbenchFrame = {\n height: 620,\n width: 960,\n x: 220,\n y: 120\n};\nconst issueManagerExpandedFrameMinWidth = 668;\n\nexport function createIssueManagerWorkbenchNodeDefinition<\n TExternalWorkspaceState extends IssueManagerExternalWorkspaceState =\n IssueManagerExternalWorkspaceState\n>({\n emptyIllustration,\n feature,\n frame = defaultIssueManagerNodeFrame,\n onStateChange,\n resolveRichTextAtProviders,\n service,\n title,\n typeId = defaultIssueManagerWorkbenchTypeId\n}: CreateIssueManagerWorkbenchNodeDefinitionInput): WorkbenchHostNodeDefinition<\n Partial<IssueManagerNodeState> | null,\n TExternalWorkspaceState\n> {\n return {\n frame,\n instance: {\n mode: \"single\"\n },\n renderBody: (context) =>\n createElement(IssueManagerNode, {\n emptyIllustration,\n feature,\n nodeId: context.node.id,\n onStateChange: onStateChange\n ? (state) =>\n onStateChange({\n instanceId: context.instanceId,\n instanceKey: context.instanceKey ?? null,\n nodeId: context.node.id,\n state,\n workspaceState: context.externalWorkspaceState\n })\n : undefined,\n resolveRichTextAtProviders,\n service,\n state: context.externalNodeState,\n workspaceId: context.externalWorkspaceState.workspaceId ?? \"\"\n }),\n renderHeader: ({\n defaultActions,\n dragHandleProps,\n externalNodeState,\n externalWorkspaceState,\n instanceId,\n instanceKey,\n isFocused,\n node,\n surfaceSize,\n windowActions\n }) => {\n const nodeState = normalizeIssueManagerNodeState(externalNodeState);\n const isSidebarAutoCollapsed = shouldAutoCollapseIssueManagerSidebar(\n node.frame.width\n );\n const isSidebarCollapsed =\n nodeState.taskListCollapsed === true || isSidebarAutoCollapsed;\n const persistTaskListCollapsed = (collapsed: boolean) => {\n onStateChange?.({\n instanceId,\n instanceKey: instanceKey ?? null,\n nodeId: node.id,\n state: {\n ...nodeState,\n taskListCollapsed: collapsed\n },\n workspaceState: externalWorkspaceState\n });\n };\n const applyTaskListCollapsed = (collapsed: boolean) => {\n dispatchIssueManagerTaskListCollapsed({\n collapsed,\n nodeId: node.id\n });\n persistTaskListCollapsed(collapsed);\n };\n\n return createElement(IssueManagerNodeHeader, {\n copy: feature.i18n,\n defaultActions,\n isSidebarAutoCollapsed,\n isSidebarCollapsed,\n nodeId: node.id,\n title: node.title,\n ...dragHandleProps,\n onPointerDown: (event) => {\n dragHandleProps.onPointerDown?.(event);\n if (!isFocused) {\n windowActions.focus();\n }\n },\n onToggleSidebar: (nextCollapsed) => {\n if (isSidebarAutoCollapsed && nextCollapsed === false) {\n windowActions.resize(\n resolveIssueManagerExpandedFrame(node.frame, surfaceSize.width)\n );\n applyTaskListCollapsed(false);\n return;\n }\n\n applyTaskListCollapsed(nextCollapsed);\n }\n });\n },\n title: title ?? feature.i18n.t(\"title\"),\n typeId,\n window: {\n closable: true,\n defaultOpen: false,\n minimizable: true,\n restoreOnLoad: true\n }\n };\n}\n\nfunction resolveIssueManagerExpandedFrame(\n frame: WorkbenchFrame,\n surfaceWidth: number\n): WorkbenchFrame {\n const width = Math.min(\n Math.max(frame.width, issueManagerExpandedFrameMinWidth),\n Math.max(frame.width, surfaceWidth)\n );\n return {\n ...frame,\n width,\n x: Math.max(0, Math.min(frame.x, surfaceWidth - width))\n };\n}\n\nexport function createIssueManagerDockEntry({\n dockIcon,\n feature,\n id,\n order,\n sectionId,\n typeId = defaultIssueManagerWorkbenchTypeId\n}: CreateIssueManagerDockEntryInput): WorkbenchHostDockEntry {\n return {\n icon: dockIcon ?? null,\n id: id ?? typeId,\n label: feature.i18n.t(\"dockLabel\"),\n launchBehavior: \"enabled\",\n matchNode: (node) => node.data.typeId === typeId,\n order,\n resolvePopupItem: ({ node }) => ({\n title: node.title\n }),\n sectionId,\n typeId,\n visibility: \"always\"\n };\n}\n\nexport function createIssueManagerDockIconImage(src: string): ReactNode {\n return createElement(\"img\", {\n alt: \"\",\n \"aria-hidden\": \"true\",\n \"data-issue-manager-dock-icon\": \"true\",\n draggable: false,\n src\n });\n}\n\nexport function createIssueManagerWorkbenchLaunchHandler({\n frame = defaultIssueManagerNodeFrame,\n title,\n typeId = defaultIssueManagerWorkbenchTypeId\n}: CreateIssueManagerWorkbenchLaunchHandlerInput = {}): (\n request: WorkbenchHostLaunchRequest\n) => Promise<WorkbenchHostLaunchResult | null> {\n return (request) => {\n if (request.typeId !== typeId) {\n return Promise.resolve(null);\n }\n\n return Promise.resolve({\n defaultFrame: frame,\n dockEntryId: request.dockEntryId ?? typeId,\n framePolicy: \"cascade\",\n instanceId: typeId,\n title,\n typeId\n });\n };\n}\n\nexport function createIssueManagerWorkbenchContribution({\n contributionId,\n dockEntry,\n externalStateSource,\n feature,\n node,\n typeId = defaultIssueManagerWorkbenchTypeId\n}: CreateIssueManagerWorkbenchContributionInput): WorkbenchContribution {\n return {\n dockEntries: [\n createIssueManagerDockEntry({\n ...dockEntry,\n feature,\n typeId\n })\n ],\n externalStateSource,\n id: contributionId ?? typeId,\n nodes: [\n createIssueManagerWorkbenchNodeDefinition({\n ...node,\n feature,\n typeId\n })\n ],\n onLaunchRequest: createIssueManagerWorkbenchLaunchHandler({\n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,MACF,CAAC;AAAA,IACH;AAAA,IACA,iBAAiB,yCAAyC;AAAA,MACxD,OAAO,MAAM;AAAA,MACb,OAAO,MAAM;AAAA,MACb;AAAA,IACF,CAAC;AAAA,EACH;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/workbench/index.ts"],"sourcesContent":["import { createElement, type ReactNode } from \"react\";\nimport type { RichTextAtProvider } from \"@nextop-os/ui-rich-text/types\";\nimport type {\n WorkbenchContribution,\n WorkbenchFrame,\n WorkbenchHostDockEntry,\n WorkbenchHostExternalStateSource,\n WorkbenchHostLaunchRequest,\n WorkbenchHostLaunchResult,\n WorkbenchHostNodeDefinition\n} from \"@nextop-os/workbench-surface\";\nimport type { IssueManagerNodeState } from \"../contracts/index.ts\";\nimport {\n normalizeIssueManagerNodeState,\n resolveIssueManagerExpandedFrame,\n shouldAutoCollapseIssueManagerSidebar,\n type IssueManagerFeature\n} from \"../core/index.ts\";\nimport type { IssueManagerControllerService } from \"../services/issueManagerControllerService.interface.ts\";\nimport {\n dispatchIssueManagerTaskListCollapsed,\n IssueManagerNode,\n IssueManagerNodeHeader\n} from \"../ui/IssueManagerNode.tsx\";\n\nexport interface IssueManagerExternalWorkspaceState {\n workspaceId?: string | null;\n}\n\nexport interface CreateIssueManagerWorkbenchNodeDefinitionInput {\n emptyIllustration?: ReactNode;\n feature: IssueManagerFeature;\n frame?: WorkbenchFrame;\n onStateChange?: (input: {\n instanceId: string;\n instanceKey?: string | null;\n nodeId: string;\n state: IssueManagerNodeState;\n workspaceState: IssueManagerExternalWorkspaceState;\n }) => void;\n resolveRichTextAtProviders?: (input: {\n surface: \"issue\" | \"task\";\n workspaceId: string;\n }) => readonly RichTextAtProvider[];\n service?: IssueManagerControllerService;\n title?: string;\n typeId?: string;\n}\n\nexport interface CreateIssueManagerWorkbenchLaunchHandlerInput {\n frame?: WorkbenchFrame;\n title?: string;\n typeId?: string;\n}\n\nexport interface CreateIssueManagerDockEntryInput {\n dockIcon?: ReactNode;\n feature: IssueManagerFeature;\n id?: string;\n order?: number;\n separatorAfter?: boolean;\n sectionId?: string;\n typeId?: string;\n}\n\nexport interface CreateIssueManagerWorkbenchContributionInput {\n contributionId?: string;\n dockEntry?: Omit<CreateIssueManagerDockEntryInput, \"feature\">;\n externalStateSource?: WorkbenchHostExternalStateSource<\n Partial<IssueManagerNodeState> | null,\n IssueManagerExternalWorkspaceState\n >;\n feature: IssueManagerFeature;\n node?: Omit<CreateIssueManagerWorkbenchNodeDefinitionInput, \"feature\">;\n typeId?: string;\n}\n\nexport const defaultIssueManagerWorkbenchTypeId = \"issue-manager\";\n\nconst defaultIssueManagerNodeFrame: WorkbenchFrame = {\n height: 620,\n width: 960,\n x: 220,\n y: 120\n};\n\nexport function createIssueManagerWorkbenchNodeDefinition<\n TExternalWorkspaceState extends IssueManagerExternalWorkspaceState =\n IssueManagerExternalWorkspaceState\n>({\n emptyIllustration,\n feature,\n frame = defaultIssueManagerNodeFrame,\n onStateChange,\n resolveRichTextAtProviders,\n service,\n title,\n typeId = defaultIssueManagerWorkbenchTypeId\n}: CreateIssueManagerWorkbenchNodeDefinitionInput): WorkbenchHostNodeDefinition<\n Partial<IssueManagerNodeState> | null,\n TExternalWorkspaceState\n> {\n return {\n frame,\n instance: {\n mode: \"single\"\n },\n renderBody: (context) =>\n createElement(IssueManagerNode, {\n emptyIllustration,\n feature,\n nodeId: context.node.id,\n onStateChange: onStateChange\n ? (state) =>\n onStateChange({\n instanceId: context.instanceId,\n instanceKey: context.instanceKey ?? null,\n nodeId: context.node.id,\n state,\n workspaceState: context.externalWorkspaceState\n })\n : undefined,\n resolveRichTextAtProviders,\n service,\n state: context.externalNodeState,\n workspaceId: context.externalWorkspaceState.workspaceId ?? \"\"\n }),\n renderHeader: ({\n defaultActions,\n dragHandleProps,\n externalNodeState,\n externalWorkspaceState,\n instanceId,\n instanceKey,\n isFocused,\n node,\n surfaceSize,\n windowActions\n }) => {\n const nodeState = normalizeIssueManagerNodeState(externalNodeState);\n const isSidebarAutoCollapsed = shouldAutoCollapseIssueManagerSidebar(\n node.frame.width\n );\n const isSidebarCollapsed =\n nodeState.taskListCollapsed === true || isSidebarAutoCollapsed;\n const persistTaskListCollapsed = (collapsed: boolean) => {\n onStateChange?.({\n instanceId,\n instanceKey: instanceKey ?? null,\n nodeId: node.id,\n state: {\n ...nodeState,\n taskListCollapsed: collapsed\n },\n workspaceState: externalWorkspaceState\n });\n };\n const applyTaskListCollapsed = (collapsed: boolean) => {\n dispatchIssueManagerTaskListCollapsed({\n collapsed,\n nodeId: node.id\n });\n persistTaskListCollapsed(collapsed);\n };\n\n return createElement(IssueManagerNodeHeader, {\n copy: feature.i18n,\n defaultActions,\n isSidebarAutoCollapsed,\n isSidebarCollapsed,\n nodeId: node.id,\n title: node.title,\n ...dragHandleProps,\n onPointerDown: (event) => {\n dragHandleProps.onPointerDown?.(event);\n if (!isFocused) {\n windowActions.focus();\n }\n },\n onToggleSidebar: (nextCollapsed) => {\n if (\n isSidebarCollapsed &&\n nextCollapsed === false &&\n node.displayMode !== \"fullscreen\"\n ) {\n windowActions.resize(\n resolveIssueManagerExpandedFrame(node.frame, surfaceSize.width)\n );\n applyTaskListCollapsed(false);\n return;\n }\n\n applyTaskListCollapsed(nextCollapsed);\n }\n });\n },\n title: title ?? feature.i18n.t(\"title\"),\n typeId,\n window: {\n closable: true,\n defaultOpen: false,\n minimizable: true,\n restoreOnLoad: true\n }\n };\n}\n\nexport function createIssueManagerDockEntry({\n dockIcon,\n feature,\n id,\n order,\n separatorAfter,\n sectionId,\n typeId = defaultIssueManagerWorkbenchTypeId\n}: CreateIssueManagerDockEntryInput): WorkbenchHostDockEntry {\n return {\n icon: dockIcon ?? null,\n id: id ?? typeId,\n label: feature.i18n.t(\"dockLabel\"),\n launchBehavior: \"enabled\",\n matchNode: (node) => node.data.typeId === typeId,\n order,\n resolvePopupItem: ({ node }) => ({\n title: node.title\n }),\n separatorAfter,\n sectionId,\n typeId,\n visibility: \"always\"\n };\n}\n\nexport function createIssueManagerDockIconImage(src: string): ReactNode {\n return createElement(\"img\", {\n alt: \"\",\n \"aria-hidden\": \"true\",\n \"data-issue-manager-dock-icon\": \"true\",\n draggable: false,\n src\n });\n}\n\nexport function createIssueManagerWorkbenchLaunchHandler({\n frame = defaultIssueManagerNodeFrame,\n title,\n typeId = defaultIssueManagerWorkbenchTypeId\n}: CreateIssueManagerWorkbenchLaunchHandlerInput = {}): (\n request: WorkbenchHostLaunchRequest\n) => Promise<WorkbenchHostLaunchResult | null> {\n return (request) => {\n if (request.typeId !== typeId) {\n return Promise.resolve(null);\n }\n\n return Promise.resolve({\n defaultFrame: frame,\n dockEntryId: request.dockEntryId ?? typeId,\n framePolicy: \"cascade\",\n instanceId: typeId,\n title,\n typeId\n });\n };\n}\n\nexport function createIssueManagerWorkbenchContribution({\n contributionId,\n dockEntry,\n externalStateSource,\n feature,\n node,\n typeId = defaultIssueManagerWorkbenchTypeId\n}: CreateIssueManagerWorkbenchContributionInput): WorkbenchContribution {\n return {\n dockEntries: [\n createIssueManagerDockEntry({\n ...dockEntry,\n feature,\n typeId\n })\n ],\n externalStateSource,\n id: contributionId ?? typeId,\n nodes: [\n createIssueManagerWorkbenchNodeDefinition({\n ...node,\n feature,\n typeId\n })\n ],\n onLaunchRequest: createIssueManagerWorkbenchLaunchHandler({\n frame: node?.frame,\n title: node?.title,\n typeId\n })\n };\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA,SAAS,qBAAqC;AA6EvC,IAAM,qCAAqC;AAElD,IAAM,+BAA+C;AAAA,EACnD,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,GAAG;AAAA,EACH,GAAG;AACL;AAEO,SAAS,0CAGd;AAAA,EACA;AAAA,EACA;AAAA,EACA,QAAQ;AAAA,EACR;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS;AACX,GAGE;AACA,SAAO;AAAA,IACL;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,IACR;AAAA,IACA,Y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;AAC7B,aAAO,QAAQ,QAAQ,IAAI;AAAA,IAC7B;AAEA,WAAO,QAAQ,QAAQ;AAAA,MACrB,cAAc;AAAA,MACd,aAAa,QAAQ,eAAe;AAAA,MACpC,aAAa;AAAA,MACb,YAAY;AAAA,MACZ;AAAA,MACA;AAAA,IACF,CAAC;AAAA,EACH;AACF;AAEO,SAAS,wCAAwC;AAAA,EACtD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS;AACX,GAAwE;AACtE,SAAO;AAAA,IACL,aAAa;AAAA,MACX,4BAA4B;AAAA,QAC1B,GAAG;AAAA,QACH;AAAA,QACA;AAAA,MACF,CAAC;AAAA,IACH;AAAA,IACA;AAAA,IACA,IAAI,kBAAkB;AAAA,IACtB,OAAO;AAAA,MACL,0CAA0C;AAAA,QACxC,GAAG;AAAA,QACH;AAAA,QACA;AAAA,MACF,CAAC;AAAA,IACH;AAAA,IACA,iBAAiB,yCAAyC;AAAA,MACxD,OAAO,MAAM;AAAA,MACb,OAAO,MAAM;AAAA,MACb;AAAA,IACF,CAAC;AAAA,EACH;AACF;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextop-os/workspace-issue-manager",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.25",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"directory": "packages/workspace/issue-manager"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@nextop-os/ui-i18n-runtime": "0.0.
|
|
54
|
-
"@nextop-os/ui-rich-text": "0.0.
|
|
55
|
-
"@nextop-os/ui-system": "0.0.
|
|
56
|
-
"@nextop-os/workbench-surface": "0.0.
|
|
53
|
+
"@nextop-os/ui-i18n-runtime": "0.0.25",
|
|
54
|
+
"@nextop-os/ui-rich-text": "0.0.25",
|
|
55
|
+
"@nextop-os/ui-system": "0.0.25",
|
|
56
|
+
"@nextop-os/workbench-surface": "0.0.25",
|
|
57
57
|
"valtio": "^2.3.2"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/i18n/issueManagerI18n.ts"],"sourcesContent":["import {\n createI18nRuntime,\n createScopedI18nRuntime,\n createScopedLocaleObjectsI18nModuleManifest,\n type I18nDictionary,\n type I18nRuntime\n} from \"@nextop-os/ui-i18n-runtime\";\n\ntype IssueManagerI18nLocale = \"en\" | \"zh-CN\";\n\nexport const issueManagerI18nNamespace = \"issueManager\";\nexport const issueManagerI18nModule =\n createScopedLocaleObjectsI18nModuleManifest({\n localeObjectByLocale: {\n en: \"issueManagerEn\",\n \"zh-CN\": \"issueManagerZhCN\"\n },\n name: \"workspace-issue-manager\",\n namespace: issueManagerI18nNamespace,\n sourceRoot: \"packages/workspace/issue-manager/src\"\n });\n\nconst issueManagerEn = {\n actions: {\n add: \"Add\",\n addReferences: \"Add references\",\n addSubtask: \"Add subtask\",\n askAgentToRun: \"Ask agent to run\",\n cancel: \"Cancel\",\n clearSearch: \"Clear search\",\n collapseIssueList: \"Collapse issue list\",\n copyShareLink: \"Copy share link\",\n createIssue: \"New issue\",\n createTask: \"Create task\",\n delete: \"Delete\",\n deleteIssue: \"Delete issue\",\n deleteTask: \"Delete task\",\n edit: \"Edit\",\n editIssue: \"Edit issue\",\n editTask: \"Edit task\",\n expandIssueList: \"Expand issue list\",\n inviteCollaborator: \"Invite collaborator\",\n insertReferences: \"Insert references\",\n moreActions: \"More actions\",\n openReference: \"Open\",\n refresh: \"Refresh\",\n referenceWorkspaceFiles: \"Reference files\",\n removeReference: \"Remove\",\n runTask: \"Run task\",\n saveIssue: \"Save issue\",\n saveSubtask: \"Save subtask\",\n saveTask: \"Save task\",\n uploadFiles: \"Upload files\",\n uploadFolder: \"Upload folder\"\n },\n composer: {\n issueContentPlaceholder: \"Describe the issue, goals, or context.\",\n issueTitlePlaceholder: \"Issue title\",\n subtaskContentPlaceholder:\n \"Add the subtask goal, execution approach, and acceptance criteria.\",\n subtaskTitlePlaceholder: \"Enter a subtask title\",\n taskContentPlaceholder: \"Describe the executable task and expected result.\",\n taskTitlePlaceholder: \"Task title\"\n },\n confirmations: {\n deleteIssue: \"Delete this issue?\",\n deleteTask: \"Delete this task?\"\n },\n dockLabel: \"Tasks\",\n emptyState:\n \"Create an issue, add the goal and references, then start executing.\",\n labels: {\n allStatus: \"All\",\n content: \"Content\",\n contextReferences: \"Context references\",\n createdAt: \"Created\",\n creator: \"Creator\",\n description: \"Description\",\n executionOutputs: \"Execution outputs\",\n issueDetails: \"Issue details\",\n issueList: \"Issues\",\n latestRunStatus: \"Latest execution status\",\n outputs: \"Outputs\",\n priority: \"Priority\",\n provider: \"Provider\",\n recentRuns: \"Recent runs\",\n requirementDescription: \"Requirements\",\n resizeIssueList: \"Resize issue list\",\n searchIssues: \"Search issues\",\n scrollStatusTabsLeft: \"Scroll status tabs left\",\n scrollStatusTabsRight: \"Scroll status tabs right\",\n status: \"Status\",\n subtasks: \"Subtasks\",\n title: \"Title\",\n updatedAt: \"Updated\",\n taskCount: \"{{count}} tasks\",\n taskDetails: \"Task details\",\n taskList: \"Tasks\"\n },\n messages: {\n clipboardUnavailable: \"Clipboard is unavailable.\",\n copyShareLinkFailed: \"Couldn't copy the share link.\",\n copiedShareLink: \"Share link copied.\",\n issueDeleteFailed: \"Couldn't delete the issue.\",\n issueRefreshFailed: \"Couldn't refresh issues.\",\n issueSaveFailed: \"Couldn't save the issue.\",\n issueDeleted: \"Issue deleted.\",\n issueSaved: \"Issue saved.\",\n issueContentEmpty: \"No issue description yet.\",\n noExecutionOutputs: \"No execution outputs yet.\",\n noExecutionStatus: \"No execution records yet.\",\n noIssueReferences: \"No issue references yet.\",\n noIssuesForFilterBody:\n \"Try another filter, or create a new issue to get things started.\",\n noIssuesForFilterTitle: \"No issues match the current filter.\",\n noIssues: \"No issues yet.\",\n noOutputs: \"No outputs yet.\",\n noRecentRuns: \"No runs yet.\",\n taskContentEmpty: \"No task description yet.\",\n noTaskReferences: \"No task references yet.\",\n noTasksForIssueBody:\n \"Create the first task for this issue and let an agent or yourself execute it.\",\n noSubtasksForIssue:\n \"You can continue breaking down this item by adding subtasks.\",\n noTasks: \"No tasks yet.\",\n refreshingIssues: \"Refreshing issues...\",\n titleRequired: \"Enter a title before saving.\",\n runExitCode: \"Codex exited with code {{code}}.\",\n runCompleted: \"Run completed.\",\n runFailed: \"Run failed.\",\n runStarted: \"Run started.\",\n runStatusMissing:\n \"Terminal exited before the issue run produced a status marker.\",\n runTimedOut: \"Issue run timed out while waiting for Codex output.\",\n referenceRemoveFailed: \"Couldn't remove the reference.\",\n taskDeleteFailed: \"Couldn't delete the task.\",\n taskSaveFailed: \"Couldn't save the task.\",\n taskDeleted: \"Task deleted.\",\n taskSaved: \"Task saved.\",\n uploadTypeConflict: \"Upload target contains conflicting entry types.\",\n workspacePathUnavailable: \"Workspace path is unavailable.\"\n },\n priority: {\n high: \"High\",\n low: \"Low\",\n medium: \"Medium\"\n },\n referencePicker: {\n browse: \"Browse\",\n confirm: \"Use selected references\",\n emptyDirectory: \"This folder is empty.\",\n emptySearch: \"No matching files or folders.\",\n loading: \"Loading...\",\n searchPlaceholder: \"Search files and folders\",\n selectedCount: \"{{count}} selected\",\n title: \"Pick workspace references\"\n },\n richTextAt: {\n loading: \"Loading...\",\n noMatches: \"No matches\"\n },\n run: {\n failedSummaryFallback: \"Run failed\",\n outputDirectory: \"Output directory\",\n requester: \"Requester\",\n status: \"Run status\",\n summary: \"Summary\"\n },\n status: {\n canceled: \"Canceled\",\n completed: \"Completed\",\n failed: \"Failed\",\n notStarted: \"Not started\",\n pendingAcceptance: \"Pending acceptance\",\n running: \"Running\",\n unknown: \"Unknown\"\n },\n title: \"Task Center\"\n} as const satisfies I18nDictionary;\n\nconst issueManagerZhCN = {\n actions: {\n add: \"添加\",\n addReferences: \"添加引用\",\n addSubtask: \"添加子任务\",\n askAgentToRun: \"让 Agent 执行\",\n cancel: \"取消\",\n clearSearch: \"清空搜索\",\n collapseIssueList: \"收起事项列表\",\n copyShareLink: \"复制分享链接\",\n createIssue: \"新建事项\",\n createTask: \"新建任务\",\n delete: \"删除\",\n deleteIssue: \"删除事项\",\n deleteTask: \"删除任务\",\n edit: \"编辑\",\n editIssue: \"编辑事项\",\n editTask: \"编辑任务\",\n expandIssueList: \"展开事项列表\",\n inviteCollaborator: \"邀请协作者\",\n insertReferences: \"插入引用\",\n moreActions: \"更多操作\",\n openReference: \"打开\",\n refresh: \"刷新\",\n referenceWorkspaceFiles: \"引用文件\",\n removeReference: \"移除\",\n runTask: \"运行任务\",\n saveIssue: \"保存事项\",\n saveSubtask: \"保存子任务\",\n saveTask: \"保存任务\",\n uploadFiles: \"上传文件\",\n uploadFolder: \"上传文件夹\"\n },\n composer: {\n issueContentPlaceholder: \"补充这个事项的背景、目标或上下文。\",\n issueTitlePlaceholder: \"事项标题\",\n subtaskContentPlaceholder: \"补充子任务目标、执行方式和验收标准\",\n subtaskTitlePlaceholder: \"请输入子任务标题\",\n taskContentPlaceholder: \"描述这个任务的执行要求和预期结果。\",\n taskTitlePlaceholder: \"任务标题\"\n },\n confirmations: {\n deleteIssue: \"确定删除这个事项吗?\",\n deleteTask: \"确定删除这个任务吗?\"\n },\n dockLabel: \"任务\",\n emptyState: \"新建事项,补充需求描述和相关文件,即可开始执行。\",\n labels: {\n allStatus: \"全部\",\n content: \"内容\",\n contextReferences: \"上下文引用\",\n createdAt: \"创建时间\",\n creator: \"创建者\",\n description: \"描述\",\n executionOutputs: \"执行产物\",\n issueDetails: \"事项详情\",\n issueList: \"事项\",\n latestRunStatus: \"最新执行状态\",\n outputs: \"输出产物\",\n priority: \"优先级\",\n provider: \"Provider\",\n recentRuns: \"最近运行\",\n requirementDescription: \"需求描述\",\n resizeIssueList: \"调整事项列表宽度\",\n searchIssues: \"搜索事项\",\n scrollStatusTabsLeft: \"向左滚动状态标签\",\n scrollStatusTabsRight: \"向右滚动状态标签\",\n status: \"状态\",\n subtasks: \"子任务\",\n title: \"标题\",\n updatedAt: \"更新时间\",\n taskCount: \"{{count}} 个任务\",\n taskDetails: \"任务详情\",\n taskList: \"任务\"\n },\n messages: {\n clipboardUnavailable: \"当前环境无法访问剪贴板。\",\n copyShareLinkFailed: \"复制分享链接失败。\",\n copiedShareLink: \"已复制分享链接。\",\n issueDeleteFailed: \"删除事项失败。\",\n issueRefreshFailed: \"刷新事项列表失败。\",\n issueSaveFailed: \"保存事项失败。\",\n issueDeleted: \"事项已删除。\",\n issueSaved: \"事项已保存。\",\n issueContentEmpty: \"这个事项还没有描述。\",\n noExecutionOutputs: \"暂无执行产物\",\n noExecutionStatus: \"暂无执行记录\",\n noIssueReferences: \"这个事项还没有引用。\",\n noIssuesForFilterBody: \"试试切换筛选条件,或者新建一个事项。\",\n noIssuesForFilterTitle: \"当前筛选条件下暂无事项。\",\n noIssues: \"还没有事项。\",\n noOutputs: \"还没有输出产物。\",\n noRecentRuns: \"还没有运行记录。\",\n taskContentEmpty: \"这个任务还没有描述。\",\n noTaskReferences: \"这个任务还没有引用。\",\n noTasksForIssueBody:\n \"为这个事项创建第一个任务,然后交给 Agent 或你自己执行。\",\n noSubtasksForIssue: \"你可以围绕当前任务继续添加子任务\",\n noTasks: \"还没有任务。\",\n refreshingIssues: \"正在刷新事项列表...\",\n titleRequired: \"请先填写标题后再保存。\",\n runExitCode: \"Codex 以退出码 {{code}} 结束。\",\n runCompleted: \"运行已完成。\",\n runFailed: \"运行失败。\",\n runStarted: \"运行已开始。\",\n runStatusMissing: \"终端在写入运行状态前就退出了。\",\n runTimedOut: \"等待 Codex 输出超时。\",\n referenceRemoveFailed: \"移除引用失败。\",\n taskDeleteFailed: \"删除任务失败。\",\n taskSaveFailed: \"保存任务失败。\",\n taskDeleted: \"任务已删除。\",\n taskSaved: \"任务已保存。\",\n uploadTypeConflict: \"上传目标中存在类型冲突的同名条目。\",\n workspacePathUnavailable: \"当前工作区路径不可用。\"\n },\n priority: {\n high: \"高\",\n low: \"低\",\n medium: \"中\"\n },\n referencePicker: {\n browse: \"浏览\",\n confirm: \"使用已选引用\",\n emptyDirectory: \"当前目录为空。\",\n emptySearch: \"没有匹配的文件或文件夹。\",\n loading: \"正在加载...\",\n searchPlaceholder: \"搜索文件和文件夹\",\n selectedCount: \"已选择 {{count}} 项\",\n title: \"选择工作区引用\"\n },\n richTextAt: {\n loading: \"正在加载...\",\n noMatches: \"没有匹配项\"\n },\n run: {\n failedSummaryFallback: \"运行失败\",\n outputDirectory: \"输出目录\",\n requester: \"发起人\",\n status: \"运行状态\",\n summary: \"摘要\"\n },\n status: {\n canceled: \"已取消\",\n completed: \"已完成\",\n failed: \"失败\",\n notStarted: \"未启动\",\n pendingAcceptance: \"待验收\",\n running: \"执行中\",\n unknown: \"未知\"\n },\n title: \"任务中心\"\n} as const satisfies I18nDictionary;\n\nexport type IssueManagerI18nKey = string;\n\nexport type IssueManagerI18nRuntime = I18nRuntime<IssueManagerI18nKey>;\n\nconst issueManagerDefaults: Record<IssueManagerI18nLocale, I18nDictionary> = {\n en: issueManagerEn,\n \"zh-CN\": issueManagerZhCN\n};\n\nexport const issueManagerI18nResources = {\n en: {\n [issueManagerI18nNamespace]: issueManagerDefaults.en\n },\n \"zh-CN\": {\n [issueManagerI18nNamespace]: issueManagerDefaults[\"zh-CN\"]\n }\n} as const satisfies Record<IssueManagerI18nLocale, I18nDictionary>;\n\nconst defaultIssueManagerI18n = createI18nRuntime({\n dictionaries: [issueManagerI18nResources.en]\n});\n\nexport function createIssueManagerI18nRuntime(\n runtime: I18nRuntime<string> | undefined\n): IssueManagerI18nRuntime {\n return createScopedI18nRuntime<IssueManagerI18nKey>(\n runtime ?? defaultIssueManagerI18n,\n issueManagerI18nNamespace\n );\n}\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AA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