supertag-ai 0.3.0 → 0.3.3
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 +28 -11
- package/dist/{artifact_pb-LXdVhblQ.d.ts → artifact_pb-Vz26fEqo.d.ts} +2618 -354
- package/dist/chunk-KKEKTIDZ.js +96 -0
- package/dist/chunk-KKEKTIDZ.js.map +1 -0
- package/dist/gateway-client.d.ts +1345 -0
- package/dist/gateway-client.js +683 -0
- package/dist/gateway-client.js.map +1 -0
- package/dist/harness.d.ts +107 -80
- package/dist/harness.js +15 -9
- package/dist/harness.js.map +1 -1
- package/package.json +7 -7
- package/dist/chunk-NZ3QQNB3.js +0 -74
- package/dist/chunk-NZ3QQNB3.js.map +0 -1
- package/dist/control-plane-client.d.ts +0 -890
- package/dist/control-plane-client.js +0 -162
- package/dist/control-plane-client.js.map +0 -1
package/README.md
CHANGED
|
@@ -2,30 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
**TypeScript SDK for SuperTag.**
|
|
4
4
|
|
|
5
|
-
SuperTag runs persistent AI actors for engineering work. A **Tag** is a persistent AI actor with a
|
|
5
|
+
SuperTag runs persistent, proactive, multiplayer AI actors for engineering work. A **Tag** is a persistent AI actor with a
|
|
6
6
|
stable identity, responsibilities, permissions, and work history; it runs its work on the coding
|
|
7
|
-
agents you already use. The `supertag` CLI, the Control Plane, the Gateway, and
|
|
8
|
-
native programs; see the
|
|
7
|
+
agents you already use. The `supertag` CLI, the Control Plane, the Gateway, and the Worklet that
|
|
8
|
+
connects each Worker Host are native programs; see the
|
|
9
9
|
[installation guide](https://github.com/atemaguer/supertag/blob/main/docs/operations/install.md).
|
|
10
10
|
|
|
11
11
|
This package is the TypeScript SDK. It has two entry points:
|
|
12
12
|
|
|
13
|
-
- `supertag-ai/
|
|
14
|
-
to a SuperTag
|
|
13
|
+
- `supertag-ai/gateway-client`: `createGatewayClient` connects an operator application
|
|
14
|
+
to a SuperTag Gateway over gRPC. It negotiates the SuperTag protocol version before its
|
|
15
15
|
first call and names it on every call.
|
|
16
|
-
- `supertag-ai/harness`: `openHarness` reads the execution bootstrap a
|
|
17
|
-
harness adapter's standard input and connects to the
|
|
18
|
-
that one Task, including Worker-managed effect receipts.
|
|
16
|
+
- `supertag-ai/harness`: `openHarness` reads the execution bootstrap a Worklet writes to a
|
|
17
|
+
harness adapter's standard input and connects to the Worklet's private harness service for
|
|
18
|
+
that one Task, including Worker-managed effect receipts. Each event an adapter publishes names
|
|
19
|
+
its `TaskEventKind`: a whole message, an activity line, or a plan.
|
|
19
20
|
|
|
20
21
|
```sh
|
|
21
22
|
npm install supertag-ai
|
|
22
23
|
```
|
|
23
24
|
|
|
24
25
|
```ts
|
|
25
|
-
import {
|
|
26
|
+
import { createGatewayClient } from "supertag-ai/gateway-client";
|
|
26
27
|
|
|
27
|
-
const client =
|
|
28
|
-
url: "https://
|
|
28
|
+
const client = createGatewayClient({
|
|
29
|
+
url: "https://gateway.example.com",
|
|
29
30
|
token: process.env.SUPERTAG_OPERATOR_TOKEN!,
|
|
30
31
|
});
|
|
31
32
|
try {
|
|
@@ -36,6 +37,22 @@ try {
|
|
|
36
37
|
}
|
|
37
38
|
```
|
|
38
39
|
|
|
40
|
+
The URL is an `https://` origin, a loopback `http://` origin, or a WebSocket tunnel URL: `wss://`,
|
|
41
|
+
or loopback `ws://`, with an optional path. A tunnel carries the same gRPC connection for hosts
|
|
42
|
+
whose proxy forwards only HTTP/1.1, and the Gateway's own TLS runs end to end inside a `wss://`
|
|
43
|
+
tunnel. The token is an operator token, Operator Token, enrolled credential, or Auth Key. Where
|
|
44
|
+
Node.js can read them (`tls.getCACertificates`), the client trusts the operating system's
|
|
45
|
+
certificate authorities as well as Node.js's own; pass `ca` for a Gateway with a private
|
|
46
|
+
certificate. Connecting times out after 5 seconds, or 30 through a tunnel; `connectTimeoutMs`
|
|
47
|
+
changes it.
|
|
48
|
+
|
|
49
|
+
Besides the operator services, the client has `enrollments` (`whoAmI`, and `enroll` with an
|
|
50
|
+
Auth Key), `memories`, `networkLogs`, `schedules`, and `taskFiles`. A Gateway from a SuperTag
|
|
51
|
+
release that speaks none of this client's protocol versions (`PROTOCOL_VERSIONS`) rejects every
|
|
52
|
+
call with `ProtocolMismatchError`, whose `peerVersions` and `peerBuild` name the Gateway's
|
|
53
|
+
release when it gave them. `client.negotiate()` checks this without sending the token, and
|
|
54
|
+
`buildVersion` names your application's release to the Gateway.
|
|
55
|
+
|
|
39
56
|
Use Node.js 22.13.0 or newer. SuperTag is below version 1.0; the
|
|
40
57
|
[API stability policy](https://github.com/atemaguer/supertag/blob/main/docs/reference/api-stability.md)
|
|
41
58
|
describes compatibility.
|