kiokuko-dsh 0.1.64 → 0.1.65
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/PERMISSIONS.md +7 -1
- package/dist/dsh/host-adapter.d.ts.map +1 -1
- package/dist/dsh/host-adapter.js +5 -0
- package/dist/dsh/host-adapter.js.map +1 -1
- package/dist/dsh/lisp/ci.d.ts +4 -1
- package/dist/dsh/lisp/ci.d.ts.map +1 -1
- package/dist/dsh/lisp/ci.js +23 -14
- package/dist/dsh/lisp/ci.js.map +1 -1
- package/dist/dsh/lisp/files.d.ts +6 -0
- package/dist/dsh/lisp/files.d.ts.map +1 -1
- package/dist/dsh/lisp/files.js +19 -0
- package/dist/dsh/lisp/files.js.map +1 -1
- package/dist/dsh/lisp/manager.d.ts +1 -1
- package/dist/dsh/lisp/manager.d.ts.map +1 -1
- package/dist/dsh/lisp/manager.js +8 -3
- package/dist/dsh/lisp/manager.js.map +1 -1
- package/dist/dsh/lisp/request-surface.d.ts +8 -0
- package/dist/dsh/lisp/request-surface.d.ts.map +1 -0
- package/dist/dsh/lisp/request-surface.js +2 -0
- package/dist/dsh/lisp/request-surface.js.map +1 -0
- package/dist/dsh/lisp/sandbox.d.ts +1 -1
- package/dist/dsh/lisp/sandbox.d.ts.map +1 -1
- package/dist/dsh/lisp/sandbox.js +10 -4
- package/dist/dsh/lisp/sandbox.js.map +1 -1
- package/dist/dsh/lisp/surface.d.ts.map +1 -1
- package/dist/dsh/lisp/surface.js +26 -2
- package/dist/dsh/lisp/surface.js.map +1 -1
- package/dist/dsh/lisp/worker.js +2 -2
- package/dist/dsh/lisp/worker.js.map +1 -1
- package/dist/dsh/model-routing.d.ts +1 -1
- package/dist/dsh/model-routing.d.ts.map +1 -1
- package/dist/dsh/model-routing.js +1 -2
- package/dist/dsh/model-routing.js.map +1 -1
- package/dist/dsh/skill-prompts.json +1 -1
- package/docs/lisp.md +58 -4
- package/lisp/tools.lisp +50 -23
- package/package.json +1 -1
- package/skills/kiokuko-lisp/SKILL.md +133 -98
package/PERMISSIONS.md
CHANGED
|
@@ -154,7 +154,13 @@ environment are forwarded, and direct network/host IPC access is denied. The
|
|
|
154
154
|
host may run repository-scoped `gh run list`/`gh run view --log-failed` reads on
|
|
155
155
|
behalf of Lisp without copying credentials into the worker. Verification accepts
|
|
156
156
|
only six fixed npm targets and requires native human confirmation showing the
|
|
157
|
-
command,
|
|
157
|
+
command, package script, exact working directory and timeout. The directory may
|
|
158
|
+
be the workspace root, a workspace subdirectory, or a subdirectory of the current
|
|
159
|
+
worker's scratch. Traversal and symlink directories are refused, and directory
|
|
160
|
+
identity and scripts are rechecked after approval. These approved verifiers run
|
|
161
|
+
on the host, including npm lifecycle scripts, outside the worker sandbox;
|
|
162
|
+
arbitrary shell input is not accepted. Brokered worker programs can select only a
|
|
163
|
+
scratch-relative working directory and retain the existing OS restrictions.
|
|
158
164
|
|
|
159
165
|
File deletion and replacement require the native human confirmation for the exact
|
|
160
166
|
proposal. Generic operations reject databases/sidecars, credential paths, links,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host-adapter.d.ts","sourceRoot":"","sources":["../../src/dsh/host-adapter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAG9C,OAAO,EAAE,qBAAqB,EAAwB,MAAM,kCAAkC,CAAA;AAE9F,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"host-adapter.d.ts","sourceRoot":"","sources":["../../src/dsh/host-adapter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAG9C,OAAO,EAAE,qBAAqB,EAAwB,MAAM,kCAAkC,CAAA;AAE9F,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,oBAAoB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AO,CAU/E;AAsBD,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKrE;AAED,wBAAgB,mBAAmB,CAAC,cAAc,EAAE,MAAM,EAAE,UAAU,EAAE,cAAc,GAAG,OAAO,CAU/F;AAiGD,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,GAAE,qBAA0B,GAAG,cAAc,CAi0EtG;AAsBD,OAAO,EAAE,wBAAwB,EAAE,CAAA"}
|
package/dist/dsh/host-adapter.js
CHANGED
|
@@ -9,6 +9,7 @@ import { DshEfficiencyObserver, mountDshEfficiencyObserver } from './efficiency.
|
|
|
9
9
|
import { explicitExecutionMode, readExecutionSelection, writeExecutionSelection } from './execution-selection.js';
|
|
10
10
|
import { selectExecution, ExecutionSelectionPending } from './model-selection-ui.js';
|
|
11
11
|
import { LISP_CODING_SERVICE } from './lisp/coding-choice.js';
|
|
12
|
+
import { LISP_ASSEMBLY_SERVICE } from './lisp/request-surface.js';
|
|
12
13
|
import { installDshModelRouting, modelRoleForState, isModelAvailabilityFailure } from './model-routing.js';
|
|
13
14
|
import { DshSkillPrompts } from './skill-prompts.js';
|
|
14
15
|
import { refreshDshSkillSnapshots } from './skill-snapshot.js';
|
|
@@ -1311,6 +1312,9 @@ export function createDshHostAdapter(ctx, options = {}) {
|
|
|
1311
1312
|
}, {
|
|
1312
1313
|
prompts: () => skillPrompts,
|
|
1313
1314
|
assembled: async (assembly) => {
|
|
1315
|
+
const lisp = native.get(LISP_ASSEMBLY_SERVICE, false);
|
|
1316
|
+
if (lisp)
|
|
1317
|
+
assembly = lisp.project(agent, assembly);
|
|
1314
1318
|
const delivered = new Set();
|
|
1315
1319
|
for (const [name, sectionName] of [['kiokuko-soul', 'kiokuko:soul'], ['natural-japanese-output', 'kiokuko:natural-japanese-output'], ['kiokuko-lisp', 'kiokuko:lisp']]) {
|
|
1316
1320
|
const section = assembly.sections.find(section => section.name === sectionName);
|
|
@@ -1321,6 +1325,7 @@ export function createDshHostAdapter(ctx, options = {}) {
|
|
|
1321
1325
|
delivered.add(name);
|
|
1322
1326
|
}
|
|
1323
1327
|
systemSkillNames.set(agent, delivered);
|
|
1328
|
+
return assembly;
|
|
1324
1329
|
},
|
|
1325
1330
|
});
|
|
1326
1331
|
const disposeMemoryFence = agent.ctx.on('llm/stream', (request, next) => (async function* () {
|