Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ts/examples/cacheRESTEndpoint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@typeagent/common-utils": "workspace:*",
"@typeagent/telemetry": "workspace:*",
"agent-dispatcher": "workspace:*",
"body-parser": "1.20.6",
"body-parser": "1.20.9",
"chalk": "^5.4.1",
"debug": "^4.4.0",
"default-agent-provider": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion ts/examples/websiteAliases/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"dependencies": {
"@azure/ai-projects": "^2.2.0",
"@azure/identity": "^4.10.0",
"@azure/identity": "^4.14.1",
"@typeagent/agent-runtime": "workspace:*",
"@typeagent/aiclient": "workspace:*",
"@typeagent/azure-ai-foundry": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion ts/packages/agentSdkWrapper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"mic": "^2.1.2",
"microsoft-cognitiveservices-speech-sdk": "^1.38.0",
"openai": "^4.73.0",
"zod": "^4.1.13"
"zod": "^4.6.6"
},
"devDependencies": {
"@types/node": "^22.20.5",
Expand Down
2 changes: 1 addition & 1 deletion ts/packages/agentServer/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"tsc": "tsc -b"
},
"dependencies": {
"@azure/identity": "^4.10.0",
"@azure/identity": "^4.14.1",
"@typeagent/agent-rpc": "workspace:*",
"@typeagent/agent-runtime": "workspace:*",
"@typeagent/agent-sdk": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions ts/packages/agents/agentUtils/graphUtils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"tsc": "tsc -p src"
},
"dependencies": {
"@azure/identity": "^4.9.1",
"@azure/identity-broker": "^1.4.0",
"@azure/identity": "^4.14.1",
"@azure/identity-broker": "^1.4.3",
"@azure/identity-cache-persistence": "^1.1.1",
"@azure/logger": "^1.1.0",
"@microsoft/microsoft-graph-client": "^3.0.7",
Expand Down
2 changes: 1 addition & 1 deletion ts/packages/agents/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
"ws": "^8.21.3",
"xss": "^1.0.15",
"yaml": "^2.8.3",
"zod": "^4.1.13"
"zod": "^4.6.6"
},
"devDependencies": {
"@fluidframework/build-tools": "^0.57.0",
Expand Down
2 changes: 1 addition & 1 deletion ts/packages/agents/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"@typeagent/agent-sdk": "workspace:*",
"@typeagent/aiclient": "workspace:*",
"@typeagent/typechat-utils": "workspace:*",
"body-parser": "^1.20.6",
"body-parser": "^1.20.9",
"chalk": "^5.4.1",
"cors": "^2.8.5",
"debug": "^4.4.0",
Expand Down
2 changes: 1 addition & 1 deletion ts/packages/agents/montage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@typeagent/knowledge-processor": "workspace:*",
"@typeagent/knowpro": "workspace:*",
"@typeagent/websocket-utils": "workspace:*",
"body-parser": "1.20.6",
"body-parser": "1.20.9",
"d3": "^7.9.0",
"d3-cloud": "^1.2.7",
"debug": "^4.4.0",
Expand Down
2 changes: 1 addition & 1 deletion ts/packages/aiclient/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"tsc": "tsc -b"
},
"dependencies": {
"@azure/identity": "^4.10.0",
"@azure/identity": "^4.14.1",
"@github/copilot-sdk": "1.0.13",
"@opentelemetry/api": "1.9.0",
"@typeagent/common-utils": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion ts/packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"dependencies": {
"@aws-sdk/client-s3": "^3.726.0",
"@aws-sdk/lib-storage": "^3.726.0",
"@azure/identity": "^4.9.1",
"@azure/identity": "^4.14.1",
"@azure/storage-blob": "^12.26.0",
"@typeagent/agent-cache": "workspace:*",
"@typeagent/agent-rpc": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion ts/packages/azure-ai-foundry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"dependencies": {
"@azure/ai-projects": "^2.2.0",
"@azure/identity": "^4.10.0",
"@azure/identity": "^4.14.1",
"@typeagent/agent-runtime": "workspace:*",
"@typeagent/agent-sdk": "workspace:*",
"@typeagent/aiclient": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion ts/packages/benchmarks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"gpt-tokenizer": "^2.9.0",
"hyparquet": "^1.30.0",
"js-yaml": "^4.3.2",
"zod": "^4.1.13"
"zod": "^4.6.6"
},
"devDependencies": {
"@jest/globals": "^29.7.0",
Expand Down
2 changes: 1 addition & 1 deletion ts/packages/coda/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"dependencies": {
"@typeagent/agent-server-client": "workspace:*",
"@typeagent/agent-server-protocol": "workspace:*",
"body-parser": "^1.20.6",
"body-parser": "^1.20.9",
"chalk": "^5.4.1",
"cors": "^2.8.5",
"debug": "^4.4.0",
Expand Down
2 changes: 1 addition & 1 deletion ts/packages/commandExecutor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"dotenv": "^16.3.1",
"html-to-text": "^9.0.5",
"isomorphic-ws": "^5.0.0",
"zod": "^4.1.13"
"zod": "^4.6.6"
},
"devDependencies": {
"@jest/globals": "^29.7.0",
Expand Down
2 changes: 1 addition & 1 deletion ts/packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"debug": "^4.4.0",
"dotenv": "^16.3.1",
"js-yaml": "^4.3.2",
"zod": "^3.23.8"
"zod": "^4.6.6"
},
"devDependencies": {
"@types/debug": "^4.1.12",
Expand Down
1 change: 1 addition & 0 deletions ts/packages/config/src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const scalarSchema: z.ZodType<string | number | boolean | null> = z.union([

const treeWithScalarArraysSchema: z.ZodType<unknown> = z.lazy(() =>
z.record(
z.string(),
z.union([
scalarSchema,
treeWithScalarArraysSchema,
Expand Down
2 changes: 1 addition & 1 deletion ts/packages/copilot-macros/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@typeagent/action-grammar": "workspace:*",
"@typeagent/action-schema": "workspace:*",
"typescript": "~5.4.5",
"zod": "^4.1.13"
"zod": "^4.6.6"
},
"devDependencies": {
"@types/jest": "^29.5.7",
Expand Down
2 changes: 1 addition & 1 deletion ts/packages/copilot-memory-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@typeagent/config": "workspace:*",
"@typeagent/conversation-memory": "workspace:*",
"proper-lockfile": "^4.1.2",
"zod": "^3.25.0"
"zod": "^4.6.6"
},
"devDependencies": {
"@jest/globals": "^29.7.0",
Expand Down
2 changes: 1 addition & 1 deletion ts/packages/copilot-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@typeagent/dispatcher-types": "workspace:*",
"html-to-text": "^9.0.5",
"yaml": "^2.8.3",
"zod": "^3.25.0"
"zod": "^4.6.6"
},
"devDependencies": {
"@github/copilot-sdk": "1.0.13",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export type LocalRecipeMatch =
| { status: "ambiguous"; message: string }
| { status: "handled"; result: RunMacroResponse };

function operation<S extends z.ZodTypeAny>(
function operation<S extends z.ZodType>(
schema: S,
handler: (args: z.output<S>) => unknown,
): (args: unknown[]) => Promise<unknown> {
Expand Down Expand Up @@ -330,7 +330,7 @@ export async function createLocalRecipeService(
ref
.extend({
runId: id,
inputs: z.record(z.unknown()).optional(),
inputs: z.record(z.string(), z.unknown()).optional(),
timeoutMs: z.number().positive().max(60_000).optional(),
dryRun: z.boolean().optional(),
})
Expand Down
2 changes: 1 addition & 1 deletion ts/packages/copilot-plugin/src/mcp/macroServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ export class TypeAgentMacroMcpServer {
{
macroId: z.string().min(1),
version: z.number().int().positive().optional(),
inputs: z.record(z.unknown()).optional(),
inputs: z.record(z.string(), z.unknown()).optional(),
timeoutMs: z.number().int().positive().max(60_000).optional(),
dryRun: z.boolean().optional(),
},
Expand Down
6 changes: 3 additions & 3 deletions ts/packages/copilot-plugin/src/mcp/structuredActionTools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const response = z.discriminatedUnion("type", [
type: z.literal("form"),
value: z
.object({
answers: z.record(fieldAnswer),
answers: z.record(z.string(), fieldAnswer),
cancelled: z.boolean().optional(),
})
.strict(),
Expand Down Expand Up @@ -104,7 +104,7 @@ export function registerStructuredActionTools(
mode: () => Mode = getMode,
): void {
// MCP arguments are JSON: optional properties are absent, never undefined.
// Zod 3 adds undefined to optional inferred types, so the calls below narrow
// Zod adds undefined to optional inferred types, so the calls below narrow
// only that type-level difference. Dispatcher validates the actual contract.
async function invoke(
operation: (
Expand Down Expand Up @@ -190,7 +190,7 @@ export function registerStructuredActionTools(
.object({
...identity,
...envelope,
parameters: z.record(z.unknown()).optional(),
parameters: z.record(z.string(), z.unknown()).optional(),
})
.strict(),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const jsonSchema: z.ZodType<JsonValue> = z.lazy(() =>
z.number().finite(),
z.string(),
z.array(jsonSchema),
z.record(jsonSchema),
z.record(z.string(), jsonSchema),
]),
);

Expand Down
2 changes: 1 addition & 1 deletion ts/packages/defaultAgentProvider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
"windowsclock-agent": "workspace:*",
"workflow-agent": "workspace:*",
"ws": "^8.21.3",
"zod": "^4.1.13"
"zod": "^4.6.6"
},
"devDependencies": {
"@jest/globals": "^29.7.0",
Expand Down
4 changes: 2 additions & 2 deletions ts/packages/dispatcher/dispatcher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@azure/core-client": "^1.10.0",
"@azure/core-rest-pipeline": "^1.22.0",
"@azure/cosmos": "^4.2.1",
"@azure/identity": "^4.10.0",
"@azure/identity": "^4.14.1",
"@github/copilot-sdk": "1.0.13",
"@modelcontextprotocol/sdk": "^1.32.0",
"@opentelemetry/api": "1.9.0",
Expand Down Expand Up @@ -83,7 +83,7 @@
"proper-lockfile": "^4.1.2",
"string-width": "^7.2.0",
"typechat": "^0.1.1",
"zod": "^4.1.13"
"zod": "^4.6.6"
},
"devDependencies": {
"@jest/globals": "^29.7.0",
Expand Down
2 changes: 1 addition & 1 deletion ts/packages/git-story/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"commander": "^12.1.0",
"hono": "^4.13.13",
"tirith": "0.4.2",
"zod": "^4.1.13"
"zod": "^4.6.6"
},
"devDependencies": {
"@github/copilot-sdk": "1.0.13",
Expand Down
4 changes: 2 additions & 2 deletions ts/packages/grammarTools/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"@open-wc/testing": "^4.0.0",
"@types/jest": "^29.5.0",
"@types/mocha": "^10.0.0",
"@web/test-runner": "^0.19.0",
"@web/test-runner-playwright": "^0.11.0",
"@web/test-runner": "^1.0.1",
"@web/test-runner-playwright": "^1.0.2",
"jest": "^29.7.0",
"rimraf": "^5.0.5",
"typescript": "~5.4.5",
Expand Down
2 changes: 1 addition & 1 deletion ts/packages/knowProTest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@typeagent/knowledge-processor": "workspace:*",
"@typeagent/knowpro": "workspace:*",
"interactive-app": "workspace:*",
"typechat": "0.1.1"
"typechat": "0.1.3"
},
"devDependencies": {
"copyfiles": "^2.4.1",
Expand Down
2 changes: 1 addition & 1 deletion ts/packages/memory/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"dependencies": {
"@modelcontextprotocol/client": "^2.3.1",
"@typeagent/memory-service": "workspace:*",
"zod": "^4.1.13"
"zod": "^4.6.6"
},
"devDependencies": {
"prettier": "^3.5.3",
Expand Down
4 changes: 3 additions & 1 deletion ts/packages/memory/mcp-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ Existing `memory_search`, `memory_answer` and generic result construction are un
Preview budgets are enforced on serialized UTF-8 data: 8 KiB model-facing
wrapper, 32 KiB initial UI model, 64 KiB expansion and 400 KiB renderer.
The original 200 KiB renderer target was raised because the compatible official
bridge and its validation dependencies exceed it. Whole claims/sections are
bridge and its validation dependencies exceed it. The English-language renderer
bundles only Zod's English error messages; server-side validation is unchanged.
Whole claims/sections are
omitted explicitly rather than sliced. Expansion is bounded to six timeline
entries or eight graph nodes/ten edges.

Expand Down
2 changes: 1 addition & 1 deletion ts/packages/memory/mcp-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@typeagent/config": "workspace:*",
"@typeagent/memory-client": "workspace:*",
"@typeagent/memory-service": "workspace:*",
"zod": "^4.1.13"
"zod": "^4.6.6"
},
"devDependencies": {
"@types/jest": "^29.5.7",
Expand Down
17 changes: 17 additions & 0 deletions ts/packages/memory/mcp-server/scripts/buildPreview.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import { build } from "esbuild";
import { createHash } from "node:crypto";
import { mkdir, writeFile } from "node:fs/promises";
import { dirname } from "node:path";

const bundle = await build({
entryPoints: ["src/previewApp.ts"],
Expand All @@ -14,6 +15,22 @@ const bundle = await build({
platform: "browser",
target: "es2022",
charset: "utf8",
plugins: [
{
name: "preview-zod-locales",
setup(build) {
// The preview is English-only. The MCP SDK imports Zod's
// namespace, which otherwise bundles every error translation.
build.onLoad(
{ filter: /[\\/]zod[\\/]v4[\\/]locales[\\/]index\.js$/ },
({ path }) => ({
contents: 'export { default as en } from "./en.js";',
resolveDir: dirname(path),
}),
);
},
},
],
});
const script = bundle.outputFiles[0].text.replaceAll("</script", "<\\/script");
const css = `body{font:14px/1.5 var(--font-sans,system-ui);color:var(--color-text-primary,#202124);background:var(--color-background-primary,#fff);margin:16px;overflow-wrap:anywhere}button{font:inherit;color:inherit;background:var(--color-background-secondary,#f4f4f4);border:1px solid var(--color-border-primary,#999);border-radius:8px;padding:6px 10px;margin:4px;cursor:pointer}button:focus-visible{outline:2px solid currentColor;outline-offset:2px}h2{font-size:1.2rem}section{border-top:1px solid var(--color-border-primary,#aaa);padding-top:8px;margin-top:12px}small{display:block}pre{white-space:pre-wrap}ol,ul{padding-left:22px}`;
Expand Down
2 changes: 1 addition & 1 deletion ts/packages/security/mcpValidation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"@modelcontextprotocol/sdk": "^1.32.0",
"fast-glob": "^3.3.3",
"validation": "workspace:*",
"zod": "^3.24.4"
"zod": "^4.6.6"
},
"devDependencies": {
"@anthropic-ai/claude-agent-sdk": "^0.3.150",
Expand Down
2 changes: 1 addition & 1 deletion ts/packages/shell/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"typecheck:web": "tsc -p tsconfig.web.json"
},
"dependencies": {
"@azure/identity": "^4.10.0",
"@azure/identity": "^4.14.1",
"@azure/msal-node-extensions": "^1.5.0",
"@electron-toolkit/preload": "^3.0.2",
"@typeagent/agent-rpc": "workspace:*",
Expand Down
Loading
Loading