@sylphx/sdk 0.27.0 → 0.28.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/README.md +47 -2
- package/dist/connect.d.ts +2838 -0
- package/dist/connect.mjs +220 -0
- package/dist/connect.mjs.map +1 -0
- package/dist/index.d.ts +24380 -2217
- package/dist/index.mjs +30821 -2778
- package/dist/index.mjs.map +1 -1
- package/dist/nextjs/index.mjs +29 -26
- package/dist/nextjs/index.mjs.map +1 -1
- package/dist/react/index.d.ts +38 -1140
- package/dist/react/index.mjs +959 -2632
- package/dist/react/index.mjs.map +1 -1
- package/dist/server/index.d.ts +21 -38
- package/dist/server/index.mjs +27 -27
- package/dist/server/index.mjs.map +1 -1
- package/dist/web-analytics.mjs +1 -1
- package/dist/web-analytics.mjs.map +1 -1
- package/package.json +11 -5
- package/dist/tasks.d.ts +0 -1463
- package/dist/tasks.mjs +0 -1907
- package/dist/tasks.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -10,6 +10,12 @@ First-class **external** TypeScript client for Sylphx Platform.
|
|
|
10
10
|
**Wire authority:** Protobuf under `api/proto/sylphx/platform/v1/` (sole).
|
|
11
11
|
Not Effect Schema / `@sylphx/contract`.
|
|
12
12
|
|
|
13
|
+
SDK namespaces and command groups are generated or observed projections. They do
|
|
14
|
+
not create Platform primitives, semantic families, lifecycle authorities, or
|
|
15
|
+
compatibility promises. The target ontology is the four primitives `Resource`,
|
|
16
|
+
`Operation`, `Event`, and `Artifact`, with the seven semantic capability
|
|
17
|
+
families declared by the Platform Constitution.
|
|
18
|
+
|
|
13
19
|
## Install
|
|
14
20
|
|
|
15
21
|
```bash
|
|
@@ -50,11 +56,38 @@ const deps = await mgmt.listDeployments('prj_…')
|
|
|
50
56
|
await mgmt.api('GET', '/projects')
|
|
51
57
|
```
|
|
52
58
|
|
|
59
|
+
## Agent Computer contract projection
|
|
60
|
+
|
|
61
|
+
Agent Computer payloads, HTTP/SSE bindings, validators, and immutable contract
|
|
62
|
+
identity are generated from the management-rooted Protobuf descriptor graph.
|
|
63
|
+
These exports are the typed wire boundary; they do not imply that a live Agent
|
|
64
|
+
Computer runtime is deployed.
|
|
65
|
+
|
|
66
|
+
The contract is lifecycle-based: a caller must authenticate a `ComputerLease`,
|
|
67
|
+
wait for a provider-backed `READY` result, and use the returned evidence for
|
|
68
|
+
observe/act/postcondition decisions. Unsupported or not-yet-proven profiles
|
|
69
|
+
remain typed refusals or non-ready states; the SDK never treats a stale or
|
|
70
|
+
synthetic readiness value as a live computer.
|
|
71
|
+
|
|
72
|
+
```ts
|
|
73
|
+
import {
|
|
74
|
+
AGENT_COMPUTER_BINDINGS,
|
|
75
|
+
AGENT_COMPUTER_CONTRACT_IDENTITY_SHA256,
|
|
76
|
+
AGENT_COMPUTER_CONTRACT_REVISION,
|
|
77
|
+
validateAgentComputerRequest,
|
|
78
|
+
validateAgentComputerResponse,
|
|
79
|
+
} from '@sylphx/sdk'
|
|
80
|
+
|
|
81
|
+
const request = validateAgentComputerRequest('getComputerProfile', {
|
|
82
|
+
profileId: 'profile_…',
|
|
83
|
+
})
|
|
84
|
+
```
|
|
85
|
+
|
|
53
86
|
## Contract identity
|
|
54
87
|
|
|
55
88
|
```ts
|
|
56
|
-
import {
|
|
57
|
-
// sylphx.platform.v1 @ 0.
|
|
89
|
+
import { API_TYPES_CONTRACT_PACKAGE, API_TYPES_CONTRACT_REVISION } from '@sylphx/sdk'
|
|
90
|
+
// sylphx.platform.v1 @ 0.5.0 — same generated identity as Rust sylphx-api-types
|
|
58
91
|
```
|
|
59
92
|
|
|
60
93
|
## CLI
|
|
@@ -80,3 +113,15 @@ npm install @sylphx/sdk
|
|
|
80
113
|
npm install -g @sylphx/cli
|
|
81
114
|
# or: cargo install sylphx-cli
|
|
82
115
|
```
|
|
116
|
+
|
|
117
|
+
## Batch Jobs (Workload Fabric)
|
|
118
|
+
|
|
119
|
+
The current observed SDK surface uses `WorkClient` → `POST /v1/work/container`.
|
|
120
|
+
That namespace and path are projections, not target authority. The constitutional
|
|
121
|
+
target is a typed `BatchJob` Work Resource whose create, cancellation, retry,
|
|
122
|
+
repair, and terminal truth use the common `Operation` contract.
|
|
123
|
+
|
|
124
|
+
Legacy `RunsClient.run`, `runDistributed`, and compatibility-only worker/task
|
|
125
|
+
re-exports are predecessor surfaces. They are not final target contracts and
|
|
126
|
+
must be deleted rather than retained as throwing aliases.
|
|
127
|
+
|