@cybernetyx1/atlasflow-runtime 0.1.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/LICENSE +18 -0
- package/README.md +56 -0
- package/dist/adapter/index.d.ts +1 -0
- package/dist/adapter/index.js +0 -0
- package/dist/channel-Dv3Hv1ee.d.ts +634 -0
- package/dist/chunk-4DU4GJ2X.js +347 -0
- package/dist/chunk-HO6QHSUS.js +85 -0
- package/dist/chunk-M4JW76IL.js +1161 -0
- package/dist/chunk-RF6W3TKJ.js +2762 -0
- package/dist/chunk-S7RZJMCF.js +47 -0
- package/dist/cloudflare/index.d.ts +109 -0
- package/dist/cloudflare/index.js +212 -0
- package/dist/command-kxrqWIH7.d.ts +204 -0
- package/dist/index-UFTgKRK4.d.ts +589 -0
- package/dist/index.d.ts +739 -0
- package/dist/index.js +965 -0
- package/dist/node/index.d.ts +65 -0
- package/dist/node/index.js +251 -0
- package/dist/providers.d.ts +40 -0
- package/dist/providers.js +26 -0
- package/dist/routing/index.d.ts +256 -0
- package/dist/routing/index.js +2184 -0
- package/package.json +68 -0
- package/schemas/persona-manifest.v1.schema.json +258 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
PROPRIETARY SOFTWARE LICENSE
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Cybernetyx. All rights reserved.
|
|
4
|
+
|
|
5
|
+
This software and its source code are the proprietary and confidential property
|
|
6
|
+
of the copyright holder. The software is original work authored independently.
|
|
7
|
+
|
|
8
|
+
No part of this software may be copied, reproduced, modified, published,
|
|
9
|
+
distributed, sublicensed, or sold in any form or by any means without the prior
|
|
10
|
+
written permission of the copyright holder, except as expressly permitted by a
|
|
11
|
+
separate written agreement.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
15
|
+
FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT
|
|
16
|
+
HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
17
|
+
OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE
|
|
18
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# @cybernetyx1/atlasflow-runtime
|
|
2
|
+
|
|
3
|
+
The portable TypeScript runtime and SDK used inside AtlasFlow agent code — define agents, tools, channels, commands, and durable runs.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
pnpm add @cybernetyx1/atlasflow-runtime
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Part of the AtlasFlow monorepo. Proprietary.
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
Define a tool with `defineTool`, then build an agent with `defineAgent` / `createAgent`. Channels (`defineChannel`) receive inbound events, commands (`defineCommand`) expose callable operations, and `invokeAgent` runs an agent durably.
|
|
16
|
+
|
|
17
|
+
Tool parameters are described once as a Valibot schema; the runtime infers the JSON Schema the model needs.
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
import { defineTool, defineAgent } from "@cybernetyx1/atlasflow-runtime";
|
|
21
|
+
import * as v from "valibot";
|
|
22
|
+
|
|
23
|
+
const addTool = defineTool({
|
|
24
|
+
name: "add",
|
|
25
|
+
description: "Add two numbers",
|
|
26
|
+
parameters: v.object({ a: v.number(), b: v.number() }),
|
|
27
|
+
execute({ a, b }) {
|
|
28
|
+
return String(a + b);
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
export const agent = defineAgent({
|
|
33
|
+
name: "calculator",
|
|
34
|
+
instructions: "You add numbers using the add tool.",
|
|
35
|
+
tools: [addTool],
|
|
36
|
+
});
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
```ts
|
|
40
|
+
import { defineChannel, verifySlackRequestSignature } from "@cybernetyx1/atlasflow-runtime";
|
|
41
|
+
|
|
42
|
+
export const slackChannel = defineChannel({
|
|
43
|
+
name: "slack",
|
|
44
|
+
async handle(ctx) {
|
|
45
|
+
const body = await ctx.text();
|
|
46
|
+
// verify the signature, then return a dispatch describing the run to start
|
|
47
|
+
return { continuationToken: "thread-1", agent: "calculator", message: body };
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Other primary entry points: `defineAgentProfile`, `defineCommand`, `defineMemoryConnector`, `defineHttpConnection`, `defineSandbox`, `defineEval`, `personaAgent` / `parsePersonaManifest` (persona compile target), `startWorkflow` / `advanceWorkflow` (authored workflows), `invokeAgent` / `dispatchWorkflow` / `recoverRuns`, `builtinTools`, `connectMcpServer`, `observe` / `EventBus` (events), and persistence adapters (`inMemoryAdapter`, `kvAdapter`). See `src/index.ts` for the full surface.
|
|
53
|
+
|
|
54
|
+
## License
|
|
55
|
+
|
|
56
|
+
Proprietary. © 2026 Cybernetyx. See LICENSE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { d as DurableStreamMessage, r as DurableStreamProducerState, e as DurableStreamProducerTuple, D as DurableStreamRecord, l as DurableStreamSubscriptionAckInput, k as DurableStreamSubscriptionClaim, h as DurableStreamSubscriptionCreateInput, s as DurableStreamSubscriptionError, t as DurableStreamSubscriptionErrorCode, u as DurableStreamSubscriptionLink, v as DurableStreamSubscriptionLinkType, j as DurableStreamSubscriptionRecord, i as DurableStreamSubscriptionResult, w as DurableStreamSubscriptionStatus, m as DurableStreamSubscriptionStreamInfo, y as DurableStreamSubscriptionType, P as PersistenceAdapter, R as RunRecord, a as RunStatus, J as RunStore, S as SessionData, p as SessionStore, c as StreamAppendOptions, b as StreamCreateOptions, f as StreamProducerAppendResult, g as StreamProducerCloseResult, N as StreamProducerResult, Q as StreamStore, V as SubscriptionStore } from '../index-UFTgKRK4.js';
|
|
File without changes
|