@tutti-os/agent-gui 0.0.93 → 0.0.95
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 +48 -32
- package/dist/AgentGUI-CwBLYtv-.d.ts +992 -0
- package/dist/agent-conversation/index.d.ts +5 -7
- package/dist/agent-conversation/index.js +13 -9
- package/dist/agent-conversation/index.js.map +1 -1
- package/dist/agent-env/index.d.ts +14 -38
- package/dist/agent-env/index.js +2 -57
- package/dist/agent-env/index.js.map +1 -1
- package/dist/agent-gui.d.ts +21 -0
- package/dist/agent-gui.js +39 -0
- package/dist/agent-message-center/index.d.ts +145 -122
- package/dist/agent-message-center/index.js +1473 -1398
- package/dist/agent-message-center/index.js.map +1 -1
- package/dist/{agentConversationVM-CfXN_TQ2.d.ts → agentConversationVM-C335TR6S.d.ts} +112 -7
- package/dist/agentFileMentionContracts-Czvz6YMI.d.ts +107 -0
- package/dist/{agentGuiNodeTypes-rGaDqxVR.d.ts → agentGuiNodeTypes-DppADPHW.d.ts} +102 -149
- package/dist/agentPlanPromptDispatch-C7cCMjve.d.ts +37 -0
- package/dist/agents.d.ts +13 -0
- package/dist/agents.js +13 -0
- package/dist/app/renderer/agentactivity.css +431 -75
- package/dist/app/renderer/assets/icons/agent-vinyl-player-chassis.png +0 -0
- package/dist/app/renderer/assets/icons/agent-vinyl-tonearm.png +0 -0
- package/dist/app/renderer/assets/icons/agent-vinyls/claude-vinyl.png +0 -0
- package/dist/app/renderer/assets/icons/agent-vinyls/codex-vinyl.png +0 -0
- package/dist/app/renderer/assets/icons/agent-vinyls/cursor-vinyl.png +0 -0
- package/dist/app/renderer/assets/icons/agent-vinyls/hermes-vinyl.png +0 -0
- package/dist/app/renderer/assets/icons/agent-vinyls/openclaw-vinyl.png +0 -0
- package/dist/app/renderer/assets/icons/agent-vinyls/opencode-vinyl.png +0 -0
- package/dist/app/renderer/assets/icons/agent-vinyls/tutti-vinyl.png +0 -0
- package/dist/app/renderer/assets/icons/open-link-lined.svg +4 -0
- package/dist/{chunk-7QHBFRG5.js → chunk-3R2D4E57.js} +3137 -3396
- package/dist/chunk-3R2D4E57.js.map +1 -0
- package/dist/chunk-4YG7YK7S.js +23 -0
- package/dist/chunk-4YG7YK7S.js.map +1 -0
- package/dist/chunk-5X7YDOC6.js +42 -0
- package/dist/chunk-5X7YDOC6.js.map +1 -0
- package/dist/{chunk-IBIMGLCD.js → chunk-7J4K6WKB.js} +1 -1
- package/dist/chunk-7J4K6WKB.js.map +1 -0
- package/dist/{chunk-KQE5KV2V.js → chunk-7PFDA2HQ.js} +505 -504
- package/dist/chunk-7PFDA2HQ.js.map +1 -0
- package/dist/{chunk-M2LWH54R.js → chunk-7RDD3EWP.js} +557 -569
- package/dist/chunk-7RDD3EWP.js.map +1 -0
- package/dist/{chunk-VWXFFSIM.js → chunk-AOS2VWU6.js} +1357 -1301
- package/dist/chunk-AOS2VWU6.js.map +1 -0
- package/dist/{chunk-3HARXLAZ.js → chunk-BFNJKTDV.js} +295 -255
- package/dist/chunk-BFNJKTDV.js.map +1 -0
- package/dist/{chunk-U7D7G3UU.js → chunk-BIHBXWK5.js} +2 -2
- package/dist/{chunk-XQUUELKF.js → chunk-C5FV4UGI.js} +2921 -2944
- package/dist/chunk-C5FV4UGI.js.map +1 -0
- package/dist/{chunk-HOSX5C5V.js → chunk-CRO2MV2Y.js} +36 -46
- package/dist/chunk-CRO2MV2Y.js.map +1 -0
- package/dist/chunk-FGLQZ6I4.js +9 -0
- package/dist/chunk-FGLQZ6I4.js.map +1 -0
- package/dist/chunk-H6IQ63DQ.js +14 -0
- package/dist/chunk-H6IQ63DQ.js.map +1 -0
- package/dist/{chunk-4SQNOOJ3.js → chunk-JX2SIXNL.js} +1293 -1702
- package/dist/chunk-JX2SIXNL.js.map +1 -0
- package/dist/chunk-KAL4XZMA.js +231 -0
- package/dist/chunk-KAL4XZMA.js.map +1 -0
- package/dist/chunk-KJQERFKX.js +259 -0
- package/dist/chunk-KJQERFKX.js.map +1 -0
- package/dist/chunk-LQVXBT65.js +491 -0
- package/dist/chunk-LQVXBT65.js.map +1 -0
- package/dist/{chunk-AOVPGJBC.js → chunk-NITOD7WF.js} +2 -2
- package/dist/{chunk-7LMJXF4R.js → chunk-NJAZ7LQM.js} +20 -16
- package/dist/chunk-NJAZ7LQM.js.map +1 -0
- package/dist/chunk-NX3CZJXW.js +25 -0
- package/dist/chunk-NX3CZJXW.js.map +1 -0
- package/dist/chunk-O6W72SEP.js +93 -0
- package/dist/chunk-O6W72SEP.js.map +1 -0
- package/dist/{chunk-PSLAWU25.js → chunk-R2EWECUP.js} +7 -1
- package/dist/chunk-R2EWECUP.js.map +1 -0
- package/dist/chunk-RY6GIO3K.js +31700 -0
- package/dist/chunk-RY6GIO3K.js.map +1 -0
- package/dist/{chunk-XDV4ZRVK.js → chunk-UGVI47X6.js} +98 -37
- package/dist/chunk-UGVI47X6.js.map +1 -0
- package/dist/{chunk-XW4CVBUH.js → chunk-UQJPV6HP.js} +18 -11
- package/dist/chunk-UQJPV6HP.js.map +1 -0
- package/dist/{chunk-GAPTLVII.js → chunk-VF22EG3F.js} +1 -1
- package/dist/{chunk-GAPTLVII.js.map → chunk-VF22EG3F.js.map} +1 -1
- package/dist/{chunk-45FF4DQU.js → chunk-WEDMAVX2.js} +22 -24
- package/dist/chunk-WEDMAVX2.js.map +1 -0
- package/dist/{chunk-SXDLSEHO.js → chunk-XMO45GKA.js} +531 -401
- package/dist/chunk-XMO45GKA.js.map +1 -0
- package/dist/{chunk-UNO7CEAF.js → chunk-YE25HN6T.js} +6 -9
- package/dist/chunk-YE25HN6T.js.map +1 -0
- package/dist/context-mention-palette/index.d.ts +3 -2
- package/dist/context-mention-palette/index.js +19 -14
- package/dist/custom-mention.d.ts +44 -0
- package/dist/custom-mention.js +17 -0
- package/dist/custom-mention.js.map +1 -0
- package/dist/dock-icons.d.ts +6 -0
- package/dist/dock-icons.js +11 -0
- package/dist/dock-icons.js.map +1 -0
- package/dist/i18n/index.d.ts +852 -837
- package/dist/i18n/index.js +2 -2
- package/dist/index.d.ts +52 -1061
- package/dist/index.js +72 -35254
- package/dist/index.js.map +1 -1
- package/dist/mention-search.d.ts +226 -0
- package/dist/mention-search.js +29 -0
- package/dist/mention-search.js.map +1 -0
- package/dist/open-link-lined-JWEKUKME.svg +4 -0
- package/dist/provider-icons.d.ts +6 -0
- package/dist/provider-icons.js +12 -0
- package/dist/provider-icons.js.map +1 -0
- package/dist/provider-identity.d.ts +9 -0
- package/dist/provider-identity.js +21 -0
- package/dist/provider-identity.js.map +1 -0
- package/dist/runtime-BBNdWgDU.d.ts +10 -0
- package/dist/{types-PLFZ8SBX.d.ts → types-DX2bxgB8.d.ts} +28 -83
- package/dist/workbench/contribution.d.ts +32 -40
- package/dist/workbench/contribution.js +10 -6
- package/dist/workbench/index.d.ts +6 -2
- package/dist/workbench/index.js +24 -20
- package/dist/workbench/launch.d.ts +2 -5
- package/dist/workbench/launch.js +4 -3
- package/dist/workbench/providerCatalog.js +2 -1
- package/dist/workbench/sessionTitle.d.ts +4 -3
- package/dist/workbench/sessionTitle.js +4 -3
- package/dist/workbench/state.d.ts +1 -1
- package/dist/workbench/state.js +3 -2
- package/dist/workbench/types.d.ts +0 -3
- package/dist/workbench/types.js +1 -1
- package/dist/workspace-agent-generated-files.d.ts +20 -2
- package/dist/workspace-agent-generated-files.js +7 -6
- package/dist/workspaceAgentActivityListTypes-C7gPWYiA.d.ts +71 -0
- package/package.json +65 -28
- package/dist/AgentMentionSearchController-DD_WOred.d.ts +0 -241
- package/dist/AgentMessageMarkdown-DeYPURtF.d.ts +0 -7
- package/dist/chunk-3HARXLAZ.js.map +0 -1
- package/dist/chunk-45FF4DQU.js.map +0 -1
- package/dist/chunk-4HP6V2YA.js +0 -207
- package/dist/chunk-4HP6V2YA.js.map +0 -1
- package/dist/chunk-4SQNOOJ3.js.map +0 -1
- package/dist/chunk-7LMJXF4R.js.map +0 -1
- package/dist/chunk-7QHBFRG5.js.map +0 -1
- package/dist/chunk-HOSX5C5V.js.map +0 -1
- package/dist/chunk-IBIMGLCD.js.map +0 -1
- package/dist/chunk-KQE5KV2V.js.map +0 -1
- package/dist/chunk-LR4FA5X6.js +0 -368
- package/dist/chunk-LR4FA5X6.js.map +0 -1
- package/dist/chunk-M2LWH54R.js.map +0 -1
- package/dist/chunk-MKHDRIGN.js +0 -71
- package/dist/chunk-MKHDRIGN.js.map +0 -1
- package/dist/chunk-PSLAWU25.js.map +0 -1
- package/dist/chunk-SXDLSEHO.js.map +0 -1
- package/dist/chunk-UNO7CEAF.js.map +0 -1
- package/dist/chunk-VAKFNNKT.js +0 -410
- package/dist/chunk-VAKFNNKT.js.map +0 -1
- package/dist/chunk-VWXFFSIM.js.map +0 -1
- package/dist/chunk-XDV4ZRVK.js.map +0 -1
- package/dist/chunk-XQUUELKF.js.map +0 -1
- package/dist/chunk-XW4CVBUH.js.map +0 -1
- package/dist/plan-decision-ops.d.ts +0 -70
- package/dist/plan-decision-ops.js +0 -19
- package/dist/queued-prompt-runtime.d.ts +0 -115
- package/dist/queued-prompt-runtime.js +0 -9
- package/dist/workspaceAgentActivityListViewModel-TXH1VXrk.d.ts +0 -339
- package/dist/workspaceLinkActions-DS9LWqzI.d.ts +0 -74
- /package/dist/{plan-decision-ops.js.map → agent-gui.js.map} +0 -0
- /package/dist/{queued-prompt-runtime.js.map → agents.js.map} +0 -0
- /package/dist/{chunk-U7D7G3UU.js.map → chunk-BIHBXWK5.js.map} +0 -0
- /package/dist/{chunk-AOVPGJBC.js.map → chunk-NITOD7WF.js.map} +0 -0
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { b as AgentConversationPromptVM } from './agentConversationVM-CfXN_TQ2.js';
|
|
2
|
-
import './workspaceAgentActivityListViewModel-TXH1VXrk.js';
|
|
3
|
-
import '@tutti-os/agent-activity-core';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Codex has no provider-driven exit-plan approval flow (unlike claude-code's
|
|
7
|
-
* ExitPlanMode tool): the official TUI offers a local "implement this plan?"
|
|
8
|
-
* prompt after a plan-mode turn completes and submits a literal coding
|
|
9
|
-
* message in default mode. This mirrors that contract for the GUI.
|
|
10
|
-
* See codex-rs/tui/src/chatwidget/plan_implementation.rs.
|
|
11
|
-
*/
|
|
12
|
-
declare const PLAN_IMPLEMENTATION_PROMPT = "Implement the plan.";
|
|
13
|
-
/** Action ids carried by the plan-implementation interactive prompt. */
|
|
14
|
-
declare const PLAN_IMPLEMENTATION_ACTION_IMPLEMENT = "implement";
|
|
15
|
-
declare const PLAN_IMPLEMENTATION_ACTION_FEEDBACK = "feedback";
|
|
16
|
-
declare const PLAN_IMPLEMENTATION_ACTION_SKIP = "skip";
|
|
17
|
-
/**
|
|
18
|
-
* Builds the plan-implementation interactive prompt VM for a plan turn so the
|
|
19
|
-
* controller and the message center surface the codex plan decision through
|
|
20
|
-
* the same `pendingInteractivePrompt` machinery as claude-code exit-plan.
|
|
21
|
-
*/
|
|
22
|
-
declare function planImplementationPromptFromPlanTurn(planTurnId: string, title: string): Extract<AgentConversationPromptVM, {
|
|
23
|
-
kind: "plan-implementation";
|
|
24
|
-
}>;
|
|
25
|
-
interface PlanTimelineItem {
|
|
26
|
-
turnId?: string | null;
|
|
27
|
-
occurredAtUnixMs?: number | null;
|
|
28
|
-
createdAtUnixMs?: number | null;
|
|
29
|
-
seq?: number | null;
|
|
30
|
-
payload?: Record<string, unknown> | null;
|
|
31
|
-
}
|
|
32
|
-
type PlanDecisionOp = {
|
|
33
|
-
type: "updateSettings";
|
|
34
|
-
settings: {
|
|
35
|
-
planMode: false;
|
|
36
|
-
};
|
|
37
|
-
} | {
|
|
38
|
-
type: "sendInput";
|
|
39
|
-
text: string;
|
|
40
|
-
} | {
|
|
41
|
-
type: "submitInteractive";
|
|
42
|
-
requestId: string;
|
|
43
|
-
action?: string;
|
|
44
|
-
optionId?: string;
|
|
45
|
-
payload?: Record<string, unknown>;
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* Single source of truth for what a plan decision DOES at the daemon level.
|
|
49
|
-
* Both the desktop service (submitPlanDecision) and the in-conversation
|
|
50
|
-
* controller (implementPlan) execute these ops with their own primitives;
|
|
51
|
-
* node-local UI side effects are layered on by the controller, not here.
|
|
52
|
-
*/
|
|
53
|
-
declare function planDecisionOps(input: {
|
|
54
|
-
promptKind: string;
|
|
55
|
-
action?: string;
|
|
56
|
-
optionId?: string;
|
|
57
|
-
payload?: Record<string, unknown>;
|
|
58
|
-
requestId: string;
|
|
59
|
-
}): PlanDecisionOp[];
|
|
60
|
-
/**
|
|
61
|
-
* Returns the turn id of the latest turn that produced a plan item, or null.
|
|
62
|
-
* Driven by the same timeline data that renders the plan card (no race with a
|
|
63
|
-
* separate status flag), keyed by turn id so a given plan is offered once and
|
|
64
|
-
* a fresh plan turn re-arms the offer. Mirrors the codex TUI gate
|
|
65
|
-
* (saw_plan_item_this_turn) but evaluated against the latest turn rather than
|
|
66
|
-
* a transient per-turn boolean.
|
|
67
|
-
*/
|
|
68
|
-
declare function latestPlanTurnId(timelineItems: readonly PlanTimelineItem[]): string | null;
|
|
69
|
-
|
|
70
|
-
export { PLAN_IMPLEMENTATION_ACTION_FEEDBACK, PLAN_IMPLEMENTATION_ACTION_IMPLEMENT, PLAN_IMPLEMENTATION_ACTION_SKIP, PLAN_IMPLEMENTATION_PROMPT, type PlanDecisionOp, latestPlanTurnId, planDecisionOps, planImplementationPromptFromPlanTurn };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
PLAN_IMPLEMENTATION_ACTION_FEEDBACK,
|
|
3
|
-
PLAN_IMPLEMENTATION_ACTION_IMPLEMENT,
|
|
4
|
-
PLAN_IMPLEMENTATION_ACTION_SKIP,
|
|
5
|
-
PLAN_IMPLEMENTATION_PROMPT,
|
|
6
|
-
latestPlanTurnId,
|
|
7
|
-
planDecisionOps,
|
|
8
|
-
planImplementationPromptFromPlanTurn
|
|
9
|
-
} from "./chunk-MKHDRIGN.js";
|
|
10
|
-
export {
|
|
11
|
-
PLAN_IMPLEMENTATION_ACTION_FEEDBACK,
|
|
12
|
-
PLAN_IMPLEMENTATION_ACTION_IMPLEMENT,
|
|
13
|
-
PLAN_IMPLEMENTATION_ACTION_SKIP,
|
|
14
|
-
PLAN_IMPLEMENTATION_PROMPT,
|
|
15
|
-
latestPlanTurnId,
|
|
16
|
-
planDecisionOps,
|
|
17
|
-
planImplementationPromptFromPlanTurn
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=plan-decision-ops.js.map
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { f as AgentGUIQueuedPromptVM } from './agentGuiNodeTypes-rGaDqxVR.js';
|
|
2
|
-
import '@tutti-os/agent-activity-core';
|
|
3
|
-
import './types-PLFZ8SBX.js';
|
|
4
|
-
import './workspaceAgentActivityListViewModel-TXH1VXrk.js';
|
|
5
|
-
import './agentConversationVM-CfXN_TQ2.js';
|
|
6
|
-
import '@tutti-os/workspace-user-project/contracts';
|
|
7
|
-
|
|
8
|
-
interface AgentQueuedPromptRetryBlock {
|
|
9
|
-
queuedPromptId: string;
|
|
10
|
-
sessionStateUpdatedAtUnixMs: number | null;
|
|
11
|
-
conversationUpdatedAtUnixMs: number | null;
|
|
12
|
-
}
|
|
13
|
-
interface AgentQueuedPromptClaim {
|
|
14
|
-
agentSessionId: string;
|
|
15
|
-
claimId: string;
|
|
16
|
-
ownerId: string;
|
|
17
|
-
promptId: string;
|
|
18
|
-
leasedUntilUnixMs: number;
|
|
19
|
-
workspaceId: string;
|
|
20
|
-
}
|
|
21
|
-
type AgentQueuedPromptSuspendReason = "user_stop";
|
|
22
|
-
interface AgentQueuedPromptQueueSnapshot {
|
|
23
|
-
agentSessionId: string;
|
|
24
|
-
claim: AgentQueuedPromptClaim | null;
|
|
25
|
-
failedPromptId: string | null;
|
|
26
|
-
prompts: readonly AgentGUIQueuedPromptVM[];
|
|
27
|
-
retryBlock: AgentQueuedPromptRetryBlock | null;
|
|
28
|
-
sendNextPromptId: string | null;
|
|
29
|
-
/**
|
|
30
|
-
* User intent gate: while set, the drainer must not auto-dispatch this
|
|
31
|
-
* queue even when the session is available. Set when the user stops the
|
|
32
|
-
* session; cleared by an explicit user send (composer submit resumes, and
|
|
33
|
-
* promotePrompt clears it as part of "send now").
|
|
34
|
-
*/
|
|
35
|
-
suspendReason: AgentQueuedPromptSuspendReason | null;
|
|
36
|
-
workspaceId: string;
|
|
37
|
-
}
|
|
38
|
-
interface AgentQueuedPromptSnapshot {
|
|
39
|
-
queuesByKey: Readonly<Record<string, AgentQueuedPromptQueueSnapshot>>;
|
|
40
|
-
version: number;
|
|
41
|
-
}
|
|
42
|
-
interface AgentQueuedPromptClaimResult {
|
|
43
|
-
claim: AgentQueuedPromptClaim;
|
|
44
|
-
prompt: AgentGUIQueuedPromptVM;
|
|
45
|
-
}
|
|
46
|
-
interface AgentQueuedPromptRuntime {
|
|
47
|
-
claimNextToDrain(input: {
|
|
48
|
-
agentSessionId: string;
|
|
49
|
-
leaseMs?: number;
|
|
50
|
-
ownerId: string;
|
|
51
|
-
workspaceId: string;
|
|
52
|
-
}): AgentQueuedPromptClaimResult | null;
|
|
53
|
-
cleanupSession(input: {
|
|
54
|
-
agentSessionId: string;
|
|
55
|
-
workspaceId: string;
|
|
56
|
-
}): void;
|
|
57
|
-
completeClaim(input: {
|
|
58
|
-
agentSessionId: string;
|
|
59
|
-
claimId: string;
|
|
60
|
-
ownerId: string;
|
|
61
|
-
workspaceId: string;
|
|
62
|
-
}): boolean;
|
|
63
|
-
enqueue(input: {
|
|
64
|
-
prompt: AgentGUIQueuedPromptVM;
|
|
65
|
-
agentSessionId: string;
|
|
66
|
-
workspaceId: string;
|
|
67
|
-
}): void;
|
|
68
|
-
getSessionSnapshot(input: {
|
|
69
|
-
agentSessionId: string;
|
|
70
|
-
workspaceId: string;
|
|
71
|
-
}): AgentQueuedPromptQueueSnapshot;
|
|
72
|
-
getSnapshot(): AgentQueuedPromptSnapshot;
|
|
73
|
-
markPromptFailed(input: {
|
|
74
|
-
agentSessionId: string;
|
|
75
|
-
promptId: string;
|
|
76
|
-
workspaceId: string;
|
|
77
|
-
}): void;
|
|
78
|
-
promotePrompt(input: {
|
|
79
|
-
agentSessionId: string;
|
|
80
|
-
promptId: string;
|
|
81
|
-
workspaceId: string;
|
|
82
|
-
}): void;
|
|
83
|
-
releaseClaim(input: {
|
|
84
|
-
agentSessionId: string;
|
|
85
|
-
claimId: string;
|
|
86
|
-
ownerId: string;
|
|
87
|
-
workspaceId: string;
|
|
88
|
-
}): boolean;
|
|
89
|
-
removePrompt(input: {
|
|
90
|
-
agentSessionId: string;
|
|
91
|
-
promptId: string;
|
|
92
|
-
workspaceId: string;
|
|
93
|
-
}): AgentGUIQueuedPromptVM | null;
|
|
94
|
-
setRetryBlock(input: {
|
|
95
|
-
agentSessionId: string;
|
|
96
|
-
retryBlock: AgentQueuedPromptRetryBlock | null;
|
|
97
|
-
workspaceId: string;
|
|
98
|
-
}): void;
|
|
99
|
-
/** Hold the queue after a user stop; a no-op when the queue is empty. */
|
|
100
|
-
suspendQueue(input: {
|
|
101
|
-
agentSessionId: string;
|
|
102
|
-
reason: AgentQueuedPromptSuspendReason;
|
|
103
|
-
workspaceId: string;
|
|
104
|
-
}): void;
|
|
105
|
-
/** Lift a user-stop hold (explicit user send). */
|
|
106
|
-
resumeQueue(input: {
|
|
107
|
-
agentSessionId: string;
|
|
108
|
-
workspaceId: string;
|
|
109
|
-
}): void;
|
|
110
|
-
subscribe(listener: () => void): () => void;
|
|
111
|
-
}
|
|
112
|
-
declare const EMPTY_AGENT_QUEUED_PROMPT_SNAPSHOT: AgentQueuedPromptSnapshot;
|
|
113
|
-
declare function createAgentQueuedPromptRuntime(): AgentQueuedPromptRuntime;
|
|
114
|
-
|
|
115
|
-
export { type AgentQueuedPromptClaim, type AgentQueuedPromptClaimResult, type AgentQueuedPromptQueueSnapshot, type AgentQueuedPromptRetryBlock, type AgentQueuedPromptRuntime, type AgentQueuedPromptSnapshot, type AgentQueuedPromptSuspendReason, EMPTY_AGENT_QUEUED_PROMPT_SNAPSHOT, createAgentQueuedPromptRuntime };
|
|
@@ -1,339 +0,0 @@
|
|
|
1
|
-
import { AgentActivitySession, AgentActivityTurnLifecycle, AgentActivitySubmitAvailability, AgentActivityMessage, AgentActivityMessageSemantics, AgentActivitySnapshot, AgentActivityPresence } from '@tutti-os/agent-activity-core';
|
|
2
|
-
|
|
3
|
-
interface AgentHostManagedAgentsStateItem {
|
|
4
|
-
toolId: string;
|
|
5
|
-
toolClass: string;
|
|
6
|
-
agentId?: string;
|
|
7
|
-
hostDetected?: boolean;
|
|
8
|
-
hostConfigDetected?: boolean;
|
|
9
|
-
hostVersion?: string;
|
|
10
|
-
targetVersion: string;
|
|
11
|
-
recommendedVersion?: string;
|
|
12
|
-
decisionReason: string;
|
|
13
|
-
fallbackApplied: boolean;
|
|
14
|
-
notes?: string;
|
|
15
|
-
}
|
|
16
|
-
interface AgentHostToolchainConfigSyncedAgent {
|
|
17
|
-
agentId: string;
|
|
18
|
-
/** RFC3339 timestamp for when Tutti last synced this agent's host config. */
|
|
19
|
-
syncedAt?: string;
|
|
20
|
-
}
|
|
21
|
-
interface AgentHostManagedAgentsState {
|
|
22
|
-
metadataSynced: boolean;
|
|
23
|
-
toolCatalogRevision: string;
|
|
24
|
-
agentProfileRevision: string;
|
|
25
|
-
totalCount: number;
|
|
26
|
-
items: AgentHostManagedAgentsStateItem[];
|
|
27
|
-
/** Agent IDs ready for normal AgentGUI use (installed and authenticated/ready). */
|
|
28
|
-
readyAgentIds: string[];
|
|
29
|
-
/** Agent IDs whose host config has been synced to the VM through Manage Agents. */
|
|
30
|
-
configSyncedAgentIds: string[];
|
|
31
|
-
/** Agent config sync metadata, including when Tutti last copied host config. */
|
|
32
|
-
configSyncedAgents?: AgentHostToolchainConfigSyncedAgent[];
|
|
33
|
-
}
|
|
34
|
-
interface AgentHostUserInfo {
|
|
35
|
-
userId: string;
|
|
36
|
-
email?: string;
|
|
37
|
-
avatar?: string;
|
|
38
|
-
avatarObjectKey?: string;
|
|
39
|
-
name?: string;
|
|
40
|
-
}
|
|
41
|
-
interface AgentHostBatchUserInfoInput {
|
|
42
|
-
userIds: string[];
|
|
43
|
-
}
|
|
44
|
-
interface AgentHostBatchUserInfoResult {
|
|
45
|
-
users: AgentHostUserInfo[];
|
|
46
|
-
}
|
|
47
|
-
type AgentHostWorkspaceAgentProvider = "codex" | "claude-code" | string;
|
|
48
|
-
type AgentHostWorkspaceAgentSessionOrigin = "WORKSPACE_AGENT_SESSION_ORIGIN_RUNTIME" | string;
|
|
49
|
-
type AgentHostWorkspaceAgentPresenceStatus = "working" | "paused" | string;
|
|
50
|
-
type AgentHostWorkspaceAgentSessionLifecycleStatus = "active" | "ended" | "failed" | string;
|
|
51
|
-
type AgentHostWorkspaceAgentTurnPhase = "idle" | "working" | "waiting_approval" | "waiting_input" | "failed" | string;
|
|
52
|
-
type AgentHostWorkspaceAgentEffectiveStatus = "idle" | "working" | "waiting" | "ready" | "completed" | "failed" | string;
|
|
53
|
-
type AgentHostWorkspaceAgentSessionStatus = "idle" | "working" | "waiting" | "completed" | "failed" | "canceled" | string;
|
|
54
|
-
type AgentHostWorkspaceAgentSyncStatus = "pending" | "synced" | "failed" | string;
|
|
55
|
-
interface AgentHostWorkspaceAgentPresence {
|
|
56
|
-
id: number;
|
|
57
|
-
workspaceId: string;
|
|
58
|
-
userId: string;
|
|
59
|
-
provider: AgentHostWorkspaceAgentProvider;
|
|
60
|
-
status: AgentHostWorkspaceAgentPresenceStatus;
|
|
61
|
-
}
|
|
62
|
-
interface AgentHostWorkspaceAgentSession {
|
|
63
|
-
id: number;
|
|
64
|
-
workspaceId?: string;
|
|
65
|
-
agentSessionId: string;
|
|
66
|
-
agentTargetId?: string | null;
|
|
67
|
-
presenceId: number;
|
|
68
|
-
userId?: string;
|
|
69
|
-
provider?: AgentHostWorkspaceAgentProvider;
|
|
70
|
-
providerSessionId: string;
|
|
71
|
-
resumable?: boolean;
|
|
72
|
-
sessionOrigin?: AgentHostWorkspaceAgentSessionOrigin;
|
|
73
|
-
cwd: string;
|
|
74
|
-
lifecycleStatus?: AgentHostWorkspaceAgentSessionLifecycleStatus;
|
|
75
|
-
turnPhase?: AgentHostWorkspaceAgentTurnPhase;
|
|
76
|
-
endedAtUnixMs?: number;
|
|
77
|
-
startedAtUnixMs?: number;
|
|
78
|
-
createdAtUnixMs?: number;
|
|
79
|
-
updatedAtUnixMs?: number;
|
|
80
|
-
pinnedAtUnixMs?: number | null;
|
|
81
|
-
effectiveStatus?: AgentHostWorkspaceAgentEffectiveStatus;
|
|
82
|
-
title?: string;
|
|
83
|
-
status?: AgentHostWorkspaceAgentSessionStatus;
|
|
84
|
-
syncState?: AgentHostWorkspaceAgentSyncState;
|
|
85
|
-
}
|
|
86
|
-
interface AgentHostWorkspaceAgentSyncState {
|
|
87
|
-
workspaceId?: string;
|
|
88
|
-
agentSessionId?: string;
|
|
89
|
-
status: AgentHostWorkspaceAgentSyncStatus;
|
|
90
|
-
pendingTimelineItemCount?: number;
|
|
91
|
-
pendingStatePatchCount?: number;
|
|
92
|
-
attemptCount?: number;
|
|
93
|
-
failedReportCount?: number;
|
|
94
|
-
lastError?: string;
|
|
95
|
-
lastAttemptAtUnixMs?: number;
|
|
96
|
-
lastSyncedAtUnixMs?: number;
|
|
97
|
-
updatedAtUnixMs?: number;
|
|
98
|
-
}
|
|
99
|
-
interface AgentHostWorkspaceAgentListInput {
|
|
100
|
-
workspaceId?: string | null;
|
|
101
|
-
sessionOrigin?: AgentHostWorkspaceAgentSessionOrigin;
|
|
102
|
-
userId?: string;
|
|
103
|
-
}
|
|
104
|
-
interface AgentHostWorkspaceAgentSnapshot {
|
|
105
|
-
presences: AgentHostWorkspaceAgentPresence[];
|
|
106
|
-
sessions: AgentHostWorkspaceAgentSession[];
|
|
107
|
-
sessionMessagesById?: Record<string, AgentHostWorkspaceAgentMessage[]>;
|
|
108
|
-
}
|
|
109
|
-
interface AgentHostDeleteWorkspaceAgentSessionInput {
|
|
110
|
-
workspaceId?: string | null;
|
|
111
|
-
agentSessionId: string;
|
|
112
|
-
sessionOrigin?: AgentHostWorkspaceAgentSessionOrigin;
|
|
113
|
-
}
|
|
114
|
-
interface AgentHostWorkspaceAgentMessage {
|
|
115
|
-
id: number;
|
|
116
|
-
workspaceId?: string;
|
|
117
|
-
agentSessionId: string;
|
|
118
|
-
messageId: string;
|
|
119
|
-
version: number;
|
|
120
|
-
turnId: string;
|
|
121
|
-
role: string;
|
|
122
|
-
kind: string;
|
|
123
|
-
status?: string;
|
|
124
|
-
payload: Record<string, unknown>;
|
|
125
|
-
occurredAtUnixMs: number;
|
|
126
|
-
startedAtUnixMs?: number;
|
|
127
|
-
completedAtUnixMs?: number;
|
|
128
|
-
}
|
|
129
|
-
interface AgentHostWorkspaceAgentSessionMessagesInput {
|
|
130
|
-
workspaceId?: string | null;
|
|
131
|
-
agentSessionId: string;
|
|
132
|
-
afterVersion?: number;
|
|
133
|
-
beforeVersion?: number;
|
|
134
|
-
limit?: number;
|
|
135
|
-
order?: "asc" | "desc";
|
|
136
|
-
sessionOrigin?: AgentHostWorkspaceAgentSessionOrigin;
|
|
137
|
-
}
|
|
138
|
-
interface AgentHostWorkspaceAgentSessionMessages {
|
|
139
|
-
messages: AgentHostWorkspaceAgentMessage[];
|
|
140
|
-
latestVersion?: number;
|
|
141
|
-
hasMore?: boolean;
|
|
142
|
-
}
|
|
143
|
-
interface AgentHostWorkspaceAgentSessionSummaryItem {
|
|
144
|
-
id?: number;
|
|
145
|
-
turnId?: string;
|
|
146
|
-
actorType?: string;
|
|
147
|
-
actorId?: string;
|
|
148
|
-
itemType?: string;
|
|
149
|
-
role?: string;
|
|
150
|
-
callType?: string;
|
|
151
|
-
callId?: string;
|
|
152
|
-
name?: string;
|
|
153
|
-
status?: string;
|
|
154
|
-
content?: string;
|
|
155
|
-
occurredAtUnixMs?: number;
|
|
156
|
-
createdAtUnixMs?: number;
|
|
157
|
-
}
|
|
158
|
-
interface AgentHostWorkspaceAgentSessionSummaryTurn {
|
|
159
|
-
turnId?: string;
|
|
160
|
-
userItems: AgentHostWorkspaceAgentSessionSummaryItem[];
|
|
161
|
-
agentItems: AgentHostWorkspaceAgentSessionSummaryItem[];
|
|
162
|
-
}
|
|
163
|
-
interface AgentHostWorkspaceAgentSessionExecutionStatus {
|
|
164
|
-
currentOrFinalStatus?: string;
|
|
165
|
-
status?: AgentHostWorkspaceAgentSessionStatus;
|
|
166
|
-
}
|
|
167
|
-
interface AgentHostWorkspaceAgentSessionSummaryInput {
|
|
168
|
-
workspaceId?: string | null;
|
|
169
|
-
agentSessionId: string;
|
|
170
|
-
agentReplyLimit?: number;
|
|
171
|
-
recentTurnLimit?: number;
|
|
172
|
-
}
|
|
173
|
-
interface AgentHostWorkspaceAgentSessionSummary {
|
|
174
|
-
agentSessionId: string;
|
|
175
|
-
initialUserRequirement?: string;
|
|
176
|
-
latestUserRequirement?: string;
|
|
177
|
-
recentAgentReplies: string[];
|
|
178
|
-
currentOrFinalStatus?: string;
|
|
179
|
-
initialTurn?: AgentHostWorkspaceAgentSessionSummaryTurn | null;
|
|
180
|
-
latestTurn?: AgentHostWorkspaceAgentSessionSummaryTurn | null;
|
|
181
|
-
latestTurnSameAsInitial?: boolean;
|
|
182
|
-
recentTurns: AgentHostWorkspaceAgentSessionSummaryTurn[];
|
|
183
|
-
executionStatus?: AgentHostWorkspaceAgentSessionExecutionStatus | null;
|
|
184
|
-
}
|
|
185
|
-
interface AgentHostRuntimeOpenclawGatewayWarmupResult {
|
|
186
|
-
accepted: boolean;
|
|
187
|
-
ready?: boolean;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
type WorkspaceAgentActivityProvider = "codex" | "claude-code" | string;
|
|
191
|
-
declare const WORKSPACE_AGENT_ACTIVITY_RUNTIME_SESSION_ORIGIN = "WORKSPACE_AGENT_SESSION_ORIGIN_RUNTIME";
|
|
192
|
-
type WorkspaceAgentActivitySessionOrigin = typeof WORKSPACE_AGENT_ACTIVITY_RUNTIME_SESSION_ORIGIN | string;
|
|
193
|
-
type WorkspaceAgentActivitySyncStatus = "pending" | "synced" | "failed" | string;
|
|
194
|
-
interface WorkspaceAgentActivitySyncState {
|
|
195
|
-
workspaceId?: string;
|
|
196
|
-
agentSessionId?: string;
|
|
197
|
-
status: WorkspaceAgentActivitySyncStatus;
|
|
198
|
-
pendingTimelineItemCount?: number;
|
|
199
|
-
pendingStatePatchCount?: number;
|
|
200
|
-
attemptCount?: number;
|
|
201
|
-
failedReportCount?: number;
|
|
202
|
-
lastError?: string;
|
|
203
|
-
lastAttemptAtUnixMs?: number;
|
|
204
|
-
lastSyncedAtUnixMs?: number;
|
|
205
|
-
updatedAtUnixMs?: number;
|
|
206
|
-
}
|
|
207
|
-
interface WorkspaceAgentActivityPresence extends Omit<AgentActivityPresence, "id" | "provider" | "status"> {
|
|
208
|
-
id: string | number;
|
|
209
|
-
provider: WorkspaceAgentActivityProvider;
|
|
210
|
-
status: string;
|
|
211
|
-
userId?: string | null;
|
|
212
|
-
}
|
|
213
|
-
interface WorkspaceAgentActivitySession extends Omit<AgentActivitySession, "provider" | "providerSessionId" | "pinnedAtUnixMs" | "status" | "title" | "workspaceId"> {
|
|
214
|
-
id?: number;
|
|
215
|
-
workspaceId?: string;
|
|
216
|
-
presenceId?: string | number;
|
|
217
|
-
userId?: string;
|
|
218
|
-
provider?: WorkspaceAgentActivityProvider;
|
|
219
|
-
providerSessionId?: string | null;
|
|
220
|
-
resumable?: boolean;
|
|
221
|
-
sessionOrigin?: WorkspaceAgentActivitySessionOrigin;
|
|
222
|
-
lifecycleStatus?: string;
|
|
223
|
-
turnPhase?: string;
|
|
224
|
-
endedAtUnixMs?: number;
|
|
225
|
-
effectiveStatus?: string;
|
|
226
|
-
status?: string;
|
|
227
|
-
turnLifecycle?: AgentActivityTurnLifecycle | null;
|
|
228
|
-
submitAvailability?: AgentActivitySubmitAvailability | null;
|
|
229
|
-
title?: string;
|
|
230
|
-
pinnedAtUnixMs?: number | null;
|
|
231
|
-
syncState?: WorkspaceAgentActivitySyncState;
|
|
232
|
-
}
|
|
233
|
-
interface WorkspaceAgentActivityFileChange {
|
|
234
|
-
path: string;
|
|
235
|
-
change?: "added" | "modified" | "deleted" | "moved" | string;
|
|
236
|
-
tools?: string[];
|
|
237
|
-
}
|
|
238
|
-
interface WorkspaceAgentActivityFileChanges {
|
|
239
|
-
coverage?: string;
|
|
240
|
-
files?: WorkspaceAgentActivityFileChange[];
|
|
241
|
-
}
|
|
242
|
-
interface WorkspaceAgentActivityTimelineItem {
|
|
243
|
-
id: number;
|
|
244
|
-
workspaceId?: string;
|
|
245
|
-
agentSessionId: string;
|
|
246
|
-
seq?: number;
|
|
247
|
-
turnId?: string;
|
|
248
|
-
eventSource?: string;
|
|
249
|
-
eventId: string;
|
|
250
|
-
actorType: string;
|
|
251
|
-
actorId: string;
|
|
252
|
-
itemType: "message" | "call" | "event" | "error" | "lifecycle" | string;
|
|
253
|
-
role?: string;
|
|
254
|
-
callType?: "tool" | "skill" | "subagent" | "approval" | "workflow" | string;
|
|
255
|
-
callId?: string;
|
|
256
|
-
name?: string;
|
|
257
|
-
status?: string | null;
|
|
258
|
-
content?: string;
|
|
259
|
-
payload?: Record<string, unknown> & {
|
|
260
|
-
content?: unknown;
|
|
261
|
-
text?: unknown;
|
|
262
|
-
fileChanges?: WorkspaceAgentActivityFileChanges;
|
|
263
|
-
};
|
|
264
|
-
occurredAtUnixMs?: number;
|
|
265
|
-
createdAtUnixMs?: number;
|
|
266
|
-
}
|
|
267
|
-
interface WorkspaceAgentActivityMessage extends Omit<AgentActivityMessage, "id" | "status"> {
|
|
268
|
-
id?: number;
|
|
269
|
-
status?: string | null;
|
|
270
|
-
semantics?: AgentActivityMessageSemantics;
|
|
271
|
-
}
|
|
272
|
-
interface WorkspaceAgentActivitySnapshot extends Omit<AgentActivitySnapshot, "sessions" | "presences" | "sessionMessagesById" | "workspaceId"> {
|
|
273
|
-
workspaceId?: string;
|
|
274
|
-
presences: WorkspaceAgentActivityPresence[];
|
|
275
|
-
sessions: WorkspaceAgentActivitySession[];
|
|
276
|
-
sessionMessagesById?: Record<string, WorkspaceAgentActivityMessage[]>;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
type ToolCallStatusKind = "working" | "completed" | "failed" | "canceled" | "waiting";
|
|
280
|
-
interface WorkspaceAgentToolCallDisplay {
|
|
281
|
-
id: string;
|
|
282
|
-
name: string;
|
|
283
|
-
status: string | null;
|
|
284
|
-
statusKind: ToolCallStatusKind | null;
|
|
285
|
-
detail?: string;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
type WorkspaceAgentLatestActivityStatus = "working" | "waiting" | "idle" | "completed" | "canceled" | "failed";
|
|
289
|
-
interface WorkspaceAgentConversationPreviewLine {
|
|
290
|
-
actorName: string;
|
|
291
|
-
summary: string;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
declare function workspaceAgentProviderLabel(provider: string): string;
|
|
295
|
-
|
|
296
|
-
type WorkspaceAgentActivityStatus = WorkspaceAgentLatestActivityStatus;
|
|
297
|
-
interface WorkspaceAgentChangedFile {
|
|
298
|
-
path: string;
|
|
299
|
-
label: string;
|
|
300
|
-
}
|
|
301
|
-
interface WorkspaceAgentActivityCard {
|
|
302
|
-
id: string;
|
|
303
|
-
sessionId: string;
|
|
304
|
-
userId: string | null;
|
|
305
|
-
userName: string;
|
|
306
|
-
userAvatarUrl?: string;
|
|
307
|
-
agentProvider: string;
|
|
308
|
-
agentName: string;
|
|
309
|
-
title: string;
|
|
310
|
-
status: WorkspaceAgentActivityStatus;
|
|
311
|
-
latestActivitySummary: string;
|
|
312
|
-
/** User prompt + latest agent reply for task/issue execution cards; room status list uses single-line summary only. */
|
|
313
|
-
conversationPreview?: WorkspaceAgentConversationPreviewLine[];
|
|
314
|
-
latestActivityActorName?: string;
|
|
315
|
-
toolCalls?: WorkspaceAgentToolCallDisplay[];
|
|
316
|
-
changedFiles: WorkspaceAgentChangedFile[];
|
|
317
|
-
sortTimeUnixMs: number;
|
|
318
|
-
readTimeUnixMs?: number;
|
|
319
|
-
}
|
|
320
|
-
interface WorkspaceAgentActivityListViewModel {
|
|
321
|
-
activities: WorkspaceAgentActivityCard[];
|
|
322
|
-
}
|
|
323
|
-
interface BuildWorkspaceAgentActivityListOptions {
|
|
324
|
-
sessionMessagesById?: Record<string, WorkspaceAgentActivityMessage[]>;
|
|
325
|
-
userProfilesById?: Record<string, AgentHostUserInfo>;
|
|
326
|
-
}
|
|
327
|
-
interface CollectWorkspaceAgentGeneratedFilesOptions {
|
|
328
|
-
workspaceRoot?: string | null;
|
|
329
|
-
/** When set, only include files from sessions whose cwd matches this path. */
|
|
330
|
-
sessionCwd?: string | null;
|
|
331
|
-
}
|
|
332
|
-
declare function collectWorkspaceAgentGeneratedFiles(snapshot: WorkspaceAgentActivitySnapshot, options?: CollectWorkspaceAgentGeneratedFilesOptions): WorkspaceAgentChangedFile[];
|
|
333
|
-
declare function buildWorkspaceAgentActivityListViewModel(snapshot: WorkspaceAgentActivitySnapshot, options?: BuildWorkspaceAgentActivityListOptions): WorkspaceAgentActivityListViewModel;
|
|
334
|
-
declare function reuseWorkspaceAgentActivityListViewModelIfUnchanged(previous: WorkspaceAgentActivityListViewModel | null, next: WorkspaceAgentActivityListViewModel): WorkspaceAgentActivityListViewModel;
|
|
335
|
-
|
|
336
|
-
declare function resolveWorkspaceAgentActivityStatus(session: WorkspaceAgentActivitySession, messages?: readonly WorkspaceAgentActivityMessage[]): WorkspaceAgentActivityStatus;
|
|
337
|
-
declare function resolveWorkspaceAgentActivityTitle(session: WorkspaceAgentActivitySession, messages?: readonly WorkspaceAgentActivityMessage[]): string;
|
|
338
|
-
|
|
339
|
-
export { type AgentHostBatchUserInfoInput as A, type BuildWorkspaceAgentActivityListOptions as B, type CollectWorkspaceAgentGeneratedFilesOptions as C, type ToolCallStatusKind as T, type WorkspaceAgentActivityCard as W, type AgentHostBatchUserInfoResult as a, type AgentHostDeleteWorkspaceAgentSessionInput as b, type AgentHostManagedAgentsState as c, type AgentHostRuntimeOpenclawGatewayWarmupResult as d, type AgentHostWorkspaceAgentListInput as e, type AgentHostWorkspaceAgentMessage as f, type AgentHostWorkspaceAgentSession as g, type AgentHostWorkspaceAgentSessionMessages as h, type AgentHostWorkspaceAgentSessionMessagesInput as i, type AgentHostWorkspaceAgentSessionSummary as j, type AgentHostWorkspaceAgentSessionSummaryInput as k, type AgentHostWorkspaceAgentSnapshot as l, type WorkspaceAgentActivityListViewModel as m, type WorkspaceAgentActivitySession as n, type WorkspaceAgentActivityStatus as o, type WorkspaceAgentActivitySyncState as p, type WorkspaceAgentActivityTimelineItem as q, type WorkspaceAgentChangedFile as r, buildWorkspaceAgentActivityListViewModel as s, collectWorkspaceAgentGeneratedFiles as t, resolveWorkspaceAgentActivityStatus as u, resolveWorkspaceAgentActivityTitle as v, reuseWorkspaceAgentActivityListViewModelIfUnchanged as w, workspaceAgentProviderLabel as x };
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { WorkspaceIssueMentionMode } from '@tutti-os/workspace-issue-manager/core';
|
|
2
|
-
|
|
3
|
-
type WorkspaceLinkActionSource = "agent-markdown" | "agent-file-change" | string;
|
|
4
|
-
interface OpenWorkspaceFileLinkAction {
|
|
5
|
-
type: "open-workspace-file";
|
|
6
|
-
mode?: "reveal" | "open-directory";
|
|
7
|
-
path: string;
|
|
8
|
-
directoryPath: string;
|
|
9
|
-
workspaceRoot: string;
|
|
10
|
-
source: WorkspaceLinkActionSource;
|
|
11
|
-
prefetchedDirectoryListing?: WorkspaceFileLinkDirectoryListing | null;
|
|
12
|
-
}
|
|
13
|
-
interface OpenLocalAssetPreviewLinkAction {
|
|
14
|
-
type: "open-local-asset-preview";
|
|
15
|
-
path: string;
|
|
16
|
-
name: string;
|
|
17
|
-
source: WorkspaceLinkActionSource;
|
|
18
|
-
}
|
|
19
|
-
interface WorkspaceFileLinkDirectoryEntry {
|
|
20
|
-
path: string;
|
|
21
|
-
name: string;
|
|
22
|
-
kind: "file" | "directory" | "unknown";
|
|
23
|
-
hasChildren: boolean | null;
|
|
24
|
-
sizeBytes: number | null;
|
|
25
|
-
mtimeMs: number | null;
|
|
26
|
-
}
|
|
27
|
-
interface WorkspaceFileLinkDirectoryListing {
|
|
28
|
-
workspaceId: string;
|
|
29
|
-
root: string;
|
|
30
|
-
directoryPath: string;
|
|
31
|
-
entries: WorkspaceFileLinkDirectoryEntry[];
|
|
32
|
-
}
|
|
33
|
-
interface OpenWorkspaceUrlLinkAction {
|
|
34
|
-
type: "open-url";
|
|
35
|
-
url: string;
|
|
36
|
-
source: WorkspaceLinkActionSource;
|
|
37
|
-
}
|
|
38
|
-
interface OpenAgentSessionLinkAction {
|
|
39
|
-
type: "open-agent-session";
|
|
40
|
-
workspaceId: string;
|
|
41
|
-
agentSessionId: string;
|
|
42
|
-
agentTargetId?: string | null;
|
|
43
|
-
source: WorkspaceLinkActionSource;
|
|
44
|
-
}
|
|
45
|
-
interface OpenWorkspaceIssueLinkAction {
|
|
46
|
-
type: "open-workspace-issue";
|
|
47
|
-
workspaceId: string;
|
|
48
|
-
issueId: string | null;
|
|
49
|
-
mode?: WorkspaceIssueMentionMode;
|
|
50
|
-
outputDir?: string | null;
|
|
51
|
-
runId?: string | null;
|
|
52
|
-
taskId?: string | null;
|
|
53
|
-
topicId?: string | null;
|
|
54
|
-
source: WorkspaceLinkActionSource;
|
|
55
|
-
}
|
|
56
|
-
interface OpenWorkspaceAppLinkAction {
|
|
57
|
-
type: "open-workspace-app";
|
|
58
|
-
workspaceId: string;
|
|
59
|
-
appId: string;
|
|
60
|
-
conversationId?: string | null;
|
|
61
|
-
messageId?: string | null;
|
|
62
|
-
summaryTaskId?: string | null;
|
|
63
|
-
source: WorkspaceLinkActionSource;
|
|
64
|
-
}
|
|
65
|
-
interface OpenCustomMentionLinkAction {
|
|
66
|
-
type: "open-custom-mention";
|
|
67
|
-
/** 注册表里的 kind(= mention:// providerId)。 */
|
|
68
|
-
kind: string;
|
|
69
|
-
href: string;
|
|
70
|
-
source: WorkspaceLinkActionSource;
|
|
71
|
-
}
|
|
72
|
-
type WorkspaceLinkAction = OpenWorkspaceFileLinkAction | OpenLocalAssetPreviewLinkAction | OpenWorkspaceUrlLinkAction | OpenAgentSessionLinkAction | OpenWorkspaceIssueLinkAction | OpenWorkspaceAppLinkAction | OpenCustomMentionLinkAction;
|
|
73
|
-
|
|
74
|
-
export type { WorkspaceLinkAction as W };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|