@ikenga/contract 0.4.0 → 0.5.1
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/browser.d.ts +624 -0
- package/dist/browser.d.ts.map +1 -0
- package/dist/browser.js +264 -0
- package/dist/browser.js.map +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/registry.d.ts +2258 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +92 -0
- package/dist/registry.js.map +1 -0
- package/package.json +9 -1
- package/schemas/registry/index-v1.json +54 -0
- package/schemas/registry/pkg-detail-v1.json +655 -0
- package/src/browser.test.ts +350 -0
- package/src/browser.ts +364 -0
- package/src/index.ts +3 -1
- package/src/registry.ts +108 -0
package/dist/browser.js
ADDED
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
// pkg-browser MCP I/O types.
|
|
2
|
+
//
|
|
3
|
+
// Shared by the `@ikenga/mcp-browser` MCP server (which exposes these as
|
|
4
|
+
// tool inputs/outputs to Claude), the shell's `/iyke/browser/*` HTTP
|
|
5
|
+
// handlers (which validate them on the wire), and any other client that
|
|
6
|
+
// drives a child-webview pane.
|
|
7
|
+
//
|
|
8
|
+
// Pane addressing: the MCP server allocates `b1, b2, …` ids on `open()`
|
|
9
|
+
// and maps them internally to the kernel's `(pkg_id, pane_id)` pair. The
|
|
10
|
+
// kernel identifiers stay private; agents only see `bN`.
|
|
11
|
+
//
|
|
12
|
+
// Element refs: a snapshot returns opaque `e0, e1, …` refs that map to
|
|
13
|
+
// live DOM nodes inside the child webview. Refs invalidate on the next
|
|
14
|
+
// snapshot or page navigation — the same convention used by Iyke's
|
|
15
|
+
// `iyke_dom` so a model that knows one drives the other.
|
|
16
|
+
//
|
|
17
|
+
// This module is intentionally Zod-only (no separate JSON Schema export).
|
|
18
|
+
// Consumers that need JSON Schema can call `zodToJsonSchema()` themselves;
|
|
19
|
+
// the schema generator under `scripts/generate-schemas.mjs` does not need
|
|
20
|
+
// to know about browser tools.
|
|
21
|
+
import { z } from 'zod';
|
|
22
|
+
// ---------- Brands ----------
|
|
23
|
+
/** Pattern for pane ids allocated by the MCP server. */
|
|
24
|
+
export const BROWSER_PANE_ID_PATTERN = /^b[1-9]\d*$/;
|
|
25
|
+
/** Pattern for element refs returned by a snapshot. */
|
|
26
|
+
export const BROWSER_REF_PATTERN = /^e\d+$/;
|
|
27
|
+
export const BrowserPaneIdSchema = z
|
|
28
|
+
.string()
|
|
29
|
+
.regex(BROWSER_PANE_ID_PATTERN, 'must match /^b[1-9]\\d*$/ (e.g. "b1", "b42")')
|
|
30
|
+
.brand();
|
|
31
|
+
export const BrowserRefSchema = z
|
|
32
|
+
.string()
|
|
33
|
+
.regex(BROWSER_REF_PATTERN, 'must match /^e\\d+$/ (e.g. "e0", "e12")')
|
|
34
|
+
.brand();
|
|
35
|
+
// ---------- Snapshot ----------
|
|
36
|
+
//
|
|
37
|
+
// Mirrors the shape of Iyke's `DomResult` so models can move between the
|
|
38
|
+
// two MCPs without re-learning the format. `text` is the Playwright-style
|
|
39
|
+
// plaintext tree; `nodes` is the structured form keyed by ref.
|
|
40
|
+
export const BrowserSnapshotNodeSchema = z.object({
|
|
41
|
+
ref: BrowserRefSchema,
|
|
42
|
+
role: z.string(),
|
|
43
|
+
/** Accessible name (label, alt text, innerText, etc.). */
|
|
44
|
+
name: z.string().optional(),
|
|
45
|
+
/** Current value for inputs / selects / textareas. */
|
|
46
|
+
value: z.string().optional(),
|
|
47
|
+
/** Best-effort tag name for non-ARIA debugging. */
|
|
48
|
+
tag: z.string().optional(),
|
|
49
|
+
/** Truthy iff `checked`/`aria-checked` is set on a checkbox/radio. */
|
|
50
|
+
checked: z.boolean().optional(),
|
|
51
|
+
/** Truthy iff the element is `disabled`/`aria-disabled`. */
|
|
52
|
+
disabled: z.boolean().optional(),
|
|
53
|
+
/** Truthy iff `aria-expanded === "true"`. */
|
|
54
|
+
expanded: z.boolean().optional(),
|
|
55
|
+
/** Truthy iff `aria-selected === "true"`. */
|
|
56
|
+
selected: z.boolean().optional(),
|
|
57
|
+
/** Hidden / aria-hidden / display:none. Always set when `all=true`. */
|
|
58
|
+
hidden: z.boolean().optional(),
|
|
59
|
+
/** Refs of direct children, in document order. Omitted on leaves. */
|
|
60
|
+
children: z.array(BrowserRefSchema).optional(),
|
|
61
|
+
});
|
|
62
|
+
export const BrowserSnapshotSchema = z.object({
|
|
63
|
+
id: BrowserPaneIdSchema,
|
|
64
|
+
url: z.string(),
|
|
65
|
+
title: z.string(),
|
|
66
|
+
/** Playwright-style accessibility tree, ref-annotated. */
|
|
67
|
+
text: z.string(),
|
|
68
|
+
/** Flat list keyed by ref. The first entry is the document root. */
|
|
69
|
+
nodes: z.array(BrowserSnapshotNodeSchema),
|
|
70
|
+
/** Monotonic counter for this pane; used to detect stale refs. */
|
|
71
|
+
snapshotId: z.number().int().nonnegative(),
|
|
72
|
+
});
|
|
73
|
+
// ---------- Pane lifecycle ----------
|
|
74
|
+
const RectSchema = z.object({
|
|
75
|
+
x: z.number().int(),
|
|
76
|
+
y: z.number().int(),
|
|
77
|
+
w: z.number().int().positive(),
|
|
78
|
+
h: z.number().int().positive(),
|
|
79
|
+
});
|
|
80
|
+
export const BrowserOpenInputSchema = z
|
|
81
|
+
.object({
|
|
82
|
+
url: z.string().url(),
|
|
83
|
+
/**
|
|
84
|
+
* Named cookie/storage jar slug. Must be declared in the pkg manifest's
|
|
85
|
+
* `capabilities.webview.partitions` unless it's `"default"`. Mutually
|
|
86
|
+
* exclusive with `session`.
|
|
87
|
+
*/
|
|
88
|
+
partition: z.string().optional(),
|
|
89
|
+
/**
|
|
90
|
+
* Named-session handle (see {@link BrowserSessionSchema}). The MCP
|
|
91
|
+
* server resolves this to a partition before calling the shell, so
|
|
92
|
+
* multiple sessions can share an underlying partition if the caller
|
|
93
|
+
* declared it that way at create time.
|
|
94
|
+
*/
|
|
95
|
+
session: z.string().optional(),
|
|
96
|
+
/**
|
|
97
|
+
* Optional initial rect in main-window-client coordinates. Omitted when
|
|
98
|
+
* the FE owns layout (the kernel will refuse without a rect; the MCP
|
|
99
|
+
* layer is expected to supply a sane default if the caller didn't).
|
|
100
|
+
*/
|
|
101
|
+
rect: RectSchema.optional(),
|
|
102
|
+
})
|
|
103
|
+
.refine((v) => !(v.partition && v.session), {
|
|
104
|
+
message: 'pass at most one of `partition` / `session`',
|
|
105
|
+
});
|
|
106
|
+
export const BrowserOpenResultSchema = z.object({
|
|
107
|
+
id: BrowserPaneIdSchema,
|
|
108
|
+
url: z.string(),
|
|
109
|
+
partition: z.string(),
|
|
110
|
+
});
|
|
111
|
+
export const BrowserPaneIdInputSchema = z.object({ id: BrowserPaneIdSchema });
|
|
112
|
+
export const BrowserOkResultSchema = z.object({ ok: z.literal(true) });
|
|
113
|
+
export const BrowserListEntrySchema = z.object({
|
|
114
|
+
id: BrowserPaneIdSchema,
|
|
115
|
+
url: z.string(),
|
|
116
|
+
partition: z.string(),
|
|
117
|
+
focused: z.boolean(),
|
|
118
|
+
});
|
|
119
|
+
export const BrowserListResultSchema = z.object({
|
|
120
|
+
panes: z.array(BrowserListEntrySchema),
|
|
121
|
+
});
|
|
122
|
+
// ---------- Navigation ----------
|
|
123
|
+
export const BrowserGotoInputSchema = z.object({
|
|
124
|
+
id: BrowserPaneIdSchema,
|
|
125
|
+
url: z.string().url(),
|
|
126
|
+
});
|
|
127
|
+
export const BrowserNavResultSchema = z.object({
|
|
128
|
+
id: BrowserPaneIdSchema,
|
|
129
|
+
url: z.string(),
|
|
130
|
+
});
|
|
131
|
+
// ---------- Inspection ----------
|
|
132
|
+
export const BrowserSnapshotInputSchema = z.object({
|
|
133
|
+
id: BrowserPaneIdSchema,
|
|
134
|
+
/** Substring filter against role/name/value. */
|
|
135
|
+
query: z.string().optional(),
|
|
136
|
+
/** Include hidden + aria-hidden elements. */
|
|
137
|
+
all: z.boolean().optional(),
|
|
138
|
+
});
|
|
139
|
+
export const BrowserReadTextInputSchema = z.object({
|
|
140
|
+
id: BrowserPaneIdSchema,
|
|
141
|
+
ref: BrowserRefSchema,
|
|
142
|
+
});
|
|
143
|
+
export const BrowserReadTextResultSchema = z.object({
|
|
144
|
+
text: z.string(),
|
|
145
|
+
});
|
|
146
|
+
export const BrowserScreenshotInputSchema = z.object({
|
|
147
|
+
id: BrowserPaneIdSchema,
|
|
148
|
+
/** Override default output path (`~/.local/share/ikenga/screenshots/…`). */
|
|
149
|
+
out_path: z.string().optional(),
|
|
150
|
+
});
|
|
151
|
+
export const BrowserScreenshotResultSchema = z.object({
|
|
152
|
+
path: z.string(),
|
|
153
|
+
width: z.number().int().positive(),
|
|
154
|
+
height: z.number().int().positive(),
|
|
155
|
+
bytes: z.number().int().nonnegative(),
|
|
156
|
+
});
|
|
157
|
+
// ---------- Interaction ----------
|
|
158
|
+
//
|
|
159
|
+
// `click` / `fill` / `select` / `press_key` all accept either a `ref` (from
|
|
160
|
+
// a prior snapshot, most reliable), a CSS `selector`, or — for `click` —
|
|
161
|
+
// an innerText `text` match. The MCP server enforces exactly-one; the
|
|
162
|
+
// schema accepts any combination so the validator can return a clearer
|
|
163
|
+
// error message than Zod's `refine` would.
|
|
164
|
+
const InteractionTargetFields = {
|
|
165
|
+
ref: BrowserRefSchema.optional(),
|
|
166
|
+
selector: z.string().optional(),
|
|
167
|
+
};
|
|
168
|
+
export const BrowserClickInputSchema = z.object({
|
|
169
|
+
id: BrowserPaneIdSchema,
|
|
170
|
+
...InteractionTargetFields,
|
|
171
|
+
/** innerText substring match. Lower-priority than ref/selector. */
|
|
172
|
+
text: z.string().optional(),
|
|
173
|
+
});
|
|
174
|
+
export const BrowserFillInputSchema = z.object({
|
|
175
|
+
id: BrowserPaneIdSchema,
|
|
176
|
+
...InteractionTargetFields,
|
|
177
|
+
text: z.string(),
|
|
178
|
+
/** Default false (append). True overwrites the existing value. */
|
|
179
|
+
replace: z.boolean().optional(),
|
|
180
|
+
});
|
|
181
|
+
export const BrowserSelectInputSchema = z.object({
|
|
182
|
+
id: BrowserPaneIdSchema,
|
|
183
|
+
...InteractionTargetFields,
|
|
184
|
+
/** Option `value` attribute (preferred) or visible label. */
|
|
185
|
+
value: z.string(),
|
|
186
|
+
});
|
|
187
|
+
export const BrowserPressKeyInputSchema = z.object({
|
|
188
|
+
id: BrowserPaneIdSchema,
|
|
189
|
+
...InteractionTargetFields,
|
|
190
|
+
/** Key combo, e.g. "Enter", "Escape", "Ctrl+S", "Meta+K", "Shift+Tab". */
|
|
191
|
+
combo: z.string(),
|
|
192
|
+
});
|
|
193
|
+
// ---------- wait_for ----------
|
|
194
|
+
export const BROWSER_WAIT_FOR_KINDS = [
|
|
195
|
+
'url',
|
|
196
|
+
'ref',
|
|
197
|
+
'text',
|
|
198
|
+
'gone-text',
|
|
199
|
+
'selector',
|
|
200
|
+
'gone-selector',
|
|
201
|
+
'idle',
|
|
202
|
+
];
|
|
203
|
+
export const BrowserWaitForInputSchema = z.object({
|
|
204
|
+
id: BrowserPaneIdSchema,
|
|
205
|
+
kind: z.enum(BROWSER_WAIT_FOR_KINDS),
|
|
206
|
+
/**
|
|
207
|
+
* Predicate value. Required for `url`/`ref`/`text`; ignored for `idle`.
|
|
208
|
+
* - `url`: substring match against `location.href`.
|
|
209
|
+
* - `ref`: wait for an element with this ref to appear in the next
|
|
210
|
+
* snapshot (i.e. snapshot is re-taken until the ref exists).
|
|
211
|
+
* - `text`: substring match against the snapshot's rendered text.
|
|
212
|
+
*/
|
|
213
|
+
value: z.string().optional(),
|
|
214
|
+
/** Default 10_000ms; clamped to [100, 60_000] by the server. */
|
|
215
|
+
timeout_ms: z.number().int().min(100).max(60_000).optional(),
|
|
216
|
+
});
|
|
217
|
+
export const BrowserWaitForResultSchema = z.object({
|
|
218
|
+
satisfied: z.boolean(),
|
|
219
|
+
elapsed_ms: z.number().int().nonnegative(),
|
|
220
|
+
message: z.string().optional(),
|
|
221
|
+
});
|
|
222
|
+
// ---------- eval (escape hatch) ----------
|
|
223
|
+
//
|
|
224
|
+
// Not surfaced through the MCP tool list by default; exposed only for the
|
|
225
|
+
// pkg-browser MCP's own internal scripting (a11y snapshot injection,
|
|
226
|
+
// console hooks). FE / Tauri-IPC callers never see this.
|
|
227
|
+
export const BrowserEvalInputSchema = z.object({
|
|
228
|
+
id: BrowserPaneIdSchema,
|
|
229
|
+
/**
|
|
230
|
+
* JavaScript source to evaluate in the child webview's page context.
|
|
231
|
+
* Fire-and-forget at the kernel layer; the caller is expected to ferry
|
|
232
|
+
* results back via a known callback shape if needed.
|
|
233
|
+
*/
|
|
234
|
+
script: z.string(),
|
|
235
|
+
});
|
|
236
|
+
// ---------- Named sessions (Phase 4) ----------
|
|
237
|
+
//
|
|
238
|
+
// A session is a human-friendly handle for a cookie/storage partition. The
|
|
239
|
+
// kernel's on-disk partition data is the source of truth; this table just
|
|
240
|
+
// maps `(pkg_id, name) → partition`. Deleting a session preserves the
|
|
241
|
+
// partition data — a future create with the same partition slug picks
|
|
242
|
+
// the cookies back up.
|
|
243
|
+
//
|
|
244
|
+
// Timestamps are unix milliseconds (integers), matching the shell's
|
|
245
|
+
// SQLite-backed storage. JSON callers should treat them as opaque ints.
|
|
246
|
+
export const BrowserSessionSchema = z.object({
|
|
247
|
+
pkg_id: z.string(),
|
|
248
|
+
name: z.string().min(1).max(64),
|
|
249
|
+
partition: z.string(),
|
|
250
|
+
created_at: z.number().int().nonnegative(),
|
|
251
|
+
last_used_at: z.number().int().nonnegative().nullable().optional(),
|
|
252
|
+
});
|
|
253
|
+
export const BrowserSessionCreateInputSchema = z.object({
|
|
254
|
+
name: z.string().min(1).max(64),
|
|
255
|
+
/** Defaults to a sanitized form of `name` if omitted. */
|
|
256
|
+
partition: z.string().optional(),
|
|
257
|
+
});
|
|
258
|
+
export const BrowserSessionDeleteInputSchema = z.object({
|
|
259
|
+
name: z.string().min(1).max(64),
|
|
260
|
+
});
|
|
261
|
+
export const BrowserSessionListResultSchema = z.object({
|
|
262
|
+
sessions: z.array(BrowserSessionSchema),
|
|
263
|
+
});
|
|
264
|
+
//# sourceMappingURL=browser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,EAAE;AACF,yEAAyE;AACzE,qEAAqE;AACrE,wEAAwE;AACxE,+BAA+B;AAC/B,EAAE;AACF,wEAAwE;AACxE,yEAAyE;AACzE,yDAAyD;AACzD,EAAE;AACF,uEAAuE;AACvE,uEAAuE;AACvE,mEAAmE;AACnE,yDAAyD;AACzD,EAAE;AACF,0EAA0E;AAC1E,2EAA2E;AAC3E,0EAA0E;AAC1E,+BAA+B;AAE/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,+BAA+B;AAE/B,wDAAwD;AACxD,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CAAC;AAErD,uDAAuD;AACvD,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CAAC;AAE5C,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC;KACjC,MAAM,EAAE;KACR,KAAK,CAAC,uBAAuB,EAAE,8CAA8C,CAAC;KAC9E,KAAK,EAAmB,CAAC;AAI5B,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC;KAC9B,MAAM,EAAE;KACR,KAAK,CAAC,mBAAmB,EAAE,yCAAyC,CAAC;KACrE,KAAK,EAAgB,CAAC;AAIzB,iCAAiC;AACjC,EAAE;AACF,yEAAyE;AACzE,0EAA0E;AAC1E,+DAA+D;AAE/D,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,GAAG,EAAE,gBAAgB;IACrB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,0DAA0D;IAC1D,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,sDAAsD;IACtD,KAAK,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KAAK,CAAC,oBAAoB,CAAC;CACxC,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ export * from './engine.js';
|
|
|
4
4
|
export * from './scopes.js';
|
|
5
5
|
export * from './iyke.js';
|
|
6
6
|
export * from './artifact.js';
|
|
7
|
+
export * from './registry.js';
|
|
8
|
+
export * from './browser.js';
|
|
7
9
|
/** This package's own version. */
|
|
8
|
-
export declare const CONTRACT_PACKAGE_VERSION: "0.
|
|
10
|
+
export declare const CONTRACT_PACKAGE_VERSION: "0.5.0";
|
|
9
11
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAE7B,kCAAkC;AAClC,eAAO,MAAM,wBAAwB,EAAG,OAAgB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -4,6 +4,8 @@ export * from './engine.js';
|
|
|
4
4
|
export * from './scopes.js';
|
|
5
5
|
export * from './iyke.js';
|
|
6
6
|
export * from './artifact.js';
|
|
7
|
+
export * from './registry.js';
|
|
8
|
+
export * from './browser.js';
|
|
7
9
|
/** This package's own version. */
|
|
8
|
-
export const CONTRACT_PACKAGE_VERSION = '0.
|
|
10
|
+
export const CONTRACT_PACKAGE_VERSION = '0.5.0';
|
|
9
11
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAE7B,kCAAkC;AAClC,MAAM,CAAC,MAAM,wBAAwB,GAAG,OAAgB,CAAC"}
|