@tutti-os/agent-gui 0.0.108 → 0.0.110

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.
Files changed (31) hide show
  1. package/dist/{AgentGUI-CkxdEB8F.d.ts → AgentGUI-BSr3cWcJ.d.ts} +1 -1
  2. package/dist/agent-conversation/index.d.ts +1 -1
  3. package/dist/agent-gui.d.ts +2 -2
  4. package/dist/agent-gui.js +5 -5
  5. package/dist/agent-message-center/index.d.ts +9 -2
  6. package/dist/agent-message-center/index.js +53 -21
  7. package/dist/agent-message-center/index.js.map +1 -1
  8. package/dist/{agentGuiNodeTypes-B3N_hJZp.d.ts → agentGuiNodeTypes-CR_l4HhU.d.ts} +1 -0
  9. package/dist/app/renderer/agentactivity.css +3 -3
  10. package/dist/{chunk-J4K7KIFZ.js → chunk-A4WCTHWS.js} +4 -13
  11. package/dist/chunk-A4WCTHWS.js.map +1 -0
  12. package/dist/{chunk-QTW5CH62.js → chunk-A5UXTAYJ.js} +2 -2
  13. package/dist/{chunk-EBXOSQ5G.js → chunk-J7KJ4MX4.js} +3 -1
  14. package/dist/{chunk-EBXOSQ5G.js.map → chunk-J7KJ4MX4.js.map} +1 -1
  15. package/dist/{chunk-UFD2QKGC.js → chunk-K7WFXVSD.js} +73 -40
  16. package/dist/chunk-K7WFXVSD.js.map +1 -0
  17. package/dist/{chunk-KXZMIZ5H.js → chunk-YRMT6UYB.js} +47 -36
  18. package/dist/chunk-YRMT6UYB.js.map +1 -0
  19. package/dist/context-mention-palette/index.js +2 -2
  20. package/dist/index.d.ts +4 -4
  21. package/dist/index.js +5 -5
  22. package/dist/mention-search.js +1 -1
  23. package/dist/workbench/contribution.js +1 -1
  24. package/dist/workbench/index.js +1 -1
  25. package/dist/workspace-query-cache.d.ts +0 -1
  26. package/dist/workspace-query-cache.js +1 -1
  27. package/package.json +14 -14
  28. package/dist/chunk-J4K7KIFZ.js.map +0 -1
  29. package/dist/chunk-KXZMIZ5H.js.map +0 -1
  30. package/dist/chunk-UFD2QKGC.js.map +0 -1
  31. /package/dist/{chunk-QTW5CH62.js.map → chunk-A5UXTAYJ.js.map} +0 -0
@@ -392,6 +392,7 @@ interface AgentGUIConversationSummary {
392
392
  updatedAtUnixMs: number;
393
393
  hasUnreadCompletion?: boolean;
394
394
  unreadCompletionKey?: string | null;
395
+ needsUserAction?: boolean;
395
396
  projectionSource?: "pending_activation";
396
397
  isImported?: boolean;
397
398
  activeTurn?: AgentActivitySession["activeTurn"];
@@ -9187,7 +9187,7 @@ html[data-theme="light"] [data-message-center-item-id].agent-gui-edge-glow {
9187
9187
  }
9188
9188
 
9189
9189
  .agent-gui-node__provider-rail-config-footer {
9190
- padding-bottom: 8px;
9190
+ padding-bottom: 4px;
9191
9191
  }
9192
9192
 
9193
9193
  .agent-gui-node__provider-rail-config-footer:last-child {
@@ -9732,8 +9732,8 @@ html[data-theme="light"] [data-message-center-item-id].agent-gui-edge-glow {
9732
9732
  pointer-events: none;
9733
9733
  transform: translate(-50%, -50%) rotate(-30deg) scale(1.9);
9734
9734
  transform-origin: center;
9735
- animation: agent-gui-vinyl-player-beta-slap 420ms cubic-bezier(0.34, 1.56, 0.64, 1)
9736
- both;
9735
+ animation: agent-gui-vinyl-player-beta-slap 420ms
9736
+ cubic-bezier(0.34, 1.56, 0.64, 1) both;
9737
9737
  }
9738
9738
 
9739
9739
  /* Sticker "slap": drops in oversized and transparent, then snaps down to size
@@ -17,9 +17,8 @@ function createWorkspaceQueryCache(options) {
17
17
  entries.delete(oldestKey);
18
18
  }
19
19
  };
20
- const write = (key, value, ingested) => {
20
+ const write = (key, value) => {
21
21
  const entry = {
22
- ingested,
23
22
  resolvedAtUnixMs: now(),
24
23
  stale: false,
25
24
  value,
@@ -30,14 +29,6 @@ function createWorkspaceQueryCache(options) {
30
29
  return entry;
31
30
  };
32
31
  return {
33
- claimIngestion(key, expectedVersion) {
34
- const entry = entries.get(key);
35
- if (!entry || entry.version !== expectedVersion || entry.ingested) {
36
- return false;
37
- }
38
- entry.ingested = true;
39
- return true;
40
- },
41
32
  invalidate(key) {
42
33
  if (key !== void 0) {
43
34
  const entry = entries.get(key);
@@ -56,7 +47,7 @@ function createWorkspaceQueryCache(options) {
56
47
  const active = requests.get(key);
57
48
  if (active) return active;
58
49
  const request = load().then((value) => {
59
- return write(key, value, false);
50
+ return write(key, value);
60
51
  }).finally(() => {
61
52
  if (requests.get(key) === request) requests.delete(key);
62
53
  });
@@ -64,7 +55,7 @@ function createWorkspaceQueryCache(options) {
64
55
  return request;
65
56
  },
66
57
  write(key, value) {
67
- return write(key, value, true);
58
+ return write(key, value);
68
59
  }
69
60
  };
70
61
  }
@@ -72,4 +63,4 @@ function createWorkspaceQueryCache(options) {
72
63
  export {
73
64
  createWorkspaceQueryCache
74
65
  };
75
- //# sourceMappingURL=chunk-J4K7KIFZ.js.map
66
+ //# sourceMappingURL=chunk-A4WCTHWS.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../shared/query/workspaceQueryCache.ts"],"sourcesContent":["export interface WorkspaceQueryCacheEntry<TValue> {\n readonly resolvedAtUnixMs: number;\n readonly stale: boolean;\n readonly value: TValue;\n readonly version: number;\n}\n\nexport interface WorkspaceQueryCache<TValue> {\n invalidate(key?: string): void;\n read(key: string): WorkspaceQueryCacheEntry<TValue> | null;\n request(\n key: string,\n load: () => Promise<TValue>\n ): Promise<WorkspaceQueryCacheEntry<TValue>>;\n write(key: string, value: TValue): WorkspaceQueryCacheEntry<TValue>;\n}\n\ntype MutableWorkspaceQueryCacheEntry<TValue> = Omit<\n WorkspaceQueryCacheEntry<TValue>,\n \"stale\"\n> & { stale: boolean };\n\nconst DEFAULT_MAX_ENTRIES = 24;\n\nexport function createWorkspaceQueryCache<TValue>(options?: {\n maxEntries?: number;\n now?: () => number;\n}): WorkspaceQueryCache<TValue> {\n const maxEntries = Math.max(1, options?.maxEntries ?? DEFAULT_MAX_ENTRIES);\n const now = options?.now ?? Date.now;\n const entries = new Map<string, MutableWorkspaceQueryCacheEntry<TValue>>();\n const requests = new Map<string, Promise<WorkspaceQueryCacheEntry<TValue>>>();\n let version = 0;\n\n const touch = (\n key: string,\n entry: MutableWorkspaceQueryCacheEntry<TValue>\n ): void => {\n entries.delete(key);\n entries.set(key, entry);\n };\n\n const trim = (): void => {\n while (entries.size > maxEntries) {\n const oldestKey = entries.keys().next().value;\n if (typeof oldestKey !== \"string\") return;\n entries.delete(oldestKey);\n }\n };\n\n const write = (\n key: string,\n value: TValue\n ): MutableWorkspaceQueryCacheEntry<TValue> => {\n const entry: MutableWorkspaceQueryCacheEntry<TValue> = {\n resolvedAtUnixMs: now(),\n stale: false,\n value,\n version: ++version\n };\n touch(key, entry);\n trim();\n return entry;\n };\n\n return {\n invalidate(key) {\n if (key !== undefined) {\n const entry = entries.get(key);\n if (entry) entry.stale = true;\n return;\n }\n for (const entry of entries.values()) entry.stale = true;\n },\n read(key) {\n const entry = entries.get(key);\n if (!entry) return null;\n touch(key, entry);\n return entry;\n },\n request(key, load) {\n const active = requests.get(key);\n if (active) return active;\n const request = load()\n .then((value): WorkspaceQueryCacheEntry<TValue> => {\n return write(key, value);\n })\n .finally(() => {\n if (requests.get(key) === request) requests.delete(key);\n });\n requests.set(key, request);\n return request;\n },\n write(key, value) {\n return write(key, value);\n }\n };\n}\n"],"mappings":";AAsBA,IAAM,sBAAsB;AAErB,SAAS,0BAAkC,SAGlB;AAC9B,QAAM,aAAa,KAAK,IAAI,GAAG,SAAS,cAAc,mBAAmB;AACzE,QAAM,MAAM,SAAS,OAAO,KAAK;AACjC,QAAM,UAAU,oBAAI,IAAqD;AACzE,QAAM,WAAW,oBAAI,IAAuD;AAC5E,MAAI,UAAU;AAEd,QAAM,QAAQ,CACZ,KACA,UACS;AACT,YAAQ,OAAO,GAAG;AAClB,YAAQ,IAAI,KAAK,KAAK;AAAA,EACxB;AAEA,QAAM,OAAO,MAAY;AACvB,WAAO,QAAQ,OAAO,YAAY;AAChC,YAAM,YAAY,QAAQ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9
9
  import {
10
10
  resolveAgentMentionFileThumbnailUrl,
11
11
  resolveAgentMentionFileVisualKind
@@ -505,4 +505,4 @@ export {
505
505
  AgentFileMentionPalette,
506
506
  AgentContextMentionPalette
507
507
  };
508
- //# sourceMappingURL=chunk-QTW5CH62.js.map
508
+ //# sourceMappingURL=chunk-A5UXTAYJ.js.map
@@ -1102,7 +1102,9 @@ function createAgentGuiWorkbenchPreviewBodyContext(input) {
1102
1102
  host: input.host,
1103
1103
  instanceId: input.node.data.instanceId,
1104
1104
  instanceKey: input.node.data.instanceKey ?? null,
1105
+ isDragging: false,
1105
1106
  isFocused: false,
1107
+ isResizing: false,
1106
1108
  node: input.node,
1107
1109
  previewViewport: input.previewViewport,
1108
1110
  setNodeRuntimeState: () => void 0,
@@ -1480,4 +1482,4 @@ export {
1480
1482
  AGENT_GUI_WORKBENCH_OPEN_EXTERNAL_IMPORT_EVENT,
1481
1483
  createAgentGuiWorkbenchContribution
1482
1484
  };
1483
- //# sourceMappingURL=chunk-EBXOSQ5G.js.map
1485
+ //# sourceMappingURL=chunk-J7KJ4MX4.js.map