@jmanuelcorral/openteam 0.9.0 → 0.9.2
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 +1 -1
- package/README.md +1 -1
- package/dist/cli.js +522 -67
- package/dist/commands/dispatch.d.ts +23 -3
- package/dist/commands/dispatch.d.ts.map +1 -1
- package/dist/commands/doctor.d.ts +47 -0
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/index.d.ts +11 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +665 -103
- package/dist/opencodeArtifacts/orchestratorAgent.d.ts +1 -1
- package/dist/opencodeArtifacts/orchestratorAgent.d.ts.map +1 -1
- package/dist/orchestrator/coordinator.d.ts +8 -5
- package/dist/orchestrator/coordinator.d.ts.map +1 -1
- package/dist/orchestrator/permissions.d.ts.map +1 -1
- package/dist/orchestrator/roles.d.ts +23 -4
- package/dist/orchestrator/roles.d.ts.map +1 -1
- package/dist/orchestrator/roster.d.ts +85 -2
- package/dist/orchestrator/roster.d.ts.map +1 -1
- package/dist/orchestrator/rosterPersistence.d.ts +32 -5
- package/dist/orchestrator/rosterPersistence.d.ts.map +1 -1
- package/dist/plugin/diagnostics.d.ts +30 -0
- package/dist/plugin/diagnostics.d.ts.map +1 -0
- package/dist/plugin/orchestrateTool.d.ts +3 -1
- package/dist/plugin/orchestrateTool.d.ts.map +1 -1
- package/dist/storage/index/memoryIndex.d.ts +2 -2
- package/dist/storage/index/memoryIndex.d.ts.map +1 -1
- package/dist/telemetry/diagnostics.d.ts +10 -0
- package/dist/telemetry/diagnostics.d.ts.map +1 -0
- package/dist/telemetry/eventLog.d.ts +3 -1
- package/dist/telemetry/eventLog.d.ts.map +1 -1
- package/dist/telemetry/events.d.ts +77 -0
- package/dist/telemetry/events.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import type { FrontierChoice } from "../commands/setup";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const ORCHESTRATOR_AGENT_PATH = ".opencode/agent/openteam.md";
|
|
7
7
|
/**
|
|
8
|
-
* Path to the casting registry (universe +
|
|
8
|
+
* Path to the casting registry (universe + roleID→agentName JSON roster). Lives
|
|
9
9
|
* **outside** `.opencode/agent/` intentionally: opencode loads as an agent every
|
|
10
10
|
* `.md` in that folder, so a stray roster markdown file inside would appear as a
|
|
11
11
|
* phantom agent in the Tab-switcher. It is portable team-state (P15b), so it lives
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestratorAgent.d.ts","sourceRoot":"","sources":["../../src/opencodeArtifacts/orchestratorAgent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,uBAAuB,gCAAgC,CAAC;AAErE;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,iCAAiC,CAAC;AAInE;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,cAAc,EACxB,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAO,GAC/B,MAAM,
|
|
1
|
+
{"version":3,"file":"orchestratorAgent.d.ts","sourceRoot":"","sources":["../../src/opencodeArtifacts/orchestratorAgent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,uBAAuB,gCAAgC,CAAC;AAErE;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,iCAAiC,CAAC;AAInE;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,cAAc,EACxB,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAO,GAC/B,MAAM,CAmRR"}
|
|
@@ -109,11 +109,14 @@ export type RoleTaskResult = {
|
|
|
109
109
|
record: CorrelatedCostRecord;
|
|
110
110
|
};
|
|
111
111
|
/**
|
|
112
|
-
* Emits an observable warning the first time an unknown roleID is
|
|
113
|
-
* within a given `warnedRoles` Set.
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
112
|
+
* Emits an observable warning the first time an unknown worker roleID is
|
|
113
|
+
* encountered within a given `warnedRoles` Set. Known non-worker agents such as
|
|
114
|
+
* the primary `openteam` coordinator are recognized but intentionally have no
|
|
115
|
+
* routing profile, so they do not receive the harmful "add to
|
|
116
|
+
* orchestrator.roles" warning. Callers own the Set and its lifetime: production
|
|
117
|
+
* callers pass a long-lived Set (no repeat logs); test callers pass a fresh
|
|
118
|
+
* `new Set()` per case (full isolation). When `warnedRoles` is not provided the
|
|
119
|
+
* warning is emitted unconditionally on every call.
|
|
117
120
|
*
|
|
118
121
|
* Follows the `warn*` convention used throughout the codebase
|
|
119
122
|
* (see `warnInertPrivacySetting`, `warnCostRecordRejections`).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coordinator.d.ts","sourceRoot":"","sources":["../../src/orchestrator/coordinator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1D,OAAO,KAAK,EAEV,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EAEf,WAAW,EACZ,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAA0B,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAEL,KAAK,YAAY,EAEjB,KAAK,UAAU,EAChB,MAAM,qBAAqB,CAAC;AAE7B,O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OAAO,EAAE,cAAc,EAAE,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../src/orchestrator/permissions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,MAAM,cAAc,GACtB,MAAM,GACN,MAAM,GACN,eAAe,GACf,aAAa,GACb,SAAS,GACT,OAAO,CAAC;AAEZ,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,cAAc,EAAE,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,EAAE,CAiB7D,CAAC;AASF,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,GAAG,OAAO,CAE3E;AAED,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,cAAc,EACxB,KAAK,EAAE,cAAc,EAAE,GACtB,cAAc,CAKhB;AAED,wBAAgB,aAAa,CAC3B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,cAAc,GACnB;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CASvC"}
|
|
@@ -64,6 +64,25 @@ export declare const AgentRoleProfileSchema: z.ZodObject<{
|
|
|
64
64
|
}>>>;
|
|
65
65
|
}, z.core.$strict>;
|
|
66
66
|
export declare const TEAM_ROLES: Record<string, AgentRoleProfile>;
|
|
67
|
+
export declare function isKnownNonWorkerRole(roleID: string): boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Resolves a role by canonical functional key, configured alias, or a legacy
|
|
70
|
+
* themed TEAM_ROLES key.
|
|
71
|
+
*
|
|
72
|
+
* Precedence is deterministic:
|
|
73
|
+
* 1. exact key in configured roles
|
|
74
|
+
* 2. exact key in TEAM_ROLES
|
|
75
|
+
* 3. configured role whose `opencodeAgent` matches
|
|
76
|
+
* 4. legacy TEAM_ROLES key (`rusty`, `livingston`, `yen`, `basher`, `linus`)
|
|
77
|
+
*
|
|
78
|
+
* Exact keys always win over aliases. If multiple configured roles claim an
|
|
79
|
+
* alias, the lexicographically smallest configured key wins, so collision
|
|
80
|
+
* handling is not dependent on object insertion order. Built-in TEAM_ROLES are
|
|
81
|
+
* keyed by their opencode-visible functional role IDs; the legacy themed keys
|
|
82
|
+
* are accepted only as a backward-compatibility shim. The returned profile is
|
|
83
|
+
* not rewritten: `roleID` stays the canonical key while `opencodeAgent` remains
|
|
84
|
+
* the opencode agent name used for dispatch.
|
|
85
|
+
*/
|
|
67
86
|
export declare function getRoleProfile(roleID: string, configuredRoles?: Readonly<Record<string, AgentRoleProfile>>): AgentRoleProfile | undefined;
|
|
68
87
|
/**
|
|
69
88
|
* Synthesises a neutral, frontier-eligible fallback profile for a roleID that
|
|
@@ -72,10 +91,10 @@ export declare function getRoleProfile(roleID: string, configuredRoles?: Readonl
|
|
|
72
91
|
* accurate error ("agent Galadriel not found") rather than a misleading one
|
|
73
92
|
* ("agent scribe not found") when the agent does not exist in the workspace.
|
|
74
93
|
*
|
|
75
|
-
* Profile values mirror the majority of the team
|
|
76
|
-
* moderate tier with frontier escalation
|
|
77
|
-
* the core local-first promise is preserved
|
|
78
|
-
* silently starved of frontier access.
|
|
94
|
+
* Profile values mirror the majority of the team
|
|
95
|
+
* (local-runtime/routing-cost/reviewer): moderate tier with frontier escalation
|
|
96
|
+
* enabled and local-first routing, so the core local-first promise is preserved
|
|
97
|
+
* while unknown roles are never silently starved of frontier access.
|
|
79
98
|
*/
|
|
80
99
|
export declare function synthesiseFallbackProfile(roleID: string): AgentRoleProfile;
|
|
81
100
|
export declare function roleToRequirement(role: AgentRoleProfile, task: TaskSignals, tier?: ComplexityTier): CapabilityRequirement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../src/orchestrator/roles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EACV,qBAAqB,EACrB,cAAc,EACf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,cAAc,CAAC;IAC5B,gBAAgB,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACpC,kBAAkB,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACtC,yBAAyB,EAAE,OAAO,CAAC;IACnC,uBAAuB,EAAE,KAAK,CAAC,cAAc,GAAG,MAAM,CAAC,CAAC;IACxD,UAAU,EAAE,OAAO,CAAC;IACpB;;;;;;;;;OASG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;;;;;;;;;;OAaG;IACH,aAAa,CAAC,EAAE,cAAc,EAAE,CAAC;CAClC,CAAC;AAiBF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;kBAkBxB,CAAC;AAGZ,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CA8FvD,CAAC;
|
|
1
|
+
{"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../src/orchestrator/roles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EACV,qBAAqB,EACrB,cAAc,EACf,MAAM,uBAAuB,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AgB,EACtB,IAAI,EAAE,WAAW,EACjB,IAAI,CAAC,EAAE,cAAc,GACpB,qBAAqB,CAevB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { type AgentRoleProfile } from "./roles";
|
|
2
3
|
/**
|
|
3
4
|
* W3 roster model (#171, #172).
|
|
4
5
|
*
|
|
@@ -28,6 +29,22 @@ export declare const RosterSchema: z.ZodObject<{
|
|
|
28
29
|
}, z.core.$strict>;
|
|
29
30
|
export type RosterEntry = z.infer<typeof RosterEntrySchema>;
|
|
30
31
|
export type Roster = z.infer<typeof RosterSchema>;
|
|
32
|
+
export type RosterParseErrorCode = "missing-json-block" | "malformed-json" | "invalid-roster-schema";
|
|
33
|
+
export declare class RosterParseError extends Error {
|
|
34
|
+
readonly code: RosterParseErrorCode;
|
|
35
|
+
constructor(code: RosterParseErrorCode, message: string);
|
|
36
|
+
}
|
|
37
|
+
export type RosterParseResult = {
|
|
38
|
+
readonly ok: true;
|
|
39
|
+
readonly roster: Roster;
|
|
40
|
+
} | {
|
|
41
|
+
readonly ok: false;
|
|
42
|
+
readonly error: RosterParseError;
|
|
43
|
+
};
|
|
44
|
+
/** Parses a roster document back into a validated {@link Roster}. Pure. */
|
|
45
|
+
export declare function parseRoster(text: string): Roster;
|
|
46
|
+
/** Tolerant pure parser for recovery and audit surfaces. */
|
|
47
|
+
export declare function parseRosterResult(text: string): RosterParseResult;
|
|
31
48
|
/**
|
|
32
49
|
* The four roles every roster must contain (#171). `orchestrator` is the primary
|
|
33
50
|
* agent itself and has no TEAM_ROLES profile; `guardian`/`scribe`/`ralph` are the
|
|
@@ -36,14 +53,80 @@ export type Roster = z.infer<typeof RosterSchema>;
|
|
|
36
53
|
*/
|
|
37
54
|
export declare const GUARANTEED_ROLE_IDS: readonly ["orchestrator", "guardian", "scribe", "ralph"];
|
|
38
55
|
export type GuaranteedRoleID = (typeof GUARANTEED_ROLE_IDS)[number];
|
|
56
|
+
/**
|
|
57
|
+
* Canonical dispatch aliases for guaranteed roles when a roster must be repaired
|
|
58
|
+
* without enough evidence to recover the user's themed name. The orchestrator
|
|
59
|
+
* role is the primary opencode agent, whose generated file is `openteam.md`;
|
|
60
|
+
* `orchestrator` remains the stable roleID, while `openteam` is the agentName.
|
|
61
|
+
*/
|
|
62
|
+
export declare const GUARANTEED_ROLE_DEFAULT_AGENT_NAMES: {
|
|
63
|
+
readonly orchestrator: "openteam";
|
|
64
|
+
readonly guardian: "guardian";
|
|
65
|
+
readonly scribe: "scribe";
|
|
66
|
+
readonly ralph: "ralph";
|
|
67
|
+
};
|
|
68
|
+
/** Default opencode dispatch alias for a guaranteed roleID. Pure. */
|
|
69
|
+
export declare function defaultAgentNameForGuaranteedRole(roleID: GuaranteedRoleID): string;
|
|
39
70
|
/** Guaranteed roleIDs absent from a roster, in canonical order. */
|
|
40
71
|
export declare function missingGuaranteedRoles(roster: Roster): GuaranteedRoleID[];
|
|
41
72
|
/** Whether every guaranteed roleID is present in the roster. */
|
|
42
73
|
export declare function hasAllGuaranteedRoles(roster: Roster): boolean;
|
|
74
|
+
/** Options for {@link auditRoster}. */
|
|
75
|
+
export type RosterAuditOptions = {
|
|
76
|
+
/** Optional config-declared role profiles, so doctor can audit the active config. */
|
|
77
|
+
readonly configuredRoles?: Readonly<Record<string, AgentRoleProfile>>;
|
|
78
|
+
};
|
|
79
|
+
export type RosterAuditFinding = {
|
|
80
|
+
readonly kind: "missing-guaranteed-role" | "non-canonical-role-id" | "unparseable-roster" | "unresolved-role-profile";
|
|
81
|
+
readonly roleID: string;
|
|
82
|
+
readonly agentName?: string;
|
|
83
|
+
readonly canonicalRoleID?: string;
|
|
84
|
+
readonly code?: RosterParseErrorCode;
|
|
85
|
+
readonly message?: string;
|
|
86
|
+
};
|
|
87
|
+
/** An informational roster entry that has no configured or built-in role profile. */
|
|
88
|
+
export type RosterUnprofiledRoleEntry = {
|
|
89
|
+
readonly roleID: string;
|
|
90
|
+
readonly agentName: string;
|
|
91
|
+
/** Unknown project roles are intentional and remain valid, so this is not an error. */
|
|
92
|
+
readonly severity: "info";
|
|
93
|
+
};
|
|
94
|
+
/** A conservative, evidence-backed non-canonical guaranteed-role entry. */
|
|
95
|
+
export type RosterMisassignedGuaranteedRoleEntry = {
|
|
96
|
+
readonly roleID: string;
|
|
97
|
+
readonly agentName: string;
|
|
98
|
+
/** The guaranteed canonical roleID that is absent from the roster. */
|
|
99
|
+
readonly missingRoleID: GuaranteedRoleID;
|
|
100
|
+
readonly reason: "agentNameMatchesMissingGuaranteedRole" | "roleIDResolvesToMissingGuaranteedRole";
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* Structured health audit for a roster.
|
|
104
|
+
*
|
|
105
|
+
* This function is deliberately conservative: it reports missing guaranteed
|
|
106
|
+
* roleIDs and unprofiled entries, but it only flags a non-canonical guaranteed
|
|
107
|
+
* role when the roster/config gives exact evidence. It never guesses that a
|
|
108
|
+
* themed roleID such as `c3po` means `scribe`; unknown project roles are valid.
|
|
109
|
+
* Pure: no I/O, clock, randomness, environment, or telemetry.
|
|
110
|
+
*/
|
|
111
|
+
export type RosterAudit = {
|
|
112
|
+
readonly findings: readonly RosterAuditFinding[];
|
|
113
|
+
/** @deprecated Use `findings` with kind `missing-guaranteed-role`. */
|
|
114
|
+
readonly hasAllGuaranteedRoles?: boolean;
|
|
115
|
+
/** @deprecated Use `findings` with kind `missing-guaranteed-role`. */
|
|
116
|
+
readonly missingGuaranteedRoleIDs?: readonly GuaranteedRoleID[];
|
|
117
|
+
/** @deprecated Use `findings` with kind `unresolved-role-profile`. */
|
|
118
|
+
readonly unprofiledRoleEntries?: readonly RosterUnprofiledRoleEntry[];
|
|
119
|
+
/** @deprecated Use `findings` with kind `non-canonical-role-id`. */
|
|
120
|
+
readonly misassignedGuaranteedRoleEntries?: readonly RosterMisassignedGuaranteedRoleEntry[];
|
|
121
|
+
};
|
|
122
|
+
/** Audits guaranteed-role and role-profile health without mutating the roster. */
|
|
123
|
+
export declare function auditRoster(roster: Roster, configuredRoles?: Readonly<Record<string, AgentRoleProfile>>): RosterAudit;
|
|
124
|
+
export declare function auditRoster(rosterText: string, configuredRoles?: Readonly<Record<string, AgentRoleProfile>>): RosterAudit;
|
|
125
|
+
export declare function auditRoster(roster: Roster, options?: RosterAuditOptions): RosterAudit;
|
|
43
126
|
/**
|
|
44
127
|
* Enforces the guaranteed-role invariant (#171): re-adds any missing guaranteed
|
|
45
|
-
* role, binding its `agentName` to the
|
|
46
|
-
*
|
|
128
|
+
* role, binding its `agentName` to the safest known dispatch alias for that
|
|
129
|
+
* role. Returns the roster unchanged when nothing is missing. Pure.
|
|
47
130
|
*/
|
|
48
131
|
export declare function enforceGuaranteedRoles(roster: Roster): Roster;
|
|
49
132
|
/** Draft roster a generator source emits before Zod validation. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roster.d.ts","sourceRoot":"","sources":["../../src/orchestrator/roster.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;GAaG;AAEH,mFAAmF;AACnF,eAAO,MAAM,iBAAiB;;;kBAKnB,CAAC;AAEZ,+DAA+D;AAC/D,eAAO,MAAM,YAAY;;;;;;kBAKd,CAAC;AAEZ,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"roster.d.ts","sourceRoot":"","sources":["../../src/orchestrator/roster.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,KAAK,gBAAgB,EAGtB,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;;;;;GAaG;AAEH,mFAAmF;AACnF,eAAO,MAAM,iBAAiB;;;kBAKnB,CAA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AM,EACd,MAAM,EAAE,YAAY,GACnB,OAAO,CAAC,MAAM,CAAC,CAIjB;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GACb,MAAM,GAAG,SAAS,CAEpB;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,WAAW,GACjB,MAAM,CAOR;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAMjE;AAED;;;;GAIG;AACH,wBAAsB,sBAAsB,CAC1C,SAAS,EAAE,MAAM,EACjB,eAAe,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,GACjE,OAAO,CAAC,IAAI,CAAC,CAIf;AAED;;;;;GAKG;AACH,wBAAsB,sBAAsB,CAAC,CAAC,EAC5C,SAAS,EAAE,MAAM,EACjB,eAAe,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,EAClE,QAAQ,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GACzB,OAAO,CAAC,CAAC,CAAC,CAGZ"}
|
|
@@ -1,17 +1,44 @@
|
|
|
1
1
|
import type { StorageProvider } from "../storage/provider";
|
|
2
|
-
import { type Roster } from "./roster";
|
|
2
|
+
import { type Roster, type RosterParseError } from "./roster";
|
|
3
|
+
export { parseRoster, parseRosterResult, RosterParseError } from "./roster";
|
|
4
|
+
/**
|
|
5
|
+
* W3 roster persistence (#173).
|
|
6
|
+
*
|
|
7
|
+
* The roster round-trips through the git-tracked, portable `.opencode/openteam/`
|
|
8
|
+
* directory (decision P15b) so a second session — or a colleague who cloned the
|
|
9
|
+
* repo — reuses the same cast and the team travels with the repository. The file
|
|
10
|
+
* lives OUTSIDE `.opencode/agent/` on purpose: opencode loads every `.md` there as
|
|
11
|
+
* an agent, so a roster inside it would appear as a phantom agent.
|
|
12
|
+
*
|
|
13
|
+
* Serialisation embeds the structured roster as a JSON block inside a Markdown
|
|
14
|
+
* document, so the write/parse round-trip is exact and Zod-validated while the file
|
|
15
|
+
* stays human-readable. All disk access goes through the injected
|
|
16
|
+
* {@link StorageProvider} boundary, so this module has no direct I/O.
|
|
17
|
+
*/
|
|
3
18
|
/** Serialises a roster to the Markdown-with-JSON roster document. Pure. */
|
|
4
19
|
export declare function serializeRoster(roster: Roster): string;
|
|
5
|
-
/** Parses a roster document back into a validated {@link Roster}. Pure. */
|
|
6
|
-
export declare function parseRoster(text: string): Roster;
|
|
7
20
|
/** Writes the roster to the portable path; returns the path written. */
|
|
8
21
|
export declare function persistRoster(storage: StorageProvider, roster: Roster, path?: string): Promise<string>;
|
|
9
|
-
|
|
10
|
-
|
|
22
|
+
export type RosterFileLoadResult = {
|
|
23
|
+
readonly status: "absent";
|
|
24
|
+
readonly path: string;
|
|
25
|
+
} | {
|
|
26
|
+
readonly status: "loaded";
|
|
27
|
+
readonly path: string;
|
|
28
|
+
readonly roster: Roster;
|
|
29
|
+
} | {
|
|
30
|
+
readonly status: "invalid";
|
|
31
|
+
readonly path: string;
|
|
32
|
+
readonly error: RosterParseError;
|
|
33
|
+
};
|
|
34
|
+
/** Reads the persisted roster without throwing on malformed content. */
|
|
35
|
+
export declare function loadRosterFile(storage: StorageProvider, path?: string): Promise<RosterFileLoadResult>;
|
|
11
36
|
/** Outcome of {@link loadOrGenerateRoster}: the roster and whether it was rebuilt. */
|
|
12
37
|
export type RosterLoadResult = {
|
|
13
38
|
readonly roster: Roster;
|
|
14
39
|
readonly regenerated: boolean;
|
|
40
|
+
readonly recoveredFromInvalidPersisted?: boolean;
|
|
41
|
+
readonly invalidPersistedRosterError?: string;
|
|
15
42
|
};
|
|
16
43
|
/**
|
|
17
44
|
* Reuses the persisted cast when present, generating and persisting one only when
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rosterPersistence.d.ts","sourceRoot":"","sources":["../../src/orchestrator/rosterPersistence.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,
|
|
1
|
+
{"version":3,"file":"rosterPersistence.d.ts","sourceRoot":"","sources":["../../src/orchestrator/rosterPersistence.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAGL,KAAK,MAAM,EACX,KAAK,gBAAgB,EACtB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5E;;;;;;;;;;;;;GAaG;AAEH,2EAA2E;AAC3E,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAItD;AAED,wEAAwE;AACxE,wBAAsB,aAAa,CACjC,OAAO,EAAE,eAAe,EACxB,MAAM,EAAE,MAAM,EACd,IAAI,GAAE,MAA6B,GAClC,OAAO,CAAC,MAAM,CAAC,CAGjB;AAED,MAAM,MAAM,oBAAoB,GAC5B;IAAE,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACpD;IACE,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB,GACD;IACE,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAC;CAClC,CAAC;AAEN,wEAAwE;AACxE,wBAAsB,cAAc,CAClC,OAAO,EAAE,eAAe,EACxB,IAAI,GAAE,MAA6B,GAClC,OAAO,CAAC,oBAAoB,CAAC,CAc/B;AAED,sFAAsF;AACtF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,6BAA6B,CAAC,EAAE,OAAO,CAAC;IACjD,QAAQ,CAAC,2BAA2B,CAAC,EAAE,MAAM,CAAC;CAC/C,CAAC;AAEF;;;;GAIG;AACH,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,EACxC,IAAI,GAAE,MAA6B,GAClC,OAAO,CAAC,gBAAgB,CAAC,CAoB3B"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type DiagnosticCode } from "../telemetry/diagnostics";
|
|
2
|
+
import { type EventSink } from "../telemetry/eventLog";
|
|
3
|
+
import { type DiagnosticEvent } from "../telemetry/events";
|
|
4
|
+
export declare const PLUGIN_DIAGNOSTIC_SESSION_ID = "plugin";
|
|
5
|
+
type DiagnosticLevel = DiagnosticEvent["level"];
|
|
6
|
+
type DiagnosticInput = {
|
|
7
|
+
readonly level: DiagnosticLevel;
|
|
8
|
+
readonly code: DiagnosticCode;
|
|
9
|
+
readonly sessionID?: string;
|
|
10
|
+
};
|
|
11
|
+
type DiagnosticSinkOptions = {
|
|
12
|
+
readonly persist?: boolean;
|
|
13
|
+
readonly toast?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export type PluginDiagnosticChannel = {
|
|
16
|
+
readonly setEventSink: (sink: EventSink) => void;
|
|
17
|
+
readonly emit: (diagnostic: DiagnosticInput, options?: DiagnosticSinkOptions) => void;
|
|
18
|
+
readonly sink: (level: DiagnosticLevel, code: DiagnosticCode, options?: DiagnosticSinkOptions) => (message?: unknown) => void;
|
|
19
|
+
readonly warn: (code: DiagnosticCode, options?: DiagnosticSinkOptions) => (message?: unknown) => void;
|
|
20
|
+
readonly info: (code: DiagnosticCode, options?: DiagnosticSinkOptions) => (message?: unknown) => void;
|
|
21
|
+
};
|
|
22
|
+
export type PluginDiagnosticChannelDeps = {
|
|
23
|
+
readonly client: unknown;
|
|
24
|
+
readonly directory?: string;
|
|
25
|
+
readonly now: () => number;
|
|
26
|
+
readonly sink?: EventSink;
|
|
27
|
+
};
|
|
28
|
+
export declare function createPluginDiagnosticChannel(deps: PluginDiagnosticChannelDeps): PluginDiagnosticChannel;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=diagnostics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diagnostics.d.ts","sourceRoot":"","sources":["../../src/plugin/diagnostics.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAuB,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EACL,KAAK,eAAe,EAErB,MAAM,qBAAqB,CAAC;AAE7B,eAAO,MAAM,4BAA4B,WAAW,CAAC;AAErD,KAAK,eAAe,GAAG,eAAe,CAAC,OAAO,CAAC,CAAC;AAChD,KAAK,eAAe,GAAG;IACrB,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAC;IAChC,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAC9B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,KAAK,qBAAqB,GAAG;IAC3B,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AASF,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,CAAC,YAAY,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACjD,QAAQ,CAAC,IAAI,EAAE,CACb,UAAU,EAAE,eAAe,EAC3B,OAAO,CAAC,EAAE,qBAAqB,KAC5B,IAAI,CAAC;IACV,QAAQ,CAAC,IAAI,EAAE,CACb,KAAK,EAAE,eAAe,EACtB,IAAI,EAAE,cAAc,EACpB,OAAO,CAAC,EAAE,qBAAqB,KAC5B,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,QAAQ,CAAC,IAAI,EAAE,CACb,IAAI,EAAE,cAAc,EACpB,OAAO,CAAC,EAAE,qBAAqB,KAC5B,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,QAAQ,CAAC,IAAI,EAAE,CACb,IAAI,EAAE,cAAc,EACpB,OAAO,CAAC,EAAE,qBAAqB,KAC5B,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,GAAG,EAAE,MAAM,MAAM,CAAC;IAC3B,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC;CAC3B,CAAC;AAiEF,wBAAgB,6BAA6B,CAC3C,IAAI,EAAE,2BAA2B,GAChC,uBAAuB,CAgEzB"}
|
|
@@ -4,7 +4,7 @@ import type { GraphMode, OpenTeamConfig } from "../config/schema";
|
|
|
4
4
|
import type { GraphEventV1, GraphSpecV1 } from "../graph/schema";
|
|
5
5
|
import type { RuntimeConcurrencyLimiter } from "../local/concurrency";
|
|
6
6
|
import type { LocalRuntimeId } from "../local/types";
|
|
7
|
-
import { type RoleTaskResult } from "../orchestrator/coordinator";
|
|
7
|
+
import { type CoordinatorDeps, type RoleTaskResult } from "../orchestrator/coordinator";
|
|
8
8
|
import type { OpencodeSessionClient } from "../orchestrator/subsessions";
|
|
9
9
|
import type { GraphJournal } from "../storage/graph/provider";
|
|
10
10
|
import type { EventSink } from "../telemetry/eventLog";
|
|
@@ -137,6 +137,8 @@ export type OrchestrateDeps = {
|
|
|
137
137
|
readonly config: OpenTeamConfig;
|
|
138
138
|
readonly now: () => number;
|
|
139
139
|
readonly newDecisionID: () => string;
|
|
140
|
+
/** TUI-safe warning sink; plugin tools must never fall back to console.warn. */
|
|
141
|
+
readonly warn: NonNullable<CoordinatorDeps["warn"]>;
|
|
140
142
|
/** Graph mode resolved from config. `off` disables shadow journaling. */
|
|
141
143
|
readonly graphMode: GraphMode;
|
|
142
144
|
/** Journal for persisting shadow graph runs. Required when graphMode !== "off". */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrateTool.d.ts","sourceRoot":"","sources":["../../src/plugin/orchestrateTool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAQ,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlE,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEjE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,
|
|
1
|
+
{"version":3,"file":"orchestrateTool.d.ts","sourceRoot":"","sources":["../../src/plugin/orchestrateTool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAQ,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlE,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEjE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,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,uBAAuB,CACrC,IAAI,EAAE,WAAW,EACjB,OAAO,EAAE,SAAS,cAAc,EAAE,EAClC,SAAS,GAAE,SAAS,MAAM,EAAO,GAChC,YAAY,EAAE,CAkFhB;AA0CD;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAClC,iBAAiB,GACjB,uBAAuB,GACvB,uBAAuB,GACvB,wBAAwB,GACxB,sBAAsB,GACtB,+BAA+B,GAC/B,oBAAoB,GACpB,SAAS,CAAC;AAEd;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,OAAO,EACf,KAAK,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GACrC,0BAA0B,CAK5B;AAQD;;;;GAIG;AACH,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,oBAAoB,GAC3B,0BAA0B,GAAG,SAAS,CAaxC;AAED,yEAAyE;AACzE,MAAM,MAAM,oBAAoB,GAC5B;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAA;CAAE,GACrB;IAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,YAAY,EAAE,0BAA0B,CAAA;CAAE,CAAC;AA+H9E;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,eAAe,GAAG,cAAc,CAmF3E"}
|
|
@@ -64,9 +64,9 @@ export type MemoryIndex = {
|
|
|
64
64
|
/** Cierra la conexión subyacente. */
|
|
65
65
|
close: () => void;
|
|
66
66
|
};
|
|
67
|
-
export declare function warnMemoryIndexRecordRejections(result: ReadMemoryIndexRecordsResult): void;
|
|
67
|
+
export declare function warnMemoryIndexRecordRejections(result: ReadMemoryIndexRecordsResult, warn?: (message?: unknown) => void): void;
|
|
68
68
|
/** Crea el índice sobre una base de datos ya abierta y asegura el esquema. */
|
|
69
|
-
export declare function createMemoryIndex(db: SqliteDatabase): MemoryIndex;
|
|
69
|
+
export declare function createMemoryIndex(db: SqliteDatabase, warn?: (message?: unknown) => void): MemoryIndex;
|
|
70
70
|
export type RebuildMemoryDeps = {
|
|
71
71
|
storage: StorageProvider;
|
|
72
72
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memoryIndex.d.ts","sourceRoot":"","sources":["../../../src/storage/index/memoryIndex.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EACL,KAAK,SAAS,EACd,KAAK,YAAY,EAElB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD;;;;;;;;;;;;GAYG;AAEH,uDAAuD;AACvD,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,SAAS,CAAC;CACnB,CAAC;AAEF,uEAAuE;AACvE,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,sEAAsE;AACtE,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,CAAC,OAAO,EAAE,YAAY,EAAE,CAAC;IACjC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,UAAU,EAAE,SAAS,uBAAuB,EAAE,CAAC;CACzD,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,qEAAqE;IACrE,OAAO,EAAE,CAAC,UAAU,EAAE,SAAS,YAAY,EAAE,KAAK,IAAI,CAAC;IACvD;;;OAGG;IACH,UAAU,EAAE,MAAM,YAAY,EAAE,CAAC;IACjC,oEAAoE;IACpE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;IAC9D,oCAAoC;IACpC,KAAK,EAAE,MAAM,WAAW,CAAC;IACzB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/B,EAAE,EAAE,cAAc,EAClB,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,GACjC,WAAW,CAqIb;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,eAAe,CAAC;CAC1B,CAAC;AAEF,0DAA0D;AAC1D,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAChC,CAAC;AAEF;;;;GAIG;AACH,wBAAsB,6BAA6B,CACjD,KAAK,EAAE,WAAW,EAClB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,iBAAiB,GACtB,OAAO,CAAC,mBAAmB,CAAC,CAK9B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const DIAGNOSTIC_CODES: readonly ["availability-refresh-failed", "config-missing", "graph-gate-denied", "memory-extraction-warning", "memory-runtime-warning", "opencode-server-url", "opencode-version-read-failed", "privacy-inert", "soak-evidence-rejected", "telemetry-warning", "telemetry-write-failed", "unknown-role"];
|
|
2
|
+
export type DiagnosticCode = (typeof DIAGNOSTIC_CODES)[number];
|
|
3
|
+
/**
|
|
4
|
+
* Static, content-free summaries for plugin diagnostics. These strings are safe
|
|
5
|
+
* for durable telemetry and opencode server logs because they never include raw
|
|
6
|
+
* prompts, tool arguments, SDK errors, filesystem details, or user-supplied
|
|
7
|
+
* role names.
|
|
8
|
+
*/
|
|
9
|
+
export declare function diagnosticDescription(code: DiagnosticCode): string;
|
|
10
|
+
//# sourceMappingURL=diagnostics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diagnostics.d.ts","sourceRoot":"","sources":["../../src/telemetry/diagnostics.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,YAC3B,6BAA6B,EAC7B,gBAAgB,EAChB,mBAAmB,EACnB,2BAA2B,EAC3B,wBAAwB,EACxB,qBAAqB,EACrB,8BAA8B,EAC9B,eAAe,EACf,wBAAwB,EACxB,mBAAmB,EACnB,wBAAwB,EACxB,cAAc,CACN,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/D;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,CA2BlE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { StorageProvider } from "../storage/provider";
|
|
2
|
-
import { type OpenTeamEvent, type RouteEvent } from "./events";
|
|
2
|
+
import { type DiagnosticEvent, type OpenTeamEvent, type RouteEvent } from "./events";
|
|
3
3
|
import type { CostRecord } from "./types";
|
|
4
4
|
/** Default directory for session logs that feed the console.
|
|
5
5
|
* Machine-local runtime output (P15b): lives under `.opencode/openteam-local/`. */
|
|
@@ -60,6 +60,8 @@ export declare function routeEventToCostRecord(event: RouteEvent): CostRecord;
|
|
|
60
60
|
* events instead of the legacy `CostRecord` JSONL.
|
|
61
61
|
*/
|
|
62
62
|
export declare function readRouteCostRecords(dir: string, deps: ReadSessionEventsDeps): Promise<CostRecord[]>;
|
|
63
|
+
/** Reads plugin-safe diagnostic events from all session event logs. */
|
|
64
|
+
export declare function readDiagnosticEvents(dir: string, deps: ReadSessionEventsDeps): Promise<DiagnosticEvent[]>;
|
|
63
65
|
export type ReadSessionEventsDeps = {
|
|
64
66
|
/** Persistence backend (lists with `list`, reads with `read`). */
|
|
65
67
|
storage: StorageProvider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventLog.d.ts","sourceRoot":"","sources":["../../src/telemetry/eventLog.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,
|
|
1
|
+
{"version":3,"file":"eventLog.d.ts","sourceRoot":"","sources":["../../src/telemetry/eventLog.ts"],"names":[],"mappings":"AACA,OAAO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B,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,sBAAsB,CA6BrE;AAED,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,sBAAsB,EAC9B,MAAM,EAAE,MAAM,GACb,IAAI,CAaN;AAED,qFAAqF;AACrF,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAwBrE;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,CAsBpE;AAED;;;;;GAKG;AACH,wBAAsB,oBAAoB,CACxC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,qBAAqB,GAC1B,OAAO,CAAC,UAAU,EAAE,CAAC,CASvB;AAED,uEAAuE;AACvE,wBAAsB,oBAAoB,CACxC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,qBAAqB,GAC1B,OAAO,CAAC,eAAe,EAAE,CAAC,CAI5B;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,kEAAkE;IAClE,OAAO,EAAE,eAAe,CAAC;IACzB,6DAA6D;IAC7D,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF;;;;GAIG;AACH,wBAAsB,iBAAiB,CACrC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,qBAAqB,GAC1B,OAAO,CAAC,aAAa,EAAE,CAAC,CAgC1B"}
|
|
@@ -160,6 +160,57 @@ export declare const ShadowDiagnosticEventSchema: z.ZodObject<{
|
|
|
160
160
|
unknown: "unknown";
|
|
161
161
|
}>;
|
|
162
162
|
}, z.core.$strict>;
|
|
163
|
+
/**
|
|
164
|
+
* Runtime diagnostic recorded by plugin-safe channels instead of stdout/stderr.
|
|
165
|
+
* It stores only a bounded code, never free-form strings derived from prompts,
|
|
166
|
+
* tool arguments, SDK errors, filesystem paths, or user-provided role names.
|
|
167
|
+
*/
|
|
168
|
+
export declare const DiagnosticLevelSchema: z.ZodEnum<{
|
|
169
|
+
debug: "debug";
|
|
170
|
+
error: "error";
|
|
171
|
+
info: "info";
|
|
172
|
+
warn: "warn";
|
|
173
|
+
}>;
|
|
174
|
+
export declare const DiagnosticCodeSchema: z.ZodEnum<{
|
|
175
|
+
"availability-refresh-failed": "availability-refresh-failed";
|
|
176
|
+
"config-missing": "config-missing";
|
|
177
|
+
"graph-gate-denied": "graph-gate-denied";
|
|
178
|
+
"memory-extraction-warning": "memory-extraction-warning";
|
|
179
|
+
"memory-runtime-warning": "memory-runtime-warning";
|
|
180
|
+
"opencode-server-url": "opencode-server-url";
|
|
181
|
+
"opencode-version-read-failed": "opencode-version-read-failed";
|
|
182
|
+
"privacy-inert": "privacy-inert";
|
|
183
|
+
"soak-evidence-rejected": "soak-evidence-rejected";
|
|
184
|
+
"telemetry-warning": "telemetry-warning";
|
|
185
|
+
"telemetry-write-failed": "telemetry-write-failed";
|
|
186
|
+
"unknown-role": "unknown-role";
|
|
187
|
+
}>;
|
|
188
|
+
export declare const DiagnosticEventSchema: z.ZodObject<{
|
|
189
|
+
v: z.ZodLiteral<1>;
|
|
190
|
+
ts: z.ZodNumber;
|
|
191
|
+
sessionID: z.ZodString;
|
|
192
|
+
type: z.ZodLiteral<"diagnostic">;
|
|
193
|
+
level: z.ZodEnum<{
|
|
194
|
+
debug: "debug";
|
|
195
|
+
error: "error";
|
|
196
|
+
info: "info";
|
|
197
|
+
warn: "warn";
|
|
198
|
+
}>;
|
|
199
|
+
code: z.ZodEnum<{
|
|
200
|
+
"availability-refresh-failed": "availability-refresh-failed";
|
|
201
|
+
"config-missing": "config-missing";
|
|
202
|
+
"graph-gate-denied": "graph-gate-denied";
|
|
203
|
+
"memory-extraction-warning": "memory-extraction-warning";
|
|
204
|
+
"memory-runtime-warning": "memory-runtime-warning";
|
|
205
|
+
"opencode-server-url": "opencode-server-url";
|
|
206
|
+
"opencode-version-read-failed": "opencode-version-read-failed";
|
|
207
|
+
"privacy-inert": "privacy-inert";
|
|
208
|
+
"soak-evidence-rejected": "soak-evidence-rejected";
|
|
209
|
+
"telemetry-warning": "telemetry-warning";
|
|
210
|
+
"telemetry-write-failed": "telemetry-write-failed";
|
|
211
|
+
"unknown-role": "unknown-role";
|
|
212
|
+
}>;
|
|
213
|
+
}, z.core.$strict>;
|
|
163
214
|
export declare const OpenTeamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
164
215
|
v: z.ZodLiteral<1>;
|
|
165
216
|
ts: z.ZodNumber;
|
|
@@ -279,6 +330,31 @@ export declare const OpenTeamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
279
330
|
"observation-rejected": "observation-rejected";
|
|
280
331
|
unknown: "unknown";
|
|
281
332
|
}>;
|
|
333
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
334
|
+
v: z.ZodLiteral<1>;
|
|
335
|
+
ts: z.ZodNumber;
|
|
336
|
+
sessionID: z.ZodString;
|
|
337
|
+
type: z.ZodLiteral<"diagnostic">;
|
|
338
|
+
level: z.ZodEnum<{
|
|
339
|
+
debug: "debug";
|
|
340
|
+
error: "error";
|
|
341
|
+
info: "info";
|
|
342
|
+
warn: "warn";
|
|
343
|
+
}>;
|
|
344
|
+
code: z.ZodEnum<{
|
|
345
|
+
"availability-refresh-failed": "availability-refresh-failed";
|
|
346
|
+
"config-missing": "config-missing";
|
|
347
|
+
"graph-gate-denied": "graph-gate-denied";
|
|
348
|
+
"memory-extraction-warning": "memory-extraction-warning";
|
|
349
|
+
"memory-runtime-warning": "memory-runtime-warning";
|
|
350
|
+
"opencode-server-url": "opencode-server-url";
|
|
351
|
+
"opencode-version-read-failed": "opencode-version-read-failed";
|
|
352
|
+
"privacy-inert": "privacy-inert";
|
|
353
|
+
"soak-evidence-rejected": "soak-evidence-rejected";
|
|
354
|
+
"telemetry-warning": "telemetry-warning";
|
|
355
|
+
"telemetry-write-failed": "telemetry-write-failed";
|
|
356
|
+
"unknown-role": "unknown-role";
|
|
357
|
+
}>;
|
|
282
358
|
}, z.core.$strict>], "type">;
|
|
283
359
|
export type OpenTeamEvent = z.infer<typeof OpenTeamEventSchema>;
|
|
284
360
|
export type RouteEvent = z.infer<typeof RouteEventSchema>;
|
|
@@ -289,5 +365,6 @@ export type DecisionEvent = z.infer<typeof DecisionEventSchema>;
|
|
|
289
365
|
export type ActivityEvent = z.infer<typeof ActivityEventSchema>;
|
|
290
366
|
export type SessionEndpointEvent = z.infer<typeof SessionEndpointEventSchema>;
|
|
291
367
|
export type ShadowDiagnosticEvent = z.infer<typeof ShadowDiagnosticEventSchema>;
|
|
368
|
+
export type DiagnosticEvent = z.infer<typeof DiagnosticEventSchema>;
|
|
292
369
|
export type OpenTeamEventType = OpenTeamEvent["type"];
|
|
293
370
|
//# sourceMappingURL=events.d.ts.map
|
|
@@ -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;
|
|
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,qEAAqE;AACrE,eAAO,MAAM,mBAAmB;;;;;;;;kBAK9B,CAAC;AAEH,oDAAoD;AACpD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;kBAK9B,CAAC;AA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C,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.9.
|
|
3
|
+
"version": "0.9.2",
|
|
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",
|