effect-durable-agent-celld 0.1.0-alpha.4
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 +21 -0
- package/README.md +30 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/package.json +66 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Advait Shinde
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# effect-durable-agent-celld
|
|
2
|
+
|
|
3
|
+
[celld](https://celld.dev/) host for [`effect-durable-agent`](../../README.md).
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
pnpm add effect-durable-agent@alpha effect-durable-agent-celld@alpha
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { EDASessionCell } from "effect-durable-agent-celld";
|
|
11
|
+
|
|
12
|
+
export class AgentSession extends EDASessionCell<Env> {
|
|
13
|
+
constructor(ctx: DurableObjectState, env: Env) {
|
|
14
|
+
super(ctx, env, makeAgentOptions(env));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
celld implements the Cloudflare Workers and Durable Objects API. This package
|
|
20
|
+
therefore uses the same SQLite, alarm, RPC, and hibernatable-WebSocket adapter
|
|
21
|
+
as the Cloudflare host, while providing a celld-specific installation and
|
|
22
|
+
deployment boundary. Deploy the Worker with `celld deploy` and run it against
|
|
23
|
+
an S3-compatible or Google Cloud Storage bucket as described by celld.
|
|
24
|
+
|
|
25
|
+
The supported baseline is celld `v0.2.0`. EDA does not require unsupported
|
|
26
|
+
managed Cloudflare bindings; application tools may still be limited by celld's
|
|
27
|
+
current Workers compatibility surface.
|
|
28
|
+
|
|
29
|
+
The core, Cloudflare adapter dependency, and celld host are published in
|
|
30
|
+
lockstep and must use the same version.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EDASessionDurableObject, EDASessionDurableObjectHost as EDASessionCellHost, EDASessionDurableObjectOptions, EDASessionDurableObjectOptions as EDASessionCellOptions, EDASessionDurableObjectStorage as EDASessionCellStorage, edaRuntimeConfig, encodeEdaRpcCommand, encodeEdaRpcSubmittables, makeEDADurableObjectOpenAiModelLayer as makeEDACelldOpenAiModelLayer } from "effect-durable-agent-cloudflare";
|
|
2
|
+
|
|
3
|
+
//#region src/index.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* One EDA session hosted as a celld cell.
|
|
6
|
+
*
|
|
7
|
+
* celld implements the Workers Durable Objects contract, so this class shares
|
|
8
|
+
* the production adapter with Cloudflare while keeping deployment choice at a
|
|
9
|
+
* package boundary.
|
|
10
|
+
*/
|
|
11
|
+
declare abstract class EDASessionCell<EnvType extends object = object> extends EDASessionDurableObject<EnvType> {
|
|
12
|
+
protected constructor(ctx: DurableObjectState, env: EnvType, options: EDASessionDurableObjectOptions);
|
|
13
|
+
}
|
|
14
|
+
/** Resolve a celld session cell by its stable domain session id. */
|
|
15
|
+
declare const getEDASessionCellByName: <T extends EDASessionCell<object>>(namespace: DurableObjectNamespace<T>, sessionId: string) => DurableObjectStub<T>;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { EDASessionCell, EDASessionCellHost, type EDASessionCellOptions, type EDASessionCellStorage, edaRuntimeConfig, encodeEdaRpcCommand, encodeEdaRpcSubmittables, getEDASessionCellByName, makeEDACelldOpenAiModelLayer };
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EDASessionDurableObject, EDASessionDurableObjectHost as EDASessionCellHost, edaRuntimeConfig, encodeEdaRpcCommand, encodeEdaRpcSubmittables, makeEDADurableObjectOpenAiModelLayer as makeEDACelldOpenAiModelLayer } from "effect-durable-agent-cloudflare";
|
|
2
|
+
//#region src/index.ts
|
|
3
|
+
/**
|
|
4
|
+
* One EDA session hosted as a celld cell.
|
|
5
|
+
*
|
|
6
|
+
* celld implements the Workers Durable Objects contract, so this class shares
|
|
7
|
+
* the production adapter with Cloudflare while keeping deployment choice at a
|
|
8
|
+
* package boundary.
|
|
9
|
+
*/
|
|
10
|
+
var EDASessionCell = class extends EDASessionDurableObject {
|
|
11
|
+
constructor(ctx, env, options) {
|
|
12
|
+
super(ctx, env, options);
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
/** Resolve a celld session cell by its stable domain session id. */
|
|
16
|
+
const getEDASessionCellByName = (namespace, sessionId) => namespace.getByName(sessionId);
|
|
17
|
+
//#endregion
|
|
18
|
+
export { EDASessionCell, EDASessionCellHost, edaRuntimeConfig, encodeEdaRpcCommand, encodeEdaRpcSubmittables, getEDASessionCellByName, makeEDACelldOpenAiModelLayer };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import {\n EDASessionDurableObject,\n type EDASessionDurableObjectOptions,\n} from \"effect-durable-agent-cloudflare\";\n\n/**\n * One EDA session hosted as a celld cell.\n *\n * celld implements the Workers Durable Objects contract, so this class shares\n * the production adapter with Cloudflare while keeping deployment choice at a\n * package boundary.\n */\nexport abstract class EDASessionCell<\n EnvType extends object = object,\n> extends EDASessionDurableObject<EnvType> {\n protected constructor(\n ctx: DurableObjectState,\n env: EnvType,\n options: EDASessionDurableObjectOptions,\n ) {\n super(ctx, env, options);\n }\n}\n\n/** Resolve a celld session cell by its stable domain session id. */\nexport const getEDASessionCellByName = <T extends EDASessionCell<object>>(\n namespace: DurableObjectNamespace<T>,\n sessionId: string,\n): DurableObjectStub<T> => namespace.getByName(sessionId);\n\nexport {\n edaRuntimeConfig,\n encodeEdaRpcCommand,\n encodeEdaRpcSubmittables,\n makeEDADurableObjectOpenAiModelLayer as makeEDACelldOpenAiModelLayer,\n EDASessionDurableObjectHost as EDASessionCellHost,\n type EDASessionDurableObjectOptions as EDASessionCellOptions,\n type EDASessionDurableObjectStorage as EDASessionCellStorage,\n} from \"effect-durable-agent-cloudflare\";\n"],"mappings":";;;;;;;;;AAYA,IAAsB,iBAAtB,cAEU,wBAAiC;CACzC,YACE,KACA,KACA,SACA;EACA,MAAM,KAAK,KAAK,OAAO;CACzB;AACF;;AAGA,MAAa,2BACX,WACA,cACyB,UAAU,UAAU,SAAS"}
|
package/package.json
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "effect-durable-agent-celld",
|
|
3
|
+
"version": "0.1.0-alpha.4",
|
|
4
|
+
"description": "celld host for effect-durable-agent.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"agents",
|
|
7
|
+
"celld",
|
|
8
|
+
"durable-objects",
|
|
9
|
+
"effect",
|
|
10
|
+
"event-sourcing"
|
|
11
|
+
],
|
|
12
|
+
"homepage": "https://github.com/advait/effect-durable-agent#readme",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/advait/effect-durable-agent/issues"
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/advait/effect-durable-agent.git",
|
|
19
|
+
"directory": "packages/celld"
|
|
20
|
+
},
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"author": "Advait Shinde",
|
|
23
|
+
"type": "module",
|
|
24
|
+
"sideEffects": false,
|
|
25
|
+
"main": "./dist/index.js",
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
27
|
+
"files": [
|
|
28
|
+
"dist",
|
|
29
|
+
"README.md"
|
|
30
|
+
],
|
|
31
|
+
"exports": {
|
|
32
|
+
".": {
|
|
33
|
+
"types": "./dist/index.d.ts",
|
|
34
|
+
"import": "./dist/index.js"
|
|
35
|
+
},
|
|
36
|
+
"./package.json": "./package.json"
|
|
37
|
+
},
|
|
38
|
+
"publishConfig": {
|
|
39
|
+
"access": "public",
|
|
40
|
+
"registry": "https://registry.npmjs.org/",
|
|
41
|
+
"tag": "alpha"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"effect-durable-agent": "0.1.0-alpha.4",
|
|
45
|
+
"effect-durable-agent-cloudflare": "0.1.0-alpha.4"
|
|
46
|
+
},
|
|
47
|
+
"peerDependencies": {
|
|
48
|
+
"@effect/ai-openai": "4.0.0-beta.102",
|
|
49
|
+
"effect": "4.0.0-beta.102"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@cloudflare/workers-types": "5.20260813.1",
|
|
53
|
+
"@effect/ai-openai": "4.0.0-beta.102",
|
|
54
|
+
"effect": "4.0.0-beta.102",
|
|
55
|
+
"vite-plus": "^0.1.21",
|
|
56
|
+
"vitest": "^4.1.8"
|
|
57
|
+
},
|
|
58
|
+
"scripts": {
|
|
59
|
+
"build": "vp pack",
|
|
60
|
+
"check": "pnpm run lint && pnpm run typecheck",
|
|
61
|
+
"lint": "vp fmt --check src package.json tsconfig.json vite.config.ts && vp lint --deny-warnings src vite.config.ts",
|
|
62
|
+
"lint:fix": "vp fmt src package.json tsconfig.json vite.config.ts && vp lint --fix src vite.config.ts",
|
|
63
|
+
"test": "vp test run --passWithNoTests",
|
|
64
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
65
|
+
}
|
|
66
|
+
}
|