@jmanuelcorral/openteam 0.17.6 → 0.18.1
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.es.md +4 -4
- package/README.md +4 -4
- package/dist/certificates/graph-release-certificate.json +2 -2
- package/dist/certificates/graph-shadow-certificate.json +2 -2
- package/dist/cli.js +893 -2537
- package/dist/commands/dispatch.d.ts +2 -135
- package/dist/commands/dispatch.d.ts.map +1 -1
- package/dist/config/schema.d.ts +2 -0
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6151 -6398
- package/dist/opencodeArtifacts/orchestratorAgent.d.ts.map +1 -1
- package/dist/orchestrator/coordinator.d.ts +39 -1
- package/dist/orchestrator/coordinator.d.ts.map +1 -1
- package/dist/orchestrator/nodeIteration.d.ts +36 -0
- package/dist/orchestrator/nodeIteration.d.ts.map +1 -0
- package/dist/orchestrator/outputContract.d.ts +117 -0
- package/dist/orchestrator/outputContract.d.ts.map +1 -0
- package/dist/orchestrator/reportArtifactProbe.d.ts +40 -0
- package/dist/orchestrator/reportArtifactProbe.d.ts.map +1 -0
- package/dist/orchestrator/reportArtifactReader.d.ts +36 -0
- package/dist/orchestrator/reportArtifactReader.d.ts.map +1 -0
- package/dist/orchestrator/reportDurability.d.ts +70 -0
- package/dist/orchestrator/reportDurability.d.ts.map +1 -0
- package/dist/orchestrator/subsessions.d.ts +1 -1
- package/dist/orchestrator/subsessions.d.ts.map +1 -1
- package/dist/plugin/orchestrateTool.d.ts +59 -1
- package/dist/plugin/orchestrateTool.d.ts.map +1 -1
- package/dist/telemetry/diagnostics.d.ts +1 -1
- package/dist/telemetry/diagnostics.d.ts.map +1 -1
- package/dist/telemetry/events.d.ts +14 -0
- package/dist/telemetry/events.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/orchestrator/ralphLoop.d.ts +0 -57
- package/dist/orchestrator/ralphLoop.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/telemetry/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,oBAAoB,EAAG,CAAU,CAAC;AAa/C,iEAAiE;AACjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAqB3B,CAAC;AAEH,wEAAwE;AACxE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;kBAc7B,CAAC;AAEH,sEAAsE;AACtE,eAAO,MAAM,mBAAmB;;;;;;;;;;;kBAS9B,CAAC;AAEH,iEAAiE;AACjE,eAAO,MAAM,kBAAkB;;;;;;;;;kBAM7B,CAAC;AAEH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;kBAgB3B,CAAC;AAEH,qEAAqE;AACrE,eAAO,MAAM,mBAAmB;;;;;;;;kBAK9B,CAAC;AAEH,oDAAoD;AACpD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;kBAK9B,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;kBAMrC,CAAC;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;kBActC,CAAC;AAEH
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/telemetry/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,oBAAoB,EAAG,CAAU,CAAC;AAa/C,iEAAiE;AACjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAqB3B,CAAC;AAEH,wEAAwE;AACxE,eAAO,MAAM,kBAAkB;;;;;;;;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AK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,iBAAiB,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jmanuelcorral/openteam",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.1",
|
|
4
4
|
"packageManager": "bun@1.3.14",
|
|
5
5
|
"description": "Cost-aware, local-first routing plugin for opencode with cheapest-capable frontier fallback and multi-agent orchestration.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import type { OpenTeamConfig } from "../config/schema";
|
|
2
|
-
import type { RoutingDecision, TaskSignals } from "../router/types";
|
|
3
|
-
import { type CoordinatorDeps, type RoleTaskResult } from "./coordinator";
|
|
4
|
-
/**
|
|
5
|
-
* W3 ralph loop (#174).
|
|
6
|
-
*
|
|
7
|
-
* Makes the guaranteed `ralph` role a real behaviour rather than an unreachable
|
|
8
|
-
* profile: a bounded iterate-until-done cycle. Each pass dispatches the `ralph`
|
|
9
|
-
* role through the real coordinator ({@link runRoleTask}), so the loop inherits
|
|
10
|
-
* two guarantees for free — the mandatory-local gate (#143), which refuses to run
|
|
11
|
-
* BEFORE the first iteration when no local runtime is reachable and never falls
|
|
12
|
-
* through to a frontier provider, and local-first routing, which keeps every
|
|
13
|
-
* iteration on a local runtime.
|
|
14
|
-
*
|
|
15
|
-
* This module is only loop CONTROL: model/runtime work is the injected coordinator
|
|
16
|
-
* deps, and the done-signal is an injected predicate. Deterministic given its
|
|
17
|
-
* ports — no clock, randomness or direct I/O.
|
|
18
|
-
*/
|
|
19
|
-
/** Canonical roleID of the guaranteed ralph role. */
|
|
20
|
-
export declare const RALPH_ROLE_ID = "ralph";
|
|
21
|
-
/** Default iteration cap so the loop can never spin unbounded. */
|
|
22
|
-
export declare const DEFAULT_RALPH_MAX_ITERATIONS = 10;
|
|
23
|
-
export type RalphLoopInput = {
|
|
24
|
-
readonly task: TaskSignals;
|
|
25
|
-
readonly prompt: string;
|
|
26
|
-
readonly config: OpenTeamConfig;
|
|
27
|
-
readonly parentSessionID?: string;
|
|
28
|
-
/** Iteration cap; defaults to {@link DEFAULT_RALPH_MAX_ITERATIONS}. */
|
|
29
|
-
readonly maxIterations?: number;
|
|
30
|
-
};
|
|
31
|
-
/** Why the loop stopped: the done-signal fired, or the iteration cap was hit. */
|
|
32
|
-
export type RalphLoopTermination = "done" | "cap";
|
|
33
|
-
export type RalphLoopResult = {
|
|
34
|
-
readonly iterations: number;
|
|
35
|
-
readonly termination: RalphLoopTermination;
|
|
36
|
-
readonly decision: RoutingDecision | undefined;
|
|
37
|
-
readonly results: readonly RoleTaskResult[];
|
|
38
|
-
};
|
|
39
|
-
export type RalphLoopDeps = CoordinatorDeps & {
|
|
40
|
-
/**
|
|
41
|
-
* The done-signal predicate (#174). Reads the iteration's subsession result and
|
|
42
|
-
* decides whether the task is finished. Injected so the "fake runtime" that
|
|
43
|
-
* reports done/not-done stays outside the loop control under test.
|
|
44
|
-
*/
|
|
45
|
-
readonly isDone: (result: RoleTaskResult) => boolean;
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* Runs the ralph loop (#174): dispatches the `ralph` role repeatedly until the
|
|
49
|
-
* injected done-signal fires or the iteration cap is reached.
|
|
50
|
-
*
|
|
51
|
-
* On the first pass, {@link runRoleTask} enforces the mandatory-local gate: when
|
|
52
|
-
* no local runtime is reachable it throws before any dispatch, so the loop fails
|
|
53
|
-
* before the first iteration and no model is contacted — the caller sees the
|
|
54
|
-
* thrown, actionable error.
|
|
55
|
-
*/
|
|
56
|
-
export declare function runRalphLoop(input: RalphLoopInput, deps: RalphLoopDeps): Promise<RalphLoopResult>;
|
|
57
|
-
//# sourceMappingURL=ralphLoop.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ralphLoop.d.ts","sourceRoot":"","sources":["../../src/orchestrator/ralphLoop.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACpE,OAAO,EACL,KAAK,eAAe,EAEpB,KAAK,cAAc,EAEpB,MAAM,eAAe,CAAC;AAEvB;;;;;;;;;;;;;;GAcG;AAEH,qDAAqD;AACrD,eAAO,MAAM,aAAa,UAAU,CAAC;AAErC,kEAAkE;AAClE,eAAO,MAAM,4BAA4B,KAAK,CAAC;AAE/C,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;IAChC,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,uEAAuE;IACvE,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACjC,CAAC;AAEF,iFAAi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