@agentage/extension-probe 0.1.0 → 0.2.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/README.md +58 -25
- package/dist/agentage-extension.json +35 -5
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +10 -3
- package/dist/cli/index.d.ts +4 -0
- package/dist/cli/index.js +11 -0
- package/dist/lib/ticks.d.ts +17 -0
- package/dist/lib/ticks.js +32 -0
- package/dist/mcp/index.d.ts +2 -0
- package/dist/mcp/index.js +10 -0
- package/dist/pages/index.d.ts +2 -0
- package/dist/pages/index.js +3 -0
- package/dist/ui/harness.html +38 -0
- package/dist/ui/harness.js +1 -0
- package/dist/ui/probe.js +11 -0
- package/dist/ui/widgets.json +7 -0
- package/dist/worker/index.d.ts +2 -0
- package/dist/worker/index.js +10 -0
- package/migrations/001-ticks.sql +6 -0
- package/package.json +54 -11
- /package/dist/{api → lib}/echo.schema.d.ts +0 -0
- /package/dist/{api → lib}/echo.schema.js +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {} from '@agentage/extension';
|
|
2
|
+
// Every minute one tick into the store; the kit never runs it twice at once and saves each run.
|
|
3
|
+
export function create({ schedule, store, log }) {
|
|
4
|
+
schedule('tick', '* * * * *', async () => {
|
|
5
|
+
const { rows } = await store.query('insert into ticks (job) values ($1) returning id', [
|
|
6
|
+
'tick',
|
|
7
|
+
]);
|
|
8
|
+
log.info(`tick ${String(rows[0]?.['id'])}`);
|
|
9
|
+
}, { timeout: '30s' });
|
|
10
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
-- migrations/001-ticks.sql: applied in order by the api image's `migrate` entry, as a job before the rollout
|
|
2
|
+
create table if not exists ticks (
|
|
3
|
+
id bigint generated always as identity primary key,
|
|
4
|
+
job text not null,
|
|
5
|
+
ticked_at timestamptz not null default now()
|
|
6
|
+
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentage/extension-probe",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "The probe extension: one of every agentage part kind, the template every later extension copies",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,57 +17,100 @@
|
|
|
17
17
|
},
|
|
18
18
|
"engines": {
|
|
19
19
|
"node": ">=22",
|
|
20
|
-
"agentage": "^0.
|
|
20
|
+
"agentage": "^0.2"
|
|
21
21
|
},
|
|
22
22
|
"agentage": {
|
|
23
23
|
"id": "probe",
|
|
24
24
|
"parts": {
|
|
25
|
-
"
|
|
25
|
+
"pages": true,
|
|
26
|
+
"ui": true,
|
|
27
|
+
"api": true,
|
|
28
|
+
"mcp": true,
|
|
29
|
+
"worker": true,
|
|
30
|
+
"cli": true,
|
|
31
|
+
"store": "postgres"
|
|
32
|
+
},
|
|
33
|
+
"commands": [
|
|
34
|
+
{
|
|
35
|
+
"name": "ping",
|
|
36
|
+
"summary": "answer pong",
|
|
37
|
+
"args": [
|
|
38
|
+
{
|
|
39
|
+
"name": "msg",
|
|
40
|
+
"type": "string",
|
|
41
|
+
"optional": true
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"settings": {
|
|
47
|
+
"mcp.listing": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"enum": [
|
|
50
|
+
"open",
|
|
51
|
+
"token"
|
|
52
|
+
],
|
|
53
|
+
"default": "open"
|
|
54
|
+
}
|
|
26
55
|
}
|
|
27
56
|
},
|
|
28
57
|
"exports": {
|
|
29
|
-
"./api": {
|
|
30
|
-
"types": "./dist/api/index.d.ts",
|
|
31
|
-
"default": "./dist/api/index.js"
|
|
32
|
-
},
|
|
33
58
|
"./agentage-extension.json": "./dist/agentage-extension.json",
|
|
34
59
|
"./package.json": "./package.json"
|
|
35
60
|
},
|
|
36
61
|
"files": [
|
|
37
62
|
"dist",
|
|
63
|
+
"migrations",
|
|
38
64
|
"!dist/**/*.test.*"
|
|
39
65
|
],
|
|
40
66
|
"scripts": {
|
|
41
|
-
"build": "tsc -p tsconfig.build.json",
|
|
42
|
-
"type-check": "tsc --noEmit",
|
|
67
|
+
"build": "tsc -p tsconfig.build.json && agentage-widget bundle",
|
|
68
|
+
"type-check": "tsc --noEmit -p tsconfig.eslint.json",
|
|
43
69
|
"lint": "eslint .",
|
|
44
70
|
"format": "prettier --write .",
|
|
45
71
|
"format:check": "prettier --check .",
|
|
46
72
|
"test": "vitest run",
|
|
47
73
|
"test:coverage": "vitest run --coverage",
|
|
74
|
+
"test:e2e": "playwright test --config=e2e/playwright.config.ts",
|
|
48
75
|
"verify": "npm run type-check && npm run lint && npm run format:check && npm run test:coverage && npm run build",
|
|
49
76
|
"prepublishOnly": "npm run verify"
|
|
50
77
|
},
|
|
51
78
|
"dependencies": {
|
|
52
|
-
"@agentage/extension": "^0.1
|
|
79
|
+
"@agentage/extension": "^0.2.1",
|
|
53
80
|
"express": "^5.1.0",
|
|
54
81
|
"zod": "^4.2.0"
|
|
55
82
|
},
|
|
56
83
|
"devDependencies": {
|
|
84
|
+
"@agentage/cli": "0.41.0",
|
|
85
|
+
"@agentage/widget": "^0.1.1",
|
|
86
|
+
"@axe-core/playwright": "4.14.0",
|
|
87
|
+
"@electric-sql/pglite": "0.5.15",
|
|
88
|
+
"@playwright/test": "1.64.1",
|
|
57
89
|
"@types/express": "5.0.6",
|
|
58
90
|
"@types/node": "26.6.5",
|
|
91
|
+
"@types/react": "19.3.0",
|
|
59
92
|
"@typescript-eslint/eslint-plugin": "8.72.1",
|
|
60
93
|
"@typescript-eslint/parser": "8.72.1",
|
|
61
94
|
"@vitest/coverage-v8": "5.0.5",
|
|
62
95
|
"eslint": "10.13.0",
|
|
63
96
|
"eslint-config-prettier": "10.1.8",
|
|
97
|
+
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
98
|
+
"eslint-plugin-playwright": "2.12.2",
|
|
64
99
|
"eslint-plugin-prettier": "5.5.7",
|
|
100
|
+
"eslint-plugin-react-hooks": "7.1.1",
|
|
65
101
|
"prettier": "3.9.10",
|
|
102
|
+
"react": "19.3.1",
|
|
103
|
+
"react-dom": "19.3.1",
|
|
66
104
|
"typescript": "6.0.3",
|
|
67
105
|
"vitest": "5.0.5"
|
|
68
106
|
},
|
|
69
107
|
"keywords": [
|
|
70
108
|
"agentage",
|
|
71
109
|
"agentage-extension"
|
|
72
|
-
]
|
|
110
|
+
],
|
|
111
|
+
"overrides": {
|
|
112
|
+
"eslint-plugin-jsx-a11y": {
|
|
113
|
+
"eslint": "$eslint"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
73
116
|
}
|
|
File without changes
|
|
File without changes
|