car-runtime 0.32.1 → 0.34.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.
Files changed (2) hide show
  1. package/index.d.ts +30 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -2288,6 +2288,27 @@ export function checkWorkflowPolicies(
2288
2288
  */
2289
2289
  export function checkPlan(requestJson: string): string;
2290
2290
 
2291
+ /**
2292
+ * Deterministic goal-condition evaluation — the Evaluator half of CAR's goal
2293
+ * loop (`docs/proposals/goal-loop.md`), CAR's answer to `/goal`. Decides "am I
2294
+ * done?" over runtime ground truth instead of a model reading its own
2295
+ * transcript.
2296
+ *
2297
+ * `requestJson` is `{ condition, inputs }`. `condition` is a composable
2298
+ * `GoalCondition`: `{ kind: "all_of" | "any_of", conditions: GoalCondition[] }`
2299
+ * or a leaf `{ kind: "tool_receipts_grounded" | "plan_achieved" |
2300
+ * "state_consistent" }` / `{ kind: "state_predicate", key: string, equals: any }`
2301
+ * / `{ kind: "command", id: string, expect_exit: number }` / `{ kind:
2302
+ * "model_judge", id: string }`. `inputs` is the gathered `GoalInputs` `{
2303
+ * receipts_grounded?: boolean, plan_achieved?: boolean, state_consistent?:
2304
+ * boolean, state?: Record<string, any>, command_exits?: Record<string, number>,
2305
+ * model_verdicts?: Record<string, boolean> }`. Returns the `GoalVerdict` JSON
2306
+ * `{ met: boolean, grounded: boolean, reason: string }` — `grounded` is false
2307
+ * iff a met verdict relied on a `model_judge`. A leaf whose input wasn't
2308
+ * gathered fails closed (unmet). Pure.
2309
+ */
2310
+ export function evaluateGoal(requestJson: string): string;
2311
+
2291
2312
  /**
2292
2313
  * Intent-grounded verify-before-commit (arXiv 2601.05755 "VIGIL" — defending
2293
2314
  * against tool stream injection). Flags actions that drift outside the user's
@@ -2868,6 +2889,15 @@ export function listOsSchedules(): string;
2868
2889
  * schedulable. Returns the reconcile report `{ removed, kept, errors }`.
2869
2890
  */
2870
2891
  export function reconcileOsSchedules(): string;
2892
+ /** Schedule a deterministic command on a cadence, hiding the OS backend (#72).
2893
+ * specJson = { name, program, args?, cadence: { intervalSecs? | cron? },
2894
+ * durable?, workingDir?, env?, permissionTier? }.
2895
+ * Returns { id, durable, backend: "launchd"|"cron"|"daemon", task }. */
2896
+ export function scheduleTask(specJson: string): string;
2897
+ /** List deterministic (command) scheduled tasks with their resolved backend. */
2898
+ export function listScheduledTasks(): string;
2899
+ /** Unschedule a deterministic task — remove any OS schedule + delete from the store. */
2900
+ export function unscheduleTask(idOrLabel: string): string;
2871
2901
 
2872
2902
  /** Run a task once using the registered agent runner. */
2873
2903
  export function runTask(taskJson: string): Promise<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "car-runtime",
3
- "version": "0.32.1",
3
+ "version": "0.34.0",
4
4
  "description": "Common Agent Runtime — a deterministic execution layer for AI agents",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",