@qvac/core 0.0.0 → 0.1.0
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 +47256 -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/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/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 +332 -1
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { softDeleteChatsForAgent } from "./chat.js";
|
|
2
|
+
import { randomId } from "./id.js";
|
|
3
|
+
import { softDeleteToolConfigsForAgent } from "./tool-configs.js";
|
|
4
|
+
const AGENTS = '@qvac/agents';
|
|
5
|
+
const ACTIVE_AGENTS = '@qvac/active-agents';
|
|
6
|
+
const DEVICES = '@qvac/devices';
|
|
7
|
+
const DEFAULT_ICON_NAME = 'artificial-intelligence';
|
|
8
|
+
function mergeSkills(base, enabled) {
|
|
9
|
+
return Array.from(new Set([...(base ?? []), ...(enabled ?? [])]));
|
|
10
|
+
}
|
|
11
|
+
function patch(next, current) {
|
|
12
|
+
return next === null || next === undefined ? current : next;
|
|
13
|
+
}
|
|
14
|
+
export async function listAgents(store) {
|
|
15
|
+
const snap = store.view.snapshot();
|
|
16
|
+
try {
|
|
17
|
+
const agents = await snap.find(ACTIVE_AGENTS).toArray();
|
|
18
|
+
return agents;
|
|
19
|
+
}
|
|
20
|
+
finally {
|
|
21
|
+
await snap.close();
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export async function getAgent(store, id) {
|
|
25
|
+
const snap = store.view.snapshot();
|
|
26
|
+
try {
|
|
27
|
+
const agent = await snap.get(AGENTS, { id });
|
|
28
|
+
return agent;
|
|
29
|
+
}
|
|
30
|
+
finally {
|
|
31
|
+
await snap.close();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export async function isOrphaned(store, agent) {
|
|
35
|
+
const snap = store.view.snapshot();
|
|
36
|
+
try {
|
|
37
|
+
const device = await snap.get(DEVICES, { id: agent.providerDeviceId });
|
|
38
|
+
return !device || device.revoked === true;
|
|
39
|
+
}
|
|
40
|
+
finally {
|
|
41
|
+
await snap.close();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
export async function liveProviderIds(store) {
|
|
45
|
+
const live = new Set();
|
|
46
|
+
const snap = store.view.snapshot();
|
|
47
|
+
try {
|
|
48
|
+
for await (const device of snap.find(DEVICES)) {
|
|
49
|
+
if (!device.revoked)
|
|
50
|
+
live.add(device.id.toString('hex'));
|
|
51
|
+
}
|
|
52
|
+
return live;
|
|
53
|
+
}
|
|
54
|
+
finally {
|
|
55
|
+
await snap.close();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
export async function mustGetAgent(store, id) {
|
|
59
|
+
const agent = await getAgent(store, id);
|
|
60
|
+
if (!agent)
|
|
61
|
+
throw new Error(`agent not found: ${id}`);
|
|
62
|
+
return agent;
|
|
63
|
+
}
|
|
64
|
+
export async function mustGetActiveAgent(store, id) {
|
|
65
|
+
const agent = await mustGetAgent(store, id);
|
|
66
|
+
if (agent.deletedAt)
|
|
67
|
+
throw new Error(`agent not found: ${id}`);
|
|
68
|
+
return agent;
|
|
69
|
+
}
|
|
70
|
+
export async function createAgent(store, input) {
|
|
71
|
+
const now = Date.now();
|
|
72
|
+
const enabledSkills = input.enabledSkills ?? [];
|
|
73
|
+
const enabledTools = input.enabledTools ?? [];
|
|
74
|
+
const installedBase = input.installedSkills ?? enabledSkills;
|
|
75
|
+
const agent = {
|
|
76
|
+
id: randomId(),
|
|
77
|
+
name: input.name,
|
|
78
|
+
bio: input.bio,
|
|
79
|
+
providerDeviceId: input.providerDeviceId,
|
|
80
|
+
modelName: input.modelName,
|
|
81
|
+
reasoning: input.reasoning ?? 'inherit',
|
|
82
|
+
enabledSkills,
|
|
83
|
+
enabledTools,
|
|
84
|
+
installedSkills: mergeSkills(installedBase, enabledSkills),
|
|
85
|
+
isDefault: false,
|
|
86
|
+
createdAt: now,
|
|
87
|
+
updatedAt: now,
|
|
88
|
+
deletedAt: undefined,
|
|
89
|
+
imageModelChoice: input.imageModelChoice ?? undefined,
|
|
90
|
+
kvCacheK: input.kvCacheK ?? undefined,
|
|
91
|
+
kvCacheV: input.kvCacheV ?? undefined,
|
|
92
|
+
iconName: input.iconName ?? DEFAULT_ICON_NAME,
|
|
93
|
+
ctxSize: input.ctxSize || undefined,
|
|
94
|
+
toolsScope: input.toolsScope ?? 'selected',
|
|
95
|
+
skillsScope: input.skillsScope ?? 'selected',
|
|
96
|
+
imageSteps: input.imageSteps || undefined,
|
|
97
|
+
imageWidth: input.imageWidth || undefined,
|
|
98
|
+
imageHeight: input.imageHeight || undefined,
|
|
99
|
+
approvalMode: input.approvalMode === 'skip-all' ? 'skip-all' : 'ask',
|
|
100
|
+
disabledToolsets: input.disabledToolsets ?? []
|
|
101
|
+
};
|
|
102
|
+
await store.dispatch('put-agent', { agent });
|
|
103
|
+
return agent;
|
|
104
|
+
}
|
|
105
|
+
export async function updateAgent(store, input) {
|
|
106
|
+
const current = await mustGetActiveAgent(store, input.id);
|
|
107
|
+
const enabledSkills = patch(input.enabledSkills, current.enabledSkills);
|
|
108
|
+
const installedBase = patch(input.installedSkills, current.installedSkills);
|
|
109
|
+
const imageBase = input.clearImageSettings
|
|
110
|
+
? {}
|
|
111
|
+
: current;
|
|
112
|
+
const updated = {
|
|
113
|
+
...current,
|
|
114
|
+
name: patch(input.name, current.name),
|
|
115
|
+
bio: patch(input.bio, current.bio),
|
|
116
|
+
providerDeviceId: patch(input.providerDeviceId, current.providerDeviceId),
|
|
117
|
+
modelName: patch(input.modelName, current.modelName),
|
|
118
|
+
reasoning: patch(input.reasoning, current.reasoning),
|
|
119
|
+
enabledSkills,
|
|
120
|
+
enabledTools: patch(input.enabledTools, current.enabledTools),
|
|
121
|
+
installedSkills: mergeSkills(installedBase, enabledSkills),
|
|
122
|
+
imageModelChoice: patch(input.imageModelChoice, imageBase.imageModelChoice),
|
|
123
|
+
kvCacheK: patch(input.kvCacheK, current.kvCacheK),
|
|
124
|
+
kvCacheV: patch(input.kvCacheV, current.kvCacheV),
|
|
125
|
+
iconName: patch(input.iconName, current.iconName),
|
|
126
|
+
ctxSize: input.clearCtxSize ? undefined : input.ctxSize || current.ctxSize || undefined,
|
|
127
|
+
toolsScope: patch(input.toolsScope, current.toolsScope),
|
|
128
|
+
skillsScope: patch(input.skillsScope, current.skillsScope),
|
|
129
|
+
imageSteps: input.imageSteps || imageBase.imageSteps || undefined,
|
|
130
|
+
imageWidth: input.imageWidth || imageBase.imageWidth || undefined,
|
|
131
|
+
imageHeight: input.imageHeight || imageBase.imageHeight || undefined,
|
|
132
|
+
approvalMode: patch(input.approvalMode, current.approvalMode),
|
|
133
|
+
disabledToolsets: patch(input.disabledToolsets, current.disabledToolsets),
|
|
134
|
+
updatedAt: Date.now()
|
|
135
|
+
};
|
|
136
|
+
await store.dispatch('put-agent', { agent: updated });
|
|
137
|
+
return updated;
|
|
138
|
+
}
|
|
139
|
+
export async function deleteAgent(store, deviceId, id) {
|
|
140
|
+
const current = await mustGetAgent(store, id);
|
|
141
|
+
if (current.isDefault)
|
|
142
|
+
throw new Error('cannot delete the default agent');
|
|
143
|
+
const deletedAt = Date.now();
|
|
144
|
+
const updated = { ...current, deletedAt, updatedAt: deletedAt };
|
|
145
|
+
await store.dispatch('put-agent', { agent: updated });
|
|
146
|
+
await softDeleteChatsForAgent(store, deviceId, id);
|
|
147
|
+
await softDeleteToolConfigsForAgent(store, id);
|
|
148
|
+
return updated;
|
|
149
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const RELEASE_LANES = ['dev', 'staging', 'prod'];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { QvacApprovalRule } from '../../spec/mesh/hyperschema/types.d.ts';
|
|
2
|
+
import type { Mesh } from './mesh.ts';
|
|
3
|
+
export interface ResourceDescriptor {
|
|
4
|
+
kind: string;
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
7
|
+
type PutApprovalRuleInput = Pick<QvacApprovalRule, 'toolName' | 'resourceKind' | 'resourcePattern' | 'decision' | 'expiresAt' | 'agentId' | 'effect'>;
|
|
8
|
+
export declare function listApprovalRules(store: Mesh): Promise<QvacApprovalRule[]>;
|
|
9
|
+
export declare function putApprovalRule(store: Mesh, input: PutApprovalRuleInput): Promise<QvacApprovalRule>;
|
|
10
|
+
export declare function matchApprovalRule(rules: ReadonlyArray<QvacApprovalRule>, input: {
|
|
11
|
+
toolName: string;
|
|
12
|
+
resource?: ResourceDescriptor | null;
|
|
13
|
+
agentId?: string;
|
|
14
|
+
}, now?: number): QvacApprovalRule | null;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { randomId } from "./id.js";
|
|
2
|
+
const APPROVAL_RULES = '@qvac/approval-rules';
|
|
3
|
+
export async function listApprovalRules(store) {
|
|
4
|
+
const snap = store.view.snapshot();
|
|
5
|
+
try {
|
|
6
|
+
const rules = await snap.find(APPROVAL_RULES).toArray();
|
|
7
|
+
return rules;
|
|
8
|
+
}
|
|
9
|
+
finally {
|
|
10
|
+
await snap.close();
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export async function putApprovalRule(store, input) {
|
|
14
|
+
const now = Date.now();
|
|
15
|
+
const rule = { ...input, id: randomId(), createdAt: now, updatedAt: now };
|
|
16
|
+
await store.dispatch('put-approval-rule', { rule });
|
|
17
|
+
return rule;
|
|
18
|
+
}
|
|
19
|
+
export function matchApprovalRule(rules, input, now = Date.now()) {
|
|
20
|
+
for (const rule of rules) {
|
|
21
|
+
if (rule.expiresAt && rule.expiresAt <= now)
|
|
22
|
+
continue;
|
|
23
|
+
if (rule.toolName && rule.toolName !== input.toolName)
|
|
24
|
+
continue;
|
|
25
|
+
if (rule.agentId && rule.agentId !== input.agentId)
|
|
26
|
+
continue;
|
|
27
|
+
if (!matchesResource(rule, input.resource ?? null))
|
|
28
|
+
continue;
|
|
29
|
+
return rule;
|
|
30
|
+
}
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
function matchesResource(rule, resource) {
|
|
34
|
+
if (!rule.resourceKind || !rule.resourcePattern || rule.resourcePattern === '*')
|
|
35
|
+
return true;
|
|
36
|
+
if (!resource || resource.kind !== rule.resourceKind)
|
|
37
|
+
return false;
|
|
38
|
+
return rule.resourcePattern.endsWith('*')
|
|
39
|
+
? resource.label.startsWith(rule.resourcePattern.slice(0, -1))
|
|
40
|
+
: resource.label === rule.resourcePattern;
|
|
41
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface EventStream<T> {
|
|
2
|
+
on(event: 'data', listener: (chunk: T) => void): void;
|
|
3
|
+
on(event: 'end', listener: () => void): void;
|
|
4
|
+
on(event: 'error', listener: (err: Error) => void): void;
|
|
5
|
+
resume?(): void;
|
|
6
|
+
off?: {
|
|
7
|
+
(event: 'data', listener: (chunk: T) => void): void;
|
|
8
|
+
(event: 'end', listener: () => void): void;
|
|
9
|
+
(event: 'error', listener: (error: Error) => void): void;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export declare function toAsyncIterable<T>(streamOrIterable: AsyncIterable<T> | EventStream<T>): AsyncIterable<T>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export function toAsyncIterable(streamOrIterable) {
|
|
2
|
+
if (!('on' in streamOrIterable))
|
|
3
|
+
return streamOrIterable;
|
|
4
|
+
const stream = streamOrIterable;
|
|
5
|
+
const queue = [];
|
|
6
|
+
let waiting = null;
|
|
7
|
+
let ended = false;
|
|
8
|
+
let error = null;
|
|
9
|
+
const onData = (chunk) => {
|
|
10
|
+
if (waiting) {
|
|
11
|
+
const { resolve } = waiting;
|
|
12
|
+
waiting = null;
|
|
13
|
+
resolve({ value: chunk, done: false });
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
queue.push(chunk);
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
const onEnd = () => {
|
|
20
|
+
ended = true;
|
|
21
|
+
if (waiting) {
|
|
22
|
+
const { resolve } = waiting;
|
|
23
|
+
waiting = null;
|
|
24
|
+
resolve({ value: undefined, done: true });
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
const onError = (err) => {
|
|
28
|
+
error = err;
|
|
29
|
+
if (waiting) {
|
|
30
|
+
const { reject } = waiting;
|
|
31
|
+
waiting = null;
|
|
32
|
+
reject(err);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
stream.on('data', onData);
|
|
36
|
+
stream.on('end', onEnd);
|
|
37
|
+
stream.on('error', onError);
|
|
38
|
+
const iterator = {
|
|
39
|
+
[Symbol.asyncIterator]() {
|
|
40
|
+
return iterator;
|
|
41
|
+
},
|
|
42
|
+
async return() {
|
|
43
|
+
onEnd();
|
|
44
|
+
queue.length = 0;
|
|
45
|
+
stream.off?.('data', onData);
|
|
46
|
+
stream.off?.('end', onEnd);
|
|
47
|
+
stream.off?.('error', onError);
|
|
48
|
+
return { done: true, value: undefined };
|
|
49
|
+
},
|
|
50
|
+
next() {
|
|
51
|
+
if (!queue.length && !ended && !error)
|
|
52
|
+
stream.resume?.();
|
|
53
|
+
if (queue.length)
|
|
54
|
+
return Promise.resolve({ value: queue.shift(), done: false });
|
|
55
|
+
if (ended)
|
|
56
|
+
return Promise.resolve({ value: undefined, done: true });
|
|
57
|
+
if (error)
|
|
58
|
+
return Promise.reject(error);
|
|
59
|
+
return new Promise((resolve, reject) => {
|
|
60
|
+
waiting = { resolve, reject };
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
return iterator;
|
|
65
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type LinkableAttachment = {
|
|
2
|
+
readonly blobId: string;
|
|
3
|
+
readonly mimeType: string;
|
|
4
|
+
readonly deletedAt?: number;
|
|
5
|
+
};
|
|
6
|
+
export type AttachmentUrl = (attachment: LinkableAttachment) => string | null;
|
|
7
|
+
export declare function linkAttachment<T extends LinkableAttachment>(mint: AttachmentUrl | null, attachment: T): T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isAudioAttachment(fileName: string, mimeType: string): boolean;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { decode } from 'z32';
|
|
2
|
+
export const BLIND_RELAY_KEYS = [
|
|
3
|
+
'tgbo7m8fh3hwqqxj95zrezorjgodtjr19b9dqruyauwnbafsmx8y',
|
|
4
|
+
'tfo1aqsc4hc4ok6a4akpxifkp65efoo9n13g1386zoa7umjipqpo',
|
|
5
|
+
'cobue4jgch38xkwoua9mohjkomua8bcek1okuq8rkd3gatj5hqfy',
|
|
6
|
+
'wjouex6jjz3zor3t7ww8p59t9r4kx6gw4sar89sjkq7azjcay1ao'
|
|
7
|
+
].map((key) => decode(key));
|
|
8
|
+
export const BLIND_PEER_KEYS = [
|
|
9
|
+
'5tskygqds4scoymmoc9bmns3qu6rnnfw5knuk8y4nrdydy47bawo',
|
|
10
|
+
'te8q3phdyntxjqyrrn7qtw8mnko3htsgcn8kg8pgymqf9uisiemo',
|
|
11
|
+
'iakqkthgz6fb9awt8og3ftj9ru87pp11ab7zdy135miwnpzjc9ty',
|
|
12
|
+
'm5oqrn5ngpheegoj4jc5yyk4uxo5kfa81t7tpemnjcyzgghc85ko'
|
|
13
|
+
].map((key) => decode(key));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Mesh } from './mesh.ts';
|
|
2
|
+
export type ChatActivityState = 'queued' | 'running' | 'generating-image' | 'generating-audio' | 'transcribing-audio' | 'awaiting-approval';
|
|
3
|
+
export type ChatActivityRow = {
|
|
4
|
+
readonly id: string;
|
|
5
|
+
readonly activityState: ChatActivityState;
|
|
6
|
+
};
|
|
7
|
+
export declare function listChatActivity(store: Mesh, chatIds?: ReadonlyArray<string>): Promise<ChatActivityRow[]>;
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import ScopeLock from 'scope-lock';
|
|
2
|
+
import { findChunksOfType } from "./chunk.js";
|
|
3
|
+
const ACTIVE_CHATS = '@qvac/active-chats';
|
|
4
|
+
const CHUNKS = '@qvac/chunks';
|
|
5
|
+
const TERMINAL_RUN_STATES = new Set(['completed', 'failed', 'canceled']);
|
|
6
|
+
const ACTIVITY_CHUNK_TYPES = [
|
|
7
|
+
'run-request',
|
|
8
|
+
'run-status',
|
|
9
|
+
'approval-request',
|
|
10
|
+
'tool-call',
|
|
11
|
+
'tool-result'
|
|
12
|
+
];
|
|
13
|
+
const IMAGE_TOOLS = new Set(['generate_image', 'edit_image']);
|
|
14
|
+
const AUDIO_TOOLS = new Set(['generate_music']);
|
|
15
|
+
const MEDIA_TOOLS = new Set([...IMAGE_TOOLS, ...AUDIO_TOOLS]);
|
|
16
|
+
const catalogs = new WeakMap();
|
|
17
|
+
export function listChatActivity(store, chatIds) {
|
|
18
|
+
let catalog = catalogs.get(store);
|
|
19
|
+
if (!catalog) {
|
|
20
|
+
catalog = new ChatActivityCatalog();
|
|
21
|
+
catalogs.set(store, catalog);
|
|
22
|
+
}
|
|
23
|
+
return catalog.list(store, chatIds);
|
|
24
|
+
}
|
|
25
|
+
class ChatActivityCatalog {
|
|
26
|
+
_lock;
|
|
27
|
+
_chats;
|
|
28
|
+
_head;
|
|
29
|
+
constructor() {
|
|
30
|
+
this._lock = new ScopeLock();
|
|
31
|
+
this._chats = new Map();
|
|
32
|
+
this._head = null;
|
|
33
|
+
}
|
|
34
|
+
async list(store, chatIds) {
|
|
35
|
+
await this._lock.lock();
|
|
36
|
+
try {
|
|
37
|
+
const head = store.view.db.head();
|
|
38
|
+
const snap = store.view.snapshot();
|
|
39
|
+
try {
|
|
40
|
+
const chats = await snap.find(ACTIVE_CHATS).toArray();
|
|
41
|
+
const activeChatIds = new Set(chats.map((chat) => chat.id));
|
|
42
|
+
await this._refresh(snap, head, activeChatIds);
|
|
43
|
+
const window = chatIds && chatIds.length > 0 ? new Set(chatIds) : null;
|
|
44
|
+
return [...this._states()]
|
|
45
|
+
.filter(([id]) => !window || window.has(id))
|
|
46
|
+
.map(([id, activityState]) => ({ id, activityState }))
|
|
47
|
+
.sort((left, right) => (left.id < right.id ? -1 : left.id > right.id ? 1 : 0));
|
|
48
|
+
}
|
|
49
|
+
finally {
|
|
50
|
+
await snap.close();
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
finally {
|
|
54
|
+
this._lock.unlock();
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
async _refresh(snap, head, activeChatIds) {
|
|
58
|
+
if (!this._head || !head) {
|
|
59
|
+
await this._rebuild(snap, activeChatIds);
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
this._prune(activeChatIds);
|
|
63
|
+
await this._loadMissing(snap, activeChatIds);
|
|
64
|
+
if (!(await this._applyChanges(snap, this._head, activeChatIds))) {
|
|
65
|
+
await this._rebuild(snap, activeChatIds);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
this._head = head;
|
|
69
|
+
}
|
|
70
|
+
async _rebuild(snap, activeChatIds) {
|
|
71
|
+
this._chats.clear();
|
|
72
|
+
for (const chatId of activeChatIds)
|
|
73
|
+
await this._loadChat(snap, chatId);
|
|
74
|
+
}
|
|
75
|
+
_prune(activeChatIds) {
|
|
76
|
+
for (const chatId of this._chats.keys()) {
|
|
77
|
+
if (!activeChatIds.has(chatId))
|
|
78
|
+
this._chats.delete(chatId);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
async _loadMissing(snap, activeChatIds) {
|
|
82
|
+
for (const chatId of activeChatIds) {
|
|
83
|
+
if (!this._chats.has(chatId))
|
|
84
|
+
await this._loadChat(snap, chatId);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
async _loadChat(snap, chatId) {
|
|
88
|
+
const activity = { runs: new Map() };
|
|
89
|
+
this._chats.set(chatId, activity);
|
|
90
|
+
for (const chunk of await activityChunks(snap, chatId))
|
|
91
|
+
applyChunk(activity, chunk);
|
|
92
|
+
}
|
|
93
|
+
async _applyChanges(snap, from, activeChatIds) {
|
|
94
|
+
const chunksByChat = new Map();
|
|
95
|
+
for await (const change of snap.changes({ from })) {
|
|
96
|
+
if (change.collection !== CHUNKS)
|
|
97
|
+
continue;
|
|
98
|
+
if (change.type === 'delete')
|
|
99
|
+
return false;
|
|
100
|
+
if (!activeChatIds.has(change.value.chatId))
|
|
101
|
+
continue;
|
|
102
|
+
const chunks = chunksByChat.get(change.value.chatId) ?? [];
|
|
103
|
+
chunks.push(change.value);
|
|
104
|
+
chunksByChat.set(change.value.chatId, chunks);
|
|
105
|
+
}
|
|
106
|
+
for (const [chatId, chunks] of chunksByChat) {
|
|
107
|
+
const activity = this._chats.get(chatId);
|
|
108
|
+
if (!activity)
|
|
109
|
+
continue;
|
|
110
|
+
chunks.sort((left, right) => left.seq - right.seq);
|
|
111
|
+
for (const chunk of chunks)
|
|
112
|
+
applyChunk(activity, chunk);
|
|
113
|
+
}
|
|
114
|
+
return true;
|
|
115
|
+
}
|
|
116
|
+
_states() {
|
|
117
|
+
const states = new Map();
|
|
118
|
+
for (const [chatId, { runs }] of this._chats) {
|
|
119
|
+
const active = [...runs.values()];
|
|
120
|
+
if (active.length === 0)
|
|
121
|
+
continue;
|
|
122
|
+
states.set(chatId, activityState(active));
|
|
123
|
+
}
|
|
124
|
+
return states;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
function activityState(runs) {
|
|
128
|
+
if (runs.some((run) => run.pendingApprovals.size > 0))
|
|
129
|
+
return 'awaiting-approval';
|
|
130
|
+
const started = runs.filter((run) => run.started);
|
|
131
|
+
if (started.length === 0)
|
|
132
|
+
return 'queued';
|
|
133
|
+
return mediaState(latestRun(started)) ?? 'running';
|
|
134
|
+
}
|
|
135
|
+
function mediaState(run) {
|
|
136
|
+
const tool = latestTool(run.tools);
|
|
137
|
+
if (run.progress === 'generating') {
|
|
138
|
+
if (tool && AUDIO_TOOLS.has(tool.name))
|
|
139
|
+
return 'generating-audio';
|
|
140
|
+
return 'generating-image';
|
|
141
|
+
}
|
|
142
|
+
if (run.progress === 'transcribing')
|
|
143
|
+
return 'transcribing-audio';
|
|
144
|
+
if (tool && IMAGE_TOOLS.has(tool.name))
|
|
145
|
+
return 'generating-image';
|
|
146
|
+
if (tool && AUDIO_TOOLS.has(tool.name))
|
|
147
|
+
return 'generating-audio';
|
|
148
|
+
return null;
|
|
149
|
+
}
|
|
150
|
+
function applyChunk(activity, chunk) {
|
|
151
|
+
const runId = chunk.runId;
|
|
152
|
+
if (!runId)
|
|
153
|
+
return;
|
|
154
|
+
if (chunk.type === 'run-request') {
|
|
155
|
+
const existing = activity.runs.get(runId);
|
|
156
|
+
if (existing) {
|
|
157
|
+
existing.seen.add(chunk.id);
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
activity.runs.set(runId, createRun(chunk));
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
const run = activity.runs.get(runId);
|
|
164
|
+
if (!run)
|
|
165
|
+
return;
|
|
166
|
+
run.started = true;
|
|
167
|
+
if (run.seen.has(chunk.id)) {
|
|
168
|
+
applyMutableChunk(run, chunk);
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
run.seen.add(chunk.id);
|
|
172
|
+
if (chunk.type === 'run-status') {
|
|
173
|
+
const status = chunk.runStatus;
|
|
174
|
+
const state = status?.state ?? '';
|
|
175
|
+
if (TERMINAL_RUN_STATES.has(state)) {
|
|
176
|
+
activity.runs.delete(runId);
|
|
177
|
+
}
|
|
178
|
+
else if (state === 'executing' && chunk.seq > run.attemptSeq) {
|
|
179
|
+
run.attemptSeq = chunk.seq;
|
|
180
|
+
run.progress = status?.progress?.phase ?? null;
|
|
181
|
+
run.tools.length = 0;
|
|
182
|
+
}
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
if (chunk.type === 'approval-request') {
|
|
186
|
+
applyApproval(run, chunk);
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
if (chunk.seq <= run.attemptSeq)
|
|
190
|
+
return;
|
|
191
|
+
if (chunk.type === 'tool-call') {
|
|
192
|
+
const name = chunk.toolCall?.name;
|
|
193
|
+
if (name && MEDIA_TOOLS.has(name))
|
|
194
|
+
run.tools.push({ name, seq: chunk.seq });
|
|
195
|
+
}
|
|
196
|
+
else if (chunk.type === 'tool-result') {
|
|
197
|
+
settleTool(run.tools, chunk.toolResult?.name ?? '');
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
function createRun(request) {
|
|
201
|
+
return {
|
|
202
|
+
requestSeq: request.seq,
|
|
203
|
+
attemptSeq: request.seq,
|
|
204
|
+
started: false,
|
|
205
|
+
progress: null,
|
|
206
|
+
tools: [],
|
|
207
|
+
pendingApprovals: new Set(),
|
|
208
|
+
seen: new Set([request.id])
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
function applyMutableChunk(run, chunk) {
|
|
212
|
+
if (chunk.type === 'run-status' &&
|
|
213
|
+
chunk.runStatus?.state === 'executing' &&
|
|
214
|
+
chunk.seq === run.attemptSeq) {
|
|
215
|
+
run.progress = chunk.runStatus.progress?.phase ?? null;
|
|
216
|
+
}
|
|
217
|
+
else if (chunk.type === 'approval-request') {
|
|
218
|
+
applyApproval(run, chunk);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
function applyApproval(run, chunk) {
|
|
222
|
+
if (chunk.approvalRequest?.status === 'pending')
|
|
223
|
+
run.pendingApprovals.add(chunk.id);
|
|
224
|
+
else
|
|
225
|
+
run.pendingApprovals.delete(chunk.id);
|
|
226
|
+
}
|
|
227
|
+
async function activityChunks(snap, chatId) {
|
|
228
|
+
const groups = await Promise.all(ACTIVITY_CHUNK_TYPES.map((type) => findChunksOfType(snap, chatId, type)));
|
|
229
|
+
return groups.flat().sort((left, right) => left.seq - right.seq);
|
|
230
|
+
}
|
|
231
|
+
function settleTool(tools, name) {
|
|
232
|
+
for (let index = tools.length - 1; index >= 0; index -= 1) {
|
|
233
|
+
if (tools[index]?.name !== name)
|
|
234
|
+
continue;
|
|
235
|
+
tools.splice(index, 1);
|
|
236
|
+
return;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
function latestTool(tools) {
|
|
240
|
+
return tools.reduce((latest, candidate) => (!latest || candidate.seq > latest.seq ? candidate : latest), null);
|
|
241
|
+
}
|
|
242
|
+
function latestRun(runs) {
|
|
243
|
+
return runs.reduce((latest, run) => (run.requestSeq > latest.requestSeq ? run : latest));
|
|
244
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type HyperDB from 'hyperdb';
|
|
2
|
+
import type { QvacChatGroup } from '../../spec/mesh/hyperschema/types.d.ts';
|
|
3
|
+
import type { Mesh } from './mesh.ts';
|
|
4
|
+
export declare function byGroupOrder(a: QvacChatGroup, b: QvacChatGroup): number;
|
|
5
|
+
export declare function listChatGroupsIn(snap: HyperDB): Promise<QvacChatGroup[]>;
|
|
6
|
+
export declare function listChatGroups(store: Mesh): Promise<QvacChatGroup[]>;
|
|
7
|
+
export declare function getChatGroup(store: Mesh, id: string): Promise<QvacChatGroup | null>;
|
|
8
|
+
export declare function mustGetChatGroup(store: Mesh, id: string): Promise<QvacChatGroup>;
|
|
9
|
+
export declare function mustGetActiveChatGroup(store: Mesh, id: string): Promise<QvacChatGroup>;
|
|
10
|
+
export declare function createChatGroup(store: Mesh, input: {
|
|
11
|
+
name: string;
|
|
12
|
+
}): Promise<QvacChatGroup>;
|
|
13
|
+
export declare function renameChatGroup(store: Mesh, id: string, name: string): Promise<QvacChatGroup>;
|
|
14
|
+
export declare function deleteChatGroup(store: Mesh, id: string): Promise<QvacChatGroup>;
|