@actiondock/sdk 2.0.0 → 2.0.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.
Files changed (2) hide show
  1. package/README.md +14 -14
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -77,15 +77,15 @@ describe("sample.greet Action", () => {
77
77
 
78
78
  ## Core Capabilities
79
79
 
80
- - **`ActionContext`**:
81
- - `ctx.config`: 5-tier configuration resolution (`CLI > SQLite > Global > ENV > default > fallback`).
82
- - `ctx.state`: Cross-action persistent state store with namespacing (`scope()`) and automatic TTL expiration.
83
- - `ctx.actions`: Action-to-action invocation (`invoke()`) with recursion & cycle detection.
84
- - `ctx.log`: Clean stderr-directed structured logging (keeping stdout clean for JSON envelopes).
85
- - `ctx.signal`: Cooperative `AbortSignal` for graceful timeout and cancellation.
86
- - **`execCli`**: Deadlock-safe, cross-platform synchronous CLI executor with Windows `.cmd` resolution, stdin streaming, timeout, and signal support.
87
- - **`spawnDetached`**: Safe asynchronous launcher for daemon-spawning CLI tools (e.g., `agent-browser open`), preventing pipe EOF hangs via fire-and-forget stdio decoupling and polling probe.
88
- - **`createTestRuntime`**: Fast, zero-dependency in-memory test harness for unit tests.
80
+ - `ActionContext`:
81
+ - `ctx.config`: 5-tier configuration resolution (`override > sqlite > env > default > fallback`)
82
+ - `ctx.state`: Embedded SQLite state store with namespace and TTL support
83
+ - `ctx.actions`: Inter-action invocation with cycle detection
84
+ - `ctx.log`: Isolated logging directed to `stderr`
85
+ - `ctx.signal`: Cooperative cancellation via `AbortSignal`
86
+ - `execCli`: Deadlock-safe, cross-platform synchronous CLI executor with Windows `.cmd` resolution, stdin streaming, timeout, and signal support.
87
+ - `spawnDetached`: Safe asynchronous launcher for daemon-spawning CLI tools (e.g., `agent-browser open`), preventing pipe EOF hangs via fire-and-forget stdio decoupling and polling probe.
88
+ - `createTestRuntime`: Fast, zero-dependency in-memory test harness for unit tests.
89
89
 
90
90
  ---
91
91
 
@@ -108,14 +108,14 @@ describe("sample.greet Action", () => {
108
108
 
109
109
  ## 📖 Documentation
110
110
 
111
- For detailed guides, design principles, and exhaustive API references, see the [ActionDock Documentation Center](https://github.com/team4u/actiondock#readme):
111
+ For detailed guides, design principles, and exhaustive API references, see the [ActionDock Documentation Center](../../docs/README.md):
112
112
 
113
- - [Action SDK API Reference](https://github.com/team4u/actiondock/blob/main/docs/reference/action-api.md)
114
- - [ActionContext Concept](https://github.com/team4u/actiondock/blob/main/docs/concepts/action-context.md)
115
- - [Testing & Verification Guide](https://github.com/team4u/actiondock/blob/main/docs/guides/testing.md)
113
+ - [Action SDK API Reference](../../docs/reference/action-api.md)
114
+ - [ActionContext Concept](../../docs/concepts/action-context.md)
115
+ - [Testing & Verification Guide](../../docs/developer/testing.md)
116
116
 
117
117
  ---
118
118
 
119
119
  ## License
120
120
 
121
- [Apache-2.0](LICENSE) © team4u
121
+ [Apache-2.0](../../LICENSE) © team4u
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@actiondock/sdk",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "ActionDock SDK for defining and testing standalone AI Agent Actions",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",