@qvac/core 0.4.1 → 0.6.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/CHANGELOG.md +262 -1
- package/README.md +1 -1
- package/dist-lib/lib/api/agents.js +3 -2
- package/dist-lib/lib/api/app-config.d.ts +1 -1
- package/dist-lib/lib/api/app-config.js +54 -15
- package/dist-lib/lib/api/attachments.d.ts +6 -5
- package/dist-lib/lib/api/attachments.js +4 -2
- package/dist-lib/lib/api/chat.d.ts +7 -3
- package/dist-lib/lib/api/chat.js +4 -4
- package/dist-lib/lib/api/chunks.js +3 -3
- package/dist-lib/lib/api/config.js +2 -2
- package/dist-lib/lib/api/current-mesh.d.ts +3 -4
- package/dist-lib/lib/api/current-mesh.js +9 -4
- package/dist-lib/lib/api/custom-models.d.ts +8 -1
- package/dist-lib/lib/api/custom-models.js +53 -16
- package/dist-lib/lib/api/devices.d.ts +14 -5
- package/dist-lib/lib/api/devices.js +14 -9
- package/dist-lib/lib/api/diagnostics.d.ts +1 -0
- package/dist-lib/lib/api/diagnostics.js +1 -1
- package/dist-lib/lib/api/effective-ctx-size.d.ts +6 -1
- package/dist-lib/lib/api/effective-ctx-size.js +5 -3
- package/dist-lib/lib/api/execution.js +9 -2
- package/dist-lib/lib/api/files.js +2 -1
- package/dist-lib/lib/api/index.d.ts +7 -1
- package/dist-lib/lib/api/index.js +101 -101
- package/dist-lib/lib/api/instrument.js +29 -20
- package/dist-lib/lib/api/knowledge.d.ts +6 -5
- package/dist-lib/lib/api/knowledge.js +8 -6
- package/dist-lib/lib/api/local-files.js +1 -1
- package/dist-lib/lib/api/logs.js +6 -3
- package/dist-lib/lib/api/members.js +22 -13
- package/dist-lib/lib/api/mesh.d.ts +7 -2
- package/dist-lib/lib/api/mesh.js +10 -5
- package/dist-lib/lib/api/model-download.js +1 -1
- package/dist-lib/lib/api/network.d.ts +1 -0
- package/dist-lib/lib/api/network.js +1 -1
- package/dist-lib/lib/api/notifications.js +23 -13
- package/dist-lib/lib/api/rag.d.ts +6 -1
- package/dist-lib/lib/api/rag.js +20 -11
- package/dist-lib/lib/api/range.d.ts +2 -2
- package/dist-lib/lib/api/sync.js +1 -1
- package/dist-lib/lib/api/tool-activity.js +7 -3
- package/dist-lib/lib/api/tool-configs.js +2 -4
- package/dist-lib/lib/api/upload-frames.d.ts +7 -8
- package/dist-lib/lib/api/upload-frames.js +2 -1
- package/dist-lib/lib/api/watchable.d.ts +6 -1
- package/dist-lib/lib/api/watchable.js +23 -14
- package/dist-lib/lib/assistant/fetch-body.js +4 -2
- package/dist-lib/lib/assistant/harness.d.ts +72 -24
- package/dist-lib/lib/assistant/harness.js +53 -15
- package/dist-lib/lib/assistant/history.d.ts +9 -7
- package/dist-lib/lib/assistant/history.js +77 -42
- package/dist-lib/lib/assistant/message.d.ts +5 -3
- package/dist-lib/lib/assistant/message.js +4 -2
- package/dist-lib/lib/assistant/skill-encode.d.ts +3 -1
- package/dist-lib/lib/assistant/skill-encode.js +52 -62
- package/dist-lib/lib/assistant-client.js +7 -4
- package/dist-lib/lib/assistant-tree.js +36 -11
- package/dist-lib/lib/assistant.d.ts +37 -12
- package/dist-lib/lib/assistant.js +977 -373
- package/dist-lib/lib/audio-format.d.ts +1 -1
- package/dist-lib/lib/audio-format.js +1 -1
- package/dist-lib/lib/chat-title.js +9 -4
- package/dist-lib/lib/client.js +3 -2
- package/dist-lib/lib/collabora/convert.d.ts +2 -2
- package/dist-lib/lib/collabora/convert.js +6 -3
- package/dist-lib/lib/collabora/entry.js +9 -5
- package/dist-lib/lib/collabora/protocol.d.ts +2 -2
- package/dist-lib/lib/collabora/protocol.js +14 -7
- package/dist-lib/lib/collabora/worker.js +14 -7
- package/dist-lib/lib/compaction.d.ts +5 -6
- package/dist-lib/lib/compaction.js +14 -7
- package/dist-lib/lib/constants.d.ts +2 -0
- package/dist-lib/lib/constants.js +4 -0
- package/dist-lib/lib/core/account-recovery.d.ts +4 -3
- package/dist-lib/lib/core/account-recovery.js +7 -4
- package/dist-lib/lib/core/agent.d.ts +0 -1
- package/dist-lib/lib/core/agent.js +18 -16
- package/dist-lib/lib/core/approval-rules.d.ts +7 -6
- package/dist-lib/lib/core/approval-rules.js +12 -6
- package/dist-lib/lib/core/archived-mesh.d.ts +7 -5
- package/dist-lib/lib/core/archived-mesh.js +25 -22
- package/dist-lib/lib/core/async-iterable.js +10 -5
- package/dist-lib/lib/core/attachment-link.d.ts +2 -2
- package/dist-lib/lib/core/audio-attachment.js +1 -1
- package/dist-lib/lib/core/blind-peers.d.ts +2 -2
- package/dist-lib/lib/core/chat-activity.d.ts +2 -2
- package/dist-lib/lib/core/chat-activity.js +42 -21
- package/dist-lib/lib/core/chat-group.d.ts +8 -6
- package/dist-lib/lib/core/chat-group.js +17 -10
- package/dist-lib/lib/core/chat-order.d.ts +11 -9
- package/dist-lib/lib/core/chat-order.js +1 -3
- package/dist-lib/lib/core/chat-search.d.ts +4 -4
- package/dist-lib/lib/core/chat-search.js +38 -24
- package/dist-lib/lib/core/chat.d.ts +20 -14
- package/dist-lib/lib/core/chat.js +42 -28
- package/dist-lib/lib/core/chunk.d.ts +20 -24
- package/dist-lib/lib/core/chunk.js +34 -22
- package/dist-lib/lib/core/collections.d.ts +69 -0
- package/dist-lib/lib/core/collections.js +69 -0
- package/dist-lib/lib/core/contract/activity.d.ts +8 -2
- package/dist-lib/lib/core/contract/activity.js +39 -11
- package/dist-lib/lib/core/contract/agents.js +3 -2
- package/dist-lib/lib/core/contract/approval-rules.js +1 -1
- package/dist-lib/lib/core/contract/attestations.js +1 -1
- package/dist-lib/lib/core/contract/chat-group.js +1 -1
- package/dist-lib/lib/core/contract/chat.js +1 -1
- package/dist-lib/lib/core/contract/chunks.js +16 -9
- package/dist-lib/lib/core/contract/compute.js +2 -1
- package/dist-lib/lib/core/contract/devices.js +10 -6
- package/dist-lib/lib/core/contract/grant-order.d.ts +5 -0
- package/dist-lib/lib/core/contract/grant-order.js +20 -0
- package/dist-lib/lib/core/contract/index.d.ts +1 -1
- package/dist-lib/lib/core/contract/index.js +27 -2
- package/dist-lib/lib/core/contract/indexing.js +3 -3
- package/dist-lib/lib/core/contract/invites.d.ts +16 -0
- package/dist-lib/lib/core/contract/invites.js +256 -0
- package/dist-lib/lib/core/contract/joined-meshes.js +22 -22
- package/dist-lib/lib/core/contract/knowledge.js +5 -5
- package/dist-lib/lib/core/contract/members.d.ts +15 -0
- package/dist-lib/lib/core/contract/members.js +116 -31
- package/dist-lib/lib/core/contract/mesh-kind.d.ts +6 -0
- package/dist-lib/lib/core/contract/mesh-kind.js +49 -0
- package/dist-lib/lib/core/contract/seal.js +1 -1
- package/dist-lib/lib/core/contract/seed-defaults.js +1 -3
- package/dist-lib/lib/core/contract/tool-activity.js +5 -5
- package/dist-lib/lib/core/contract/tool-configs.js +1 -2
- package/dist-lib/lib/core/contract/writers.d.ts +13 -0
- package/dist-lib/lib/core/contract/writers.js +181 -24
- package/dist-lib/lib/core/departures.js +16 -8
- package/dist-lib/lib/core/device-attestation.d.ts +5 -0
- package/dist-lib/lib/core/device-attestation.js +24 -0
- package/dist-lib/lib/core/device-invites.d.ts +2 -0
- package/dist-lib/lib/core/device-invites.js +29 -7
- package/dist-lib/lib/core/devices.d.ts +2 -1
- package/dist-lib/lib/core/devices.js +52 -2
- package/dist-lib/lib/core/document-attachment.d.ts +20 -11
- package/dist-lib/lib/core/document-attachment.js +10 -5
- package/dist-lib/lib/core/files/attachments.d.ts +2 -5
- package/dist-lib/lib/core/files/attachments.js +6 -3
- package/dist-lib/lib/core/files/index.d.ts +44 -52
- package/dist-lib/lib/core/files/index.js +142 -93
- package/dist-lib/lib/core/files/knowledge.d.ts +2 -5
- package/dist-lib/lib/core/files/local-index.js +9 -5
- package/dist-lib/lib/core/files/preview/image.d.ts +0 -1
- package/dist-lib/lib/core/files/preview/image.js +9 -6
- package/dist-lib/lib/core/files/preview/index.d.ts +8 -11
- package/dist-lib/lib/core/files/preview/index.js +20 -15
- package/dist-lib/lib/core/files/processing/claims.d.ts +6 -5
- package/dist-lib/lib/core/files/processing/claims.js +16 -8
- package/dist-lib/lib/core/files/processing/document.d.ts +21 -50
- package/dist-lib/lib/core/files/processing/index.d.ts +18 -13
- package/dist-lib/lib/core/files/processing/index.js +65 -37
- package/dist-lib/lib/core/files/processing/ownership.d.ts +8 -1
- package/dist-lib/lib/core/files/processing/ownership.js +1 -1
- package/dist-lib/lib/core/files/processing/protocol.d.ts +19 -19
- package/dist-lib/lib/core/files/processing/protocol.js +5 -5
- package/dist-lib/lib/core/files/processing/settle.d.ts +10 -7
- package/dist-lib/lib/core/files/processing/settle.js +22 -11
- package/dist-lib/lib/core/files/processing/source.js +14 -8
- package/dist-lib/lib/core/files/processing/state.d.ts +13 -11
- package/dist-lib/lib/core/files/processing/state.js +19 -12
- package/dist-lib/lib/core/files/rag/build.d.ts +2 -2
- package/dist-lib/lib/core/files/rag/build.js +2 -1
- package/dist-lib/lib/core/files/rag/document-types.d.ts +4 -6
- package/dist-lib/lib/core/files/rag/index.d.ts +10 -13
- package/dist-lib/lib/core/files/rag/index.js +3 -2
- package/dist-lib/lib/core/files/rag/load.d.ts +10 -9
- package/dist-lib/lib/core/files/rag/load.js +26 -13
- package/dist-lib/lib/core/files/rag/policy.js +2 -1
- package/dist-lib/lib/core/files/rag/produce.js +33 -19
- package/dist-lib/lib/core/files/rag/retrieval/full-text.d.ts +5 -3
- package/dist-lib/lib/core/files/rag/retrieval/full-text.js +30 -10
- package/dist-lib/lib/core/files/records/chunks.js +4 -2
- package/dist-lib/lib/core/files/records/knowledge.d.ts +10 -11
- package/dist-lib/lib/core/files/records/knowledge.js +9 -8
- package/dist-lib/lib/core/files/records/linkage.js +6 -3
- package/dist-lib/lib/core/files/records/output.d.ts +5 -4
- package/dist-lib/lib/core/files/records/output.js +8 -4
- package/dist-lib/lib/core/files/records/reclaim.js +41 -25
- package/dist-lib/lib/core/files/records/routing.d.ts +4 -6
- package/dist-lib/lib/core/files/records/routing.js +15 -8
- package/dist-lib/lib/core/files/records/source.d.ts +5 -4
- package/dist-lib/lib/core/files/records/source.js +20 -14
- package/dist-lib/lib/core/files/records/sweep.js +1 -3
- package/dist-lib/lib/core/files/store/blob.d.ts +10 -10
- package/dist-lib/lib/core/files/store/blob.js +25 -19
- package/dist-lib/lib/core/files/store/index.d.ts +1 -6
- package/dist-lib/lib/core/files/store/index.js +4 -4
- package/dist-lib/lib/core/files/store/inline.d.ts +2 -2
- package/dist-lib/lib/core/files/store/inline.js +6 -3
- package/dist-lib/lib/core/files/store/reference.d.ts +6 -9
- package/dist-lib/lib/core/files/store/reference.js +25 -17
- package/dist-lib/lib/core/files/store/server.d.ts +7 -6
- package/dist-lib/lib/core/files/store/server.js +22 -11
- package/dist-lib/lib/core/files/store/sweep.js +13 -7
- package/dist-lib/lib/core/files/upload-input.d.ts +4 -12
- package/dist-lib/lib/core/files/upload-input.js +10 -5
- package/dist-lib/lib/core/files/upload.d.ts +27 -24
- package/dist-lib/lib/core/files/upload.js +74 -51
- package/dist-lib/lib/core/fs-drives.js +4 -2
- package/dist-lib/lib/core/grant-expiry.d.ts +11 -0
- package/dist-lib/lib/core/grant-expiry.js +66 -0
- package/dist-lib/lib/core/handoff-channel.d.ts +2 -1
- package/dist-lib/lib/core/handoff-channel.js +36 -15
- package/dist-lib/lib/core/harness-loan.js +35 -17
- package/dist-lib/lib/core/helpers/index.d.ts +2 -1
- package/dist-lib/lib/core/helpers/index.js +11 -6
- package/dist-lib/lib/core/hosted-agents.js +19 -12
- package/dist-lib/lib/core/id.js +1 -1
- package/dist-lib/lib/core/identity.d.ts +1 -0
- package/dist-lib/lib/core/identity.js +11 -3
- package/dist-lib/lib/core/image/cache-sweep.d.ts +12 -10
- package/dist-lib/lib/core/image/cache-sweep.js +11 -6
- package/dist-lib/lib/core/image/normalize.d.ts +6 -0
- package/dist-lib/lib/core/image/normalize.js +12 -2
- package/dist-lib/lib/core/image/sniff.js +42 -21
- package/dist-lib/lib/core/inference-calls-receiver.js +7 -4
- package/dist-lib/lib/core/invite-grants.d.ts +20 -0
- package/dist-lib/lib/core/invite-grants.js +46 -0
- package/dist-lib/lib/core/invite.d.ts +3 -0
- package/dist-lib/lib/core/invite.js +6 -3
- package/dist-lib/lib/core/local/files.js +20 -19
- package/dist-lib/lib/core/local/index.d.ts +70 -45
- package/dist-lib/lib/core/local/index.js +157 -126
- package/dist-lib/lib/core/membership.d.ts +15 -2
- package/dist-lib/lib/core/membership.js +95 -20
- package/dist-lib/lib/core/mesh-seed-handoff.d.ts +12 -4
- package/dist-lib/lib/core/mesh-seed-handoff.js +23 -5
- package/dist-lib/lib/core/mesh.d.ts +57 -30
- package/dist-lib/lib/core/mesh.js +232 -78
- package/dist-lib/lib/core/migrations/agent-catalog.js +3 -2
- package/dist-lib/lib/core/migrations/agent-indexes.js +3 -3
- package/dist-lib/lib/core/migrations/device-indexes.d.ts +2 -0
- package/dist-lib/lib/core/migrations/device-indexes.js +7 -0
- package/dist-lib/lib/core/migrations/file-index.js +7 -4
- package/dist-lib/lib/core/migrations/index.d.ts +4 -3
- package/dist-lib/lib/core/migrations/index.js +3 -1
- package/dist-lib/lib/core/migrations/membership.js +9 -4
- package/dist-lib/lib/core/migrations/seal.js +3 -2
- package/dist-lib/lib/core/min-version.js +4 -2
- package/dist-lib/lib/core/next-frame.d.ts +5 -4
- package/dist-lib/lib/core/next-frame.js +6 -3
- package/dist-lib/lib/core/notification.d.ts +5 -1
- package/dist-lib/lib/core/notification.js +89 -77
- package/dist-lib/lib/core/ota-config.js +2 -1
- package/dist-lib/lib/core/pdf/rasterize.d.ts +18 -0
- package/dist-lib/lib/core/pdf/rasterize.js +57 -0
- package/dist-lib/lib/core/prompt-history.js +4 -2
- package/dist-lib/lib/core/range.d.ts +4 -4
- package/dist-lib/lib/core/range.js +12 -6
- package/dist-lib/lib/core/rank.d.ts +5 -4
- package/dist-lib/lib/core/rank.js +2 -1
- package/dist-lib/lib/core/send.d.ts +8 -5
- package/dist-lib/lib/core/send.js +9 -3
- package/dist-lib/lib/core/skill-overlay-receiver.js +7 -4
- package/dist-lib/lib/core/skill-secrets.js +16 -9
- package/dist-lib/lib/core/sync/chunks.js +2 -1
- package/dist-lib/lib/core/sync/devices.js +3 -1
- package/dist-lib/lib/core/sync/files.d.ts +2 -4
- package/dist-lib/lib/core/sync/files.js +28 -20
- package/dist-lib/lib/core/sync/index.d.ts +2 -5
- package/dist-lib/lib/core/sync/index.js +33 -17
- package/dist-lib/lib/core/sync-status.js +10 -7
- package/dist-lib/lib/core/system-info.js +4 -2
- package/dist-lib/lib/core/tool-activity.d.ts +4 -3
- package/dist-lib/lib/core/tool-activity.js +1 -1
- package/dist-lib/lib/core/tool-configs.js +12 -7
- package/dist-lib/lib/core.d.ts +107 -45
- package/dist-lib/lib/core.js +1765 -595
- package/dist-lib/lib/credential-pusher.d.ts +12 -17
- package/dist-lib/lib/credential-pusher.js +61 -42
- package/dist-lib/lib/custom-model-pusher.d.ts +7 -3
- package/dist-lib/lib/custom-model-pusher.js +15 -7
- package/dist-lib/lib/custom-model-task.d.ts +1 -0
- package/dist-lib/lib/custom-model-task.js +12 -0
- package/dist-lib/lib/deadline.js +4 -2
- package/dist-lib/lib/diagnostics.d.ts +1 -5
- package/dist-lib/lib/frame-readable.d.ts +3 -0
- package/dist-lib/lib/frame-readable.js +3 -0
- package/dist-lib/lib/fs-drive-bridge.js +24 -14
- package/dist-lib/lib/fs-grants.js +13 -8
- package/dist-lib/lib/guards.d.ts +3 -0
- package/dist-lib/lib/guards.js +9 -0
- package/dist-lib/lib/inference-calls.d.ts +28 -23
- package/dist-lib/lib/inference-calls.js +25 -13
- package/dist-lib/lib/integrations/mcp-providers.d.ts +2 -2
- package/dist-lib/lib/integrations/setup-routes.d.ts +2 -2
- package/dist-lib/lib/knowledge-search.d.ts +6 -5
- package/dist-lib/lib/knowledge-search.js +26 -18
- package/dist-lib/lib/kv-cache-reclaim.js +4 -2
- package/dist-lib/lib/kv-cache.js +8 -4
- package/dist-lib/lib/legacy-core-domain.d.ts +42 -42
- package/dist-lib/lib/log-buffer.js +2 -1
- package/dist-lib/lib/log.js +25 -15
- package/dist-lib/lib/mesh-scoped-engine.js +14 -4
- package/dist-lib/lib/model-catalog-revision.js +6 -3
- package/dist-lib/lib/model-clamp.js +6 -3
- package/dist-lib/lib/model-context.d.ts +8 -3
- package/dist-lib/lib/model-context.js +13 -5
- package/dist-lib/lib/model-download-status.js +4 -2
- package/dist-lib/lib/model-download.d.ts +12 -4
- package/dist-lib/lib/model-download.js +200 -103
- package/dist-lib/lib/model-idle-pusher.d.ts +10 -0
- package/dist-lib/lib/model-idle-pusher.js +41 -0
- package/dist-lib/lib/oauth/browser-connect.d.ts +10 -8
- package/dist-lib/lib/oauth/browser-connect.js +33 -20
- package/dist-lib/lib/oauth/client.d.ts +2 -2
- package/dist-lib/lib/oauth/flow-core.js +23 -9
- package/dist-lib/lib/oauth/flow.d.ts +1 -3
- package/dist-lib/lib/oauth/flow.js +9 -5
- package/dist-lib/lib/oauth/keys.d.ts +4 -4
- package/dist-lib/lib/oauth/keys.js +18 -12
- package/dist-lib/lib/oauth/loopback.d.ts +2 -2
- package/dist-lib/lib/oauth/loopback.js +147 -107
- package/dist-lib/lib/oauth/loopback.stub.d.ts +2 -2
- package/dist-lib/lib/oauth/loopback.stub.js +1 -1
- package/dist-lib/lib/oauth/pkce.d.ts +4 -2
- package/dist-lib/lib/oauth/pkce.js +10 -0
- package/dist-lib/lib/oauth/providers.js +5 -5
- package/dist-lib/lib/oauth/redirect-types.d.ts +12 -7
- package/dist-lib/lib/oauth/register.js +3 -2
- package/dist-lib/lib/oauth/registry.d.ts +2 -2
- package/dist-lib/lib/oauth/registry.js +2 -1
- package/dist-lib/lib/oauth/resolve.d.ts +30 -10
- package/dist-lib/lib/oauth/resolve.js +12 -6
- package/dist-lib/lib/oauth/token-exchange-core.d.ts +12 -4
- package/dist-lib/lib/oauth/token-exchange-core.js +1 -1
- package/dist-lib/lib/oauth/types.d.ts +12 -12
- package/dist-lib/lib/oauth.d.ts +4 -5
- package/dist-lib/lib/oauth.js +2 -3
- package/dist-lib/lib/reconnecting-watch.d.ts +1 -1
- package/dist-lib/lib/reconnecting-watch.js +6 -6
- package/dist-lib/lib/retry-budget.js +6 -3
- package/dist-lib/lib/run-notices.d.ts +2 -0
- package/dist-lib/lib/run-notices.js +7 -3
- package/dist-lib/lib/run-transcript.d.ts +2 -4
- package/dist-lib/lib/run-transcript.js +4 -2
- package/dist-lib/lib/skill-readiness.d.ts +1 -0
- package/dist-lib/lib/skill-readiness.js +17 -2
- package/dist-lib/lib/skill-types.d.ts +16 -16
- package/dist-lib/lib/suspend-lifecycle.d.ts +4 -4
- package/dist-lib/lib/suspend-lifecycle.js +10 -5
- package/dist-lib/lib/task.d.ts +5 -1
- package/dist-lib/lib/task.js +29 -12
- package/dist-lib/lib/unref.d.ts +3 -2
- package/dist-lib/lib/unref.js +2 -1
- package/dist-lib/lib/wav-duration.js +10 -5
- package/dist-lib/lib/write-queue.d.ts +5 -4
- package/dist-lib/lib/write-queue.js +2 -1
- package/dist-lib/schema/build.js +16 -8
- package/dist-lib/schema/config.d.ts +3 -4
- package/dist-lib/schema/config.js +1 -1
- package/dist-lib/schema/content.d.ts +18 -2
- package/dist-lib/schema/content.js +4 -1
- package/dist-lib/schema/engine.d.ts +3 -2
- package/dist-lib/schema/engine.js +192 -12
- package/dist-lib/schema/field-order.js +22 -11
- package/dist-lib/schema/indexes.d.ts +22 -0
- package/dist-lib/schema/{helpers.js → indexes.js} +19 -57
- package/dist-lib/schema/local.d.ts +3 -2
- package/dist-lib/schema/local.js +9 -3
- package/dist-lib/schema/media-kind.d.ts +8 -0
- package/dist-lib/schema/media-kind.js +52 -0
- package/dist-lib/schema/qvac.d.ts +12 -9
- package/dist-lib/schema/qvac.js +132 -7
- package/dist-lib/spec/bind.js +21 -0
- package/dist-lib/spec/calls.js +7 -0
- package/dist-lib/spec/capabilities.d.ts +18 -4
- package/dist-lib/spec/config/hyperconf/index.js +1 -1
- package/dist-lib/spec/hrpc/hrpc.json +93 -2
- package/dist-lib/spec/hrpc/index.js +89 -5
- package/dist-lib/spec/hrpc/messages.js +1568 -941
- package/dist-lib/spec/hyperschema/index.js +1568 -941
- package/dist-lib/spec/hyperschema/schema.json +531 -1
- package/dist-lib/spec/hyperschema/types.d.ts +145 -1
- package/dist-lib/spec/local/hyperdb/index.js +1 -1
- package/dist-lib/spec/local/hyperdb/messages.js +92 -20
- package/dist-lib/spec/local/hyperschema/index.js +47 -11
- package/dist-lib/spec/local/hyperschema/schema.json +32 -1
- package/dist-lib/spec/local/hyperschema/types.d.ts +7 -1
- package/dist-lib/spec/mesh/hyperdb/db.json +131 -3
- package/dist-lib/spec/mesh/hyperdb/index.js +548 -5
- package/dist-lib/spec/mesh/hyperdb/messages.js +2444 -893
- package/dist-lib/spec/mesh/hyperdispatch/dispatch.json +37 -1
- package/dist-lib/spec/mesh/hyperdispatch/index.js +104 -2
- package/dist-lib/spec/mesh/hyperdispatch/messages.js +1035 -11
- package/dist-lib/spec/mesh/hyperschema/index.js +1035 -11
- package/dist-lib/spec/mesh/hyperschema/schema.json +553 -1
- package/dist-lib/spec/mesh/hyperschema/types.d.ts +143 -1
- package/package.json +11 -5
- package/tui/app.mjs +2624 -986
- package/tui/boot.mjs +17 -46
- package/tui/index.mjs +10 -5
- package/tui/lib/boot-timing.mjs +8 -8
- package/tui/lib/busy-words.mjs +21 -22
- package/tui/lib/export.mjs +100 -32
- package/tui/lib/knowledge-command.mjs +64 -19
- package/tui/lib/knowledge-import.mjs +52 -18
- package/tui/lib/render.mjs +65 -33
- package/tui/lib/save-file.mjs +30 -13
- package/tui/lib/select.mjs +23 -5
- package/tui/lib/selection.mjs +6 -4
- package/tui/lib/setup.mjs +11 -19
- package/tui/lib/sidebar.mjs +23 -13
- package/tui/lib/splash.mjs +6 -7
- package/tui/lib/upload-frames.mjs +1 -2
- package/tui/lib/usage.mjs +13 -9
- package/tui/lib/wrap.mjs +35 -6
- package/tui/main.mjs +54 -78
- package/worker/assistant-sidecar.mjs +5 -10
- package/worker/stow-entry.mjs +7 -4
- package/dist-lib/lib/custom-model-source.d.ts +0 -15
- package/dist-lib/lib/custom-model-source.js +0 -46
- package/dist-lib/lib/oauth/common.d.ts +0 -38
- package/dist-lib/lib/oauth/common.js +0 -34
- package/dist-lib/schema/helpers.d.ts +0 -32
|
@@ -390,6 +390,8 @@ export type AssistantRunState = "executing" | "completed" | "failed" | "canceled
|
|
|
390
390
|
|
|
391
391
|
export type AssistantApprovalStatus = "pending" | "approved" | "denied"
|
|
392
392
|
|
|
393
|
+
export type AssistantEnhanceMode = "never" | "auto"
|
|
394
|
+
|
|
393
395
|
export interface AssistantResourceDescriptor {
|
|
394
396
|
kind: string
|
|
395
397
|
label: string
|
|
@@ -531,6 +533,9 @@ export interface AssistantChunkV1 {
|
|
|
531
533
|
rawCall?: string | null
|
|
532
534
|
compaction?: AssistantChunkContentCompaction | null
|
|
533
535
|
senderMemberId?: Buffer | null
|
|
536
|
+
capability?: string | null
|
|
537
|
+
capabilityArgs?: unknown | null
|
|
538
|
+
enhance?: AssistantEnhanceMode | null
|
|
534
539
|
}
|
|
535
540
|
|
|
536
541
|
export type AssistantChunk = (AssistantChunkV1 & { version?: number })
|
|
@@ -561,6 +566,9 @@ export interface AssistantAppendChunkRequest {
|
|
|
561
566
|
rawCall?: string | null
|
|
562
567
|
compaction?: AssistantChunkContentCompaction | null
|
|
563
568
|
meshId: string
|
|
569
|
+
capability?: string | null
|
|
570
|
+
capabilityArgs?: unknown | null
|
|
571
|
+
enhance?: AssistantEnhanceMode | null
|
|
564
572
|
}
|
|
565
573
|
|
|
566
574
|
export interface AssistantUpdateChunkRequest {
|
|
@@ -786,6 +794,9 @@ export interface AssistantRunAgentRequest {
|
|
|
786
794
|
agentId: string
|
|
787
795
|
parentRunId?: string | null
|
|
788
796
|
meshId: string
|
|
797
|
+
capability?: string | null
|
|
798
|
+
capabilityArgs?: unknown | null
|
|
799
|
+
enhance?: AssistantEnhanceMode | null
|
|
789
800
|
}
|
|
790
801
|
|
|
791
802
|
export interface AssistantSendMessageRequest {
|
|
@@ -795,6 +806,9 @@ export interface AssistantSendMessageRequest {
|
|
|
795
806
|
title?: string | null
|
|
796
807
|
parentRunId?: string | null
|
|
797
808
|
meshId: string
|
|
809
|
+
capability?: string | null
|
|
810
|
+
capabilityArgs?: unknown | null
|
|
811
|
+
enhance?: AssistantEnhanceMode | null
|
|
798
812
|
}
|
|
799
813
|
|
|
800
814
|
export interface AssistantSendMessageResponse {
|
|
@@ -957,6 +971,7 @@ export interface AssistantAppConfig {
|
|
|
957
971
|
onboardingCompleted?: boolean
|
|
958
972
|
delegation: AssistantDelegation
|
|
959
973
|
pausedModels?: string[] | null
|
|
974
|
+
releasedModels?: string[] | null
|
|
960
975
|
}
|
|
961
976
|
|
|
962
977
|
export interface AssistantAppConfigUpdate {
|
|
@@ -973,6 +988,11 @@ export interface AssistantSetModelPausedRequest {
|
|
|
973
988
|
paused?: boolean
|
|
974
989
|
}
|
|
975
990
|
|
|
991
|
+
export interface AssistantSetModelReleasedRequest {
|
|
992
|
+
name: string
|
|
993
|
+
released?: boolean
|
|
994
|
+
}
|
|
995
|
+
|
|
976
996
|
export type AssistantModelDownloadPhase = "queued" | "downloading" | "paused" | "error"
|
|
977
997
|
|
|
978
998
|
export interface AssistantModelDownload {
|
|
@@ -1013,6 +1033,10 @@ export interface AssistantCustomModel {
|
|
|
1013
1033
|
supportsVision?: boolean
|
|
1014
1034
|
expectedSize?: number
|
|
1015
1035
|
createdAt: number
|
|
1036
|
+
contextLength?: number
|
|
1037
|
+
taskType?: string | null
|
|
1038
|
+
license?: string | null
|
|
1039
|
+
label?: string | null
|
|
1016
1040
|
}
|
|
1017
1041
|
|
|
1018
1042
|
export interface AssistantCustomModelList {
|
|
@@ -1020,7 +1044,7 @@ export interface AssistantCustomModelList {
|
|
|
1020
1044
|
}
|
|
1021
1045
|
|
|
1022
1046
|
export interface AssistantAddCustomModelRequest {
|
|
1023
|
-
|
|
1047
|
+
label: string
|
|
1024
1048
|
src: string
|
|
1025
1049
|
mmprojSrc?: string | null
|
|
1026
1050
|
supportsTools?: boolean
|
|
@@ -1029,10 +1053,42 @@ export interface AssistantAddCustomModelRequest {
|
|
|
1029
1053
|
expectedSize?: number
|
|
1030
1054
|
}
|
|
1031
1055
|
|
|
1056
|
+
export interface AssistantAddCustomModelResponse {
|
|
1057
|
+
id: string
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1032
1060
|
export interface AssistantRemoveCustomModelRequest {
|
|
1033
1061
|
name: string
|
|
1034
1062
|
}
|
|
1035
1063
|
|
|
1064
|
+
export interface AssistantPreviewCustomModelRequest {
|
|
1065
|
+
src: string
|
|
1066
|
+
mmprojSrc?: string | null
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
export interface AssistantCustomModelSourceFile {
|
|
1070
|
+
src: string
|
|
1071
|
+
label: string
|
|
1072
|
+
sizeBytes?: number
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
export interface AssistantCustomModelPreview {
|
|
1076
|
+
ok?: boolean
|
|
1077
|
+
refusal?: string | null
|
|
1078
|
+
reason?: string | null
|
|
1079
|
+
src?: string | null
|
|
1080
|
+
files?: AssistantCustomModelSourceFile[] | null
|
|
1081
|
+
sizeBytes?: number
|
|
1082
|
+
contextLength?: number
|
|
1083
|
+
architecture?: string | null
|
|
1084
|
+
sizeLabel?: string | null
|
|
1085
|
+
taskType?: string | null
|
|
1086
|
+
license?: string | null
|
|
1087
|
+
fit?: string | null
|
|
1088
|
+
fitReasons?: string[] | null
|
|
1089
|
+
mmprojSrc?: string | null
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1036
1092
|
export type AssistantLogLevel = "debug" | "info" | "warn" | "error"
|
|
1037
1093
|
|
|
1038
1094
|
export type AssistantLogOrigin = "core" | "client"
|
|
@@ -1074,6 +1130,21 @@ export interface AssistantTranscribeResponse {
|
|
|
1074
1130
|
text: string
|
|
1075
1131
|
}
|
|
1076
1132
|
|
|
1133
|
+
export interface AssistantDetectLanguageRequest {
|
|
1134
|
+
text: string
|
|
1135
|
+
topK?: number
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
export interface AssistantDetectedLanguage {
|
|
1139
|
+
code: string
|
|
1140
|
+
language: string
|
|
1141
|
+
probability?: number
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
export interface AssistantDetectLanguageResponse {
|
|
1145
|
+
languages: AssistantDetectedLanguage[]
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1077
1148
|
export interface AssistantSpeakRequest {
|
|
1078
1149
|
text: string
|
|
1079
1150
|
model?: string | null
|
|
@@ -1484,6 +1555,8 @@ export interface AssistantMeshEntry {
|
|
|
1484
1555
|
shared?: boolean
|
|
1485
1556
|
sharedAt?: number
|
|
1486
1557
|
compute?: boolean
|
|
1558
|
+
reason?: string | null
|
|
1559
|
+
awaitingFrom?: string | null
|
|
1487
1560
|
}
|
|
1488
1561
|
|
|
1489
1562
|
export interface AssistantMeshLabelRequest {
|
|
@@ -1530,6 +1603,24 @@ export interface AssistantMeshSeedHandoffAck {
|
|
|
1530
1603
|
id: number
|
|
1531
1604
|
error?: string | null
|
|
1532
1605
|
seed?: Buffer | null
|
|
1606
|
+
admitted?: boolean
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1609
|
+
export interface AssistantMeshAdmissionRequest {
|
|
1610
|
+
meshKey: Buffer
|
|
1611
|
+
writerKey: Buffer
|
|
1612
|
+
joinedAt?: number
|
|
1613
|
+
deviceSignature?: Buffer | null
|
|
1614
|
+
memberSignature?: Buffer | null
|
|
1615
|
+
inviteToken?: Buffer | null
|
|
1616
|
+
name?: string | null
|
|
1617
|
+
capabilityProfile?: string | null
|
|
1618
|
+
recommendedModelName?: string | null
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
export interface AssistantMeshAdmissionHandoff {
|
|
1622
|
+
id: number
|
|
1623
|
+
request: AssistantMeshAdmissionRequest
|
|
1533
1624
|
}
|
|
1534
1625
|
|
|
1535
1626
|
export interface AssistantMemberConfig {
|
|
@@ -1633,6 +1724,40 @@ export interface AssistantInferenceCallsHandoffAck {
|
|
|
1633
1724
|
truncated?: boolean
|
|
1634
1725
|
}
|
|
1635
1726
|
|
|
1727
|
+
export interface AssistantMeshConfig {
|
|
1728
|
+
compute?: boolean
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
export interface AssistantCreateMeshRequest {
|
|
1732
|
+
config?: AssistantMeshConfig | null
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1735
|
+
export interface AssistantPreviewMeshInviteRequest {
|
|
1736
|
+
invite: string
|
|
1737
|
+
}
|
|
1738
|
+
|
|
1739
|
+
export interface AssistantPreviewMeshInviteResponse {
|
|
1740
|
+
memberInvite?: boolean
|
|
1741
|
+
inviterName?: string | null
|
|
1742
|
+
}
|
|
1743
|
+
|
|
1744
|
+
export interface AssistantLoadModelRequest {
|
|
1745
|
+
name: string
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1748
|
+
export interface AssistantLoadModelResponse {
|
|
1749
|
+
loaded?: boolean
|
|
1750
|
+
reason?: string | null
|
|
1751
|
+
}
|
|
1752
|
+
|
|
1753
|
+
export interface AssistantUnloadModelRequest {
|
|
1754
|
+
name: string
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
export interface AssistantUnloadModelResponse {
|
|
1758
|
+
unloaded?: boolean
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1636
1761
|
export interface SchemaTypes {
|
|
1637
1762
|
"@assistant/empty": AssistantEmpty
|
|
1638
1763
|
"@assistant/ok-response": AssistantOkResponse
|
|
@@ -1698,6 +1823,7 @@ export interface SchemaTypes {
|
|
|
1698
1823
|
"@assistant/chunk-type": AssistantChunkType
|
|
1699
1824
|
"@assistant/run-state": AssistantRunState
|
|
1700
1825
|
"@assistant/approval-status": AssistantApprovalStatus
|
|
1826
|
+
"@assistant/enhance-mode": AssistantEnhanceMode
|
|
1701
1827
|
"@assistant/resource-descriptor": AssistantResourceDescriptor
|
|
1702
1828
|
"@assistant/progress-phase": AssistantProgressPhase
|
|
1703
1829
|
"@assistant/run-progress": AssistantRunProgress
|
|
@@ -1795,6 +1921,7 @@ export interface SchemaTypes {
|
|
|
1795
1921
|
"@assistant/app-config": AssistantAppConfig
|
|
1796
1922
|
"@assistant/app-config-update": AssistantAppConfigUpdate
|
|
1797
1923
|
"@assistant/set-model-paused-request": AssistantSetModelPausedRequest
|
|
1924
|
+
"@assistant/set-model-released-request": AssistantSetModelReleasedRequest
|
|
1798
1925
|
"@assistant/model-download-phase": AssistantModelDownloadPhase
|
|
1799
1926
|
"@assistant/model-download": AssistantModelDownload
|
|
1800
1927
|
"@assistant/model-download-list": AssistantModelDownloadList
|
|
@@ -1803,7 +1930,11 @@ export interface SchemaTypes {
|
|
|
1803
1930
|
"@assistant/custom-model": AssistantCustomModel
|
|
1804
1931
|
"@assistant/custom-model-list": AssistantCustomModelList
|
|
1805
1932
|
"@assistant/add-custom-model-request": AssistantAddCustomModelRequest
|
|
1933
|
+
"@assistant/add-custom-model-response": AssistantAddCustomModelResponse
|
|
1806
1934
|
"@assistant/remove-custom-model-request": AssistantRemoveCustomModelRequest
|
|
1935
|
+
"@assistant/preview-custom-model-request": AssistantPreviewCustomModelRequest
|
|
1936
|
+
"@assistant/custom-model-source-file": AssistantCustomModelSourceFile
|
|
1937
|
+
"@assistant/custom-model-preview": AssistantCustomModelPreview
|
|
1807
1938
|
"@assistant/log-level": AssistantLogLevel
|
|
1808
1939
|
"@assistant/log-origin": AssistantLogOrigin
|
|
1809
1940
|
"@assistant/log-line": AssistantLogLine
|
|
@@ -1812,6 +1943,9 @@ export interface SchemaTypes {
|
|
|
1812
1943
|
"@assistant/write-log-request": AssistantWriteLogRequest
|
|
1813
1944
|
"@assistant/transcribe-request": AssistantTranscribeRequest
|
|
1814
1945
|
"@assistant/transcribe-response": AssistantTranscribeResponse
|
|
1946
|
+
"@assistant/detect-language-request": AssistantDetectLanguageRequest
|
|
1947
|
+
"@assistant/detected-language": AssistantDetectedLanguage
|
|
1948
|
+
"@assistant/detect-language-response": AssistantDetectLanguageResponse
|
|
1815
1949
|
"@assistant/speak-request": AssistantSpeakRequest
|
|
1816
1950
|
"@assistant/speak-response": AssistantSpeakResponse
|
|
1817
1951
|
"@assistant/skill-binary-requirement": AssistantSkillBinaryRequirement
|
|
@@ -1883,6 +2017,8 @@ export interface SchemaTypes {
|
|
|
1883
2017
|
"@assistant/mesh-seed-request": AssistantMeshSeedRequest
|
|
1884
2018
|
"@assistant/mesh-seed-handoff": AssistantMeshSeedHandoff
|
|
1885
2019
|
"@assistant/mesh-seed-handoff-ack": AssistantMeshSeedHandoffAck
|
|
2020
|
+
"@assistant/mesh-admission-request": AssistantMeshAdmissionRequest
|
|
2021
|
+
"@assistant/mesh-admission-handoff": AssistantMeshAdmissionHandoff
|
|
1886
2022
|
"@assistant/member-config": AssistantMemberConfig
|
|
1887
2023
|
"@assistant/update-member-request": AssistantUpdateMemberRequest
|
|
1888
2024
|
"@assistant/remove-member-request": AssistantRemoveMemberRequest
|
|
@@ -1901,4 +2037,12 @@ export interface SchemaTypes {
|
|
|
1901
2037
|
"@assistant/inference-calls-query": AssistantInferenceCallsQuery
|
|
1902
2038
|
"@assistant/inference-calls-handoff": AssistantInferenceCallsHandoff
|
|
1903
2039
|
"@assistant/inference-calls-handoff-ack": AssistantInferenceCallsHandoffAck
|
|
2040
|
+
"@assistant/mesh-config": AssistantMeshConfig
|
|
2041
|
+
"@assistant/create-mesh-request": AssistantCreateMeshRequest
|
|
2042
|
+
"@assistant/preview-mesh-invite-request": AssistantPreviewMeshInviteRequest
|
|
2043
|
+
"@assistant/preview-mesh-invite-response": AssistantPreviewMeshInviteResponse
|
|
2044
|
+
"@assistant/load-model-request": AssistantLoadModelRequest
|
|
2045
|
+
"@assistant/load-model-response": AssistantLoadModelResponse
|
|
2046
|
+
"@assistant/unload-model-request": AssistantUnloadModelRequest
|
|
2047
|
+
"@assistant/unload-model-response": AssistantUnloadModelResponse
|
|
1904
2048
|
}
|
|
@@ -6,7 +6,7 @@ import { version, getEncoding, setVersion } from './messages.js'
|
|
|
6
6
|
|
|
7
7
|
const versions = { schema: version, db: 6 }
|
|
8
8
|
|
|
9
|
-
import * as helpers0 from '../../../schema/
|
|
9
|
+
import * as helpers0 from '../../../schema/indexes.js'
|
|
10
10
|
|
|
11
11
|
// '@local/config' collection key
|
|
12
12
|
const collection0_key = new IndexEncoder([
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// This file is autogenerated by the hyperschema compiler
|
|
2
|
-
// Schema Version:
|
|
2
|
+
// Schema Version: 8
|
|
3
3
|
/* eslint-disable camelcase */
|
|
4
4
|
/* eslint-disable quotes */
|
|
5
5
|
/* eslint-disable space-before-function-paren */
|
|
6
6
|
|
|
7
7
|
import { c } from 'hyperschema/runtime'
|
|
8
8
|
|
|
9
|
-
const VERSION =
|
|
9
|
+
const VERSION = 8
|
|
10
10
|
|
|
11
11
|
// eslint-disable-next-line no-unused-vars
|
|
12
12
|
let version = VERSION
|
|
@@ -331,6 +331,8 @@ const encoding8 = {
|
|
|
331
331
|
|
|
332
332
|
// @local/app-config-v1.pausedModels
|
|
333
333
|
const encoding9_8 = c.array(c.string)
|
|
334
|
+
// @local/app-config-v1.releasedModels
|
|
335
|
+
const encoding9_9 = encoding9_8
|
|
334
336
|
|
|
335
337
|
// @local/app-config-v1
|
|
336
338
|
const encoding9 = {
|
|
@@ -343,7 +345,8 @@ const encoding9 = {
|
|
|
343
345
|
(m.lastModelName ? 16 : 0) |
|
|
344
346
|
(m.onboardingCompleted ? 32 : 0) |
|
|
345
347
|
(m.delegation ? 64 : 0) |
|
|
346
|
-
(m.pausedModels ? 128 : 0)
|
|
348
|
+
(m.pausedModels ? 128 : 0) |
|
|
349
|
+
((version >= 8 && m.releasedModels) ? 256 : 0)
|
|
347
350
|
|
|
348
351
|
c.string.preencode(state, m.id)
|
|
349
352
|
c.uint.preencode(state, flags)
|
|
@@ -354,6 +357,7 @@ const encoding9 = {
|
|
|
354
357
|
if (m.lastModelName) c.string.preencode(state, m.lastModelName)
|
|
355
358
|
if (m.delegation) c.json.preencode(state, m.delegation)
|
|
356
359
|
if (m.pausedModels) encoding9_8.preencode(state, m.pausedModels)
|
|
360
|
+
if (version >= 8 && m.releasedModels) encoding9_9.preencode(state, m.releasedModels)
|
|
357
361
|
},
|
|
358
362
|
encode(state, m) {
|
|
359
363
|
const flags =
|
|
@@ -364,7 +368,8 @@ const encoding9 = {
|
|
|
364
368
|
(m.lastModelName ? 16 : 0) |
|
|
365
369
|
(m.onboardingCompleted ? 32 : 0) |
|
|
366
370
|
(m.delegation ? 64 : 0) |
|
|
367
|
-
(m.pausedModels ? 128 : 0)
|
|
371
|
+
(m.pausedModels ? 128 : 0) |
|
|
372
|
+
((version >= 8 && m.releasedModels) ? 256 : 0)
|
|
368
373
|
|
|
369
374
|
c.string.encode(state, m.id)
|
|
370
375
|
c.uint.encode(state, flags)
|
|
@@ -375,6 +380,7 @@ const encoding9 = {
|
|
|
375
380
|
if (m.lastModelName) c.string.encode(state, m.lastModelName)
|
|
376
381
|
if (m.delegation) c.json.encode(state, m.delegation)
|
|
377
382
|
if (m.pausedModels) encoding9_8.encode(state, m.pausedModels)
|
|
383
|
+
if (version >= 8 && m.releasedModels) encoding9_9.encode(state, m.releasedModels)
|
|
378
384
|
},
|
|
379
385
|
decode(state) {
|
|
380
386
|
const r0 = c.string.decode(state)
|
|
@@ -390,7 +396,8 @@ const encoding9 = {
|
|
|
390
396
|
lastModelName: (flags & 16) !== 0 ? c.string.decode(state) : null,
|
|
391
397
|
onboardingCompleted: (flags & 32) !== 0,
|
|
392
398
|
delegation: (flags & 64) !== 0 ? c.json.decode(state) : null,
|
|
393
|
-
pausedModels: (flags & 128) !== 0 ? encoding9_8.decode(state) : null
|
|
399
|
+
pausedModels: (flags & 128) !== 0 ? encoding9_8.decode(state) : null,
|
|
400
|
+
releasedModels: (version >= 8 && (flags & 256) !== 0) ? encoding9_9.decode(state) : null
|
|
394
401
|
}
|
|
395
402
|
}
|
|
396
403
|
}
|
|
@@ -628,13 +635,28 @@ const encoding14 = {
|
|
|
628
635
|
// @local/custom-model-v1
|
|
629
636
|
const encoding15 = {
|
|
630
637
|
preencode(state, m) {
|
|
638
|
+
const flags =
|
|
639
|
+
((version >= 2 && m.mmprojSrc) ? 1 : 0) |
|
|
640
|
+
((version >= 2 && m.supportsTools) ? 2 : 0) |
|
|
641
|
+
((version >= 2 && m.supportsThinking) ? 4 : 0) |
|
|
642
|
+
((version >= 2 && m.supportsVision) ? 8 : 0) |
|
|
643
|
+
((version >= 2 && m.expectedSize) ? 16 : 0) |
|
|
644
|
+
((version >= 8 && m.contextLength) ? 32 : 0) |
|
|
645
|
+
((version >= 8 && m.taskType) ? 64 : 0) |
|
|
646
|
+
((version >= 8 && m.license) ? 128 : 0) |
|
|
647
|
+
((version >= 8 && m.label) ? 256 : 0)
|
|
648
|
+
|
|
631
649
|
c.string.preencode(state, m.name)
|
|
632
650
|
c.string.preencode(state, m.src)
|
|
633
|
-
state
|
|
651
|
+
c.uint.preencode(state, flags)
|
|
634
652
|
|
|
635
653
|
if (version >= 2 && m.mmprojSrc) c.string.preencode(state, m.mmprojSrc)
|
|
636
654
|
if (version >= 2 && m.expectedSize) c.uint.preencode(state, m.expectedSize)
|
|
637
655
|
c.uint.preencode(state, m.createdAt)
|
|
656
|
+
if (version >= 8 && m.contextLength) c.uint.preencode(state, m.contextLength)
|
|
657
|
+
if (version >= 8 && m.taskType) c.string.preencode(state, m.taskType)
|
|
658
|
+
if (version >= 8 && m.license) c.string.preencode(state, m.license)
|
|
659
|
+
if (version >= 8 && m.label) c.string.preencode(state, m.label)
|
|
638
660
|
},
|
|
639
661
|
encode(state, m) {
|
|
640
662
|
const flags =
|
|
@@ -642,7 +664,11 @@ const encoding15 = {
|
|
|
642
664
|
((version >= 2 && m.supportsTools) ? 2 : 0) |
|
|
643
665
|
((version >= 2 && m.supportsThinking) ? 4 : 0) |
|
|
644
666
|
((version >= 2 && m.supportsVision) ? 8 : 0) |
|
|
645
|
-
((version >= 2 && m.expectedSize) ? 16 : 0)
|
|
667
|
+
((version >= 2 && m.expectedSize) ? 16 : 0) |
|
|
668
|
+
((version >= 8 && m.contextLength) ? 32 : 0) |
|
|
669
|
+
((version >= 8 && m.taskType) ? 64 : 0) |
|
|
670
|
+
((version >= 8 && m.license) ? 128 : 0) |
|
|
671
|
+
((version >= 8 && m.label) ? 256 : 0)
|
|
646
672
|
|
|
647
673
|
c.string.encode(state, m.name)
|
|
648
674
|
c.string.encode(state, m.src)
|
|
@@ -651,6 +677,10 @@ const encoding15 = {
|
|
|
651
677
|
if (version >= 2 && m.mmprojSrc) c.string.encode(state, m.mmprojSrc)
|
|
652
678
|
if (version >= 2 && m.expectedSize) c.uint.encode(state, m.expectedSize)
|
|
653
679
|
c.uint.encode(state, m.createdAt)
|
|
680
|
+
if (version >= 8 && m.contextLength) c.uint.encode(state, m.contextLength)
|
|
681
|
+
if (version >= 8 && m.taskType) c.string.encode(state, m.taskType)
|
|
682
|
+
if (version >= 8 && m.license) c.string.encode(state, m.license)
|
|
683
|
+
if (version >= 8 && m.label) c.string.encode(state, m.label)
|
|
654
684
|
},
|
|
655
685
|
decode(state) {
|
|
656
686
|
const r0 = c.string.decode(state)
|
|
@@ -666,7 +696,11 @@ const encoding15 = {
|
|
|
666
696
|
supportsThinking: (version >= 2 && (flags & 4) !== 0),
|
|
667
697
|
supportsVision: (version >= 2 && (flags & 8) !== 0),
|
|
668
698
|
expectedSize: (version >= 2 && (flags & 16) !== 0) ? c.uint.decode(state) : 0,
|
|
669
|
-
createdAt: c.uint.decode(state)
|
|
699
|
+
createdAt: c.uint.decode(state),
|
|
700
|
+
contextLength: (version >= 8 && (flags & 32) !== 0) ? c.uint.decode(state) : 0,
|
|
701
|
+
taskType: (version >= 8 && (flags & 64) !== 0) ? c.string.decode(state) : null,
|
|
702
|
+
license: (version >= 8 && (flags & 128) !== 0) ? c.string.decode(state) : null,
|
|
703
|
+
label: (version >= 8 && (flags & 256) !== 0) ? c.string.decode(state) : null
|
|
670
704
|
}
|
|
671
705
|
}
|
|
672
706
|
}
|
|
@@ -1165,7 +1199,7 @@ const encoding29 = {
|
|
|
1165
1199
|
preencode(state, m) {
|
|
1166
1200
|
c.fixed32.preencode(state, m.key)
|
|
1167
1201
|
c.fixed32.preencode(state, m.seed)
|
|
1168
|
-
state.end++ // max flag is
|
|
1202
|
+
state.end++ // max flag is 32 so always one byte
|
|
1169
1203
|
|
|
1170
1204
|
if (version >= 5 && m.writerSeed) c.string.preencode(state, m.writerSeed)
|
|
1171
1205
|
if (version >= 5 && m.leftAt) c.uint.preencode(state, m.leftAt)
|
|
@@ -1177,7 +1211,8 @@ const encoding29 = {
|
|
|
1177
1211
|
((version >= 5 && m.leftAt) ? 2 : 0) |
|
|
1178
1212
|
((version >= 5 && m.wasHome) ? 4 : 0) |
|
|
1179
1213
|
((version >= 5 && m.migratedAt) ? 8 : 0) |
|
|
1180
|
-
((version >= 5 && m.compute) ? 16 : 0)
|
|
1214
|
+
((version >= 5 && m.compute) ? 16 : 0) |
|
|
1215
|
+
((version >= 7 && m.awaitingAdmission) ? 32 : 0)
|
|
1181
1216
|
|
|
1182
1217
|
c.fixed32.encode(state, m.key)
|
|
1183
1218
|
c.fixed32.encode(state, m.seed)
|
|
@@ -1200,7 +1235,8 @@ const encoding29 = {
|
|
|
1200
1235
|
leftAt: (version >= 5 && (flags & 2) !== 0) ? c.uint.decode(state) : 0,
|
|
1201
1236
|
wasHome: (version >= 5 && (flags & 4) !== 0),
|
|
1202
1237
|
migratedAt: (version >= 5 && (flags & 8) !== 0) ? c.uint.decode(state) : 0,
|
|
1203
|
-
compute: (version >= 5 && (flags & 16) !== 0)
|
|
1238
|
+
compute: (version >= 5 && (flags & 16) !== 0),
|
|
1239
|
+
awaitingAdmission: (version >= 7 && (flags & 32) !== 0)
|
|
1204
1240
|
}
|
|
1205
1241
|
}
|
|
1206
1242
|
}
|
|
@@ -1857,6 +1893,8 @@ const encoding46 = {
|
|
|
1857
1893
|
|
|
1858
1894
|
// @local/app-config-v1/hyperdb#4.pausedModels
|
|
1859
1895
|
const encoding47_8 = encoding9_8
|
|
1896
|
+
// @local/app-config-v1/hyperdb#4.releasedModels
|
|
1897
|
+
const encoding47_9 = encoding9_8
|
|
1860
1898
|
|
|
1861
1899
|
// @local/app-config-v1/hyperdb#4
|
|
1862
1900
|
const encoding47 = {
|
|
@@ -1869,7 +1907,8 @@ const encoding47 = {
|
|
|
1869
1907
|
(m.lastModelName ? 16 : 0) |
|
|
1870
1908
|
(m.onboardingCompleted ? 32 : 0) |
|
|
1871
1909
|
(m.delegation ? 64 : 0) |
|
|
1872
|
-
(m.pausedModels ? 128 : 0)
|
|
1910
|
+
(m.pausedModels ? 128 : 0) |
|
|
1911
|
+
((version >= 8 && m.releasedModels) ? 256 : 0)
|
|
1873
1912
|
|
|
1874
1913
|
c.uint.preencode(state, flags)
|
|
1875
1914
|
|
|
@@ -1879,6 +1918,7 @@ const encoding47 = {
|
|
|
1879
1918
|
if (m.lastModelName) c.string.preencode(state, m.lastModelName)
|
|
1880
1919
|
if (m.delegation) c.json.preencode(state, m.delegation)
|
|
1881
1920
|
if (m.pausedModels) encoding47_8.preencode(state, m.pausedModels)
|
|
1921
|
+
if (version >= 8 && m.releasedModels) encoding47_9.preencode(state, m.releasedModels)
|
|
1882
1922
|
},
|
|
1883
1923
|
encode(state, m) {
|
|
1884
1924
|
const flags =
|
|
@@ -1889,7 +1929,8 @@ const encoding47 = {
|
|
|
1889
1929
|
(m.lastModelName ? 16 : 0) |
|
|
1890
1930
|
(m.onboardingCompleted ? 32 : 0) |
|
|
1891
1931
|
(m.delegation ? 64 : 0) |
|
|
1892
|
-
(m.pausedModels ? 128 : 0)
|
|
1932
|
+
(m.pausedModels ? 128 : 0) |
|
|
1933
|
+
((version >= 8 && m.releasedModels) ? 256 : 0)
|
|
1893
1934
|
|
|
1894
1935
|
c.uint.encode(state, flags)
|
|
1895
1936
|
|
|
@@ -1899,6 +1940,7 @@ const encoding47 = {
|
|
|
1899
1940
|
if (m.lastModelName) c.string.encode(state, m.lastModelName)
|
|
1900
1941
|
if (m.delegation) c.json.encode(state, m.delegation)
|
|
1901
1942
|
if (m.pausedModels) encoding47_8.encode(state, m.pausedModels)
|
|
1943
|
+
if (version >= 8 && m.releasedModels) encoding47_9.encode(state, m.releasedModels)
|
|
1902
1944
|
},
|
|
1903
1945
|
decode(state) {
|
|
1904
1946
|
const flags = c.uint.decode(state)
|
|
@@ -1913,7 +1955,8 @@ const encoding47 = {
|
|
|
1913
1955
|
lastModelName: (flags & 16) !== 0 ? c.string.decode(state) : null,
|
|
1914
1956
|
onboardingCompleted: (flags & 32) !== 0,
|
|
1915
1957
|
delegation: (flags & 64) !== 0 ? c.json.decode(state) : null,
|
|
1916
|
-
pausedModels: (flags & 128) !== 0 ? encoding47_8.decode(state) : null
|
|
1958
|
+
pausedModels: (flags & 128) !== 0 ? encoding47_8.decode(state) : null,
|
|
1959
|
+
releasedModels: (version >= 8 && (flags & 256) !== 0) ? encoding47_9.decode(state) : null
|
|
1917
1960
|
}
|
|
1918
1961
|
}
|
|
1919
1962
|
}
|
|
@@ -2052,12 +2095,27 @@ const encoding50 = {
|
|
|
2052
2095
|
// @local/custom-model-v1/hyperdb#6
|
|
2053
2096
|
const encoding51 = {
|
|
2054
2097
|
preencode(state, m) {
|
|
2098
|
+
const flags =
|
|
2099
|
+
((version >= 2 && m.mmprojSrc) ? 1 : 0) |
|
|
2100
|
+
((version >= 2 && m.supportsTools) ? 2 : 0) |
|
|
2101
|
+
((version >= 2 && m.supportsThinking) ? 4 : 0) |
|
|
2102
|
+
((version >= 2 && m.supportsVision) ? 8 : 0) |
|
|
2103
|
+
((version >= 2 && m.expectedSize) ? 16 : 0) |
|
|
2104
|
+
((version >= 8 && m.contextLength) ? 32 : 0) |
|
|
2105
|
+
((version >= 8 && m.taskType) ? 64 : 0) |
|
|
2106
|
+
((version >= 8 && m.license) ? 128 : 0) |
|
|
2107
|
+
((version >= 8 && m.label) ? 256 : 0)
|
|
2108
|
+
|
|
2055
2109
|
c.string.preencode(state, m.src)
|
|
2056
|
-
state
|
|
2110
|
+
c.uint.preencode(state, flags)
|
|
2057
2111
|
|
|
2058
2112
|
if (version >= 2 && m.mmprojSrc) c.string.preencode(state, m.mmprojSrc)
|
|
2059
2113
|
if (version >= 2 && m.expectedSize) c.uint.preencode(state, m.expectedSize)
|
|
2060
2114
|
c.uint.preencode(state, m.createdAt)
|
|
2115
|
+
if (version >= 8 && m.contextLength) c.uint.preencode(state, m.contextLength)
|
|
2116
|
+
if (version >= 8 && m.taskType) c.string.preencode(state, m.taskType)
|
|
2117
|
+
if (version >= 8 && m.license) c.string.preencode(state, m.license)
|
|
2118
|
+
if (version >= 8 && m.label) c.string.preencode(state, m.label)
|
|
2061
2119
|
},
|
|
2062
2120
|
encode(state, m) {
|
|
2063
2121
|
const flags =
|
|
@@ -2065,7 +2123,11 @@ const encoding51 = {
|
|
|
2065
2123
|
((version >= 2 && m.supportsTools) ? 2 : 0) |
|
|
2066
2124
|
((version >= 2 && m.supportsThinking) ? 4 : 0) |
|
|
2067
2125
|
((version >= 2 && m.supportsVision) ? 8 : 0) |
|
|
2068
|
-
((version >= 2 && m.expectedSize) ? 16 : 0)
|
|
2126
|
+
((version >= 2 && m.expectedSize) ? 16 : 0) |
|
|
2127
|
+
((version >= 8 && m.contextLength) ? 32 : 0) |
|
|
2128
|
+
((version >= 8 && m.taskType) ? 64 : 0) |
|
|
2129
|
+
((version >= 8 && m.license) ? 128 : 0) |
|
|
2130
|
+
((version >= 8 && m.label) ? 256 : 0)
|
|
2069
2131
|
|
|
2070
2132
|
c.string.encode(state, m.src)
|
|
2071
2133
|
c.uint.encode(state, flags)
|
|
@@ -2073,6 +2135,10 @@ const encoding51 = {
|
|
|
2073
2135
|
if (version >= 2 && m.mmprojSrc) c.string.encode(state, m.mmprojSrc)
|
|
2074
2136
|
if (version >= 2 && m.expectedSize) c.uint.encode(state, m.expectedSize)
|
|
2075
2137
|
c.uint.encode(state, m.createdAt)
|
|
2138
|
+
if (version >= 8 && m.contextLength) c.uint.encode(state, m.contextLength)
|
|
2139
|
+
if (version >= 8 && m.taskType) c.string.encode(state, m.taskType)
|
|
2140
|
+
if (version >= 8 && m.license) c.string.encode(state, m.license)
|
|
2141
|
+
if (version >= 8 && m.label) c.string.encode(state, m.label)
|
|
2076
2142
|
},
|
|
2077
2143
|
decode(state) {
|
|
2078
2144
|
const r1 = c.string.decode(state)
|
|
@@ -2087,7 +2153,11 @@ const encoding51 = {
|
|
|
2087
2153
|
supportsThinking: (version >= 2 && (flags & 4) !== 0),
|
|
2088
2154
|
supportsVision: (version >= 2 && (flags & 8) !== 0),
|
|
2089
2155
|
expectedSize: (version >= 2 && (flags & 16) !== 0) ? c.uint.decode(state) : 0,
|
|
2090
|
-
createdAt: c.uint.decode(state)
|
|
2156
|
+
createdAt: c.uint.decode(state),
|
|
2157
|
+
contextLength: (version >= 8 && (flags & 32) !== 0) ? c.uint.decode(state) : 0,
|
|
2158
|
+
taskType: (version >= 8 && (flags & 64) !== 0) ? c.string.decode(state) : null,
|
|
2159
|
+
license: (version >= 8 && (flags & 128) !== 0) ? c.string.decode(state) : null,
|
|
2160
|
+
label: (version >= 8 && (flags & 256) !== 0) ? c.string.decode(state) : null
|
|
2091
2161
|
}
|
|
2092
2162
|
}
|
|
2093
2163
|
}
|
|
@@ -2567,7 +2637,7 @@ const encoding64 = {
|
|
|
2567
2637
|
const encoding65 = {
|
|
2568
2638
|
preencode(state, m) {
|
|
2569
2639
|
c.fixed32.preencode(state, m.seed)
|
|
2570
|
-
state.end++ // max flag is
|
|
2640
|
+
state.end++ // max flag is 32 so always one byte
|
|
2571
2641
|
|
|
2572
2642
|
if (version >= 5 && m.writerSeed) c.string.preencode(state, m.writerSeed)
|
|
2573
2643
|
if (version >= 5 && m.leftAt) c.uint.preencode(state, m.leftAt)
|
|
@@ -2579,7 +2649,8 @@ const encoding65 = {
|
|
|
2579
2649
|
((version >= 5 && m.leftAt) ? 2 : 0) |
|
|
2580
2650
|
((version >= 5 && m.wasHome) ? 4 : 0) |
|
|
2581
2651
|
((version >= 5 && m.migratedAt) ? 8 : 0) |
|
|
2582
|
-
((version >= 5 && m.compute) ? 16 : 0)
|
|
2652
|
+
((version >= 5 && m.compute) ? 16 : 0) |
|
|
2653
|
+
((version >= 7 && m.awaitingAdmission) ? 32 : 0)
|
|
2583
2654
|
|
|
2584
2655
|
c.fixed32.encode(state, m.seed)
|
|
2585
2656
|
c.uint.encode(state, flags)
|
|
@@ -2600,7 +2671,8 @@ const encoding65 = {
|
|
|
2600
2671
|
leftAt: (version >= 5 && (flags & 2) !== 0) ? c.uint.decode(state) : 0,
|
|
2601
2672
|
wasHome: (version >= 5 && (flags & 4) !== 0),
|
|
2602
2673
|
migratedAt: (version >= 5 && (flags & 8) !== 0) ? c.uint.decode(state) : 0,
|
|
2603
|
-
compute: (version >= 5 && (flags & 16) !== 0)
|
|
2674
|
+
compute: (version >= 5 && (flags & 16) !== 0),
|
|
2675
|
+
awaitingAdmission: (version >= 7 && (flags & 32) !== 0)
|
|
2604
2676
|
}
|
|
2605
2677
|
}
|
|
2606
2678
|
}
|