veryfront 0.1.656 → 0.1.658
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/esm/cli/sync/ignore.d.ts.map +1 -1
- package/esm/cli/sync/ignore.js +66 -18
- package/esm/cli/templates/manifest.js +2 -2
- package/esm/deno.js +3 -3
- package/esm/src/agent/ag-ui/request-shared.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/request-shared.js +1 -2
- package/esm/src/agent/conversation/run-chunk-mirror.d.ts +2 -2
- package/esm/src/agent/conversation/run-chunk-mirror.d.ts.map +1 -1
- package/esm/src/agent/conversation/run-mirror.d.ts +1 -1
- package/esm/src/agent/conversation/run-mirror.d.ts.map +1 -1
- package/esm/src/agent/conversation/run-mirror.js +2 -1
- package/esm/src/agent/conversation/run-stream-mirror.d.ts +2 -2
- package/esm/src/agent/conversation/run-stream-mirror.d.ts.map +1 -1
- package/esm/src/agent/hosted/chat-execution-runtime.d.ts.map +1 -1
- package/esm/src/agent/hosted/chat-execution-runtime.js +3 -1
- package/esm/src/agent/hosted/chat-preparation.d.ts +12 -0
- package/esm/src/agent/hosted/chat-preparation.d.ts.map +1 -1
- package/esm/src/agent/hosted/chat-preparation.js +39 -2
- package/esm/src/agent/hosted/child-fork-execution-runner.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-fork-execution-runner.js +3 -1
- package/esm/src/agent/hosted/child-lifecycle.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-lifecycle.js +15 -2
- package/esm/src/agent/hosted/context-budget-manager.d.ts +60 -0
- package/esm/src/agent/hosted/context-budget-manager.d.ts.map +1 -0
- package/esm/src/agent/hosted/context-budget-manager.js +273 -0
- package/esm/src/agent/hosted/durable-child-fork-execution.d.ts.map +1 -1
- package/esm/src/agent/hosted/durable-child-fork-execution.js +19 -2
- package/esm/src/agent/index.d.ts +6 -4
- package/esm/src/agent/index.d.ts.map +1 -1
- package/esm/src/agent/index.js +6 -4
- package/esm/src/agent/runtime/message-adapter.d.ts +1 -1
- package/esm/src/agent/runtime/message-adapter.d.ts.map +1 -1
- package/esm/src/chat/message-prep.js +2 -2
- package/esm/src/chat/provider-errors.d.ts.map +1 -1
- package/esm/src/chat/provider-errors.js +12 -0
- package/esm/src/internal-agents/run-stream.d.ts.map +1 -1
- package/esm/src/internal-agents/run-stream.js +7 -1
- package/esm/src/mcp/http-transport.d.ts +1 -1
- package/esm/src/mcp/http-transport.d.ts.map +1 -1
- package/esm/src/mcp/http-transport.js +4 -3
- package/esm/src/mcp/index.d.ts +2 -2
- package/esm/src/mcp/index.js +2 -2
- package/esm/src/mcp/server.d.ts +4 -6
- package/esm/src/mcp/server.d.ts.map +1 -1
- package/esm/src/mcp/server.js +42 -14
- package/esm/src/resource/index.d.ts +2 -2
- package/esm/src/resource/index.js +2 -2
- package/esm/src/resource/registry.d.ts.map +1 -1
- package/esm/src/resource/registry.js +5 -1
- package/esm/src/routing/api/module-loader/external-import-rewriter.d.ts.map +1 -1
- package/esm/src/routing/api/module-loader/external-import-rewriter.js +59 -59
- package/esm/src/security/client/html-sanitizer.d.ts +1 -0
- package/esm/src/security/client/html-sanitizer.d.ts.map +1 -1
- package/esm/src/security/client/html-sanitizer.js +44 -6
- package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.d.ts.map +1 -1
- package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.js +2 -2
- package/esm/src/server/services/rsc/orchestrators/page-handler.d.ts.map +1 -1
- package/esm/src/server/services/rsc/orchestrators/page-handler.js +3 -21
- package/esm/src/tool/factory.d.ts.map +1 -1
- package/esm/src/tool/factory.js +3 -35
- package/esm/src/tool/host-tools.d.ts.map +1 -1
- package/esm/src/tool/host-tools.js +2 -11
- package/esm/src/tool/index.d.ts +12 -8
- package/esm/src/tool/index.d.ts.map +1 -1
- package/esm/src/tool/index.js +12 -8
- package/esm/src/tool/schema/zod-json-schema.d.ts +6 -11
- package/esm/src/tool/schema/zod-json-schema.d.ts.map +1 -1
- package/esm/src/tool/schema/zod-json-schema.js +7 -37
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ignore.d.ts","sourceRoot":"","sources":["../../../src/cli/sync/ignore.ts"],"names":[],"mappings":"AAAA;;GAEG;AAyDH,MAAM,WAAW,aAAa;IAC5B,wCAAwC;IACxC,SAAS,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC;IAEzC,6CAA6C;IAC7C,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CACjD;
|
|
1
|
+
{"version":3,"file":"ignore.d.ts","sourceRoot":"","sources":["../../../src/cli/sync/ignore.ts"],"names":[],"mappings":"AAAA;;GAEG;AAyDH,MAAM,WAAW,aAAa;IAC5B,wCAAwC;IACxC,SAAS,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC;IAEzC,6CAA6C;IAC7C,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CACjD;AAOD;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAoB/E;AAmED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,aAAa,CAyB9E;AAED;;GAEG;AACH,wBAAgB,0BAA0B,IAAI,aAAa,CAE1D"}
|
package/esm/cli/sync/ignore.js
CHANGED
|
@@ -74,35 +74,83 @@ export async function loadIgnorePatterns(projectPath) {
|
|
|
74
74
|
}
|
|
75
75
|
return patterns;
|
|
76
76
|
}
|
|
77
|
-
/**
|
|
78
|
-
* Escape special regex characters
|
|
79
|
-
*/
|
|
80
77
|
function escapeRegex(str) {
|
|
81
78
|
return str.replace(/[.+^${}()|[\]\\]/g, "\\$&");
|
|
82
79
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
80
|
+
function globToRegex(pattern) {
|
|
81
|
+
let source = "";
|
|
82
|
+
for (let i = 0; i < pattern.length; i++) {
|
|
83
|
+
const char = pattern.charAt(i);
|
|
84
|
+
const next = pattern[i + 1];
|
|
85
|
+
if (char === "*") {
|
|
86
|
+
if (next === "*") {
|
|
87
|
+
const following = pattern[i + 2];
|
|
88
|
+
if (following === "/") {
|
|
89
|
+
source += "(?:.*/)?";
|
|
90
|
+
i += 2;
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
source += ".*";
|
|
94
|
+
i += 1;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
source += "[^/]*";
|
|
99
|
+
}
|
|
100
|
+
continue;
|
|
101
|
+
}
|
|
102
|
+
if (char === "?") {
|
|
103
|
+
source += "[^/]";
|
|
104
|
+
continue;
|
|
105
|
+
}
|
|
106
|
+
source += escapeRegex(char);
|
|
90
107
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
108
|
+
return source;
|
|
109
|
+
}
|
|
110
|
+
function patternToRule(rawPattern) {
|
|
111
|
+
let pattern = rawPattern.trim();
|
|
112
|
+
if (!pattern || pattern.startsWith("#"))
|
|
113
|
+
return null;
|
|
114
|
+
const negated = pattern.startsWith("!");
|
|
115
|
+
if (negated)
|
|
116
|
+
pattern = pattern.slice(1);
|
|
117
|
+
if (!pattern)
|
|
118
|
+
return null;
|
|
119
|
+
const anchored = pattern.startsWith("/");
|
|
120
|
+
if (anchored)
|
|
121
|
+
pattern = pattern.slice(1);
|
|
122
|
+
const directoryOnly = pattern.endsWith("/");
|
|
123
|
+
if (directoryOnly)
|
|
124
|
+
pattern = pattern.slice(0, -1);
|
|
125
|
+
if (!pattern)
|
|
126
|
+
return null;
|
|
127
|
+
const hasSlash = pattern.includes("/");
|
|
128
|
+
const hasGlob = /[*?]/.test(pattern);
|
|
129
|
+
const body = globToRegex(pattern);
|
|
130
|
+
const prefix = anchored ? "^" : "(^|/)";
|
|
131
|
+
const suffix = directoryOnly || (!hasSlash && !hasGlob) ? "(/|$)" : "$";
|
|
132
|
+
return {
|
|
133
|
+
negated,
|
|
134
|
+
regex: new RegExp(`${prefix}${body}${suffix}`),
|
|
135
|
+
};
|
|
97
136
|
}
|
|
98
137
|
/**
|
|
99
138
|
* Create an ignore checker with loaded patterns
|
|
100
139
|
*/
|
|
101
140
|
export function createIgnoreChecker(patterns) {
|
|
102
|
-
const
|
|
141
|
+
const rules = patterns.flatMap((pattern) => {
|
|
142
|
+
const rule = patternToRule(pattern);
|
|
143
|
+
return rule ? [rule] : [];
|
|
144
|
+
});
|
|
103
145
|
function isIgnored(relativePath) {
|
|
104
146
|
const normalizedPath = relativePath.replace(/\\/g, "/");
|
|
105
|
-
|
|
147
|
+
let ignored = false;
|
|
148
|
+
for (const rule of rules) {
|
|
149
|
+
if (!rule.regex.test(normalizedPath))
|
|
150
|
+
continue;
|
|
151
|
+
ignored = !rule.negated;
|
|
152
|
+
}
|
|
153
|
+
return ignored;
|
|
106
154
|
}
|
|
107
155
|
function isSupportedExtension(filename) {
|
|
108
156
|
const lastDot = filename.lastIndexOf(".");
|
|
@@ -264,7 +264,7 @@ export default {
|
|
|
264
264
|
"tools/create-pr.ts": "import { tool } from \"veryfront/tool\";\nimport { defineSchema } from \"veryfront/schemas\";\nimport { createGitHubClient } from \"../../lib/github-client.ts\";\nimport { requireUserIdFromContext } from \"../../lib/user-id.ts\";\n\nexport default tool({\n id: \"create-pr\",\n description: \"Create a new pull request in a GitHub repository\",\n inputSchema: defineSchema((v) =>\n v.object({\n repo: v\n .string()\n .describe(\"Repository in format 'owner/repo' (e.g., 'facebook/react')\"),\n title: v.string().min(1).describe(\"Pull request title\"),\n head: v\n .string()\n .describe(\n \"Branch to merge from (e.g., 'feature-branch' or 'owner:feature-branch')\",\n ),\n base: v.string().describe(\"Branch to merge into (e.g., 'main')\"),\n body: v\n .string()\n .optional()\n .describe(\"Pull request description (supports Markdown)\"),\n draft: v\n .boolean()\n .default(false)\n .optional()\n .describe(\"Create as a draft pull request\"),\n })\n )(),\n execute: async ({ repo, title, head, base, body, draft }, context) => {\n const userId = requireUserIdFromContext(context);\n const [owner, repoName] = repo.split(\"/\");\n\n if (!owner || !repoName) {\n return { error: \"Invalid repository format. Use 'owner/repo' format.\" };\n }\n\n try {\n const github = createGitHubClient(userId);\n const pr = await github.createPullRequest(owner, repoName, {\n title,\n head,\n base,\n body,\n draft,\n });\n\n return {\n success: true,\n number: pr.number,\n title: pr.title,\n url: pr.html_url,\n state: pr.state,\n isDraft: pr.draft,\n sourceBranch: pr.head.ref,\n targetBranch: pr.base.ref,\n message: `Pull request #${pr.number} created successfully in ${repo}.`,\n };\n } catch (error) {\n if (error instanceof Error && error.message.includes(\"not connected\")) {\n return {\n error: \"GitHub not connected. Please connect your GitHub account.\",\n connectUrl: \"/api/auth/github\",\n };\n }\n throw error;\n }\n },\n});\n",
|
|
265
265
|
"tools/get-current-user.ts": "import { tool } from \"veryfront/tool\";\nimport { defineSchema } from \"veryfront/schemas\";\nimport { createGitHubClient } from \"../../lib/github-client.ts\";\nimport { requireUserIdFromContext } from \"../../lib/user-id.ts\";\n\nexport default tool({\n id: \"get-current-user\",\n description: \"Get the authenticated GitHub user identity\",\n inputSchema: defineSchema((v) => v.object({}))(),\n execute: async (_input, context) => {\n const userId = requireUserIdFromContext(context);\n\n try {\n const github = createGitHubClient(userId);\n const user = await github.getUser();\n\n return {\n user: {\n id: user.id,\n nodeId: user.node_id,\n login: user.login,\n name: user.name ?? null,\n email: user.email ?? null,\n url: user.html_url,\n avatarUrl: user.avatar_url,\n type: user.type,\n },\n };\n } catch (error) {\n if (error instanceof Error && error.message.includes(\"not connected\")) {\n return {\n error: \"GitHub not connected. Please connect your GitHub account.\",\n connectUrl: \"/api/auth/github\",\n };\n }\n throw error;\n }\n },\n});\n",
|
|
266
266
|
"tools/get-issue.ts": "import { tool } from \"veryfront/tool\";\nimport { defineSchema } from \"veryfront/schemas\";\nimport { createGitHubClient } from \"../../lib/github-client.ts\";\nimport { requireUserIdFromContext } from \"../../lib/user-id.ts\";\n\nexport default tool({\n id: \"get-issue\",\n description: \"Get details of a GitHub issue\",\n inputSchema: defineSchema((v) =>\n v.object({\n repo: v.string().describe(\"Repository in format 'owner/repo'\"),\n issueNumber: v.number().int().positive().describe(\"Issue number\"),\n })\n )(),\n execute: async ({ repo, issueNumber }, context) => {\n const userId = requireUserIdFromContext(context);\n const [owner, repoName] = repo.split(\"/\");\n if (!owner || !repoName) {\n return { error: \"Invalid repository format. Use 'owner/repo' format.\" };\n }\n\n try {\n const github = createGitHubClient(userId);\n const issue = await github.getIssue(owner, repoName, issueNumber);\n return {\n issue: {\n number: issue.number,\n title: issue.title,\n body: issue.body,\n state: issue.state,\n url: issue.html_url,\n author: issue.user.login,\n labels: issue.labels.map((label: { name: string }) => label.name),\n assignees: issue.assignees.map((assignee: { login: string }) =>\n assignee.login\n ),\n updatedAt: issue.updated_at,\n },\n };\n } catch (error) {\n if (error instanceof Error && error.message.includes(\"not connected\")) {\n return {\n error: \"GitHub not connected. Please connect your GitHub account.\",\n connectUrl: \"/api/auth/github\",\n };\n }\n throw error;\n }\n },\n});\n",
|
|
267
|
-
"tools/get-pr-diff.ts": "import { tool } from \"veryfront/tool\";\nimport { defineSchema } from \"veryfront/schemas\";\nimport { createGitHubClient } from \"../../lib/github-client.ts\";\nimport { requireUserIdFromContext } from \"../../lib/user-id.ts\";\n\nexport default tool({\n id: \"get-pr-diff\",\n description: \"Get the diff for a pull request to review code changes\",\n inputSchema: defineSchema((v) =>\n v.object({\n repo: v\n .string()\n .describe(\"Repository in format 'owner/repo' (e.g., 'facebook/react')\"),\n prNumber: v.number().int().positive().describe(\"Pull request number\"),\n })\n )(),\n execute: async ({ repo, prNumber }, context) => {\n const userId = requireUserIdFromContext(context);\n\n const [owner, repoName] = repo.split(\"/\");\n if (!owner || !repoName) {\n return { error: \"Invalid repository format. Use 'owner/repo' format.\" };\n }\n\n try {\n const github = createGitHubClient(userId);\n\n const pr = await github.getPullRequest(owner, repoName, prNumber);\n const diff = await github.getPullRequestDiff(owner, repoName, prNumber);\n\n
|
|
267
|
+
"tools/get-pr-diff.ts": "import { tool } from \"veryfront/tool\";\nimport { defineSchema } from \"veryfront/schemas\";\nimport { createGitHubClient } from \"../../lib/github-client.ts\";\nimport { requireUserIdFromContext } from \"../../lib/user-id.ts\";\n\nexport default tool({\n id: \"get-pr-diff\",\n description: \"Get the diff for a pull request to review code changes\",\n inputSchema: defineSchema((v) =>\n v.object({\n repo: v\n .string()\n .describe(\"Repository in format 'owner/repo' (e.g., 'facebook/react')\"),\n prNumber: v.number().int().positive().describe(\"Pull request number\"),\n })\n )(),\n execute: async ({ repo, prNumber }, context) => {\n const userId = requireUserIdFromContext(context);\n\n const [owner, repoName] = repo.split(\"/\");\n if (!owner || !repoName) {\n return { error: \"Invalid repository format. Use 'owner/repo' format.\" };\n }\n\n try {\n const github = createGitHubClient(userId);\n\n const pr = await github.getPullRequest(owner, repoName, prNumber);\n const diff = await github.getPullRequestDiff(owner, repoName, prNumber);\n\n return {\n pullRequest: {\n number: pr.number,\n title: pr.title,\n author: pr.user.login,\n url: pr.html_url,\n sourceBranch: pr.head.ref,\n targetBranch: pr.base.ref,\n additions: pr.additions,\n deletions: pr.deletions,\n changedFiles: pr.changed_files,\n isDraft: pr.draft,\n state: pr.state,\n },\n diff,\n stats: {\n additions: pr.additions,\n deletions: pr.deletions,\n changedFiles: pr.changed_files,\n },\n message:\n `Retrieved diff for PR #${prNumber} (${pr.additions} additions, ${pr.deletions} deletions across ${pr.changed_files} files).`,\n };\n } catch (error) {\n if (error instanceof Error && error.message.includes(\"not connected\")) {\n return {\n error: \"GitHub not connected. Please connect your GitHub account.\",\n connectUrl: \"/api/auth/github\",\n };\n }\n throw error;\n }\n },\n});\n",
|
|
268
268
|
"tools/get-pr.ts": "import { tool } from \"veryfront/tool\";\nimport { defineSchema } from \"veryfront/schemas\";\nimport { createGitHubClient } from \"../../lib/github-client.ts\";\nimport { requireUserIdFromContext } from \"../../lib/user-id.ts\";\n\nexport default tool({\n id: \"get-pr\",\n description: \"Get details of a specific GitHub pull request\",\n inputSchema: defineSchema((v) =>\n v.object({\n repo: v\n .string()\n .describe(\"Repository in format 'owner/repo' (e.g., 'facebook/react')\"),\n pull_number: v.number().int().positive().describe(\"Pull request number\"),\n })\n )(),\n execute: async ({ repo, pull_number }, context) => {\n const userId = requireUserIdFromContext(context);\n const [owner, repoName] = repo.split(\"/\");\n\n if (!owner || !repoName) {\n return { error: \"Invalid repository format. Use 'owner/repo' format.\" };\n }\n\n try {\n const github = createGitHubClient(userId);\n const pr = await github.getPullRequest(owner, repoName, pull_number);\n\n return {\n number: pr.number,\n title: pr.title,\n body: pr.body,\n state: pr.state,\n isDraft: pr.draft,\n url: pr.html_url,\n author: pr.user.login,\n createdAt: pr.created_at,\n updatedAt: pr.updated_at,\n sourceBranch: pr.head.ref,\n targetBranch: pr.base.ref,\n mergeable: pr.mergeable,\n additions: pr.additions,\n deletions: pr.deletions,\n changedFiles: pr.changed_files,\n labels: pr.labels.map(({ name }) => name),\n };\n } catch (error) {\n if (error instanceof Error && error.message.includes(\"not connected\")) {\n return {\n error: \"GitHub not connected. Please connect your GitHub account.\",\n connectUrl: \"/api/auth/github\",\n };\n }\n throw error;\n }\n },\n});\n",
|
|
269
269
|
"tools/get-repo.ts": "import { tool } from \"veryfront/tool\";\nimport { defineSchema } from \"veryfront/schemas\";\nimport { createGitHubClient } from \"../../lib/github-client.ts\";\nimport { requireUserIdFromContext } from \"../../lib/user-id.ts\";\n\nexport default tool({\n id: \"get-repo\",\n description: \"Get details of a GitHub repository\",\n inputSchema: defineSchema((v) =>\n v.object({\n repo: v\n .string()\n .describe(\"Repository in format 'owner/repo' (e.g., 'facebook/react')\"),\n })\n )(),\n execute: async ({ repo }, context) => {\n const userId = requireUserIdFromContext(context);\n const [owner, repoName] = repo.split(\"/\");\n\n if (!owner || !repoName) {\n return { error: \"Invalid repository format. Use 'owner/repo' format.\" };\n }\n\n try {\n const github = createGitHubClient(userId);\n const result = await github.getRepo(owner, repoName);\n\n return {\n repository: {\n name: result.name,\n fullName: result.full_name,\n description: result.description ?? null,\n isPrivate: result.private,\n url: result.html_url,\n defaultBranch: result.default_branch,\n language: result.language,\n stars: result.stargazers_count,\n forks: result.forks_count,\n openIssues: result.open_issues_count,\n updatedAt: result.updated_at,\n },\n };\n } catch (error) {\n if (error instanceof Error && error.message.includes(\"not connected\")) {\n return {\n error: \"GitHub not connected. Please connect your GitHub account.\",\n connectUrl: \"/api/auth/github\",\n };\n }\n throw error;\n }\n },\n});\n",
|
|
270
270
|
"tools/get-user.ts": "import { tool } from \"veryfront/tool\";\nimport { defineSchema } from \"veryfront/schemas\";\nimport { createGitHubClient } from \"../../lib/github-client.ts\";\nimport { requireUserIdFromContext } from \"../../lib/user-id.ts\";\n\nexport default tool({\n id: \"get-user\",\n description: \"Get a GitHub user profile by username\",\n inputSchema: defineSchema((v) =>\n v.object({\n username: v.string().describe(\"GitHub username/login to look up\"),\n })\n )(),\n execute: async ({ username }, context) => {\n const userId = requireUserIdFromContext(context);\n\n try {\n const github = createGitHubClient(userId);\n const result = await github.getUserByUsername(username);\n\n return {\n user: {\n login: result.login,\n id: result.id,\n name: result.name ?? null,\n type: result.type,\n url: result.html_url,\n avatarUrl: result.avatar_url,\n company: result.company ?? null,\n blog: result.blog || null,\n location: result.location ?? null,\n email: result.email ?? null,\n bio: result.bio ?? null,\n twitterUsername: result.twitter_username ?? null,\n publicRepos: result.public_repos,\n followers: result.followers,\n following: result.following,\n createdAt: result.created_at,\n updatedAt: result.updated_at,\n },\n };\n } catch (error) {\n if (error instanceof Error && error.message.includes(\"not connected\")) {\n return {\n error: \"GitHub not connected. Please connect your GitHub account.\",\n connectUrl: \"/api/auth/github\",\n };\n }\n throw error;\n }\n },\n});\n",
|
|
@@ -483,7 +483,7 @@ export default {
|
|
|
483
483
|
"app/api/auth/sharepoint/callback/route.ts": "import { createOAuthCallbackHandler, sharePointConfig } from \"veryfront/oauth\";\nimport { tokenStore } from \"../../../../../lib/token-store.ts\";\nimport { oauthMemoryTokenStore } from \"../../../../../lib/oauth-memory-store.ts\";\n\nconst hybridTokenStore = {\n getTokens(serviceId: string, userId: string) {\n return tokenStore.getToken(userId, serviceId);\n },\n async setTokens(\n serviceId: string,\n userId: string,\n tokens: { accessToken: string; refreshToken?: string; expiresAt?: number },\n ) {\n await tokenStore.setToken(userId, serviceId, tokens);\n },\n async clearTokens(serviceId: string, userId: string) {\n await tokenStore.revokeToken(userId, serviceId);\n },\n setState(\n state: string,\n meta: {\n userId: string;\n serviceId: string;\n codeVerifier?: string;\n redirectUri?: string;\n scopes?: string[];\n createdAt: number;\n },\n ) {\n return oauthMemoryTokenStore.setState(state, meta);\n },\n consumeState(state: string) {\n return oauthMemoryTokenStore.consumeState(state);\n },\n};\n\nexport const GET = createOAuthCallbackHandler(sharePointConfig, { tokenStore: hybridTokenStore });\n",
|
|
484
484
|
"app/api/auth/sharepoint/route.ts": "import { createOAuthInitHandler, sharePointConfig } from \"veryfront/oauth\";\nimport { oauthMemoryTokenStore } from \"../../../../../lib/oauth-memory-store.ts\";\nimport { requireUserIdFromRequest } from \"../../../../../lib/user-id.ts\";\n\nfunction getUserId(request: Request): string {\n return requireUserIdFromRequest(request);\n}\n\nexport const GET = createOAuthInitHandler(sharePointConfig, {\n tokenStore: oauthMemoryTokenStore,\n getUserId,\n});",
|
|
485
485
|
"lib/sharepoint-client.ts": "import { getAccessToken } from \"./token-store.ts\";\n\nconst GRAPH_BASE_URL = \"https://graph.microsoft.com/v1.0\";\n\nexport interface SharePointSite {\n id: string;\n name: string;\n displayName: string;\n description?: string;\n webUrl: string;\n createdDateTime: string;\n lastModifiedDateTime: string;\n siteCollection?: {\n hostname: string;\n };\n}\n\nexport interface SharePointDrive {\n id: string;\n name: string;\n description?: string;\n driveType: string;\n createdDateTime: string;\n lastModifiedDateTime: string;\n webUrl: string;\n quota?: {\n total: number;\n used: number;\n remaining: number;\n };\n}\n\nexport interface SharePointFile {\n id: string;\n name: string;\n size: number;\n createdDateTime: string;\n lastModifiedDateTime: string;\n webUrl: string;\n file?: {\n mimeType: string;\n hashes?: {\n sha1Hash?: string;\n quickXorHash?: string;\n };\n };\n folder?: {\n childCount: number;\n };\n parentReference?: {\n driveId: string;\n id: string;\n path: string;\n };\n createdBy?: {\n user?: {\n displayName: string;\n email?: string;\n };\n };\n lastModifiedBy?: {\n user?: {\n displayName: string;\n email?: string;\n };\n };\n}\n\ninterface GraphResponse<T> {\n value: T[];\n \"@odata.nextLink\"?: string;\n}\n\nasync function requireAccessToken(): Promise<string> {\n const token = await getAccessToken();\n if (!token) throw new Error(\"Not authenticated with Microsoft. Please connect your account.\");\n return token;\n}\n\nasync function graphFetch<T>(endpoint: string, options: RequestInit = {}): Promise<T> {\n const token = await requireAccessToken();\n\n const response = await fetch(`${GRAPH_BASE_URL}${endpoint}`, {\n ...options,\n headers: {\n Authorization: `Bearer ${token}`,\n \"Content-Type\": \"application/json\",\n ...(options.headers ?? {}),\n },\n });\n\n if (response.ok) return response.json();\n\n const error = await response.json().catch(() => ({}));\n throw new Error(\n `Microsoft Graph API error: ${response.status} ${error.error?.message ?? response.statusText}`,\n );\n}\n\nexport async function listSites(options?: {\n search?: string;\n limit?: number;\n}): Promise<SharePointSite[]> {\n const endpoint = options?.search\n ? `/sites?search=${encodeURIComponent(options.search)}`\n : \"/sites?search=*\";\n\n const { value = [] } = await graphFetch<GraphResponse<SharePointSite>>(endpoint);\n return options?.limit ? value.slice(0, options.limit) : value;\n}\n\nexport function getSite(siteId: string): Promise<SharePointSite> {\n return graphFetch<SharePointSite>(`/sites/${siteId}`);\n}\n\nexport function getSiteByPath(hostname: string, sitePath: string): Promise<SharePointSite> {\n return graphFetch<SharePointSite>(`/sites/${hostname}:${sitePath}`);\n}\n\nexport async function listDrives(siteId: string): Promise<SharePointDrive[]> {\n const { value = [] } = await graphFetch<GraphResponse<SharePointDrive>>(`/sites/${siteId}/drives`);\n return value;\n}\n\nexport function getDefaultDrive(siteId: string): Promise<SharePointDrive> {\n return graphFetch<SharePointDrive>(`/sites/${siteId}/drive`);\n}\n\nexport async function listFiles(\n siteId: string,\n driveId: string,\n folderId?: string,\n options?: {\n limit?: number;\n orderBy?: string;\n },\n): Promise<SharePointFile[]> {\n const baseEndpoint = folderId\n ? `/sites/${siteId}/drives/${driveId}/items/${folderId}/children`\n : `/sites/${siteId}/drives/${driveId}/root/children`;\n\n const params = new URLSearchParams();\n if (options?.orderBy) params.set(\"$orderby\", options.orderBy);\n if (options?.limit) params.set(\"$top\", String(options.limit));\n\n const endpoint = params.size ? `${baseEndpoint}?${params.toString()}` : baseEndpoint;\n\n const { value = [] } = await graphFetch<GraphResponse<SharePointFile>>(endpoint);\n return value;\n}\n\nexport function getFile(siteId: string, driveId: string, itemId: string): Promise<SharePointFile> {\n return graphFetch<SharePointFile>(`/sites/${siteId}/drives/${driveId}/items/${itemId}`);\n}\n\nexport function getFileByPath(\n siteId: string,\n driveId: string,\n path: string,\n): Promise<SharePointFile> {\n const encodedPath = encodeURIComponent(path);\n return graphFetch<SharePointFile>(`/sites/${siteId}/drives/${driveId}/root:/${encodedPath}`);\n}\n\nexport async function downloadFile(\n siteId: string,\n driveId: string,\n itemId: string,\n): Promise<ArrayBuffer> {\n const token = await requireAccessToken();\n\n await getFile(siteId, driveId, itemId);\n\n const response = await fetch(\n `${GRAPH_BASE_URL}/sites/${siteId}/drives/${driveId}/items/${itemId}/content`,\n { headers: { Authorization: `Bearer ${token}` } },\n );\n\n if (!response.ok) throw new Error(`Failed to download file: ${response.statusText}`);\n\n return response.arrayBuffer();\n}\n\nexport async function downloadFileAsText(\n siteId: string,\n driveId: string,\n itemId: string,\n): Promise<string> {\n const buffer = await downloadFile(siteId, driveId, itemId);\n return new TextDecoder().decode(buffer);\n}\n\nexport async function uploadFile(\n siteId: string,\n driveId: string,\n fileName: string,\n content: string | ArrayBuffer | Blob,\n folderId?: string,\n): Promise<SharePointFile> {\n const token = await requireAccessToken();\n\n const encodedFileName = encodeURIComponent(fileName);\n const endpoint = folderId\n ? `/sites/${siteId}/drives/${driveId}/items/${folderId}:/${encodedFileName}:/content`\n : `/sites/${siteId}/drives/${driveId}/root:/${encodedFileName}:/content`;\n\n let body: ArrayBuffer;\n if (typeof content === \"string\") {\n body = new TextEncoder().encode(content);\n } else if (content instanceof Blob) {\n body = await content.arrayBuffer();\n } else {\n body = content;\n }\n\n const response = await fetch(`${GRAPH_BASE_URL}${endpoint}`, {\n method: \"PUT\",\n headers: {\n Authorization: `Bearer ${token}`,\n \"Content-Type\": \"application/octet-stream\",\n },\n body,\n });\n\n if (response.ok) return response.json();\n\n const error = await response.json().catch(() => ({}));\n throw new Error(`Failed to upload file: ${error.error?.message ?? response.statusText}`);\n}\n\nexport function createFolder(\n siteId: string,\n driveId: string,\n folderName: string,\n parentFolderId?: string,\n): Promise<SharePointFile> {\n const endpoint = parentFolderId\n ? `/sites/${siteId}/drives/${driveId}/items/${parentFolderId}/children`\n : `/sites/${siteId}/drives/${driveId}/root/children`;\n\n return graphFetch<SharePointFile>(endpoint, {\n method: \"POST\",\n body: JSON.stringify({\n name: folderName,\n folder: {},\n \"@microsoft.graph.conflictBehavior\": \"rename\",\n }),\n });\n}\n\nexport async function searchFiles(\n siteId: string,\n query: string,\n options?: {\n limit?: number;\n },\n): Promise<SharePointFile[]> {\n const baseEndpoint = `/sites/${siteId}/drive/root/search(q='${encodeURIComponent(query)}')`;\n const endpoint = options?.limit ? `${baseEndpoint}?$top=${options.limit}` : baseEndpoint;\n\n const { value = [] } = await graphFetch<GraphResponse<SharePointFile>>(endpoint);\n return value;\n}\n\nexport async function deleteItem(siteId: string, driveId: string, itemId: string): Promise<void> {\n await graphFetch<void>(`/sites/${siteId}/drives/${driveId}/items/${itemId}`, { method: \"DELETE\" });\n}\n\nexport function moveItem(\n siteId: string,\n driveId: string,\n itemId: string,\n newParentId: string,\n newName?: string,\n): Promise<SharePointFile> {\n const body: { parentReference: { id: string }; name?: string } = {\n parentReference: { id: newParentId },\n ...(newName ? { name: newName } : {}),\n };\n\n return graphFetch<SharePointFile>(`/sites/${siteId}/drives/${driveId}/items/${itemId}`, {\n method: \"PATCH\",\n body: JSON.stringify(body),\n });\n}\n\nexport async function copyItem(\n siteId: string,\n driveId: string,\n itemId: string,\n newParentId: string,\n newName?: string,\n): Promise<void> {\n const body: { parentReference: { driveId: string; id: string }; name?: string } = {\n parentReference: { driveId, id: newParentId },\n ...(newName ? { name: newName } : {}),\n };\n\n await graphFetch<void>(`/sites/${siteId}/drives/${driveId}/items/${itemId}/copy`, {\n method: \"POST\",\n body: JSON.stringify(body),\n });\n}\n",
|
|
486
|
-
"tools/get-file.ts": "import { tool } from \"veryfront/tool\";\nimport { defineSchema } from \"veryfront/schemas\";\nimport { downloadFileAsText, getFile } from \"../../lib/sharepoint-client.ts\";\n\nexport default tool({\n id: \"get-file\",\n description:\n \"Get detailed metadata and optionally download content of a file from SharePoint. Can retrieve text content for text-based files.\",\n inputSchema: defineSchema((v) => v.object({\n siteId: v.string().describe(\"The ID of the SharePoint site\"),\n driveId: v.string().describe(\"The ID of the document library (drive)\"),\n itemId: v.string().describe(\"The ID of the file to retrieve\"),\n includeContent: v\n .boolean()\n .default(false)\n .describe(\n \"Whether to download and include the file content (only works for text-based files)\",\n ),\n
|
|
486
|
+
"tools/get-file.ts": "import { tool } from \"veryfront/tool\";\nimport { defineSchema } from \"veryfront/schemas\";\nimport { downloadFileAsText, getFile } from \"../../lib/sharepoint-client.ts\";\n\nexport default tool({\n id: \"get-file\",\n description:\n \"Get detailed metadata and optionally download content of a file from SharePoint. Can retrieve text content for text-based files.\",\n inputSchema: defineSchema((v) => v.object({\n siteId: v.string().describe(\"The ID of the SharePoint site\"),\n driveId: v.string().describe(\"The ID of the document library (drive)\"),\n itemId: v.string().describe(\"The ID of the file to retrieve\"),\n includeContent: v\n .boolean()\n .default(false)\n .describe(\n \"Whether to download and include the file content (only works for text-based files)\",\n ),\n }))(),\n async execute({ siteId, driveId, itemId, includeContent }) {\n const file = await getFile(siteId, driveId, itemId);\n\n const result: Record<string, unknown> = {\n id: file.id,\n name: file.name,\n size: file.size,\n sizeFormatted: formatBytes(file.size),\n mimeType: file.file?.mimeType,\n url: file.webUrl,\n created: file.createdDateTime,\n lastModified: file.lastModifiedDateTime,\n createdBy: {\n name: file.createdBy?.user?.displayName,\n email: file.createdBy?.user?.email,\n },\n lastModifiedBy: {\n name: file.lastModifiedBy?.user?.displayName,\n email: file.lastModifiedBy?.user?.email,\n },\n parentReference: {\n driveId: file.parentReference?.driveId,\n id: file.parentReference?.id,\n path: file.parentReference?.path,\n },\n hashes: file.file?.hashes,\n };\n\n if (!includeContent) return result;\n\n const mimeType = file.file?.mimeType;\n if (!mimeType) return result;\n\n const isTextFile = [\n \"text/\",\n \"application/json\",\n \"application/xml\",\n \"application/javascript\",\n \"application/typescript\",\n ].some((type) => mimeType.startsWith(type));\n\n if (!isTextFile) {\n result.contentError = \"File is not a text-based file type\";\n return result;\n }\n\n try {\n const content = await downloadFileAsText(siteId, driveId, itemId);\n result.content = content;\n } catch (error) {\n const message = error instanceof Error ? error.message : \"Unknown error\";\n result.contentError = `Failed to download content: ${message}`;\n }\n\n return result;\n },\n});\n\nfunction formatBytes(bytes: number): string {\n if (bytes === 0) return \"0 Bytes\";\n\n const k = 1024;\n const sizes = [\"Bytes\", \"KB\", \"MB\", \"GB\", \"TB\"];\n const i = Math.floor(Math.log(bytes) / Math.log(k));\n\n return `${Math.round((bytes / Math.pow(k, i)) * 100) / 100} ${sizes[i]}`;\n}\n",
|
|
487
487
|
"tools/get-site.ts": "import { tool } from \"veryfront/tool\";\nimport { defineSchema } from \"veryfront/schemas\";\nimport { getSite, listDrives } from \"../../lib/sharepoint-client.ts\";\n\nexport default tool({\n id: \"get-site\",\n description:\n \"Get detailed information about a specific SharePoint site including its document libraries (drives).\",\n inputSchema: defineSchema((v) => v.object({\n siteId: v.string().describe(\"The ID of the SharePoint site to retrieve\"),\n includeDrives: v\n .boolean()\n .default(true)\n .describe(\"Whether to include the list of document libraries in the response\"),\n }))(),\n async execute({ siteId, includeDrives }): Promise<Record<string, unknown>> {\n const site = await getSite(siteId);\n\n const result: Record<string, unknown> = {\n id: site.id,\n name: site.displayName ?? site.name,\n description: site.description,\n url: site.webUrl,\n hostname: site.siteCollection?.hostname,\n created: site.createdDateTime,\n lastModified: site.lastModifiedDateTime,\n };\n\n if (!includeDrives) return result;\n\n const drives = await listDrives(siteId);\n result.documentLibraries = drives.map((drive) => {\n const quota = drive.quota;\n const percentUsed =\n quota && quota.total > 0 ? Math.round((quota.used / quota.total) * 100) : 0;\n\n return {\n id: drive.id,\n name: drive.name,\n description: drive.description,\n type: drive.driveType,\n url: drive.webUrl,\n quota: quota\n ? {\n total: quota.total,\n used: quota.used,\n remaining: quota.remaining,\n percentUsed,\n }\n : undefined,\n };\n });\n\n return result;\n },\n});\n",
|
|
488
488
|
"tools/list-files.ts": "import { tool } from \"veryfront/tool\";\nimport { defineSchema } from \"veryfront/schemas\";\nimport { listFiles, searchFiles } from \"../../lib/sharepoint-client.ts\";\n\nexport default tool({\n id: \"list-files\",\n description:\n \"List files and folders in a SharePoint document library. Can list root level or a specific folder, or search across the entire library.\",\n inputSchema: defineSchema((v) => v.object({\n siteId: v.string().describe(\"The ID of the SharePoint site\"),\n driveId: v.string().describe(\"The ID of the document library (drive)\"),\n folderId: v\n .string()\n .optional()\n .describe(\n \"Optional folder ID to list contents from. If not provided, lists root level.\",\n ),\n search: v\n .string()\n .optional()\n .describe(\n \"Optional search query to find files by name or content instead of listing\",\n ),\n orderBy: v\n .enum([\"name\", \"lastModifiedDateTime\", \"size\"])\n .optional()\n .describe(\"Sort order for results\"),\n limit: v\n .number()\n .min(1)\n .max(100)\n .default(50)\n .describe(\"Maximum number of items to return\"),\n }))(),\n async execute({ siteId, driveId, folderId, search, orderBy, limit }) {\n const files = search\n ? await searchFiles(siteId, search, { limit })\n : await listFiles(siteId, driveId, folderId, { limit, orderBy });\n\n return files.map((file) => ({\n id: file.id,\n name: file.name,\n type: file.folder ? \"folder\" : \"file\",\n size: file.size,\n sizeFormatted: formatBytes(file.size),\n mimeType: file.file?.mimeType,\n url: file.webUrl,\n created: file.createdDateTime,\n lastModified: file.lastModifiedDateTime,\n createdBy: file.createdBy?.user?.displayName,\n lastModifiedBy: file.lastModifiedBy?.user?.displayName,\n parentPath: file.parentReference?.path,\n childCount: file.folder?.childCount,\n }));\n },\n});\n\nfunction formatBytes(bytes: number): string {\n if (bytes === 0) return \"0 Bytes\";\n\n const k = 1024;\n const sizes = [\"Bytes\", \"KB\", \"MB\", \"GB\", \"TB\"];\n const i = Math.floor(Math.log(bytes) / Math.log(k));\n\n return `${Math.round((bytes / Math.pow(k, i)) * 100) / 100} ${sizes[i]}`;\n}\n",
|
|
489
489
|
"tools/list-sites.ts": "import { tool } from \"veryfront/tool\";\nimport { defineSchema } from \"veryfront/schemas\";\nimport { listSites } from \"../../lib/sharepoint-client.ts\";\n\nexport default tool({\n id: \"list-sites\",\n description:\n \"List all SharePoint sites the user has access to. Returns site names, URLs, and IDs.\",\n inputSchema: defineSchema((v) => v.object({\n search: v\n .string()\n .optional()\n .describe(\"Optional search query to filter sites by name or description\"),\n limit: v\n .number()\n .min(1)\n .max(50)\n .default(20)\n .describe(\"Maximum number of sites to return\"),\n }))(),\n async execute({ search, limit }) {\n const sites = await listSites({ search, limit });\n\n return sites.map((site) => ({\n id: site.id,\n name: site.displayName ?? site.name,\n description: site.description,\n url: site.webUrl,\n hostname: site.siteCollection?.hostname,\n created: site.createdDateTime,\n lastModified: site.lastModifiedDateTime,\n }));\n },\n});\n",
|
package/esm/deno.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
"name": "veryfront",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.658",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"nodeModulesDir": "auto",
|
|
6
6
|
"workspace": [
|
|
@@ -355,8 +355,8 @@ export default {
|
|
|
355
355
|
"lint:ban-zod": "deno run --allow-read scripts/lint/ban-zod-imports.ts",
|
|
356
356
|
"lint:core-deps": "deno run --allow-read scripts/lint/audit-core-deps.ts",
|
|
357
357
|
"lint:dependency-boundaries": "deno run --allow-read scripts/lint/audit-dependency-boundaries.ts",
|
|
358
|
-
"lint:extension-contracts": "deno run --allow-read
|
|
359
|
-
"lint:extension-capabilities": "deno run --allow-read
|
|
358
|
+
"lint:extension-contracts": "deno run --allow-read scripts/lint/audit-extension-contracts.ts",
|
|
359
|
+
"lint:extension-capabilities": "deno run --allow-read scripts/lint/audit-extension-capabilities.ts",
|
|
360
360
|
"lint:ban-console": "deno run --allow-read scripts/lint/ban-console.ts",
|
|
361
361
|
"lint:ban-deep-imports": "deno run --allow-read scripts/lint/ban-deep-imports.ts",
|
|
362
362
|
"lint:imports": "deno run --allow-read scripts/lint/no-cross-boundary-relative-imports.ts",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-shared.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/ag-ui/request-shared.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"request-shared.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/ag-ui/request-shared.ts"],"names":[],"mappings":"AAgBA,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,OAAO,CAW1D;AAED,wBAAgB,cAAc,CAAC,YAAY,EAAE,OAAO,GAAG,OAAO,CAW7D;AAED,wBAAsB,2BAA2B,CAAC,CAAC,EACjD,YAAY,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EAC9B,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,CAAC,GAAG,QAAQ,CAAC,CA6BvB"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { INVALID_ARGUMENT } from "../../errors/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* Detects a validation error thrown by a `Schema.parse()` call. Works with
|
|
4
|
-
*
|
|
5
|
-
* and raw zod errors.
|
|
4
|
+
* the contract-DSL adapter, which exposes validation issues on thrown errors.
|
|
6
5
|
*/
|
|
7
6
|
function isSchemaValidationError(error) {
|
|
8
7
|
return (error instanceof Error &&
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { ChatMessageMetadata, ChatUiMessageChunk } from "../../chat/protocol.js";
|
|
2
2
|
import { type ConversationRunEvent, ConversationRunEventEncoder } from "./run-events.js";
|
|
3
|
-
import { type ConversationRunMirror, type ConversationRunMirrorHighBacklogState, type ConversationRunMirrorRetryScheduledState, type ConversationRunMirrorStoppedState } from "./run-mirror.js";
|
|
3
|
+
import { type ConversationRunMirror, type ConversationRunMirrorHighBacklogState, type ConversationRunMirrorRetryScheduledState, type ConversationRunMirrorSnapshot, type ConversationRunMirrorStoppedState } from "./run-mirror.js";
|
|
4
4
|
import { type ConversationRunEventQueueController } from "./durable.js";
|
|
5
5
|
/** Public API contract for conversation run chunk mirror. */
|
|
6
6
|
export interface ConversationRunChunkMirror {
|
|
7
7
|
handleChunk(chunk: ChatUiMessageChunk<ChatMessageMetadata>): Promise<void>;
|
|
8
8
|
appendEvents(events: ConversationRunEvent[]): Promise<void>;
|
|
9
|
-
flush(): Promise<
|
|
9
|
+
flush(): Promise<ConversationRunMirrorSnapshot>;
|
|
10
10
|
getSnapshot(): ReturnType<ConversationRunMirror["getSnapshot"]>;
|
|
11
11
|
dispose(): void;
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-chunk-mirror.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/conversation/run-chunk-mirror.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,C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U,EAAE,+CAA+C,KAAK,IAAI,CAAC;IAC3F,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IACrE,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IACpE,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;CACtE;AAED,gEAAgE;AAChE,MAAM,WAAW,uCAAuC;IACtD,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,eAAe,CAAC,EAAE,+CAA+C,CAAC;CACnE;AAuBD,4CAA4C;AAC5C,wBAAgB,gCAAgC,CAC9C,KAAK,EAAE,iCAAiC,GACvC,0BAA0B,CA4D5B;AA2GD,mDAAmD;AACnD,wBAAgB,sCAAsC,CACpD,KAAK,EAAE,uCAAuC,GAC7C,0BAA0B,CA2E5B"}
|
|
@@ -40,7 +40,7 @@ export interface ConversationRunMirrorHighBacklogState {
|
|
|
40
40
|
/** Public API contract for conversation run mirror. */
|
|
41
41
|
export interface ConversationRunMirror {
|
|
42
42
|
enqueue(events: unknown[]): void;
|
|
43
|
-
flush(): Promise<
|
|
43
|
+
flush(): Promise<ConversationRunMirrorSnapshot>;
|
|
44
44
|
getSnapshot(): ConversationRunMirrorSnapshot;
|
|
45
45
|
dispose(): void;
|
|
46
46
|
}
|
|
@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AAM,CAAC;IAC1B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,QAAQ,EAAE,KAAK,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,uDAAuD;AACvD,MAAM,WAAW,qBAAqB;IACpC,OAAO,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;IACjC,KAAK,IAAI,OAAO,CAAC,6BAA6B,CAAC,CAAC;IAChD,WAAW,IAAI,6BAA6B,CAAC;IAC7C,OAAO,IAAI,IAAI,CAAC;CACjB;AAyBD,sCAAsC;AACtC,wBAAgB,2BAA2B,CAAC,KAAK,EAAE;IACjD,eAAe,EAAE,mCAAmC,CAAC;IACrD,wBAAwB,EAAE,MAAM,CAAC;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,CAAC,mBAAmB,EAAE,MAAM,KAAK,MAAM,CAAC;IAC1D,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,qCAAqC,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IACvF,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,wCAAwC,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC7F,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,iCAAiC,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CAChF,GAAG,qBAAqB,CA8LxB"}
|
|
@@ -164,10 +164,11 @@ export function createConversationRunMirror(input) {
|
|
|
164
164
|
clearRetryTimer();
|
|
165
165
|
const snapshot = getSnapshot();
|
|
166
166
|
if (snapshot.disabled || (snapshot.pendingEventCount === 0 && !snapshot.inFlight)) {
|
|
167
|
-
return;
|
|
167
|
+
return snapshot;
|
|
168
168
|
}
|
|
169
169
|
startFlushLoop();
|
|
170
170
|
await inFlightFlush;
|
|
171
|
+
return getSnapshot();
|
|
171
172
|
},
|
|
172
173
|
getSnapshot,
|
|
173
174
|
dispose() {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { type ChatStreamEvent } from "../../chat/protocol.js";
|
|
2
2
|
import { type ConversationRunEvent, ConversationRunEventEncoder } from "./run-events.js";
|
|
3
|
-
import { type ConversationRunMirror, type ConversationRunMirrorHighBacklogState, type ConversationRunMirrorRetryScheduledState, type ConversationRunMirrorStoppedState } from "./run-mirror.js";
|
|
3
|
+
import { type ConversationRunMirror, type ConversationRunMirrorHighBacklogState, type ConversationRunMirrorRetryScheduledState, type ConversationRunMirrorSnapshot, type ConversationRunMirrorStoppedState } from "./run-mirror.js";
|
|
4
4
|
import { type ConversationRunEventQueueController } from "./durable.js";
|
|
5
5
|
/** Public API contract for conversation run stream mirror. */
|
|
6
6
|
export interface ConversationRunStreamMirror {
|
|
7
7
|
handleStreamEvent(event: ChatStreamEvent): void;
|
|
8
8
|
appendEvents(events: ConversationRunEvent[]): void;
|
|
9
|
-
flush(): Promise<
|
|
9
|
+
flush(): Promise<ConversationRunMirrorSnapshot>;
|
|
10
10
|
getSnapshot(): ReturnType<ConversationRunMirror["getSnapshot"]>;
|
|
11
11
|
dispose(): void;
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-stream-mirror.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/conversation/run-stream-mirror.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,KAAK,oBAAoB,EAAE,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AACzF,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,qCAAqC,EAC1C,KAAK,wCAAwC,EAC7C,KAAK,iCAAiC,EAEvC,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,cAAc,CAAC;AAExE,8DAA8D;AAC9D,MAAM,WAAW,2BAA2B;I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BD,sDAAsD;AACtD,wBAAsB,yCAAyC,CAC7D,KAAK,EAAE,8CAA8C,GACpD,OAAO,CAAC,mCAAmC,CAAC,CAqC9C;AA0CD,yDAAyD;AACzD,wBAAsB,4CAA4C,CAChE,KAAK,EAAE,iDAAiD,GACvD,OAAO,CAAC,sCAAsC,CAAC,CA6BjD;AAED,oDAAoD;AACpD,wBAAgB,uCAAuC,CAAC,KAAK,EAAE;IAC7D,gBAAgB,EAAE,mCAAmC,CAAC;IACtD,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,WAAW,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,gCAAgC,CAAC;CAC3C,GAAG,uBAAuB,
|
|
1
|
+
{"version":3,"file":"chat-execution-runtime.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/hosted/chat-execution-runtime.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC9F,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AAC9F,OAAO,EAGL,KAAK,+CAA+C,EACpD,KAAK,4BAA4B,EACjC,KAAK,oBAAoB,EAC1B,MAAM,0BAA0B,CAAC;AAOlC,OAAO,KAAK,EACV,sBAAsB,EACtB,4BAA4B,EAC5B,6BAA6B,EAE9B,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,EACL,KAAK,oCAAoC,EAK1C,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAGL,KAAK,sBAAsB,EAC5B,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAGL,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACrC,MAAM,0BAA0B,CAAC;AAOlC,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO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1C,GAAG,CACF,SAAS,EAAE,OAAO,KACf,OAAO,CAAC,+BAA+B,CAAC,kBAAkB,CAAC,eAAe,CAAC,CAAC,CAAC,CA2BjF;AA+ID,4CAA4C;AAC5C,wBAAgB,gCAAgC,CAC9C,KAAK,EAAE,qCAAqC,GAC3C,0BAA0B,CAsH5B"}
|
|
@@ -145,7 +145,9 @@ export function createHostedChatStreamFinalizationHooks(input) {
|
|
|
145
145
|
return {
|
|
146
146
|
resolveEmptyTerminalError: ({ finalStep, streamError }) => getEmptyHostedFinalizedMessageTerminalError({ finalStep, streamError }),
|
|
147
147
|
appendFallbackChunk: (chunk) => input.lifecycleAdapter.durableRunMirror?.handleChunk(chunk),
|
|
148
|
-
flushMirror: () =>
|
|
148
|
+
flushMirror: async () => {
|
|
149
|
+
await input.lifecycleAdapter.durableRunMirror?.flush();
|
|
150
|
+
},
|
|
149
151
|
dispatchTerminalState: async (terminalState) => {
|
|
150
152
|
await dispatchConversationHostedTerminalState(input.lifecycleAdapter, terminalState);
|
|
151
153
|
},
|
|
@@ -8,6 +8,7 @@ import { type PrepareAgentRuntimeMessagesFromUiMessagesOptions } from "../runtim
|
|
|
8
8
|
import type { RuntimeAgentThinkingConfig } from "../runtime/agent-definition.js";
|
|
9
9
|
import { type ResolvedHostedRuntimeRequestConfig } from "./runtime-request-config.js";
|
|
10
10
|
import type { RuntimeSkillDefinition } from "../runtime/skill-metadata.js";
|
|
11
|
+
import { type ContextBudgetDiagnostics, type ContextBudgetManagerOptions } from "./context-budget-manager.js";
|
|
11
12
|
/** Request payload for normalized hosted chat. */
|
|
12
13
|
export type NormalizedHostedChatRequest = {
|
|
13
14
|
effectiveMessages: ChatUiMessage[];
|
|
@@ -74,6 +75,15 @@ export type HostedChatRuntimeCreationPreparationResult<TRuntimeAgentDefinition>
|
|
|
74
75
|
};
|
|
75
76
|
/** Options accepted by hosted chat execution preparation root run. */
|
|
76
77
|
export type HostedChatExecutionPreparationRootRunOptions = Pick<PrepareHostedConversationRootRunContextInput, "implementationKind" | "persistLatestUserMessageOperation" | "missingUserMessageErrorMessage" | "onPersistLatestUserMessageFailure" | "instrumentation">;
|
|
78
|
+
/** Public API contract for hosted chat context budget logging. */
|
|
79
|
+
export type HostedChatContextBudgetLogger = {
|
|
80
|
+
debug?: (message: string, metadata?: Record<string, unknown>) => void;
|
|
81
|
+
error?: (message: string, metadata?: Record<string, unknown>) => void;
|
|
82
|
+
};
|
|
83
|
+
/** Options accepted by hosted chat context budget management. */
|
|
84
|
+
export type HostedChatContextBudgetOptions = ContextBudgetManagerOptions & {
|
|
85
|
+
logger?: HostedChatContextBudgetLogger;
|
|
86
|
+
};
|
|
77
87
|
/** Input payload for hosted chat execution preparation. */
|
|
78
88
|
export type HostedChatExecutionPreparationInput<TRuntimeAgentDefinition extends {
|
|
79
89
|
id: string;
|
|
@@ -96,12 +106,14 @@ export type HostedChatExecutionPreparationInput<TRuntimeAgentDefinition extends
|
|
|
96
106
|
}) => Promise<HostedChatRuntimePreparationSteering>;
|
|
97
107
|
buildInstructions: (input: HostedChatRuntimeInstructionsInput<TRuntimeAgentDefinition>) => string | ChatSystemMessage[];
|
|
98
108
|
createRuntime: (options: HostedChatRuntimeCreationOptions<TRuntimeAgentDefinition, RuntimeAgentThinkingConfig>) => Promise<TRuntimeResult>;
|
|
109
|
+
contextBudget?: HostedChatContextBudgetOptions;
|
|
99
110
|
};
|
|
100
111
|
/** Result returned from hosted chat execution preparation. */
|
|
101
112
|
export type HostedChatExecutionPreparationResult<TRuntimeAgentDefinition, TRuntimeResult extends HostedChatRuntimeCreationResult> = NormalizedHostedChatRequest & {
|
|
102
113
|
rootRunContext: HostedConversationRootRunContext;
|
|
103
114
|
runtime: TRuntimeResult;
|
|
104
115
|
finalMessages: AgentRuntimeMessage[];
|
|
116
|
+
contextBudgetDiagnostics?: ContextBudgetDiagnostics;
|
|
105
117
|
steering: HostedChatRuntimeCreationPreparationResult<TRuntimeAgentDefinition>["steering"];
|
|
106
118
|
runtimeConfig: ResolvedHostedRuntimeRequestConfig;
|
|
107
119
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-preparation.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/hosted/chat-preparation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,iBAAiB,EACjB,aAAa,EACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,KAAK,EACV,gCAAgC,EAChC,+BAA+B,EAEhC,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,EACL,KAAK,gCAAgC,EAErC,KAAK,4CAA4C,EAClD,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAEL,KAAK,gDAAgD,EACtD,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AACjF,OAAO,EACL,KAAK,kCAAkC,EAExC,MAAM,6BAA6B,CAAC;AAErC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"chat-preparation.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/hosted/chat-preparation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,iBAAiB,EACjB,aAAa,EACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,KAAK,EACV,gCAAgC,EAChC,+BAA+B,EAEhC,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,0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uBAAuB,GAC/B,2BAA2B,CAgB7B;AAgBD,gEAAgE;AAChE,wBAAsB,uCAAuC,CAC3D,uBAAuB,EAEvB,KAAK,EAAE,yCAAyC,CAAC,uBAAuB,CAAC,GACxE,OAAO,CAAC,0CAA0C,CAAC,uBAAuB,CAAC,CAAC,CA+D9E;AAED,qCAAqC;AACrC,wBAAsB,0BAA0B,CAC9C,uBAAuB,SAAS;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,0BAA0B,CAAC;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,EACD,cAAc,SAAS,+BAA+B,EAEtD,KAAK,EAAE,mCAAmC,CACxC,uBAAuB,EACvB,cAAc,CACf,GACA,OAAO,CACR,oCAAoC,CAAC,uBAAuB,EAAE,cAAc,CAAC,CAC9E,CA4EA;AAED,4CAA4C;AAC5C,wBAAsB,gCAAgC,CACpD,QAAQ,EAAE,SAAS,aAAa,EAAE,EAClC,OAAO,GAAE,uCAA4C,GACpD,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAuBhC"}
|
|
@@ -2,11 +2,23 @@ import { prepareHostedConversationRootRunContext, } from "../conversation/root-r
|
|
|
2
2
|
import { prepareAgentRuntimeMessagesFromUiMessages, } from "../runtime/message-preparation.js";
|
|
3
3
|
import { resolveHostedRuntimeRequestConfig, } from "./runtime-request-config.js";
|
|
4
4
|
import { getRuntimeUploadUrl } from "../runtime/upload-url-client.js";
|
|
5
|
+
import { applyContextBudget, ContextCompactionError, } from "./context-budget-manager.js";
|
|
5
6
|
function getAllowedRemoteToolNames(agentConfig) {
|
|
6
7
|
return Array.isArray(agentConfig.allowedRemoteTools)
|
|
7
8
|
? agentConfig.allowedRemoteTools.filter((toolName) => typeof toolName === "string" && toolName.length > 0)
|
|
8
9
|
: [];
|
|
9
10
|
}
|
|
11
|
+
async function flushRequiredContextCompactionEvent(rootRunContext, eventPayload) {
|
|
12
|
+
if (!rootRunContext.durableRunMirror) {
|
|
13
|
+
throw new ContextCompactionError("Context compaction produced an event but no durable run mirror is available");
|
|
14
|
+
}
|
|
15
|
+
await rootRunContext.durableRunMirror.appendEvents([eventPayload]);
|
|
16
|
+
const snapshot = await rootRunContext.durableRunMirror.flush();
|
|
17
|
+
if (snapshot.disabled || snapshot.pendingEventCount > 0 || snapshot.inFlight) {
|
|
18
|
+
rootRunContext.durableRunMirror.dispose();
|
|
19
|
+
throw new ContextCompactionError("Context compaction event was not durably persisted before model execution");
|
|
20
|
+
}
|
|
21
|
+
}
|
|
10
22
|
/** Request payload for normalize parsed hosted chat. */
|
|
11
23
|
export function normalizeParsedHostedChatRequest(request) {
|
|
12
24
|
const effectiveMessages = request.messages;
|
|
@@ -127,18 +139,43 @@ export async function prepareHostedChatExecution(input) {
|
|
|
127
139
|
fetchSteering: input.fetchSteering,
|
|
128
140
|
buildInstructions: input.buildInstructions,
|
|
129
141
|
});
|
|
130
|
-
const runtime = await input.createRuntime(runtimePreparation.creationOptions);
|
|
131
142
|
const finalMessages = await prepareHostedChatRuntimeMessages(normalized.effectiveMessages, {
|
|
132
143
|
authToken: input.request.authToken,
|
|
133
144
|
apiUrl: input.apiUrl,
|
|
134
145
|
projectId: input.request.projectId,
|
|
135
146
|
providerOwnedToolNames: getAllowedRemoteToolNames(input.agentConfig),
|
|
136
147
|
});
|
|
148
|
+
let budgetedContext;
|
|
149
|
+
if (input.contextBudget) {
|
|
150
|
+
try {
|
|
151
|
+
budgetedContext = await applyContextBudget(finalMessages, input.contextBudget);
|
|
152
|
+
}
|
|
153
|
+
catch (error) {
|
|
154
|
+
input.contextBudget.logger?.error?.("Hosted chat context compaction failed", {
|
|
155
|
+
error: error instanceof Error ? error.message : String(error),
|
|
156
|
+
});
|
|
157
|
+
throw error;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
if (budgetedContext?.eventPayload) {
|
|
161
|
+
input.contextBudget?.logger?.debug?.("Hosted chat context compacted", {
|
|
162
|
+
...budgetedContext.diagnostics,
|
|
163
|
+
firstKeptEntryId: budgetedContext.eventPayload.firstKeptEntryId,
|
|
164
|
+
});
|
|
165
|
+
await flushRequiredContextCompactionEvent(rootRunContext, budgetedContext.eventPayload);
|
|
166
|
+
}
|
|
167
|
+
else if (budgetedContext) {
|
|
168
|
+
input.contextBudget?.logger?.debug?.("Hosted chat context compaction skipped", {
|
|
169
|
+
...budgetedContext.diagnostics,
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
const runtime = await input.createRuntime(runtimePreparation.creationOptions);
|
|
137
173
|
return {
|
|
138
174
|
...normalized,
|
|
139
175
|
rootRunContext,
|
|
140
176
|
runtime,
|
|
141
|
-
finalMessages,
|
|
177
|
+
finalMessages: budgetedContext?.messages ?? finalMessages,
|
|
178
|
+
contextBudgetDiagnostics: budgetedContext?.diagnostics,
|
|
142
179
|
steering: runtimePreparation.steering,
|
|
143
180
|
runtimeConfig: runtimePreparation.runtimeConfig,
|
|
144
181
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"child-fork-execution-runner.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/hosted/child-fork-execution-runner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAEnE,OAAO,EAKL,KAAK,gCAAgC,EACtC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,KAAK,wCAAwC,EAAE,MAAM,4BAA4B,CAAC;AAK3F,OAAO,EAEL,KAAK,kCAAkC,EACxC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,KAAK,wCAAwC,EAE9C,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,KAAK,6BAA6B,EAElC,KAAK,6CAA6C,EACnD,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,KAAK,0BAA0B,EAEhC,MAAM,qCAAqC,CAAC;AAC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O,CAAC,GAAG,SAAS,CAAC;IACzC,eAAe,CAAC,EAAE,CAAC,aAAa,EAAE,4BAA4B,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzF,CAAC;AAEJ,wDAAwD;AACxD,wBAAsB,+BAA+B,CACnD,WAAW,SAAS,uBAAuB,GAAG,uBAAuB,EAErE,KAAK,EAAE,sCAAsC,CAAC,WAAW,CAAC,GACzD,OAAO,CAAC,uBAAuB,CAAC,CAoClC;AAED,qDAAqD;AACrD,wBAAsB,uCAAuC,CAC3D,WAAW,SAAS,uBAAuB,GAAG,uBAAuB,EAErE,KAAK,EAAE,4CAA4C,CAAC,WAAW,CAAC,GAC/D,OAAO,CAAC,uBAAuB,CAAC,
|
|
1
|
+
{"version":3,"file":"child-fork-execution-runner.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/hosted/child-fork-execution-runner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAEnE,OAAO,EAKL,KAAK,gCAAgC,EACtC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,KAAK,wCAAwC,EAAE,MAAM,4BAA4B,CAAC;AAK3F,OAAO,EAEL,KAAK,kCAAkC,EACxC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,KAAK,wCAAwC,EAE9C,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,KAAK,6BAA6B,EAElC,KAAK,6CAA6C,EACnD,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,KAAK,0BAA0B,EAEhC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EACV,uBAAuB,EACvB,yBAAyB,EAC1B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAEV,+CAA+C,EAChD,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,KAAK,EACV,2BAA2B,EAC3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,EAAE,sCAAsC,CAAC,WAAW,CAAC,GACzD,OAAO,CAAC,uBAAuB,CAAC,CAoClC;AAED,qDAAqD;AACrD,wBAAsB,uCAAuC,CAC3D,WAAW,SAAS,uBAAuB,GAAG,uBAAuB,EAErE,KAAK,EAAE,4CAA4C,CAAC,WAAW,CAAC,GAC/D,OAAO,CAAC,uBAAuB,CAAC,CAwIlC"}
|
|
@@ -203,7 +203,9 @@ export async function executeHostedChildForkWithPreparedTools(input) {
|
|
|
203
203
|
runContext,
|
|
204
204
|
monitorAbortController: childRunMonitorAbortController,
|
|
205
205
|
monitorPromise: childRunMonitorPromise,
|
|
206
|
-
flushMirror: () =>
|
|
206
|
+
flushMirror: async () => {
|
|
207
|
+
await runContext.durableRunMirror?.flush();
|
|
208
|
+
},
|
|
207
209
|
closeTooling,
|
|
208
210
|
closeRuntime,
|
|
209
211
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"child-lifecycle.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/hosted/child-lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAE/B,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"child-lifecycle.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/hosted/child-lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAE/B,MAAM,oCAAoC,CAAC;AAS5C,iDAAiD;AACjD,MAAM,WAAW,iCAAiC;IAChD,MAAM,EAAE,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC;IAC7C,KAAK,CAAC,EAAE;QACN,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,oBAA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