@contractspec/example.agent-console 3.0.0 → 3.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.
@@ -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 99ms
6
+ Bundled 66 modules in 119ms
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 98ms
76
+ Bundled 66 modules in 95ms
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 92ms
146
+ Bundled 66 modules in 84ms
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,31 @@
1
1
  # @contractspec/example.agent-console
2
2
 
3
+ ## 3.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [02c0cc5]
8
+ - @contractspec/lib.contracts-spec@3.1.1
9
+ - @contractspec/lib.design-system@3.1.1
10
+ - @contractspec/lib.example-shared-ui@3.1.1
11
+
12
+ ## 3.1.0
13
+
14
+ ### Minor Changes
15
+
16
+ - 28987eb: chore: upgrade dependencies
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies [f2a4faf]
21
+ - Updated dependencies [28987eb]
22
+ - Updated dependencies [28987eb]
23
+ - @contractspec/lib.contracts-spec@3.1.0
24
+ - @contractspec/lib.example-shared-ui@3.1.0
25
+ - @contractspec/lib.runtime-sandbox@2.1.0
26
+ - @contractspec/lib.design-system@3.1.0
27
+ - @contractspec/lib.schema@3.1.0
28
+
3
29
  ## 3.0.0
4
30
 
5
31
  ### Major Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/example.agent-console",
3
- "version": "3.0.0",
3
+ "version": "3.1.1",
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.0.0",
586
- "@contractspec/lib.contracts-spec": "3.0.0",
587
- "@contractspec/lib.example-shared-ui": "3.0.0",
588
- "@contractspec/lib.design-system": "3.0.0",
589
- "@contractspec/lib.runtime-sandbox": "2.0.0",
585
+ "@contractspec/lib.schema": "3.1.0",
586
+ "@contractspec/lib.contracts-spec": "3.1.1",
587
+ "@contractspec/lib.example-shared-ui": "3.1.1",
588
+ "@contractspec/lib.design-system": "3.1.1",
589
+ "@contractspec/lib.runtime-sandbox": "2.1.0",
590
590
  "react": "19.2.4",
591
591
  "react-dom": "19.2.4"
592
592
  },
593
593
  "devDependencies": {
594
- "@contractspec/tool.typescript": "3.0.0",
594
+ "@contractspec/tool.typescript": "3.1.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.0.0"
598
+ "@contractspec/tool.bun": "3.1.0"
599
599
  },
600
600
  "publishConfig": {
601
601
  "exports": {