@qvac/core 1.0.0-rc.7 → 1.0.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 +241 -3
- package/README.md +1 -0
- package/dist-lib/lib/api/attachments.d.ts +1 -1
- package/dist-lib/lib/api/attachments.js +11 -0
- package/dist-lib/lib/api/chunks.d.ts +4 -2
- package/dist-lib/lib/api/chunks.js +6 -3
- package/dist-lib/lib/api/device-routes.d.ts +6 -1
- package/dist-lib/lib/api/device-routes.js +20 -1
- package/dist-lib/lib/api/devices.js +6 -18
- package/dist-lib/lib/api/execution.d.ts +6 -2
- package/dist-lib/lib/api/execution.js +29 -3
- package/dist-lib/lib/api/host-run-log.d.ts +7 -1
- package/dist-lib/lib/api/host-run-log.js +3 -1
- package/dist-lib/lib/api/index.d.ts +3 -1
- package/dist-lib/lib/api/index.js +17 -6
- package/dist-lib/lib/api/members.js +13 -29
- package/dist-lib/lib/api/mesh.d.ts +2 -1
- package/dist-lib/lib/api/projects.d.ts +1 -1
- package/dist-lib/lib/api/projects.js +9 -5
- package/dist-lib/lib/api/rag-label.d.ts +4 -0
- package/dist-lib/lib/api/rag-label.js +21 -0
- package/dist-lib/lib/api/rag-lexical.d.ts +22 -0
- package/dist-lib/lib/api/rag-lexical.js +1058 -0
- package/dist-lib/lib/api/rag-manifest.d.ts +13 -0
- package/dist-lib/lib/api/rag-manifest.js +46 -0
- package/dist-lib/lib/api/rag-outline.d.ts +36 -0
- package/dist-lib/lib/api/rag-outline.js +426 -0
- package/dist-lib/lib/api/rag-plugin.d.ts +20 -0
- package/dist-lib/lib/api/rag-plugin.js +70 -0
- package/dist-lib/lib/api/rag-synthesis.d.ts +7 -0
- package/dist-lib/lib/api/rag-synthesis.js +102 -0
- package/dist-lib/lib/api/rag-targets.d.ts +23 -0
- package/dist-lib/lib/api/rag-targets.js +215 -0
- package/dist-lib/lib/api/rag-window.d.ts +5 -0
- package/dist-lib/lib/api/rag-window.js +46 -0
- package/dist-lib/lib/api/rag.d.ts +3 -2
- package/dist-lib/lib/api/rag.js +421 -184
- package/dist-lib/lib/api/served.js +8 -14
- package/dist-lib/lib/api/workspace.d.ts +8 -1
- package/dist-lib/lib/api/workspace.js +27 -13
- package/dist-lib/lib/assistant/harness.d.ts +9 -1
- package/dist-lib/lib/assistant/history.d.ts +11 -2
- package/dist-lib/lib/assistant/history.js +74 -4
- package/dist-lib/lib/assistant/media-round.d.ts +61 -0
- package/dist-lib/lib/assistant/media-round.js +111 -0
- package/dist-lib/lib/assistant/message.d.ts +7 -0
- package/dist-lib/lib/assistant/model-round.d.ts +19 -1
- package/dist-lib/lib/assistant/model-round.js +163 -28
- package/dist-lib/lib/assistant/pdf-pages.d.ts +16 -1
- package/dist-lib/lib/assistant/pdf-pages.js +67 -3
- package/dist-lib/lib/assistant/round-host.d.ts +22 -0
- package/dist-lib/lib/assistant/round-host.js +142 -8
- package/dist-lib/lib/assistant/upload.d.ts +12 -0
- package/dist-lib/lib/assistant/upload.js +36 -0
- package/dist-lib/lib/assistant-client.d.ts +1 -0
- package/dist-lib/lib/assistant-client.js +40 -19
- package/dist-lib/lib/assistant-tree.d.ts +2 -0
- package/dist-lib/lib/assistant-tree.js +48 -1
- package/dist-lib/lib/assistant.d.ts +18 -1
- package/dist-lib/lib/assistant.js +484 -95
- package/dist-lib/lib/client.d.ts +1 -0
- package/dist-lib/lib/client.js +4 -1
- package/dist-lib/lib/compaction.js +2 -2
- package/dist-lib/lib/core/agent.js +12 -45
- package/dist-lib/lib/core/approval-rules.js +1 -8
- package/dist-lib/lib/core/archived-mesh.d.ts +2 -1
- package/dist-lib/lib/core/archived-mesh.js +12 -8
- package/dist-lib/lib/core/chat-copy.d.ts +18 -3
- package/dist-lib/lib/core/chat-copy.js +74 -25
- package/dist-lib/lib/core/chat-fork.js +15 -6
- package/dist-lib/lib/core/chat-group.js +16 -24
- package/dist-lib/lib/core/chat-move.d.ts +9 -0
- package/dist-lib/lib/core/chat-move.js +94 -3
- package/dist-lib/lib/core/chat-order.js +12 -18
- package/dist-lib/lib/core/chat.js +38 -31
- package/dist-lib/lib/core/chunk.d.ts +2 -2
- package/dist-lib/lib/core/chunk.js +18 -25
- package/dist-lib/lib/core/collections.d.ts +2 -0
- package/dist-lib/lib/core/collections.js +2 -0
- package/dist-lib/lib/core/contract/activity.d.ts +4 -0
- package/dist-lib/lib/core/contract/activity.js +34 -4
- package/dist-lib/lib/core/contract/chat-group.d.ts +1 -0
- package/dist-lib/lib/core/contract/chat-group.js +21 -1
- package/dist-lib/lib/core/contract/chat.d.ts +9 -0
- package/dist-lib/lib/core/contract/chat.js +127 -5
- package/dist-lib/lib/core/contract/chunks.d.ts +1 -0
- package/dist-lib/lib/core/contract/chunks.js +37 -6
- package/dist-lib/lib/core/contract/features.d.ts +21 -0
- package/dist-lib/lib/core/contract/features.js +22 -0
- package/dist-lib/lib/core/contract/index.js +2 -0
- package/dist-lib/lib/core/contract/indexing.js +4 -2
- package/dist-lib/lib/core/contract/knowledge.js +5 -4
- package/dist-lib/lib/core/contract/members.js +16 -10
- package/dist-lib/lib/core/contract/mesh-kind.d.ts +1 -0
- package/dist-lib/lib/core/contract/mesh-kind.js +3 -1
- package/dist-lib/lib/core/contract/projects.d.ts +5 -0
- package/dist-lib/lib/core/contract/projects.js +13 -5
- package/dist-lib/lib/core/contract/roles.js +32 -4
- package/dist-lib/lib/core/contract/run-requests.d.ts +1 -0
- package/dist-lib/lib/core/contract/run-requests.js +35 -2
- package/dist-lib/lib/core/contract/seed-defaults.js +2 -2
- package/dist-lib/lib/core/contract/tool-configs.js +3 -2
- package/dist-lib/lib/core/contract/workspace.d.ts +2 -0
- package/dist-lib/lib/core/contract/workspace.js +40 -7
- package/dist-lib/lib/core/contract/writers.js +2 -2
- package/dist-lib/lib/core/departures.d.ts +3 -1
- package/dist-lib/lib/core/departures.js +3 -0
- package/dist-lib/lib/core/devices.js +1 -8
- package/dist-lib/lib/core/files/attachments.d.ts +2 -0
- package/dist-lib/lib/core/files/attachments.js +19 -1
- package/dist-lib/lib/core/files/index.d.ts +20 -4
- package/dist-lib/lib/core/files/index.js +132 -21
- package/dist-lib/lib/core/files/processing/document.d.ts +4 -0
- package/dist-lib/lib/core/files/processing/document.js +7 -0
- package/dist-lib/lib/core/files/processing/index.d.ts +13 -0
- package/dist-lib/lib/core/files/processing/index.js +144 -12
- package/dist-lib/lib/core/files/processing/protocol.js +13 -34
- package/dist-lib/lib/core/files/processing/state.d.ts +2 -0
- package/dist-lib/lib/core/files/rag/build.d.ts +19 -2
- package/dist-lib/lib/core/files/rag/build.js +123 -19
- package/dist-lib/lib/core/files/rag/failure.js +2 -1
- package/dist-lib/lib/core/files/rag/index.d.ts +11 -3
- package/dist-lib/lib/core/files/rag/index.js +13 -1
- package/dist-lib/lib/core/files/rag/load.d.ts +6 -3
- package/dist-lib/lib/core/files/rag/load.js +27 -6
- package/dist-lib/lib/core/files/rag/plugin-index.d.ts +32 -0
- package/dist-lib/lib/core/files/rag/plugin-index.js +127 -0
- package/dist-lib/lib/core/files/rag/produce.d.ts +5 -3
- package/dist-lib/lib/core/files/rag/produce.js +104 -16
- package/dist-lib/lib/core/files/rag/retrieval/full-text.d.ts +3 -1
- package/dist-lib/lib/core/files/rag/retrieval/full-text.js +62 -13
- package/dist-lib/lib/core/files/rag/text-cache.d.ts +28 -0
- package/dist-lib/lib/core/files/rag/text-cache.js +141 -0
- package/dist-lib/lib/core/files/records/knowledge.d.ts +1 -3
- package/dist-lib/lib/core/files/records/knowledge.js +7 -40
- package/dist-lib/lib/core/files/records/reclaim.js +5 -10
- package/dist-lib/lib/core/files/upload.js +68 -41
- package/dist-lib/lib/core/fs-drives.js +14 -26
- package/dist-lib/lib/core/invite.d.ts +1 -0
- package/dist-lib/lib/core/invite.js +4 -2
- package/dist-lib/lib/core/local/files.d.ts +1 -1
- package/dist-lib/lib/core/local/files.js +5 -5
- package/dist-lib/lib/core/local/index.d.ts +13 -6
- package/dist-lib/lib/core/local/index.js +103 -69
- package/dist-lib/lib/core/local/run-logs.d.ts +1 -1
- package/dist-lib/lib/core/local/run-logs.js +5 -5
- package/dist-lib/lib/core/mesh-processor.d.ts +19 -0
- package/dist-lib/lib/core/mesh-processor.js +87 -0
- package/dist-lib/lib/core/mesh.d.ts +48 -5
- package/dist-lib/lib/core/mesh.js +318 -129
- package/dist-lib/lib/core/migrations/agent-catalog.js +2 -8
- package/dist-lib/lib/core/migrations/agent-tools-scope.js +5 -11
- package/dist-lib/lib/core/migrations/workspace-from-0-21/index.d.ts +88 -0
- package/dist-lib/lib/core/migrations/workspace-from-0-21/index.js +731 -0
- package/dist-lib/lib/core/migrations/writer-links.d.ts +2 -0
- package/dist-lib/lib/core/migrations/writer-links.js +32 -0
- package/dist-lib/lib/core/project-keys.d.ts +6 -0
- package/dist-lib/lib/core/project-keys.js +11 -0
- package/dist-lib/lib/core/public-mesh.d.ts +3 -0
- package/dist-lib/lib/core/public-mesh.js +10 -8
- package/dist-lib/lib/core/run-requests.d.ts +3 -0
- package/dist-lib/lib/core/run-requests.js +21 -1
- package/dist-lib/lib/core/skill-availability.d.ts +33 -0
- package/dist-lib/lib/core/skill-availability.js +67 -0
- package/dist-lib/lib/core/sync/background.d.ts +0 -1
- package/dist-lib/lib/core/sync/background.js +2 -1
- package/dist-lib/lib/core/sync/changed.d.ts +4 -2
- package/dist-lib/lib/core/sync/changed.js +1 -1
- package/dist-lib/lib/core/sync/index.js +52 -10
- package/dist-lib/lib/core/sync/view-updates.d.ts +18 -12
- package/dist-lib/lib/core/sync/view-updates.js +82 -91
- package/dist-lib/lib/core/sync-status.js +97 -41
- package/dist-lib/lib/core/tool-activity.js +6 -12
- package/dist-lib/lib/core/tool-configs.js +17 -29
- package/dist-lib/lib/core/upgrade-summary.d.ts +19 -0
- package/dist-lib/lib/core/upgrade-summary.js +67 -0
- package/dist-lib/lib/core/view-read.d.ts +4 -0
- package/dist-lib/lib/core/view-read.js +23 -0
- package/dist-lib/lib/core/workspace-upgrade.d.ts +7 -0
- package/dist-lib/lib/core/workspace-upgrade.js +27 -16
- package/dist-lib/lib/core.d.ts +45 -42
- package/dist-lib/lib/core.js +675 -640
- package/dist-lib/lib/errors.d.ts +24 -0
- package/dist-lib/lib/errors.js +24 -0
- package/dist-lib/lib/llm-model-names.d.ts +1 -1
- package/dist-lib/lib/llm-model-names.js +1 -1
- package/dist-lib/lib/mesh-scoped-engine.js +4 -0
- package/dist-lib/lib/model-context.js +1 -2
- package/dist-lib/lib/model-download.d.ts +6 -1
- package/dist-lib/lib/model-download.js +16 -3
- package/dist-lib/lib/oauth/resolve.js +29 -8
- package/dist-lib/lib/oauth/token-exchange-core.js +11 -0
- package/dist-lib/lib/probe-rounds.d.ts +7 -2
- package/dist-lib/lib/probe-rounds.js +6 -1
- package/dist-lib/lib/run-transcript.d.ts +4 -1
- package/dist-lib/lib/run-transcript.js +15 -6
- package/dist-lib/schema/engine.js +83 -6
- package/dist-lib/schema/indexes.d.ts +3 -0
- package/dist-lib/schema/indexes.js +5 -0
- package/dist-lib/schema/local.js +11 -2
- package/dist-lib/schema/qvac.js +49 -5
- package/dist-lib/spec/bind.js +34 -0
- package/dist-lib/spec/calls.js +5 -0
- package/dist-lib/spec/capabilities.d.ts +17 -0
- package/dist-lib/spec/hrpc/hrpc.json +65 -0
- package/dist-lib/spec/hrpc/index.js +68 -5
- package/dist-lib/spec/hrpc/messages.js +260 -23
- package/dist-lib/spec/hyperschema/index.js +260 -23
- package/dist-lib/spec/hyperschema/schema.json +181 -0
- package/dist-lib/spec/hyperschema/types.d.ts +48 -0
- package/dist-lib/spec/local/hyperdb/messages.js +270 -224
- package/dist-lib/spec/local/hyperschema/index.js +73 -38
- package/dist-lib/spec/local/hyperschema/schema.json +31 -0
- package/dist-lib/spec/local/hyperschema/types.d.ts +8 -0
- package/dist-lib/spec/mesh/hyperdb/db.json +39 -2
- package/dist-lib/spec/mesh/hyperdb/index.js +120 -3
- package/dist-lib/spec/mesh/hyperdb/messages.js +1328 -838
- package/dist-lib/spec/mesh/hyperdispatch/dispatch.json +30 -0
- package/dist-lib/spec/mesh/hyperdispatch/index.js +86 -1
- package/dist-lib/spec/mesh/hyperdispatch/messages.js +682 -287
- package/dist-lib/spec/mesh/hyperschema/index.js +682 -287
- package/dist-lib/spec/mesh/hyperschema/schema.json +201 -0
- package/dist-lib/spec/mesh/hyperschema/types.d.ts +52 -0
- package/package.json +82 -71
- package/tui/README.md +52 -0
- package/tui/app.mjs +69 -12
- package/tui/boot.mjs +27 -6
- package/tui/cli.mjs +93 -0
- package/tui/index.mjs +2 -87
- package/tui/lib/attachment-files.mjs +82 -0
- package/tui/lib/reopen-meshes.mjs +15 -0
- package/tui/lib/updater.mjs +86 -0
- package/tui/main.mjs +29 -57
- package/worker/assistant-sidecar.mjs +10 -3
- package/worker/stow-entry.mjs +3 -52
- package/dist-lib/lib/core/chat-project.d.ts +0 -2
- package/dist-lib/lib/core/chat-project.js +0 -15
|
@@ -847,6 +847,17 @@
|
|
|
847
847
|
"name": "runTakenAt",
|
|
848
848
|
"type": "uint",
|
|
849
849
|
"version": 19
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
"name": "runMovedFrom",
|
|
853
|
+
"type": "fixed32",
|
|
854
|
+
"version": 19
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
"name": "unavailableSkills",
|
|
858
|
+
"array": true,
|
|
859
|
+
"type": "string",
|
|
860
|
+
"version": 19
|
|
850
861
|
}
|
|
851
862
|
]
|
|
852
863
|
},
|
|
@@ -1094,6 +1105,12 @@
|
|
|
1094
1105
|
"name": "runnerDeviceId",
|
|
1095
1106
|
"type": "fixed32",
|
|
1096
1107
|
"version": 19
|
|
1108
|
+
},
|
|
1109
|
+
{
|
|
1110
|
+
"name": "unavailableSkills",
|
|
1111
|
+
"array": true,
|
|
1112
|
+
"type": "string",
|
|
1113
|
+
"version": 19
|
|
1097
1114
|
}
|
|
1098
1115
|
]
|
|
1099
1116
|
},
|
|
@@ -2332,6 +2349,12 @@
|
|
|
2332
2349
|
"array": true,
|
|
2333
2350
|
"type": "@qvac/invite-public-head",
|
|
2334
2351
|
"version": 19
|
|
2352
|
+
},
|
|
2353
|
+
{
|
|
2354
|
+
"name": "inviterHeads",
|
|
2355
|
+
"array": true,
|
|
2356
|
+
"type": "@qvac/autobee-head",
|
|
2357
|
+
"version": 19
|
|
2335
2358
|
}
|
|
2336
2359
|
]
|
|
2337
2360
|
},
|
|
@@ -3265,6 +3288,11 @@
|
|
|
3265
3288
|
"name": "revoked",
|
|
3266
3289
|
"type": "bool",
|
|
3267
3290
|
"version": 5
|
|
3291
|
+
},
|
|
3292
|
+
{
|
|
3293
|
+
"name": "linked",
|
|
3294
|
+
"type": "bool",
|
|
3295
|
+
"version": 19
|
|
3268
3296
|
}
|
|
3269
3297
|
]
|
|
3270
3298
|
},
|
|
@@ -4979,6 +5007,33 @@
|
|
|
4979
5007
|
}
|
|
4980
5008
|
]
|
|
4981
5009
|
},
|
|
5010
|
+
{
|
|
5011
|
+
"name": "reindex-writers-operation-v1",
|
|
5012
|
+
"namespace": "qvac",
|
|
5013
|
+
"compact": false,
|
|
5014
|
+
"flagsPosition": -1,
|
|
5015
|
+
"fields": [
|
|
5016
|
+
{
|
|
5017
|
+
"name": "writerKeys",
|
|
5018
|
+
"required": true,
|
|
5019
|
+
"array": true,
|
|
5020
|
+
"type": "fixed32",
|
|
5021
|
+
"version": 19
|
|
5022
|
+
}
|
|
5023
|
+
]
|
|
5024
|
+
},
|
|
5025
|
+
{
|
|
5026
|
+
"name": "reindex-writers-operation",
|
|
5027
|
+
"namespace": "qvac",
|
|
5028
|
+
"framed": false,
|
|
5029
|
+
"versions": [
|
|
5030
|
+
{
|
|
5031
|
+
"type": "@qvac/reindex-writers-operation-v1",
|
|
5032
|
+
"map": null,
|
|
5033
|
+
"version": 1
|
|
5034
|
+
}
|
|
5035
|
+
]
|
|
5036
|
+
},
|
|
4982
5037
|
{
|
|
4983
5038
|
"name": "mesh-rules-v1",
|
|
4984
5039
|
"namespace": "qvac",
|
|
@@ -5102,6 +5157,12 @@
|
|
|
5102
5157
|
"array": true,
|
|
5103
5158
|
"type": "fixed32",
|
|
5104
5159
|
"version": 19
|
|
5160
|
+
},
|
|
5161
|
+
{
|
|
5162
|
+
"name": "upgradeWriterKeys",
|
|
5163
|
+
"array": true,
|
|
5164
|
+
"type": "fixed32",
|
|
5165
|
+
"version": 19
|
|
5105
5166
|
}
|
|
5106
5167
|
]
|
|
5107
5168
|
},
|
|
@@ -6284,6 +6345,146 @@
|
|
|
6284
6345
|
"version": 1
|
|
6285
6346
|
}
|
|
6286
6347
|
]
|
|
6348
|
+
},
|
|
6349
|
+
{
|
|
6350
|
+
"name": "patch-chat-operation-v1",
|
|
6351
|
+
"namespace": "qvac",
|
|
6352
|
+
"compact": false,
|
|
6353
|
+
"flagsPosition": 1,
|
|
6354
|
+
"fields": [
|
|
6355
|
+
{
|
|
6356
|
+
"name": "chat",
|
|
6357
|
+
"required": true,
|
|
6358
|
+
"type": "@qvac/chat",
|
|
6359
|
+
"version": 19
|
|
6360
|
+
},
|
|
6361
|
+
{
|
|
6362
|
+
"name": "fields",
|
|
6363
|
+
"array": true,
|
|
6364
|
+
"type": "string",
|
|
6365
|
+
"version": 19
|
|
6366
|
+
}
|
|
6367
|
+
]
|
|
6368
|
+
},
|
|
6369
|
+
{
|
|
6370
|
+
"name": "patch-chat-operation",
|
|
6371
|
+
"namespace": "qvac",
|
|
6372
|
+
"framed": false,
|
|
6373
|
+
"versions": [
|
|
6374
|
+
{
|
|
6375
|
+
"type": "@qvac/patch-chat-operation-v1",
|
|
6376
|
+
"map": null,
|
|
6377
|
+
"version": 1
|
|
6378
|
+
}
|
|
6379
|
+
]
|
|
6380
|
+
},
|
|
6381
|
+
{
|
|
6382
|
+
"name": "patch-chat-group-operation-v1",
|
|
6383
|
+
"namespace": "qvac",
|
|
6384
|
+
"compact": false,
|
|
6385
|
+
"flagsPosition": 1,
|
|
6386
|
+
"fields": [
|
|
6387
|
+
{
|
|
6388
|
+
"name": "group",
|
|
6389
|
+
"required": true,
|
|
6390
|
+
"type": "@qvac/chat-group",
|
|
6391
|
+
"version": 19
|
|
6392
|
+
},
|
|
6393
|
+
{
|
|
6394
|
+
"name": "fields",
|
|
6395
|
+
"array": true,
|
|
6396
|
+
"type": "string",
|
|
6397
|
+
"version": 19
|
|
6398
|
+
}
|
|
6399
|
+
]
|
|
6400
|
+
},
|
|
6401
|
+
{
|
|
6402
|
+
"name": "patch-chat-group-operation",
|
|
6403
|
+
"namespace": "qvac",
|
|
6404
|
+
"framed": false,
|
|
6405
|
+
"versions": [
|
|
6406
|
+
{
|
|
6407
|
+
"type": "@qvac/patch-chat-group-operation-v1",
|
|
6408
|
+
"map": null,
|
|
6409
|
+
"version": 1
|
|
6410
|
+
}
|
|
6411
|
+
]
|
|
6412
|
+
},
|
|
6413
|
+
{
|
|
6414
|
+
"name": "moved-out-chat-v1",
|
|
6415
|
+
"namespace": "qvac",
|
|
6416
|
+
"compact": false,
|
|
6417
|
+
"flagsPosition": -1,
|
|
6418
|
+
"fields": [
|
|
6419
|
+
{
|
|
6420
|
+
"name": "chatId",
|
|
6421
|
+
"required": true,
|
|
6422
|
+
"type": "string",
|
|
6423
|
+
"version": 19
|
|
6424
|
+
}
|
|
6425
|
+
]
|
|
6426
|
+
},
|
|
6427
|
+
{
|
|
6428
|
+
"name": "moved-out-chat",
|
|
6429
|
+
"namespace": "qvac",
|
|
6430
|
+
"framed": false,
|
|
6431
|
+
"versions": [
|
|
6432
|
+
{
|
|
6433
|
+
"type": "@qvac/moved-out-chat-v1",
|
|
6434
|
+
"map": null,
|
|
6435
|
+
"version": 1
|
|
6436
|
+
}
|
|
6437
|
+
]
|
|
6438
|
+
},
|
|
6439
|
+
{
|
|
6440
|
+
"name": "remove-chat-copy-operation-v1",
|
|
6441
|
+
"namespace": "qvac",
|
|
6442
|
+
"compact": false,
|
|
6443
|
+
"flagsPosition": 2,
|
|
6444
|
+
"fields": [
|
|
6445
|
+
{
|
|
6446
|
+
"name": "chatId",
|
|
6447
|
+
"required": true,
|
|
6448
|
+
"type": "string",
|
|
6449
|
+
"version": 19
|
|
6450
|
+
},
|
|
6451
|
+
{
|
|
6452
|
+
"name": "updatedAt",
|
|
6453
|
+
"required": true,
|
|
6454
|
+
"type": "uint",
|
|
6455
|
+
"version": 19
|
|
6456
|
+
},
|
|
6457
|
+
{
|
|
6458
|
+
"name": "chunkIds",
|
|
6459
|
+
"array": true,
|
|
6460
|
+
"type": "string",
|
|
6461
|
+
"version": 19
|
|
6462
|
+
},
|
|
6463
|
+
{
|
|
6464
|
+
"name": "knowledgeIds",
|
|
6465
|
+
"array": true,
|
|
6466
|
+
"type": "string",
|
|
6467
|
+
"version": 19
|
|
6468
|
+
},
|
|
6469
|
+
{
|
|
6470
|
+
"name": "toolActivityIds",
|
|
6471
|
+
"array": true,
|
|
6472
|
+
"type": "string",
|
|
6473
|
+
"version": 19
|
|
6474
|
+
}
|
|
6475
|
+
]
|
|
6476
|
+
},
|
|
6477
|
+
{
|
|
6478
|
+
"name": "remove-chat-copy-operation",
|
|
6479
|
+
"namespace": "qvac",
|
|
6480
|
+
"framed": false,
|
|
6481
|
+
"versions": [
|
|
6482
|
+
{
|
|
6483
|
+
"type": "@qvac/remove-chat-copy-operation-v1",
|
|
6484
|
+
"map": null,
|
|
6485
|
+
"version": 1
|
|
6486
|
+
}
|
|
6487
|
+
]
|
|
6287
6488
|
}
|
|
6288
6489
|
]
|
|
6289
6490
|
}
|
|
@@ -155,6 +155,8 @@ export interface QvacChunkV1 {
|
|
|
155
155
|
runnerDeviceId?: Buffer | null
|
|
156
156
|
runTakenBy?: Buffer | null
|
|
157
157
|
runTakenAt?: number
|
|
158
|
+
runMovedFrom?: Buffer | null
|
|
159
|
+
unavailableSkills?: string[] | null
|
|
158
160
|
}
|
|
159
161
|
|
|
160
162
|
export type QvacChunk = (QvacChunkV1 & { version?: number })
|
|
@@ -205,6 +207,7 @@ export interface QvacAppendChunkOperationV1 {
|
|
|
205
207
|
roundReset?: QvacChunkContentRoundReset | null
|
|
206
208
|
agentSwitch?: QvacChunkContentAgentSwitch | null
|
|
207
209
|
runnerDeviceId?: Buffer | null
|
|
210
|
+
unavailableSkills?: string[] | null
|
|
208
211
|
}
|
|
209
212
|
|
|
210
213
|
export type QvacAppendChunkOperation = (QvacAppendChunkOperationV1 & { version?: number })
|
|
@@ -439,6 +442,7 @@ export interface QvacMeshInviteV1 {
|
|
|
439
442
|
workspace?: boolean
|
|
440
443
|
workspaceName?: string | null
|
|
441
444
|
publicHeads?: QvacInvitePublicHead[] | null
|
|
445
|
+
inviterHeads?: QvacAutobeeHead[] | null
|
|
442
446
|
}
|
|
443
447
|
|
|
444
448
|
export type QvacMeshInvite = (QvacMeshInviteV1 & { version?: number })
|
|
@@ -619,6 +623,7 @@ export interface QvacWriterActivityV1 {
|
|
|
619
623
|
clock: number
|
|
620
624
|
deviceId: Buffer
|
|
621
625
|
revoked?: boolean
|
|
626
|
+
linked?: boolean
|
|
622
627
|
}
|
|
623
628
|
|
|
624
629
|
export type QvacWriterActivity = (QvacWriterActivityV1 & { version?: number })
|
|
@@ -985,6 +990,12 @@ export interface QvacIndexingStatusV2 {
|
|
|
985
990
|
error?: string | null
|
|
986
991
|
}
|
|
987
992
|
|
|
993
|
+
export interface QvacReindexWritersOperationV1 {
|
|
994
|
+
writerKeys: Buffer[]
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
export type QvacReindexWritersOperation = (QvacReindexWritersOperationV1 & { version?: number })
|
|
998
|
+
|
|
988
999
|
export interface QvacMeshRulesV1 {
|
|
989
1000
|
id: string
|
|
990
1001
|
rules: number
|
|
@@ -1011,6 +1022,7 @@ export interface QvacWorkspaceV1 {
|
|
|
1011
1022
|
icon?: string | null
|
|
1012
1023
|
updatedAt: number
|
|
1013
1024
|
upgradeMemberIds?: Buffer[] | null
|
|
1025
|
+
upgradeWriterKeys?: Buffer[] | null
|
|
1014
1026
|
}
|
|
1015
1027
|
|
|
1016
1028
|
export type QvacWorkspace = (QvacWorkspaceV1 & { version?: number })
|
|
@@ -1262,6 +1274,36 @@ export interface QvacProjectDeviceSealV1 {
|
|
|
1262
1274
|
|
|
1263
1275
|
export type QvacProjectDeviceSeal = (QvacProjectDeviceSealV1 & { version?: number })
|
|
1264
1276
|
|
|
1277
|
+
export interface QvacPatchChatOperationV1 {
|
|
1278
|
+
chat: QvacChat
|
|
1279
|
+
fields?: string[] | null
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
export type QvacPatchChatOperation = (QvacPatchChatOperationV1 & { version?: number })
|
|
1283
|
+
|
|
1284
|
+
export interface QvacPatchChatGroupOperationV1 {
|
|
1285
|
+
group: QvacChatGroup
|
|
1286
|
+
fields?: string[] | null
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
export type QvacPatchChatGroupOperation = (QvacPatchChatGroupOperationV1 & { version?: number })
|
|
1290
|
+
|
|
1291
|
+
export interface QvacMovedOutChatV1 {
|
|
1292
|
+
chatId: string
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
export type QvacMovedOutChat = (QvacMovedOutChatV1 & { version?: number })
|
|
1296
|
+
|
|
1297
|
+
export interface QvacRemoveChatCopyOperationV1 {
|
|
1298
|
+
chatId: string
|
|
1299
|
+
updatedAt: number
|
|
1300
|
+
chunkIds?: string[] | null
|
|
1301
|
+
knowledgeIds?: string[] | null
|
|
1302
|
+
toolActivityIds?: string[] | null
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
export type QvacRemoveChatCopyOperation = (QvacRemoveChatCopyOperationV1 & { version?: number })
|
|
1306
|
+
|
|
1265
1307
|
export interface SchemaTypes {
|
|
1266
1308
|
"@qvac/chunk-type": QvacChunkType
|
|
1267
1309
|
"@qvac/run-state": QvacRunState
|
|
@@ -1459,6 +1501,8 @@ export interface SchemaTypes {
|
|
|
1459
1501
|
"@qvac/invite-public-head": QvacInvitePublicHead
|
|
1460
1502
|
"@qvac/knowledge-v2": QvacKnowledgeV2
|
|
1461
1503
|
"@qvac/indexing-status-v2": QvacIndexingStatusV2
|
|
1504
|
+
"@qvac/reindex-writers-operation-v1": QvacReindexWritersOperationV1
|
|
1505
|
+
"@qvac/reindex-writers-operation": QvacReindexWritersOperation
|
|
1462
1506
|
"@qvac/mesh-rules-v1": QvacMeshRulesV1
|
|
1463
1507
|
"@qvac/mesh-rules": QvacMeshRules
|
|
1464
1508
|
"@qvac/raise-mesh-rules-operation-v1": QvacRaiseMeshRulesOperationV1
|
|
@@ -1527,4 +1571,12 @@ export interface SchemaTypes {
|
|
|
1527
1571
|
"@qvac/project-member-seal": QvacProjectMemberSeal
|
|
1528
1572
|
"@qvac/project-device-seal-v1": QvacProjectDeviceSealV1
|
|
1529
1573
|
"@qvac/project-device-seal": QvacProjectDeviceSeal
|
|
1574
|
+
"@qvac/patch-chat-operation-v1": QvacPatchChatOperationV1
|
|
1575
|
+
"@qvac/patch-chat-operation": QvacPatchChatOperation
|
|
1576
|
+
"@qvac/patch-chat-group-operation-v1": QvacPatchChatGroupOperationV1
|
|
1577
|
+
"@qvac/patch-chat-group-operation": QvacPatchChatGroupOperation
|
|
1578
|
+
"@qvac/moved-out-chat-v1": QvacMovedOutChatV1
|
|
1579
|
+
"@qvac/moved-out-chat": QvacMovedOutChat
|
|
1580
|
+
"@qvac/remove-chat-copy-operation-v1": QvacRemoveChatCopyOperationV1
|
|
1581
|
+
"@qvac/remove-chat-copy-operation": QvacRemoveChatCopyOperation
|
|
1530
1582
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qvac/core",
|
|
3
|
-
"version": "1.0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"upgrade": "pear://56h5xtm7xjjpkbj1ubbuffcjastpxri11n6wr6zy8ikzmyq7ctey",
|
|
4
5
|
"type": "module",
|
|
5
6
|
"description": "Peer-to-peer AI across your devices",
|
|
6
7
|
"engines": {
|
|
7
|
-
"bare": ">=1.
|
|
8
|
+
"bare": ">=1.35.0"
|
|
8
9
|
},
|
|
9
10
|
"exports": {
|
|
10
11
|
".": {
|
|
@@ -165,6 +166,7 @@
|
|
|
165
166
|
"vault-skill-secrets": "bare examples/vault-skill-secrets.mjs",
|
|
166
167
|
"model-downloads-held": "bare examples/model-downloads-held.mjs",
|
|
167
168
|
"blind-peering": "bare examples/blind-peering.mjs",
|
|
169
|
+
"run-continue-here": "bare examples/run-continue-here.mjs",
|
|
168
170
|
"agent-folders": "bare examples/agent-folders.mjs",
|
|
169
171
|
"chunks-delta-watch": "bare examples/chunks-delta-watch.mjs",
|
|
170
172
|
"mesh-pair-and-migrate": "bare examples/mesh-pair-and-migrate.mjs",
|
|
@@ -176,20 +178,24 @@
|
|
|
176
178
|
"chat-read-marker": "bare examples/chat-read-marker.mjs",
|
|
177
179
|
"chat-move": "bare examples/chat-move.mjs",
|
|
178
180
|
"chat-fork": "bare examples/chat-fork.mjs",
|
|
181
|
+
"chat-skill-availability": "bare examples/chat-skill-availability.mjs",
|
|
179
182
|
"custom-models": "bare examples/custom-models.mjs",
|
|
180
183
|
"mesh-recover-account": "bare examples/mesh-recover-account.mjs",
|
|
181
184
|
"mesh-user-names": "bare examples/mesh-user-names.mjs",
|
|
182
185
|
"test": "npm run test:bare && npm run bench:rag:test && npm run bench:chat-speed:test",
|
|
183
|
-
"test:bare": "QVAC_NO_SKILL_BIN_PROBE=1 QVAC_TEST=1
|
|
186
|
+
"test:bare": "QVAC_NO_SKILL_BIN_PROBE=1 QVAC_TEST=1 node scripts/test-shard.mjs -j ${BRITTLE_JOBS:-2} --timeout ${BRITTLE_TIMEOUT:-180000} 'test/*.ts' 'test/{api,app,basic,host,rag}/**/*.ts' 'test/tui/**/!(helpers).ts'",
|
|
184
187
|
"test:model": "QVAC_TEST_MODELS=1 npm run test:bare",
|
|
185
188
|
"test:model-lane": "QVAC_NO_SKILL_BIN_PROBE=1 QVAC_TEST=1 brittle-jobs -j 1 --timeout 7200000 'test/model/*.ts'",
|
|
186
189
|
"test:scale": "QVAC_NO_SKILL_BIN_PROBE=1 QVAC_TEST=1 QVAC_SCALE_REPORT=${QVAC_SCALE_REPORT:-scale-report.txt} brittle-jobs -j 1 --timeout ${BRITTLE_TIMEOUT:-600000} --idle-timeout ${BRITTLE_IDLE_TIMEOUT:-300000} 'test/scale/*.ts'",
|
|
190
|
+
"test:e2e": "QVAC_NO_SKILL_BIN_PROBE=1 QVAC_TEST=1 bare test/e2e/index.ts",
|
|
191
|
+
"test:e2e:upgrade": "QVAC_NO_SKILL_BIN_PROBE=1 QVAC_TEST=1 bare test/e2e/upgrade.ts",
|
|
187
192
|
"format": "prettier . --write",
|
|
188
193
|
"lint": "prettier . --check && lunte && tsc --noEmit",
|
|
189
194
|
"build:bundle": "node scripts/build-bundle.mjs",
|
|
190
195
|
"prepack": "node scripts/build-lib.mjs",
|
|
191
196
|
"build:lib": "node scripts/build-lib.mjs",
|
|
192
|
-
"provenance": "node scripts/provenance.mjs --out docs/provenance/$npm_package_version.json"
|
|
197
|
+
"provenance": "node scripts/provenance.mjs --out docs/provenance/$npm_package_version.json",
|
|
198
|
+
"make": "node scripts/make.mjs"
|
|
193
199
|
},
|
|
194
200
|
"prettier": "prettier-config-holepunch",
|
|
195
201
|
"imports": {
|
|
@@ -252,80 +258,86 @@
|
|
|
252
258
|
},
|
|
253
259
|
"dependencies": {
|
|
254
260
|
"@qvac/error": "^0.2.0",
|
|
255
|
-
"@qvac/harness": "1.0.0-rc.
|
|
261
|
+
"@qvac/harness": "1.0.0-rc.23",
|
|
256
262
|
"@qvac/logging": "^0.2.0",
|
|
257
|
-
"@qvac/skills": "^0.
|
|
263
|
+
"@qvac/skills": "^0.5.0",
|
|
258
264
|
"asenion": "^0.1.0",
|
|
259
|
-
"autobee": "^2.
|
|
265
|
+
"autobee": "^2.13.6",
|
|
260
266
|
"b4a": "^1.9.0",
|
|
261
267
|
"bare-abort-controller": "^1.1.2",
|
|
262
|
-
"bare-buffer": "^3.
|
|
263
|
-
"bare-cpu-info": "^0.1.
|
|
264
|
-
"bare-crypto": "^1.15.
|
|
265
|
-
"bare-events": "^2.9.
|
|
266
|
-
"bare-fetch": "^3.
|
|
267
|
-
"bare-ffmpeg": "^1.
|
|
268
|
-
"bare-file-logger": "^1.2.
|
|
269
|
-
"bare-fs": "^4.
|
|
270
|
-
"bare-gpu-info": "^0.1.
|
|
271
|
-
"bare-http1": "4.6.
|
|
272
|
-
"bare-media": "^2.
|
|
273
|
-
"bare-module": "~7.
|
|
274
|
-
"bare-os": "^3.9.
|
|
275
|
-
"bare-path": "^3.
|
|
268
|
+
"bare-buffer": "^3.7.1",
|
|
269
|
+
"bare-cpu-info": "^0.1.1",
|
|
270
|
+
"bare-crypto": "^1.15.4",
|
|
271
|
+
"bare-events": "^2.9.2",
|
|
272
|
+
"bare-fetch": "^3.4.1",
|
|
273
|
+
"bare-ffmpeg": "^1.7.1",
|
|
274
|
+
"bare-file-logger": "^1.2.3",
|
|
275
|
+
"bare-fs": "^4.8.4",
|
|
276
|
+
"bare-gpu-info": "^0.1.3",
|
|
277
|
+
"bare-http1": "4.6.3",
|
|
278
|
+
"bare-media": "^2.12.0",
|
|
279
|
+
"bare-module": "~7.5.0",
|
|
280
|
+
"bare-os": "^3.9.4",
|
|
281
|
+
"bare-path": "^3.1.2",
|
|
276
282
|
"bare-pdfium": "^1.8.0",
|
|
277
|
-
"bare-pipe": "^4.
|
|
283
|
+
"bare-pipe": "^4.4.0",
|
|
278
284
|
"bare-process": "^4.5.1",
|
|
279
|
-
"bare-rpc": "^1.
|
|
285
|
+
"bare-rpc": "^1.5.0",
|
|
280
286
|
"bare-semver": "^1.1.0",
|
|
281
|
-
"bare-storage": "^1.1.
|
|
282
|
-
"bare-stow": "^0.
|
|
283
|
-
"bare-
|
|
284
|
-
"bare-
|
|
285
|
-
"bare-
|
|
286
|
-
"bare-
|
|
287
|
-
"bare-
|
|
287
|
+
"bare-storage": "^1.1.1",
|
|
288
|
+
"bare-stow": "^0.3.5",
|
|
289
|
+
"bare-stow-host": "^0.2.0",
|
|
290
|
+
"bare-stow-runtime": "^0.1.1",
|
|
291
|
+
"bare-stream": "^2.13.4",
|
|
292
|
+
"bare-subprocess": "^6.2.2",
|
|
293
|
+
"bare-supervisor": "^0.1.2",
|
|
294
|
+
"bare-system-logger": "^1.0.6",
|
|
295
|
+
"bare-thread": "~1.4.0",
|
|
288
296
|
"bare-tui": "^0.3.0",
|
|
289
|
-
"bare-
|
|
290
|
-
"bare-
|
|
291
|
-
"
|
|
292
|
-
"blind-
|
|
293
|
-
"
|
|
297
|
+
"bare-tui-updater": "^0.0.1",
|
|
298
|
+
"bare-url": "^2.5.6",
|
|
299
|
+
"bare-worker": "^4.5.3",
|
|
300
|
+
"blind-peer": "^3.18.1",
|
|
301
|
+
"blind-peering": "2.13.1",
|
|
302
|
+
"compact-encoding": "^3.7.0",
|
|
294
303
|
"corestore": "^7.16.1",
|
|
295
|
-
"
|
|
296
|
-
"
|
|
304
|
+
"fs-native-lock": "^1.2.0",
|
|
305
|
+
"hrpc": "^4.3.1",
|
|
306
|
+
"hyperblobs": "^2.13.0",
|
|
297
307
|
"hyperconf": "^1.0.3",
|
|
298
308
|
"hypercore-blob-server": "^1.15.1",
|
|
299
309
|
"hypercore-crypto": "^3.7.0",
|
|
300
310
|
"hypercore-id-encoding": "^1.3.0",
|
|
301
311
|
"hypercore-storage": "^3.4.0",
|
|
302
|
-
"hyperdb": "^6.11.
|
|
312
|
+
"hyperdb": "^6.11.1",
|
|
303
313
|
"hyperdispatch": "^1.6.0",
|
|
304
|
-
"hyperdrive": "^13.3.
|
|
314
|
+
"hyperdrive": "^13.3.4",
|
|
305
315
|
"hyperschema": "1.26.2",
|
|
306
316
|
"hyperschema-ts": "^0.1.1",
|
|
307
|
-
"hyperswarm": "^4.17.
|
|
317
|
+
"hyperswarm": "^4.17.2",
|
|
308
318
|
"keet-identity-key": "^3.2.0",
|
|
309
|
-
"paparam": "^1.
|
|
310
|
-
"
|
|
311
|
-
"
|
|
319
|
+
"paparam": "^1.15.0",
|
|
320
|
+
"pear-runtime-updater": "^3.4.0",
|
|
321
|
+
"process-top": "^1.8.0",
|
|
322
|
+
"protomux": "^3.13.1",
|
|
312
323
|
"protomux-wakeup": "^2.9.0",
|
|
313
|
-
"
|
|
324
|
+
"qvac-charts": "^0.2.0",
|
|
325
|
+
"rache": "^1.0.1",
|
|
314
326
|
"rag-extract": "^0.2.2",
|
|
315
327
|
"ready-guard": "^1.0.0",
|
|
316
328
|
"ready-resource": "^1.2.0",
|
|
317
|
-
"rocksdb-native": "^3.
|
|
329
|
+
"rocksdb-native": "^3.19.3",
|
|
318
330
|
"safety-catch": "^1.0.3",
|
|
319
331
|
"scope-lock": "^1.2.4",
|
|
320
|
-
"sodium-universal": "^5.0.
|
|
321
|
-
"streamx": "^2.28.
|
|
332
|
+
"sodium-universal": "^5.0.1",
|
|
333
|
+
"streamx": "^2.28.1",
|
|
322
334
|
"suspendify": "^1.7.2",
|
|
323
335
|
"which-runtime": "^1.4.0",
|
|
324
336
|
"z32": "^1.1.0",
|
|
325
337
|
"zod": "^4.3.6"
|
|
326
338
|
},
|
|
327
339
|
"optionalDependencies": {
|
|
328
|
-
"@qvac/asr-ggml": "0.
|
|
340
|
+
"@qvac/asr-ggml": "^0.11.1",
|
|
329
341
|
"@qvac/audiogen-ggml": "^0.9.0",
|
|
330
342
|
"@qvac/decoder-audio": "^0.8.1",
|
|
331
343
|
"@qvac/diffusion-cpp": "^0.31.0",
|
|
@@ -336,21 +348,23 @@
|
|
|
336
348
|
"@qvac/translation-nmtcpp": "^0.23.0",
|
|
337
349
|
"@qvac/tts-ggml": "^0.14.0",
|
|
338
350
|
"@qvac/turbovec-ggml": "^0.3.1",
|
|
339
|
-
"bare-image-resample": "^1.0
|
|
351
|
+
"bare-image-resample": "^1.1.0",
|
|
340
352
|
"pyodide": "314.0.2"
|
|
341
353
|
},
|
|
342
354
|
"devDependencies": {
|
|
343
355
|
"@qvac/core-previous": "npm:@qvac/core@0.10.3",
|
|
344
356
|
"@types/node": "^26.4.0",
|
|
345
|
-
"bare-
|
|
346
|
-
"bare-
|
|
347
|
-
"bare-
|
|
348
|
-
"bare-
|
|
349
|
-
"bare-
|
|
350
|
-
"
|
|
351
|
-
"brittle
|
|
352
|
-
"
|
|
353
|
-
"
|
|
357
|
+
"bare-build": "^1.0.4",
|
|
358
|
+
"bare-bundle": "^1.11.0",
|
|
359
|
+
"bare-module-lexer": "^1.7.0",
|
|
360
|
+
"bare-pack": "^3.0.2",
|
|
361
|
+
"bare-runtime": "1.36.0",
|
|
362
|
+
"bare-sidecar": "0.5.15",
|
|
363
|
+
"brittle": "^4.5.0",
|
|
364
|
+
"brittle-jobs": "0.2.2",
|
|
365
|
+
"holepunch-types": "^0.2.3",
|
|
366
|
+
"hyperdht": "^6.36.0",
|
|
367
|
+
"hypermininet": "^1.5.0",
|
|
354
368
|
"hyperschema-regen": "^3.0.1",
|
|
355
369
|
"lunte": "^1.8.6",
|
|
356
370
|
"lunte-plugin-qvac": "^0.2.0",
|
|
@@ -374,27 +388,24 @@
|
|
|
374
388
|
"homepage": "https://github.com/tetherto/qvac-core",
|
|
375
389
|
"patchedDependencies": {
|
|
376
390
|
"pyodide@314.0.2": "patches/pyodide@314.0.2.patch",
|
|
377
|
-
"
|
|
378
|
-
"blind-peering@2.9.5": "patches/blind-peering@2.9.5.patch",
|
|
379
|
-
"hyperdb@6.11.0": "patches/hyperdb@6.11.0.patch",
|
|
391
|
+
"hyperdb@6.11.1": "patches/hyperdb@6.11.1.patch",
|
|
380
392
|
"hyperschema@1.26.2": "patches/hyperschema@1.26.2.patch",
|
|
381
393
|
"corestore@7.16.1": "patches/corestore@7.16.1.patch"
|
|
382
394
|
},
|
|
383
395
|
"overrides": {
|
|
384
|
-
"bare-sidecar": "0.5.
|
|
385
|
-
"bare-module-traverse": "~2.
|
|
386
|
-
"bare-thread": "~1.
|
|
387
|
-
"
|
|
388
|
-
"bare-
|
|
389
|
-
"bare-http1": "4.6.1",
|
|
396
|
+
"bare-sidecar": "0.5.15",
|
|
397
|
+
"bare-module-traverse": "~2.7.4",
|
|
398
|
+
"bare-thread": "~1.4.0",
|
|
399
|
+
"bare-runtime": "1.36.0",
|
|
400
|
+
"bare-http1": "4.6.3",
|
|
390
401
|
"lodash": "4.18.1",
|
|
391
402
|
"hyperschema": "1.26.2",
|
|
392
|
-
"hyperdb": "^6.11.
|
|
393
|
-
"hypercore": "^11.
|
|
394
|
-
"hyperbee2": "^2.
|
|
403
|
+
"hyperdb": "^6.11.1",
|
|
404
|
+
"hypercore": "^11.40.4",
|
|
405
|
+
"hyperbee2": "^2.22.0",
|
|
395
406
|
"localwatch": "^1.4.4",
|
|
396
407
|
"tar": "^7.5.22",
|
|
397
|
-
"bare-tls": "^3.
|
|
408
|
+
"bare-tls": "^3.2.0"
|
|
398
409
|
},
|
|
399
410
|
"publishConfig": {
|
|
400
411
|
"access": "public"
|
package/tui/README.md
CHANGED
|
@@ -40,6 +40,58 @@ not published.
|
|
|
40
40
|
be on PATH (`bare-runtime` puts it in `node_modules/.bin`). `bare-tui` needs
|
|
41
41
|
Bare's native TTY; the TUI will not run under node.
|
|
42
42
|
|
|
43
|
+
## Standalone executable
|
|
44
|
+
|
|
45
|
+
`bun run make` builds `out/make/duck` (`duck.exe` on Windows) for this machine,
|
|
46
|
+
or for `HOST=<platform>-<arch>`: one file with no `bare` or `node_modules` to
|
|
47
|
+
install beside it.
|
|
48
|
+
|
|
49
|
+
`scripts/make.mjs` bundles the TUI launcher, stows the sidecar and harness as
|
|
50
|
+
separate bundles, and embeds their native addons, the skills tree and release
|
|
51
|
+
metadata as assets. On launch, the runtime extracts the spawned children and
|
|
52
|
+
assets to real paths so their addons can load without a separate `bare` or
|
|
53
|
+
`node_modules` install.
|
|
54
|
+
|
|
55
|
+
### Updates
|
|
56
|
+
|
|
57
|
+
The executable updates itself peer to peer with
|
|
58
|
+
[`pear-runtime-updater`](https://github.com/holepunchto/pear-runtime-updater),
|
|
59
|
+
the way [bmus](https://github.com/rafapaezbas/bmus) does. It follows the
|
|
60
|
+
`pear://` link in package.json `upgrade` (`UPGRADE_KEY` overrides it at build
|
|
61
|
+
time), and when that drive carries a newer version for this host it downloads it
|
|
62
|
+
into `.duck-update/` beside the executable, so the swap stays on one volume:
|
|
63
|
+
|
|
64
|
+
- in the TUI a banner reports the download, and `ctrl+u` swaps the new build in
|
|
65
|
+
over the running one, to take effect on the next launch;
|
|
66
|
+
- `--headless` has no one to ask, so it swaps as soon as the build is downloaded,
|
|
67
|
+
prints an `update` line and exits with 75 for its supervisor to restart it on
|
|
68
|
+
the new build.
|
|
69
|
+
|
|
70
|
+
A headless duck is meant to run under a supervisor, such as a systemd user unit
|
|
71
|
+
with `ExecStart=%h/.local/bin/duck --headless` and `Restart=on-failure` (75 is a
|
|
72
|
+
failure, so an update restarts it too). The executable's directory must be one
|
|
73
|
+
duck can write to. Run by hand, it stops after an update.
|
|
74
|
+
|
|
75
|
+
A build is about 1.3GB, and the whole of it downloads for each update. A duck
|
|
76
|
+
already on the newest version also fetches that build into its corestore in the
|
|
77
|
+
background, and the corestore keeps every version it has fetched.
|
|
78
|
+
|
|
79
|
+
With no `upgrade` link there is nothing to follow, and the updater never starts;
|
|
80
|
+
an npm install never starts one either, since the executable it would swap is
|
|
81
|
+
`bare` itself. Its corestore and lock live in the per-user app directory
|
|
82
|
+
(`~/Library/Application Support/duck`, `~/.config/duck`,
|
|
83
|
+
`%APPDATA%\duck`), not under `--storage`: one executable serves every storage
|
|
84
|
+
root, and only the first duck running holds the updater.
|
|
85
|
+
|
|
86
|
+
`.github/workflows/stage-duck.yml` builds every host on its own runner and
|
|
87
|
+
stages them together to the `duck` namespace with
|
|
88
|
+
[pear-ci](https://docs.pears.com/pear/reference/ci-and-release/pear-ci-action/),
|
|
89
|
+
which keeps `ci/snapshot.json` on `main` in step with the drive, so it runs only
|
|
90
|
+
once the workflow and that file are on `main`. Every publish runs it after npm
|
|
91
|
+
takes the package, staging that version. A dry run prints the drive's key
|
|
92
|
+
after `starting stage for key`: that `pear://` link is the `upgrade` to commit,
|
|
93
|
+
and `pear seed` on it must be running before a real stage.
|
|
94
|
+
|
|
43
95
|
## Usage
|
|
44
96
|
|
|
45
97
|
```
|