car-runtime 0.35.0 → 0.36.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/index.d.ts +49 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -245,6 +245,50 @@ export class CarRuntime {
|
|
|
245
245
|
*/
|
|
246
246
|
buildContextFast(query: string, modelContextWindow?: number | null): string;
|
|
247
247
|
|
|
248
|
+
// --- Proactive memory ---
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Update proactive memory's private progress/risk status.
|
|
252
|
+
* `paramsJson` is `{ body, tenant_id? }`; returns `ProactiveStatus` JSON.
|
|
253
|
+
*/
|
|
254
|
+
memoryUpdateStatus(paramsJson: string): Promise<string>;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Run proactive memory Phase 1 maintenance over recent daemon telemetry.
|
|
258
|
+
* `paramsJson` is `{ max_recent?, tenant_id? }`; returns report JSON.
|
|
259
|
+
*/
|
|
260
|
+
memoryMaintain(paramsJson: string): Promise<string>;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Save durable proactive knowledge.
|
|
264
|
+
* `paramsJson` is `ProactiveMemorySave`; returns saved-entry JSON.
|
|
265
|
+
*/
|
|
266
|
+
memorySaveKnowledge(paramsJson: string): Promise<string>;
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Save durable proactive procedural evidence.
|
|
270
|
+
* `paramsJson` is `ProactiveMemorySave`; returns saved-entry JSON.
|
|
271
|
+
*/
|
|
272
|
+
memorySaveProcedural(paramsJson: string): Promise<string>;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Delete a proactive memory entry by id.
|
|
276
|
+
* `paramsJson` is `{ id }`; returns delete report JSON.
|
|
277
|
+
*/
|
|
278
|
+
memoryDelete(paramsJson: string): Promise<string>;
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Select a targeted proactive memory reminder.
|
|
282
|
+
* `paramsJson` is `ProactiveMemoryRequest`; returns inject/silent JSON.
|
|
283
|
+
*/
|
|
284
|
+
memoryIntervene(paramsJson: string): Promise<string>;
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Evaluate proactive memory against labeled cases and ablation baselines.
|
|
288
|
+
* `paramsJson` is `ProactiveEvaluationRequest`; returns report JSON.
|
|
289
|
+
*/
|
|
290
|
+
memoryEvaluate(paramsJson: string): Promise<string>;
|
|
291
|
+
|
|
248
292
|
/** Run memory consolidation ("dream") pass. Returns a JSON report. */
|
|
249
293
|
consolidate(): string;
|
|
250
294
|
|
|
@@ -765,13 +809,16 @@ export class CarRuntime {
|
|
|
765
809
|
* Start a session: provisions an isolated git worktree of `repo` and
|
|
766
810
|
* derives a verifiable outcome contract from `intent`. `engine` is
|
|
767
811
|
* `"auto" | "native" | "external[:agent_id]"` (default auto). Returns
|
|
768
|
-
* `{session_id, state, engine, worktree, contract}` JSON
|
|
812
|
+
* `{session_id, state, engine, worktree, contract, model}` JSON, where
|
|
813
|
+
* `model` is the effective native-loop pin (per-session `model`, else
|
|
814
|
+
* `~/.car/coder.toml`, else `null` = adaptive routing).
|
|
769
815
|
*/
|
|
770
816
|
coderStart(
|
|
771
817
|
repo: string,
|
|
772
818
|
intent: string,
|
|
773
819
|
engine?: string | undefined | null,
|
|
774
820
|
maxIterations?: number | undefined | null,
|
|
821
|
+
model?: string | undefined | null,
|
|
775
822
|
): Promise<string>;
|
|
776
823
|
|
|
777
824
|
/**
|
|
@@ -2892,7 +2939,7 @@ export function reconcileOsSchedules(): string;
|
|
|
2892
2939
|
/** Schedule a deterministic command on a cadence, hiding the OS backend (#72).
|
|
2893
2940
|
* specJson = { name, program, args?, cadence: { intervalSecs? | cron? },
|
|
2894
2941
|
* durable?, workingDir?, env?, permissionTier? }.
|
|
2895
|
-
* Returns { id, durable, backend: "launchd"|"cron"|"daemon", task }. */
|
|
2942
|
+
* Returns { id, durable, backend: "launchd"|"cron"|"schtasks"|"daemon", task }. */
|
|
2896
2943
|
export function scheduleTask(specJson: string): string;
|
|
2897
2944
|
/** List deterministic (command) scheduled tasks with their resolved backend. */
|
|
2898
2945
|
export function listScheduledTasks(): string;
|