@agent-om/devtools 0.0.0-stage → 0.1.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/LICENSE +64 -0
- package/README.md +116 -2
- package/dist/index.d.ts +9 -0
- package/dist/index.js +2052 -0
- package/dist/panel-CFh-FaQK.d.ts +20 -0
- package/dist/stub.d.ts +4 -0
- package/dist/stub.js +10 -0
- package/package.json +53 -3
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type DevtoolsOptions = {
|
|
2
|
+
/** the corner the button sits in (default bottom-right) */
|
|
3
|
+
corner?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
|
|
4
|
+
/** open the panel at once (default: open or closed as it was last left) */
|
|
5
|
+
open?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Mount it when a browser automation drives the page too (navigator.webdriver: Playwright, Selenium). Off by
|
|
8
|
+
* default, so an agent driving the app through a browser never finds the panel over what it clicks.
|
|
9
|
+
*/
|
|
10
|
+
inAutomation?: boolean;
|
|
11
|
+
/** the page to read (default: this one) */
|
|
12
|
+
document?: Document;
|
|
13
|
+
};
|
|
14
|
+
type Devtools = {
|
|
15
|
+
open(): void;
|
|
16
|
+
close(): void;
|
|
17
|
+
/** take the panel off the page */
|
|
18
|
+
unmount(): void;
|
|
19
|
+
};
|
|
20
|
+
export { DevtoolsOptions as n, Devtools as t };
|
package/dist/stub.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { n as DevtoolsOptions, t as Devtools } from "./panel-CFh-FaQK.js";
|
|
2
|
+
/** What a production build gets: a `mount` that puts nothing on the page (`@agent-om/devtools/production` is the panel). */
|
|
3
|
+
export declare function mount(_options?: DevtoolsOptions): Devtools;
|
|
4
|
+
export type { Devtools, DevtoolsOptions };
|
package/dist/stub.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,56 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-om/devtools",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "A panel for development builds that shows what an AI agent reads from the page: the text sent to the model, the projection behind it, the accessibility tree, and what changed after each action.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"devtools",
|
|
7
|
+
"accessibility",
|
|
8
|
+
"aria",
|
|
9
|
+
"agents",
|
|
10
|
+
"ai-agents",
|
|
11
|
+
"semantic",
|
|
12
|
+
"projection"
|
|
13
|
+
],
|
|
14
|
+
"homepage": "https://github.com/TheAsyncLooop/agent-om/tree/master/packages/devtools#readme",
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/TheAsyncLooop/agent-om/issues"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/TheAsyncLooop/agent-om.git",
|
|
21
|
+
"directory": "packages/devtools"
|
|
22
|
+
},
|
|
23
|
+
"license": "PolyForm-Strict-1.0.0",
|
|
24
|
+
"sideEffects": false,
|
|
25
|
+
"type": "module",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
29
|
+
"development": "./dist/index.js",
|
|
30
|
+
"default": "./dist/stub.js"
|
|
31
|
+
},
|
|
32
|
+
"./production": {
|
|
33
|
+
"types": "./dist/index.d.ts",
|
|
34
|
+
"default": "./dist/index.js"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"files": [
|
|
38
|
+
"dist"
|
|
39
|
+
],
|
|
40
|
+
"peerDependencies": {
|
|
41
|
+
"@agent-om/core": "^0.1.1"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@agent-om/core": "0.1.1",
|
|
45
|
+
"tsdown": "0.23.1"
|
|
46
|
+
},
|
|
47
|
+
"publishConfig": {
|
|
48
|
+
"access": "public"
|
|
49
|
+
},
|
|
50
|
+
"scripts": {
|
|
51
|
+
"build": "tsdown",
|
|
52
|
+
"test": "vitest run",
|
|
53
|
+
"test:watch": "vitest",
|
|
54
|
+
"typecheck": "tsc -p ."
|
|
55
|
+
}
|
|
6
56
|
}
|