@xrkseek/harness 0.6.0 → 0.6.1
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/node_modules/@xrkseek/core-session/dist/sqlite-store.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/sqlite-store.js +63 -34
- package/node_modules/@xrkseek/core-session/dist/sqlite-store.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/store-lock.d.ts +4 -1
- package/node_modules/@xrkseek/core-session/dist/store-lock.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/store-lock.js +63 -7
- package/node_modules/@xrkseek/core-session/dist/store-lock.js.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/index.d.ts +8 -4
- package/node_modules/@xrkseek/exec-fs/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/index.js +14 -5
- package/node_modules/@xrkseek/exec-fs/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts +6 -3
- package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts.map +1 -1
- package/node_modules/@xrkseek/preset-harness/dist/preset.js +34 -19
- package/node_modules/@xrkseek/preset-harness/dist/preset.js.map +1 -1
- package/node_modules/@xrkseek/preset-harness/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@xrkseek/preset-minimal/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@xrkseek/preset-server/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@xrkseek/server-face/dist/collab-board.d.ts +15 -0
- package/node_modules/@xrkseek/server-face/dist/collab-board.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/collab-board.js +62 -2
- package/node_modules/@xrkseek/server-face/dist/collab-board.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/dispatch.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/dispatch.js +2 -15
- package/node_modules/@xrkseek/server-face/dist/dispatch.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/session.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/session.js +38 -21
- package/node_modules/@xrkseek/server-face/dist/handlers/session.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.d.ts +2 -2
- package/node_modules/@xrkseek/server-face/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.js +2 -2
- package/node_modules/@xrkseek/server-face/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/permissions.d.ts +17 -1
- package/node_modules/@xrkseek/server-face/dist/permissions.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/permissions.js +24 -5
- package/node_modules/@xrkseek/server-face/dist/permissions.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/runtime.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/runtime.js +12 -3
- package/node_modules/@xrkseek/server-face/dist/runtime.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-capability.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-capability.js +3 -1
- package/node_modules/@xrkseek/server-face/dist/session-capability.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-cwd.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-cwd.js +8 -0
- package/node_modules/@xrkseek/server-face/dist/session-cwd.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-inject-documents.d.ts +27 -0
- package/node_modules/@xrkseek/server-face/dist/session-inject-documents.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/session-inject-documents.js +77 -0
- package/node_modules/@xrkseek/server-face/dist/session-inject-documents.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/session-tools.d.ts +18 -1
- package/node_modules/@xrkseek/server-face/dist/session-tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-tools.js +76 -9
- package/node_modules/@xrkseek/server-face/dist/session-tools.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/skill-documents.d.ts +3 -3
- package/node_modules/@xrkseek/server-face/dist/skill-documents.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/skill-documents.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/skill-list.d.ts +2 -1
- package/node_modules/@xrkseek/server-face/dist/skill-list.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/skill-list.js +10 -3
- package/node_modules/@xrkseek/server-face/dist/skill-list.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/skill-read.d.ts +2 -1
- package/node_modules/@xrkseek/server-face/dist/skill-read.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/skill-read.js +15 -2
- package/node_modules/@xrkseek/server-face/dist/skill-read.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/slash.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/slash.js +2 -3
- package/node_modules/@xrkseek/server-face/dist/slash.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-face.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-face.js +31 -12
- package/node_modules/@xrkseek/server-face/dist/workspace-face.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/xiangyang-session-migrate.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/xiangyang-session-migrate.js +5 -6
- package/node_modules/@xrkseek/server-face/dist/xiangyang-session-migrate.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/index.d.ts +5 -4
- package/node_modules/@xrkseek/server-host/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/index.js +28 -16
- package/node_modules/@xrkseek/server-host/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/index.d.ts +8 -3
- package/node_modules/@xrkseek/workspace/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/index.js +8 -4
- package/node_modules/@xrkseek/workspace/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/workspace-anchor.d.ts +18 -1
- package/node_modules/@xrkseek/workspace/dist/workspace-anchor.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/workspace-anchor.js +26 -1
- package/node_modules/@xrkseek/workspace/dist/workspace-anchor.js.map +1 -1
- package/package.json +1 -1
|
@@ -59,13 +59,35 @@ export function formatRuntimeSurfaceAnchor(surface) {
|
|
|
59
59
|
"Do not claim capabilities of another surface (desktop vs browser vs terminal).",
|
|
60
60
|
].join("\n");
|
|
61
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* Model-facing badge + permission paragraph (session policy).
|
|
64
|
+
* @param policy - badge and/or permission; empty fields are omitted.
|
|
65
|
+
* @returns markdown block, or "" when both absent.
|
|
66
|
+
*/
|
|
67
|
+
export function formatSessionPolicyAnchor(policy) {
|
|
68
|
+
if (!policy)
|
|
69
|
+
return "";
|
|
70
|
+
const badge = policy.badge?.trim();
|
|
71
|
+
const permission = policy.permission?.trim();
|
|
72
|
+
if (!badge && !permission)
|
|
73
|
+
return "";
|
|
74
|
+
const lines = ["## Session policy"];
|
|
75
|
+
if (badge) {
|
|
76
|
+
lines.push(`Badge (agent preset): \`${badge}\` — this session's tool composition and ceilings follow that preset.`);
|
|
77
|
+
}
|
|
78
|
+
if (permission) {
|
|
79
|
+
lines.push(`Permission: ${permission} — honor this approval / sandbox posture; do not assume a looser mode.`);
|
|
80
|
+
}
|
|
81
|
+
return lines.join("\n");
|
|
82
|
+
}
|
|
62
83
|
/**
|
|
63
84
|
* Durable inject anchor: absolute workspace root (+ optional runtime surface).
|
|
64
85
|
* @param root - workspace root path.
|
|
65
86
|
* @param displayTitle - sidebar label (display-only).
|
|
66
87
|
* @param surface - runtime surface; appends the `## Runtime surface` paragraph.
|
|
88
|
+
* @param sessionPolicy - optional badge + permission paragraph.
|
|
67
89
|
*/
|
|
68
|
-
export function formatWorkspaceRootAnchor(root, displayTitle, surface) {
|
|
90
|
+
export function formatWorkspaceRootAnchor(root, displayTitle, surface, sessionPolicy) {
|
|
69
91
|
const path = root.trim();
|
|
70
92
|
if (!path)
|
|
71
93
|
return "";
|
|
@@ -80,6 +102,9 @@ export function formatWorkspaceRootAnchor(root, displayTitle, surface) {
|
|
|
80
102
|
const surfaceBlock = formatRuntimeSurfaceAnchor(surface);
|
|
81
103
|
if (surfaceBlock)
|
|
82
104
|
lines.push("", surfaceBlock);
|
|
105
|
+
const policyBlock = formatSessionPolicyAnchor(sessionPolicy);
|
|
106
|
+
if (policyBlock)
|
|
107
|
+
lines.push("", policyBlock);
|
|
83
108
|
return lines.join("\n");
|
|
84
109
|
}
|
|
85
110
|
//# sourceMappingURL=workspace-anchor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-anchor.js","sourceRoot":"","sources":["../src/workspace-anchor.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,4EAA4E;AAC5E,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAsB,CAAC;AAE1D,MAAM,oBAAoB,GAAmC;IAC3D,OAAO,EACL,0LAA0L;IAC5L,GAAG,EACD,sLAAsL;IACxL,GAAG,EACD,mHAAmH;IACrH,GAAG,EACD,mFAAmF;IACrF,GAAG,EACD,6EAA6E;CAChF,CAAC;AAEF;;;;GAIG;AACH,MAAM,UAAU,uBAAuB,CACrC,GAAuB;IAEvB,MAAM,KAAK,GAAG,GAAG,EAAE,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IACxC,IAAI,CAAC,KAAK;QAAE,OAAO,SAAS,CAAC;IAC7B,IACE,KAAK,KAAK,SAAS;QACnB,KAAK,KAAK,KAAK;QACf,KAAK,KAAK,KAAK;QACf,KAAK,KAAK,KAAK;QACf,KAAK,KAAK,KAAK,EACf,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,KAAK,KAAK,UAAU,IAAI,KAAK,KAAK,KAAK,IAAI,KAAK,KAAK,QAAQ,EAAE,CAAC;QAClE,OAAO,SA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