rich-parallel-agents 0.1.0 → 0.1.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/dist/cli.js +2 -1
- package/dist/store.d.ts +0 -1
- package/dist/store.js +1 -1
- package/dist/version.d.ts +1 -0
- package/dist/version.js +9 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -17,12 +17,13 @@ import { prepareRun } from "./run.js";
|
|
|
17
17
|
import { installSkill, readSkill } from "./skill.js";
|
|
18
18
|
import { createRun, loadRun, persist, resolveStoreDir, StoreError } from "./store.js";
|
|
19
19
|
import { runChecks, verifyPassed } from "./verify.js";
|
|
20
|
+
import { RPA_VERSION } from "./version.js";
|
|
20
21
|
export async function main(argv = process.argv) {
|
|
21
22
|
const program = new Command();
|
|
22
23
|
program
|
|
23
24
|
.name("rpa")
|
|
24
25
|
.description("Verification gate for orca workers. worker_done is a claim until verify passes.")
|
|
25
|
-
.version(
|
|
26
|
+
.version(RPA_VERSION);
|
|
26
27
|
program
|
|
27
28
|
.command("init")
|
|
28
29
|
.description("Create a run and store verification config")
|
package/dist/store.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { GateError } from "./errors.js";
|
|
2
2
|
import type { EventType, RpaConfig, RunState } from "./types.js";
|
|
3
3
|
export declare const CURRENT_FILE = "current";
|
|
4
|
-
export declare const RPA_VERSION = "0.1.0";
|
|
5
4
|
export type StoreErrorKind = "no-current" | "missing-state" | "unreadable-state" | "malformed-state" | "invalid-state";
|
|
6
5
|
export declare class StoreError extends GateError {
|
|
7
6
|
readonly kind: StoreErrorKind;
|
package/dist/store.js
CHANGED
|
@@ -3,8 +3,8 @@ import path from "node:path";
|
|
|
3
3
|
import { GateError } from "./errors.js";
|
|
4
4
|
import { appendEvent } from "./journal.js";
|
|
5
5
|
import { heartbeat } from "./resources.js";
|
|
6
|
+
import { RPA_VERSION } from "./version.js";
|
|
6
7
|
export const CURRENT_FILE = "current";
|
|
7
|
-
export const RPA_VERSION = "0.1.0";
|
|
8
8
|
export class StoreError extends GateError {
|
|
9
9
|
kind;
|
|
10
10
|
constructor(kind, message) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RPA_VERSION: string;
|
package/dist/version.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { readFileSync } from "node:fs";
|
|
2
|
+
export const RPA_VERSION = readPackageVersion();
|
|
3
|
+
function readPackageVersion() {
|
|
4
|
+
const raw = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8"));
|
|
5
|
+
if (typeof raw.version !== "string" || !raw.version.trim()) {
|
|
6
|
+
throw new Error("package.json has no valid version");
|
|
7
|
+
}
|
|
8
|
+
return raw.version;
|
|
9
|
+
}
|