@restatedev/agents 0.8.0 → 0.9.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 CHANGED
@@ -70,12 +70,12 @@ served([...]), port })`. `RESTATE_SERVE_ONLY=triage,planner` serves only
70
70
  the services it names, each agent with its companion, so that one program
71
71
  (or image) deploys in parts.
72
72
 
73
- With `RESTATE_CONNECT_KEY` set, `serve` connects out to Restate Cloud
74
- instead of listening, under `RESTATE_CONNECT_NAME` (the deployment you
75
- register, `connect://<name>`), with each agent's companion beside it as
76
- ever. Reach for the SDK's own `restate.connect` only with `served([...])`:
77
- on its own it binds the agents without their companions, and the first
78
- tool that waits has nothing to wait on.
73
+ On Restate Cloud, where the program connects out rather than being called
74
+ in, use this package's `connect` (@restatedev/sessions'):
75
+ `connect({ services: [assistant], name: 'assistant-v1' })` brings each
76
+ agent's companion as `serve` does. The Restate SDK's own `connect` does
77
+ not: it binds the agents alone, and the first tool that waits has nothing
78
+ to wait on.
79
79
 
80
80
  ## Choose a framework
81
81
 
package/dist/index.d.ts CHANGED
@@ -4,11 +4,11 @@ export { COMPANION_SUFFIX, companionOf, deliver, type Companion, type Resolved,
4
4
  export { call, send, signal, subagent, tool, workflow, type Tool, type ToolCall, type ToolContext } from './tools.ts';
5
5
  export { webhook, webhookMessage, type WebhookAuth, type WebhookEvent, type WebhookOptions } from './webhook.ts';
6
6
  /**
7
- * @restatedev/sessions' `serve`: the services on PORT, or connected out to
8
- * Restate Cloud where RESTATE_CONNECT_KEY is set, either way with what they
9
- * need beside them (each agent's companion); and `served`, those services,
10
- * for an endpoint of your own (`restate.endpoint()`), or for the SDK's own
11
- * `restate.connect`, which without it leaves the companions unserved.
7
+ * @restatedev/sessions' `serve`: the services on PORT, with what they need
8
+ * beside them (each agent's companion); `connect`, the same for Restate
9
+ * Cloud, where the SDK's own `connect` would leave the companions out; and
10
+ * `served`, those services, for an endpoint of your own
11
+ * (`restate.endpoint()`).
12
12
  */
13
- export { serve, served } from '@restatedev/sessions';
13
+ export { connect, serve, served } from '@restatedev/sessions';
14
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,SAAS,EACT,WAAW,EACX,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,eAAe,EACpB,KAAK,IAAI,EACT,OAAO,EACP,KAAK,SAAS,EACd,UAAU,EACV,KAAK,SAAS,GACf,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,aAAa,EAAE,KAAK,MAAM,EAAE,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AACvE,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,OAAO,EACP,KAAK,SAAS,EACd,KAAK,QAAQ,EACb,KAAK,MAAM,EACX,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,OAAO,GACb,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AACtH,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAEjH;;;;;;GAMG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,SAAS,EACT,WAAW,EACX,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,eAAe,EACpB,KAAK,IAAI,EACT,OAAO,EACP,KAAK,SAAS,EACd,UAAU,EACV,KAAK,SAAS,GACf,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,aAAa,EAAE,KAAK,MAAM,EAAE,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AACvE,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,OAAO,EACP,KAAK,SAAS,EACd,KAAK,QAAQ,EACb,KAAK,MAAM,EACX,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,OAAO,GACb,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AACtH,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAEjH;;;;;;GAMG;AACH,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC"}
package/dist/index.js CHANGED
@@ -7,11 +7,11 @@ export { COMPANION_SUFFIX, companionOf, deliver, } from './companion.js';
7
7
  export { call, send, signal, subagent, tool, workflow } from './tools.js';
8
8
  export { webhook, webhookMessage } from './webhook.js';
9
9
  /**
10
- * @restatedev/sessions' `serve`: the services on PORT, or connected out to
11
- * Restate Cloud where RESTATE_CONNECT_KEY is set, either way with what they
12
- * need beside them (each agent's companion); and `served`, those services,
13
- * for an endpoint of your own (`restate.endpoint()`), or for the SDK's own
14
- * `restate.connect`, which without it leaves the companions unserved.
10
+ * @restatedev/sessions' `serve`: the services on PORT, with what they need
11
+ * beside them (each agent's companion); `connect`, the same for Restate
12
+ * Cloud, where the SDK's own `connect` would leave the companions out; and
13
+ * `served`, those services, for an endpoint of your own
14
+ * (`restate.endpoint()`).
15
15
  */
16
- export { serve, served } from '@restatedev/sessions';
16
+ export { connect, serve, served } from '@restatedev/sessions';
17
17
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,kJAAkJ;AAClJ,sDAAsD;AAEtD,OAAO,EAGL,SAAS,EACT,WAAW,EAKX,OAAO,EAEP,UAAU,GAEX,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,aAAa,EAA6B,MAAM,aAAa,CAAC;AACvE,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,OAAO,GAOR,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAA8C,MAAM,YAAY,CAAC;AACtH,OAAO,EAAE,OAAO,EAAE,cAAc,EAA4D,MAAM,cAAc,CAAC;AAEjH;;;;;;GAMG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,kJAAkJ;AAClJ,sDAAsD;AAEtD,OAAO,EAGL,SAAS,EACT,WAAW,EAKX,OAAO,EAEP,UAAU,GAEX,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,aAAa,EAA6B,MAAM,aAAa,CAAC;AACvE,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,OAAO,GAOR,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAA8C,MAAM,YAAY,CAAC;AACtH,OAAO,EAAE,OAAO,EAAE,cAAc,EAA4D,MAAM,cAAc,CAAC;AAEjH;;;;;;GAMG;AACH,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@restatedev/agents",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Agent frameworks in Restate virtual objects, their state in the object's SQL database: pi, OpenCode, LangGraph, Claude (Anthropic SDK) and DeepSeek Harness; and agentlib, journaled",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -118,7 +118,7 @@
118
118
  "@restatedev/agentlib": "0.1.0",
119
119
  "@restatedev/restate-sdk": "1.18.2",
120
120
  "@restatedev/restate-sdk-gen": "1.18.2",
121
- "@restatedev/sessions": "0.8.0",
121
+ "@restatedev/sessions": "0.9.0",
122
122
  "effect": "4.1.0",
123
123
  "zod": "4.6.7"
124
124
  },
@@ -159,7 +159,7 @@
159
159
  "@opencode/server": "2.2.7",
160
160
  "@restatedev/agentlib": "~0.1.0",
161
161
  "@restatedev/restate-sdk-gen": "1.18.2",
162
- "@restatedev/sessions": "^0.8.0",
162
+ "@restatedev/sessions": "^0.9.0",
163
163
  "effect": "4.1.0",
164
164
  "zod": "^4.6.7"
165
165
  },
package/src/index.ts CHANGED
@@ -32,10 +32,10 @@ export { call, send, signal, subagent, tool, workflow, type Tool, type ToolCall,
32
32
  export { webhook, webhookMessage, type WebhookAuth, type WebhookEvent, type WebhookOptions } from './webhook.ts';
33
33
 
34
34
  /**
35
- * @restatedev/sessions' `serve`: the services on PORT, or connected out to
36
- * Restate Cloud where RESTATE_CONNECT_KEY is set, either way with what they
37
- * need beside them (each agent's companion); and `served`, those services,
38
- * for an endpoint of your own (`restate.endpoint()`), or for the SDK's own
39
- * `restate.connect`, which without it leaves the companions unserved.
35
+ * @restatedev/sessions' `serve`: the services on PORT, with what they need
36
+ * beside them (each agent's companion); `connect`, the same for Restate
37
+ * Cloud, where the SDK's own `connect` would leave the companions out; and
38
+ * `served`, those services, for an endpoint of your own
39
+ * (`restate.endpoint()`).
40
40
  */
41
- export { serve, served } from '@restatedev/sessions';
41
+ export { connect, serve, served } from '@restatedev/sessions';