@qvac/harness 1.0.0-rc.7 → 1.0.0-rc.8
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 +18 -0
- package/dist-lib/index.d.ts +1 -1
- package/dist-lib/lib/contract/drive.d.ts +2 -2
- package/dist-lib/lib/contract-types.d.ts +1 -1
- package/dist-lib/lib/tools/fs/drive.d.ts +1 -16
- package/dist-lib/lib/tools/fs/remote-protocol.d.ts +23 -1
- package/dist-lib/lib/tools/fs/remote-protocol.js +1 -1
- package/dist-lib/lib/tools/fs/remote.d.ts +1 -8
- package/dist-lib/lib/tools/fs/remote.js +1 -1
- package/dist-lib/lib/tools/skills/frontmatter-parser.d.ts +1 -0
- package/dist-lib/lib/tools/skills/frontmatter-parser.js +1 -0
- package/dist-lib/plugins/sandbox-windows/prebuilds/win32-arm64/qvac-sandbox.exe +0 -0
- package/dist-lib/plugins/sandbox-windows/prebuilds/win32-x64/qvac-sandbox.exe +0 -0
- package/package.json +13 -33
package/CHANGELOG.md
CHANGED
|
@@ -430,6 +430,15 @@ breaking change is listed under Changed and Removed.
|
|
|
430
430
|
|
|
431
431
|
### Changed
|
|
432
432
|
|
|
433
|
+
- A host reaches the drive protocol it serves, the skill catalog and the
|
|
434
|
+
user-plugin import map through named entries: `@qvac/harness/drive`
|
|
435
|
+
(`DriveRequest`, `DriveResponse`, `DriveEntry`, `GrantedDrive`, `DriveOpFn`,
|
|
436
|
+
`MAX_DRIVE_BYTES`), `@qvac/harness/skill-catalog` (`loadSkillCatalog`,
|
|
437
|
+
`availableSkills`) and `@qvac/harness/user-plugins` (`sharedImports`), and
|
|
438
|
+
`@qvac/harness/skill-manifest` adds `readSkillSetup`. `test/entry-weight.ts`
|
|
439
|
+
holds every named entry to a ceiling on the files importing it loads, so a
|
|
440
|
+
host that imports a constant never parses the engine. (#636)
|
|
441
|
+
|
|
433
442
|
- Every host that runs python, on Bare or Node, recopies
|
|
434
443
|
`patches/pyodide@314.0.2.patch` into its `patchedDependencies`. Guest Python
|
|
435
444
|
sees: `ctypes` calls to `emscripten_run_script*` do nothing and return 0, a
|
|
@@ -960,6 +969,15 @@ breaking change is listed under Changed and Removed.
|
|
|
960
969
|
|
|
961
970
|
### Removed
|
|
962
971
|
|
|
972
|
+
- The eight file exports 1.0.0-rc.7 added for hosts:
|
|
973
|
+
`./lib/tools/fs/drive.ts`, `remote.ts` and `remote-protocol.ts`, and
|
|
974
|
+
`./lib/tools/skills/skill-state.ts`, `credential-slots.ts`,
|
|
975
|
+
`manifest-parse.ts`, `overlay-crud.ts` and `scope-key.ts`. Import
|
|
976
|
+
`@qvac/harness/drive`, `@qvac/harness/skill-state` (`SKILL_STATE`,
|
|
977
|
+
`isDeviceSharedCredentialKey`), `@qvac/harness/skill-manifest`
|
|
978
|
+
(`credentialSlots`, `readSkillSetup`), and the `ManagedSkill` and
|
|
979
|
+
`SkillFileContent` types from `@qvac/harness`. (#636)
|
|
980
|
+
|
|
963
981
|
- **Breaking:** `harnessLogEnabled` from `./lib/log.ts`: use
|
|
964
982
|
`HarnessLog.enabled(level)` or `HarnessLog.level()`. (#471, #506, #532)
|
|
965
983
|
- **Breaking:** `./lib/log.ts` exports the `HarnessLog` class in place of the
|
package/dist-lib/index.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ import { type HarnessSkillsOptions } from './lib/skills-host/index.ts';
|
|
|
26
26
|
import type { CredentialStoreFn, CredentialStoreValue } from './lib/tools/skills/auth-resolver.ts';
|
|
27
27
|
import type { CopyBaseResult, DeleteOverlayResult, ManagedSkill, SkillFileContent } from './lib/tools/skills/overlay-crud.ts';
|
|
28
28
|
import { HarnessLog } from './lib/log.ts';
|
|
29
|
-
import {
|
|
29
|
+
import type { DriveOpFn, GrantedDrive } from './lib/tools/fs/remote-protocol.ts';
|
|
30
30
|
import type { ResolvedSkillCatalogEntry } from './lib/tools/skills/catalog.ts';
|
|
31
31
|
import type { SkillSettingEntry } from './lib/tools/skills/skill-settings.ts';
|
|
32
32
|
export type * from './lib/contract/index.ts';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { DriveDir, DriveEntry } from '../tools/fs/
|
|
2
|
-
export type { DriveOpFn, GrantedDrive } from '../tools/fs/remote.ts';
|
|
1
|
+
export type { DriveDir, DriveEntry } from '../tools/fs/remote-protocol.ts';
|
|
2
|
+
export type { DriveOpFn, GrantedDrive } from '../tools/fs/remote-protocol.ts';
|
|
3
3
|
export type { DriveEntryRequest, DriveGetRequest, DriveListRequest, DriveReadRequest, DriveRequest, DriveResponse, DriveSearchQuery, DriveSearchRequest, DriveWriteRequest } from '../tools/fs/remote-protocol.ts';
|
|
4
4
|
export type { SearchHit } from '../tools/fs/search.ts';
|
|
@@ -12,7 +12,7 @@ import type { DeleteModelSummary } from './models/model-delete.ts';
|
|
|
12
12
|
import type { ListModelsOptions, ModelInfo } from './models/model-list.ts';
|
|
13
13
|
import type { ToolCatalogEntry } from './tools/catalog.ts';
|
|
14
14
|
import type { ManagedSkill, SkillFileContent } from './tools/skills/overlay-crud.ts';
|
|
15
|
-
import type { DriveOpFn, GrantedDrive } from './tools/fs/remote.ts';
|
|
15
|
+
import type { DriveOpFn, GrantedDrive } from './tools/fs/remote-protocol.ts';
|
|
16
16
|
import type { SpeakResult } from './contract/speech.ts';
|
|
17
17
|
import type { RunInput } from './contract/completion.ts';
|
|
18
18
|
import type { RunGoal, TurnContext } from './contract/run.ts';
|
|
@@ -1,21 +1,6 @@
|
|
|
1
1
|
import type { Writable } from 'streamx';
|
|
2
2
|
import { HarnessError } from '../../errors.ts';
|
|
3
|
-
|
|
4
|
-
key: string;
|
|
5
|
-
value: {
|
|
6
|
-
executable: boolean;
|
|
7
|
-
linkname: string | null;
|
|
8
|
-
blob: {
|
|
9
|
-
byteLength: number;
|
|
10
|
-
} | null;
|
|
11
|
-
metadata: unknown;
|
|
12
|
-
};
|
|
13
|
-
mtime?: number;
|
|
14
|
-
}
|
|
15
|
-
export interface DriveDir {
|
|
16
|
-
key: string;
|
|
17
|
-
dir: true;
|
|
18
|
-
}
|
|
3
|
+
import type { DriveDir, DriveEntry } from './remote-protocol.ts';
|
|
19
4
|
export interface DriveListOptions {
|
|
20
5
|
skip?: ReadonlySet<string>;
|
|
21
6
|
recursive?: boolean;
|
|
@@ -1,5 +1,26 @@
|
|
|
1
|
-
import type { DriveDir, DriveEntry } from './drive.ts';
|
|
2
1
|
import type { SearchHit } from './search.ts';
|
|
2
|
+
export interface DriveEntry {
|
|
3
|
+
key: string;
|
|
4
|
+
value: {
|
|
5
|
+
executable: boolean;
|
|
6
|
+
linkname: string | null;
|
|
7
|
+
blob: {
|
|
8
|
+
byteLength: number;
|
|
9
|
+
} | null;
|
|
10
|
+
metadata: unknown;
|
|
11
|
+
};
|
|
12
|
+
mtime?: number;
|
|
13
|
+
}
|
|
14
|
+
export interface DriveDir {
|
|
15
|
+
key: string;
|
|
16
|
+
dir: true;
|
|
17
|
+
}
|
|
18
|
+
export interface GrantedDrive {
|
|
19
|
+
readonly key: string;
|
|
20
|
+
readonly writable: boolean;
|
|
21
|
+
readonly search?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare const MAX_DRIVE_BYTES: number;
|
|
3
24
|
export interface DriveEntryRequest {
|
|
4
25
|
op: 'entry';
|
|
5
26
|
driveKey: string;
|
|
@@ -58,3 +79,4 @@ export interface DriveResponse {
|
|
|
58
79
|
cut?: boolean;
|
|
59
80
|
skippedLinks?: number;
|
|
60
81
|
}
|
|
82
|
+
export type DriveOpFn = (request: DriveRequest) => Promise<DriveResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export const MAX_DRIVE_BYTES = 8 * 1024 * 1024;
|
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type DriveOpFn, type GrantedDrive } from './remote-protocol.ts';
|
|
2
2
|
import type { HyperRoot } from './scope.ts';
|
|
3
|
-
export interface GrantedDrive {
|
|
4
|
-
readonly key: string;
|
|
5
|
-
readonly writable: boolean;
|
|
6
|
-
readonly search?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export type DriveOpFn = (request: DriveRequest) => Promise<DriveResponse>;
|
|
9
3
|
export declare const DRIVE_CALL_TIMEOUT_MS = 20000;
|
|
10
4
|
export declare const DRIVE_SEARCH_TIMEOUT_MS: number;
|
|
11
|
-
export declare const MAX_DRIVE_BYTES: number;
|
|
12
5
|
export declare const DRIVE_LIST_PAGE = 256;
|
|
13
6
|
export interface RemoteRootsOptions {
|
|
14
7
|
readonly timeoutMs?: number;
|
|
@@ -3,11 +3,11 @@ import path from 'path';
|
|
|
3
3
|
import { Writable } from 'streamx';
|
|
4
4
|
import { HarnessError } from '../../errors.js';
|
|
5
5
|
import { DriveReadTruncatedError } from './drive.js';
|
|
6
|
+
import { MAX_DRIVE_BYTES } from './remote-protocol.js';
|
|
6
7
|
import { MAX_WALK_MS } from './walk.js';
|
|
7
8
|
import { STAGING_DIR } from '../../staging.js';
|
|
8
9
|
export const DRIVE_CALL_TIMEOUT_MS = 20_000;
|
|
9
10
|
export const DRIVE_SEARCH_TIMEOUT_MS = MAX_WALK_MS + DRIVE_CALL_TIMEOUT_MS;
|
|
10
|
-
export const MAX_DRIVE_BYTES = 8 * 1024 * 1024;
|
|
11
11
|
export const DRIVE_LIST_PAGE = 256;
|
|
12
12
|
const noop = () => { };
|
|
13
13
|
function withTimeout(promise, ms, op) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { InstallStep, SkillRequires, SkillSetup } from './manifest.ts';
|
|
2
2
|
export { credentialSlots, type CredentialSlotSource } from './credential-slots.ts';
|
|
3
|
+
export { readSetup as readSkillSetup } from './manifest-parse.ts';
|
|
3
4
|
export interface SkillFrontMatter {
|
|
4
5
|
name?: string;
|
|
5
6
|
displayName?: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { parseManifestBlock } from './manifest-parse.js';
|
|
2
2
|
import { isMentionHandle } from './mention-name.js';
|
|
3
3
|
export { credentialSlots } from './credential-slots.js';
|
|
4
|
+
export { readSetup as readSkillSetup } from './manifest-parse.js';
|
|
4
5
|
const FRONT_MATTER_RE = /^---\r?\n([\s\S]*?)\r?\n---\r?\n?([\s\S]*)$/;
|
|
5
6
|
const FIELD_RE = /^([A-Za-z_][\w-]*):(.*)$/;
|
|
6
7
|
export function parseSkillFrontMatter(raw) {
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qvac/harness",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"bare": ">=1.34.0",
|
|
@@ -220,6 +220,14 @@
|
|
|
220
220
|
"types": "./dist-lib/lib/tools/skills/skill-state-constants.d.ts",
|
|
221
221
|
"default": "./dist-lib/lib/tools/skills/skill-state-constants.js"
|
|
222
222
|
},
|
|
223
|
+
"./skill-catalog": {
|
|
224
|
+
"types": "./dist-lib/lib/tools/skills/catalog.d.ts",
|
|
225
|
+
"default": "./dist-lib/lib/tools/skills/catalog.js"
|
|
226
|
+
},
|
|
227
|
+
"./drive": {
|
|
228
|
+
"types": "./dist-lib/lib/tools/fs/remote-protocol.d.ts",
|
|
229
|
+
"default": "./dist-lib/lib/tools/fs/remote-protocol.js"
|
|
230
|
+
},
|
|
223
231
|
"./lib/tools/exec/adapters/shell/shell-adapter.ts": {
|
|
224
232
|
"types": "./dist-lib/lib/tools/exec/adapters/shell/shell-adapter.d.ts",
|
|
225
233
|
"default": "./dist-lib/lib/tools/exec/adapters/shell/shell-adapter.js"
|
|
@@ -414,43 +422,15 @@
|
|
|
414
422
|
"types": "./dist-lib/lib/sidecar/index.d.ts",
|
|
415
423
|
"default": "./dist-lib/lib/sidecar/index.js"
|
|
416
424
|
},
|
|
425
|
+
"./user-plugins": {
|
|
426
|
+
"types": "./dist-lib/lib/sidecar/user-plugins.d.ts",
|
|
427
|
+
"default": "./dist-lib/lib/sidecar/user-plugins.js"
|
|
428
|
+
},
|
|
417
429
|
"./worker/harness-sidecar.mjs": "./worker/harness-sidecar.mjs",
|
|
418
430
|
"./worker/stow-entry.mjs": "./worker/stow-entry.mjs",
|
|
419
431
|
"./addon-externals": {
|
|
420
432
|
"types": "./scripts/addon-externals.d.ts",
|
|
421
433
|
"default": "./scripts/addon-externals.cjs"
|
|
422
|
-
},
|
|
423
|
-
"./lib/tools/fs/drive.ts": {
|
|
424
|
-
"types": "./dist-lib/lib/tools/fs/drive.d.ts",
|
|
425
|
-
"default": "./dist-lib/lib/tools/fs/drive.js"
|
|
426
|
-
},
|
|
427
|
-
"./lib/tools/fs/remote-protocol.ts": {
|
|
428
|
-
"types": "./dist-lib/lib/tools/fs/remote-protocol.d.ts",
|
|
429
|
-
"default": "./dist-lib/lib/tools/fs/remote-protocol.js"
|
|
430
|
-
},
|
|
431
|
-
"./lib/tools/fs/remote.ts": {
|
|
432
|
-
"types": "./dist-lib/lib/tools/fs/remote.d.ts",
|
|
433
|
-
"default": "./dist-lib/lib/tools/fs/remote.js"
|
|
434
|
-
},
|
|
435
|
-
"./lib/tools/skills/skill-state.ts": {
|
|
436
|
-
"types": "./dist-lib/lib/tools/skills/skill-state.d.ts",
|
|
437
|
-
"default": "./dist-lib/lib/tools/skills/skill-state.js"
|
|
438
|
-
},
|
|
439
|
-
"./lib/tools/skills/credential-slots.ts": {
|
|
440
|
-
"types": "./dist-lib/lib/tools/skills/credential-slots.d.ts",
|
|
441
|
-
"default": "./dist-lib/lib/tools/skills/credential-slots.js"
|
|
442
|
-
},
|
|
443
|
-
"./lib/tools/skills/manifest-parse.ts": {
|
|
444
|
-
"types": "./dist-lib/lib/tools/skills/manifest-parse.d.ts",
|
|
445
|
-
"default": "./dist-lib/lib/tools/skills/manifest-parse.js"
|
|
446
|
-
},
|
|
447
|
-
"./lib/tools/skills/overlay-crud.ts": {
|
|
448
|
-
"types": "./dist-lib/lib/tools/skills/overlay-crud.d.ts",
|
|
449
|
-
"default": "./dist-lib/lib/tools/skills/overlay-crud.js"
|
|
450
|
-
},
|
|
451
|
-
"./lib/tools/skills/scope-key.ts": {
|
|
452
|
-
"types": "./dist-lib/lib/tools/skills/scope-key.d.ts",
|
|
453
|
-
"default": "./dist-lib/lib/tools/skills/scope-key.js"
|
|
454
434
|
}
|
|
455
435
|
},
|
|
456
436
|
"scripts": {
|