@sudobility/sider_types 0.0.6 → 0.0.10
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/actions.d.ts +28 -0
- package/dist/actions.js +18 -1
- package/package.json +21 -21
- package/src/actions.ts +43 -0
package/dist/actions.d.ts
CHANGED
|
@@ -27,3 +27,31 @@ export interface ReadPageResult {
|
|
|
27
27
|
items: ExtractedItem[];
|
|
28
28
|
count: number;
|
|
29
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* Icons a presented list may use.
|
|
32
|
+
*
|
|
33
|
+
* A closed set, not a free string: the panel maps each key to its own glyph, so
|
|
34
|
+
* the model cannot name an icon that does not exist or reach the DOM through it.
|
|
35
|
+
*/
|
|
36
|
+
export declare const PRESENT_LIST_ICONS: readonly ["briefcase", "document", "location", "calendar", "tag", "person", "building", "cart", "star", "search"];
|
|
37
|
+
export type PresentListIcon = (typeof PRESENT_LIST_ICONS)[number];
|
|
38
|
+
/** One row of a presented list. */
|
|
39
|
+
export interface PresentedListItem {
|
|
40
|
+
title: string;
|
|
41
|
+
/** Short scalars shown under the title, e.g. ["Part time", "USF Hilltop Campus"]. */
|
|
42
|
+
meta?: string[];
|
|
43
|
+
/** Absolute URL, or a path resolved against the driven tab's origin. */
|
|
44
|
+
href?: string;
|
|
45
|
+
imageUrl?: string;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* What the agent asks the panel to show.
|
|
49
|
+
*
|
|
50
|
+
* Data only — never markup. The agent decides WHAT matters; the panel decides
|
|
51
|
+
* how it looks.
|
|
52
|
+
*/
|
|
53
|
+
export interface PresentedListSpec {
|
|
54
|
+
title?: string;
|
|
55
|
+
icon?: PresentListIcon;
|
|
56
|
+
items: PresentedListItem[];
|
|
57
|
+
}
|
package/dist/actions.js
CHANGED
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
// Structured results for the three model-facing browser actions (callSiderTool,
|
|
2
2
|
// readPage, siderDomAction). One shape so the agent can aggregate outcomes and
|
|
3
3
|
// report a status summary (e.g. "added 3/5; 2 pre-order only").
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Icons a presented list may use.
|
|
6
|
+
*
|
|
7
|
+
* A closed set, not a free string: the panel maps each key to its own glyph, so
|
|
8
|
+
* the model cannot name an icon that does not exist or reach the DOM through it.
|
|
9
|
+
*/
|
|
10
|
+
export const PRESENT_LIST_ICONS = [
|
|
11
|
+
"briefcase",
|
|
12
|
+
"document",
|
|
13
|
+
"location",
|
|
14
|
+
"calendar",
|
|
15
|
+
"tag",
|
|
16
|
+
"person",
|
|
17
|
+
"building",
|
|
18
|
+
"cart",
|
|
19
|
+
"star",
|
|
20
|
+
"search",
|
|
21
|
+
];
|
package/package.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
2
|
+
"name": "@sudobility/sider_types",
|
|
3
|
+
"version": "0.0.10",
|
|
4
|
+
"description": "Shared domain types for Sider — AI assistance for generic web apps.",
|
|
5
|
+
"license": "BUSL-1.1",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"type": "module",
|
|
10
|
+
"main": "src/index.ts",
|
|
11
|
+
"types": "src/index.ts",
|
|
12
|
+
"files": [
|
|
13
|
+
"src",
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "tsc -p tsconfig.json",
|
|
18
|
+
"typecheck": "tsc --noEmit"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"typescript": "^5.9.3"
|
|
22
|
+
}
|
|
23
23
|
}
|
package/src/actions.ts
CHANGED
|
@@ -41,3 +41,46 @@ export interface ReadPageResult {
|
|
|
41
41
|
items: ExtractedItem[];
|
|
42
42
|
count: number;
|
|
43
43
|
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Icons a presented list may use.
|
|
47
|
+
*
|
|
48
|
+
* A closed set, not a free string: the panel maps each key to its own glyph, so
|
|
49
|
+
* the model cannot name an icon that does not exist or reach the DOM through it.
|
|
50
|
+
*/
|
|
51
|
+
export const PRESENT_LIST_ICONS = [
|
|
52
|
+
"briefcase",
|
|
53
|
+
"document",
|
|
54
|
+
"location",
|
|
55
|
+
"calendar",
|
|
56
|
+
"tag",
|
|
57
|
+
"person",
|
|
58
|
+
"building",
|
|
59
|
+
"cart",
|
|
60
|
+
"star",
|
|
61
|
+
"search",
|
|
62
|
+
] as const;
|
|
63
|
+
|
|
64
|
+
export type PresentListIcon = (typeof PRESENT_LIST_ICONS)[number];
|
|
65
|
+
|
|
66
|
+
/** One row of a presented list. */
|
|
67
|
+
export interface PresentedListItem {
|
|
68
|
+
title: string;
|
|
69
|
+
/** Short scalars shown under the title, e.g. ["Part time", "USF Hilltop Campus"]. */
|
|
70
|
+
meta?: string[];
|
|
71
|
+
/** Absolute URL, or a path resolved against the driven tab's origin. */
|
|
72
|
+
href?: string;
|
|
73
|
+
imageUrl?: string;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* What the agent asks the panel to show.
|
|
78
|
+
*
|
|
79
|
+
* Data only — never markup. The agent decides WHAT matters; the panel decides
|
|
80
|
+
* how it looks.
|
|
81
|
+
*/
|
|
82
|
+
export interface PresentedListSpec {
|
|
83
|
+
title?: string;
|
|
84
|
+
icon?: PresentListIcon;
|
|
85
|
+
items: PresentedListItem[];
|
|
86
|
+
}
|