@jmanuelcorral/openteam 0.16.0 → 0.16.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 CHANGED
@@ -824,7 +824,7 @@ Consulta [docs/compatibility.md](docs/compatibility.md). Resumen verificado el `
824
824
 
825
825
  | Superficie | Versión / contrato |
826
826
  | --- | --- |
827
- | openteam | `0.16.0`; versión actual del paquete |
827
+ | openteam | `0.16.1`; versión actual del paquete |
828
828
  | `@opencode-ai/plugin` | `1.18.19` |
829
829
  | `@opencode-ai/sdk` | `1.18.19` |
830
830
  | Hook de routing | `chat.message`; no `chat.params` para cambiar modelo |
package/README.md CHANGED
@@ -713,7 +713,7 @@ See [docs/compatibility.md](docs/compatibility.md). Verified summary as of `2026
713
713
 
714
714
  | Surface | Version / contract |
715
715
  | --- | --- |
716
- | openteam | `0.16.0`; current package version |
716
+ | openteam | `0.16.1`; current package version |
717
717
  | `@opencode-ai/plugin` | `1.18.19` |
718
718
  | `@opencode-ai/sdk` | `1.18.19` |
719
719
  | Routing hook | `chat.message`; not `chat.params` for model changes |
@@ -1,5 +1,5 @@
1
- import type { GraphOperatorDeps } from "../commands/dispatch";
2
- import type { GraphGateResult } from "../config/graphFeatureGate";
1
+ import type { CutoverGateEvaluation, GraphOperatorDeps } from "../commands/dispatch";
2
+ import { type OpenTeamConfig } from "../config/schema";
3
3
  import type { NodeExecutor } from "../graph/langgraph/types";
4
4
  import type { ExecLike } from "../local/foundry-local";
5
5
  import type { StorageProvider } from "../storage/provider";
@@ -9,7 +9,7 @@ type GraphOperatorFactoryOptions = {
9
9
  readonly exec?: ExecLike;
10
10
  readonly repoRoot?: string;
11
11
  readonly worktreesDir?: string;
12
- readonly evaluateCutoverGate?: () => Promise<GraphGateResult>;
12
+ readonly evaluateCutoverGate?: (config: OpenTeamConfig) => Promise<CutoverGateEvaluation>;
13
13
  /**
14
14
  * Dispatch port for the LangGraph engine (W4-S03, #177). Only consumed when
15
15
  * `graph.engine` is `langgraph`; absent, the LangGraph effect throws
@@ -1 +1 @@
1
- {"version":3,"file":"graphOperator.d.ts","sourceRoot":"","sources":["../../src/cli/graphOperator.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,iBAAiB,EAElB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAUlE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAqBvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAI3D,KAAK,2BAA2B,GAAG;IACjC,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC;IACzB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,OAAO,CAAC,eAAe,CAAC,CAAC;IAC9D;;;;OAIG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,YAAY,CAAC;CACtC,CAAC;AAwIF,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,2BAA2B,GACnC,iBAAiB,CAyDnB"}
1
+ {"version":3,"file":"graphOperator.d.ts","sourceRoot":"","sources":["../../src/cli/graphOperator.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,qBAAqB,EACrB,iBAAiB,EAElB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,kBAAkB,CAAC;AAK1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAqBvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAQ3D,KAAK,2BAA2B,GAAG;IACjC,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC;IACzB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,mBAAmB,CAAC,EAAE,CAC7B,MAAM,EAAE,cAAc,KACnB,OAAO,CAAC,qBAAqB,CAAC,CAAC;IACpC;;;;OAIG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,YAAY,CAAC;CACtC,CAAC;AAwIF,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,2BAA2B,GACnC,iBAAiB,CAyDnB"}
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Best-effort resolution of the installed opencode version for DIAGNOSTIC use
3
+ * (the standalone `openteam graph status` binary).
4
+ *
5
+ * The cutover gate pins the three certificates against the opencode version the
6
+ * runtime will actually run under. Inside a live opencode session the plugin
7
+ * reads that version from the server; outside one — which is exactly where this
8
+ * standalone CLI runs — there is no live server to ask. Rather than synthesize a
9
+ * version (the GE-071 bug: passing `"unknown"` manufactured a certificate
10
+ * mismatch and reported it as a denial), we try a small set of real sources and,
11
+ * if none succeed, return `undefined` so the caller renders `unevaluable`.
12
+ *
13
+ * Contract:
14
+ * - **Best-effort and non-fatal.** Every source is guarded; a throw, rejection
15
+ * or timeout falls through to the next source and ultimately to `undefined`.
16
+ * This function never throws.
17
+ * - **Never a constant.** We deliberately do NOT read the pinned
18
+ * `@opencode-ai/plugin` package version — that is a compile-time constant and
19
+ * would defeat the live-version guarantee. The unscoped `opencode-ai` package
20
+ * is the real CLI/server package, so its installed version reflects what is
21
+ * actually present on the machine.
22
+ */
23
+ export type OpencodeVersionResolverDeps = {
24
+ /**
25
+ * Reads a package's declared version by name (e.g. `"opencode-ai"`). Returns
26
+ * `undefined` when the package cannot be resolved. Must not throw.
27
+ */
28
+ readonly readPackageVersion: (packageName: string) => string | undefined;
29
+ /**
30
+ * Runs a bounded `opencode --version` and resolves with its stdout. May reject
31
+ * (missing binary, timeout); the resolver treats a rejection as "no version".
32
+ */
33
+ readonly runVersionCommand: () => Promise<string>;
34
+ };
35
+ /**
36
+ * Resolve the installed opencode version, or `undefined` if it cannot be
37
+ * determined. Sources are tried in order:
38
+ * 1. the installed `opencode-ai` package version;
39
+ * 2. `opencode --version` (bounded subprocess).
40
+ *
41
+ * Callers MUST treat `undefined` as "unevaluable", never as a denial.
42
+ */
43
+ export declare function resolveOpencodeVersionBestEffort(deps: OpencodeVersionResolverDeps): Promise<string | undefined>;
44
+ //# sourceMappingURL=opencodeVersion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"opencodeVersion.d.ts","sourceRoot":"","sources":["../../src/cli/opencodeVersion.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,MAAM,MAAM,2BAA2B,GAAG;IACxC;;;OAGG;IACH,QAAQ,CAAC,kBAAkB,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IACzE;;;OAGG;IACH,QAAQ,CAAC,iBAAiB,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;CACnD,CAAC;AAqBF;;;;;;;GAOG;AACH,wBAAsB,gCAAgC,CACpD,IAAI,EAAE,2BAA2B,GAChC,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAsB7B"}