@qvac/core 0.0.0 → 0.1.1
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/LICENSE.md +198 -0
- package/NOTICE.md +13 -0
- package/README.md +694 -0
- package/SECURITY.md +6 -0
- package/dist/assistant.bundle +47257 -0
- package/dist/assistant.cjs +18 -0
- package/dist/assistant.d.ts +8 -0
- package/dist/prebuilds-manifest.json +380 -0
- package/dist-lib/client.d.ts +2 -0
- package/dist-lib/client.js +1 -0
- package/dist-lib/index.d.ts +13 -0
- package/dist-lib/index.js +10 -0
- package/dist-lib/lib/agent-icons.d.ts +3 -0
- package/dist-lib/lib/agent-icons.js +1 -0
- package/dist-lib/lib/api/agents.d.ts +5 -0
- package/dist-lib/lib/api/agents.js +38 -0
- package/dist-lib/lib/api/app-config.d.ts +5 -0
- package/dist-lib/lib/api/app-config.js +108 -0
- package/dist-lib/lib/api/approval-rules.d.ts +3 -0
- package/dist-lib/lib/api/approval-rules.js +9 -0
- package/dist-lib/lib/api/attachments.d.ts +8 -0
- package/dist-lib/lib/api/attachments.js +15 -0
- package/dist-lib/lib/api/chat-groups.d.ts +5 -0
- package/dist-lib/lib/api/chat-groups.js +12 -0
- package/dist-lib/lib/api/chat.d.ts +5 -0
- package/dist-lib/lib/api/chat.js +38 -0
- package/dist-lib/lib/api/chunks.d.ts +5 -0
- package/dist-lib/lib/api/chunks.js +61 -0
- package/dist-lib/lib/api/config.d.ts +5 -0
- package/dist-lib/lib/api/config.js +15 -0
- package/dist-lib/lib/api/current-mesh.d.ts +5 -0
- package/dist-lib/lib/api/current-mesh.js +12 -0
- package/dist-lib/lib/api/custom-models.d.ts +5 -0
- package/dist-lib/lib/api/custom-models.js +45 -0
- package/dist-lib/lib/api/devices.d.ts +8 -0
- package/dist-lib/lib/api/devices.js +125 -0
- package/dist-lib/lib/api/diagnostics.d.ts +7 -0
- package/dist-lib/lib/api/diagnostics.js +7 -0
- package/dist-lib/lib/api/effective-ctx-size.d.ts +2 -0
- package/dist-lib/lib/api/effective-ctx-size.js +10 -0
- package/dist-lib/lib/api/execution.d.ts +3 -0
- package/dist-lib/lib/api/execution.js +45 -0
- package/dist-lib/lib/api/files.d.ts +3 -0
- package/dist-lib/lib/api/files.js +48 -0
- package/dist-lib/lib/api/index.d.ts +62 -0
- package/dist-lib/lib/api/index.js +172 -0
- package/dist-lib/lib/api/instrument.d.ts +2 -0
- package/dist-lib/lib/api/instrument.js +86 -0
- package/dist-lib/lib/api/knowledge.d.ts +8 -0
- package/dist-lib/lib/api/knowledge.js +26 -0
- package/dist-lib/lib/api/logs.d.ts +14 -0
- package/dist-lib/lib/api/logs.js +116 -0
- package/dist-lib/lib/api/mesh.d.ts +13 -0
- package/dist-lib/lib/api/mesh.js +25 -0
- package/dist-lib/lib/api/model-download.d.ts +5 -0
- package/dist-lib/lib/api/model-download.js +47 -0
- package/dist-lib/lib/api/network.d.ts +8 -0
- package/dist-lib/lib/api/network.js +6 -0
- package/dist-lib/lib/api/notifications.d.ts +21 -0
- package/dist-lib/lib/api/notifications.js +108 -0
- package/dist-lib/lib/api/rag.d.ts +7 -0
- package/dist-lib/lib/api/rag.js +216 -0
- package/dist-lib/lib/api/sync.d.ts +3 -0
- package/dist-lib/lib/api/sync.js +6 -0
- package/dist-lib/lib/api/tool-activity.d.ts +5 -0
- package/dist-lib/lib/api/tool-activity.js +53 -0
- package/dist-lib/lib/api/tool-configs.d.ts +6 -0
- package/dist-lib/lib/api/tool-configs.js +27 -0
- package/dist-lib/lib/api/watchable.d.ts +12 -0
- package/dist-lib/lib/api/watchable.js +121 -0
- package/dist-lib/lib/assistant-client.d.ts +21 -0
- package/dist-lib/lib/assistant-client.js +52 -0
- package/dist-lib/lib/assistant-tree.d.ts +50 -0
- package/dist-lib/lib/assistant-tree.js +184 -0
- package/dist-lib/lib/assistant.d.ts +425 -0
- package/dist-lib/lib/assistant.js +2706 -0
- package/dist-lib/lib/audio-format.d.ts +4 -0
- package/dist-lib/lib/audio-format.js +4 -0
- package/dist-lib/lib/chat-title.d.ts +5 -0
- package/dist-lib/lib/chat-title.js +58 -0
- package/dist-lib/lib/client.d.ts +25 -0
- package/dist-lib/lib/client.js +53 -0
- package/dist-lib/lib/collabora/convert.d.ts +9 -0
- package/dist-lib/lib/collabora/convert.js +62 -0
- package/dist-lib/lib/collabora/entry.d.ts +1 -0
- package/dist-lib/lib/collabora/entry.js +44 -0
- package/dist-lib/lib/collabora/protocol.d.ts +15 -0
- package/dist-lib/lib/collabora/protocol.js +24 -0
- package/dist-lib/lib/collabora/worker.d.ts +5 -0
- package/dist-lib/lib/collabora/worker.js +111 -0
- package/dist-lib/lib/compaction.d.ts +30 -0
- package/dist-lib/lib/compaction.js +95 -0
- package/dist-lib/lib/constants.d.ts +4 -0
- package/dist-lib/lib/constants.js +4 -0
- package/dist-lib/lib/core/agent.d.ts +15 -0
- package/dist-lib/lib/core/agent.js +149 -0
- package/dist-lib/lib/core/app-build.d.ts +7 -0
- package/dist-lib/lib/core/app-build.js +1 -0
- package/dist-lib/lib/core/approval-rules.d.ts +15 -0
- package/dist-lib/lib/core/approval-rules.js +41 -0
- package/dist-lib/lib/core/async-iterable.d.ts +13 -0
- package/dist-lib/lib/core/async-iterable.js +65 -0
- package/dist-lib/lib/core/attachment-link.d.ts +7 -0
- package/dist-lib/lib/core/attachment-link.js +6 -0
- package/dist-lib/lib/core/audio-attachment.d.ts +1 -0
- package/dist-lib/lib/core/audio-attachment.js +4 -0
- package/dist-lib/lib/core/blind-peers.d.ts +6 -0
- package/dist-lib/lib/core/blind-peers.js +13 -0
- package/dist-lib/lib/core/chat-activity.d.ts +7 -0
- package/dist-lib/lib/core/chat-activity.js +244 -0
- package/dist-lib/lib/core/chat-group.d.ts +14 -0
- package/dist-lib/lib/core/chat-group.js +79 -0
- package/dist-lib/lib/core/chat-search.d.ts +17 -0
- package/dist-lib/lib/core/chat-search.js +199 -0
- package/dist-lib/lib/core/chat.d.ts +37 -0
- package/dist-lib/lib/core/chat.js +196 -0
- package/dist-lib/lib/core/chunk.d.ts +61 -0
- package/dist-lib/lib/core/chunk.js +212 -0
- package/dist-lib/lib/core/contract/activity.d.ts +11 -0
- package/dist-lib/lib/core/contract/activity.js +45 -0
- package/dist-lib/lib/core/contract/agents.d.ts +2 -0
- package/dist-lib/lib/core/contract/agents.js +29 -0
- package/dist-lib/lib/core/contract/approval-rules.d.ts +2 -0
- package/dist-lib/lib/core/contract/approval-rules.js +14 -0
- package/dist-lib/lib/core/contract/attestations.d.ts +2 -0
- package/dist-lib/lib/core/contract/attestations.js +14 -0
- package/dist-lib/lib/core/contract/chat-group.d.ts +2 -0
- package/dist-lib/lib/core/contract/chat-group.js +20 -0
- package/dist-lib/lib/core/contract/chat.d.ts +2 -0
- package/dist-lib/lib/core/contract/chat.js +18 -0
- package/dist-lib/lib/core/contract/chunks.d.ts +2 -0
- package/dist-lib/lib/core/contract/chunks.js +156 -0
- package/dist-lib/lib/core/contract/devices.d.ts +2 -0
- package/dist-lib/lib/core/contract/devices.js +110 -0
- package/dist-lib/lib/core/contract/index.d.ts +2 -0
- package/dist-lib/lib/core/contract/index.js +30 -0
- package/dist-lib/lib/core/contract/indexing.d.ts +4 -0
- package/dist-lib/lib/core/contract/indexing.js +82 -0
- package/dist-lib/lib/core/contract/knowledge.d.ts +2 -0
- package/dist-lib/lib/core/contract/knowledge.js +55 -0
- package/dist-lib/lib/core/contract/members.d.ts +2 -0
- package/dist-lib/lib/core/contract/members.js +96 -0
- package/dist-lib/lib/core/contract/seed-defaults.d.ts +2 -0
- package/dist-lib/lib/core/contract/seed-defaults.js +29 -0
- package/dist-lib/lib/core/contract/tool-activity.d.ts +2 -0
- package/dist-lib/lib/core/contract/tool-activity.js +25 -0
- package/dist-lib/lib/core/contract/tool-configs.d.ts +2 -0
- package/dist-lib/lib/core/contract/tool-configs.js +50 -0
- package/dist-lib/lib/core/contract/types.d.ts +11 -0
- package/dist-lib/lib/core/contract/types.js +1 -0
- package/dist-lib/lib/core/contract/writers.d.ts +2 -0
- package/dist-lib/lib/core/contract/writers.js +112 -0
- package/dist-lib/lib/core/cpu-info-node.d.ts +3 -0
- package/dist-lib/lib/core/cpu-info-node.js +2 -0
- package/dist-lib/lib/core/departures.d.ts +41 -0
- package/dist-lib/lib/core/departures.js +145 -0
- package/dist-lib/lib/core/device-attestation.d.ts +6 -0
- package/dist-lib/lib/core/device-attestation.js +12 -0
- package/dist-lib/lib/core/devices.d.ts +14 -0
- package/dist-lib/lib/core/devices.js +11 -0
- package/dist-lib/lib/core/document-attachment.d.ts +22 -0
- package/dist-lib/lib/core/document-attachment.js +35 -0
- package/dist-lib/lib/core/files/attachments.d.ts +8 -0
- package/dist-lib/lib/core/files/attachments.js +50 -0
- package/dist-lib/lib/core/files/index.d.ts +133 -0
- package/dist-lib/lib/core/files/index.js +585 -0
- package/dist-lib/lib/core/files/knowledge.d.ts +9 -0
- package/dist-lib/lib/core/files/knowledge.js +31 -0
- package/dist-lib/lib/core/files/preview/image.d.ts +4 -0
- package/dist-lib/lib/core/files/preview/image.js +42 -0
- package/dist-lib/lib/core/files/preview/index.d.ts +33 -0
- package/dist-lib/lib/core/files/preview/index.js +161 -0
- package/dist-lib/lib/core/files/processing/claims.d.ts +26 -0
- package/dist-lib/lib/core/files/processing/claims.js +89 -0
- package/dist-lib/lib/core/files/processing/document.d.ts +100 -0
- package/dist-lib/lib/core/files/processing/document.js +101 -0
- package/dist-lib/lib/core/files/processing/index.d.ts +75 -0
- package/dist-lib/lib/core/files/processing/index.js +295 -0
- package/dist-lib/lib/core/files/processing/ownership.d.ts +11 -0
- package/dist-lib/lib/core/files/processing/ownership.js +41 -0
- package/dist-lib/lib/core/files/processing/protocol.d.ts +29 -0
- package/dist-lib/lib/core/files/processing/protocol.js +70 -0
- package/dist-lib/lib/core/files/processing/settle.d.ts +10 -0
- package/dist-lib/lib/core/files/processing/settle.js +75 -0
- package/dist-lib/lib/core/files/processing/source.d.ts +36 -0
- package/dist-lib/lib/core/files/processing/source.js +96 -0
- package/dist-lib/lib/core/files/processing/state.d.ts +64 -0
- package/dist-lib/lib/core/files/processing/state.js +118 -0
- package/dist-lib/lib/core/files/rag/artifact/codec.d.ts +3 -0
- package/dist-lib/lib/core/files/rag/artifact/codec.js +172 -0
- package/dist-lib/lib/core/files/rag/artifact/id.d.ts +10 -0
- package/dist-lib/lib/core/files/rag/artifact/id.js +39 -0
- package/dist-lib/lib/core/files/rag/artifact/types.d.ts +24 -0
- package/dist-lib/lib/core/files/rag/artifact/types.js +41 -0
- package/dist-lib/lib/core/files/rag/build.d.ts +25 -0
- package/dist-lib/lib/core/files/rag/build.js +60 -0
- package/dist-lib/lib/core/files/rag/chunk/chunking.d.ts +12 -0
- package/dist-lib/lib/core/files/rag/chunk/chunking.js +117 -0
- package/dist-lib/lib/core/files/rag/chunk/metadata.d.ts +30 -0
- package/dist-lib/lib/core/files/rag/chunk/metadata.js +89 -0
- package/dist-lib/lib/core/files/rag/chunk/tokenizer.d.ts +7 -0
- package/dist-lib/lib/core/files/rag/chunk/tokenizer.js +18 -0
- package/dist-lib/lib/core/files/rag/document-types.d.ts +11 -0
- package/dist-lib/lib/core/files/rag/document-types.js +94 -0
- package/dist-lib/lib/core/files/rag/extract/csv-text.d.ts +1 -0
- package/dist-lib/lib/core/files/rag/extract/csv-text.js +117 -0
- package/dist-lib/lib/core/files/rag/extract/document-types.d.ts +22 -0
- package/dist-lib/lib/core/files/rag/extract/document-types.js +152 -0
- package/dist-lib/lib/core/files/rag/extract/extract.d.ts +17 -0
- package/dist-lib/lib/core/files/rag/extract/extract.js +81 -0
- package/dist-lib/lib/core/files/rag/extract/html-table-text.d.ts +1 -0
- package/dist-lib/lib/core/files/rag/extract/html-table-text.js +125 -0
- package/dist-lib/lib/core/files/rag/extract/html-text.d.ts +1 -0
- package/dist-lib/lib/core/files/rag/extract/html-text.js +132 -0
- package/dist-lib/lib/core/files/rag/extract/office-collabora.d.ts +2 -0
- package/dist-lib/lib/core/files/rag/extract/office-collabora.js +8 -0
- package/dist-lib/lib/core/files/rag/extract/pdf-platform.d.ts +17 -0
- package/dist-lib/lib/core/files/rag/extract/pdf-platform.js +141 -0
- package/dist-lib/lib/core/files/rag/extract/pdf-text.d.ts +12 -0
- package/dist-lib/lib/core/files/rag/extract/pdf-text.js +43 -0
- package/dist-lib/lib/core/files/rag/extract/rtf-text.d.ts +1 -0
- package/dist-lib/lib/core/files/rag/extract/rtf-text.js +15 -0
- package/dist-lib/lib/core/files/rag/extract/text-decoding.d.ts +1 -0
- package/dist-lib/lib/core/files/rag/extract/text-decoding.js +91 -0
- package/dist-lib/lib/core/files/rag/extract/types.d.ts +36 -0
- package/dist-lib/lib/core/files/rag/extract/types.js +12 -0
- package/dist-lib/lib/core/files/rag/extract/utf.d.ts +2 -0
- package/dist-lib/lib/core/files/rag/extract/utf.js +18 -0
- package/dist-lib/lib/core/files/rag/index.d.ts +54 -0
- package/dist-lib/lib/core/files/rag/index.js +79 -0
- package/dist-lib/lib/core/files/rag/limits.d.ts +2 -0
- package/dist-lib/lib/core/files/rag/limits.js +2 -0
- package/dist-lib/lib/core/files/rag/load.d.ts +28 -0
- package/dist-lib/lib/core/files/rag/load.js +250 -0
- package/dist-lib/lib/core/files/rag/models.d.ts +1 -0
- package/dist-lib/lib/core/files/rag/models.js +1 -0
- package/dist-lib/lib/core/files/rag/policy.d.ts +2 -0
- package/dist-lib/lib/core/files/rag/policy.js +23 -0
- package/dist-lib/lib/core/files/rag/produce.d.ts +21 -0
- package/dist-lib/lib/core/files/rag/produce.js +214 -0
- package/dist-lib/lib/core/files/rag/retrieval/citation-match.d.ts +2 -0
- package/dist-lib/lib/core/files/rag/retrieval/citation-match.js +16 -0
- package/dist-lib/lib/core/files/rag/retrieval/coverage.d.ts +4 -0
- package/dist-lib/lib/core/files/rag/retrieval/coverage.js +48 -0
- package/dist-lib/lib/core/files/rag/retrieval/diversity.d.ts +10 -0
- package/dist-lib/lib/core/files/rag/retrieval/diversity.js +37 -0
- package/dist-lib/lib/core/files/rag/retrieval/floor.d.ts +5 -0
- package/dist-lib/lib/core/files/rag/retrieval/floor.js +21 -0
- package/dist-lib/lib/core/files/rag/retrieval/format.d.ts +6 -0
- package/dist-lib/lib/core/files/rag/retrieval/format.js +21 -0
- package/dist-lib/lib/core/files/rag/retrieval/full-text.d.ts +22 -0
- package/dist-lib/lib/core/files/rag/retrieval/full-text.js +137 -0
- package/dist-lib/lib/core/files/rag/retrieval/knowledge.d.ts +2 -0
- package/dist-lib/lib/core/files/rag/retrieval/knowledge.js +53 -0
- package/dist-lib/lib/core/files/rag/retrieval/notices.d.ts +16 -0
- package/dist-lib/lib/core/files/rag/retrieval/notices.js +27 -0
- package/dist-lib/lib/core/files/rag/retrieval/scoring.d.ts +8 -0
- package/dist-lib/lib/core/files/rag/retrieval/scoring.js +82 -0
- package/dist-lib/lib/core/files/rag/retrieval/search.d.ts +3 -0
- package/dist-lib/lib/core/files/rag/retrieval/search.js +46 -0
- package/dist-lib/lib/core/files/rag/retrieval/selection.d.ts +10 -0
- package/dist-lib/lib/core/files/rag/retrieval/selection.js +63 -0
- package/dist-lib/lib/core/files/rag/retrieval/source-tag-filter.d.ts +6 -0
- package/dist-lib/lib/core/files/rag/retrieval/source-tag-filter.js +79 -0
- package/dist-lib/lib/core/files/rag/retrieval/sources.d.ts +13 -0
- package/dist-lib/lib/core/files/rag/retrieval/sources.js +20 -0
- package/dist-lib/lib/core/files/rag/retrieval/target.d.ts +13 -0
- package/dist-lib/lib/core/files/rag/retrieval/target.js +89 -0
- package/dist-lib/lib/core/files/rag/retrieval/terms.d.ts +8 -0
- package/dist-lib/lib/core/files/rag/retrieval/terms.js +70 -0
- package/dist-lib/lib/core/files/rag/retrieval/types.d.ts +28 -0
- package/dist-lib/lib/core/files/rag/retrieval/types.js +1 -0
- package/dist-lib/lib/core/files/rag/retrieval/web-sources.d.ts +8 -0
- package/dist-lib/lib/core/files/rag/retrieval/web-sources.js +41 -0
- package/dist-lib/lib/core/files/rag/retrieval/whole-document-query.d.ts +1 -0
- package/dist-lib/lib/core/files/rag/retrieval/whole-document-query.js +96 -0
- package/dist-lib/lib/core/files/rag/vector/memory.d.ts +15 -0
- package/dist-lib/lib/core/files/rag/vector/memory.js +135 -0
- package/dist-lib/lib/core/files/rag/vector/types.d.ts +28 -0
- package/dist-lib/lib/core/files/rag/vector/types.js +1 -0
- package/dist-lib/lib/core/files/records/chunks.d.ts +3 -0
- package/dist-lib/lib/core/files/records/chunks.js +12 -0
- package/dist-lib/lib/core/files/records/index.d.ts +10 -0
- package/dist-lib/lib/core/files/records/index.js +8 -0
- package/dist-lib/lib/core/files/records/knowledge.d.ts +22 -0
- package/dist-lib/lib/core/files/records/knowledge.js +105 -0
- package/dist-lib/lib/core/files/records/linkage.d.ts +11 -0
- package/dist-lib/lib/core/files/records/linkage.js +27 -0
- package/dist-lib/lib/core/files/records/output.d.ts +8 -0
- package/dist-lib/lib/core/files/records/output.js +38 -0
- package/dist-lib/lib/core/files/records/reclaim.d.ts +5 -0
- package/dist-lib/lib/core/files/records/reclaim.js +73 -0
- package/dist-lib/lib/core/files/records/routing.d.ts +23 -0
- package/dist-lib/lib/core/files/records/routing.js +62 -0
- package/dist-lib/lib/core/files/records/source.d.ts +16 -0
- package/dist-lib/lib/core/files/records/source.js +70 -0
- package/dist-lib/lib/core/files/records/sweep.d.ts +2 -0
- package/dist-lib/lib/core/files/records/sweep.js +30 -0
- package/dist-lib/lib/core/files/store/blob.d.ts +29 -0
- package/dist-lib/lib/core/files/store/blob.js +98 -0
- package/dist-lib/lib/core/files/store/index.d.ts +36 -0
- package/dist-lib/lib/core/files/store/index.js +89 -0
- package/dist-lib/lib/core/files/store/inline.d.ts +8 -0
- package/dist-lib/lib/core/files/store/inline.js +38 -0
- package/dist-lib/lib/core/files/store/reference.d.ts +27 -0
- package/dist-lib/lib/core/files/store/reference.js +168 -0
- package/dist-lib/lib/core/files/store/server.d.ts +27 -0
- package/dist-lib/lib/core/files/store/server.js +114 -0
- package/dist-lib/lib/core/files/store/sweep.d.ts +2 -0
- package/dist-lib/lib/core/files/store/sweep.js +45 -0
- package/dist-lib/lib/core/files/upload-input.d.ts +27 -0
- package/dist-lib/lib/core/files/upload-input.js +52 -0
- package/dist-lib/lib/core/files/upload.d.ts +32 -0
- package/dist-lib/lib/core/files/upload.js +201 -0
- package/dist-lib/lib/core/fs-drives.d.ts +18 -0
- package/dist-lib/lib/core/fs-drives.js +58 -0
- package/dist-lib/lib/core/gpu-info-node.d.ts +3 -0
- package/dist-lib/lib/core/gpu-info-node.js +2 -0
- package/dist-lib/lib/core/handoff-channel.d.ts +46 -0
- package/dist-lib/lib/core/handoff-channel.js +102 -0
- package/dist-lib/lib/core/health-assistant.d.ts +7 -0
- package/dist-lib/lib/core/health-assistant.js +24 -0
- package/dist-lib/lib/core/helpers/index.d.ts +5 -0
- package/dist-lib/lib/core/helpers/index.js +74 -0
- package/dist-lib/lib/core/hosted-agents.d.ts +36 -0
- package/dist-lib/lib/core/hosted-agents.js +127 -0
- package/dist-lib/lib/core/id.d.ts +1 -0
- package/dist-lib/lib/core/id.js +5 -0
- package/dist-lib/lib/core/identity.d.ts +14 -0
- package/dist-lib/lib/core/identity.js +45 -0
- package/dist-lib/lib/core/image/cache-sweep.d.ts +12 -0
- package/dist-lib/lib/core/image/cache-sweep.js +67 -0
- package/dist-lib/lib/core/image/normalize.d.ts +3 -0
- package/dist-lib/lib/core/image/normalize.js +49 -0
- package/dist-lib/lib/core/image/sniff.d.ts +3 -0
- package/dist-lib/lib/core/image/sniff.js +149 -0
- package/dist-lib/lib/core/invite.d.ts +14 -0
- package/dist-lib/lib/core/invite.js +36 -0
- package/dist-lib/lib/core/local/index.d.ts +71 -0
- package/dist-lib/lib/core/local/index.js +391 -0
- package/dist-lib/lib/core/membership.d.ts +15 -0
- package/dist-lib/lib/core/membership.js +40 -0
- package/dist-lib/lib/core/mesh.d.ts +153 -0
- package/dist-lib/lib/core/mesh.js +509 -0
- package/dist-lib/lib/core/migrations/agent-catalog.d.ts +6 -0
- package/dist-lib/lib/core/migrations/agent-catalog.js +17 -0
- package/dist-lib/lib/core/migrations/index.d.ts +5 -0
- package/dist-lib/lib/core/migrations/index.js +7 -0
- package/dist-lib/lib/core/migrations/membership.d.ts +11 -0
- package/dist-lib/lib/core/migrations/membership.js +26 -0
- package/dist-lib/lib/core/min-version.d.ts +6 -0
- package/dist-lib/lib/core/min-version.js +31 -0
- package/dist-lib/lib/core/next-frame.d.ts +6 -0
- package/dist-lib/lib/core/next-frame.js +27 -0
- package/dist-lib/lib/core/notification.d.ts +6 -0
- package/dist-lib/lib/core/notification.js +162 -0
- package/dist-lib/lib/core/ota-config.d.ts +19 -0
- package/dist-lib/lib/core/ota-config.js +44 -0
- package/dist-lib/lib/core/prompt-history.d.ts +12 -0
- package/dist-lib/lib/core/prompt-history.js +40 -0
- package/dist-lib/lib/core/search-fold.d.ts +1 -0
- package/dist-lib/lib/core/search-fold.js +4 -0
- package/dist-lib/lib/core/secret-handoff.d.ts +17 -0
- package/dist-lib/lib/core/secret-handoff.js +29 -0
- package/dist-lib/lib/core/send.d.ts +18 -0
- package/dist-lib/lib/core/send.js +46 -0
- package/dist-lib/lib/core/skill-overlay-handoff.d.ts +25 -0
- package/dist-lib/lib/core/skill-overlay-handoff.js +50 -0
- package/dist-lib/lib/core/skill-overlay-receiver.d.ts +8 -0
- package/dist-lib/lib/core/skill-overlay-receiver.js +20 -0
- package/dist-lib/lib/core/skill-secrets.d.ts +25 -0
- package/dist-lib/lib/core/skill-secrets.js +79 -0
- package/dist-lib/lib/core/sync/chats.d.ts +3 -0
- package/dist-lib/lib/core/sync/chats.js +5 -0
- package/dist-lib/lib/core/sync/chunks.d.ts +9 -0
- package/dist-lib/lib/core/sync/chunks.js +16 -0
- package/dist-lib/lib/core/sync/devices.d.ts +4 -0
- package/dist-lib/lib/core/sync/devices.js +12 -0
- package/dist-lib/lib/core/sync/files.d.ts +16 -0
- package/dist-lib/lib/core/sync/files.js +109 -0
- package/dist-lib/lib/core/sync/index.d.ts +5 -0
- package/dist-lib/lib/core/sync/index.js +63 -0
- package/dist-lib/lib/core/sync-status.d.ts +17 -0
- package/dist-lib/lib/core/sync-status.js +129 -0
- package/dist-lib/lib/core/system-info.d.ts +24 -0
- package/dist-lib/lib/core/system-info.js +66 -0
- package/dist-lib/lib/core/tool-activity.d.ts +22 -0
- package/dist-lib/lib/core/tool-activity.js +39 -0
- package/dist-lib/lib/core/tool-configs.d.ts +13 -0
- package/dist-lib/lib/core/tool-configs.js +141 -0
- package/dist-lib/lib/core.d.ts +291 -0
- package/dist-lib/lib/core.js +2126 -0
- package/dist-lib/lib/credential-pusher.d.ts +67 -0
- package/dist-lib/lib/credential-pusher.js +290 -0
- package/dist-lib/lib/custom-model-pusher.d.ts +9 -0
- package/dist-lib/lib/custom-model-pusher.js +42 -0
- package/dist-lib/lib/custom-model-source.d.ts +15 -0
- package/dist-lib/lib/custom-model-source.js +46 -0
- package/dist-lib/lib/deadline.d.ts +9 -0
- package/dist-lib/lib/deadline.js +31 -0
- package/dist-lib/lib/diagnostics.d.ts +35 -0
- package/dist-lib/lib/diagnostics.js +14 -0
- package/dist-lib/lib/fetch-node.d.ts +1 -0
- package/dist-lib/lib/fetch-node.js +1 -0
- package/dist-lib/lib/fs-drive-bridge.d.ts +12 -0
- package/dist-lib/lib/fs-drive-bridge.js +186 -0
- package/dist-lib/lib/fs-grant-keys.d.ts +2 -0
- package/dist-lib/lib/fs-grant-keys.js +6 -0
- package/dist-lib/lib/fs-grants.d.ts +10 -0
- package/dist-lib/lib/fs-grants.js +44 -0
- package/dist-lib/lib/image-cache-dir.d.ts +1 -0
- package/dist-lib/lib/image-cache-dir.js +5 -0
- package/dist-lib/lib/integrations/index.d.ts +4 -0
- package/dist-lib/lib/integrations/index.js +3 -0
- package/dist-lib/lib/integrations/mcp-providers.d.ts +12 -0
- package/dist-lib/lib/integrations/mcp-providers.js +22 -0
- package/dist-lib/lib/integrations/oauth-providers.d.ts +14 -0
- package/dist-lib/lib/integrations/oauth-providers.js +116 -0
- package/dist-lib/lib/integrations/setup-routes.d.ts +12 -0
- package/dist-lib/lib/integrations/setup-routes.js +114 -0
- package/dist-lib/lib/knowledge-search.d.ts +7 -0
- package/dist-lib/lib/knowledge-search.js +53 -0
- package/dist-lib/lib/kv-cache-reclaim.d.ts +5 -0
- package/dist-lib/lib/kv-cache-reclaim.js +29 -0
- package/dist-lib/lib/kv-cache.d.ts +18 -0
- package/dist-lib/lib/kv-cache.js +33 -0
- package/dist-lib/lib/legacy-core-domain.d.ts +258 -0
- package/dist-lib/lib/legacy-core-domain.js +1 -0
- package/dist-lib/lib/llm-model-names.d.ts +1 -0
- package/dist-lib/lib/llm-model-names.js +1 -0
- package/dist-lib/lib/log-buffer.d.ts +7 -0
- package/dist-lib/lib/log-buffer.js +16 -0
- package/dist-lib/lib/log-levels.d.ts +7 -0
- package/dist-lib/lib/log-levels.js +1 -0
- package/dist-lib/lib/log.d.ts +60 -0
- package/dist-lib/lib/log.js +149 -0
- package/dist-lib/lib/logger-type.d.ts +13 -0
- package/dist-lib/lib/logger-type.js +1 -0
- package/dist-lib/lib/logger.d.ts +5 -0
- package/dist-lib/lib/logger.js +18 -0
- package/dist-lib/lib/model-catalog-revision.d.ts +9 -0
- package/dist-lib/lib/model-catalog-revision.js +65 -0
- package/dist-lib/lib/model-clamp.d.ts +6 -0
- package/dist-lib/lib/model-clamp.js +20 -0
- package/dist-lib/lib/model-context.d.ts +13 -0
- package/dist-lib/lib/model-context.js +71 -0
- package/dist-lib/lib/model-download-status.d.ts +29 -0
- package/dist-lib/lib/model-download-status.js +56 -0
- package/dist-lib/lib/model-download.d.ts +191 -0
- package/dist-lib/lib/model-download.js +787 -0
- package/dist-lib/lib/oauth/asana.d.ts +35 -0
- package/dist-lib/lib/oauth/asana.js +71 -0
- package/dist-lib/lib/oauth/browser-connect.d.ts +22 -0
- package/dist-lib/lib/oauth/browser-connect.js +83 -0
- package/dist-lib/lib/oauth/client.d.ts +9 -0
- package/dist-lib/lib/oauth/client.js +9 -0
- package/dist-lib/lib/oauth/common.d.ts +38 -0
- package/dist-lib/lib/oauth/common.js +36 -0
- package/dist-lib/lib/oauth/crypto.d.ts +3 -0
- package/dist-lib/lib/oauth/crypto.js +25 -0
- package/dist-lib/lib/oauth/fetch-platform.d.ts +1 -0
- package/dist-lib/lib/oauth/fetch-platform.js +1 -0
- package/dist-lib/lib/oauth/flow-core.d.ts +6 -0
- package/dist-lib/lib/oauth/flow-core.js +37 -0
- package/dist-lib/lib/oauth/flow.d.ts +3 -0
- package/dist-lib/lib/oauth/flow.js +24 -0
- package/dist-lib/lib/oauth/google.d.ts +37 -0
- package/dist-lib/lib/oauth/google.js +77 -0
- package/dist-lib/lib/oauth/host.d.ts +5 -0
- package/dist-lib/lib/oauth/host.js +3 -0
- package/dist-lib/lib/oauth/keys.d.ts +25 -0
- package/dist-lib/lib/oauth/keys.js +93 -0
- package/dist-lib/lib/oauth/loopback.d.ts +3 -0
- package/dist-lib/lib/oauth/loopback.js +119 -0
- package/dist-lib/lib/oauth/loopback.stub.d.ts +3 -0
- package/dist-lib/lib/oauth/loopback.stub.js +6 -0
- package/dist-lib/lib/oauth/notion.d.ts +34 -0
- package/dist-lib/lib/oauth/notion.js +82 -0
- package/dist-lib/lib/oauth/pkce-runtime.d.ts +3 -0
- package/dist-lib/lib/oauth/pkce-runtime.js +5 -0
- package/dist-lib/lib/oauth/pkce.d.ts +8 -0
- package/dist-lib/lib/oauth/pkce.js +6 -0
- package/dist-lib/lib/oauth/providers.d.ts +5 -0
- package/dist-lib/lib/oauth/providers.js +73 -0
- package/dist-lib/lib/oauth/redirect-types.d.ts +19 -0
- package/dist-lib/lib/oauth/redirect-types.js +1 -0
- package/dist-lib/lib/oauth/register.d.ts +3 -0
- package/dist-lib/lib/oauth/register.js +34 -0
- package/dist-lib/lib/oauth/resolve.d.ts +17 -0
- package/dist-lib/lib/oauth/resolve.js +57 -0
- package/dist-lib/lib/oauth/spotify.d.ts +32 -0
- package/dist-lib/lib/oauth/spotify.js +73 -0
- package/dist-lib/lib/oauth/token-exchange-core.d.ts +6 -0
- package/dist-lib/lib/oauth/token-exchange-core.js +97 -0
- package/dist-lib/lib/oauth/token-exchange.d.ts +5 -0
- package/dist-lib/lib/oauth/token-exchange.js +9 -0
- package/dist-lib/lib/oauth/types.d.ts +54 -0
- package/dist-lib/lib/oauth/types.js +1 -0
- package/dist-lib/lib/oauth.client.d.ts +5 -0
- package/dist-lib/lib/oauth.client.js +2 -0
- package/dist-lib/lib/oauth.d.ts +14 -0
- package/dist-lib/lib/oauth.js +12 -0
- package/dist-lib/lib/obsidian-key.d.ts +1 -0
- package/dist-lib/lib/obsidian-key.js +1 -0
- package/dist-lib/lib/race-resource.d.ts +5 -0
- package/dist-lib/lib/race-resource.js +25 -0
- package/dist-lib/lib/reconnecting-watch.d.ts +2 -0
- package/dist-lib/lib/reconnecting-watch.js +78 -0
- package/dist-lib/lib/retry-budget.d.ts +14 -0
- package/dist-lib/lib/retry-budget.js +39 -0
- package/dist-lib/lib/run-notices.d.ts +23 -0
- package/dist-lib/lib/run-notices.js +33 -0
- package/dist-lib/lib/run-transcript.d.ts +35 -0
- package/dist-lib/lib/run-transcript.js +106 -0
- package/dist-lib/lib/skill-readiness.d.ts +2 -0
- package/dist-lib/lib/skill-readiness.js +21 -0
- package/dist-lib/lib/skill-types.d.ts +70 -0
- package/dist-lib/lib/skill-types.js +1 -0
- package/dist-lib/lib/spec-loader.d.ts +14 -0
- package/dist-lib/lib/spec-loader.js +9 -0
- package/dist-lib/lib/suspend-lifecycle.d.ts +17 -0
- package/dist-lib/lib/suspend-lifecycle.js +33 -0
- package/dist-lib/lib/task.d.ts +26 -0
- package/dist-lib/lib/task.js +69 -0
- package/dist-lib/lib/unref.d.ts +3 -0
- package/dist-lib/lib/unref.js +4 -0
- package/dist-lib/lib/wav-duration.d.ts +1 -0
- package/dist-lib/lib/wav-duration.js +53 -0
- package/dist-lib/lib/write-queue.d.ts +22 -0
- package/dist-lib/lib/write-queue.js +39 -0
- package/dist-lib/schema/build.d.ts +1 -0
- package/dist-lib/schema/build.js +120 -0
- package/dist-lib/schema/config.d.ts +4 -0
- package/dist-lib/schema/config.js +7 -0
- package/dist-lib/schema/content.d.ts +20 -0
- package/dist-lib/schema/content.js +122 -0
- package/dist-lib/schema/engine.d.ts +2 -0
- package/dist-lib/schema/engine.js +2013 -0
- package/dist-lib/schema/field-order.d.ts +1 -0
- package/dist-lib/schema/field-order.js +95 -0
- package/dist-lib/schema/helpers.d.ts +28 -0
- package/dist-lib/schema/helpers.js +176 -0
- package/dist-lib/schema/local.d.ts +2 -0
- package/dist-lib/schema/local.js +133 -0
- package/dist-lib/schema/qvac.d.ts +22 -0
- package/dist-lib/schema/qvac.js +722 -0
- package/dist-lib/schema/vendor.d.ts +5 -0
- package/dist-lib/spec/bind.d.ts +2 -0
- package/dist-lib/spec/bind.js +520 -0
- package/dist-lib/spec/calls.d.ts +3 -0
- package/dist-lib/spec/calls.js +129 -0
- package/dist-lib/spec/capabilities.d.ts +263 -0
- package/dist-lib/spec/config/hyperconf/index.d.ts +15 -0
- package/dist-lib/spec/config/hyperconf/index.js +24 -0
- package/dist-lib/spec/config/hyperconf/package.json +3 -0
- package/dist-lib/spec/config/hyperschema/index.js +81 -0
- package/dist-lib/spec/config/hyperschema/schema.json +19 -0
- package/dist-lib/spec/hrpc/hrpc.json +1500 -0
- package/dist-lib/spec/hrpc/index.d.ts +3 -0
- package/dist-lib/spec/hrpc/index.js +1545 -0
- package/dist-lib/spec/hrpc/messages.d.ts +4 -0
- package/dist-lib/spec/hrpc/messages.js +8373 -0
- package/dist-lib/spec/hyperschema/index.d.ts +20 -0
- package/dist-lib/spec/hyperschema/index.js +8373 -0
- package/dist-lib/spec/hyperschema/schema.json +6202 -0
- package/dist-lib/spec/hyperschema/types.d.ts +1545 -0
- package/dist-lib/spec/index.d.ts +36 -0
- package/dist-lib/spec/index.js +6 -0
- package/dist-lib/spec/local/hyperdb/db.json +186 -0
- package/dist-lib/spec/local/hyperdb/index.d.ts +9 -0
- package/dist-lib/spec/local/hyperdb/index.js +855 -0
- package/dist-lib/spec/local/hyperdb/messages.js +2189 -0
- package/dist-lib/spec/local/hyperschema/index.js +1208 -0
- package/dist-lib/spec/local/hyperschema/schema.json +639 -0
- package/dist-lib/spec/local/hyperschema/types.d.ts +159 -0
- package/dist-lib/spec/mesh/hyperdb/db.json +702 -0
- package/dist-lib/spec/mesh/hyperdb/index.d.ts +9 -0
- package/dist-lib/spec/mesh/hyperdb/index.js +2260 -0
- package/dist-lib/spec/mesh/hyperdb/messages.js +7453 -0
- package/dist-lib/spec/mesh/hyperdispatch/dispatch.json +174 -0
- package/dist-lib/spec/mesh/hyperdispatch/index.d.ts +13 -0
- package/dist-lib/spec/mesh/hyperdispatch/index.js +566 -0
- package/dist-lib/spec/mesh/hyperdispatch/messages.js +5713 -0
- package/dist-lib/spec/mesh/hyperschema/index.d.ts +14 -0
- package/dist-lib/spec/mesh/hyperschema/index.js +5713 -0
- package/dist-lib/spec/mesh/hyperschema/schema.json +3142 -0
- package/dist-lib/spec/mesh/hyperschema/types.d.ts +754 -0
- package/ducks.png +0 -0
- package/package.json +336 -1
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import Supervisor, {} from 'bare-supervisor';
|
|
2
|
+
import { harnessClearKvCache, harnessDeleteModel, harnessListModels, harnessSkillCatalog, harnessSkillManagement, harnessSpeak, harnessSpeakStream, harnessTools, harnessTranscribe, QvacAssistant } from "./assistant.js";
|
|
3
|
+
import { Client } from "./client.js";
|
|
4
|
+
import { startCustomModelPusher } from "./custom-model-pusher.js";
|
|
5
|
+
import { duplexPair } from '@qvac/harness/transport';
|
|
6
|
+
export function assistantTree(opts) {
|
|
7
|
+
const { core, harness, logger = null, imageCacheDir, imageCacheMaxBytes, imageCacheMaxAgeMs, embedder, extractors, onHarness, platform, preloadCurrentAgentModel } = opts;
|
|
8
|
+
const sup = new Supervisor();
|
|
9
|
+
const logged = ['child-died', 'child-restarting', 'child-ready', 'gave-up', 'stall'];
|
|
10
|
+
for (const event of logged) {
|
|
11
|
+
sup.on(event, (payload) => logger?.warn('assistant-tree', event, { ...payload, error: payload.error?.message }));
|
|
12
|
+
}
|
|
13
|
+
sup.on('power', (payload) => logger?.info('assistant-tree', 'power', payload));
|
|
14
|
+
let offDiagnostics = null;
|
|
15
|
+
let offListModels = null;
|
|
16
|
+
let offDeleteModel = null;
|
|
17
|
+
let offClearKvCache = null;
|
|
18
|
+
let offDeleteChatKvCache = null;
|
|
19
|
+
let offCompactChat = null;
|
|
20
|
+
let offRetryModelDownload = null;
|
|
21
|
+
let offSkills = null;
|
|
22
|
+
let offSkillCatalog = null;
|
|
23
|
+
let offSkillManagement = null;
|
|
24
|
+
let offTools = null;
|
|
25
|
+
let offEmbedder = null;
|
|
26
|
+
let offHarness = null;
|
|
27
|
+
let offTranscribe = null;
|
|
28
|
+
let offSpeak = null;
|
|
29
|
+
let offSpeakStream = null;
|
|
30
|
+
let offModelCatalogWatch = null;
|
|
31
|
+
let offCustomModels = null;
|
|
32
|
+
sup.add('engine', {
|
|
33
|
+
start: async () => {
|
|
34
|
+
const [server, client] = duplexPair();
|
|
35
|
+
await core.connect(server);
|
|
36
|
+
return new Client(() => client, { logger });
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
if (typeof harness === 'function') {
|
|
40
|
+
sup.add('harness', {
|
|
41
|
+
deps: ['engine'],
|
|
42
|
+
start: (ctx) => harness({ engine: ctx.get('engine'), onDeath: ctx.onDeath }),
|
|
43
|
+
presuspend: (h) => h.presuspend?.(),
|
|
44
|
+
suspend: (h) => h.suspend?.(),
|
|
45
|
+
wakeup: (h) => h.wakeup?.(),
|
|
46
|
+
resume: (h) => h.resume?.()
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
sup.add('harness', { ...harness, deps: ['engine', ...(harness.deps ?? [])] });
|
|
51
|
+
}
|
|
52
|
+
sup.add('assistant', {
|
|
53
|
+
deps: ['engine', 'harness'],
|
|
54
|
+
start: (ctx) => {
|
|
55
|
+
const harness = ctx.get('harness');
|
|
56
|
+
const engine = ctx.get('engine');
|
|
57
|
+
const assistant = new QvacAssistant(engine, harness, {
|
|
58
|
+
logger,
|
|
59
|
+
imageCacheDir,
|
|
60
|
+
imageCacheMaxBytes,
|
|
61
|
+
imageCacheMaxAgeMs,
|
|
62
|
+
...(platform ? { platform } : {}),
|
|
63
|
+
...(preloadCurrentAgentModel !== undefined ? { preloadCurrentAgentModel } : {}),
|
|
64
|
+
...(core.fsDrives ? { drives: core.fsDrives } : {})
|
|
65
|
+
});
|
|
66
|
+
offDiagnostics = core.registerDiagnostics(() => assistant.diagnosticsSlice());
|
|
67
|
+
offListModels = core.registerListModels(harnessListModels(harness));
|
|
68
|
+
offDeleteModel = core.registerDeleteModel(harnessDeleteModel(harness));
|
|
69
|
+
offClearKvCache = core.registerClearKvCache(harnessClearKvCache(harness));
|
|
70
|
+
offDeleteChatKvCache = core.registerDeleteChatKvCache((chatId) => assistant.deleteChatKvCache(chatId));
|
|
71
|
+
offCompactChat = core.registerCompactChat((chatId) => assistant.compactChat(chatId));
|
|
72
|
+
offModelCatalogWatch = core.registerModelCatalogWatch(() => assistant.modelCatalogWatch());
|
|
73
|
+
offCustomModels = startCustomModelPusher(harness, core.local, logger);
|
|
74
|
+
offRetryModelDownload = core.registerRetryModelDownload((name) => assistant.retryModelDownload(name));
|
|
75
|
+
offSkills = core.registerSkills((agentId, modelName, options) => assistant.skills(agentId, modelName, options));
|
|
76
|
+
const transcribe = harnessTranscribe(harness);
|
|
77
|
+
offTranscribe = core.registerTranscribe(async (request) => {
|
|
78
|
+
await assistant.ensureMediaModelUnpaused('transcription', request.model);
|
|
79
|
+
return transcribe(request);
|
|
80
|
+
});
|
|
81
|
+
const speak = harnessSpeak(harness);
|
|
82
|
+
offSpeak = core.registerSpeak(async (request) => {
|
|
83
|
+
await assistant.ensureMediaModelUnpaused('tts', request.model);
|
|
84
|
+
return speak(request);
|
|
85
|
+
});
|
|
86
|
+
const speakStream = harnessSpeakStream(harness);
|
|
87
|
+
offSpeakStream = core.registerSpeakStream((text) => (async function* () {
|
|
88
|
+
await assistant.ensureMediaModelUnpaused('tts');
|
|
89
|
+
yield* speakStream(text);
|
|
90
|
+
})());
|
|
91
|
+
offSkillCatalog = core.registerSkillCatalog(harnessSkillCatalog(assistant, () => offHarness?.sync?.()));
|
|
92
|
+
offSkillManagement = core.registerSkillManagement(harnessSkillManagement(harness));
|
|
93
|
+
offTools = core.registerTools(harnessTools(assistant));
|
|
94
|
+
const emb = embedder?.(harness);
|
|
95
|
+
if (emb) {
|
|
96
|
+
let ensured = false;
|
|
97
|
+
const wrapped = {
|
|
98
|
+
model: emb.model,
|
|
99
|
+
embed: async (input) => {
|
|
100
|
+
if (!ensured)
|
|
101
|
+
ensured = await assistant.ensureMediaModelUnpaused('embedding');
|
|
102
|
+
return emb.embed(input);
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
offEmbedder = core.registerEmbedder(wrapped, extractors);
|
|
106
|
+
}
|
|
107
|
+
const off = onHarness?.(harness, { engine });
|
|
108
|
+
if (typeof off === 'function')
|
|
109
|
+
offHarness = off;
|
|
110
|
+
return assistant;
|
|
111
|
+
},
|
|
112
|
+
stop: async (assistant) => {
|
|
113
|
+
offDiagnostics?.();
|
|
114
|
+
offDiagnostics = null;
|
|
115
|
+
offListModels?.();
|
|
116
|
+
offListModels = null;
|
|
117
|
+
offDeleteModel?.();
|
|
118
|
+
offDeleteModel = null;
|
|
119
|
+
offClearKvCache?.();
|
|
120
|
+
offClearKvCache = null;
|
|
121
|
+
offDeleteChatKvCache?.();
|
|
122
|
+
offDeleteChatKvCache = null;
|
|
123
|
+
offCompactChat?.();
|
|
124
|
+
offCompactChat = null;
|
|
125
|
+
offModelCatalogWatch?.();
|
|
126
|
+
offModelCatalogWatch = null;
|
|
127
|
+
await offCustomModels?.();
|
|
128
|
+
offCustomModels = null;
|
|
129
|
+
offRetryModelDownload?.();
|
|
130
|
+
offRetryModelDownload = null;
|
|
131
|
+
offSkills?.();
|
|
132
|
+
offSkills = null;
|
|
133
|
+
offSkillCatalog?.();
|
|
134
|
+
offSkillCatalog = null;
|
|
135
|
+
offSkillManagement?.();
|
|
136
|
+
offSkillManagement = null;
|
|
137
|
+
offTools?.();
|
|
138
|
+
offTools = null;
|
|
139
|
+
await offEmbedder?.();
|
|
140
|
+
offEmbedder = null;
|
|
141
|
+
await offHarness?.();
|
|
142
|
+
offHarness = null;
|
|
143
|
+
offTranscribe?.();
|
|
144
|
+
offTranscribe = null;
|
|
145
|
+
offSpeak?.();
|
|
146
|
+
offSpeak = null;
|
|
147
|
+
offSpeakStream?.();
|
|
148
|
+
offSpeakStream = null;
|
|
149
|
+
await assistant.close();
|
|
150
|
+
},
|
|
151
|
+
presuspend: (assistant) => assistant.presuspend(),
|
|
152
|
+
suspend: (assistant) => assistant.suspend(),
|
|
153
|
+
wakeup: (assistant) => assistant.wakeup(),
|
|
154
|
+
resume: (assistant) => assistant.resume()
|
|
155
|
+
});
|
|
156
|
+
return sup;
|
|
157
|
+
}
|
|
158
|
+
export function assistantChild(opts) {
|
|
159
|
+
const { harness, core = 'core', logger = null, imageCacheDir, imageCacheMaxBytes, imageCacheMaxAgeMs, embedder, extractors, onHarness, preloadCurrentAgentModel, ...spec } = opts;
|
|
160
|
+
return {
|
|
161
|
+
...spec,
|
|
162
|
+
deps: [core],
|
|
163
|
+
start(ctx) {
|
|
164
|
+
const tree = assistantTree({
|
|
165
|
+
core: ctx.get(core),
|
|
166
|
+
harness,
|
|
167
|
+
logger,
|
|
168
|
+
imageCacheDir,
|
|
169
|
+
imageCacheMaxBytes,
|
|
170
|
+
imageCacheMaxAgeMs,
|
|
171
|
+
embedder,
|
|
172
|
+
extractors,
|
|
173
|
+
onHarness,
|
|
174
|
+
...(preloadCurrentAgentModel !== undefined ? { preloadCurrentAgentModel } : {})
|
|
175
|
+
});
|
|
176
|
+
tree.on('gave-up', ({ error }) => ctx.onDeath(error));
|
|
177
|
+
return tree;
|
|
178
|
+
},
|
|
179
|
+
presuspend: (tree) => tree.presuspend(),
|
|
180
|
+
suspend: (tree) => tree.suspend(),
|
|
181
|
+
wakeup: (tree) => tree.wakeup(),
|
|
182
|
+
resume: (tree) => tree.resume()
|
|
183
|
+
};
|
|
184
|
+
}
|
|
@@ -0,0 +1,425 @@
|
|
|
1
|
+
import { type AbortSignal } from 'bare-abort-controller';
|
|
2
|
+
import type { ApprovalCall, InstallStep, MemoryBudget, ModelCategory, SkillRequires, SkillSetup } from '@qvac/harness';
|
|
3
|
+
import type { ManagedSkill, SkillFileContent } from '@qvac/harness/lib/tools/skills/overlay-crud.ts';
|
|
4
|
+
import type { SkillManagementHooks } from './core.ts';
|
|
5
|
+
import type { DriveOpFn, GrantedDrive } from '@qvac/harness/lib/tools/fs/remote.ts';
|
|
6
|
+
import ReadyResource from 'ready-resource';
|
|
7
|
+
import type { AssistantAgent, AssistantCapabilityProfile, AssistantChunk, AssistantChunkContentAttachment, AssistantDeleteModelRequest, AssistantDeleteModelResponse, AssistantKvCacheDeletionResponse, AssistantListModelsRequest, AssistantModelCatalogRevision, AssistantModelInfoList, AssistantSkillCatalogResponse, AssistantSpeakRequest, AssistantSpeakResponse, AssistantToolCatalogResponse, AssistantTranscribeRequest, AssistantTranscribeResponse } from '../spec/hyperschema/types.d.ts';
|
|
8
|
+
import type { Capabilities } from './api/index.ts';
|
|
9
|
+
import { type DocumentAttachment } from './core/document-attachment.ts';
|
|
10
|
+
import type { DriveHost } from './core/fs-drives.ts';
|
|
11
|
+
import { type DiagnosticsSlice, type HarnessDiagnostics } from './diagnostics.ts';
|
|
12
|
+
import type { Logger } from './log.ts';
|
|
13
|
+
import { type DownloadArgs, type DownloadEventStream } from './model-download.ts';
|
|
14
|
+
interface ChatMessage {
|
|
15
|
+
role: 'user' | 'assistant' | 'tool';
|
|
16
|
+
content: string;
|
|
17
|
+
attachments?: {
|
|
18
|
+
path: string;
|
|
19
|
+
}[];
|
|
20
|
+
images?: AttachmentRef[];
|
|
21
|
+
audioAttachments?: AttachmentRef[];
|
|
22
|
+
documents?: DocumentAttachment[];
|
|
23
|
+
}
|
|
24
|
+
export declare const IMAGE_ONLY_USER_PROMPT = "The user sent one or more images without any accompanying text. Describe what the images show and respond to anything notable in them.";
|
|
25
|
+
export declare const DOCUMENT_ONLY_USER_PROMPT = "The user sent one or more documents without any accompanying text. Summarize the attached documents.";
|
|
26
|
+
export declare const IMAGE_AND_DOCUMENT_USER_PROMPT = "The user sent one or more images together with one or more documents, and no accompanying text. Describe what the images show and summarize the attached documents.";
|
|
27
|
+
export declare function unreadableImagesNotice(fileNames: readonly string[]): string;
|
|
28
|
+
export declare function annotateUnreadableImages(unreadable: ReadonlyMap<ChatMessage, string[]>): void;
|
|
29
|
+
export declare function unheardAudioNotice(label: string, reason: string, opts?: {
|
|
30
|
+
retryable?: boolean;
|
|
31
|
+
}): string;
|
|
32
|
+
interface AttachmentRef {
|
|
33
|
+
id: string;
|
|
34
|
+
fileName: string;
|
|
35
|
+
mimeType: string;
|
|
36
|
+
blobId: string;
|
|
37
|
+
url?: string | null;
|
|
38
|
+
}
|
|
39
|
+
interface AttachInput {
|
|
40
|
+
fileName: string;
|
|
41
|
+
mimeType: string;
|
|
42
|
+
bytes: Uint8Array;
|
|
43
|
+
raw?: boolean;
|
|
44
|
+
}
|
|
45
|
+
interface AttachmentMeta {
|
|
46
|
+
id: string;
|
|
47
|
+
fileName: string;
|
|
48
|
+
mimeType: string;
|
|
49
|
+
byteLength: number;
|
|
50
|
+
}
|
|
51
|
+
interface FetchedAttachment extends AttachmentMeta {
|
|
52
|
+
bytes: Uint8Array;
|
|
53
|
+
}
|
|
54
|
+
interface HarnessEvent {
|
|
55
|
+
type: string;
|
|
56
|
+
text?: string;
|
|
57
|
+
message?: string;
|
|
58
|
+
[key: string]: unknown;
|
|
59
|
+
}
|
|
60
|
+
export interface HarnessInfo {
|
|
61
|
+
toolNames: string[];
|
|
62
|
+
skills: string[];
|
|
63
|
+
supportsImages: boolean;
|
|
64
|
+
}
|
|
65
|
+
export type ModelType = string;
|
|
66
|
+
export interface ModelInfo {
|
|
67
|
+
name: string;
|
|
68
|
+
type: ModelType;
|
|
69
|
+
registryPath: string;
|
|
70
|
+
registrySource: string;
|
|
71
|
+
isCached: boolean;
|
|
72
|
+
isLoaded: boolean;
|
|
73
|
+
supportsImages?: boolean;
|
|
74
|
+
expectedSize: number;
|
|
75
|
+
actualSize?: number;
|
|
76
|
+
}
|
|
77
|
+
export interface ListModelsOptions {
|
|
78
|
+
type?: ModelType;
|
|
79
|
+
cachedOnly?: boolean;
|
|
80
|
+
fullRegistry?: boolean;
|
|
81
|
+
}
|
|
82
|
+
export interface DeleteModelSummary {
|
|
83
|
+
name: string;
|
|
84
|
+
removed: number;
|
|
85
|
+
freedBytes: number;
|
|
86
|
+
}
|
|
87
|
+
export interface ToolCatalogEntry {
|
|
88
|
+
name: string;
|
|
89
|
+
description: string;
|
|
90
|
+
skillGated: boolean;
|
|
91
|
+
scopeRequired: boolean;
|
|
92
|
+
toolset?: string | null;
|
|
93
|
+
rootsRequired?: boolean;
|
|
94
|
+
writeRootsRequired?: boolean;
|
|
95
|
+
promptChars?: number;
|
|
96
|
+
}
|
|
97
|
+
export interface Harness {
|
|
98
|
+
completion(context: {
|
|
99
|
+
model: string;
|
|
100
|
+
agent: AssistantAgent;
|
|
101
|
+
messages: ChatMessage[];
|
|
102
|
+
cacheKey?: string;
|
|
103
|
+
thinkingDefault?: string;
|
|
104
|
+
toolConfigs?: Record<string, Record<string, unknown>>;
|
|
105
|
+
grantedDirs?: string[];
|
|
106
|
+
grantedDrives?: GrantedDrive[];
|
|
107
|
+
driveOp?: DriveOpFn;
|
|
108
|
+
grantedWriteDirs?: string[];
|
|
109
|
+
generationParams?: {
|
|
110
|
+
temp?: number;
|
|
111
|
+
top_p?: number;
|
|
112
|
+
top_k?: number;
|
|
113
|
+
presence_penalty?: number;
|
|
114
|
+
repeat_penalty?: number;
|
|
115
|
+
frequency_penalty?: number;
|
|
116
|
+
reasoning_budget: 0 | -1;
|
|
117
|
+
};
|
|
118
|
+
responseFormat?: {
|
|
119
|
+
type: 'text';
|
|
120
|
+
} | {
|
|
121
|
+
type: 'json_object';
|
|
122
|
+
} | {
|
|
123
|
+
type: 'json_schema';
|
|
124
|
+
json_schema: {
|
|
125
|
+
name: string;
|
|
126
|
+
description?: string;
|
|
127
|
+
schema: Record<string, unknown>;
|
|
128
|
+
strict?: boolean;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
approve?: (call: ApprovalCall) => Promise<boolean>;
|
|
132
|
+
attach?: (input: AttachInput) => Promise<AssistantChunkContentAttachment>;
|
|
133
|
+
fetchAttachment?: (query: {
|
|
134
|
+
attachmentId?: string;
|
|
135
|
+
signal?: AbortSignal;
|
|
136
|
+
meta?: boolean;
|
|
137
|
+
}) => Promise<FetchedAttachment | AttachmentMeta | null>;
|
|
138
|
+
ragSearch?: (input: {
|
|
139
|
+
query: string;
|
|
140
|
+
limit?: number;
|
|
141
|
+
}) => Promise<{
|
|
142
|
+
enabled: boolean;
|
|
143
|
+
indexEmpty: boolean;
|
|
144
|
+
hasKnowledge: boolean;
|
|
145
|
+
pendingReferenced?: boolean;
|
|
146
|
+
errorMessage?: string | null;
|
|
147
|
+
hits: ReadonlyArray<{
|
|
148
|
+
content: string;
|
|
149
|
+
metadataJson?: string | null;
|
|
150
|
+
score: number;
|
|
151
|
+
}>;
|
|
152
|
+
}>;
|
|
153
|
+
progress?: (update: {
|
|
154
|
+
percentage: number;
|
|
155
|
+
} | null) => void;
|
|
156
|
+
signal?: AbortSignal;
|
|
157
|
+
}): AsyncIterable<HarnessEvent>;
|
|
158
|
+
describe?(): Promise<HarnessInfo | null> | HarnessInfo;
|
|
159
|
+
embed?(context: {
|
|
160
|
+
model: string;
|
|
161
|
+
texts: string[];
|
|
162
|
+
signal?: AbortSignal;
|
|
163
|
+
}): Promise<number[][]>;
|
|
164
|
+
list?(options?: ListModelsOptions): Promise<ReadonlyArray<ModelInfo>>;
|
|
165
|
+
warmModel?(context: {
|
|
166
|
+
model: string;
|
|
167
|
+
agent?: AssistantAgent;
|
|
168
|
+
signal?: AbortSignal;
|
|
169
|
+
}): Promise<void>;
|
|
170
|
+
deleteModel?(name: string): Promise<DeleteModelSummary>;
|
|
171
|
+
clearKvCache?(): Promise<AssistantKvCacheDeletionResponse>;
|
|
172
|
+
deleteKvCache?(kvCacheKey: string): Promise<AssistantKvCacheDeletionResponse>;
|
|
173
|
+
infraModels?(profile: string): Promise<ReadonlyArray<{
|
|
174
|
+
name: string;
|
|
175
|
+
addon: string;
|
|
176
|
+
}>>;
|
|
177
|
+
capability?(): Promise<{
|
|
178
|
+
capabilityProfile: AssistantCapabilityProfile;
|
|
179
|
+
recommendedModelName: string;
|
|
180
|
+
memoryBudget?: MemoryBudget;
|
|
181
|
+
}>;
|
|
182
|
+
download?(args: DownloadArgs): DownloadEventStream;
|
|
183
|
+
transcribe?(context: {
|
|
184
|
+
model: string;
|
|
185
|
+
audio: Buffer;
|
|
186
|
+
signal?: AbortSignal;
|
|
187
|
+
}): Promise<string>;
|
|
188
|
+
speak?(context: {
|
|
189
|
+
model: string;
|
|
190
|
+
text: string;
|
|
191
|
+
signal?: AbortSignal;
|
|
192
|
+
}): Promise<{
|
|
193
|
+
audio: Buffer;
|
|
194
|
+
sampleRate: number;
|
|
195
|
+
}>;
|
|
196
|
+
speakStream?(context: {
|
|
197
|
+
model: string;
|
|
198
|
+
text: AsyncIterable<string>;
|
|
199
|
+
signal?: AbortSignal;
|
|
200
|
+
}): AsyncIterable<{
|
|
201
|
+
audio: Buffer;
|
|
202
|
+
sampleRate: number;
|
|
203
|
+
}>;
|
|
204
|
+
setCredentials?(entries: ReadonlyArray<{
|
|
205
|
+
key: string;
|
|
206
|
+
token?: string | null;
|
|
207
|
+
expiresAt?: number | null;
|
|
208
|
+
agentId?: string | null;
|
|
209
|
+
}>): void | Promise<void>;
|
|
210
|
+
setCustomModels?(entries: ReadonlyArray<{
|
|
211
|
+
name: string;
|
|
212
|
+
src: string;
|
|
213
|
+
projectionSrc?: string;
|
|
214
|
+
}>): void | Promise<void>;
|
|
215
|
+
on?(event: 'model' | 'status', listener: (...args: never[]) => void): unknown;
|
|
216
|
+
off?(event: 'model' | 'status', listener: (...args: never[]) => void): unknown;
|
|
217
|
+
presuspend?(): Promise<void> | void;
|
|
218
|
+
suspend?(): Promise<void> | void;
|
|
219
|
+
wakeup?(): Promise<void> | void;
|
|
220
|
+
resume?(): Promise<void> | void;
|
|
221
|
+
skills?(agentId?: string | null, modelName?: string | null, options?: {
|
|
222
|
+
readonly refresh?: boolean;
|
|
223
|
+
readonly skipCredentialProbe?: boolean;
|
|
224
|
+
}): Promise<ReadonlyArray<Skill>>;
|
|
225
|
+
tools?(): Promise<ReadonlyArray<ToolCatalogEntry>>;
|
|
226
|
+
listManagedSkills?(): Promise<ReadonlyArray<ManagedSkill>>;
|
|
227
|
+
readSkillFile?(name: string): Promise<SkillFileContent | null>;
|
|
228
|
+
writeSkillFile?(name: string, content: string): Promise<{
|
|
229
|
+
ok: boolean;
|
|
230
|
+
}>;
|
|
231
|
+
copyBaseForEdit?(name: string): Promise<{
|
|
232
|
+
copied: boolean;
|
|
233
|
+
}>;
|
|
234
|
+
deleteOverlaySkill?(name: string): Promise<{
|
|
235
|
+
removed: boolean;
|
|
236
|
+
}>;
|
|
237
|
+
diagnostics?(): HarnessDiagnostics;
|
|
238
|
+
fetchDiagnostics?(): Promise<HarnessDiagnostics | null>;
|
|
239
|
+
toolNames?: string[];
|
|
240
|
+
skillNames?: string[];
|
|
241
|
+
supportsImages?: boolean;
|
|
242
|
+
supportsImagesFor?(model: string): boolean;
|
|
243
|
+
}
|
|
244
|
+
export declare function harnessListModels(harness: Pick<Harness, 'list'>): (options: AssistantListModelsRequest) => Promise<AssistantModelInfoList>;
|
|
245
|
+
export declare function harnessDeleteModel(harness: Pick<Harness, 'deleteModel'>): (options: AssistantDeleteModelRequest) => Promise<AssistantDeleteModelResponse>;
|
|
246
|
+
export declare function harnessClearKvCache(harness: Pick<Harness, 'clearKvCache'>): () => Promise<AssistantKvCacheDeletionResponse>;
|
|
247
|
+
export declare function harnessTranscribe(harness: Pick<Harness, 'transcribe'>): (request: AssistantTranscribeRequest) => Promise<AssistantTranscribeResponse>;
|
|
248
|
+
export declare function harnessSpeak(harness: Pick<Harness, 'speak'>): (request: AssistantSpeakRequest) => Promise<AssistantSpeakResponse>;
|
|
249
|
+
export declare function harnessSkillCatalog(harness: Pick<Harness, 'skills'>, syncCredentials?: () => Promise<void> | undefined): (agentId?: string | null, modelName?: string | null, options?: {
|
|
250
|
+
readonly refresh?: boolean;
|
|
251
|
+
readonly skipCredentialProbe?: boolean;
|
|
252
|
+
}) => Promise<AssistantSkillCatalogResponse>;
|
|
253
|
+
export declare function harnessSkillManagement(harness: Pick<Harness, 'listManagedSkills' | 'readSkillFile' | 'writeSkillFile' | 'copyBaseForEdit' | 'deleteOverlaySkill'>): SkillManagementHooks;
|
|
254
|
+
export declare function harnessTools(harness: Pick<Harness, 'tools'>): () => Promise<AssistantToolCatalogResponse>;
|
|
255
|
+
export declare function harnessSpeakStream(harness: Pick<Harness, 'speakStream'>): (text: AsyncIterable<string>) => AsyncIterable<AssistantSpeakResponse>;
|
|
256
|
+
export interface Skill {
|
|
257
|
+
name: string;
|
|
258
|
+
description: string;
|
|
259
|
+
status: string;
|
|
260
|
+
tools: string[];
|
|
261
|
+
credentials: string[];
|
|
262
|
+
allowList: string[];
|
|
263
|
+
platform: string[];
|
|
264
|
+
requires?: SkillRequires;
|
|
265
|
+
install?: InstallStep[];
|
|
266
|
+
setup?: SkillSetup;
|
|
267
|
+
stub?: boolean;
|
|
268
|
+
minCapabilityProfile?: string;
|
|
269
|
+
emoji?: string;
|
|
270
|
+
}
|
|
271
|
+
export interface StaleToolRuns {
|
|
272
|
+
runIds: Set<string>;
|
|
273
|
+
questionChunkIds: Set<string>;
|
|
274
|
+
}
|
|
275
|
+
export declare function listHistoryChunks(engine: Pick<Capabilities, 'listChunks'>, chatId: string): Promise<AssistantChunk[]>;
|
|
276
|
+
export interface CompactOptions {
|
|
277
|
+
readonly signal?: AbortSignal;
|
|
278
|
+
readonly onFold?: () => Promise<void> | void;
|
|
279
|
+
}
|
|
280
|
+
export type CompactionTrigger = 'before-run' | 'turn-filled-window' | 'overflow';
|
|
281
|
+
export interface CompactResult {
|
|
282
|
+
readonly compacted: boolean;
|
|
283
|
+
readonly foldedTurns?: number;
|
|
284
|
+
readonly reason?: string;
|
|
285
|
+
}
|
|
286
|
+
export declare function historyFromChunks(chunks: ReadonlyArray<AssistantChunk>, stale?: Partial<StaleToolRuns>): ChatMessage[];
|
|
287
|
+
export declare function staleToolRunIds(historyChunks: ReadonlyArray<AssistantChunk>, approvalChunks: ReadonlyArray<AssistantChunk>, currentRunId: string): StaleToolRuns;
|
|
288
|
+
export interface AssistantOptions {
|
|
289
|
+
logger?: Logger | null;
|
|
290
|
+
imageCacheDir?: string;
|
|
291
|
+
imageCacheMaxBytes?: number;
|
|
292
|
+
imageCacheMaxAgeMs?: number;
|
|
293
|
+
downloadRetryMs?: number;
|
|
294
|
+
platform?: string;
|
|
295
|
+
preloadCurrentAgentModel?: boolean;
|
|
296
|
+
drives?: DriveHost;
|
|
297
|
+
blobReadTimeoutMs?: number;
|
|
298
|
+
}
|
|
299
|
+
export declare class QvacAssistant extends ReadyResource {
|
|
300
|
+
private readonly _engine;
|
|
301
|
+
private readonly _harness;
|
|
302
|
+
private readonly _log;
|
|
303
|
+
private readonly _imageCacheDir;
|
|
304
|
+
private readonly _imageCacheMaxBytes?;
|
|
305
|
+
private readonly _imageCacheMaxAgeMs?;
|
|
306
|
+
private readonly _downloadRetryMs?;
|
|
307
|
+
private readonly _platform;
|
|
308
|
+
private readonly _mobileClass;
|
|
309
|
+
private readonly _preloadCurrentAgentModel;
|
|
310
|
+
private readonly _drives?;
|
|
311
|
+
private readonly _blobReadTimeoutMs;
|
|
312
|
+
private readonly _warmAbort;
|
|
313
|
+
private _warmedModel;
|
|
314
|
+
private _warmedModelName;
|
|
315
|
+
private readonly _modelStatusLogged;
|
|
316
|
+
private _deviceId;
|
|
317
|
+
private _info;
|
|
318
|
+
private _lastCapabilities;
|
|
319
|
+
private _readySkills;
|
|
320
|
+
private _recordingReadiness;
|
|
321
|
+
private _readinessDirty;
|
|
322
|
+
private _reconciling;
|
|
323
|
+
private readonly _onlineBoot;
|
|
324
|
+
private _capability;
|
|
325
|
+
private _downloads;
|
|
326
|
+
private _state;
|
|
327
|
+
private _harnessDiagnostics;
|
|
328
|
+
private _harnessDeath;
|
|
329
|
+
private _refreshingDiagnostics;
|
|
330
|
+
private _requests;
|
|
331
|
+
private _retry;
|
|
332
|
+
private _retryMs;
|
|
333
|
+
private _chatList;
|
|
334
|
+
private _agentList;
|
|
335
|
+
private readonly _chatListWatch;
|
|
336
|
+
private readonly _agentWatch;
|
|
337
|
+
private readonly _runs;
|
|
338
|
+
private readonly _seen;
|
|
339
|
+
private readonly _lifecycle;
|
|
340
|
+
private readonly _audioTranscripts;
|
|
341
|
+
private readonly _chats;
|
|
342
|
+
private readonly _runImageCacheNames;
|
|
343
|
+
private readonly _reconciledCompactions;
|
|
344
|
+
private readonly _modelCatalog;
|
|
345
|
+
private readonly _onHarnessStatus;
|
|
346
|
+
private readonly _onModelCatalogEvent;
|
|
347
|
+
constructor(engine: Capabilities, harness: Harness, { logger, imageCacheDir, imageCacheMaxBytes, imageCacheMaxAgeMs, downloadRetryMs, platform, preloadCurrentAgentModel, drives, blobReadTimeoutMs }?: AssistantOptions);
|
|
348
|
+
_open(): Promise<void>;
|
|
349
|
+
private _triggerModelWarm;
|
|
350
|
+
private _warmCurrentAgentModel;
|
|
351
|
+
private _currentAgent;
|
|
352
|
+
private _bootOnline;
|
|
353
|
+
onlineReady(): Promise<void>;
|
|
354
|
+
private _clearPersistedPauses;
|
|
355
|
+
ensureMediaModelUnpaused(category: ModelCategory, model?: string | null): Promise<boolean>;
|
|
356
|
+
private _persistedProfile;
|
|
357
|
+
private _sweepImageCache;
|
|
358
|
+
private _imageCacheInUse;
|
|
359
|
+
private _referencedImageNames;
|
|
360
|
+
private _describeHarness;
|
|
361
|
+
diagnosticsSlice(): DiagnosticsSlice;
|
|
362
|
+
private _refreshHarnessDiagnostics;
|
|
363
|
+
private _reportCapabilities;
|
|
364
|
+
private _ensureCapability;
|
|
365
|
+
private _reconcileDeviceProfile;
|
|
366
|
+
_close(): Promise<void>;
|
|
367
|
+
get suspended(): boolean;
|
|
368
|
+
presuspend(): Promise<void>;
|
|
369
|
+
suspend(): Promise<void>;
|
|
370
|
+
wakeup(): Promise<void>;
|
|
371
|
+
resume(): Promise<void>;
|
|
372
|
+
listModels(options?: ListModelsOptions): Promise<ReadonlyArray<ModelInfo>>;
|
|
373
|
+
deleteModel(name: string): Promise<DeleteModelSummary>;
|
|
374
|
+
modelCatalogWatch(): AsyncIterable<AssistantModelCatalogRevision>;
|
|
375
|
+
retryModelDownload(name: string): Promise<void>;
|
|
376
|
+
skills(agentId?: string | null, modelName?: string | null, options?: {
|
|
377
|
+
readonly refresh?: boolean;
|
|
378
|
+
readonly skipCredentialProbe?: boolean;
|
|
379
|
+
}): Promise<ReadonlyArray<Skill>>;
|
|
380
|
+
private _recordSkillReadiness;
|
|
381
|
+
tools(): Promise<ReadonlyArray<ToolCatalogEntry>>;
|
|
382
|
+
private _startConsume;
|
|
383
|
+
private _rearmingWatch;
|
|
384
|
+
private _watchChatList;
|
|
385
|
+
private _watchAgents;
|
|
386
|
+
private _reclaimAgentChatCaches;
|
|
387
|
+
private _reconcileCompaction;
|
|
388
|
+
deleteChatKvCache(chatId: string): Promise<AssistantKvCacheDeletionResponse>;
|
|
389
|
+
private _deleteChatKvCache;
|
|
390
|
+
private _rearmConsume;
|
|
391
|
+
private _consume;
|
|
392
|
+
private _dispatch;
|
|
393
|
+
private _citeWebSources;
|
|
394
|
+
private _searchKnowledge;
|
|
395
|
+
private _isHandled;
|
|
396
|
+
private _execute;
|
|
397
|
+
private _loadToolConfigs;
|
|
398
|
+
private _loadFsGrants;
|
|
399
|
+
private _readRootGrants;
|
|
400
|
+
private _readWriteGrants;
|
|
401
|
+
private _fetchAttachment;
|
|
402
|
+
private _readBlob;
|
|
403
|
+
private _uploadGenerated;
|
|
404
|
+
private _hydrateAudio;
|
|
405
|
+
private _transcribeAttachment;
|
|
406
|
+
private _hydrateImages;
|
|
407
|
+
private _hydrateImage;
|
|
408
|
+
private _compactIfNearFull;
|
|
409
|
+
private _runCompaction;
|
|
410
|
+
private _lastRunMetrics;
|
|
411
|
+
compactChat(chatId: string, options?: CompactOptions): Promise<CompactResult>;
|
|
412
|
+
private _summarize;
|
|
413
|
+
private _autoTitle;
|
|
414
|
+
private _generateChatTitle;
|
|
415
|
+
private _titleFromCompletion;
|
|
416
|
+
private _createApprove;
|
|
417
|
+
private _abortOutcome;
|
|
418
|
+
private _watchSettled;
|
|
419
|
+
private _watchOwnership;
|
|
420
|
+
private _yieldDownloads;
|
|
421
|
+
private _logModelStatus;
|
|
422
|
+
private _modelHolder;
|
|
423
|
+
private _watchModelProgress;
|
|
424
|
+
}
|
|
425
|
+
export {};
|