@tutti-os/agent-gui 0.0.60 → 0.0.61
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/agent-conversation/index.js +1 -1
- package/dist/{chunk-K3UBSTJ5.js → chunk-3KS22CG2.js} +2 -2
- package/dist/{chunk-MPZ3CW5C.js → chunk-IIVHPXAB.js} +1 -1
- package/dist/chunk-IIVHPXAB.js.map +1 -0
- package/dist/{chunk-WNVIKTJK.js → chunk-JBWFRSFQ.js} +2 -2
- package/dist/{chunk-YZ3POK7G.js → chunk-JLJIAKI3.js} +6 -2
- package/dist/chunk-JLJIAKI3.js.map +1 -0
- package/dist/{chunk-AWIZJQXW.js → chunk-JSIA4K67.js} +4 -4
- package/dist/{chunk-BB2SVMEV.js → chunk-SXML6H77.js} +2 -1
- package/dist/index.d.ts +7 -4
- package/dist/index.js +68 -21
- package/dist/index.js.map +1 -1
- package/dist/workbench/contribution.js +5 -5
- package/dist/workbench/index.js +5 -5
- package/dist/workbench/launch.js +2 -2
- package/dist/workbench/state.js +2 -2
- package/dist/workbench/types.d.ts +1 -0
- package/dist/workbench/types.js +1 -1
- package/package.json +12 -12
- package/dist/chunk-MPZ3CW5C.js.map +0 -1
- package/dist/chunk-YZ3POK7G.js.map +0 -1
- /package/dist/{chunk-K3UBSTJ5.js.map → chunk-3KS22CG2.js.map} +0 -0
- /package/dist/{chunk-WNVIKTJK.js.map → chunk-JBWFRSFQ.js.map} +0 -0
- /package/dist/{chunk-AWIZJQXW.js.map → chunk-JSIA4K67.js.map} +0 -0
- /package/dist/{chunk-BB2SVMEV.js.map → chunk-SXML6H77.js.map} +0 -0
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
createAgentGuiWorkbenchNodeStateSource,
|
|
4
4
|
normalizeAgentGuiWorkbenchNodeState,
|
|
5
5
|
normalizeAgentGuiWorkbenchState
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JBWFRSFQ.js";
|
|
7
7
|
import {
|
|
8
8
|
agentGuiWorkbenchDockIdentityFromIdentifier,
|
|
9
9
|
agentGuiWorkbenchProviderFromIdentifier,
|
|
10
10
|
agentGuiWorkbenchTypeId,
|
|
11
11
|
agentGuiWorkbenchUnifiedDockEntryId,
|
|
12
12
|
createAgentGuiWorkbenchLaunchDescriptor
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3KS22CG2.js";
|
|
14
14
|
import {
|
|
15
15
|
agentGuiWorkbenchDefaultDockProviders,
|
|
16
16
|
isAgentGuiWorkbenchProvider,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "./chunk-5WB3NGIN.js";
|
|
25
25
|
import {
|
|
26
26
|
normalizeAgentGUIProviderTargets
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-SXML6H77.js";
|
|
28
28
|
|
|
29
29
|
// workbench/contribution.ts
|
|
30
30
|
import { createElement as createElement2 } from "react";
|
|
@@ -860,4 +860,4 @@ export {
|
|
|
860
860
|
resolveAgentGuiWorkbenchDefaultLaunchFrame,
|
|
861
861
|
resolveAgentGuiWorkbenchContributionCopy
|
|
862
862
|
};
|
|
863
|
-
//# sourceMappingURL=chunk-
|
|
863
|
+
//# sourceMappingURL=chunk-JSIA4K67.js.map
|
|
@@ -180,8 +180,9 @@ export {
|
|
|
180
180
|
createDisabledPlaceholderAgentGUIProviderTarget,
|
|
181
181
|
createLocalAgentGUIProviderTargets,
|
|
182
182
|
localAgentGUIProviderTargetId,
|
|
183
|
+
localAgentGUIAgentTargetId,
|
|
183
184
|
normalizeAgentGUIProviderTargets,
|
|
184
185
|
resolveAgentGUIProviderTarget,
|
|
185
186
|
agentGUIProviderTargetRefsEqual
|
|
186
187
|
};
|
|
187
|
-
//# sourceMappingURL=chunk-
|
|
188
|
+
//# sourceMappingURL=chunk-SXML6H77.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -446,11 +446,13 @@ type WorkspaceDesktopAgentProbeDemandChange = (provider: AgentProvider | null, s
|
|
|
446
446
|
type WorkspaceDesktopAgentProbeRefreshRequest = (provider: AgentProvider, sourceId?: string) => void;
|
|
447
447
|
|
|
448
448
|
interface AgentGUIComposerDefaults {
|
|
449
|
-
model?: string;
|
|
450
|
-
permissionModeId?: string;
|
|
451
|
-
reasoningEffort?: string;
|
|
449
|
+
model?: string | null;
|
|
450
|
+
permissionModeId?: string | null;
|
|
451
|
+
reasoningEffort?: string | null;
|
|
452
|
+
speed?: string | null;
|
|
452
453
|
}
|
|
453
454
|
interface AgentGUIRememberComposerDefaultsInput {
|
|
455
|
+
agentTargetId: string | null;
|
|
454
456
|
provider: AgentGUINodeData["provider"];
|
|
455
457
|
defaults: AgentGUIComposerDefaults | null;
|
|
456
458
|
}
|
|
@@ -897,6 +899,7 @@ declare const agentGUIDefaultTargetProviders: readonly ["codex", "claude-code",
|
|
|
897
899
|
declare function createLocalAgentGUIProviderTarget(provider: AgentGUIProvider): AgentGUIProviderTarget;
|
|
898
900
|
declare function createLocalAgentGUIProviderTargets(providers?: readonly AgentGUIProvider[]): AgentGUIProviderTarget[];
|
|
899
901
|
declare function localAgentGUIProviderTargetId(provider: AgentGUIProvider): string;
|
|
902
|
+
declare function localAgentGUIAgentTargetId(provider: AgentGUIProvider): string | null;
|
|
900
903
|
declare function normalizeAgentGUIProviderTargets(targets: readonly AgentGUIProviderTarget[] | null | undefined, options?: {
|
|
901
904
|
includeDisabledPlaceholders?: boolean;
|
|
902
905
|
useStaticCatalog?: boolean;
|
|
@@ -951,4 +954,4 @@ interface AgentActivityHostProviderProps extends PropsWithChildren {
|
|
|
951
954
|
}
|
|
952
955
|
declare function AgentActivityHostProvider({ agentActivityRuntime, agentHostApi, children }: AgentActivityHostProviderProps): JSX.Element;
|
|
953
956
|
|
|
954
|
-
export { AgentActivityHostProvider, type AgentActivityHostProviderProps, type AgentActivityRuntime, type AgentActivityRuntimeListSessionMessagesInput, type AgentActivityRuntimePromptContentBlock, AgentActivityRuntimeProvider, type AgentActivityRuntimeProviderProps, type AgentActivityRuntimeRetainSessionEventsInput, type AgentActivityRuntimeSetSessionPinnedInput, type AgentActivityRuntimeUpdateSessionSettingsInput, type AgentActivityRuntimeUploadPromptContentInput, type AgentActivityRuntimeUploadPromptContentResult, type AgentActivityRuntimeWarmupOpenclawGatewayInput, type AgentActivitySnapshotProjection, AgentContextMentionProvider, type AgentCustomMentionChipContext, type AgentCustomMentionIdentity, type AgentCustomMentionKindDefinition, type AgentCustomMentionPresentation, AgentGUI, type AgentGUIProps, AgentGUIProvider, AgentGUIProviderReadinessGate, AgentGUIProviderTarget, AgentGUIProviderTargetRef, AgentGuiI18nLocale, AgentHostInputApi, AgentProbeSnapshot, AgentQueuedPromptQueueSnapshot, AgentQueuedPromptRuntime, AgentQueuedPromptRuntimeProvider, type AgentQueuedPromptRuntimeProviderProps, agentGUIDefaultTargetProviders, agentGuiDockIconUrl, agentGuiDockIconUrls, agentHostSnapshotFromAgentActivitySnapshot, buildAgentActivitySnapshotProjection, createLocalAgentGUIProviderTarget, createLocalAgentGUIProviderTargets, getAgentActivityRuntime, getAgentCustomMentionKind, getOptionalAgentActivityRuntime, localAgentGUIProviderTargetId, normalizeAgentGUIProviderTargets, projectCoreSessionStatus, registerAgentCustomMentionKind, resetAgentActivityRuntimeForTests, resetAgentCustomMentionKindsForTests, resetAgentQueuedPromptRuntimeForTests, resolveAgentGUIExpandedWindowFrame, resolveAgentGUIProviderTarget, setAgentActivityRuntimeForTests, setAgentQueuedPromptRuntimeForTests, shouldAutoCollapseAgentGUIConversationRail, useAgentActivityRuntime, useAgentActivitySnapshot, useAgentQueuedPromptRuntime, useAgentQueuedPromptSessionSnapshot, useOptionalAgentActivityRuntime };
|
|
957
|
+
export { AgentActivityHostProvider, type AgentActivityHostProviderProps, type AgentActivityRuntime, type AgentActivityRuntimeListSessionMessagesInput, type AgentActivityRuntimePromptContentBlock, AgentActivityRuntimeProvider, type AgentActivityRuntimeProviderProps, type AgentActivityRuntimeRetainSessionEventsInput, type AgentActivityRuntimeSetSessionPinnedInput, type AgentActivityRuntimeUpdateSessionSettingsInput, type AgentActivityRuntimeUploadPromptContentInput, type AgentActivityRuntimeUploadPromptContentResult, type AgentActivityRuntimeWarmupOpenclawGatewayInput, type AgentActivitySnapshotProjection, AgentContextMentionProvider, type AgentCustomMentionChipContext, type AgentCustomMentionIdentity, type AgentCustomMentionKindDefinition, type AgentCustomMentionPresentation, AgentGUI, type AgentGUIProps, AgentGUIProvider, AgentGUIProviderReadinessGate, AgentGUIProviderTarget, AgentGUIProviderTargetRef, AgentGuiI18nLocale, AgentHostInputApi, AgentProbeSnapshot, AgentQueuedPromptQueueSnapshot, AgentQueuedPromptRuntime, AgentQueuedPromptRuntimeProvider, type AgentQueuedPromptRuntimeProviderProps, agentGUIDefaultTargetProviders, agentGuiDockIconUrl, agentGuiDockIconUrls, agentHostSnapshotFromAgentActivitySnapshot, buildAgentActivitySnapshotProjection, createLocalAgentGUIProviderTarget, createLocalAgentGUIProviderTargets, getAgentActivityRuntime, getAgentCustomMentionKind, getOptionalAgentActivityRuntime, localAgentGUIAgentTargetId, localAgentGUIProviderTargetId, normalizeAgentGUIProviderTargets, projectCoreSessionStatus, registerAgentCustomMentionKind, resetAgentActivityRuntimeForTests, resetAgentCustomMentionKindsForTests, resetAgentQueuedPromptRuntimeForTests, resolveAgentGUIExpandedWindowFrame, resolveAgentGUIProviderTarget, setAgentActivityRuntimeForTests, setAgentQueuedPromptRuntimeForTests, shouldAutoCollapseAgentGUIConversationRail, useAgentActivityRuntime, useAgentActivitySnapshot, useAgentQueuedPromptRuntime, useAgentQueuedPromptSessionSnapshot, useOptionalAgentActivityRuntime };
|
package/dist/index.js
CHANGED
|
@@ -16,10 +16,11 @@ import {
|
|
|
16
16
|
createDisabledPlaceholderAgentGUIProviderTarget,
|
|
17
17
|
createLocalAgentGUIProviderTarget,
|
|
18
18
|
createLocalAgentGUIProviderTargets,
|
|
19
|
+
localAgentGUIAgentTargetId,
|
|
19
20
|
localAgentGUIProviderTargetId,
|
|
20
21
|
normalizeAgentGUIProviderTargets,
|
|
21
22
|
resolveAgentGUIProviderTarget
|
|
22
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-SXML6H77.js";
|
|
23
24
|
import {
|
|
24
25
|
AgentInteractivePromptSurface,
|
|
25
26
|
approvalOptionDisplayLabel
|
|
@@ -63,7 +64,7 @@ import {
|
|
|
63
64
|
skillTriggerForPrefix,
|
|
64
65
|
toLocalShortDateTime,
|
|
65
66
|
useProjectedAgentConversation
|
|
66
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-JLJIAKI3.js";
|
|
67
68
|
import {
|
|
68
69
|
AgentMessageMarkdown,
|
|
69
70
|
AgentTargetPresentationProvider,
|
|
@@ -6708,21 +6709,26 @@ var AGENT_PROVIDER_SESSION_NOT_FOUND_FALLBACK_MESSAGE = "The previous agent sess
|
|
|
6708
6709
|
var AGENT_RESUME_SESSION_NOT_LOCAL_FALLBACK_MESSAGE = "The previous agent session is not available on this machine.";
|
|
6709
6710
|
var AGENT_GUI_CAUGHT_ERROR_STACK_LIMIT = 4e3;
|
|
6710
6711
|
var SELECTED_SESSION_NOT_FOUND_RETRY_DELAY_MS = 150;
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
}
|
|
6719
|
-
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
|
|
6723
|
-
|
|
6712
|
+
var rememberComposerDefaultsFields = [
|
|
6713
|
+
"model",
|
|
6714
|
+
"permissionModeId",
|
|
6715
|
+
"reasoningEffort",
|
|
6716
|
+
"speed"
|
|
6717
|
+
];
|
|
6718
|
+
function composerDefaultsPatchFromSettings(touched, finalSettings) {
|
|
6719
|
+
const patch = {};
|
|
6720
|
+
for (const field of rememberComposerDefaultsFields) {
|
|
6721
|
+
if (touched[field] === void 0) {
|
|
6722
|
+
continue;
|
|
6723
|
+
}
|
|
6724
|
+
const touchedValue = normalizeOptionalText2(touched[field]);
|
|
6725
|
+
const finalValue = normalizeOptionalText2(finalSettings[field]);
|
|
6726
|
+
if (touchedValue !== null && finalValue === null) {
|
|
6727
|
+
continue;
|
|
6728
|
+
}
|
|
6729
|
+
patch[field] = finalValue;
|
|
6724
6730
|
}
|
|
6725
|
-
return Object.keys(
|
|
6731
|
+
return Object.keys(patch).length > 0 ? patch : null;
|
|
6726
6732
|
}
|
|
6727
6733
|
function composerTargetDataFromProviderTarget(input) {
|
|
6728
6734
|
const agentTargetId = normalizeOptionalText2(input.target.agentTargetId);
|
|
@@ -13082,8 +13088,12 @@ function useAgentGUINodeController({
|
|
|
13082
13088
|
)
|
|
13083
13089
|
);
|
|
13084
13090
|
void onRememberComposerDefaultsRef.current?.({
|
|
13091
|
+
agentTargetId: targetData.agentTargetId,
|
|
13085
13092
|
provider: targetData.provider,
|
|
13086
|
-
defaults:
|
|
13093
|
+
defaults: composerDefaultsPatchFromSettings(
|
|
13094
|
+
supportedNextSettings,
|
|
13095
|
+
targetSafeMerged
|
|
13096
|
+
)
|
|
13087
13097
|
});
|
|
13088
13098
|
void agentActivityRuntime.trackDraftComposerSettingsChange?.({
|
|
13089
13099
|
workspaceId,
|
|
@@ -13155,6 +13165,46 @@ function useAgentGUINodeController({
|
|
|
13155
13165
|
}
|
|
13156
13166
|
} : existing
|
|
13157
13167
|
);
|
|
13168
|
+
void onRememberComposerDefaultsRef.current?.({
|
|
13169
|
+
agentTargetId: normalizeOptionalText2(dataRef.current.agentTargetId),
|
|
13170
|
+
provider: dataRef.current.provider,
|
|
13171
|
+
defaults: composerDefaultsPatchFromSettings(
|
|
13172
|
+
sessionSettingsPatch,
|
|
13173
|
+
sessionSettingsPatch
|
|
13174
|
+
)
|
|
13175
|
+
});
|
|
13176
|
+
const durableNodeDefaultsPatch = {};
|
|
13177
|
+
for (const field of rememberComposerDefaultsFields) {
|
|
13178
|
+
if (sessionSettingsPatch[field] !== void 0) {
|
|
13179
|
+
durableNodeDefaultsPatch[field] = sessionSettingsPatch[field];
|
|
13180
|
+
}
|
|
13181
|
+
}
|
|
13182
|
+
if (Object.keys(durableNodeDefaultsPatch).length > 0) {
|
|
13183
|
+
const defaultDraftKey = nodeDefaultDraftKey(
|
|
13184
|
+
dataRef.current.provider,
|
|
13185
|
+
dataRef.current.agentTargetId
|
|
13186
|
+
);
|
|
13187
|
+
const storedNodeDefaults = readNodeDefaultDraftSettings({
|
|
13188
|
+
data: dataRef.current,
|
|
13189
|
+
defaultReasoningEffort,
|
|
13190
|
+
drafts: draftSettingsBySessionIdRef.current
|
|
13191
|
+
});
|
|
13192
|
+
const nextNodeDefaults = {
|
|
13193
|
+
...storedNodeDefaults,
|
|
13194
|
+
...durableNodeDefaultsPatch
|
|
13195
|
+
};
|
|
13196
|
+
draftSettingsBySessionIdRef.current = {
|
|
13197
|
+
...draftSettingsBySessionIdRef.current,
|
|
13198
|
+
[defaultDraftKey]: nextNodeDefaults
|
|
13199
|
+
};
|
|
13200
|
+
setDraftSettingsBySessionId((current) => ({
|
|
13201
|
+
...current,
|
|
13202
|
+
[defaultDraftKey]: nextNodeDefaults
|
|
13203
|
+
}));
|
|
13204
|
+
onDataChangeRef.current(
|
|
13205
|
+
(current) => nodeDataFromComposerSettings(current, nextNodeDefaults)
|
|
13206
|
+
);
|
|
13207
|
+
}
|
|
13158
13208
|
if (updatingSessionSettingsIdsRef.current[agentSessionId]) {
|
|
13159
13209
|
const queuedUpdate = queuedComposerSettingsUpdatesRef.current[agentSessionId];
|
|
13160
13210
|
queuedComposerSettingsUpdatesRef.current[agentSessionId] = {
|
|
@@ -14208,10 +14258,6 @@ function useAgentGUINodeController({
|
|
|
14208
14258
|
targetSafeNodeDefaultSettings
|
|
14209
14259
|
)
|
|
14210
14260
|
);
|
|
14211
|
-
void onRememberComposerDefaultsRef.current?.({
|
|
14212
|
-
provider: selectedComposerTargetData.provider,
|
|
14213
|
-
defaults: composerDefaultsFromSettings(targetSafeNodeDefaultSettings)
|
|
14214
|
-
});
|
|
14215
14261
|
}, [
|
|
14216
14262
|
activeConversationId,
|
|
14217
14263
|
providerComposerOptions,
|
|
@@ -29993,6 +30039,7 @@ export {
|
|
|
29993
30039
|
getAgentActivityRuntime,
|
|
29994
30040
|
getAgentCustomMentionKind,
|
|
29995
30041
|
getOptionalAgentActivityRuntime,
|
|
30042
|
+
localAgentGUIAgentTargetId,
|
|
29996
30043
|
localAgentGUIProviderTargetId,
|
|
29997
30044
|
normalizeAgentGUIProviderTargets,
|
|
29998
30045
|
preloadAgentMentionBrowse,
|