@xrkseek/harness-cli 0.1.0 → 0.1.2
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/README.md +1 -1
- package/dist/port.d.ts.map +1 -1
- package/dist/port.js +1 -0
- package/dist/port.js.map +1 -1
- package/node_modules/@xrkseek/preset-server/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@xrkseek/xrk-file-reference/dist/grammar.d.ts +33 -0
- package/node_modules/@xrkseek/xrk-file-reference/dist/grammar.d.ts.map +1 -0
- package/node_modules/@xrkseek/xrk-file-reference/dist/grammar.js +43 -0
- package/node_modules/@xrkseek/xrk-file-reference/dist/grammar.js.map +1 -0
- package/node_modules/@xrkseek/xrk-file-reference/dist/types.d.ts +13 -0
- package/node_modules/@xrkseek/xrk-file-reference/dist/types.d.ts.map +1 -0
- package/node_modules/@xrkseek/xrk-file-reference/dist/types.js +7 -0
- package/node_modules/@xrkseek/xrk-file-reference/dist/types.js.map +1 -0
- package/node_modules/@xrkseek/xrk-file-reference/package.json +9 -46
- package/node_modules/@xrkseek/xrk-file-reference-local/dist/search.d.ts +52 -0
- package/node_modules/@xrkseek/xrk-file-reference-local/dist/search.d.ts.map +1 -0
- package/node_modules/@xrkseek/xrk-file-reference-local/dist/search.js +258 -0
- package/node_modules/@xrkseek/xrk-file-reference-local/dist/search.js.map +1 -0
- package/node_modules/@xrkseek/xrk-file-reference-local/package.json +7 -34
- package/node_modules/@xrkseek/xrk-session-reference/dist/config.d.ts +25 -0
- package/node_modules/@xrkseek/xrk-session-reference/dist/config.d.ts.map +1 -0
- package/node_modules/@xrkseek/xrk-session-reference/dist/config.js +18 -0
- package/node_modules/@xrkseek/xrk-session-reference/dist/config.js.map +1 -0
- package/node_modules/@xrkseek/xrk-session-reference/dist/types.d.ts +70 -0
- package/node_modules/@xrkseek/xrk-session-reference/dist/types.d.ts.map +1 -0
- package/node_modules/@xrkseek/xrk-session-reference/dist/types.js +11 -0
- package/node_modules/@xrkseek/xrk-session-reference/dist/types.js.map +1 -0
- package/node_modules/@xrkseek/xrk-session-reference/dist/uri.d.ts +40 -0
- package/node_modules/@xrkseek/xrk-session-reference/dist/uri.d.ts.map +1 -0
- package/node_modules/@xrkseek/xrk-session-reference/dist/uri.js +81 -0
- package/node_modules/@xrkseek/xrk-session-reference/dist/uri.js.map +1 -0
- package/node_modules/@xrkseek/xrk-session-reference/package.json +13 -53
- package/package.json +3 -2
- package/product-web/boot.json +1 -1
- package/product-web/plugins/@xrkseek/client-connection/client.js +1160 -367
- package/product-web/plugins/@xrkseek/client-locale/client.js +3 -3
- package/product-web/plugins/@xrkseek/client-runtime/client.js +4 -13
- package/product-web/plugins/@xrkseek/client-ui-agent-preset/client.js +38 -38
- package/product-web/plugins/@xrkseek/client-ui-attachment/client.js +15 -15
- package/product-web/plugins/@xrkseek/client-ui-commands/client.js +8 -8
- package/product-web/plugins/@xrkseek/client-ui-conversation/client.js +169 -169
- package/product-web/plugins/@xrkseek/client-ui-deliverables/client.js +4 -4
- package/product-web/plugins/@xrkseek/client-ui-directory-picker-browse/client.js +26 -26
- package/product-web/plugins/@xrkseek/client-ui-goal/client.js +7 -7
- package/product-web/plugins/@xrkseek/client-ui-input-trigger/client.js +8 -8
- package/product-web/plugins/@xrkseek/client-ui-jobs/client.js +7 -7
- package/product-web/plugins/@xrkseek/client-ui-layout/client.js +3 -3
- package/product-web/plugins/@xrkseek/client-ui-message-feedback/client.js +4 -4
- package/product-web/plugins/@xrkseek/client-ui-model-selection/client.js +17 -17
- package/product-web/plugins/@xrkseek/client-ui-permission-presets/client.js +4 -4
- package/product-web/plugins/@xrkseek/client-ui-plan/client.js +3 -3
- package/product-web/plugins/@xrkseek/client-ui-settings-general/client.js +14 -14
- package/product-web/plugins/@xrkseek/client-ui-settings-models/client.js +57 -57
- package/product-web/plugins/@xrkseek/client-ui-settings-plugin-inventory/client.js +12 -12
- package/product-web/plugins/@xrkseek/client-ui-settings-plugins/client.js +41 -41
- package/product-web/plugins/@xrkseek/client-ui-sidebar/client.js +13 -13
- package/product-web/plugins/@xrkseek/client-ui-skill/client.js +10 -10
- package/product-web/plugins/@xrkseek/client-ui-subagent/client.js +21 -21
- package/product-web/plugins/@xrkseek/client-ui-theme/client.js +3 -3
- package/product-web/plugins/@xrkseek/client-ui-tool/client.js +40 -40
- package/product-web/plugins/@xrkseek/client-ui-trajectory/client.js +141 -141
- package/product-web/plugins/@xrkseek/client-ui-user-questions/client.js +27 -27
- package/product-web/plugins/@xrkseek/client-ui-workflow-run/client.js +14 -14
- package/product-web/plugins/@xrkseek/client-ui-workspace/client.js +54 -54
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public session-reference request, candidate, and preparation records.
|
|
3
|
+
* Face discovery imports stay on type-only subpaths; Cordis prepare lives in
|
|
4
|
+
* `index.ts` (not wired on XRK Host main path).
|
|
5
|
+
* @module @xrkseek/xrk-session-reference/types
|
|
6
|
+
*/
|
|
7
|
+
import type { ContentBlock, UserMessage } from '@xrkseek/protocol';
|
|
8
|
+
/** Opaque session id (Face path; Cordis prepare uses branded ids when wired). */
|
|
9
|
+
export type SessionId = string & {
|
|
10
|
+
readonly __xrkSessionId?: unique symbol;
|
|
11
|
+
};
|
|
12
|
+
/** Brand a raw session id string for URI codec helpers. */
|
|
13
|
+
export declare function SessionId(id: string): SessionId;
|
|
14
|
+
/** Durable source session, cited event seqs, and snapshot facts for prepared cross-session context. */
|
|
15
|
+
export interface SessionReferenceSource {
|
|
16
|
+
kind: 'session-reference';
|
|
17
|
+
/** Material lifted out of another session's log (`recall` context form). */
|
|
18
|
+
form: 'recall';
|
|
19
|
+
version: 1;
|
|
20
|
+
references: {
|
|
21
|
+
sessionId: string;
|
|
22
|
+
label: string;
|
|
23
|
+
capturedThroughSeq: number | null;
|
|
24
|
+
compacted: boolean;
|
|
25
|
+
originalMessages: number;
|
|
26
|
+
retainedMessages: number;
|
|
27
|
+
omittedMessages: number;
|
|
28
|
+
omittedBytes: number;
|
|
29
|
+
truncated: boolean;
|
|
30
|
+
inputIndex: number;
|
|
31
|
+
}[];
|
|
32
|
+
}
|
|
33
|
+
/** One source session selected by a host. */
|
|
34
|
+
export interface SessionReferenceInput {
|
|
35
|
+
/** Opaque source session identity. */
|
|
36
|
+
sessionId: SessionId;
|
|
37
|
+
/** Optional user-facing mention label. */
|
|
38
|
+
label?: string;
|
|
39
|
+
}
|
|
40
|
+
/** One host-facing candidate from exact session metadata. */
|
|
41
|
+
export interface SessionReferenceCandidate {
|
|
42
|
+
/** Opaque source session identity. */
|
|
43
|
+
sessionId: SessionId;
|
|
44
|
+
/** Latest log-backed title, falling back to the opaque session id. */
|
|
45
|
+
label: string;
|
|
46
|
+
/** Source session working directory, when recorded. */
|
|
47
|
+
cwd?: string;
|
|
48
|
+
/** Source session creation time in Unix epoch milliseconds. */
|
|
49
|
+
createdAt: number;
|
|
50
|
+
}
|
|
51
|
+
/** One discovery candidate carrying its canonical prompt mention. */
|
|
52
|
+
export interface SessionReferenceMentionCandidate extends SessionReferenceCandidate {
|
|
53
|
+
/** Canonical `@[label](dsh-session:…)` mention serialized into the prompt draft. */
|
|
54
|
+
mention: string;
|
|
55
|
+
}
|
|
56
|
+
/** Direct message content and optional referenced-session context. */
|
|
57
|
+
export interface PreparedReferencedMessage {
|
|
58
|
+
/** Readable message content after host mention tokens are removed. */
|
|
59
|
+
content: ContentBlock[];
|
|
60
|
+
/** Aggregated untrusted snapshot, absent when the message has no references. */
|
|
61
|
+
additionalContext?: UserMessage;
|
|
62
|
+
}
|
|
63
|
+
/** Text-only projected conversation item. */
|
|
64
|
+
export interface ReferencedConversationItem {
|
|
65
|
+
/** Original message role. */
|
|
66
|
+
role: 'user' | 'assistant';
|
|
67
|
+
/** Visible text retained from that message. */
|
|
68
|
+
text: string;
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","s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,WAAW,gCAAiC,SAAQ,yBAAyB;IACjF,oFAAoF;IACpF,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,sEAAsE;AACtE,MAAM,WAAW,yBAAyB;IACxC,sEAAsE;IACtE,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,gFAAgF;IAChF,iBAAiB,CAAC,EAAE,WAAW,CAAA;CAChC;AAED,6CAA6C;AAC7C,MAAM,WAAW,0BAA0B;IACzC,6BAA6B;IAC7B,IAAI,EAAE,MAAM,GAAG,WAAW,CAAA;IAC1B,+CAA+C;IAC/C,IAAI,EAAE,MAAM,CAAA;CACb"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public session-reference request, candidate, and preparation records.
|
|
3
|
+
* Face discovery imports stay on type-only subpaths; Cordis prepare lives in
|
|
4
|
+
* `index.ts` (not wired on XRK Host main path).
|
|
5
|
+
* @module @xrkseek/xrk-session-reference/types
|
|
6
|
+
*/
|
|
7
|
+
/** Brand a raw session id string for URI codec helpers. */
|
|
8
|
+
export function SessionId(id) {
|
|
9
|
+
return id;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,2DAA2D;AAC3D,MAAM,UAAU,SAAS,CAAC,EAAU;IAClC,OAAO,EAAe,CAAA;AACxB,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/** Canonical session URI and inline mention encoding. */
|
|
2
|
+
import { type SessionId as SessionIdType } from './types.js';
|
|
3
|
+
import type { SessionReferenceInput } from './types.js';
|
|
4
|
+
/** URI scheme reserved for XRK-Harness session snapshots. */
|
|
5
|
+
export declare const SESSION_REFERENCE_SCHEME = "dsh-session:";
|
|
6
|
+
/**
|
|
7
|
+
* Encode any JavaScript session-id string as a canonical lossless URI.
|
|
8
|
+
* @param sessionId - opaque session id to serialize.
|
|
9
|
+
* @returns canonical `dsh-session:` URI.
|
|
10
|
+
*/
|
|
11
|
+
export declare function encodeSessionReferenceUri(sessionId: SessionIdType): string;
|
|
12
|
+
/**
|
|
13
|
+
* Decode and canonicalize one session-reference URI.
|
|
14
|
+
* @param uri - complete canonical URI.
|
|
15
|
+
* @returns decoded session id.
|
|
16
|
+
*/
|
|
17
|
+
export declare function decodeSessionReferenceUri(uri: string): SessionIdType;
|
|
18
|
+
/**
|
|
19
|
+
* Render a host-neutral Markdown mention carrying the canonical URI.
|
|
20
|
+
* @param reference - structured id and optional display label.
|
|
21
|
+
* @returns escaped `@[label](uri)` mention.
|
|
22
|
+
*/
|
|
23
|
+
export declare function formatSessionReferenceMention(reference: SessionReferenceInput): string;
|
|
24
|
+
/** Result of extracting canonical mentions from plain text. */
|
|
25
|
+
export interface ParsedSessionReferenceText {
|
|
26
|
+
/** Text with opaque tokens replaced by readable `@label` spans. */
|
|
27
|
+
text: string;
|
|
28
|
+
/** Structured references in first-appearance order, before service deduplication. */
|
|
29
|
+
references: SessionReferenceInput[];
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Extract Markdown mentions and bare canonical URIs from one text value.
|
|
33
|
+
* Explicit Markdown mentions fail on any malformed URI. Bare text is treated
|
|
34
|
+
* as a reference only when it has a non-empty base64url-shaped payload, then
|
|
35
|
+
* still fails if that candidate is not canonical.
|
|
36
|
+
* @param text - host text to normalize.
|
|
37
|
+
* @returns readable text and structured references in appearance order.
|
|
38
|
+
*/
|
|
39
|
+
export declare function parseSessionReferenceText(text: string): ParsedSessionReferenceText;
|
|
40
|
+
//# sourceMappingURL=uri.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uri.d.ts","sourceRoot":"","sources":["../src/uri.ts"],"names":[],"mappings":"AAAA,yDAAyD;AAEzD,OAAO,EAAa,KAAK,SAAS,IAAI,aAAa,EAAE,MAAM,YAAY,CAAA;AAEvE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAEvD,6DAA6D;AAC7D,eAAO,MAAM,wBAAwB,iBAAiB,CAAA;AAEtD;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,aAAa,GAAG,MAAM,CAG1E;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAepE;AAED;;;;GAIG;AACH,wBAAgB,6BAA6B,CAAC,SAAS,EAAE,qBAAqB,GAAG,MAAM,CAGtF;AAED,+DAA+D;AAC/D,MAAM,WAAW,0BAA0B;IACzC,mEAAmE;IACnE,IAAI,EAAE,MAAM,CAAA;IACZ,qFAAqF;IACrF,UAAU,EAAE,qBAAqB,EAAE,CAAA;CACpC;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,0BAA0B,CAkBlF"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/** Canonical session URI and inline mention encoding. */
|
|
2
|
+
import { SessionId } from './types.js';
|
|
3
|
+
import { SessionReferenceError } from './config.js';
|
|
4
|
+
/** URI scheme reserved for XRK-Harness session snapshots. */
|
|
5
|
+
export const SESSION_REFERENCE_SCHEME = 'dsh-session:';
|
|
6
|
+
/**
|
|
7
|
+
* Encode any JavaScript session-id string as a canonical lossless URI.
|
|
8
|
+
* @param sessionId - opaque session id to serialize.
|
|
9
|
+
* @returns canonical `dsh-session:` URI.
|
|
10
|
+
*/
|
|
11
|
+
export function encodeSessionReferenceUri(sessionId) {
|
|
12
|
+
const payload = Buffer.from(JSON.stringify(sessionId), 'utf8').toString('base64url');
|
|
13
|
+
return `${SESSION_REFERENCE_SCHEME}${payload}`;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Decode and canonicalize one session-reference URI.
|
|
17
|
+
* @param uri - complete canonical URI.
|
|
18
|
+
* @returns decoded session id.
|
|
19
|
+
*/
|
|
20
|
+
export function decodeSessionReferenceUri(uri) {
|
|
21
|
+
if (!uri.startsWith(SESSION_REFERENCE_SCHEME)) {
|
|
22
|
+
throw invalidUri(uri);
|
|
23
|
+
}
|
|
24
|
+
const payload = uri.slice(SESSION_REFERENCE_SCHEME.length);
|
|
25
|
+
if (!/^[A-Za-z0-9_-]+$/.test(payload))
|
|
26
|
+
throw invalidUri(uri);
|
|
27
|
+
try {
|
|
28
|
+
const parsed = JSON.parse(Buffer.from(payload, 'base64url').toString('utf8'));
|
|
29
|
+
if (typeof parsed !== 'string')
|
|
30
|
+
throw new TypeError('decoded session id is not a string');
|
|
31
|
+
const sessionId = SessionId(parsed);
|
|
32
|
+
if (encodeSessionReferenceUri(sessionId) !== uri)
|
|
33
|
+
throw new TypeError('URI is not canonical');
|
|
34
|
+
return sessionId;
|
|
35
|
+
}
|
|
36
|
+
catch (error) {
|
|
37
|
+
throw invalidUri(uri, error);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Render a host-neutral Markdown mention carrying the canonical URI.
|
|
42
|
+
* @param reference - structured id and optional display label.
|
|
43
|
+
* @returns escaped `@[label](uri)` mention.
|
|
44
|
+
*/
|
|
45
|
+
export function formatSessionReferenceMention(reference) {
|
|
46
|
+
const label = escapeLabel(reference.label ?? reference.sessionId);
|
|
47
|
+
return `@[${label}](${encodeSessionReferenceUri(reference.sessionId)})`;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Extract Markdown mentions and bare canonical URIs from one text value.
|
|
51
|
+
* Explicit Markdown mentions fail on any malformed URI. Bare text is treated
|
|
52
|
+
* as a reference only when it has a non-empty base64url-shaped payload, then
|
|
53
|
+
* still fails if that candidate is not canonical.
|
|
54
|
+
* @param text - host text to normalize.
|
|
55
|
+
* @returns readable text and structured references in appearance order.
|
|
56
|
+
*/
|
|
57
|
+
export function parseSessionReferenceText(text) {
|
|
58
|
+
const references = [];
|
|
59
|
+
const pattern = /@\[((?:\\.|[^\\\]])*)\]\((dsh-session:[^\s)]*)\)|(dsh-session:[A-Za-z0-9_-]+)/gu;
|
|
60
|
+
const rendered = text.replace(pattern, (_match, rawLabel, markdownUri, bareUri) => {
|
|
61
|
+
const uri = markdownUri ?? bareUri;
|
|
62
|
+
/* v8 ignore next -- the two-alternative regex always captures exactly one URI group. */
|
|
63
|
+
if (uri === undefined)
|
|
64
|
+
throw new SessionReferenceError('session reference URI is missing', 'SESSION_REFERENCE_INVALID_REFERENCE');
|
|
65
|
+
const sessionId = decodeSessionReferenceUri(uri);
|
|
66
|
+
const label = rawLabel === undefined ? sessionId : unescapeLabel(rawLabel);
|
|
67
|
+
references.push({ sessionId, label });
|
|
68
|
+
return `@${label}`;
|
|
69
|
+
});
|
|
70
|
+
return { text: rendered, references };
|
|
71
|
+
}
|
|
72
|
+
function escapeLabel(label) {
|
|
73
|
+
return label.replace(/[\\\]]/gu, match => `\\${match}`);
|
|
74
|
+
}
|
|
75
|
+
function unescapeLabel(label) {
|
|
76
|
+
return label.replace(/\\(.)/gu, '$1');
|
|
77
|
+
}
|
|
78
|
+
function invalidUri(uri, cause) {
|
|
79
|
+
return new SessionReferenceError(`invalid session reference URI ${JSON.stringify(uri)}`, 'SESSION_REFERENCE_INVALID_REFERENCE', cause === undefined ? undefined : { cause });
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=uri.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uri.js","sourceRoot":"","sources":["../src/uri.ts"],"names":[],"mappings":"AAAA,yDAAyD;AAEzD,OAAO,EAAE,SAAS,EAAmC,MAAM,YAAY,CAAA;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAGnD,6DAA6D;AAC7D,MAAM,CAAC,MAAM,wBAAwB,GAAG,cAAc,CAAA;AAEtD;;;;GAIG;AACH,MAAM,UAAU,yBAAyB,CAAC,SAAwB;IAChE,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,IAA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EACtD,qCAAqC,EACrC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAC5C,CAAA;AACH,CAAC"}
|
|
@@ -8,72 +8,32 @@
|
|
|
8
8
|
"directory": "packages/context/session-reference"
|
|
9
9
|
},
|
|
10
10
|
"type": "module",
|
|
11
|
-
"main": "lib/index.js",
|
|
12
|
-
"types": "lib/types/index.d.ts",
|
|
13
11
|
"exports": {
|
|
14
|
-
".": {
|
|
15
|
-
"types": "./lib/types/index.d.ts",
|
|
16
|
-
"default": "./lib/index.js"
|
|
17
|
-
},
|
|
18
|
-
"./invariant": {
|
|
19
|
-
"types": "./lib/types/invariant.d.ts",
|
|
20
|
-
"default": "./lib/invariant.js"
|
|
21
|
-
},
|
|
22
12
|
"./types": {
|
|
23
|
-
"types": "./
|
|
24
|
-
"
|
|
13
|
+
"types": "./dist/types.d.ts",
|
|
14
|
+
"import": "./dist/types.js",
|
|
15
|
+
"default": "./dist/types.js"
|
|
25
16
|
},
|
|
26
17
|
"./config": {
|
|
27
|
-
"types": "./
|
|
28
|
-
"
|
|
18
|
+
"types": "./dist/config.d.ts",
|
|
19
|
+
"import": "./dist/config.js",
|
|
20
|
+
"default": "./dist/config.js"
|
|
29
21
|
},
|
|
30
22
|
"./uri": {
|
|
31
|
-
"types": "./
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
"./typert": {
|
|
35
|
-
"types": "./lib/typert.host.d.ts",
|
|
36
|
-
"default": "./lib/typert.host.js"
|
|
23
|
+
"types": "./dist/uri.d.ts",
|
|
24
|
+
"import": "./dist/uri.js",
|
|
25
|
+
"default": "./dist/uri.js"
|
|
37
26
|
},
|
|
38
|
-
"./remote": {
|
|
39
|
-
"types": "./lib/typert.remote-client.d.ts",
|
|
40
|
-
"default": "./lib/typert.remote-client.js"
|
|
41
|
-
},
|
|
42
|
-
"./src/*": "./src/*",
|
|
43
27
|
"./package.json": "./package.json"
|
|
44
28
|
},
|
|
45
29
|
"files": [
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"lib/types/**/*.d.ts",
|
|
50
|
-
"lib/typert.host.js",
|
|
51
|
-
"lib/typert.host.d.ts",
|
|
52
|
-
"lib/typert.remote-client.js",
|
|
53
|
-
"lib/typert.remote-client.d.ts"
|
|
30
|
+
"dist",
|
|
31
|
+
"README.md",
|
|
32
|
+
"README.zh.md"
|
|
54
33
|
],
|
|
55
34
|
"license": "MIT",
|
|
56
35
|
"dependencies": {
|
|
57
|
-
"@xrkseek/
|
|
58
|
-
"zod": "^4.4.3"
|
|
59
|
-
},
|
|
60
|
-
"peerDependencies": {
|
|
61
|
-
"@xrkseek/xrk-agent": "workspace:^",
|
|
62
|
-
"@xrkseek/xrk-compaction": "workspace:^",
|
|
63
|
-
"@xrkseek/xrk-invariants": "workspace:^",
|
|
64
|
-
"@xrkseek/xrk-llm": "workspace:^",
|
|
65
|
-
"@xrkseek/xrk-session": "workspace:^",
|
|
66
|
-
"@xrkseek/xrk-typert-protocol": "workspace:^",
|
|
67
|
-
"@xrkseek/cordis": "workspace:^"
|
|
68
|
-
},
|
|
69
|
-
"devDependencies": {
|
|
70
|
-
"@xrkseek/xrk-agent": "workspace:^",
|
|
71
|
-
"@xrkseek/xrk-compaction": "workspace:^",
|
|
72
|
-
"@xrkseek/xrk-invariants": "workspace:^",
|
|
73
|
-
"@xrkseek/xrk-llm": "workspace:^",
|
|
74
|
-
"@xrkseek/xrk-session": "workspace:^",
|
|
75
|
-
"@xrkseek/xrk-typert-protocol": "workspace:^",
|
|
76
|
-
"@xrkseek/cordis": "workspace:^"
|
|
36
|
+
"@xrkseek/protocol": "workspace:*"
|
|
77
37
|
},
|
|
78
38
|
"private": true
|
|
79
39
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xrkseek/harness-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "XRK-Harness CLI (run / serve / web / plugin). Product shell ships in product-web/.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
"README.md"
|
|
17
17
|
],
|
|
18
18
|
"bin": {
|
|
19
|
-
"xrk-harness": "./dist/bin.js"
|
|
19
|
+
"xrk-harness": "./dist/bin.js",
|
|
20
|
+
"xrkh": "./dist/bin.js"
|
|
20
21
|
},
|
|
21
22
|
"dependencies": {
|
|
22
23
|
"@hono/node-server": "2.1.1",
|
package/product-web/boot.json
CHANGED