@contractspec/example.agent-console 3.0.0 → 3.2.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.
- package/.turbo/turbo-build.log +3 -3
- package/AGENTS.md +40 -0
- package/CHANGELOG.md +41 -0
- package/package.json +8 -8
package/.turbo/turbo-build.log
CHANGED
|
@@ -3,7 +3,7 @@ $ bun run prebuild && bun run build:bundle && bun run build:types
|
|
|
3
3
|
$ contractspec-bun-build prebuild
|
|
4
4
|
$ contractspec-bun-build transpile
|
|
5
5
|
[contractspec-bun-build] transpile target=bun root=src entries=66
|
|
6
|
-
Bundled 66 modules in
|
|
6
|
+
Bundled 66 modules in 103ms
|
|
7
7
|
|
|
8
8
|
./agent.capability.js 442 bytes (entry point)
|
|
9
9
|
tool/tool.test-spec.js 1.38 KB (entry point)
|
|
@@ -73,7 +73,7 @@ Bundled 66 modules in 99ms
|
|
|
73
73
|
agent/agent.enum.js 467 bytes (entry point)
|
|
74
74
|
|
|
75
75
|
[contractspec-bun-build] transpile target=node root=src entries=66
|
|
76
|
-
Bundled 66 modules in
|
|
76
|
+
Bundled 66 modules in 130ms
|
|
77
77
|
|
|
78
78
|
./agent.capability.js 434 bytes (entry point)
|
|
79
79
|
tool/tool.test-spec.js 1.38 KB (entry point)
|
|
@@ -143,7 +143,7 @@ Bundled 66 modules in 98ms
|
|
|
143
143
|
agent/agent.enum.js 459 bytes (entry point)
|
|
144
144
|
|
|
145
145
|
[contractspec-bun-build] transpile target=browser root=src entries=66
|
|
146
|
-
Bundled 66 modules in
|
|
146
|
+
Bundled 66 modules in 87ms
|
|
147
147
|
|
|
148
148
|
./agent.capability.js 434 bytes (entry point)
|
|
149
149
|
tool/tool.test-spec.js 1.38 KB (entry point)
|
package/AGENTS.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# AI Agent Guide -- `@contractspec/example.agent-console`
|
|
2
|
+
|
|
3
|
+
Scope: `packages/examples/agent-console/*`
|
|
4
|
+
|
|
5
|
+
Demonstrates AI agent orchestration with tools, runs, and execution logs using the ContractSpec spec-first pattern.
|
|
6
|
+
|
|
7
|
+
## Quick Context
|
|
8
|
+
|
|
9
|
+
- **Layer**: example
|
|
10
|
+
- **Related Packages**: `lib.schema`, `lib.contracts-spec`, `lib.example-shared-ui`, `lib.design-system`, `lib.runtime-sandbox`
|
|
11
|
+
|
|
12
|
+
## What This Demonstrates
|
|
13
|
+
|
|
14
|
+
- Agent entity with lifecycle (create, configure, execute)
|
|
15
|
+
- Run tracking with status enums and event-driven state transitions
|
|
16
|
+
- Tool registry with typed schemas and operation handlers
|
|
17
|
+
- Presentation layer with React UI components, hooks, modals, and overlays
|
|
18
|
+
- Markdown and React renderers for multi-surface output
|
|
19
|
+
- Seeders and mock data for demo scenarios
|
|
20
|
+
|
|
21
|
+
## Public Exports
|
|
22
|
+
|
|
23
|
+
- `.` -- root barrel
|
|
24
|
+
- `./agent` -- agent entity, enum, event, handler, operation, presentation, schema, test-spec
|
|
25
|
+
- `./agent.capability`, `./agent.feature` -- capability and feature definitions
|
|
26
|
+
- `./run` -- run entity, enum, event, handler, operation, presentation, schema, test-spec
|
|
27
|
+
- `./tool` -- tool entity, enum, event, handler, operation, presentation, schema, test-spec
|
|
28
|
+
- `./handlers` -- operation handlers
|
|
29
|
+
- `./presentations` -- presentation definitions
|
|
30
|
+
- `./seeders`, `./shared` -- mock data and shared types
|
|
31
|
+
- `./ui` -- React components, hooks, modals, overlays, renderers, views
|
|
32
|
+
- `./docs` -- DocBlock documentation
|
|
33
|
+
- `./example` -- runnable example entry point
|
|
34
|
+
|
|
35
|
+
## Local Commands
|
|
36
|
+
|
|
37
|
+
- Build: `bun run build`
|
|
38
|
+
- Dev: `bun run dev`
|
|
39
|
+
- Test: `bun test`
|
|
40
|
+
- Typecheck: `bun run typecheck`
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
# @contractspec/example.agent-console
|
|
2
2
|
|
|
3
|
+
## 3.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- a281fc5: fix: missing dependencies
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [a281fc5]
|
|
12
|
+
- @contractspec/lib.example-shared-ui@3.2.0
|
|
13
|
+
- @contractspec/lib.runtime-sandbox@2.2.0
|
|
14
|
+
- @contractspec/lib.contracts-spec@3.2.0
|
|
15
|
+
- @contractspec/lib.design-system@3.2.0
|
|
16
|
+
- @contractspec/lib.schema@3.2.0
|
|
17
|
+
|
|
18
|
+
## 3.1.1
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [02c0cc5]
|
|
23
|
+
- @contractspec/lib.contracts-spec@3.1.1
|
|
24
|
+
- @contractspec/lib.design-system@3.1.1
|
|
25
|
+
- @contractspec/lib.example-shared-ui@3.1.1
|
|
26
|
+
|
|
27
|
+
## 3.1.0
|
|
28
|
+
|
|
29
|
+
### Minor Changes
|
|
30
|
+
|
|
31
|
+
- 28987eb: chore: upgrade dependencies
|
|
32
|
+
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- Updated dependencies [f2a4faf]
|
|
36
|
+
- Updated dependencies [28987eb]
|
|
37
|
+
- Updated dependencies [28987eb]
|
|
38
|
+
- @contractspec/lib.contracts-spec@3.1.0
|
|
39
|
+
- @contractspec/lib.example-shared-ui@3.1.0
|
|
40
|
+
- @contractspec/lib.runtime-sandbox@2.1.0
|
|
41
|
+
- @contractspec/lib.design-system@3.1.0
|
|
42
|
+
- @contractspec/lib.schema@3.1.0
|
|
43
|
+
|
|
3
44
|
## 3.0.0
|
|
4
45
|
|
|
5
46
|
### Major Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/example.agent-console",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Agent Console example - AI agent orchestration with tools, runs, and logs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -582,20 +582,20 @@
|
|
|
582
582
|
"typecheck": "tsc --noEmit"
|
|
583
583
|
},
|
|
584
584
|
"dependencies": {
|
|
585
|
-
"@contractspec/lib.schema": "3.
|
|
586
|
-
"@contractspec/lib.contracts-spec": "3.
|
|
587
|
-
"@contractspec/lib.example-shared-ui": "3.
|
|
588
|
-
"@contractspec/lib.design-system": "3.
|
|
589
|
-
"@contractspec/lib.runtime-sandbox": "2.
|
|
585
|
+
"@contractspec/lib.schema": "3.2.0",
|
|
586
|
+
"@contractspec/lib.contracts-spec": "3.2.0",
|
|
587
|
+
"@contractspec/lib.example-shared-ui": "3.2.0",
|
|
588
|
+
"@contractspec/lib.design-system": "3.2.0",
|
|
589
|
+
"@contractspec/lib.runtime-sandbox": "2.2.0",
|
|
590
590
|
"react": "19.2.4",
|
|
591
591
|
"react-dom": "19.2.4"
|
|
592
592
|
},
|
|
593
593
|
"devDependencies": {
|
|
594
|
-
"@contractspec/tool.typescript": "3.
|
|
594
|
+
"@contractspec/tool.typescript": "3.2.0",
|
|
595
595
|
"typescript": "^5.9.3",
|
|
596
596
|
"@types/react": "^19.2.14",
|
|
597
597
|
"@types/react-dom": "^19.2.2",
|
|
598
|
-
"@contractspec/tool.bun": "3.
|
|
598
|
+
"@contractspec/tool.bun": "3.2.0"
|
|
599
599
|
},
|
|
600
600
|
"publishConfig": {
|
|
601
601
|
"exports": {
|