@quantiya/codevibe-codex-plugin 2.0.113 → 2.0.115

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.
@@ -1,4 +1,5 @@
1
1
  import type { AgentKind, ImplementorHandle, SpawnArgs } from './types';
2
+ import { type AgySignInWhy } from '../substrate-launch/agy-auth-seed';
2
3
  export type SelfTestMode = 'execute' | 'plan';
3
4
  export type SelfTestTier = 'docker' | 'sandbox_exec' | 'bubblewrap';
4
5
  export type AgyCommandTool = 'works' | 'no-command-tool' | 'unknown';
@@ -29,6 +30,8 @@ export interface TierSelfTestResult {
29
30
  pass: boolean;
30
31
  reason?: string;
31
32
  agyCommandTool?: AgyCommandTool;
33
+ /** FU-A: the self-test's spawn was refused for a missing agy sign-in (transient; never cached). */
34
+ signInWhy?: AgySignInWhy;
32
35
  checkedAt: string;
33
36
  }
34
37
  export declare function readTierSelfTest(cacheDir: string, key: string): TierSelfTestResult | null;
@@ -54,4 +57,5 @@ export declare function runTierSelfTest(input: RunTierSelfTestInput): Promise<{
54
57
  reason?: string;
55
58
  agyCommandTool?: AgyCommandTool;
56
59
  transient?: boolean;
60
+ signInWhy?: AgySignInWhy;
57
61
  }>;
@@ -6,10 +6,10 @@ export declare class ProcessRunError extends Error {
6
6
  readonly signal: NodeJS.Signals | null;
7
7
  readonly killed: boolean;
8
8
  readonly stderr: string;
9
- /** the deadline ended the run (or no time was left to start it) */
9
+ /** the deadline ended the run, no time was left to start it, or the runner was aborted */
10
10
  readonly timedOut: boolean;
11
11
  constructor(message: string, code: number | string | null, signal: NodeJS.Signals | null, killed: boolean, stderr: string,
12
- /** the deadline ended the run (or no time was left to start it) */
12
+ /** the deadline ended the run, no time was left to start it, or the runner was aborted */
13
13
  timedOut: boolean);
14
14
  }
15
15
  export interface ProcessRunner {
@@ -18,6 +18,11 @@ export interface ProcessRunner {
18
18
  cwd: string;
19
19
  env: NodeJS.ProcessEnv;
20
20
  }): Promise<string>;
21
+ /**
22
+ * End all remaining work: SIGKILL the group of every spawned child that has not closed, release queued runs, and fail
23
+ * every later run. Idempotent. Returns the ids of the process groups it ended (empty when nothing was live).
24
+ */
25
+ abort(): readonly number[];
21
26
  /** Process-group ids this runner spawned (diagnostics and tests). */
22
27
  readonly spawnedGroups: readonly number[];
23
28
  }
@@ -0,0 +1,18 @@
1
+ import type { AdvisoryWorkspaceFingerprintProbe } from './walk';
2
+ /** Longest a cell waits for its siblings before the shared probe starts anyway. */
3
+ export declare const PANEL_BASELINE_COALESCE_MS = 100;
4
+ export interface PanelBaselineTake {
5
+ probe: AdvisoryWorkspaceFingerprintProbe;
6
+ /** `shared`: the panel's probe; `own`: this cell asked after it started and ran its own */
7
+ baseline: 'shared' | 'own';
8
+ /** time from this cell's request to the start of its probe (the coalescing wait; 0 for `own`) */
9
+ waitedMs: number;
10
+ }
11
+ export interface PanelBaseline {
12
+ take(): Promise<PanelBaselineTake>;
13
+ }
14
+ export declare function createPanelBaseline(opts: {
15
+ expectedCells: number;
16
+ probe: () => Promise<AdvisoryWorkspaceFingerprintProbe>;
17
+ coalesceMs?: number;
18
+ }): PanelBaseline;
@@ -102,10 +102,10 @@ export declare function brainstormAllQuotaWalledMessage(walled: readonly Brainst
102
102
  * design r6), and generic failure — so no free-form detail can leak through. [#635] the `'quota_walled'`/`'failed'` strings are preserved VERBATIM
103
103
  * from the prior 2-label version; only `'timed_out'` is new.
104
104
  */
105
- export type BrainstormPanelFailureReason = 'quota_walled' | 'timed_out' | 'workspace_unverifiable' | 'workspace_changed' | 'failed';
105
+ export type BrainstormPanelFailureReason = 'quota_walled' | 'timed_out' | 'agent_signed_out' | 'workspace_unverifiable' | 'workspace_changed' | 'failed';
106
106
  /** The user-facing text for a read-only turn refused by the workspace check, or null for any other reason. */
107
107
  export declare function workspaceVerificationMessage(unavailableReason: string | null | undefined): string | null;
108
- /** Map a failed advisory result to its closed panel label: quota wall > timeout > workspace check > generic. */
108
+ /** Map a failed advisory result to its closed panel label: quota wall > timeout > workspace check > generic. (A missing agy sign-in is a refused spawn — the cell catch maps it, FU-A.) */
109
109
  export declare function brainstormPanelFailureReasonFor(result: {
110
110
  quotaWalled: boolean;
111
111
  timedOut: boolean;