@xopcai/xopc 0.0.143 → 0.0.144
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/feishu/src/workflow-progress.js +1 -1
- package/dist/extensions/telegram/src/adapters/streaming-adapter.js +1 -1
- package/dist/extensions/telegram/src/inbound-processor.js +1 -1
- package/dist/extensions/telegram/src/plugin.js +1 -1
- package/dist/extensions/telegram/src/routing-integration.js +2 -2
- package/dist/extensions/telegram/src/workflow-progress.js +1 -1
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/extensions/weixin/src/api/api.js +1 -1
- package/dist/extensions/weixin/src/plugin.js +1 -1
- package/dist/extensions/weixin/src/workflow-progress.js +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-DiME9u_P.js → agent-avatar-dicebear-EAVnrCAs.js} +1 -1
- package/dist/gateway/static/root/assets/{agents-DzBXhZXO.js → agents-5rTuJOtT.js} +1 -1
- package/dist/gateway/static/root/assets/{app-management-settings-panel-Cuo7SbUP.js → app-management-settings-panel-Bu568NpC.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-DUfdNQqk.js → appearance-settings-DSkm9bp_.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-CKuKK5AU.js → apps-page-DWetalKp.js} +1 -1
- package/dist/gateway/static/root/assets/{archive-plugin-B-Qk6cGr.js → archive-plugin-C99N0vV6.js} +1 -1
- package/dist/gateway/static/root/assets/{attachment-load-Di6EEbQX.js → attachment-load-CHTDqME5.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-suggestion-card-DGxvRxtO.js → automation-suggestion-card-CBt6U3-S.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-D-FF_WKV.js → automations-page-ICUfxeOz.js} +1 -1
- package/dist/gateway/static/root/assets/{binary-plugins-ZaOZDH2I.js → binary-plugins-BRtxOLlM.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-BTFhjWfg.js → block-editor-CUlXfgXd.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-settings-page-BvKLdEQt.js → browser-settings-page-D7Bj4MKi.js} +1 -1
- package/dist/gateway/static/root/assets/{capability-presets-api-BU-pVZiZ.js → capability-presets-api-Bg1ntFSD.js} +1 -1
- package/dist/gateway/static/root/assets/{capability-presets-settings-panel-DgyeEwzh.js → capability-presets-settings-panel-C-8I-Ktn.js} +1 -1
- package/dist/gateway/static/root/assets/{channels-settings-BbVsdD_I.js → channels-settings-Dm5EqQyK.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-page-B8QqVy3I.js → connectors-page-BOzjh-OK.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet---yzVxVR.js → desktop-pet-C-Drhqyk.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-Dc3gqBJE.js → desktop-pet-settings-CRGiolqF.js} +1 -1
- package/dist/gateway/static/root/assets/{directory-picker-path-field-DCmOGLtK.js → directory-picker-path-field-Dw1L3M84.js} +1 -1
- package/dist/gateway/static/root/assets/dist-SwiI0Xu3.js +1 -0
- package/dist/gateway/static/root/assets/{dreaming-settings-BgT5KZVe.js → dreaming-settings-CF21cbjo.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-debug-page-ByaKTTq4.js → extension-debug-page-Dcl8LJG_.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-BmRzHAZr.js → extension-page-i_BXmO_x.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-JUtwIhbF.js → extension-settings-page-CWIi7xsn.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-config-api-CxicF50_.js → gateway-config-api-2sLP2kkA.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-settings-Bz2I_EO5.js → gateway-settings-DMHiZc-2.js} +1 -1
- package/dist/gateway/static/root/assets/{goal-create-dialog-VcoyuZGN.js → goal-create-dialog-CAODVDiA.js} +1 -1
- package/dist/gateway/static/root/assets/{goal-detail-page-Cilkap2G.js → goal-detail-page-_d4DjmeX.js} +1 -1
- package/dist/gateway/static/root/assets/{goals-config-api-CwcHRdC0.js → goals-config-api-B4qeLKQS.js} +1 -1
- package/dist/gateway/static/root/assets/{goals-page-C6eoni4z.js → goals-page-lgsop664.js} +1 -1
- package/dist/gateway/static/root/assets/{goals-settings-o4i-qAOS.js → goals-settings-Dx_1ZNgb.js} +1 -1
- package/dist/gateway/static/root/assets/{heartbeat-settings-DQQkETX8.js → heartbeat-settings-DeTseEk_.js} +1 -1
- package/dist/gateway/static/root/assets/{index-BKRqeRHm.js → index-VWvztcst.js} +7 -7
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-LT6qB-ua.js → keyboard-shortcuts-settings-BpwpMmlk.js} +1 -1
- package/dist/gateway/static/root/assets/{logs-page-Dli2e3fS.js → logs-page-9_hbTg3j.js} +1 -1
- package/dist/gateway/static/root/assets/{markdown-split-Dw-yE2-y.js → markdown-split-BTRFTK0w.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-D9NNNUgE.js → media-plugins-BABfIZPU.js} +1 -1
- package/dist/gateway/static/root/assets/{models-hub-panel-DVn2Q1Ik.js → models-hub-panel-B1CUvZxh.js} +1 -1
- package/dist/gateway/static/root/assets/{notes-page-CRgbJGgk.js → notes-page-88QBHW9a.js} +1 -1
- package/dist/gateway/static/root/assets/{notes-workbench-BxZRHLWx.js → notes-workbench-CerZOeLW.js} +2 -2
- package/dist/gateway/static/root/assets/{page-tabs-D4hkWVt_.js → page-tabs-je95DZOf.js} +1 -1
- package/dist/gateway/static/root/assets/{preview-open-alternatives-CIckv0uy.js → preview-open-alternatives-BJbwi7Rc.js} +1 -1
- package/dist/gateway/static/root/assets/{project-detail-page-Doz53xLn.js → project-detail-page-BmrApldl.js} +1 -1
- package/dist/gateway/static/root/assets/{projects-page-DoMtcRLg.js → projects-page-tTn-k76N.js} +1 -1
- package/dist/gateway/static/root/assets/{remote-access-hub-BeHVEgrm.js → remote-access-hub-DeA2-pOi.js} +1 -1
- package/dist/gateway/static/root/assets/{save-bar-controls-B0b42kB2.js → save-bar-controls-qWMQ9mod.js} +1 -1
- package/dist/gateway/static/root/assets/{schedule-field-BtjEkczK.js → schedule-field-kxd270Gs.js} +1 -1
- package/dist/gateway/static/root/assets/{schema-form-Bf0bk3i6.js → schema-form-DLnD-MuD.js} +1 -1
- package/dist/gateway/static/root/assets/{sessions-page-Bk4bQsBe.js → sessions-page-D4kvvcL1.js} +1 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-CI1OG4gq.js +1 -0
- package/dist/gateway/static/root/assets/{settings-collapsible-section-BTKTdTNX.js → settings-collapsible-section-DQprvu5J.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-form-section-DL4P0sAj.js → settings-form-section-Cqq7Y98y.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-loading-skeleton-BV6KFNj4.js → settings-loading-skeleton-b6rXULL5.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-B_4DsX5W.js → settings-page-BtBVz3cX.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-layout-CyGlrInB.js → settings-page-layout-BNJbtklV.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-DJ1_MLgX.js → setup-status-panel-cmclUJzS.js} +1 -1
- package/dist/gateway/static/root/assets/{share-preview-page-BQBV7YrV.js → share-preview-page--zO-A1W1.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-settings-0VuFLBeU.js → shares-settings-DNJvqA67.js} +1 -1
- package/dist/gateway/static/root/assets/skill-reload-api-DWr_0Xgn.js +1 -0
- package/dist/gateway/static/root/assets/{skills-page-D3VdtxAn.js → skills-page-DEGsTbJx.js} +1 -1
- package/dist/gateway/static/root/assets/{system-settings-panel-D85fBBuI.js → system-settings-panel-Cq9J7i7v.js} +1 -1
- package/dist/gateway/static/root/assets/{typed-models-lib-CwEuYrHX.js → typed-models-lib-CdSwi1gT.js} +1 -1
- package/dist/gateway/static/root/assets/{user-context-page-m9JVQ73F.js → user-context-page-C-V73ZaJ.js} +1 -1
- package/dist/gateway/static/root/assets/{user-profile-fields-editor-DtQiuY7E.js → user-profile-fields-editor-B1cxoGkh.js} +1 -1
- package/dist/gateway/static/root/assets/{user-profile-settings-panel-CWM0fEpb.js → user-profile-settings-panel-B8hlamVB.js} +1 -1
- package/dist/gateway/static/root/assets/{utils--BO6xT3u.js → utils-Dx01V8qF.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-api-key-field-LoT3wgZ9.js → voice-api-key-field-DGpIUelZ.js} +1 -1
- package/dist/gateway/static/root/assets/{work-item-detail-page-DSTMz_mO.js → work-item-detail-page-fzWTxF26.js} +1 -1
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-B35lJzvm.js → workflow-run-setup-panel-Dt_x8LGg.js} +1 -1
- package/dist/gateway/static/root/assets/{workflows-page-BfSm9oR8.js → workflows-page-Bg02zEUh.js} +1 -1
- package/dist/gateway/static/root/index.html +2 -2
- package/dist/package.js +1 -1
- package/dist/src/activity/emitter.js +1 -1
- package/dist/src/agent/agent-manager.js +4 -4
- package/dist/src/agent/code-intelligence/binary.js +1 -1
- package/dist/src/agent/context/project-context.js +2 -2
- package/dist/src/agent/context/workspace-seed.js +2 -2
- package/dist/src/agent/embedded/run-for-session.js +1 -1
- package/dist/src/agent/goals/post-turn.js +2 -2
- package/dist/src/agent/ipc/bus.js +1 -1
- package/dist/src/agent/mcp/bundle-mcp-materialize.js +1 -1
- package/dist/src/agent/mcp/bundle-mcp-runtime.js +1 -1
- package/dist/src/agent/mcp/mcp-transport-config.js +1 -1
- package/dist/src/agent/mcp/mcp-transport.js +1 -1
- package/dist/src/agent/memory/plugin-discovery.js +1 -1
- package/dist/src/agent/models/manager.js +1 -1
- package/dist/src/agent/orchestration/agent-orchestrator.js +1 -1
- package/dist/src/agent/service.js +3 -3
- package/dist/src/agent/session/session-inspector.js +2 -2
- package/dist/src/agent/skills/hub-pull.js +1 -1
- package/dist/src/agent/tools/composio-tool.js +1 -1
- package/dist/src/agent/tools/goal-tool.js +2 -2
- package/dist/src/agent/tools/workflow-tool.js +1 -1
- package/dist/src/agent/tools/xopc-use-tool.js +1 -1
- package/dist/src/agent/workspace-runtime/registry.js +2 -2
- package/dist/src/automations/api/routes.js +1 -1
- package/dist/src/automations/service/action-executor.js +2 -2
- package/dist/src/browser/cdp-local-launcher.js +1 -1
- package/dist/src/browser/providers/browser-ext-install.js +3 -3
- package/dist/src/browser/providers/cloakbrowser.js +2 -2
- package/dist/src/browser/providers/playwright-doctor.js +1 -1
- package/dist/src/browser/stealth.js +1 -1
- package/dist/src/capabilities/store-connector.js +1 -1
- package/dist/src/chat-commands/agent-edit.js +1 -1
- package/dist/src/chat-commands/builtins/config.js +1 -1
- package/dist/src/chat-commands/builtins/goal.js +2 -2
- package/dist/src/chat-commands/context.js +1 -1
- package/dist/src/cli/commands/agent.js +1 -1
- package/dist/src/cli/commands/doctor/checks/database-schema.js +1 -1
- package/dist/src/cli/commands/doctor/checks/session-integrity.js +1 -1
- package/dist/src/cli/commands/extension-marketplace.js +1 -1
- package/dist/src/cli/commands/extension-pack.js +1 -1
- package/dist/src/cli/commands/goal.js +2 -2
- package/dist/src/cli/commands/init.js +1 -1
- package/dist/src/cli/commands/project.js +3 -3
- package/dist/src/config/gateway-bind.js +1 -1
- package/dist/src/config/index.js +1 -1
- package/dist/src/config/loader.js +1 -1
- package/dist/src/config/models-json.js +1 -1
- package/dist/src/connectors/composio-sessions.js +1 -1
- package/dist/src/connectors/composio.js +1 -1
- package/dist/src/daemon/launchd.js +1 -1
- package/dist/src/daemon/systemd.js +1 -1
- package/dist/src/extensions/discover-extensions.js +1 -1
- package/dist/src/extensions/loader.js +2 -2
- package/dist/src/gateway/hono/lib/static-ui.js +1 -1
- package/dist/src/gateway/hono/routes/home.js +2 -2
- package/dist/src/gateway/hono/routes/memory.js +3 -3
- package/dist/src/gateway/hono/routes/projects.js +5 -5
- package/dist/src/gateway/hono/routes/workflows.js +1 -1
- package/dist/src/gateway/hono/routes/you.js +6 -6
- package/dist/src/gateway/lock.js +1 -1
- package/dist/src/gateway/ports.js +1 -1
- package/dist/src/gateway/service.js +6 -6
- package/dist/src/goals/goal-workflow-judge.js +1 -1
- package/dist/src/infra/ports.js +1 -1
- package/dist/src/infra/ssh-tunnel.js +1 -1
- package/dist/src/infra/update-check.js +1 -1
- package/dist/src/migrations/runner.js +1 -1
- package/dist/src/notes/service.js +3 -3
- package/dist/src/notes/store.js +1 -1
- package/dist/src/projects/project-service.js +1 -1
- package/dist/src/projects/workspace.js +1 -1
- package/dist/src/routing/agent-session-key.js +1 -1
- package/dist/src/routing/resolve-route.js +1 -1
- package/dist/src/routing/resolve-tui-session-key.js +1 -1
- package/dist/src/session/init-session-turn.js +1 -1
- package/dist/src/session/resolve-session.js +1 -1
- package/dist/src/session/session-title.js +2 -2
- package/dist/src/session/store.js +1 -1
- package/dist/src/storage/sqlite/connection.js +1 -1
- package/dist/src/storage/sqlite/row-mappers.js +1 -1
- package/dist/src/tui/backends/embedded-backend.js +4 -4
- package/dist/src/tui/clipboard-image.js +1 -1
- package/dist/src/tui/tui-command-formatters.js +2 -2
- package/dist/src/tui/tui-commands.js +3 -3
- package/dist/src/tui/tui.js +1 -1
- package/dist/src/utils/index.js +1 -1
- package/dist/src/utils/logger/index.js +1 -1
- package/dist/src/utils/logger.js +1 -1
- package/dist/src/work-items/work-item-service.js +1 -1
- package/dist/src/workflows/draft/workflow-draft-service.js +1 -1
- package/dist/src/workflows/service/workflow-session-bridge.js +3 -3
- package/package.json +2 -2
- package/dist/gateway/static/root/assets/dist-Mys7eFJ5.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-DdFyaRMm.js +0 -1
- package/dist/gateway/static/root/assets/skill-reload-api-DO87Ckeo.js +0 -1
|
@@ -4,8 +4,8 @@ import { resolveGatewayLaunchAgentLabel, resolveLaunchAgentPlistPath as resolveL
|
|
|
4
4
|
import os from "node:os";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { existsSync } from "node:fs";
|
|
7
|
-
import { spawn, spawnSync } from "node:child_process";
|
|
8
7
|
import { mkdir, readFile, rm, writeFile } from "node:fs/promises";
|
|
8
|
+
import { spawn, spawnSync } from "node:child_process";
|
|
9
9
|
//#region src/daemon/launchd.ts
|
|
10
10
|
/**
|
|
11
11
|
* LaunchAgent Service - macOS user service management
|
|
@@ -4,8 +4,8 @@ import { resolveGatewaySystemdServiceName, resolveSystemdUnitPath } from "./cons
|
|
|
4
4
|
import os from "node:os";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { existsSync } from "node:fs";
|
|
7
|
-
import { spawn, spawnSync } from "node:child_process";
|
|
8
7
|
import { access, constants as constants$1, mkdir, readFile, rm, writeFile } from "node:fs/promises";
|
|
8
|
+
import { spawn, spawnSync } from "node:child_process";
|
|
9
9
|
//#region src/daemon/systemd.ts
|
|
10
10
|
/**
|
|
11
11
|
* Systemd Service - Linux user service management
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { init_agent_scope, resolveDefaultAgentId } from "../agent/agent-scope.js";
|
|
2
3
|
import { createLogger } from "../utils/logger/index.js";
|
|
3
4
|
import { init_logger } from "../utils/logger.js";
|
|
4
|
-
import { init_agent_scope, resolveDefaultAgentId } from "../agent/agent-scope.js";
|
|
5
5
|
import { init_paths, resolveBundledExtensionsDir, resolveExtensionsDir, resolveWorkspaceExtensionsDir } from "../config/paths.js";
|
|
6
6
|
import { init_normalize_manifest, normalizeExtensionManifest } from "./normalize-manifest.js";
|
|
7
7
|
import { join } from "path";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PACKAGE_VERSION, init_package_version } from "../package-version.js";
|
|
2
|
+
import { init_agent_scope, resolveAgentWorkspaceDir, resolveDefaultAgentId } from "../agent/agent-scope.js";
|
|
2
3
|
import { createLogger, createServiceLogger } from "../utils/logger/index.js";
|
|
3
4
|
import { init_logger } from "../utils/logger.js";
|
|
4
|
-
import { init_agent_scope, resolveAgentWorkspaceDir, resolveDefaultAgentId } from "../agent/agent-scope.js";
|
|
5
5
|
import { init_paths, resolveBundledExtensionsDir, resolveExtensionSdkPath, resolveExtensionsDir, resolveWorkspaceExtensionsDir } from "../config/paths.js";
|
|
6
6
|
import { init_normalize_manifest, normalizeExtensionManifest } from "./normalize-manifest.js";
|
|
7
7
|
import { areExtensionsGloballyDisabled, discoverExtensionsFromDisk, init_discover_extensions } from "./discover-extensions.js";
|
|
@@ -18,9 +18,9 @@ import { validateMediaUnderstandingProviderContracts } from "./media-provider-co
|
|
|
18
18
|
import { DEFAULT_SECURITY_CONFIG, checkExtensionPathSafety, isExtensionAllowed, logSecurityIssue, provenanceTracker } from "./security.js";
|
|
19
19
|
import { getSlotRegistry } from "./slots.js";
|
|
20
20
|
import { getExtensionCache, getExtensionDiagnostics } from "./diagnostics.js";
|
|
21
|
-
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
22
21
|
import { dirname, isAbsolute, join } from "path";
|
|
23
22
|
import { existsSync, readFileSync } from "fs";
|
|
23
|
+
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
24
24
|
import { createJiti } from "jiti";
|
|
25
25
|
//#region src/extensions/loader.ts
|
|
26
26
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { dirname, resolve } from "node:path";
|
|
2
2
|
import { readFileSync } from "node:fs";
|
|
3
|
-
import { fileURLToPath } from "node:url";
|
|
4
3
|
import { createHash } from "node:crypto";
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
5
5
|
//#region src/gateway/hono/lib/static-ui.ts
|
|
6
6
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { decideConnectorApproval, listConnectorApprovals } from "../../../storage/sqlite/connector-repository.js";
|
|
2
|
-
import "../../../storage/sqlite/index.js";
|
|
3
1
|
import { GoalService } from "../../../goals/goal-service.js";
|
|
4
2
|
import "../../../goals/index.js";
|
|
3
|
+
import { decideConnectorApproval, listConnectorApprovals } from "../../../storage/sqlite/connector-repository.js";
|
|
4
|
+
import "../../../storage/sqlite/index.js";
|
|
5
5
|
import { listGatewayAgents } from "../../agents-admin.js";
|
|
6
6
|
import { WorkItemService } from "../../../work-items/work-item-service.js";
|
|
7
7
|
import "../../../work-items/index.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { appendMemorySignal, appendMemoryTraceEvent, deleteMemoryRecord, findLatestMemoryInjectTrace, getMemoryRecord, listMemoryRecords, listMemorySignals, listMemoryTraceEvents, searchMemoryRecords, setLatestMemoryInjectFeedback, setMemoryTraceFeedback, summarizeMemoryRecallFeedback, summarizeUserUnderstandingQuality, upsertMemoryRecord } from "../../../storage/sqlite/memory-records-repository.js";
|
|
2
|
-
import { listKnowledgeSourceItems, listKnowledgeSyncRuns } from "../../../storage/sqlite/knowledge-repository.js";
|
|
3
|
-
import "../../../storage/sqlite/index.js";
|
|
4
1
|
import { MemoryPolicySchema, init_schema } from "../../../agent-manifest/schema.js";
|
|
5
2
|
import { init_agent_scope, resolveDefaultAgentId } from "../../../agent/agent-scope.js";
|
|
6
3
|
import { resolveEffectiveAgentManifestForAgent } from "../../../config/agent-profile.js";
|
|
4
|
+
import { appendMemorySignal, appendMemoryTraceEvent, deleteMemoryRecord, findLatestMemoryInjectTrace, getMemoryRecord, listMemoryRecords, listMemorySignals, listMemoryTraceEvents, searchMemoryRecords, setLatestMemoryInjectFeedback, setMemoryTraceFeedback, summarizeMemoryRecallFeedback, summarizeUserUnderstandingQuality, upsertMemoryRecord } from "../../../storage/sqlite/memory-records-repository.js";
|
|
5
|
+
import { listKnowledgeSourceItems, listKnowledgeSyncRuns } from "../../../storage/sqlite/knowledge-repository.js";
|
|
6
|
+
import "../../../storage/sqlite/index.js";
|
|
7
7
|
import { resolveBuiltinMemoryStoreConfig } from "../../../agent/memory/memory-config.js";
|
|
8
8
|
import { BuiltinMemoryStore } from "../../../agent/memory/builtin-memory-store.js";
|
|
9
9
|
import { discoverMemoryPlugins } from "../../../agent/memory/plugin-discovery.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
import { buildSessionKey, init_session_key } from "../../../routing/session-key.js";
|
|
2
|
+
import { resolveEffectiveAgentProfile } from "../../../config/agent-profile.js";
|
|
1
3
|
import { getSqliteDatabase, runSqliteWriteTransaction } from "../../../storage/sqlite/transaction.js";
|
|
4
|
+
import { GoalService, normalizeGoalUiLocale } from "../../../goals/goal-service.js";
|
|
5
|
+
import { draftGoalContract } from "../../../goals/goal-contract-draft.js";
|
|
6
|
+
import "../../../goals/index.js";
|
|
2
7
|
import { getSessionMetadata } from "../../../storage/sqlite/session-repository.js";
|
|
3
8
|
import { loadTranscriptRowsForSession } from "../../../storage/sqlite/transcript-repository.js";
|
|
4
9
|
import { listMemoryRecords, upsertMemoryRecord } from "../../../storage/sqlite/memory-records-repository.js";
|
|
5
10
|
import "../../../storage/sqlite/index.js";
|
|
6
11
|
import { ActivityService } from "../../../activity/service.js";
|
|
7
12
|
import "../../../activity/index.js";
|
|
8
|
-
import { buildSessionKey, init_session_key } from "../../../routing/session-key.js";
|
|
9
|
-
import { resolveEffectiveAgentProfile } from "../../../config/agent-profile.js";
|
|
10
|
-
import { GoalService, normalizeGoalUiLocale } from "../../../goals/goal-service.js";
|
|
11
|
-
import { draftGoalContract } from "../../../goals/goal-contract-draft.js";
|
|
12
|
-
import "../../../goals/index.js";
|
|
13
13
|
import { ProjectWorkspaceConflictError, ProjectWorkspaceMissingError } from "../../../projects/workspace-project.js";
|
|
14
14
|
import { isValidProjectAgentId, normalizeProjectAgentId, resolveProjectAgentId } from "../../../projects/project-agent.js";
|
|
15
15
|
import { inferProjectKind } from "../../../projects/project-kind.js";
|
|
@@ -7,9 +7,9 @@ import { messagesToClientHistory } from "../../../session/client-history.js";
|
|
|
7
7
|
import "../../../workflows/domain/index.js";
|
|
8
8
|
import { resolveWorkflowRunArtifactsDir } from "../../../workflows/store/paths.js";
|
|
9
9
|
import { WorkflowDraftService } from "../../../workflows/draft/workflow-draft-service.js";
|
|
10
|
+
import "../../../workflows/draft/index.js";
|
|
10
11
|
import { WorkflowDraftConflictError, WorkflowDraftStore } from "../../../workflows/authoring/workflow-draft-store.js";
|
|
11
12
|
import "../../../workflows/authoring/index.js";
|
|
12
|
-
import "../../../workflows/draft/index.js";
|
|
13
13
|
import { basename, join } from "node:path";
|
|
14
14
|
import { readFile, stat } from "node:fs/promises";
|
|
15
15
|
//#region src/gateway/hono/routes/workflows.ts
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { runSqliteWriteTransaction } from "../../../storage/sqlite/transaction.js";
|
|
2
|
-
import { deleteMemoryRecord, getMemoryRecord, listMemoryRecords, upsertMemoryRecord } from "../../../storage/sqlite/memory-records-repository.js";
|
|
3
|
-
import { USER_TRUST_LEVELS, isUserTrustLevel } from "../../../user-context/trust-policy.js";
|
|
4
|
-
import { getUserTrustPolicy, setUserTrustPolicy } from "../../../storage/sqlite/user-trust-repository.js";
|
|
5
|
-
import { getUserProfilePromptState, setUserProfilePromptState } from "../../../storage/sqlite/user-profile-setup-repository.js";
|
|
6
|
-
import "../../../storage/sqlite/index.js";
|
|
7
1
|
import { MemoryPolicySchema, init_schema } from "../../../agent-manifest/schema.js";
|
|
8
2
|
import { init_agent_scope, resolveDefaultAgentId } from "../../../agent/agent-scope.js";
|
|
9
3
|
import { resolveEffectiveAgentManifestForAgent } from "../../../config/agent-profile.js";
|
|
4
|
+
import { runSqliteWriteTransaction } from "../../../storage/sqlite/transaction.js";
|
|
10
5
|
import { GoalService } from "../../../goals/goal-service.js";
|
|
11
6
|
import { draftGoalContract } from "../../../goals/goal-contract-draft.js";
|
|
12
7
|
import "../../../goals/index.js";
|
|
8
|
+
import { deleteMemoryRecord, getMemoryRecord, listMemoryRecords, upsertMemoryRecord } from "../../../storage/sqlite/memory-records-repository.js";
|
|
9
|
+
import { USER_TRUST_LEVELS, isUserTrustLevel } from "../../../user-context/trust-policy.js";
|
|
10
|
+
import { getUserTrustPolicy, setUserTrustPolicy } from "../../../storage/sqlite/user-trust-repository.js";
|
|
11
|
+
import { getUserProfilePromptState, setUserProfilePromptState } from "../../../storage/sqlite/user-profile-setup-repository.js";
|
|
12
|
+
import "../../../storage/sqlite/index.js";
|
|
13
13
|
import { listConnectorCatalog } from "../../../connectors/catalog.js";
|
|
14
14
|
import { nextMemoryReviewAt, resolveMemoryStability } from "../../../agent/memory/lifecycle.js";
|
|
15
15
|
import { listConnectorInstances } from "../../../connectors/instances.js";
|
package/dist/src/gateway/lock.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
|
+
import net from "node:net";
|
|
3
4
|
import fs from "node:fs";
|
|
4
5
|
import { execFileSync } from "node:child_process";
|
|
5
|
-
import net from "node:net";
|
|
6
6
|
//#region src/gateway/ports.ts
|
|
7
7
|
/**
|
|
8
8
|
* Ports Management - Port management utilities
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { __toCommonJS } from "../../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { PACKAGE_VERSION, init_package_version } from "../package-version.js";
|
|
3
|
-
import { getLogDir } from "../utils/logger/config.js";
|
|
4
|
-
import { getRuntimeLogStats } from "../utils/logger/stats.js";
|
|
5
|
-
import { createLogger } from "../utils/logger/index.js";
|
|
6
|
-
import { init_logger } from "../utils/logger.js";
|
|
7
|
-
import { closeXopcDatabase, openXopcDatabase } from "../storage/sqlite/connection.js";
|
|
8
|
-
import "../storage/sqlite/index.js";
|
|
9
3
|
import { getAgentDefaultModelRef, init_schema } from "../config/schema.js";
|
|
10
4
|
import { init_agent_scope, listAgentEntries, normalizeAgentId, resolveDefaultAgentId } from "../agent/agent-scope.js";
|
|
11
5
|
import { buildSessionKey, init_session_key, sanitizeSegment } from "../routing/session-key.js";
|
|
12
6
|
import { getDefaultAgentId, init_resolve_route } from "../routing/resolve-route.js";
|
|
7
|
+
import { getLogDir } from "../utils/logger/config.js";
|
|
8
|
+
import { getRuntimeLogStats } from "../utils/logger/stats.js";
|
|
9
|
+
import { createLogger } from "../utils/logger/index.js";
|
|
10
|
+
import { init_logger } from "../utils/logger.js";
|
|
13
11
|
import { init_paths, resolveAgentDir, resolveConfigPath, resolveExtensionsDir } from "../config/paths.js";
|
|
14
12
|
import { areExtensionsGloballyDisabled } from "../extensions/discover-extensions.js";
|
|
15
13
|
import { buildExtensionMetadataSnapshot } from "../extensions/extension-metadata-snapshot.js";
|
|
@@ -18,9 +16,11 @@ import { loadConfig, saveConfig } from "../config/loader.js";
|
|
|
18
16
|
import { prewarmModelRegistry } from "../providers/model-registry.js";
|
|
19
17
|
import { init_providers, providers_exports } from "../providers/index.js";
|
|
20
18
|
import { onAutomationProductEvent, publishAutomationProductEvent } from "../automations/product-events.js";
|
|
19
|
+
import { closeXopcDatabase, openXopcDatabase } from "../storage/sqlite/connection.js";
|
|
21
20
|
import { GoalRunner } from "../goals/goal-runner.js";
|
|
22
21
|
import { GoalNotificationService } from "../goals/goal-notifications.js";
|
|
23
22
|
import "../goals/index.js";
|
|
23
|
+
import "../storage/sqlite/index.js";
|
|
24
24
|
import { resolveEffectiveGatewayPort } from "./host.js";
|
|
25
25
|
import { ProjectService } from "../projects/project-service.js";
|
|
26
26
|
import "../projects/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { getAgentDefaultModelRef, init_schema } from "../config/schema.js";
|
|
1
2
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
3
|
import { init_logger } from "../utils/logger.js";
|
|
3
|
-
import { getAgentDefaultModelRef, init_schema } from "../config/schema.js";
|
|
4
4
|
import { GoalService } from "./goal-service.js";
|
|
5
5
|
import { renderWorkflowText } from "../agent/workflow/snapshot.js";
|
|
6
6
|
import { resolveGoalUiLocale } from "../agent/goals/goal-locale.js";
|
package/dist/src/infra/ports.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PACKAGE_VERSION, init_package_version } from "../package-version.js";
|
|
2
2
|
import { channelToNpmTag } from "./update-channels.js";
|
|
3
3
|
import { dirname, join } from "node:path";
|
|
4
|
-
import { fileURLToPath } from "node:url";
|
|
5
4
|
import { access, readFile } from "node:fs/promises";
|
|
5
|
+
import { fileURLToPath } from "node:url";
|
|
6
6
|
//#region src/infra/update-check.ts
|
|
7
7
|
init_package_version();
|
|
8
8
|
const REGISTRY_BASE = "https://registry.npmjs.org";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ConfigSchema, init_schema } from "../config/schema.js";
|
|
1
2
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
3
|
import { init_logger } from "../utils/logger.js";
|
|
3
|
-
import { ConfigSchema, init_schema } from "../config/schema.js";
|
|
4
4
|
import { listRegisteredMigrations } from "./registry.js";
|
|
5
5
|
import { defaultCapabilityPresetMigration } from "./config/default-capability-preset.js";
|
|
6
6
|
import { dirname, join } from "node:path";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
|
-
import { buildNoteAttachmentRef } from "./attachment-ref.js";
|
|
4
|
-
import { parseNoteMarkdown } from "./note-markdown.js";
|
|
5
|
-
import { changedFieldsFromPatch, emitActivity, previewText, systemActivityActor, systemActivitySource } from "../activity/emitter.js";
|
|
6
3
|
import { getDefaultModelSync, init_providers, resolveModel } from "../providers/index.js";
|
|
7
4
|
import { publishAutomationProductEvent } from "../automations/product-events.js";
|
|
8
5
|
import { completeWithResolvedCredentials } from "../providers/model-call.js";
|
|
6
|
+
import { buildNoteAttachmentRef } from "./attachment-ref.js";
|
|
7
|
+
import { parseNoteMarkdown } from "./note-markdown.js";
|
|
8
|
+
import { changedFieldsFromPatch, emitActivity, previewText, systemActivityActor, systemActivitySource } from "../activity/emitter.js";
|
|
9
9
|
import { NotesStore } from "./store.js";
|
|
10
10
|
import { partitionAttachmentsByReference } from "./note-attachment-sync.js";
|
|
11
11
|
import { buildNoteAgentContextArtifact, getCachedNoteAgentContextArtifact } from "./agent-context.js";
|
package/dist/src/notes/store.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
|
+
import { init_write_file_atomic, writeTextAtomic } from "../infra/write-file-atomic.js";
|
|
3
4
|
import { requireXopcDatabase } from "../storage/sqlite/connection.js";
|
|
4
5
|
import { buildNoteIndexMeta } from "./note-index-meta.js";
|
|
5
6
|
import { deleteNoteRecord, getNoteRecord, listNoteRecords, upsertNoteRecord } from "../storage/sqlite/notes-repository.js";
|
|
6
7
|
import { deleteNoteAgentContextRecord } from "../storage/sqlite/note-agent-context-repository.js";
|
|
7
8
|
import "../storage/sqlite/index.js";
|
|
8
|
-
import { init_write_file_atomic, writeTextAtomic } from "../infra/write-file-atomic.js";
|
|
9
9
|
import { resolveNoteHistoryDir, resolveNoteMediaDir } from "./paths.js";
|
|
10
10
|
import { join } from "node:path";
|
|
11
11
|
import { randomUUID } from "node:crypto";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getSessionMetadata } from "../storage/sqlite/session-repository.js";
|
|
2
2
|
import "../storage/sqlite/index.js";
|
|
3
|
-
import { changedFieldsFromPatch, emitActivity, systemActivityActor, systemActivitySource } from "../activity/emitter.js";
|
|
4
3
|
import { ProjectStore } from "./project-store.js";
|
|
4
|
+
import { changedFieldsFromPatch, emitActivity, systemActivityActor, systemActivitySource } from "../activity/emitter.js";
|
|
5
5
|
import { bindGoalToProject, listProjectGoalIds, unbindGoalFromProject } from "./goal-bind.js";
|
|
6
6
|
import { bindSessionToProject, listProjectSessionKeys, unbindSessionFromProject } from "./session-bind.js";
|
|
7
7
|
import { ProjectWorkspaceConflictError, ProjectWorkspaceMissingError, canonicalWorkspacePath, ensureWorkspaceDirectory, inferProjectNameFromWorkspaceRoot, isPathSameOrInsideWorkspace, isSafeAutoCreateWorkspaceRoot, resolveWorkspaceProjectRoot, workspaceDirectoryExists } from "./workspace-project.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { resolveEffectiveAgentProfileForSession } from "../config/agent-profile.js";
|
|
1
2
|
import { isXopcDatabaseOpen } from "../storage/sqlite/connection.js";
|
|
2
3
|
import { getSessionMetadata } from "../storage/sqlite/session-repository.js";
|
|
3
4
|
import "../storage/sqlite/index.js";
|
|
4
|
-
import { resolveEffectiveAgentProfileForSession } from "../config/agent-profile.js";
|
|
5
5
|
import { projectWorkspacePath } from "../session/session-workspace.js";
|
|
6
6
|
import { ProjectStore } from "./project-store.js";
|
|
7
7
|
//#region src/projects/workspace.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { init_string_coerce, normalizeLowercaseStringOrEmpty } from "../utils/string-coerce.js";
|
|
3
2
|
import { DEFAULT_ACCOUNT_ID, init_account_id, normalizeAccountId, normalizeOptionalAccountId } from "./account-id.js";
|
|
3
|
+
import { init_string_coerce, normalizeLowercaseStringOrEmpty } from "../utils/string-coerce.js";
|
|
4
4
|
import { getSubagentDepth, init_session_key_utils, isAcpSessionKey, isCronSessionKey, isSubagentSessionKey, parseAgentSessionKey, parseThreadSessionSuffix } from "./session-key-utils.js";
|
|
5
5
|
//#region src/routing/agent-session-key.ts
|
|
6
6
|
function normalizeToken(value) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { init_agent_scope, resolveDefaultAgentId } from "../agent/agent-scope.js";
|
|
2
3
|
import { init_account_id, normalizeAccountId } from "./account-id.js";
|
|
3
4
|
import { buildAgentMainSessionKey, buildAgentPeerSessionKey, init_agent_session_key, normalizeSessionKey } from "./agent-session-key.js";
|
|
4
|
-
import { init_agent_scope, resolveDefaultAgentId } from "../agent/agent-scope.js";
|
|
5
5
|
import { buildSessionKey, init_session_key, parseSessionKey } from "./session-key.js";
|
|
6
6
|
import { init_bindings, parseBindingRules, resolveRoute as resolveRoute$1 } from "./bindings.js";
|
|
7
7
|
//#region src/routing/resolve-route.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { init_agent_scope, listAgentEntries, resolveAgentIdByWorkspacePath, resolveDefaultAgentId } from "../agent/agent-scope.js";
|
|
1
2
|
import { init_string_coerce, normalizeLowercaseStringOrEmpty } from "../utils/string-coerce.js";
|
|
2
3
|
import { parseAgentSessionKey } from "./session-key-utils.js";
|
|
3
4
|
import { buildAgentMainSessionKey, init_agent_session_key, normalizeAgentId, normalizeMainKey } from "./agent-session-key.js";
|
|
4
|
-
import { init_agent_scope, listAgentEntries, resolveAgentIdByWorkspacePath, resolveDefaultAgentId } from "../agent/agent-scope.js";
|
|
5
5
|
import { randomUUID } from "node:crypto";
|
|
6
6
|
//#region src/routing/resolve-tui-session-key.ts
|
|
7
7
|
init_agent_scope();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { SessionConfigSchema, init_schema } from "../config/schema.js";
|
|
1
2
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
3
|
import { init_logger } from "../utils/logger.js";
|
|
3
4
|
import { requireXopcDatabase } from "../storage/sqlite/connection.js";
|
|
4
5
|
import "../storage/sqlite/index.js";
|
|
5
|
-
import { SessionConfigSchema, init_schema } from "../config/schema.js";
|
|
6
6
|
import { evaluateSessionFreshness, resolveSessionResetPolicy } from "./reset-policy.js";
|
|
7
7
|
import { resolveChannelResetConfig, resolveSessionResetType } from "./reset-type.js";
|
|
8
8
|
import { resolveSessionLifecycleTimestamps } from "./lifecycle-timestamps.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { SessionConfigSchema, init_schema } from "../config/schema.js";
|
|
1
2
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
3
|
import { init_logger } from "../utils/logger.js";
|
|
3
4
|
import { requireXopcDatabase } from "../storage/sqlite/connection.js";
|
|
4
5
|
import { findSessionKeyBySessionId, getSessionMetadata, getSessionPersistedLevels } from "../storage/sqlite/session-repository.js";
|
|
5
6
|
import "../storage/sqlite/index.js";
|
|
6
|
-
import { SessionConfigSchema, init_schema } from "../config/schema.js";
|
|
7
7
|
import { normalizeThinkLevel, normalizeVerboseLevel } from "../agent/transcript/thinking-types.js";
|
|
8
8
|
import { evaluateSessionFreshness, resolveSessionResetPolicy } from "./reset-policy.js";
|
|
9
9
|
import { resolveChannelResetConfig, resolveSessionResetType } from "./reset-type.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { createLogger } from "../utils/logger/index.js";
|
|
2
|
-
import { init_logger } from "../utils/logger.js";
|
|
3
1
|
import { isCronSessionKey } from "../routing/session-key-utils.js";
|
|
4
2
|
import { init_session_key, parseSessionKey } from "../routing/session-key.js";
|
|
3
|
+
import { createLogger } from "../utils/logger/index.js";
|
|
4
|
+
import { init_logger } from "../utils/logger.js";
|
|
5
5
|
import { init_providers, resolveModel } from "../providers/index.js";
|
|
6
6
|
import { completeWithResolvedCredentials } from "../providers/model-call.js";
|
|
7
7
|
import { readAgentMessageContent } from "../agent/memory/agent-message-access.js";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { init_paths_state, resolveStateDir } from "../config/paths-state.js";
|
|
2
|
+
import { resolveEffectiveAgentProfileForSession } from "../config/agent-profile.js";
|
|
2
3
|
import { createLogger } from "../utils/logger/index.js";
|
|
3
4
|
import { init_logger } from "../utils/logger.js";
|
|
4
5
|
import { requireXopcDatabase } from "../storage/sqlite/connection.js";
|
|
@@ -8,7 +9,6 @@ import { estimateTokensFromMessages } from "../storage/sqlite/row-mappers.js";
|
|
|
8
9
|
import { deleteSessionRecord, ensureSessionRecord, findSessionKeyBySessionId, getGlobalSessionStats, getSessionMetadata, listSessionMetadata, listSessionsByAgent, patchSessionMetadata, resetSessionRecord } from "../storage/sqlite/session-repository.js";
|
|
9
10
|
import { appendTranscriptEntry, captureCompactionCheckpoint, getCompactionCheckpointDetail, listCompactionCheckpoints, loadCheckpointRows, loadLlmMessagesForSession, loadTranscriptRowsForSession, paginateTranscriptMessages, replaceTranscriptRows, restoreCompactionCheckpoint } from "../storage/sqlite/transcript-repository.js";
|
|
10
11
|
import "../storage/sqlite/index.js";
|
|
11
|
-
import { resolveEffectiveAgentProfileForSession } from "../config/agent-profile.js";
|
|
12
12
|
import { readPostCompactionContext } from "../agent/reply/post-compaction-context.js";
|
|
13
13
|
import { SessionCompactor } from "../agent/memory/compaction.js";
|
|
14
14
|
import { SlidingWindow } from "../agent/memory/window.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { resolveXopcDatabasePath } from "../../config/paths-state.js";
|
|
2
2
|
import { createLogger } from "../../utils/logger/index.js";
|
|
3
3
|
import { init_logger } from "../../utils/logger.js";
|
|
4
|
-
import { ensureXopcDatabaseSchema } from "./schema.js";
|
|
5
4
|
import { requireNodeSqlite } from "../../infra/node-sqlite.js";
|
|
6
5
|
import { installSqliteTransientRejectionHandler } from "../../infra/unhandled-rejections.js";
|
|
6
|
+
import { ensureXopcDatabaseSchema } from "./schema.js";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import fs from "node:fs";
|
|
9
9
|
import childProcess from "node:child_process";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { init_agent_session_key, resolveAgentIdFromSessionKey } from "../../routing/agent-session-key.js";
|
|
1
2
|
import "../../session/types.js";
|
|
2
3
|
import { buildDefaultSessionMetadata } from "./session-metadata.js";
|
|
3
4
|
import { isTranscriptContextEntry } from "../../session/session-context-for-llm.js";
|
|
4
|
-
import { init_agent_session_key, resolveAgentIdFromSessionKey } from "../../routing/agent-session-key.js";
|
|
5
5
|
//#region src/storage/sqlite/row-mappers.ts
|
|
6
6
|
init_agent_session_key();
|
|
7
7
|
function parseJson(raw) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { getAgentDefaultModelRef, init_schema } from "../../config/schema.js";
|
|
2
|
+
import { init_agent_scope, listAgentEntries, normalizeAgentId } from "../../agent/agent-scope.js";
|
|
3
|
+
import { init_agent_session_key, resolveAgentIdFromSessionKey } from "../../routing/agent-session-key.js";
|
|
1
4
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
5
|
import { init_logger } from "../../utils/logger.js";
|
|
6
|
+
import { loadConfig, saveConfig } from "../../config/loader.js";
|
|
3
7
|
import { openXopcDatabase } from "../../storage/sqlite/connection.js";
|
|
4
|
-
import { init_agent_session_key, resolveAgentIdFromSessionKey } from "../../routing/agent-session-key.js";
|
|
5
8
|
import { getSessionMetadata } from "../../storage/sqlite/session-repository.js";
|
|
6
9
|
import "../../storage/sqlite/index.js";
|
|
7
|
-
import { getAgentDefaultModelRef, init_schema } from "../../config/schema.js";
|
|
8
|
-
import { init_agent_scope, listAgentEntries, normalizeAgentId } from "../../agent/agent-scope.js";
|
|
9
|
-
import { loadConfig, saveConfig } from "../../config/loader.js";
|
|
10
10
|
import { effectiveWorkspacePathForSession } from "../../session/session-workspace.js";
|
|
11
11
|
import { createCreateShareTool, isShareToolAvailable } from "../../agent/tools/create-share-tool.js";
|
|
12
12
|
import { ProjectService } from "../../projects/project-service.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { tmpdir } from "node:os";
|
|
2
2
|
import { join } from "node:path";
|
|
3
3
|
import { readFileSync, unlinkSync, writeFileSync } from "node:fs";
|
|
4
|
-
import { spawnSync } from "node:child_process";
|
|
5
4
|
import { randomUUID } from "node:crypto";
|
|
5
|
+
import { spawnSync } from "node:child_process";
|
|
6
6
|
//#region src/tui/clipboard-image.ts
|
|
7
7
|
const SUPPORTED_IMAGE_MIME_TYPES = [
|
|
8
8
|
"image/png",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { parseAgentSessionKey } from "../routing/session-key-utils.js";
|
|
2
|
+
import { init_agent_session_key } from "../routing/agent-session-key.js";
|
|
1
3
|
import { getLogDir } from "../utils/logger/config.js";
|
|
2
4
|
import { getRuntimeLogStats } from "../utils/logger/stats.js";
|
|
3
5
|
import { init_logger } from "../utils/logger.js";
|
|
4
|
-
import { parseAgentSessionKey } from "../routing/session-key-utils.js";
|
|
5
|
-
import { init_agent_session_key } from "../routing/agent-session-key.js";
|
|
6
6
|
import { resolveConfigPath } from "../config/paths.js";
|
|
7
7
|
import { getProviderDisplayName, getSortedProviders, init_providers, providerSupportsApiKey, providerSupportsOAuth } from "../providers/index.js";
|
|
8
8
|
import { createWorkflowCatalog } from "../agent/workflow/catalog.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { closeXopcDatabase, isXopcDatabaseOpen, openXopcDatabase } from "../storage/sqlite/connection.js";
|
|
2
1
|
import { parseAgentSessionKey } from "../routing/session-key-utils.js";
|
|
3
2
|
import { init_agent_session_key, isValidAgentId, normalizeAgentId } from "../routing/agent-session-key.js";
|
|
4
|
-
import { getSessionMetadata } from "../storage/sqlite/session-repository.js";
|
|
5
|
-
import "../storage/sqlite/index.js";
|
|
6
3
|
import { resolveConfigPath } from "../config/paths.js";
|
|
7
4
|
import { loadConfig } from "../config/loader.js";
|
|
8
5
|
import { init_providers, providerSupportsOAuth } from "../providers/index.js";
|
|
6
|
+
import { closeXopcDatabase, isXopcDatabaseOpen, openXopcDatabase } from "../storage/sqlite/connection.js";
|
|
9
7
|
import { GoalService } from "../goals/goal-service.js";
|
|
10
8
|
import "../goals/index.js";
|
|
9
|
+
import { getSessionMetadata } from "../storage/sqlite/session-repository.js";
|
|
10
|
+
import "../storage/sqlite/index.js";
|
|
11
11
|
import { ProjectService } from "../projects/project-service.js";
|
|
12
12
|
import { isValidProjectAgentId, normalizeProjectAgentId } from "../projects/project-agent.js";
|
|
13
13
|
import { inferSuggestedProjectDefaultAgentId } from "../projects/project-agent-suggestion.js";
|
package/dist/src/tui/tui.js
CHANGED
|
@@ -56,8 +56,8 @@ import { createTuiExtensionRuntime } from "./extension-host/runtime.js";
|
|
|
56
56
|
import { tmpdir } from "node:os";
|
|
57
57
|
import { dirname, isAbsolute, join, relative, resolve } from "node:path";
|
|
58
58
|
import { mkdirSync, mkdtempSync, readFileSync, unlinkSync, writeFileSync } from "node:fs";
|
|
59
|
-
import { spawnSync } from "node:child_process";
|
|
60
59
|
import { randomUUID } from "node:crypto";
|
|
60
|
+
import { spawnSync } from "node:child_process";
|
|
61
61
|
import { Container, Loader, ProcessTerminal, TUI, setKeybindings } from "@earendil-works/pi-tui";
|
|
62
62
|
import { Buffer } from "node:buffer";
|
|
63
63
|
//#region src/tui/tui.ts
|
package/dist/src/utils/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getAsyncLogContext, inboundCorrelationMetadataFromAsyncLogContext, runWithLogContext, updateAsyncLogContext } from "./logger/context.js";
|
|
2
1
|
import { getLogDir, getLoggerConfig } from "./logger/config.js";
|
|
3
2
|
import { getRuntimeLogStats } from "./logger/stats.js";
|
|
4
3
|
import { flushAndClose, isLoggerShuttingDown, setShuttingDown } from "./logger/shutdown.js";
|
|
5
4
|
import { cleanOldLogs, rotateLogs } from "./logger/rotation.js";
|
|
5
|
+
import { getAsyncLogContext, inboundCorrelationMetadataFromAsyncLogContext, runWithLogContext, updateAsyncLogContext } from "./logger/context.js";
|
|
6
6
|
import { isLogRedactionEnabled, redactObject, redactPemBlock, redactSecret, redactSensitiveInfo } from "./logger/redact.js";
|
|
7
7
|
import { exportLog, flushExporters, getExporters, initializeExporters } from "./logger/exporters.js";
|
|
8
8
|
import { configureAuditLog, getAuditConfig, logAuditEvent, logAuthEvent, logConfigChange, logDataAccess, logPermissionChange } from "./logger/audit.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __esmMin } from "../../../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { PACKAGE_VERSION, init_package_version } from "../../package-version.js";
|
|
3
|
-
import { getAsyncLogContext, getAsyncLogCorrelationKeys, inboundCorrelationMetadataFromAsyncLogContext, init_context, mergeContext, runWithLogContext, updateAsyncLogContext } from "./context.js";
|
|
4
3
|
import { config, getLogDir, getLoggerConfig, init_config } from "./config.js";
|
|
5
4
|
import { init_streams, initializeStreams } from "./streams.js";
|
|
6
5
|
import { getRuntimeLogStats, incrementStats, init_stats } from "./stats.js";
|
|
7
6
|
import { flushAndClose, init_shutdown, isLoggerShuttingDown, setShuttingDown } from "./shutdown.js";
|
|
8
7
|
import { cleanOldLogs, init_rotation, rotateLogs } from "./rotation.js";
|
|
8
|
+
import { getAsyncLogContext, getAsyncLogCorrelationKeys, inboundCorrelationMetadataFromAsyncLogContext, init_context, mergeContext, runWithLogContext, updateAsyncLogContext } from "./context.js";
|
|
9
9
|
import { init_redact, isLogRedactionEnabled, redactLogRecord, redactObject, redactPemBlock, redactSecret, redactSensitiveInfo } from "./redact.js";
|
|
10
10
|
import { exportLog, flushExporters, getExporters, init_exporters, initializeExporters } from "./exporters.js";
|
|
11
11
|
import { configureAuditLog, getAuditConfig, init_audit, logAuditEvent, logAuthEvent, logConfigChange, logDataAccess, logPermissionChange } from "./audit.js";
|
package/dist/src/utils/logger.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { getAsyncLogContext, inboundCorrelationMetadataFromAsyncLogContext, runWithLogContext, updateAsyncLogContext } from "./logger/context.js";
|
|
3
2
|
import { getLogDir, getLoggerConfig } from "./logger/config.js";
|
|
4
3
|
import { getRuntimeLogStats } from "./logger/stats.js";
|
|
5
4
|
import { flushAndClose, isLoggerShuttingDown, setShuttingDown } from "./logger/shutdown.js";
|
|
6
5
|
import { cleanOldLogs, rotateLogs } from "./logger/rotation.js";
|
|
6
|
+
import { getAsyncLogContext, inboundCorrelationMetadataFromAsyncLogContext, runWithLogContext, updateAsyncLogContext } from "./logger/context.js";
|
|
7
7
|
import { isLogRedactionEnabled, redactObject, redactPemBlock, redactSecret, redactSensitiveInfo } from "./logger/redact.js";
|
|
8
8
|
import { exportLog, flushExporters, getExporters, initializeExporters } from "./logger/exporters.js";
|
|
9
9
|
import { configureAuditLog, getAuditConfig, logAuditEvent, logAuthEvent, logConfigChange, logDataAccess, logPermissionChange } from "./logger/audit.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { changedFieldsFromPatch, emitActivity, systemActivityActor, systemActivitySource } from "../activity/emitter.js";
|
|
2
1
|
import { deleteMediaBuffer, mimeTypeFromMediaPath, saveMediaBuffer } from "../media/store.js";
|
|
3
2
|
import { readMediaReference } from "../media/media-reference.js";
|
|
3
|
+
import { changedFieldsFromPatch, emitActivity, systemActivityActor, systemActivitySource } from "../activity/emitter.js";
|
|
4
4
|
import { WorkItemStore } from "./work-item-store.js";
|
|
5
5
|
//#region src/work-items/work-item-service.ts
|
|
6
6
|
const WORK_ITEM_ATTACHMENT_MAX_BYTES = 25 * 1024 * 1024;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { getAgentDefaultModelRef, init_schema } from "../../config/schema.js";
|
|
1
2
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
3
|
import { init_logger } from "../../utils/logger.js";
|
|
3
|
-
import { getAgentDefaultModelRef, init_schema } from "../../config/schema.js";
|
|
4
4
|
import { getDefaultModelSync, init_providers, resolveModel } from "../../providers/index.js";
|
|
5
5
|
import { completeWithResolvedCredentials } from "../../providers/model-call.js";
|
|
6
6
|
import { resolveModelRef } from "../../config/agent-typed-models.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "../../session/types.js";
|
|
2
|
-
import { upsertMemoryRecord } from "../../storage/sqlite/memory-records-repository.js";
|
|
3
|
-
import "../../storage/sqlite/index.js";
|
|
4
1
|
import { renderWorkflowText } from "../../agent/workflow/snapshot.js";
|
|
5
2
|
import { runViewToSnapshot } from "./run-view-to-snapshot.js";
|
|
6
3
|
import { GoalWorkflowJudge } from "../../goals/goal-workflow-judge.js";
|
|
7
4
|
import "../../goals/index.js";
|
|
5
|
+
import "../../session/types.js";
|
|
6
|
+
import { upsertMemoryRecord } from "../../storage/sqlite/memory-records-repository.js";
|
|
7
|
+
import "../../storage/sqlite/index.js";
|
|
8
8
|
import { isTerminalWorkflowRunStatus } from "../domain/run.js";
|
|
9
9
|
import "../domain/index.js";
|
|
10
10
|
import { WorkItemWorkflowJudge } from "../../work-items/work-item-workflow-judge.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xopcai/xopc",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.144",
|
|
4
4
|
"description": "Local-first AI system that remembers context, coordinates AI, and sustains long-term progress.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"@sinclair/typebox": "^0.34.49",
|
|
81
81
|
"@vscode/ripgrep": "^1.18.0",
|
|
82
82
|
"abort-controller": "^3.0.0",
|
|
83
|
-
"adm-zip": "^0.
|
|
83
|
+
"adm-zip": "^0.6.0",
|
|
84
84
|
"ajv": "^8.20.0",
|
|
85
85
|
"chalk": "^5.6.2",
|
|
86
86
|
"chokidar": "^5.0.0",
|