@tutti-os/agent-gui 0.0.179 → 0.0.181
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-gui.d.ts +2 -0
- package/dist/agent-gui.js +2 -1
- package/dist/chunk-LB4AGT7B.js +57 -0
- package/dist/chunk-LB4AGT7B.js.map +1 -0
- package/dist/{chunk-G5JCVOF3.js → chunk-YL3WEK6L.js} +332 -241
- package/dist/chunk-YL3WEK6L.js.map +1 -0
- package/dist/conversation-rail-runtime.d.ts +354 -0
- package/dist/conversation-rail-runtime.js +12 -0
- package/dist/conversation-rail-runtime.js.map +1 -0
- package/dist/index.d.ts +18 -1
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/package.json +20 -13
- package/dist/chunk-G5JCVOF3.js.map +0 -1
package/dist/agent-gui.d.ts
CHANGED
|
@@ -676,6 +676,8 @@ interface AgentComposerProps {
|
|
|
676
676
|
isInterrupting: boolean;
|
|
677
677
|
isSendingTurn: boolean;
|
|
678
678
|
isSubmittingPrompt: boolean;
|
|
679
|
+
/** Whether the active session is authoritative enough to probe its cwd. */
|
|
680
|
+
projectMissingProbeEnabled?: boolean;
|
|
679
681
|
uiLanguage?: UiLanguage;
|
|
680
682
|
isActive?: boolean;
|
|
681
683
|
previewMode?: boolean;
|
package/dist/agent-gui.js
CHANGED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createWorkspaceQueryCache
|
|
3
|
+
} from "./chunk-A4WCTHWS.js";
|
|
4
|
+
|
|
5
|
+
// agentConversationRailRuntime.ts
|
|
6
|
+
var AGENT_CONVERSATION_BATCH_DELETION_RUNTIME_METHODS = [
|
|
7
|
+
"deleteSessionsBatch",
|
|
8
|
+
"listSessionSectionDeletionCandidates"
|
|
9
|
+
];
|
|
10
|
+
var AGENT_CONVERSATION_RAIL_SOURCE_METHODS = [
|
|
11
|
+
"deleteSessionsBatch",
|
|
12
|
+
"listPinnedSessionsPage",
|
|
13
|
+
"listSessionSectionDeletionCandidates",
|
|
14
|
+
"listSessionSectionPage",
|
|
15
|
+
"listSessionSections",
|
|
16
|
+
"listSessionsPage"
|
|
17
|
+
];
|
|
18
|
+
var AGENT_CONVERSATION_RAIL_RUNTIME_METHODS = [
|
|
19
|
+
"getSessionSectionsQueryCache",
|
|
20
|
+
...AGENT_CONVERSATION_RAIL_SOURCE_METHODS
|
|
21
|
+
];
|
|
22
|
+
function createAgentConversationRailRuntime(source) {
|
|
23
|
+
const sessionSectionsQueryCaches = /* @__PURE__ */ new Map();
|
|
24
|
+
return {
|
|
25
|
+
deleteSessionsBatch: (input) => source.deleteSessionsBatch(input),
|
|
26
|
+
getSessionSectionsQueryCache(workspaceId) {
|
|
27
|
+
const key = workspaceId.trim();
|
|
28
|
+
const current = sessionSectionsQueryCaches.get(key);
|
|
29
|
+
if (current) return current;
|
|
30
|
+
const created = createWorkspaceQueryCache();
|
|
31
|
+
sessionSectionsQueryCaches.set(key, created);
|
|
32
|
+
return created;
|
|
33
|
+
},
|
|
34
|
+
listPinnedSessionsPage: (input) => source.listPinnedSessionsPage(input),
|
|
35
|
+
listSessionSectionDeletionCandidates: (input) => source.listSessionSectionDeletionCandidates(input),
|
|
36
|
+
listSessionSectionPage: (input) => source.listSessionSectionPage(input),
|
|
37
|
+
listSessionSections: (input) => source.listSessionSections(input),
|
|
38
|
+
listSessionsPage: (input) => source.listSessionsPage(input)
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function inspectAgentConversationBatchDeletionCapability(runtime) {
|
|
42
|
+
const missingMethods = AGENT_CONVERSATION_BATCH_DELETION_RUNTIME_METHODS.filter(
|
|
43
|
+
(method) => typeof runtime[method] !== "function"
|
|
44
|
+
);
|
|
45
|
+
return {
|
|
46
|
+
available: missingMethods.length === 0,
|
|
47
|
+
missingMethods: [...missingMethods],
|
|
48
|
+
partial: missingMethods.length > 0 && missingMethods.length < AGENT_CONVERSATION_BATCH_DELETION_RUNTIME_METHODS.length
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export {
|
|
53
|
+
AGENT_CONVERSATION_RAIL_RUNTIME_METHODS,
|
|
54
|
+
createAgentConversationRailRuntime,
|
|
55
|
+
inspectAgentConversationBatchDeletionCapability
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=chunk-LB4AGT7B.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../agentConversationRailRuntime.ts"],"sourcesContent":["import type { AgentActivityRuntime } from \"./agentActivityRuntime.tsx\";\nimport {\n createWorkspaceQueryCache,\n type WorkspaceQueryCache\n} from \"./shared/query/workspaceQueryCache.ts\";\n\nconst AGENT_CONVERSATION_BATCH_DELETION_RUNTIME_METHODS = [\n \"deleteSessionsBatch\",\n \"listSessionSectionDeletionCandidates\"\n] as const satisfies ReadonlyArray<keyof AgentActivityRuntime>;\n\nconst AGENT_CONVERSATION_RAIL_SOURCE_METHODS = [\n \"deleteSessionsBatch\",\n \"listPinnedSessionsPage\",\n \"listSessionSectionDeletionCandidates\",\n \"listSessionSectionPage\",\n \"listSessionSections\",\n \"listSessionsPage\"\n] as const satisfies ReadonlyArray<keyof AgentActivityRuntime>;\n\nexport const AGENT_CONVERSATION_RAIL_RUNTIME_METHODS = [\n \"getSessionSectionsQueryCache\",\n ...AGENT_CONVERSATION_RAIL_SOURCE_METHODS\n] as const satisfies ReadonlyArray<keyof AgentActivityRuntime>;\n\ntype AgentConversationRailSourceMethod =\n (typeof AGENT_CONVERSATION_RAIL_SOURCE_METHODS)[number];\ntype AgentConversationBatchDeletionRuntimeMethod =\n (typeof AGENT_CONVERSATION_BATCH_DELETION_RUNTIME_METHODS)[number];\n\nexport type AgentConversationRailRuntime = Required<\n Pick<\n AgentActivityRuntime,\n (typeof AGENT_CONVERSATION_RAIL_RUNTIME_METHODS)[number]\n >\n>;\n\nexport type AgentConversationRailRuntimeSource = Required<\n Pick<AgentActivityRuntime, AgentConversationRailSourceMethod>\n>;\n\nexport interface AgentConversationBatchDeletionCapability {\n available: boolean;\n missingMethods: AgentConversationBatchDeletionRuntimeMethod[];\n partial: boolean;\n}\n\nexport function createAgentConversationRailRuntime(\n source: AgentConversationRailRuntimeSource\n): AgentConversationRailRuntime {\n const sessionSectionsQueryCaches = new Map<\n string,\n WorkspaceQueryCache<unknown>\n >();\n\n return {\n deleteSessionsBatch: (input) => source.deleteSessionsBatch(input),\n getSessionSectionsQueryCache(workspaceId) {\n const key = workspaceId.trim();\n const current = sessionSectionsQueryCaches.get(key);\n if (current) return current;\n const created = createWorkspaceQueryCache<unknown>();\n sessionSectionsQueryCaches.set(key, created);\n return created;\n },\n listPinnedSessionsPage: (input) => source.listPinnedSessionsPage(input),\n listSessionSectionDeletionCandidates: (input) =>\n source.listSessionSectionDeletionCandidates(input),\n listSessionSectionPage: (input) => source.listSessionSectionPage(input),\n listSessionSections: (input) => source.listSessionSections(input),\n listSessionsPage: (input) => source.listSessionsPage(input)\n };\n}\n\nexport function inspectAgentConversationBatchDeletionCapability(\n runtime: Partial<\n Pick<AgentActivityRuntime, AgentConversationBatchDeletionRuntimeMethod>\n >\n): AgentConversationBatchDeletionCapability {\n const missingMethods =\n AGENT_CONVERSATION_BATCH_DELETION_RUNTIME_METHODS.filter(\n (method) => typeof runtime[method] !== \"function\"\n );\n return {\n available: missingMethods.length === 0,\n missingMethods: [...missingMethods],\n partial:\n missingMethods.length > 0 &&\n missingMethods.length <\n AGENT_CONVERSATION_BATCH_DELETION_RUNTIME_METHODS.length\n };\n}\n"],"mappings":";;;;;AAMA,IAAM,oDAAoD;AAAA,EACxD;AAAA,EACA;AACF;AAEA,IAAM,yCAAyC;AAAA,EAC7C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEO,IAAM,0CAA0C;AAAA,EACrD;AAAA,EACA,GAAG;AACL;AAwBO,SAAS,mCACd,QAC8B;AAC9B,QAAM,6BAA6B,oBAAI,IAGrC;AAEF,SAAO;AAAA,IACL,qBAAqB,CAAC,UAAU,OAAO,oBAAoB,KAAK;AAAA,IAChE,6BAA6B,aAAa;AACxC,YAAM,MAAM,YAAY,KAAK;AAC7B,YAAM,UAAU,2BAA2B,IAAI,GAAG;AAClD,UAAI,QAAS,QAAO;AACpB,YAAM,UAAU,0BAAmC;AACnD,iCAA2B,IAAI,KAAK,OAAO;AAC3C,aAAO;AAAA,IACT;AAAA,IACA,wBAAwB,CAAC,UAAU,OAAO,uBAAuB,KAAK;AAAA,IACtE,sCAAsC,CAAC,UACrC,OAAO,qCAAqC,KAAK;AAAA,IACnD,wBAAwB,CAAC,UAAU,OAAO,uBAAuB,KAAK;AAAA,IACtE,qBAAqB,CAAC,UAAU,OAAO,oBAAoB,KAAK;AAAA,IAChE,kBAAkB,CAAC,UAAU,OAAO,iBAAiB,KAAK;AAAA,EAC5D;AACF;AAEO,SAAS,gDACd,SAG0C;AAC1C,QAAM,iBACJ,kDAAkD;AAAA,IAChD,CAAC,WAAW,OAAO,QAAQ,MAAM,MAAM;AAAA,EACzC;AACF,SAAO;AAAA,IACL,WAAW,eAAe,WAAW;AAAA,IACrC,gBAAgB,CAAC,GAAG,cAAc;AAAA,IAClC,SACE,eAAe,SAAS,KACxB,eAAe,SACb,kDAAkD;AAAA,EACxD;AACF;","names":[]}
|