@spotpatch/runtime 1.13.0 → 1.14.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.
@@ -0,0 +1,72 @@
1
+ type FloatingSurfaceScene = "pill" | "capturing" | "planner" | "agent-charging" | "handoff" | "running" | "success" | "failed";
2
+ type FloatingSurfaceTone = "neutral" | "capturing" | "ready" | "running" | "success" | "danger";
3
+ type ExecutionActivityKind = "prepare" | "dispatch" | "discover" | "search" | "read" | "patch" | "check" | "audit" | "apply" | "sync" | "unknown";
4
+ interface FloatingSurfaceActivity {
5
+ readonly detail?: string;
6
+ readonly key: string;
7
+ readonly kind: ExecutionActivityKind;
8
+ readonly label: string;
9
+ readonly state: "active" | "success" | "failure" | "info";
10
+ }
11
+ interface FloatingSurfaceProjection {
12
+ readonly action: string;
13
+ readonly activity?: FloatingSurfaceActivity;
14
+ readonly expandedAction?: string;
15
+ readonly expandedHeadline?: string;
16
+ readonly headline: string;
17
+ readonly meta: string;
18
+ readonly recentActivities: readonly FloatingSurfaceActivity[];
19
+ readonly scene: FloatingSurfaceScene;
20
+ readonly startedAt?: string;
21
+ readonly tone: FloatingSurfaceTone;
22
+ }
23
+ interface ExecutionIslandElements {
24
+ readonly action: HTMLElement;
25
+ readonly actionOutgoing: HTMLElement;
26
+ readonly content: HTMLElement;
27
+ readonly headline: HTMLElement;
28
+ readonly headlineOutgoing: HTMLElement;
29
+ readonly logo: SVGSVGElement;
30
+ readonly mark: HTMLElement;
31
+ readonly meta: HTMLElement;
32
+ readonly metaDot: HTMLElement;
33
+ readonly metaLabel: HTMLElement;
34
+ readonly more: HTMLElement;
35
+ readonly recent: HTMLElement;
36
+ readonly root: HTMLButtonElement;
37
+ readonly sweep: HTMLElement;
38
+ readonly timer: HTMLElement;
39
+ }
40
+ interface ExecutionIslandView {
41
+ readonly canExpand: () => boolean;
42
+ readonly dispose: () => void;
43
+ readonly isExpanded: () => boolean;
44
+ readonly render: (projection: FloatingSurfaceProjection) => void;
45
+ readonly root: HTMLButtonElement;
46
+ readonly setExpanded: (expanded: boolean) => void;
47
+ }
48
+ interface MotionExecutionIsland extends ExecutionIslandView {
49
+ readonly elements: ExecutionIslandElements;
50
+ }
51
+ interface FloatingSurfaceMotionElements {
52
+ readonly execution: ExecutionIslandElements;
53
+ readonly pill: HTMLButtonElement;
54
+ readonly planner: HTMLElement;
55
+ readonly surface: HTMLElement;
56
+ }
57
+ interface FloatingSurfaceMotionController {
58
+ readonly cancel: () => void;
59
+ readonly dispatch: (source: HTMLElement, target: HTMLElement) => void;
60
+ readonly dispose: () => void;
61
+ readonly render: (projection: FloatingSurfaceProjection, renderContent: () => void) => void;
62
+ readonly updateLayout: (updateContent: () => void) => void;
63
+ }
64
+ interface FloatingSurfaceMotionExtension {
65
+ readonly createExecutionIsland: (document: Document) => MotionExecutionIsland;
66
+ readonly createController: (document: Document, elements: FloatingSurfaceMotionElements, reconcile: () => void) => FloatingSurfaceMotionController;
67
+ readonly createStyles: (document: Document) => HTMLStyleElement;
68
+ }
69
+ declare function registerFloatingSurfaceMotionExtension(extension: FloatingSurfaceMotionExtension): void;
70
+ declare function getFloatingSurfaceMotionExtension(): FloatingSurfaceMotionExtension | undefined;
71
+
72
+ export { type FloatingSurfaceMotionElements as F, type MotionExecutionIsland as M, type FloatingSurfaceMotionController as a, type FloatingSurfaceMotionExtension as b, type FloatingSurfaceProjection as c, type FloatingSurfaceScene as d, type FloatingSurfaceTone as e, getFloatingSurfaceMotionExtension as g, registerFloatingSurfaceMotionExtension as r };
@@ -0,0 +1,72 @@
1
+ type FloatingSurfaceScene = "pill" | "capturing" | "planner" | "agent-charging" | "handoff" | "running" | "success" | "failed";
2
+ type FloatingSurfaceTone = "neutral" | "capturing" | "ready" | "running" | "success" | "danger";
3
+ type ExecutionActivityKind = "prepare" | "dispatch" | "discover" | "search" | "read" | "patch" | "check" | "audit" | "apply" | "sync" | "unknown";
4
+ interface FloatingSurfaceActivity {
5
+ readonly detail?: string;
6
+ readonly key: string;
7
+ readonly kind: ExecutionActivityKind;
8
+ readonly label: string;
9
+ readonly state: "active" | "success" | "failure" | "info";
10
+ }
11
+ interface FloatingSurfaceProjection {
12
+ readonly action: string;
13
+ readonly activity?: FloatingSurfaceActivity;
14
+ readonly expandedAction?: string;
15
+ readonly expandedHeadline?: string;
16
+ readonly headline: string;
17
+ readonly meta: string;
18
+ readonly recentActivities: readonly FloatingSurfaceActivity[];
19
+ readonly scene: FloatingSurfaceScene;
20
+ readonly startedAt?: string;
21
+ readonly tone: FloatingSurfaceTone;
22
+ }
23
+ interface ExecutionIslandElements {
24
+ readonly action: HTMLElement;
25
+ readonly actionOutgoing: HTMLElement;
26
+ readonly content: HTMLElement;
27
+ readonly headline: HTMLElement;
28
+ readonly headlineOutgoing: HTMLElement;
29
+ readonly logo: SVGSVGElement;
30
+ readonly mark: HTMLElement;
31
+ readonly meta: HTMLElement;
32
+ readonly metaDot: HTMLElement;
33
+ readonly metaLabel: HTMLElement;
34
+ readonly more: HTMLElement;
35
+ readonly recent: HTMLElement;
36
+ readonly root: HTMLButtonElement;
37
+ readonly sweep: HTMLElement;
38
+ readonly timer: HTMLElement;
39
+ }
40
+ interface ExecutionIslandView {
41
+ readonly canExpand: () => boolean;
42
+ readonly dispose: () => void;
43
+ readonly isExpanded: () => boolean;
44
+ readonly render: (projection: FloatingSurfaceProjection) => void;
45
+ readonly root: HTMLButtonElement;
46
+ readonly setExpanded: (expanded: boolean) => void;
47
+ }
48
+ interface MotionExecutionIsland extends ExecutionIslandView {
49
+ readonly elements: ExecutionIslandElements;
50
+ }
51
+ interface FloatingSurfaceMotionElements {
52
+ readonly execution: ExecutionIslandElements;
53
+ readonly pill: HTMLButtonElement;
54
+ readonly planner: HTMLElement;
55
+ readonly surface: HTMLElement;
56
+ }
57
+ interface FloatingSurfaceMotionController {
58
+ readonly cancel: () => void;
59
+ readonly dispatch: (source: HTMLElement, target: HTMLElement) => void;
60
+ readonly dispose: () => void;
61
+ readonly render: (projection: FloatingSurfaceProjection, renderContent: () => void) => void;
62
+ readonly updateLayout: (updateContent: () => void) => void;
63
+ }
64
+ interface FloatingSurfaceMotionExtension {
65
+ readonly createExecutionIsland: (document: Document) => MotionExecutionIsland;
66
+ readonly createController: (document: Document, elements: FloatingSurfaceMotionElements, reconcile: () => void) => FloatingSurfaceMotionController;
67
+ readonly createStyles: (document: Document) => HTMLStyleElement;
68
+ }
69
+ declare function registerFloatingSurfaceMotionExtension(extension: FloatingSurfaceMotionExtension): void;
70
+ declare function getFloatingSurfaceMotionExtension(): FloatingSurfaceMotionExtension | undefined;
71
+
72
+ export { type FloatingSurfaceMotionElements as F, type MotionExecutionIsland as M, type FloatingSurfaceMotionController as a, type FloatingSurfaceMotionExtension as b, type FloatingSurfaceProjection as c, type FloatingSurfaceScene as d, type FloatingSurfaceTone as e, getFloatingSurfaceMotionExtension as g, registerFloatingSurfaceMotionExtension as r };
package/dist/motion.d.cts CHANGED
@@ -1,73 +1,5 @@
1
- type FloatingSurfaceScene = "pill" | "capturing" | "planner" | "agent-charging" | "handoff" | "running" | "success" | "failed";
2
- type FloatingSurfaceTone = "neutral" | "capturing" | "ready" | "running" | "success" | "danger";
3
- type ExecutionActivityKind = "prepare" | "dispatch" | "discover" | "search" | "read" | "patch" | "check" | "audit" | "apply" | "sync" | "unknown";
4
- interface FloatingSurfaceActivity {
5
- readonly detail?: string;
6
- readonly key: string;
7
- readonly kind: ExecutionActivityKind;
8
- readonly label: string;
9
- readonly state: "active" | "success" | "failure" | "info";
10
- }
11
- interface FloatingSurfaceProjection {
12
- readonly action: string;
13
- readonly activity?: FloatingSurfaceActivity;
14
- readonly expandedAction?: string;
15
- readonly expandedHeadline?: string;
16
- readonly headline: string;
17
- readonly meta: string;
18
- readonly recentActivities: readonly FloatingSurfaceActivity[];
19
- readonly scene: FloatingSurfaceScene;
20
- readonly startedAt?: string;
21
- readonly tone: FloatingSurfaceTone;
22
- }
23
- interface ExecutionIslandElements {
24
- readonly action: HTMLElement;
25
- readonly actionOutgoing: HTMLElement;
26
- readonly content: HTMLElement;
27
- readonly headline: HTMLElement;
28
- readonly headlineOutgoing: HTMLElement;
29
- readonly logo: SVGSVGElement;
30
- readonly mark: HTMLElement;
31
- readonly meta: HTMLElement;
32
- readonly metaDot: HTMLElement;
33
- readonly metaLabel: HTMLElement;
34
- readonly more: HTMLElement;
35
- readonly recent: HTMLElement;
36
- readonly root: HTMLButtonElement;
37
- readonly sweep: HTMLElement;
38
- readonly timer: HTMLElement;
39
- }
40
- interface ExecutionIslandView {
41
- readonly canExpand: () => boolean;
42
- readonly dispose: () => void;
43
- readonly isExpanded: () => boolean;
44
- readonly render: (projection: FloatingSurfaceProjection) => void;
45
- readonly root: HTMLButtonElement;
46
- readonly setExpanded: (expanded: boolean) => void;
47
- }
48
- interface MotionExecutionIsland extends ExecutionIslandView {
49
- readonly elements: ExecutionIslandElements;
50
- }
51
- interface FloatingSurfaceMotionElements {
52
- readonly execution: ExecutionIslandElements;
53
- readonly pill: HTMLButtonElement;
54
- readonly planner: HTMLElement;
55
- readonly surface: HTMLElement;
56
- }
57
- interface FloatingSurfaceMotionController {
58
- readonly cancel: () => void;
59
- readonly dispatch: (source: HTMLElement, target: HTMLElement) => void;
60
- readonly dispose: () => void;
61
- readonly render: (projection: FloatingSurfaceProjection, renderContent: () => void) => void;
62
- readonly updateLayout: (updateContent: () => void) => void;
63
- }
64
- interface FloatingSurfaceMotionExtension {
65
- readonly createExecutionIsland: (document: Document) => MotionExecutionIsland;
66
- readonly createController: (document: Document, elements: FloatingSurfaceMotionElements, reconcile: () => void) => FloatingSurfaceMotionController;
67
- readonly createStyles: (document: Document) => HTMLStyleElement;
68
- }
69
- declare function registerFloatingSurfaceMotionExtension(extension: FloatingSurfaceMotionExtension): void;
70
- declare function getFloatingSurfaceMotionExtension(): FloatingSurfaceMotionExtension | undefined;
1
+ import { M as MotionExecutionIsland, F as FloatingSurfaceMotionElements, a as FloatingSurfaceMotionController } from './motion-extension-contract-B3m26CML.cjs';
2
+ export { b as FloatingSurfaceMotionExtension, c as FloatingSurfaceProjection, d as FloatingSurfaceScene, e as FloatingSurfaceTone, g as getFloatingSurfaceMotionExtension, r as registerFloatingSurfaceMotionExtension } from './motion-extension-contract-B3m26CML.cjs';
71
3
 
72
4
  declare function createExecutionIsland(document: Document, now?: () => number): MotionExecutionIsland;
73
5
 
@@ -76,4 +8,4 @@ declare function createFloatingSurfaceMotionController(document: Document, eleme
76
8
 
77
9
  declare function installFloatingSurfaceMotionExtension(): void;
78
10
 
79
- export { type FloatingSurfaceMotionController, type FloatingSurfaceMotionElements, type FloatingSurfaceMotionExtension, type FloatingSurfaceProjection, type FloatingSurfaceScene, type FloatingSurfaceTone, type MotionExecutionIsland, createExecutionIsland, createFloatingSurfaceMotionController, createFloatingSurfaceMotionStyles, getFloatingSurfaceMotionExtension, installFloatingSurfaceMotionExtension, registerFloatingSurfaceMotionExtension };
11
+ export { FloatingSurfaceMotionController, FloatingSurfaceMotionElements, MotionExecutionIsland, createExecutionIsland, createFloatingSurfaceMotionController, createFloatingSurfaceMotionStyles, installFloatingSurfaceMotionExtension };
package/dist/motion.d.ts CHANGED
@@ -1,73 +1,5 @@
1
- type FloatingSurfaceScene = "pill" | "capturing" | "planner" | "agent-charging" | "handoff" | "running" | "success" | "failed";
2
- type FloatingSurfaceTone = "neutral" | "capturing" | "ready" | "running" | "success" | "danger";
3
- type ExecutionActivityKind = "prepare" | "dispatch" | "discover" | "search" | "read" | "patch" | "check" | "audit" | "apply" | "sync" | "unknown";
4
- interface FloatingSurfaceActivity {
5
- readonly detail?: string;
6
- readonly key: string;
7
- readonly kind: ExecutionActivityKind;
8
- readonly label: string;
9
- readonly state: "active" | "success" | "failure" | "info";
10
- }
11
- interface FloatingSurfaceProjection {
12
- readonly action: string;
13
- readonly activity?: FloatingSurfaceActivity;
14
- readonly expandedAction?: string;
15
- readonly expandedHeadline?: string;
16
- readonly headline: string;
17
- readonly meta: string;
18
- readonly recentActivities: readonly FloatingSurfaceActivity[];
19
- readonly scene: FloatingSurfaceScene;
20
- readonly startedAt?: string;
21
- readonly tone: FloatingSurfaceTone;
22
- }
23
- interface ExecutionIslandElements {
24
- readonly action: HTMLElement;
25
- readonly actionOutgoing: HTMLElement;
26
- readonly content: HTMLElement;
27
- readonly headline: HTMLElement;
28
- readonly headlineOutgoing: HTMLElement;
29
- readonly logo: SVGSVGElement;
30
- readonly mark: HTMLElement;
31
- readonly meta: HTMLElement;
32
- readonly metaDot: HTMLElement;
33
- readonly metaLabel: HTMLElement;
34
- readonly more: HTMLElement;
35
- readonly recent: HTMLElement;
36
- readonly root: HTMLButtonElement;
37
- readonly sweep: HTMLElement;
38
- readonly timer: HTMLElement;
39
- }
40
- interface ExecutionIslandView {
41
- readonly canExpand: () => boolean;
42
- readonly dispose: () => void;
43
- readonly isExpanded: () => boolean;
44
- readonly render: (projection: FloatingSurfaceProjection) => void;
45
- readonly root: HTMLButtonElement;
46
- readonly setExpanded: (expanded: boolean) => void;
47
- }
48
- interface MotionExecutionIsland extends ExecutionIslandView {
49
- readonly elements: ExecutionIslandElements;
50
- }
51
- interface FloatingSurfaceMotionElements {
52
- readonly execution: ExecutionIslandElements;
53
- readonly pill: HTMLButtonElement;
54
- readonly planner: HTMLElement;
55
- readonly surface: HTMLElement;
56
- }
57
- interface FloatingSurfaceMotionController {
58
- readonly cancel: () => void;
59
- readonly dispatch: (source: HTMLElement, target: HTMLElement) => void;
60
- readonly dispose: () => void;
61
- readonly render: (projection: FloatingSurfaceProjection, renderContent: () => void) => void;
62
- readonly updateLayout: (updateContent: () => void) => void;
63
- }
64
- interface FloatingSurfaceMotionExtension {
65
- readonly createExecutionIsland: (document: Document) => MotionExecutionIsland;
66
- readonly createController: (document: Document, elements: FloatingSurfaceMotionElements, reconcile: () => void) => FloatingSurfaceMotionController;
67
- readonly createStyles: (document: Document) => HTMLStyleElement;
68
- }
69
- declare function registerFloatingSurfaceMotionExtension(extension: FloatingSurfaceMotionExtension): void;
70
- declare function getFloatingSurfaceMotionExtension(): FloatingSurfaceMotionExtension | undefined;
1
+ import { M as MotionExecutionIsland, F as FloatingSurfaceMotionElements, a as FloatingSurfaceMotionController } from './motion-extension-contract-B3m26CML.js';
2
+ export { b as FloatingSurfaceMotionExtension, c as FloatingSurfaceProjection, d as FloatingSurfaceScene, e as FloatingSurfaceTone, g as getFloatingSurfaceMotionExtension, r as registerFloatingSurfaceMotionExtension } from './motion-extension-contract-B3m26CML.js';
71
3
 
72
4
  declare function createExecutionIsland(document: Document, now?: () => number): MotionExecutionIsland;
73
5
 
@@ -76,4 +8,4 @@ declare function createFloatingSurfaceMotionController(document: Document, eleme
76
8
 
77
9
  declare function installFloatingSurfaceMotionExtension(): void;
78
10
 
79
- export { type FloatingSurfaceMotionController, type FloatingSurfaceMotionElements, type FloatingSurfaceMotionExtension, type FloatingSurfaceProjection, type FloatingSurfaceScene, type FloatingSurfaceTone, type MotionExecutionIsland, createExecutionIsland, createFloatingSurfaceMotionController, createFloatingSurfaceMotionStyles, getFloatingSurfaceMotionExtension, installFloatingSurfaceMotionExtension, registerFloatingSurfaceMotionExtension };
11
+ export { FloatingSurfaceMotionController, FloatingSurfaceMotionElements, MotionExecutionIsland, createExecutionIsland, createFloatingSurfaceMotionController, createFloatingSurfaceMotionStyles, installFloatingSurfaceMotionExtension };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spotpatch/runtime",
3
- "version": "1.13.0",
3
+ "version": "1.14.0",
4
4
  "description": "Browser runtime, collectors, and Shadow DOM UI for SpotPatch.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -50,6 +50,16 @@
50
50
  "default": "./dist/data-flow.cjs"
51
51
  }
52
52
  },
53
+ "./contextual-ask-panel": {
54
+ "import": {
55
+ "types": "./dist/contextual-ask-panel.d.ts",
56
+ "default": "./dist/contextual-ask-panel.js"
57
+ },
58
+ "require": {
59
+ "types": "./dist/contextual-ask-panel.d.cts",
60
+ "default": "./dist/contextual-ask-panel.cjs"
61
+ }
62
+ },
53
63
  "./data-flow-panel": {
54
64
  "import": {
55
65
  "types": "./dist/data-flow-panel.d.ts",
@@ -83,6 +93,9 @@
83
93
  },
84
94
  "typesVersions": {
85
95
  "*": {
96
+ "contextual-ask-panel": [
97
+ "dist/contextual-ask-panel.d.ts"
98
+ ],
86
99
  "data-flow": [
87
100
  "dist/data-flow.d.ts"
88
101
  ],
@@ -100,7 +113,7 @@
100
113
  "dependencies": {
101
114
  "gsap": "3.15.0",
102
115
  "@spotpatch/react-adapter": "^1.2.0",
103
- "@spotpatch/shared": "^1.12.0"
116
+ "@spotpatch/shared": "^1.13.0"
104
117
  },
105
118
  "publishConfig": {
106
119
  "access": "public",