@qvac/core 1.0.0-rc.3 → 1.0.0-rc.5
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 +106 -36
- package/dist-lib/index.d.ts +2 -1
- package/dist-lib/lib/api/approval-rules.d.ts +1 -1
- package/dist-lib/lib/api/approval-rules.js +5 -1
- package/dist-lib/lib/api/config.d.ts +6 -2
- package/dist-lib/lib/api/config.js +9 -5
- package/dist-lib/lib/api/index.d.ts +12 -2
- package/dist-lib/lib/api/index.js +6 -1
- package/dist-lib/lib/api/rag.js +5 -5
- package/dist-lib/lib/assistant/model-round.js +2 -2
- package/dist-lib/lib/assistant.d.ts +1 -0
- package/dist-lib/lib/assistant.js +16 -7
- package/dist-lib/lib/core/agent-copies.js +7 -1
- package/dist-lib/lib/core/agent.js +1 -0
- package/dist-lib/lib/core/approval-rules.d.ts +5 -1
- package/dist-lib/lib/core/approval-rules.js +16 -1
- package/dist-lib/lib/core/chunk.js +4 -3
- package/dist-lib/lib/core/config-value.d.ts +1 -0
- package/dist-lib/lib/core/config-value.js +1 -0
- package/dist-lib/lib/core/contract/workspace.js +2 -2
- package/dist-lib/lib/core/deleted-agent-runs.d.ts +7 -0
- package/dist-lib/lib/core/deleted-agent-runs.js +46 -0
- package/dist-lib/lib/core/files/index.d.ts +1 -1
- package/dist-lib/lib/core/files/index.js +4 -2
- package/dist-lib/lib/core/local/index.d.ts +6 -0
- package/dist-lib/lib/core/local/index.js +14 -0
- package/dist-lib/lib/core/mesh.d.ts +1 -1
- package/dist-lib/lib/core/mesh.js +3 -1
- package/dist-lib/lib/core/skill-secrets.d.ts +3 -2
- package/dist-lib/lib/core/skill-secrets.js +4 -1
- package/dist-lib/lib/core/sync/index.js +13 -1
- package/dist-lib/lib/core/vault-managed-skills.d.ts +18 -0
- package/dist-lib/lib/core/vault-managed-skills.js +105 -0
- package/dist-lib/lib/core.d.ts +8 -1
- package/dist-lib/lib/core.js +63 -6
- package/dist-lib/lib/errors.d.ts +8 -0
- package/dist-lib/lib/errors.js +8 -0
- package/dist-lib/lib/mesh-scoped-engine.js +1 -0
- package/dist-lib/schema/config.d.ts +1 -1
- package/dist-lib/schema/config.js +1 -1
- package/dist-lib/schema/engine.js +33 -1
- package/dist-lib/schema/qvac.js +4 -2
- package/dist-lib/spec/bind.js +12 -0
- package/dist-lib/spec/calls.js +4 -0
- package/dist-lib/spec/capabilities.d.ts +8 -0
- package/dist-lib/spec/config/hyperconf/index.js +1 -1
- package/dist-lib/spec/hrpc/hrpc.json +52 -0
- package/dist-lib/spec/hrpc/index.js +51 -3
- package/dist-lib/spec/hrpc/messages.js +1013 -954
- package/dist-lib/spec/hyperschema/index.js +1013 -954
- package/dist-lib/spec/hyperschema/schema.json +40 -0
- package/dist-lib/spec/hyperschema/types.d.ts +12 -0
- package/dist-lib/spec/mesh/hyperdb/messages.js +539 -501
- package/dist-lib/spec/mesh/hyperdispatch/messages.js +319 -300
- package/dist-lib/spec/mesh/hyperschema/index.js +319 -300
- package/dist-lib/spec/mesh/hyperschema/schema.json +188 -178
- package/dist-lib/spec/mesh/hyperschema/types.d.ts +3 -1
- package/package.json +12 -12
|
@@ -724,7 +724,8 @@ export function registerEngineTypes(ns) {
|
|
|
724
724
|
{ name: 'expiresAt', type: 'uint' },
|
|
725
725
|
{ name: 'agentId', type: 'string' },
|
|
726
726
|
{ name: 'effect', type: 'string' },
|
|
727
|
-
{ name: 'memberId', type: 'fixed32' }
|
|
727
|
+
{ name: 'memberId', type: 'fixed32' },
|
|
728
|
+
{ name: 'chatId', type: 'string' }
|
|
728
729
|
]
|
|
729
730
|
});
|
|
730
731
|
ns.register({
|
|
@@ -734,6 +735,13 @@ export function registerEngineTypes(ns) {
|
|
|
734
735
|
{ name: 'ourMemberId', type: 'fixed32' }
|
|
735
736
|
]
|
|
736
737
|
});
|
|
738
|
+
ns.register({
|
|
739
|
+
name: 'approval-rule-id',
|
|
740
|
+
fields: [
|
|
741
|
+
{ name: 'ruleId', type: 'string', required: true },
|
|
742
|
+
{ name: 'meshId', type: 'string', required: true }
|
|
743
|
+
]
|
|
744
|
+
});
|
|
737
745
|
ns.register({
|
|
738
746
|
name: 'chunks-by-chat-request',
|
|
739
747
|
fields: [
|
|
@@ -2502,6 +2510,10 @@ export function registerEngineTypes(ns) {
|
|
|
2502
2510
|
{ name: 'fileIds', type: 'string', array: true, required: true }
|
|
2503
2511
|
]
|
|
2504
2512
|
});
|
|
2513
|
+
ns.register({
|
|
2514
|
+
name: 'quarantined-skill-keys',
|
|
2515
|
+
fields: [{ name: 'keys', type: 'string', array: true, required: true }]
|
|
2516
|
+
});
|
|
2505
2517
|
}
|
|
2506
2518
|
export function registerEngineApi(api) {
|
|
2507
2519
|
api.register({
|
|
@@ -3494,4 +3506,24 @@ export function registerEngineApi(api) {
|
|
|
3494
3506
|
request: { name: '@assistant/files-ready-request', stream: false },
|
|
3495
3507
|
response: { name: '@assistant/file-status-list', stream: false }
|
|
3496
3508
|
});
|
|
3509
|
+
api.register({
|
|
3510
|
+
name: 'remove-approval-rule',
|
|
3511
|
+
request: { name: '@assistant/approval-rule-id', stream: false },
|
|
3512
|
+
response: { name: '@assistant/ok-response', stream: false }
|
|
3513
|
+
});
|
|
3514
|
+
api.register({
|
|
3515
|
+
name: 'list-quarantined-skills',
|
|
3516
|
+
request: { name: '@assistant/empty', stream: false },
|
|
3517
|
+
response: { name: '@assistant/quarantined-skill-keys', stream: false }
|
|
3518
|
+
});
|
|
3519
|
+
api.register({
|
|
3520
|
+
name: 'retry-quarantined-skills',
|
|
3521
|
+
request: { name: '@assistant/empty', stream: false },
|
|
3522
|
+
response: { name: '@assistant/quarantined-skill-keys', stream: false }
|
|
3523
|
+
});
|
|
3524
|
+
api.register({
|
|
3525
|
+
name: 'discard-quarantined-skills',
|
|
3526
|
+
request: { name: '@assistant/quarantined-skill-keys', stream: false },
|
|
3527
|
+
response: { name: '@assistant/quarantined-skill-keys', stream: false }
|
|
3528
|
+
});
|
|
3497
3529
|
}
|
package/dist-lib/schema/qvac.js
CHANGED
|
@@ -209,7 +209,8 @@ export function registerQvacTypes(ns) {
|
|
|
209
209
|
{ name: 'approvalMode', type: '@qvac/approval-mode' },
|
|
210
210
|
{ name: 'disabledToolsets', type: 'string', array: true },
|
|
211
211
|
{ name: 'lenderDeviceId', type: 'fixed32' },
|
|
212
|
-
{ name: 'sharedIn', type: 'fixed32' }
|
|
212
|
+
{ name: 'sharedIn', type: 'fixed32' },
|
|
213
|
+
{ name: 'chatRetention', type: 'string' }
|
|
213
214
|
]);
|
|
214
215
|
ns.register({
|
|
215
216
|
name: 'chat-fork-source',
|
|
@@ -350,7 +351,8 @@ export function registerQvacTypes(ns) {
|
|
|
350
351
|
{ name: 'expiresAt', type: 'uint' },
|
|
351
352
|
{ name: 'agentId', type: 'string' },
|
|
352
353
|
{ name: 'effect', type: 'string' },
|
|
353
|
-
{ name: 'memberId', type: 'fixed32' }
|
|
354
|
+
{ name: 'memberId', type: 'fixed32' },
|
|
355
|
+
{ name: 'chatId', type: 'string' }
|
|
354
356
|
]);
|
|
355
357
|
versioned('put-approval-rule-operation', [
|
|
356
358
|
{ name: 'rule', type: '@qvac/approval-rule', required: true }
|
package/dist-lib/spec/bind.js
CHANGED
|
@@ -827,4 +827,16 @@ export function bindApi(rpc, api) {
|
|
|
827
827
|
if (api.filesReady) {
|
|
828
828
|
rpc.onFilesReady((req) => api.filesReady(req));
|
|
829
829
|
}
|
|
830
|
+
if (api.removeApprovalRule) {
|
|
831
|
+
rpc.onRemoveApprovalRule((req) => api.removeApprovalRule(req));
|
|
832
|
+
}
|
|
833
|
+
if (api.listQuarantinedSkills) {
|
|
834
|
+
rpc.onListQuarantinedSkills((req) => api.listQuarantinedSkills(req));
|
|
835
|
+
}
|
|
836
|
+
if (api.retryQuarantinedSkills) {
|
|
837
|
+
rpc.onRetryQuarantinedSkills((req) => api.retryQuarantinedSkills(req));
|
|
838
|
+
}
|
|
839
|
+
if (api.discardQuarantinedSkills) {
|
|
840
|
+
rpc.onDiscardQuarantinedSkills((req) => api.discardQuarantinedSkills(req));
|
|
841
|
+
}
|
|
830
842
|
}
|
package/dist-lib/spec/calls.js
CHANGED
|
@@ -208,5 +208,9 @@ export function engineClient(rpc) {
|
|
|
208
208
|
hostRunLogRelease: (input) => rpc.hostRunLogRelease(input),
|
|
209
209
|
takeRunRequest: (input) => rpc.takeRunRequest(input),
|
|
210
210
|
filesReady: (input) => rpc.filesReady(input),
|
|
211
|
+
removeApprovalRule: (input) => rpc.removeApprovalRule(input),
|
|
212
|
+
listQuarantinedSkills: (input) => rpc.listQuarantinedSkills(input ?? {}),
|
|
213
|
+
retryQuarantinedSkills: (input) => rpc.retryQuarantinedSkills(input ?? {}),
|
|
214
|
+
discardQuarantinedSkills: (input) => rpc.discardQuarantinedSkills(input),
|
|
211
215
|
};
|
|
212
216
|
}
|
|
@@ -226,6 +226,10 @@ export interface Capabilities {
|
|
|
226
226
|
hostRunLogRelease(input: T.AssistantHostRunLogReleaseRequest): Promise<T.AssistantOkResponse>
|
|
227
227
|
takeRunRequest(input: T.AssistantRunRequestRequest): Promise<T.AssistantChunk>
|
|
228
228
|
filesReady(input: T.AssistantFilesReadyRequest): Promise<T.AssistantFileStatusList>
|
|
229
|
+
removeApprovalRule(input: T.AssistantApprovalRuleId): Promise<T.AssistantOkResponse>
|
|
230
|
+
listQuarantinedSkills(input?: T.AssistantEmpty): Promise<T.AssistantQuarantinedSkillKeys>
|
|
231
|
+
retryQuarantinedSkills(input?: T.AssistantEmpty): Promise<T.AssistantQuarantinedSkillKeys>
|
|
232
|
+
discardQuarantinedSkills(input: T.AssistantQuarantinedSkillKeys): Promise<T.AssistantQuarantinedSkillKeys>
|
|
229
233
|
}
|
|
230
234
|
|
|
231
235
|
export interface CapabilityHandlers {
|
|
@@ -427,4 +431,8 @@ export interface CapabilityHandlers {
|
|
|
427
431
|
hostRunLogRelease(input: T.AssistantHostRunLogReleaseRequest): T.AssistantOkResponse | Promise<T.AssistantOkResponse>
|
|
428
432
|
takeRunRequest(input: T.AssistantRunRequestRequest): T.AssistantChunk | Promise<T.AssistantChunk>
|
|
429
433
|
filesReady(input: T.AssistantFilesReadyRequest): T.AssistantFileStatusList | Promise<T.AssistantFileStatusList>
|
|
434
|
+
removeApprovalRule(input: T.AssistantApprovalRuleId): T.AssistantOkResponse | Promise<T.AssistantOkResponse>
|
|
435
|
+
listQuarantinedSkills(input?: T.AssistantEmpty): T.AssistantQuarantinedSkillKeys | Promise<T.AssistantQuarantinedSkillKeys>
|
|
436
|
+
retryQuarantinedSkills(input?: T.AssistantEmpty): T.AssistantQuarantinedSkillKeys | Promise<T.AssistantQuarantinedSkillKeys>
|
|
437
|
+
discardQuarantinedSkills(input: T.AssistantQuarantinedSkillKeys): T.AssistantQuarantinedSkillKeys | Promise<T.AssistantQuarantinedSkillKeys>
|
|
430
438
|
}
|
|
@@ -6,7 +6,7 @@ const runtime = require('hyperconf/runtime')
|
|
|
6
6
|
const productionEncoding = schema.getEncoding('@conf/config')
|
|
7
7
|
const production = decode(
|
|
8
8
|
productionEncoding,
|
|
9
|
-
runtime.b4a.from('
|
|
9
|
+
runtime.b4a.from('CD49MC4yMi4w', 'base64')
|
|
10
10
|
)
|
|
11
11
|
|
|
12
12
|
const developmentEncoding = null
|
|
@@ -2574,6 +2574,58 @@
|
|
|
2574
2574
|
"stream": false
|
|
2575
2575
|
},
|
|
2576
2576
|
"version": 1
|
|
2577
|
+
},
|
|
2578
|
+
{
|
|
2579
|
+
"id": 198,
|
|
2580
|
+
"name": "@assistant/remove-approval-rule",
|
|
2581
|
+
"request": {
|
|
2582
|
+
"name": "@assistant/approval-rule-id",
|
|
2583
|
+
"stream": false
|
|
2584
|
+
},
|
|
2585
|
+
"response": {
|
|
2586
|
+
"name": "@assistant/ok-response",
|
|
2587
|
+
"stream": false
|
|
2588
|
+
},
|
|
2589
|
+
"version": 1
|
|
2590
|
+
},
|
|
2591
|
+
{
|
|
2592
|
+
"id": 199,
|
|
2593
|
+
"name": "@assistant/list-quarantined-skills",
|
|
2594
|
+
"request": {
|
|
2595
|
+
"name": "@assistant/empty",
|
|
2596
|
+
"stream": false
|
|
2597
|
+
},
|
|
2598
|
+
"response": {
|
|
2599
|
+
"name": "@assistant/quarantined-skill-keys",
|
|
2600
|
+
"stream": false
|
|
2601
|
+
},
|
|
2602
|
+
"version": 1
|
|
2603
|
+
},
|
|
2604
|
+
{
|
|
2605
|
+
"id": 200,
|
|
2606
|
+
"name": "@assistant/retry-quarantined-skills",
|
|
2607
|
+
"request": {
|
|
2608
|
+
"name": "@assistant/empty",
|
|
2609
|
+
"stream": false
|
|
2610
|
+
},
|
|
2611
|
+
"response": {
|
|
2612
|
+
"name": "@assistant/quarantined-skill-keys",
|
|
2613
|
+
"stream": false
|
|
2614
|
+
},
|
|
2615
|
+
"version": 1
|
|
2616
|
+
},
|
|
2617
|
+
{
|
|
2618
|
+
"id": 201,
|
|
2619
|
+
"name": "@assistant/discard-quarantined-skills",
|
|
2620
|
+
"request": {
|
|
2621
|
+
"name": "@assistant/quarantined-skill-keys",
|
|
2622
|
+
"stream": false
|
|
2623
|
+
},
|
|
2624
|
+
"response": {
|
|
2625
|
+
"name": "@assistant/quarantined-skill-keys",
|
|
2626
|
+
"stream": false
|
|
2627
|
+
},
|
|
2628
|
+
"version": 1
|
|
2577
2629
|
}
|
|
2578
2630
|
]
|
|
2579
2631
|
}
|
|
@@ -401,7 +401,15 @@ const methods = new Map([
|
|
|
401
401
|
['@assistant/take-run-request', 196],
|
|
402
402
|
[196, '@assistant/take-run-request'],
|
|
403
403
|
['@assistant/files-ready', 197],
|
|
404
|
-
[197, '@assistant/files-ready']
|
|
404
|
+
[197, '@assistant/files-ready'],
|
|
405
|
+
['@assistant/remove-approval-rule', 198],
|
|
406
|
+
[198, '@assistant/remove-approval-rule'],
|
|
407
|
+
['@assistant/list-quarantined-skills', 199],
|
|
408
|
+
[199, '@assistant/list-quarantined-skills'],
|
|
409
|
+
['@assistant/retry-quarantined-skills', 200],
|
|
410
|
+
[200, '@assistant/retry-quarantined-skills'],
|
|
411
|
+
['@assistant/discard-quarantined-skills', 201],
|
|
412
|
+
[201, '@assistant/discard-quarantined-skills']
|
|
405
413
|
])
|
|
406
414
|
|
|
407
415
|
class HRPC {
|
|
@@ -606,7 +614,11 @@ class HRPC {
|
|
|
606
614
|
['@assistant/host-run-log-append', getEncoding('@assistant/host-run-log-append-request')],
|
|
607
615
|
['@assistant/host-run-log-release', getEncoding('@assistant/host-run-log-release-request')],
|
|
608
616
|
['@assistant/take-run-request', getEncoding('@assistant/run-request-request')],
|
|
609
|
-
['@assistant/files-ready', getEncoding('@assistant/files-ready-request')]
|
|
617
|
+
['@assistant/files-ready', getEncoding('@assistant/files-ready-request')],
|
|
618
|
+
['@assistant/remove-approval-rule', getEncoding('@assistant/approval-rule-id')],
|
|
619
|
+
['@assistant/list-quarantined-skills', getEncoding('@assistant/empty')],
|
|
620
|
+
['@assistant/retry-quarantined-skills', getEncoding('@assistant/empty')],
|
|
621
|
+
['@assistant/discard-quarantined-skills', getEncoding('@assistant/quarantined-skill-keys')]
|
|
610
622
|
])
|
|
611
623
|
this._responseEncodings = new Map([
|
|
612
624
|
['@assistant/config-get', getEncoding('@assistant/config-value')],
|
|
@@ -806,7 +818,11 @@ class HRPC {
|
|
|
806
818
|
['@assistant/host-run-log-append', getEncoding('@assistant/ok-response')],
|
|
807
819
|
['@assistant/host-run-log-release', getEncoding('@assistant/ok-response')],
|
|
808
820
|
['@assistant/take-run-request', getEncoding('@assistant/chunk')],
|
|
809
|
-
['@assistant/files-ready', getEncoding('@assistant/file-status-list')]
|
|
821
|
+
['@assistant/files-ready', getEncoding('@assistant/file-status-list')],
|
|
822
|
+
['@assistant/remove-approval-rule', getEncoding('@assistant/ok-response')],
|
|
823
|
+
['@assistant/list-quarantined-skills', getEncoding('@assistant/quarantined-skill-keys')],
|
|
824
|
+
['@assistant/retry-quarantined-skills', getEncoding('@assistant/quarantined-skill-keys')],
|
|
825
|
+
['@assistant/discard-quarantined-skills', getEncoding('@assistant/quarantined-skill-keys')]
|
|
810
826
|
])
|
|
811
827
|
this._rpc = new RPC(stream, async (req) => {
|
|
812
828
|
const command = methods.get(req.command)
|
|
@@ -1696,6 +1712,22 @@ class HRPC {
|
|
|
1696
1712
|
return this._call('@assistant/files-ready', args)
|
|
1697
1713
|
}
|
|
1698
1714
|
|
|
1715
|
+
async removeApprovalRule(args) {
|
|
1716
|
+
return this._call('@assistant/remove-approval-rule', args)
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1719
|
+
async listQuarantinedSkills(args) {
|
|
1720
|
+
return this._call('@assistant/list-quarantined-skills', args)
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
async retryQuarantinedSkills(args) {
|
|
1724
|
+
return this._call('@assistant/retry-quarantined-skills', args)
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1727
|
+
async discardQuarantinedSkills(args) {
|
|
1728
|
+
return this._call('@assistant/discard-quarantined-skills', args)
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1699
1731
|
onConfigGet(responseFn) {
|
|
1700
1732
|
this._handlers['@assistant/config-get'] = responseFn
|
|
1701
1733
|
}
|
|
@@ -2488,6 +2520,22 @@ class HRPC {
|
|
|
2488
2520
|
this._handlers['@assistant/files-ready'] = responseFn
|
|
2489
2521
|
}
|
|
2490
2522
|
|
|
2523
|
+
onRemoveApprovalRule(responseFn) {
|
|
2524
|
+
this._handlers['@assistant/remove-approval-rule'] = responseFn
|
|
2525
|
+
}
|
|
2526
|
+
|
|
2527
|
+
onListQuarantinedSkills(responseFn) {
|
|
2528
|
+
this._handlers['@assistant/list-quarantined-skills'] = responseFn
|
|
2529
|
+
}
|
|
2530
|
+
|
|
2531
|
+
onRetryQuarantinedSkills(responseFn) {
|
|
2532
|
+
this._handlers['@assistant/retry-quarantined-skills'] = responseFn
|
|
2533
|
+
}
|
|
2534
|
+
|
|
2535
|
+
onDiscardQuarantinedSkills(responseFn) {
|
|
2536
|
+
this._handlers['@assistant/discard-quarantined-skills'] = responseFn
|
|
2537
|
+
}
|
|
2538
|
+
|
|
2491
2539
|
_requestIsStream(command) {
|
|
2492
2540
|
return [
|
|
2493
2541
|
'@assistant/upload-attachment',
|