@xopcai/xopc 0.0.455 → 0.0.456
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/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/gateway/static/root/assets/{automations-page-Dt_Z1UTT.js → automations-page-CgQDpSpK.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-workspace-BhHgruhH.js → automations-workspace-CWEDraTP.js} +2 -2
- package/dist/gateway/static/root/assets/{chat-page-dY6aCCRx.js → chat-page-BjYumhaI.js} +19 -19
- package/dist/gateway/static/root/assets/{desktop-pet-DlTuGzZ2.js → desktop-pet-Cn1TfGz4.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-narrative-cBFIPXzR.js → desktop-pet-narrative-JqMsz4rn.js} +1 -1
- package/dist/gateway/static/root/assets/{index-CZI3VGGW.js → index-DBlVVXOA.js} +5 -5
- package/dist/gateway/static/root/assets/index-DpkEeFEQ.css +1 -0
- package/dist/gateway/static/root/assets/{note-detail-panel-anM38aV6.js → note-detail-panel-C6s0WlNL.js} +2 -2
- package/dist/gateway/static/root/assets/{notes-page-BsZmT7Zw.js → notes-page-CR7dNVDi.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-page-BSCNuRMT.js → personal-page-C89kLOIL.js} +1 -1
- package/dist/gateway/static/root/assets/{project-detail-page-ibZZ_w51.js → project-detail-page-sHcdluTm.js} +1 -1
- package/dist/gateway/static/root/assets/{route-preload-anuckzRl.js → route-preload-DrfQJkmW.js} +2 -2
- package/dist/gateway/static/root/assets/{settings-page-DAc5n-mM.js → settings-page-C4CYw21O.js} +1 -1
- package/dist/gateway/static/root/assets/{task-detail-page-BJok6V1K.js → task-detail-page-DBnkT1Nj.js} +1 -1
- package/dist/gateway/static/root/assets/tool-friendly-title-CP35P4VA.js +2 -0
- package/dist/gateway/static/root/assets/understanding-refresh-store-CIpGYSl0.js +1 -0
- package/dist/gateway/static/root/assets/user-model-page-Bbi2MpIS.js +2 -0
- package/dist/gateway/static/root/index.html +7 -7
- package/dist/package.js +1 -1
- package/dist/src/agent/agent-manager.js +7 -2
- package/dist/src/agent/background-review/prompts.d.ts +1 -1
- package/dist/src/agent/background-review/prompts.js +8 -1
- package/dist/src/agent/background-review/run-background-review.js +48 -4
- package/dist/src/agent/context/audit.js +18 -0
- package/dist/src/agent/context/coordinator.d.ts +4 -0
- package/dist/src/agent/context/coordinator.js +33 -7
- package/dist/src/agent/context/deep-recall.d.ts +33 -0
- package/dist/src/agent/context/deep-recall.js +190 -0
- package/dist/src/agent/context/execution-context.js +29 -5
- package/dist/src/agent/context/execution-context.types.d.ts +2 -0
- package/dist/src/agent/context/memory-claim-grounding.d.ts +2 -0
- package/dist/src/agent/context/memory-claim-grounding.js +20 -0
- package/dist/src/agent/context/recall-grounding.d.ts +3 -0
- package/dist/src/agent/context/recall-grounding.js +31 -0
- package/dist/src/agent/embedded/run-turn.js +46 -0
- package/dist/src/agent/external-tools/cliProvider.js +2 -2
- package/dist/src/agent/external-tools/composio-provider.js +2 -2
- package/dist/src/agent/external-tools/endpoint-provider.js +3 -3
- package/dist/src/agent/memory/context-recovery.d.ts +1 -1
- package/dist/src/agent/memory/index.js +1 -1
- package/dist/src/agent/service/process-direct-streaming.js +1 -1
- package/dist/src/agent/service.d.ts +1 -0
- package/dist/src/agent/service.js +6 -3
- package/dist/src/agent/skills/index.js +1 -1
- package/dist/src/agent/skills/managed-store.js +1 -1
- package/dist/src/agent/skills/skill-manage-ops.js +1 -1
- package/dist/src/agent/tools/factory.js +22 -0
- package/dist/src/agent/tools/knowledge-memory-tool.js +7 -1
- package/dist/src/agent/tools/personal-memory-tool.d.ts +11 -0
- package/dist/src/agent/tools/personal-memory-tool.js +387 -0
- package/dist/src/agent/tools/personal-read-tool.js +1 -1
- package/dist/src/agent/tools/session-search-tool.d.ts +2 -0
- package/dist/src/agent/tools/session-search-tool.js +21 -7
- package/dist/src/agent/tools/user-context-tool.js +11 -1
- package/dist/src/agent/tools/xopc-use-tool.js +2 -2
- package/dist/src/agent-catalog/capabilities.js +2 -2
- package/dist/src/agent-catalog/repository.js +1 -1
- package/dist/src/automations/api/routes.js +2 -2
- package/dist/src/automations/capabilities/drafts.js +1 -1
- package/dist/src/automations/capabilities/write.js +1 -1
- package/dist/src/automations/configuration-conversation.js +1 -1
- package/dist/src/browser/providers/browser-ext-install.js +1 -1
- package/dist/src/capabilities/runtime/dispatcher.js +1 -1
- package/dist/src/capabilities/runtime/product.js +1 -1
- package/dist/src/cli/commands/agents.js +1 -1
- package/dist/src/cli/commands/models.js +1 -1
- package/dist/src/cli/commands/onboard/model.js +1 -1
- package/dist/src/cli/utils/init-workspace-core.js +1 -1
- package/dist/src/computer/endpoint-transport.js +1 -1
- package/dist/src/config/agent-profile.js +1 -1
- package/dist/src/config/schema.d.ts +6 -0
- package/dist/src/config/schema.js +6 -0
- package/dist/src/execution-environments/local-worktree-manager.js +1 -1
- package/dist/src/extensions/agent-plugins/skill-catalog.js +1 -1
- package/dist/src/extensions/agent-plugins/validation.js +1 -1
- package/dist/src/gateway/agent-builtin-tools.d.ts +1 -1
- package/dist/src/gateway/agents-admin.js +2 -2
- package/dist/src/gateway/global-defaults-admin.js +1 -1
- package/dist/src/gateway/hono/lib/config-payload.d.ts +6 -0
- package/dist/src/gateway/hono/routes/agents.js +1 -1
- package/dist/src/gateway/hono/routes/auth-registry-extensions.js +1 -1
- package/dist/src/gateway/hono/routes/config-patch/misc.js +1 -1
- package/dist/src/gateway/hono/routes/local-app-run-streams.js +1 -1
- package/dist/src/gateway/hono/routes/notes.js +2 -2
- package/dist/src/gateway/hono/routes/phone-setup.js +1 -1
- package/dist/src/gateway/hono/routes/projects.js +2 -2
- package/dist/src/gateway/hono/routes/session-input-handler.js +1 -1
- package/dist/src/gateway/hono/routes/tasks.js +2 -2
- package/dist/src/gateway/hono/routes/user-model.js +47 -7
- package/dist/src/gateway/image-generation-setup.js +1 -1
- package/dist/src/gateway/service/config-coordinator.d.ts +6 -0
- package/dist/src/gateway/service.js +4 -4
- package/dist/src/gateway/xopc-cloud-capability-setup.js +1 -1
- package/dist/src/home-intelligence/host.js +2 -2
- package/dist/src/imports/importService.js +1 -1
- package/dist/src/knowledge-memory/index.js +2 -2
- package/dist/src/knowledge-memory/repository.d.ts +6 -0
- package/dist/src/knowledge-memory/repository.js +49 -1
- package/dist/src/knowledge-memory/usage-policy.js +7 -7
- package/dist/src/local-apps/automation-proposals.js +1 -1
- package/dist/src/local-apps/capabilities/automation-policy.js +1 -1
- package/dist/src/local-apps/capabilities/delegate.js +3 -3
- package/dist/src/local-apps/p1-services.js +1 -1
- package/dist/src/local-apps/service.js +1 -1
- package/dist/src/memory-learning/work-capture.js +3 -1
- package/dist/src/personal-agent/policy.d.ts +1 -1
- package/dist/src/personal-agent/policy.js +2 -1
- package/dist/src/personal-agent/prompts.js +7 -1
- package/dist/src/personal-agent/service.js +1 -1
- package/dist/src/providers/model-catalog-persistence.js +1 -1
- package/dist/src/runtime-tools/archive.js +1 -1
- package/dist/src/session/history-recall-policy.d.ts +6 -0
- package/dist/src/session/history-recall-policy.js +48 -0
- package/dist/src/tasks/capabilities/read.js +2 -2
- package/dist/src/tasks/capabilities/write.js +1 -1
- package/dist/src/tui/backends/embedded-backend.js +1 -1
- package/dist/src/user-context/config.d.ts +12 -0
- package/dist/src/user-context/config.js +14 -1
- package/dist/src/user-context/memory-version.d.ts +2 -0
- package/dist/src/user-context/memory-version.js +12 -0
- package/dist/src/user-model/capture/evidence-policy.d.ts +45 -0
- package/dist/src/user-model/capture/evidence-policy.js +143 -0
- package/dist/src/user-model/capture/executor.d.ts +1 -0
- package/dist/src/user-model/capture/executor.js +68 -8
- package/dist/src/user-model/capture/semantic.d.ts +16 -0
- package/dist/src/user-model/capture/semantic.js +66 -12
- package/dist/src/user-model/repository.js +11 -0
- package/dist/src/user-model/usage-policy.js +5 -5
- package/dist/src/voice/realtime/persona-context.js +1 -1
- package/dist/src/work-discovery/service.js +1 -1
- package/package.json +1 -1
- package/dist/gateway/static/root/assets/index-Bj5exyow.css +0 -1
- package/dist/gateway/static/root/assets/tool-friendly-title-DC8_9-Lo.js +0 -2
- package/dist/gateway/static/root/assets/understanding-refresh-store-Ihz2p9Vg.js +0 -1
- package/dist/gateway/static/root/assets/user-model-page-1eYattnk.js +0 -2
|
@@ -5,6 +5,7 @@ import { readAgentMessageContent } from "../memory/agent-message-access.js";
|
|
|
5
5
|
import { init_providers, resolveModel } from "../../providers/index.js";
|
|
6
6
|
import { completeWithResolvedCredentials } from "../../providers/model-call.js";
|
|
7
7
|
import { FORGOTTEN_HISTORY_EXCERPT, forgottenHistoryEntries, projectUnadmittedForgottenFields } from "../../memory-learning/forgotten-history.js";
|
|
8
|
+
import { stripRuntimeContextFromUserMessage } from "../../session/user-message-display.js";
|
|
8
9
|
import "./local-read-budget.js";
|
|
9
10
|
import { Type } from "@sinclair/typebox";
|
|
10
11
|
//#region src/agent/tools/session-search-tool.ts
|
|
@@ -95,7 +96,7 @@ function createSessionSearchTool(deps) {
|
|
|
95
96
|
return {
|
|
96
97
|
name: "session_search",
|
|
97
98
|
label: "Session search",
|
|
98
|
-
description: deps.localOnly ? "Search
|
|
99
|
+
description: deps.localOnly ? "Search chats in the current agent, workspace and project scope and return short matching transcript excerpts. Omit query to list recent allowed chats. No model or network calls. Switch project context to search a different project." : "Search other chat sessions by keywords and get short summaries, or omit `query` to list recent sessions (no LLM cost). Uses the same session store as the gateway. Narrow with roleFilter if needed.",
|
|
99
100
|
parameters: deps.localOnly ? Type.Object({
|
|
100
101
|
...SessionSearchSchema.properties,
|
|
101
102
|
query: Type.Optional(Type.String({
|
|
@@ -137,7 +138,7 @@ function createSessionSearchTool(deps) {
|
|
|
137
138
|
sortBy: "updatedAt",
|
|
138
139
|
sortOrder: "desc"
|
|
139
140
|
});
|
|
140
|
-
const items = listed.items.slice(0, limit).map((s) => ({
|
|
141
|
+
const items = listed.items.filter((item) => !deps.canRecallConversation || deps.canRecallConversation(item.key)).slice(0, limit).map((s) => ({
|
|
141
142
|
key: s.key,
|
|
142
143
|
name: projectTitle(s.key, s.name),
|
|
143
144
|
updatedAt: s.updatedAt,
|
|
@@ -151,7 +152,7 @@ function createSessionSearchTool(deps) {
|
|
|
151
152
|
success: true,
|
|
152
153
|
mode: "recent",
|
|
153
154
|
results: items,
|
|
154
|
-
total: listed.total
|
|
155
|
+
total: deps.canRecallConversation ? items.length : listed.total
|
|
155
156
|
}, null, 2)
|
|
156
157
|
}],
|
|
157
158
|
details: {
|
|
@@ -166,7 +167,7 @@ function createSessionSearchTool(deps) {
|
|
|
166
167
|
sortBy: "updatedAt",
|
|
167
168
|
sortOrder: "desc"
|
|
168
169
|
});
|
|
169
|
-
let matches = listed.items.map((item) => ({
|
|
170
|
+
let matches = listed.items.filter((item) => !deps.canRecallConversation || deps.canRecallConversation(item.key)).map((item) => ({
|
|
170
171
|
key: item.key,
|
|
171
172
|
score: 1
|
|
172
173
|
}));
|
|
@@ -180,8 +181,8 @@ function createSessionSearchTool(deps) {
|
|
|
180
181
|
excerpts: store.recallSession(key, query, {
|
|
181
182
|
limit: 2,
|
|
182
183
|
matchMode: "keyword"
|
|
183
|
-
}).filter((match) => !p.roleFilter || match.role === p.roleFilter).map((match) => {
|
|
184
|
-
const content = protectedEntries.has(`${key}:*`) || protectedEntries.has(`${key}:${match.entryId}`) ? FORGOTTEN_HISTORY_EXCERPT : deps.getHistoryContext ? projectUnadmittedForgottenFields(match.content, deps.getHistoryContext(), deps.getCurrentUserText?.()) : match.content;
|
|
184
|
+
}).filter((match) => (!p.roleFilter || match.role === p.roleFilter) && (!deps.canRecallEntry || deps.canRecallEntry(key, match.entryId, match.content))).map((match) => {
|
|
185
|
+
const content = stripRuntimeContextFromUserMessage(protectedEntries.has(`${key}:*`) || protectedEntries.has(`${key}:${match.entryId}`) ? FORGOTTEN_HISTORY_EXCERPT : deps.getHistoryContext ? projectUnadmittedForgottenFields(match.content, deps.getHistoryContext(), deps.getCurrentUserText?.()) : match.content);
|
|
185
186
|
const positions = sessionSearchTerms(query).map((term) => content.toLowerCase().indexOf(term.toLowerCase())).filter((at) => at >= 0);
|
|
186
187
|
const at = positions.length ? Math.min(...positions) : 0;
|
|
187
188
|
const start = Math.max(0, at - 200);
|
|
@@ -200,7 +201,8 @@ function createSessionSearchTool(deps) {
|
|
|
200
201
|
mode: "keyword",
|
|
201
202
|
query,
|
|
202
203
|
results,
|
|
203
|
-
truncated: false
|
|
204
|
+
truncated: false,
|
|
205
|
+
...deps.canRecallConversation ? { historyScope: "current_agent_workspace_project" } : {}
|
|
204
206
|
};
|
|
205
207
|
while (JSON.stringify(payload).length > 8e3 && results.length) {
|
|
206
208
|
payload.truncated = true;
|
|
@@ -229,6 +231,18 @@ function createSessionSearchTool(deps) {
|
|
|
229
231
|
score,
|
|
230
232
|
summary: FORGOTTEN_HISTORY_EXCERPT
|
|
231
233
|
};
|
|
234
|
+
if (deps.canRecallEntry) return {
|
|
235
|
+
conversationId: key,
|
|
236
|
+
score,
|
|
237
|
+
summary: await summarizeSession(store.recallSession(key, query, {
|
|
238
|
+
limit: 8,
|
|
239
|
+
matchMode: "keyword"
|
|
240
|
+
}).filter((match) => (!p.roleFilter || match.role === p.roleFilter) && deps.canRecallEntry(key, match.entryId, match.content)).map((match) => ({
|
|
241
|
+
role: match.role,
|
|
242
|
+
content: deps.getHistoryContext ? projectUnadmittedForgottenFields(stripRuntimeContextFromUserMessage(match.content), deps.getHistoryContext(), deps.getCurrentUserText?.()) : stripRuntimeContextFromUserMessage(match.content),
|
|
243
|
+
timestamp: match.createdAt
|
|
244
|
+
})), query, deps, signal, { summarizingConversationId: key })
|
|
245
|
+
};
|
|
232
246
|
let messages = await store.load(key);
|
|
233
247
|
if (deps.getHistoryContext) messages = projectUnadmittedForgottenFields(messages, deps.getHistoryContext(), deps.getCurrentUserText?.());
|
|
234
248
|
if (p.roleFilter) messages = messages.filter((m) => m.role === p.roleFilter);
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { projectForgottenEvidence } from "../../memory-learning/forgotten-history.js";
|
|
2
|
+
import { retrievalLexicalSimilarity } from "../../retrieval/textFeatures.js";
|
|
2
3
|
import { deleteUserAssertion, getAssertionSlot, getUserAssertion, listUserAssertionSources, listUserAssertions, reconcileAssertion, setAssertionStatus } from "../../user-model/repository.js";
|
|
3
4
|
import { canUseAssertion } from "../../user-model/usage-policy.js";
|
|
4
5
|
import "./local-read-budget.js";
|
|
6
|
+
import { memoryVersion } from "../../user-context/memory-version.js";
|
|
5
7
|
import "../../user-model/index.js";
|
|
6
|
-
import { retrievalLexicalSimilarity } from "../../retrieval/textFeatures.js";
|
|
7
8
|
import { Type } from "@sinclair/typebox";
|
|
8
9
|
//#region src/agent/tools/user-context-tool.ts
|
|
9
10
|
const SearchSchema = Type.Object({
|
|
@@ -59,6 +60,11 @@ function createUserContextSearchTool(options) {
|
|
|
59
60
|
score: retrievalLexicalSimilarity(input.query, `${assertion.statement} ${assertion.normalizedValue}`)
|
|
60
61
|
})).filter((item) => item.score > 0).sort((left, right) => right.score - left.score).slice(0, input.maxResults ?? 12).map(({ assertion, score }) => ({
|
|
61
62
|
id: assertion.id,
|
|
63
|
+
scope: getAssertionSlot(assertion.slotId)?.scope,
|
|
64
|
+
version: memoryVersion({
|
|
65
|
+
assertion,
|
|
66
|
+
scope: getAssertionSlot(assertion.slotId)?.scope
|
|
67
|
+
}),
|
|
62
68
|
kind: assertion.kind,
|
|
63
69
|
statement: assertion.statement,
|
|
64
70
|
status: assertion.status,
|
|
@@ -111,6 +117,10 @@ function createUserContextGetTool(options) {
|
|
|
111
117
|
};
|
|
112
118
|
const result = {
|
|
113
119
|
assertion,
|
|
120
|
+
version: memoryVersion({
|
|
121
|
+
assertion,
|
|
122
|
+
scope: getAssertionSlot(assertion.slotId)?.scope
|
|
123
|
+
}),
|
|
114
124
|
slot: getAssertionSlot(assertion.slotId),
|
|
115
125
|
sources: projectForgottenEvidence(listUserAssertionSources([assertion.id]).get(assertion.id) ?? [], {
|
|
116
126
|
agentId: options.agentId,
|
|
@@ -11,16 +11,16 @@ import { TaskRunRepository } from "../../tasks/task-run-repository.js";
|
|
|
11
11
|
import { getSessionMetadata } from "../../storage/sqlite/session-read-repository.js";
|
|
12
12
|
import "../../storage/sqlite/index.js";
|
|
13
13
|
import "../../activity/index.js";
|
|
14
|
+
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
15
|
+
import "../../capabilities/runtime/dispatcher.js";
|
|
14
16
|
import { getDefaultAgentId, init_resolve_route } from "../../routing/resolve-route.js";
|
|
15
17
|
import { hasUnlocalizedTaskText, resolveTaskLocale } from "../../tasks/task-language.js";
|
|
16
18
|
import { TaskReadModelProjector } from "../../tasks/task-read-model-projector.js";
|
|
17
19
|
import { TaskOriginRepository } from "../../tasks/task-origin-repository.js";
|
|
18
20
|
import { TaskConversationRepository } from "../../tasks/task-conversation-repository.js";
|
|
19
21
|
import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
|
|
20
|
-
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
21
22
|
import { getAutomationSetup } from "../../automations/configuration-conversation.js";
|
|
22
23
|
import { getEmbeddedExecutionRunId } from "../embedded/execution-context.js";
|
|
23
|
-
import "../../capabilities/runtime/dispatcher.js";
|
|
24
24
|
import { AutomationMcpSourceInput, prepareAutomationMcpSource } from "../../automations/mcp-source.js";
|
|
25
25
|
import { AutomationCreateCapabilityInputSchema, AutomationUpdatePatchSchema } from "../../automations/capabilities/write.js";
|
|
26
26
|
import { resolveProjectAgentId } from "../../projects/project-agent.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AgentEntrySchema, AgentProfileSchema, EffectiveAgentConfigSchema } from "../agent-config/schema.js";
|
|
2
2
|
import { resolveEffectiveAgentConfig } from "../agent-config/resolver.js";
|
|
3
3
|
import { init_agent_config } from "../agent-config/index.js";
|
|
4
|
-
import { AgentCatalogRepository, init_repository } from "./repository.js";
|
|
5
|
-
import { init_agent_scope, resolveAgentWorkspaceDir } from "../agent/agent-scope.js";
|
|
6
4
|
import { CapabilityError } from "../capabilities/runtime/errors.js";
|
|
7
5
|
import { defineAtomicCapability, defineReadCapability } from "../capabilities/runtime/dispatcher.js";
|
|
6
|
+
import { AgentCatalogRepository, init_repository } from "./repository.js";
|
|
7
|
+
import { init_agent_scope, resolveAgentWorkspaceDir } from "../agent/agent-scope.js";
|
|
8
8
|
import { AgentCatalogService } from "./service.js";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
//#region src/agent-catalog/capabilities.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { getSqliteDatabase, init_transaction, runSqliteWriteTransaction } from "../storage/sqlite/transaction.js";
|
|
3
|
-
import { DEFAULT_AGENT_ID, init_id, normalizeAgentId } from "./id.js";
|
|
4
3
|
import { AgentDefaultsSchema, AgentEntrySchema, DEFAULT_AGENT_MODEL_REF, DEFAULT_SKILL_POLICY } from "../agent-config/schema.js";
|
|
5
4
|
import { init_agent_config } from "../agent-config/index.js";
|
|
5
|
+
import { DEFAULT_AGENT_ID, init_id, normalizeAgentId } from "./id.js";
|
|
6
6
|
import { BindingsSchema, init_binding_schema } from "../routing/binding-schema.js";
|
|
7
7
|
import { randomUUID } from "node:crypto";
|
|
8
8
|
//#region src/agent-catalog/repository.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AutomationCancelOutputSchema, AutomationDeleteOutputSchema, AutomationMutationOutputSchema, AutomationReadAllOutputSchema, AutomationReadOutputSchema, AutomationRunMutationOutputSchema, ProductReadContracts } from "../../../packages/gateway-contract/src/capabilities.js";
|
|
2
2
|
import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
3
|
-
import { init_agent_scope, resolveDefaultAgentId } from "../../agent/agent-scope.js";
|
|
4
3
|
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
5
|
-
import { getAutomationSetup, openAutomationConfiguration } from "../configuration-conversation.js";
|
|
6
4
|
import "../../capabilities/runtime/dispatcher.js";
|
|
5
|
+
import { init_agent_scope, resolveDefaultAgentId } from "../../agent/agent-scope.js";
|
|
6
|
+
import { getAutomationSetup, openAutomationConfiguration } from "../configuration-conversation.js";
|
|
7
7
|
import { capabilityHttpContext, capabilityHttpError } from "../../capabilities/adapters/http.js";
|
|
8
8
|
import { createAutomationDispatcher } from "./dispatcher.js";
|
|
9
9
|
import { randomUUID } from "node:crypto";
|
|
@@ -3,10 +3,10 @@ import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
|
3
3
|
import { resolveAutomationSafetyForTrust } from "../../user-context/trust-policy.js";
|
|
4
4
|
import { getUserTrustPolicy } from "../../storage/sqlite/user-trust-repository.js";
|
|
5
5
|
import "../../storage/sqlite/index.js";
|
|
6
|
-
import { init_agent_scope, resolveDefaultAgentId } from "../../agent/agent-scope.js";
|
|
7
6
|
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
8
7
|
import { ExternalEffectNotAppliedError } from "../../capabilities/runtime/external-operations.js";
|
|
9
8
|
import { defineExternalCapability, defineReadCapability } from "../../capabilities/runtime/dispatcher.js";
|
|
9
|
+
import { init_agent_scope, resolveDefaultAgentId } from "../../agent/agent-scope.js";
|
|
10
10
|
import { AutomationCreateCapabilityInputSchema, materializeAutomationTrigger } from "./write.js";
|
|
11
11
|
import { simulateAutomation } from "../draft/automation-draft-validator.js";
|
|
12
12
|
import { AutomationDraftService } from "../draft/automation-draft-service.js";
|
|
@@ -2,6 +2,7 @@ import { AutomationCancelOutputSchema, AutomationDeleteInputSchema, AutomationDe
|
|
|
2
2
|
import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
3
3
|
import { DurableState } from "../../storage/sqlite/durable-state.js";
|
|
4
4
|
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
5
|
+
import { defineAtomicCapability } from "../../capabilities/runtime/dispatcher.js";
|
|
5
6
|
import { AutomationTriggerSchema, CreateAutomationSchema, UpdateAutomationSchema } from "../domain/validation.js";
|
|
6
7
|
import { getAutomation } from "../storage/automation-repository.js";
|
|
7
8
|
import { getAutomationRun, markAllAutomationRunsRead, markAutomationRunRead } from "../storage/automation-run-repository.js";
|
|
@@ -9,7 +10,6 @@ import "../storage/index.js";
|
|
|
9
10
|
import { getAutomationEventForRun } from "../events/event-repository.js";
|
|
10
11
|
import "../events/index.js";
|
|
11
12
|
import { assertAutomationSetupTarget, bindAutomationSetup } from "../configuration-conversation.js";
|
|
12
|
-
import { defineAtomicCapability } from "../../capabilities/runtime/dispatcher.js";
|
|
13
13
|
import { LocalAppAutomationSubmitSchema } from "../../local-apps/capabilities/projections.js";
|
|
14
14
|
import { AutomationAlreadyExistsError, AutomationAlreadyRunningError, AutomationInvalidAgentError, AutomationInvalidScheduleError, AutomationInvalidSourceError } from "../service/automation-service.js";
|
|
15
15
|
import { z } from "zod";
|
|
@@ -3,9 +3,9 @@ import { getSqliteDatabase, init_transaction, runSqliteWriteTransaction } from "
|
|
|
3
3
|
import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js";
|
|
4
4
|
import { init_session_repository, patchSessionMetadata } from "../storage/sqlite/session-repository.js";
|
|
5
5
|
import "../storage/sqlite/index.js";
|
|
6
|
+
import { CapabilityError } from "../capabilities/runtime/errors.js";
|
|
6
7
|
import { init_agent_scope, listAgentEntries } from "../agent/agent-scope.js";
|
|
7
8
|
import { createConversation, init_conversation_repository } from "../storage/sqlite/conversation-repository.js";
|
|
8
|
-
import { CapabilityError } from "../capabilities/runtime/errors.js";
|
|
9
9
|
import { getAutomation } from "./storage/automation-repository.js";
|
|
10
10
|
import { getAutomationRun, listAutomationRuns } from "./storage/automation-run-repository.js";
|
|
11
11
|
import { listAutomationResultDeliveries } from "./delivery/delivery-router.js";
|
|
@@ -13,8 +13,8 @@ import { accessSync, chmodSync, constants, existsSync, mkdirSync, readFileSync,
|
|
|
13
13
|
import { fileURLToPath } from "node:url";
|
|
14
14
|
import { createHash } from "node:crypto";
|
|
15
15
|
import { execFileSync, spawn } from "node:child_process";
|
|
16
|
-
import AdmZip from "adm-zip";
|
|
17
16
|
import { readFile, readdir, rm } from "node:fs/promises";
|
|
17
|
+
import AdmZip from "adm-zip";
|
|
18
18
|
//#region src/browser/providers/browser-ext-install.ts
|
|
19
19
|
/**
|
|
20
20
|
* Install bundled Chrome extension artifacts into {resolveBinDir()}/browser-ext/.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SqliteCommitEffectError, init_transaction } from "../../storage/sqlite/transaction.js";
|
|
2
|
+
import { OperationConflictError, executeAtomicOperation } from "./atomic-operations.js";
|
|
2
3
|
import { CapabilityError } from "./errors.js";
|
|
3
4
|
import { executeExternalOperation } from "./external-operations.js";
|
|
4
|
-
import { OperationConflictError, executeAtomicOperation } from "./atomic-operations.js";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/capabilities/runtime/dispatcher.ts
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CapabilityError } from "./errors.js";
|
|
2
2
|
import { CapabilityDispatcher } from "./dispatcher.js";
|
|
3
|
+
import { registerAgentCapabilities } from "../../agent-catalog/capabilities.js";
|
|
3
4
|
import { registerLocalAppReadCapabilities } from "../../local-apps/capabilities/read.js";
|
|
4
5
|
import { registerNoteReadCapabilities } from "../../notes/capabilities/read.js";
|
|
5
6
|
import { registerNoteWriteCapabilities } from "../../notes/capabilities/write.js";
|
|
@@ -20,7 +21,6 @@ import { registerTaskRelationCapabilities } from "../../tasks/capabilities/relat
|
|
|
20
21
|
import { registerTaskRunWriteCapabilities } from "../../tasks/capabilities/runs.js";
|
|
21
22
|
import { registerSettingsCapability } from "./settings.js";
|
|
22
23
|
import { registerAppContextCapability } from "./app-context.js";
|
|
23
|
-
import { registerAgentCapabilities } from "../../agent-catalog/capabilities.js";
|
|
24
24
|
//#region src/capabilities/runtime/product.ts
|
|
25
25
|
function createProductDispatcher(getNotes, taskWrites) {
|
|
26
26
|
const dispatcher = new CapabilityDispatcher();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { normalizeAgentId, validateAgentIdForNewAgent } from "../../agent-catalog/id.js";
|
|
2
2
|
import { AgentCatalogRepository, init_repository } from "../../agent-catalog/repository.js";
|
|
3
3
|
import { init_agent_scope, resolveAgentDir, resolveAgentWorkspaceDir, resolveDefaultAgentId } from "../../agent/agent-scope.js";
|
|
4
|
-
import { resolveEffectiveAgentConfigForAgent } from "../../config/agent-profile.js";
|
|
5
4
|
import { AgentCatalogService } from "../../agent-catalog/service.js";
|
|
5
|
+
import { resolveEffectiveAgentConfigForAgent } from "../../config/agent-profile.js";
|
|
6
6
|
import { colors } from "../utils/colors.js";
|
|
7
7
|
//#region src/cli/commands/agents.ts
|
|
8
8
|
init_repository();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { creditDecimal } from "../../../packages/gateway-contract/src/cloud-credits.js";
|
|
2
2
|
import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
3
3
|
import { AgentCatalogRepository, init_repository } from "../../agent-catalog/repository.js";
|
|
4
|
+
import { AgentCatalogService } from "../../agent-catalog/service.js";
|
|
4
5
|
import { getAgentDefaultModelRef, init_schema } from "../../config/schema.js";
|
|
5
6
|
import { CredentialResolver, init_credentials } from "../../auth/credentials.js";
|
|
6
7
|
import { getAllModels, getAvailableModels, getConfiguredProviders, getProviderAuthState, getProviderDisplayName, init_providers, isProviderConfigured, providerSupportsApiKey, providerSupportsOAuth, resolveModel } from "../../providers/index.js";
|
|
7
8
|
import { XopcCloudAccountService } from "../../providers/xopc-cloud-account-service.js";
|
|
8
|
-
import { AgentCatalogService } from "../../agent-catalog/service.js";
|
|
9
9
|
import { listImageProviderSpecs } from "../../../packages/image-providers/src/catalog.js";
|
|
10
10
|
import "../../../packages/image-providers/src/index.js";
|
|
11
11
|
import { loadConfig } from "../../config/loader.js";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AgentCatalogRepository, init_repository } from "../../../agent-catalog/repository.js";
|
|
2
|
+
import { AgentCatalogService } from "../../../agent-catalog/service.js";
|
|
2
3
|
import { resolveModelsJsonPath } from "../../../config/paths.js";
|
|
3
4
|
import { ConfigSchema, getAgentDefaultModelRef, init_schema } from "../../../config/schema.js";
|
|
4
5
|
import { init_models_json, loadModelsJson, saveModelsJson } from "../../../config/models-json.js";
|
|
@@ -6,7 +7,6 @@ import { getApiKeyFromEnv } from "../../../providers/env-keys.js";
|
|
|
6
7
|
import { getModelRegistry } from "../../../providers/model-registry.js";
|
|
7
8
|
import { CredentialResolver, init_credentials } from "../../../auth/credentials.js";
|
|
8
9
|
import { getAllProviders, getModelsByProvider, getProviderDisplayName, init_providers, providerSupportsApiKey, providerSupportsOAuth } from "../../../providers/index.js";
|
|
9
|
-
import { AgentCatalogService } from "../../../agent-catalog/service.js";
|
|
10
10
|
import { prepareUpdateGlobalDefaults } from "../../../gateway/global-defaults-admin.js";
|
|
11
11
|
import { discoverProviderModels, isProviderApiDiscoverable } from "../../../providers/model-discovery.js";
|
|
12
12
|
import { getXopcCloudCatalogCoordinator } from "../../../providers/xopc-cloud-catalog-coordinator.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AgentCatalogRepository, init_repository } from "../../agent-catalog/repository.js";
|
|
2
|
-
import { ConfigSchema, init_schema } from "../../config/schema.js";
|
|
3
2
|
import { AgentCatalogService } from "../../agent-catalog/service.js";
|
|
3
|
+
import { ConfigSchema, init_schema } from "../../config/schema.js";
|
|
4
4
|
import { readConfigFileSnapshot } from "../../config/config-file.js";
|
|
5
5
|
import { saveConfig } from "../../config/loader.js";
|
|
6
6
|
import { ensureStarterAgentsInitialized } from "../../agent/starter-agents.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { canonicalJson, init_src } from "../../packages/endpoint-tools-protocol/src/index.js";
|
|
2
|
-
import { COMPUTER_CONTROL_TOOL, REMOTE_COMPUTER_CONTROL_TOOL, init_src as init_src$1 } from "../../packages/computer-control-contract/src/index.js";
|
|
3
2
|
import { ExternalEffectNotAppliedError, executeExternalOperation } from "../capabilities/runtime/external-operations.js";
|
|
3
|
+
import { COMPUTER_CONTROL_TOOL, REMOTE_COMPUTER_CONTROL_TOOL, init_src as init_src$1 } from "../../packages/computer-control-contract/src/index.js";
|
|
4
4
|
import { EndpointToolExecutionError } from "../endpoint-tools/invocation-service.js";
|
|
5
5
|
import { createHash, randomUUID } from "node:crypto";
|
|
6
6
|
//#region src/computer/endpoint-transport.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { normalizeAgentId } from "../agent-catalog/id.js";
|
|
2
1
|
import { resolveEffectiveAgentConfig } from "../agent-config/resolver.js";
|
|
3
2
|
import { init_agent_config } from "../agent-config/index.js";
|
|
3
|
+
import { normalizeAgentId } from "../agent-catalog/id.js";
|
|
4
4
|
import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
|
|
5
5
|
import { init_agent_scope, resolveAgentWorkspaceDir } from "../agent/agent-scope.js";
|
|
6
6
|
import { getConversationRouting } from "../storage/sqlite/conversation-repository.js";
|
|
@@ -1495,6 +1495,12 @@ export declare const ConfigSchema: z.ZodDefault<z.ZodObject<{
|
|
|
1495
1495
|
maxAssertions: z.ZodDefault<z.ZodNumber>;
|
|
1496
1496
|
maxKnowledge: z.ZodDefault<z.ZodNumber>;
|
|
1497
1497
|
maxChars: z.ZodDefault<z.ZodNumber>;
|
|
1498
|
+
deepRecall: z.ZodDefault<z.ZodObject<{
|
|
1499
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1500
|
+
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
1501
|
+
maxSessions: z.ZodDefault<z.ZodNumber>;
|
|
1502
|
+
maxEvidence: z.ZodDefault<z.ZodNumber>;
|
|
1503
|
+
}, z.core.$strict>>;
|
|
1498
1504
|
compaction: z.ZodDefault<z.ZodObject<{
|
|
1499
1505
|
personalIdle: z.ZodDefault<z.ZodObject<{
|
|
1500
1506
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1114,6 +1114,12 @@ workDiscoveryOnboarding: z.boolean().default(true) }).strict().default({ workDis
|
|
|
1114
1114
|
maxAssertions: 20,
|
|
1115
1115
|
maxKnowledge: 12,
|
|
1116
1116
|
maxChars: 6e3,
|
|
1117
|
+
deepRecall: {
|
|
1118
|
+
enabled: true,
|
|
1119
|
+
timeoutMs: 8e3,
|
|
1120
|
+
maxSessions: 60,
|
|
1121
|
+
maxEvidence: 6
|
|
1122
|
+
},
|
|
1117
1123
|
compaction: DEFAULT_CONTEXT_COMPACTION_POLICY
|
|
1118
1124
|
},
|
|
1119
1125
|
homeIntelligence: {
|
|
@@ -8,8 +8,8 @@ import { assertManagedWorktreePath, assertNoNestedRegisteredWorktrees, readDirec
|
|
|
8
8
|
import { dirname, resolve } from "node:path";
|
|
9
9
|
import { existsSync } from "node:fs";
|
|
10
10
|
import { randomUUID } from "node:crypto";
|
|
11
|
-
import lockfile from "proper-lockfile";
|
|
12
11
|
import { mkdir, rm, stat } from "node:fs/promises";
|
|
12
|
+
import lockfile from "proper-lockfile";
|
|
13
13
|
//#region src/execution-environments/local-worktree-manager.ts
|
|
14
14
|
init_logger();
|
|
15
15
|
const log = createLogger("ExecutionEnvironment:LocalWorktree");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { parseFrontmatter } from "../../markdown/frontmatter.js";
|
|
1
2
|
import { containedPath } from "./contained-path.js";
|
|
2
3
|
import "./validation.js";
|
|
3
4
|
import { AgentPluginStore } from "./store.js";
|
|
4
|
-
import { parseFrontmatter } from "../../markdown/frontmatter.js";
|
|
5
5
|
import { createSkillConfigManager } from "../../agent/skills/config.js";
|
|
6
6
|
import { parseSkillLocalizations } from "../../agent/skills/parse-skill-metadata.js";
|
|
7
7
|
import { buildSkillMarkdownPreviewFromRaw } from "../../agent/skills/skill-markdown-preview-from-raw.js";
|
|
@@ -9,8 +9,8 @@ import { dirname, join, resolve } from "node:path";
|
|
|
9
9
|
import { existsSync, lstatSync, readFileSync, readdirSync, realpathSync, statSync } from "node:fs";
|
|
10
10
|
import { createHash } from "node:crypto";
|
|
11
11
|
import { z } from "zod";
|
|
12
|
-
import { validateHeaderName, validateHeaderValue } from "node:http";
|
|
13
12
|
import yaml from "js-yaml";
|
|
13
|
+
import { validateHeaderName, validateHeaderValue } from "node:http";
|
|
14
14
|
//#region src/extensions/agent-plugins/validation.ts
|
|
15
15
|
init_schema();
|
|
16
16
|
const PLUGIN_SCHEMA = "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json";
|
|
@@ -277,4 +277,4 @@ export declare const GATEWAY_BUILTIN_TOOLS: readonly [{
|
|
|
277
277
|
readonly zh: "使用已验证的参数执行选定的外部工具。";
|
|
278
278
|
};
|
|
279
279
|
}];
|
|
280
|
-
export declare const GATEWAY_BUILTIN_TOOL_IDS: ("automation" | "find" | "image" | "xopc_tool_search" | "knowledge_search" | "knowledge_get" | "knowledge_write" | "user_context_search" | "user_context_get" | "user_context_update" | "web_search" | "web_fetch" | "browser_use" | "grep" | "session_search" | "read_file" | "list_dir" | "write_file" | "apply_patch" | "exec_command" | "update_plan" | "todo" | "web_extract" | "clarify" | "xopc_tool_execute" | "
|
|
280
|
+
export declare const GATEWAY_BUILTIN_TOOL_IDS: ("automation" | "find" | "image" | "xopc_tool_search" | "knowledge_search" | "knowledge_get" | "knowledge_write" | "user_context_search" | "user_context_get" | "user_context_update" | "web_search" | "web_fetch" | "browser_use" | "grep" | "session_search" | "read_file" | "list_dir" | "write_file" | "apply_patch" | "exec_command" | "update_plan" | "todo" | "web_extract" | "clarify" | "xopc_tool_execute" | "image_generate" | "skills_list" | "skill_view" | "skill_manage" | "skills_marketplace_search" | "tool_manual" | "session_status" | "read_media" | "xopc_tool_describe" | "phone_use" | "computer_use" | "send_message" | "text_to_speech" | "execute_code" | "send_media" | "create_share" | "memory_maintenance" | "skill_install" | "delegate_task" | "create_desktop_pet")[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { normalizeAgentId, validateAgentIdForNewAgent } from "../agent-catalog/id.js";
|
|
2
2
|
import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
|
|
3
3
|
import { init_agent_scope, listAgentEntries, resolveAgentProfileDir, resolveAgentWorkspaceDir, resolveDefaultAgentId, resolveUserPath } from "../agent/agent-scope.js";
|
|
4
|
-
import { resolveEffectiveAgentProfile } from "../config/agent-profile.js";
|
|
5
4
|
import { AGENT_PROFILE_MARKDOWN_SYSTEM_FILES, REQUIRED_AGENT_PROFILE_MARKDOWN_FILE_SET } from "../agent/context/workspace.js";
|
|
6
|
-
import { isPathUnderWorkspace, resolveWorkspaceSafePath } from "./workspace-editor-path.js";
|
|
7
5
|
import { AgentCatalogService } from "../agent-catalog/service.js";
|
|
6
|
+
import { resolveEffectiveAgentProfile } from "../config/agent-profile.js";
|
|
7
|
+
import { isPathUnderWorkspace, resolveWorkspaceSafePath } from "./workspace-editor-path.js";
|
|
8
8
|
import { GATEWAY_BUILTIN_TOOL_IDS } from "./agent-builtin-tools.js";
|
|
9
9
|
import { resolve } from "node:path";
|
|
10
10
|
import { mkdir, readFile, realpath, stat, unlink, writeFile } from "node:fs/promises";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AgentDefaultsSchema } from "../agent-config/schema.js";
|
|
2
2
|
import { init_agent_config } from "../agent-config/index.js";
|
|
3
3
|
import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
|
|
4
|
-
import { validatePhoneModelChange } from "../phone/model-adapter.js";
|
|
5
4
|
import { AgentCatalogService } from "../agent-catalog/service.js";
|
|
5
|
+
import { validatePhoneModelChange } from "../phone/model-adapter.js";
|
|
6
6
|
import { validateComputerModelChange } from "../computer/model-config.js";
|
|
7
7
|
import { GATEWAY_BUILTIN_TOOLS } from "./agent-builtin-tools.js";
|
|
8
8
|
import { isDeepStrictEqual } from "node:util";
|
|
@@ -274,6 +274,12 @@ export declare function buildSafeWebConfigPayload(service: GatewayService, optio
|
|
|
274
274
|
maxAssertions: number;
|
|
275
275
|
maxKnowledge: number;
|
|
276
276
|
maxChars: number;
|
|
277
|
+
deepRecall: {
|
|
278
|
+
enabled: boolean;
|
|
279
|
+
timeoutMs: number;
|
|
280
|
+
maxSessions: number;
|
|
281
|
+
maxEvidence: number;
|
|
282
|
+
};
|
|
277
283
|
compaction: {
|
|
278
284
|
personalIdle: {
|
|
279
285
|
enabled: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { normalizeAgentId } from "../../../agent-catalog/id.js";
|
|
2
1
|
import { AgentEntrySchema, AgentModelsOverrideSchema, AgentProfileSchema, RuntimePolicySchema, SkillOverrideSchema, ToolPoliciesSchema } from "../../../agent-config/schema.js";
|
|
3
2
|
import { init_agent_config } from "../../../agent-config/index.js";
|
|
3
|
+
import { normalizeAgentId } from "../../../agent-catalog/id.js";
|
|
4
4
|
import { init_agent_scope } from "../../../agent/agent-scope.js";
|
|
5
5
|
import { getVoiceModelsConfig } from "../../../config/voice.js";
|
|
6
6
|
import { createGatewayAgent, deleteAgentAvatarFile, deleteGatewayAgent, getGatewayAgentEffectiveConfig, listAgentProfileFiles, listGatewayAgents, readAgentAvatarFile, readAgentProfileFile, resolveAgentAvatarImage, updateGatewayAgent, writeAgentAvatarFromBase64, writeAgentProfileFile } from "../../agents-admin.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getSqliteDatabase, init_transaction } from "../../../storage/sqlite/transaction.js";
|
|
2
2
|
import { ExtensionUiGrantInputSchema } from "../../../../packages/gateway-contract/src/extension-capabilities.js";
|
|
3
3
|
import { init_src } from "../../../../packages/gateway-contract/src/index.js";
|
|
4
|
-
import { getAllModels, getAvailableModels, init_providers } from "../../../providers/index.js";
|
|
5
4
|
import { CapabilityError } from "../../../capabilities/runtime/errors.js";
|
|
5
|
+
import { getAllModels, getAvailableModels, init_providers } from "../../../providers/index.js";
|
|
6
6
|
import { listAutomations } from "../../../automations/storage/automation-repository.js";
|
|
7
7
|
import "../../../automations/storage/index.js";
|
|
8
8
|
import { automationConfigurationDigest } from "../../../local-apps/capabilities/automation-policy.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BindingsSchema, init_binding_schema } from "../../../../routing/binding-schema.js";
|
|
2
|
+
import { AgentCatalogService } from "../../../../agent-catalog/service.js";
|
|
2
3
|
import { ComputerConfigSchema, init_config } from "../../../../computer/config.js";
|
|
3
4
|
import { ContextPlanningConfigSchema, HomeIntelligenceConfigSchema, KnowledgeMemoryConfigSchema, UserContextConfigSchema, UserModelConfigSchema, init_config as init_config$1 } from "../../../../user-context/config.js";
|
|
4
5
|
import { BrowserConfigSchema, McpConfigSchema, VoiceConfigSchema, init_schema } from "../../../../config/schema.js";
|
|
5
6
|
import { CredentialResolver, init_credentials } from "../../../../auth/credentials.js";
|
|
6
7
|
import { canonicalizeConfiguredMcpServer } from "../../../../config/mcp-config-normalize.js";
|
|
7
|
-
import { AgentCatalogService } from "../../../../agent-catalog/service.js";
|
|
8
8
|
import { mergeGatewaySkillsMarketplacePatch, mergeSessionConfigPatch, mergeUpdateConfigPatch } from "../../../../config/web-patch.js";
|
|
9
9
|
import { assertGatewayAuthConfigured, resolveGatewayAuth } from "../../../auth.js";
|
|
10
10
|
import { isMaskedSecretPatchValue } from "../../lib/mask-secret-length.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CapabilityError } from "../../../capabilities/runtime/errors.js";
|
|
2
|
-
import { onAutomationRunChange } from "../../../automations/run-changes.js";
|
|
3
2
|
import "../../../capabilities/runtime/dispatcher.js";
|
|
3
|
+
import { onAutomationRunChange } from "../../../automations/run-changes.js";
|
|
4
4
|
import { localAppResourceAllowed } from "../../../local-apps/capabilities/resource-policy.js";
|
|
5
5
|
import { localAppCapabilities } from "../../../local-apps/capabilities/runtime.js";
|
|
6
6
|
import { getGatewayPrincipal } from "../../security/gateway-principal.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { NoteDeleteOutputSchema, NoteGetOutputSchema, ProductReadContracts } from "../../../../packages/gateway-contract/src/capabilities.js";
|
|
2
2
|
import { init_src } from "../../../../packages/gateway-contract/src/index.js";
|
|
3
|
-
import { init_session_key, resolveConversationId } from "../../../routing/session-key.js";
|
|
4
|
-
import { agentExists, getDefaultAgentId, init_resolve_route } from "../../../routing/resolve-route.js";
|
|
5
3
|
import { CapabilityError } from "../../../capabilities/runtime/errors.js";
|
|
6
4
|
import "../../../capabilities/runtime/dispatcher.js";
|
|
5
|
+
import { init_session_key, resolveConversationId } from "../../../routing/session-key.js";
|
|
6
|
+
import { agentExists, getDefaultAgentId, init_resolve_route } from "../../../routing/resolve-route.js";
|
|
7
7
|
import { resolveReverseProxyPublicUrl } from "../../public-url.js";
|
|
8
8
|
import { createProductDispatcher } from "../../../capabilities/runtime/product.js";
|
|
9
9
|
import { resolveGatewayEffectiveHost } from "../../../config/gateway-bind.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { resolveStateDir } from "../../../config/paths-state.js";
|
|
2
2
|
import { getSessionMetadata, init_session_read_repository } from "../../../storage/sqlite/session-read-repository.js";
|
|
3
3
|
import { AgentCatalogRepository, init_repository } from "../../../agent-catalog/repository.js";
|
|
4
|
+
import { AgentCatalogService } from "../../../agent-catalog/service.js";
|
|
4
5
|
import { init_paths } from "../../../config/paths.js";
|
|
5
6
|
import { resolveEffectiveAgentConfigForAgent } from "../../../config/agent-profile.js";
|
|
6
7
|
import { phoneModelProfile } from "../../../phone/model-policy.js";
|
|
@@ -10,7 +11,6 @@ import { managedHdcPath, managedHosJar, managedJavaHome } from "../../../runtime
|
|
|
10
11
|
import { managedPhoneAdbPath } from "../../../runtime-tools/phone-dependency-catalog.js";
|
|
11
12
|
import "../../../phone/model-adapter.js";
|
|
12
13
|
import { getPhoneRuntime } from "../../../phone/runtime.js";
|
|
13
|
-
import { AgentCatalogService } from "../../../agent-catalog/service.js";
|
|
14
14
|
import { PhoneSetupService } from "../../../phone/setup/service.js";
|
|
15
15
|
import { PhoneDependencyManager, probePhoneAdb } from "../../../runtime-tools/phone-dependencies.js";
|
|
16
16
|
import { createHash } from "node:crypto";
|
|
@@ -6,12 +6,12 @@ import { loadTranscriptRowsForSession } from "../../../storage/sqlite/transcript
|
|
|
6
6
|
import "../../../storage/sqlite/index.js";
|
|
7
7
|
import { ActivityService } from "../../../activity/service.js";
|
|
8
8
|
import "../../../activity/index.js";
|
|
9
|
+
import { CapabilityError } from "../../../capabilities/runtime/errors.js";
|
|
10
|
+
import "../../../capabilities/runtime/dispatcher.js";
|
|
9
11
|
import { listKnowledgeItems, writeKnowledgeItem } from "../../../knowledge-memory/repository.js";
|
|
10
12
|
import "../../../knowledge-memory/index.js";
|
|
11
13
|
import { resolveEffectiveAgentProfile } from "../../../config/agent-profile.js";
|
|
12
14
|
import { TaskReadModelProjector } from "../../../tasks/task-read-model-projector.js";
|
|
13
|
-
import { CapabilityError } from "../../../capabilities/runtime/errors.js";
|
|
14
|
-
import "../../../capabilities/runtime/dispatcher.js";
|
|
15
15
|
import { ProjectWorkspaceConflictError, ProjectWorkspaceMissingError } from "../../../projects/workspace-project.js";
|
|
16
16
|
import { inferProjectExecutionMode, inferProjectKind } from "../../../projects/project-kind.js";
|
|
17
17
|
import { ProjectDeletionBlockedError, ProjectWorkspaceInUseError } from "../../../projects/project-service.js";
|
|
@@ -8,9 +8,9 @@ import { SessionInputControlConflict, init_session_input_control_repository } fr
|
|
|
8
8
|
import { endpointTurnClaimSchema, init_src as init_src$1 } from "../../../../packages/endpoint-tools-protocol/src/index.js";
|
|
9
9
|
import { recordDeviceExecutionActor } from "../../../endpoint-tools/execution-actor.js";
|
|
10
10
|
import { init_types, parseTurnContextRefs } from "../../../agent/source-context/types.js";
|
|
11
|
-
import { init_providers, resolveModel } from "../../../providers/index.js";
|
|
12
11
|
import { CapabilityError } from "../../../capabilities/runtime/errors.js";
|
|
13
12
|
import "../../../capabilities/runtime/dispatcher.js";
|
|
13
|
+
import { init_providers, resolveModel } from "../../../providers/index.js";
|
|
14
14
|
import { getModelThinking } from "../../../providers/model-thinking.js";
|
|
15
15
|
import { validateWebchatAttachments, validateWebchatContent } from "../../chat-limits.js";
|
|
16
16
|
import { isTaskDestructiveCommand } from "../../../session/reset-triggers.js";
|
|
@@ -6,10 +6,10 @@ import { hasGatewayScope } from "../../security/gateway-scopes.js";
|
|
|
6
6
|
import { enqueueTaskChangedEvent, init_task_change_events } from "../../../tasks/task-change-events.js";
|
|
7
7
|
import { TaskRepository, init_task_repository } from "../../../tasks/task-repository.js";
|
|
8
8
|
import { TaskRunRepository, init_task_run_repository } from "../../../tasks/task-run-repository.js";
|
|
9
|
-
import { TaskConversationRepository } from "../../../tasks/task-conversation-repository.js";
|
|
10
|
-
import { TaskCollaborationRepository } from "../../../tasks/task-collaboration-repository.js";
|
|
11
9
|
import { CapabilityError } from "../../../capabilities/runtime/errors.js";
|
|
12
10
|
import "../../../capabilities/runtime/dispatcher.js";
|
|
11
|
+
import { TaskConversationRepository } from "../../../tasks/task-conversation-repository.js";
|
|
12
|
+
import { TaskCollaborationRepository } from "../../../tasks/task-collaboration-repository.js";
|
|
13
13
|
import { TaskCriterionReviewRepository } from "../../../tasks/task-criterion-review-repository.js";
|
|
14
14
|
import { TaskApplicationService } from "../../../tasks/task-application-service.js";
|
|
15
15
|
import { TaskMutationOutputSchema } from "../../../tasks/capabilities/write.js";
|