@robota-sdk/agent-transport-http 3.0.0-beta.43 → 3.0.0-beta.44
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/package.json +2 -2
- package/dist/node/index.d.cts +0 -31
- package/dist/node/index.d.ts +0 -31
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robota-sdk/agent-transport-http",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.44",
|
|
4
4
|
"description": "HTTP transport adapter for exposing InteractiveSession over REST API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/node/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"hono": "^4.7.0",
|
|
26
|
-
"@robota-sdk/agent-sdk": "3.0.0-beta.
|
|
26
|
+
"@robota-sdk/agent-sdk": "3.0.0-beta.44"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"rimraf": "^5.0.5",
|
package/dist/node/index.d.cts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Context, Hono } from 'hono';
|
|
2
|
-
import { InteractiveSession, SystemCommandExecutor } from '@robota-sdk/agent-sdk';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* HTTP transport adapter — exposes InteractiveSession over REST API.
|
|
6
|
-
*
|
|
7
|
-
* Built on Hono for Cloudflare Workers + Node.js + AWS Lambda compatibility.
|
|
8
|
-
* Each endpoint maps 1:1 to an InteractiveSession or SystemCommandExecutor API.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/** Callback that resolves an InteractiveSession from the request context. */
|
|
12
|
-
type ISessionFactory = (c: Context) => InteractiveSession | Promise<InteractiveSession>;
|
|
13
|
-
interface IAgentRoutesOptions {
|
|
14
|
-
/** Resolve an InteractiveSession per request (e.g., by auth token, session ID). */
|
|
15
|
-
sessionFactory: ISessionFactory;
|
|
16
|
-
/** System command executor. */
|
|
17
|
-
commandExecutor: SystemCommandExecutor;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Create a Hono router with all agent HTTP endpoints.
|
|
21
|
-
*
|
|
22
|
-
* Usage:
|
|
23
|
-
* ```typescript
|
|
24
|
-
* const routes = createAgentRoutes({ sessionFactory, commandExecutor });
|
|
25
|
-
* app.route('/agent', routes); // mount on existing app
|
|
26
|
-
* export default routes; // or use standalone (CF Workers)
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
declare function createAgentRoutes(options: IAgentRoutesOptions): Hono;
|
|
30
|
-
|
|
31
|
-
export { type IAgentRoutesOptions, type ISessionFactory, createAgentRoutes };
|
package/dist/node/index.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Context, Hono } from 'hono';
|
|
2
|
-
import { InteractiveSession, SystemCommandExecutor } from '@robota-sdk/agent-sdk';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* HTTP transport adapter — exposes InteractiveSession over REST API.
|
|
6
|
-
*
|
|
7
|
-
* Built on Hono for Cloudflare Workers + Node.js + AWS Lambda compatibility.
|
|
8
|
-
* Each endpoint maps 1:1 to an InteractiveSession or SystemCommandExecutor API.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/** Callback that resolves an InteractiveSession from the request context. */
|
|
12
|
-
type ISessionFactory = (c: Context) => InteractiveSession | Promise<InteractiveSession>;
|
|
13
|
-
interface IAgentRoutesOptions {
|
|
14
|
-
/** Resolve an InteractiveSession per request (e.g., by auth token, session ID). */
|
|
15
|
-
sessionFactory: ISessionFactory;
|
|
16
|
-
/** System command executor. */
|
|
17
|
-
commandExecutor: SystemCommandExecutor;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Create a Hono router with all agent HTTP endpoints.
|
|
21
|
-
*
|
|
22
|
-
* Usage:
|
|
23
|
-
* ```typescript
|
|
24
|
-
* const routes = createAgentRoutes({ sessionFactory, commandExecutor });
|
|
25
|
-
* app.route('/agent', routes); // mount on existing app
|
|
26
|
-
* export default routes; // or use standalone (CF Workers)
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
declare function createAgentRoutes(options: IAgentRoutesOptions): Hono;
|
|
30
|
-
|
|
31
|
-
export { type IAgentRoutesOptions, type ISessionFactory, createAgentRoutes };
|