car-runtime 0.27.0 → 0.28.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 +32 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -644,7 +644,15 @@ export class CarRuntime {
|
|
|
644
644
|
* invoked }` JSON. `maxSubtasks` caps the split (clamped to [1, 10]; null =
|
|
645
645
|
* default 5). With `invoke: true`, each subtask's chosen agent runs.
|
|
646
646
|
*/
|
|
647
|
-
declagentRouteSplit(
|
|
647
|
+
declagentRouteSplit(
|
|
648
|
+
need: string,
|
|
649
|
+
invoke: boolean,
|
|
650
|
+
maxSubtasks?: number | undefined | null,
|
|
651
|
+
decompositionMode?: "vanilla" | "sad" | string | undefined | null,
|
|
652
|
+
sadHints?: number | undefined | null,
|
|
653
|
+
sadIterations?: number | undefined | null,
|
|
654
|
+
sadConvergenceJaccard?: number | undefined | null
|
|
655
|
+
): Promise<string>;
|
|
648
656
|
/**
|
|
649
657
|
* Read-only view of the learned routing topology: per-agent success stats
|
|
650
658
|
* and directed agent→agent edge weights. Returns `{ agents, edges }` JSON.
|
|
@@ -658,6 +666,21 @@ export class CarRuntime {
|
|
|
658
666
|
* null = default 5).
|
|
659
667
|
*/
|
|
660
668
|
discoveryResolve(need: string, limit?: number | undefined | null): Promise<string>;
|
|
669
|
+
/**
|
|
670
|
+
* Compose a decompose/retrieve/plan route over all discoverable services.
|
|
671
|
+
* Returns `{ plan, decomposition, candidates, metadata }` JSON. Planning only;
|
|
672
|
+
* callers invoke returned targets through existing governed surfaces.
|
|
673
|
+
*/
|
|
674
|
+
discoveryRouteCompose(
|
|
675
|
+
need: string,
|
|
676
|
+
maxSubtasks?: number | undefined | null,
|
|
677
|
+
decompositionMode?: "vanilla" | "sad" | string | undefined | null,
|
|
678
|
+
sadHints?: number | undefined | null,
|
|
679
|
+
sadIterations?: number | undefined | null,
|
|
680
|
+
sadConvergenceJaccard?: number | undefined | null,
|
|
681
|
+
candidatesPerStep?: number | undefined | null,
|
|
682
|
+
rerank?: boolean
|
|
683
|
+
): Promise<string>;
|
|
661
684
|
|
|
662
685
|
/**
|
|
663
686
|
* Build a concrete onboarding plan (machine summary, top pick, alternatives,
|
|
@@ -832,6 +855,14 @@ export class CarRuntime {
|
|
|
832
855
|
/** Returns JSON `{exists: boolean, key, service}` without exposing the value. */
|
|
833
856
|
secretStatus(key: string, service?: string | null): string;
|
|
834
857
|
|
|
858
|
+
/**
|
|
859
|
+
* List the NAMES of secrets stored through this surface. Returns JSON
|
|
860
|
+
* `{secrets: [{service, key, exists}]}` — never the values. Backed by the
|
|
861
|
+
* `~/.car/secret_index.json` name index, joined with a live existence check
|
|
862
|
+
* (`exists` is `null` if the backend couldn't be probed).
|
|
863
|
+
*/
|
|
864
|
+
secretList(): string;
|
|
865
|
+
|
|
835
866
|
// -------------------------------------------------------------------------
|
|
836
867
|
// OS permission preflight
|
|
837
868
|
// -------------------------------------------------------------------------
|