@hasna/loops 0.4.1 → 0.4.2
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 +1 -1
- package/dist/api/index.d.ts +8 -2
- package/dist/api/index.js +961 -4
- package/dist/cli/index.js +458 -96
- package/dist/daemon/index.js +48 -14
- package/dist/index.d.ts +2 -0
- package/dist/index.js +740 -52
- package/dist/lib/format.d.ts +3 -1
- package/dist/lib/mode.js +18 -2
- package/dist/lib/route/todos-cli.d.ts +1 -0
- package/dist/lib/route/types.d.ts +10 -0
- package/dist/lib/storage/contract.d.ts +133 -0
- package/dist/lib/storage/contract.js +1 -0
- package/dist/lib/storage/index.d.ts +6 -0
- package/dist/lib/storage/index.js +4612 -0
- package/dist/lib/storage/postgres-schema.d.ts +4 -0
- package/dist/lib/storage/postgres-schema.js +328 -0
- package/dist/lib/storage/postgres.d.ts +22 -0
- package/dist/lib/storage/postgres.js +423 -0
- package/dist/lib/storage/sqlite.d.ts +84 -0
- package/dist/lib/storage/sqlite.js +4187 -0
- package/dist/lib/store.d.ts +3 -0
- package/dist/lib/store.js +27 -10
- package/dist/lib/template-kit.d.ts +10 -8
- package/dist/lib/templates.d.ts +1 -0
- package/dist/mcp/index.js +48 -14
- package/dist/runner/index.d.ts +23 -0
- package/dist/runner/index.js +1746 -4
- package/dist/sdk/index.js +30 -12
- package/docs/DEPLOYMENT_MODES.md +15 -7
- package/package.json +18 -2
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ It supports deterministic command loops, JSON-defined workflows, and guarded CLI
|
|
|
22
22
|
OpenLoops has three deployment modes:
|
|
23
23
|
|
|
24
24
|
- `local`: SQLite in `LOOPS_DATA_DIR` is authoritative and `loops-daemon` executes scheduled work.
|
|
25
|
-
- `self_hosted`: a user-operated `loops-api` control plane contract. This release exposes status
|
|
25
|
+
- `self_hosted`: a user-operated `loops-api` control plane contract. This release exposes status, storage-backed `/v1` loop CRUD and run listing, runner claim/heartbeat/finalize protocol endpoints, and a one-shot `loops-runner run-once` execution path for embedded control-plane hosts; full fleet rollout and migration tooling are follow-up work.
|
|
26
26
|
- `cloud`: a hosted control-plane contract. This release exposes client/runner status only; hosted tenant auth and infrastructure live outside this package.
|
|
27
27
|
|
|
28
28
|
`local` is the default and requires no network, token, Postgres, or hosted
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
+
import type { LoopStorageContract } from "../lib/storage/contract.js";
|
|
2
3
|
export declare function apiStatus(): {
|
|
3
4
|
ok: boolean;
|
|
4
5
|
service: string;
|
|
5
6
|
status: import("../index.js").LoopDeploymentStatus;
|
|
6
7
|
};
|
|
7
|
-
export
|
|
8
|
+
export interface LoopsApiServerOptions {
|
|
8
9
|
host?: string;
|
|
9
10
|
port?: number;
|
|
10
|
-
|
|
11
|
+
storage?: LoopStorageContract;
|
|
12
|
+
bodyLimitBytes?: number;
|
|
13
|
+
evidenceLimitBytes?: number;
|
|
14
|
+
now?: () => Date;
|
|
15
|
+
}
|
|
16
|
+
export declare function createLoopsApiServer(opts?: LoopsApiServerOptions): Bun.Server<undefined>;
|
|
11
17
|
export declare function main(argv?: string[]): Promise<void>;
|