@tano.page/protocol 0.11.0 → 0.12.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tano.page/protocol",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./src/index.ts",
@@ -24,8 +24,8 @@
24
24
  "url": "git+https://github.com/Dramwig/Tano.git"
25
25
  },
26
26
  "tanoCore": {
27
- "sourceCommit": "16145a8281f7572fce8dabf297e00129a5bd6813",
28
- "version": "0.11.0",
27
+ "sourceCommit": "c0c53cfbcbbdda832ef05925a2ecbbabd67e30b5",
28
+ "version": "0.12.0",
29
29
  "importName": "@tano/protocol"
30
30
  }
31
31
  }
package/src/assistant.ts CHANGED
@@ -25,6 +25,8 @@ export interface AssistantConnection {
25
25
  maxOutputTokens: number;
26
26
  hasKey: boolean;
27
27
  /** Configured by the hosting application. */
28
+ platformProvider?: boolean;
29
+ /** Legacy wire field for released servers. Normalize at the transport boundary. */
28
30
  managed?: boolean;
29
31
  }
30
32
 
package/src/entry-drag.ts CHANGED
@@ -1,15 +1,20 @@
1
- import type { ReferenceTarget } from './objects';
2
-
3
- export const entryReferenceDragType = 'application/x-tano-entry-references';
4
-
5
- /** Resolve drag identities against live targets, never trust dragged labels or paths. */
6
- export function droppedEntryReferences(data: string, targets: readonly ReferenceTarget[]): ReferenceTarget[] {
7
- try {
8
- const payload = JSON.parse(data);
9
- if (typeof payload.workspace !== 'string' || !Array.isArray(payload.ids)) return [];
10
- const ids = new Set(payload.ids.filter((id: unknown) => typeof id === 'string'));
11
- return targets.filter(target => target.workspace === payload.workspace && ids.has(target.id));
12
- } catch {
13
- return [];
14
- }
15
- }
1
+ import type { ReferenceTarget } from './objects';
2
+
3
+ export const entryReferenceDragType = 'application/x-tano-entry-references';
4
+
5
+ /** Resolve drag identities against live targets, never trust dragged labels or paths. */
6
+ export function droppedEntryReferences(data: string, targets: readonly ReferenceTarget[]): ReferenceTarget[] {
7
+ try {
8
+ const payload = JSON.parse(data);
9
+ if (typeof payload.workspace !== 'string' || !Array.isArray(payload.ids)) return [];
10
+ const ids = new Set(payload.ids.filter((id: unknown) => typeof id === 'string'));
11
+ return targets.filter(target => target.workspace === payload.workspace && ids.has(target.id));
12
+ } catch {
13
+ return [];
14
+ }
15
+ }
16
+
17
+ /** Acknowledges a completed insertion to the active drag source. */
18
+ export function confirmEntryReferenceDrop(event: DragEvent) {
19
+ event.target?.dispatchEvent(new CustomEvent('tano-entry-reference-inserted', { bubbles: true }));
20
+ }