Skip to content

Commit 62c19ed

Browse files
authored
update dependencies (#236)
Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
1 parent 8e3e3f1 commit 62c19ed

8 files changed

Lines changed: 4566 additions & 5783 deletions

File tree

package-lock.json

Lines changed: 4426 additions & 5464 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/agent/index.ts

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -636,10 +636,7 @@ if (cli.tune) {
636636
* - alternative_rejected: records an approach that was considered but not taken
637637
*/
638638
type TuneCategory =
639-
| "decision"
640-
| "concern"
641-
| "constraint"
642-
| "alternative_rejected";
639+
"decision" | "concern" | "constraint" | "alternative_rejected";
643640

644641
const TUNE_CATEGORIES = new Set<string>([
645642
"decision",
@@ -1181,10 +1178,7 @@ const state = createAgentState(cli, {
11811178
// Wire CLI --reasoning-effort <level> to state.reasoningEffort
11821179
if (cli.reasoningEffort) {
11831180
state.reasoningEffort = cli.reasoningEffort as
1184-
| "low"
1185-
| "medium"
1186-
| "high"
1187-
| "xhigh";
1181+
"low" | "medium" | "high" | "xhigh";
11881182
state.sessionNeedsRebuild = true;
11891183
}
11901184

@@ -5893,8 +5887,7 @@ const generateSkillTool = defineTool("generate_skill", {
58935887
// Optionally save a companion module (delegated to register_module
58945888
// so we get the same validation pipeline + sandbox cache update).
58955889
let moduleResult:
5896-
| { name: string; importAs: string; sizeBytes?: number }
5897-
| undefined;
5890+
{ name: string; importAs: string; sizeBytes?: number } | undefined;
58985891
if (params.companionModule) {
58995892
const m = params.companionModule;
59005893
const moduleSaveResult = (await registerModuleImpl({
@@ -6238,8 +6231,7 @@ function buildSessionConfig() {
62386231
// tags instead of using the native Rust parseHtml() which is faster
62396232
// and more correct.
62406233
const args = toolInput.toolArgs as
6241-
| Record<string, unknown>
6242-
| undefined;
6234+
Record<string, unknown> | undefined;
62436235
const code =
62446236
typeof args?.code === "string"
62456237
? args.code
@@ -6968,8 +6960,7 @@ async function main(): Promise<void> {
69686960
// parameters is a raw JSON Schema object (Record<string, unknown>),
69696961
// not a ZodSchema — safe to access .type directly.
69706962
const params = executeJavascriptTool.parameters as
6971-
| Record<string, unknown>
6972-
| undefined;
6963+
Record<string, unknown> | undefined;
69736964
debugLog(`parameters.type = "${params?.type}"`);
69746965
}
69756966

src/agent/mcp/plugin-adapter.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,7 @@ function generateInputInterface(tool: MCPToolSchema): string | null {
193193
if (!schema || typeof schema !== "object") return null;
194194

195195
const properties = (schema as Record<string, unknown>).properties as
196-
| Record<string, Record<string, unknown>>
197-
| undefined;
196+
Record<string, Record<string, unknown>> | undefined;
198197
if (!properties) return null;
199198

200199
const required = new Set(
@@ -262,8 +261,7 @@ function pascalCase(name: string): string {
262261
*/
263262
function extractParameterSummary(schema: Record<string, unknown>): string {
264263
const properties = schema.properties as
265-
| Record<string, Record<string, unknown>>
266-
| undefined;
264+
Record<string, Record<string, unknown>> | undefined;
267265
if (!properties) return "(no parameters)";
268266

269267
const required = new Set((schema.required as string[]) ?? []);

src/agent/mcp/setup-commands.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1528,8 +1528,7 @@ function loadTokenFromCache(): string | undefined {
15281528
readFileSync(join(M365_TOKENS_DIR, file), "utf8"),
15291529
) as Record<string, unknown>;
15301530
const tokenMap = parsed.AccessToken as
1531-
| Record<string, { secret?: string; expires_on?: string }>
1532-
| undefined;
1531+
Record<string, { secret?: string; expires_on?: string }> | undefined;
15331532
if (!tokenMap) continue;
15341533
for (const entry of Object.values(tokenMap)) {
15351534
if (typeof entry.secret !== "string") continue;

src/agent/mcp/types.ts

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ export interface MCPStdioServerConfig extends MCPServerConfigBase {
5454

5555
/** Supported authentication methods for HTTP MCP servers. */
5656
export type MCPAuthMethod =
57-
| "oauth"
58-
| "workload-identity"
59-
| "client-credentials";
57+
"oauth" | "workload-identity" | "client-credentials";
6058

6159
/**
6260
* OAuth 2.0 user-delegated authentication via MSAL.
@@ -138,9 +136,7 @@ export interface MCPClientCredentialsConfig {
138136

139137
/** Discriminated union of all auth configurations. */
140138
export type MCPAuthConfig =
141-
| MCPOAuthConfig
142-
| MCPWorkloadIdentityConfig
143-
| MCPClientCredentialsConfig;
139+
MCPOAuthConfig | MCPWorkloadIdentityConfig | MCPClientCredentialsConfig;
144140

145141
/**
146142
* Configuration for an MCP server accessible over HTTP (Streamable HTTP).
@@ -234,11 +230,7 @@ export interface MCPToolSchema {
234230

235231
/** Connection state for an MCP server. */
236232
export type MCPConnectionState =
237-
| "idle"
238-
| "connecting"
239-
| "connected"
240-
| "error"
241-
| "closed";
233+
"idle" | "connecting" | "connected" | "error" | "closed";
242234

243235
/** Runtime state for a single MCP server connection. */
244236
export interface MCPConnection {

0 commit comments

Comments
 (0)