@kriya-ai/harness 0.0.0-stage → 0.2.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/README.md +379 -2
- package/SAFETY.md +162 -0
- package/THIRD_PARTY_NOTICES.md +7911 -0
- package/bin/kriya.js +577 -0
- package/bundle/cordis.patch.yml +397 -0
- package/contract/SOURCE.md +15 -0
- package/contract/contract.json +1355 -0
- package/package.json +57 -4
- package/plugins/anchor/index.js +56 -0
- package/plugins/anchor/package.json +13 -0
- package/plugins/approvals/index.js +183 -0
- package/plugins/approvals/package.json +13 -0
- package/plugins/brand/DESIGN.md +112 -0
- package/plugins/brand/client.js +826 -0
- package/plugins/brand/index.js +15 -0
- package/plugins/brand/package.json +25 -0
- package/plugins/brand/src/client.js +823 -0
- package/plugins/browser/index.js +218 -0
- package/plugins/browser/package.json +13 -0
- package/plugins/budget/index.js +108 -0
- package/plugins/budget/package.json +13 -0
- package/plugins/changes/client.js +245 -0
- package/plugins/changes/index.js +75 -0
- package/plugins/changes/package.json +22 -0
- package/plugins/edit/client.js +113 -0
- package/plugins/edit/index.js +58 -0
- package/plugins/edit/package.json +23 -0
- package/plugins/fs-freshness/index.js +28 -0
- package/plugins/fs-freshness/package.json +13 -0
- package/plugins/graph/client.js +178 -0
- package/plugins/graph/index.js +4 -0
- package/plugins/graph/package.json +22 -0
- package/plugins/kriya-handoff/index.js +194 -0
- package/plugins/kriya-handoff/package.json +13 -0
- package/plugins/kriya-tools/index.js +189 -0
- package/plugins/kriya-tools/package.json +13 -0
- package/plugins/loop/index.js +743 -0
- package/plugins/loop/package.json +13 -0
- package/plugins/mirror/index.js +235 -0
- package/plugins/mirror/package.json +13 -0
- package/plugins/overview/client.js +276 -0
- package/plugins/overview/index.js +95 -0
- package/plugins/overview/package.json +22 -0
- package/plugins/preview/client.js +337 -0
- package/plugins/preview/index.js +4 -0
- package/plugins/preview/package.json +22 -0
- package/plugins/progress/client.js +290 -0
- package/plugins/progress/index.js +100 -0
- package/plugins/progress/package.json +22 -0
- package/plugins/projects/client.js +249 -0
- package/plugins/projects/index.js +30 -0
- package/plugins/projects/package.json +24 -0
- package/plugins/rea/index.js +256 -0
- package/plugins/rea/package.json +10 -0
- package/plugins/rea/skill/LICENSE +21 -0
- package/plugins/rea/skill/SKILL.md +360 -0
- package/plugins/rea/skill/references/android-applications.md +36 -0
- package/plugins/rea/skill/references/connection-and-recovery.md +127 -0
- package/plugins/rea/skill/references/evidence-workflows.md +71 -0
- package/plugins/rea/skill/references/javascript-applications.md +218 -0
- package/plugins/rea/skill/references/native-and-artifacts.md +297 -0
- package/plugins/rea/skill/references/runtime-observation.md +78 -0
- package/plugins/remote/index.js +297 -0
- package/plugins/remote/package.json +10 -0
- package/plugins/router/index.js +84 -0
- package/plugins/router/package.json +13 -0
- package/plugins/sessions/client.js +68 -0
- package/plugins/sessions/index.js +79 -0
- package/plugins/sessions/package.json +20 -0
- package/plugins/skills/client.js +504 -0
- package/plugins/skills/index.js +166 -0
- package/plugins/skills/package.json +23 -0
- package/src/api.js +97 -0
- package/src/browser.js +286 -0
- package/src/changes.js +191 -0
- package/src/checkpoints.js +313 -0
- package/src/daemon.js +503 -0
- package/src/doctor.js +137 -0
- package/src/edit/core/anchors.js +102 -0
- package/src/edit/core/audio.js +158 -0
- package/src/edit/core/faces.js +99 -0
- package/src/edit/core/ffmpeg.js +258 -0
- package/src/edit/core/handoff.js +220 -0
- package/src/edit/core/history.js +90 -0
- package/src/edit/core/layout.js +92 -0
- package/src/edit/core/mix.js +115 -0
- package/src/edit/core/ops.js +602 -0
- package/src/edit/core/plan.js +266 -0
- package/src/edit/core/project.d.ts +134 -0
- package/src/edit/core/project.js +307 -0
- package/src/edit/core/reframe.js +125 -0
- package/src/edit/core/solver.js +416 -0
- package/src/edit/core/time.js +110 -0
- package/src/edit/core/tonemap.js +57 -0
- package/src/edit/director/ask.js +120 -0
- package/src/edit/director/gateway.js +16 -0
- package/src/edit/director/revise.js +186 -0
- package/src/edit/engine/capabilities.js +33 -0
- package/src/edit/engine/captions.js +154 -0
- package/src/edit/engine/color.js +269 -0
- package/src/edit/engine/confine.js +67 -0
- package/src/edit/engine/dna.js +148 -0
- package/src/edit/engine/index.js +473 -0
- package/src/edit/engine/loudness.js +43 -0
- package/src/edit/engine/media.js +57 -0
- package/src/edit/engine/motion.js +281 -0
- package/src/edit/engine/packs.js +87 -0
- package/src/edit/engine/probe.js +101 -0
- package/src/edit/engine/receipt.js +123 -0
- package/src/edit/engine/tool.js +101 -0
- package/src/edit/gates/copy.js +113 -0
- package/src/edit/gates/index.js +430 -0
- package/src/edit/gates/picture.js +130 -0
- package/src/edit/gates/sound.js +58 -0
- package/src/edit/gates/speech.js +127 -0
- package/src/edit/gates/text.js +196 -0
- package/src/edit/gates/text.swift +22 -0
- package/src/edit/graph/index.js +139 -0
- package/src/edit/graph/journal.js +69 -0
- package/src/edit/graph/scheduler.js +79 -0
- package/src/edit/host/client.js +58 -0
- package/src/edit/host/deliver.js +119 -0
- package/src/edit/host/jobs.js +84 -0
- package/src/edit/host/main.js +135 -0
- package/src/edit/host/paths.js +11 -0
- package/src/edit/host/projects.js +415 -0
- package/src/edit/host/server.js +391 -0
- package/src/edit/host/taste.js +135 -0
- package/src/edit/host/tavi.js +417 -0
- package/src/edit/host/watch.js +141 -0
- package/src/edit/index/db.js +109 -0
- package/src/edit/index/index.js +236 -0
- package/src/edit/index/layers/faces.js +78 -0
- package/src/edit/index/layers/faces.swift +18 -0
- package/src/edit/index/layers/meta.js +35 -0
- package/src/edit/index/layers/music.js +146 -0
- package/src/edit/index/layers/quality.js +120 -0
- package/src/edit/index/layers/retakes.js +132 -0
- package/src/edit/index/layers/screen.js +99 -0
- package/src/edit/index/layers/shots.js +29 -0
- package/src/edit/index/layers/sound.js +42 -0
- package/src/edit/index/layers/words.js +64 -0
- package/src/edit/index/story.js +248 -0
- package/src/edit/index/views.js +71 -0
- package/src/edit/loop/governor.js +112 -0
- package/src/edit/loop/loop.js +69 -0
- package/src/edit/loop/make.js +115 -0
- package/src/edit/loop/repair.js +97 -0
- package/src/edit/loop/replay.js +32 -0
- package/src/edit/recipes/multicam.js +461 -0
- package/src/edit/recipes/reel.js +202 -0
- package/src/edit/recipes/short-from-long.js +237 -0
- package/src/edit/recipes/tutorial.js +137 -0
- package/src/edit/recipes/youtube.js +155 -0
- package/src/edit/runtime/cli.js +126 -0
- package/src/edit/runtime/doctor.js +122 -0
- package/src/edit/runtime/fetch.js +15 -0
- package/src/edit/runtime/licences.js +88 -0
- package/src/edit/runtime/manifest.js +73 -0
- package/src/edit/runtime/setup.js +252 -0
- package/src/failure.js +69 -0
- package/src/gateway-proxy.js +213 -0
- package/src/intent.js +130 -0
- package/src/launch.js +315 -0
- package/src/live.js +81 -0
- package/src/local-skills.js +284 -0
- package/src/login.js +82 -0
- package/src/loop.js +428 -0
- package/src/modes.js +128 -0
- package/src/overview.js +71 -0
- package/src/paths.js +30 -0
- package/src/profiles.js +92 -0
- package/src/projects.js +104 -0
- package/src/recon.js +244 -0
- package/src/rules.js +139 -0
- package/src/runner.bundle.js +21172 -0
- package/src/sentinel.js +248 -0
- package/src/skill-switches.js +130 -0
- package/src/store.js +58 -0
- package/src/strict.js +124 -0
- package/src/verify.js +659 -0
- package/src/world.js +268 -0
- package/studio/dist/index.html +14 -0
- package/studio/dist/studio.css +163 -0
- package/studio/dist/studio.js +1 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kriya-ai/harness-remote",
|
|
3
|
+
"description": "Remote Control: stream a session to Kriya and listen for the Control Center",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"private": true,
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "index.js",
|
|
8
|
+
"exports": { ".": "./index.js", "./package.json": "./package.json" },
|
|
9
|
+
"license": "UNLICENSED"
|
|
10
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { brief } from "../../src/intent.js"
|
|
2
|
+
|
|
3
|
+
// The intent router (Kriya-Tavi docs/kriya-harness/INTENT_ROUTER_AND_LONG_HORIZON.md):
|
|
4
|
+
// for the person's latest message, a short brief naming the skills of the
|
|
5
|
+
// live catalog likely to help and the tools to start with (src/intent.js),
|
|
6
|
+
// in a late system-prompt section, so DSH's cached prefix stays the same.
|
|
7
|
+
// It hides no skill or tool and adds none (KriyaBench showed hiding tools
|
|
8
|
+
// cost this model passes): a hint the model may ignore. The skill catalog is
|
|
9
|
+
// read in the background (it's asynchronous; the prompt section isn't), on
|
|
10
|
+
// start and on each message, so the brief uses the newest copy it has.
|
|
11
|
+
// Off unless kriya was started with --router (KRIYA_ROUTER=on).
|
|
12
|
+
|
|
13
|
+
export const name = "kriya-router"
|
|
14
|
+
export const inject = ["systemPrompt", "skills", "tools"]
|
|
15
|
+
|
|
16
|
+
const textOf = (message) =>
|
|
17
|
+
(Array.isArray(message?.content) ? message.content : [])
|
|
18
|
+
.filter((part) => part?.type === "text" && typeof part.text === "string")
|
|
19
|
+
.map((part) => part.text)
|
|
20
|
+
.join("\n")
|
|
21
|
+
.trim()
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The router's state, apart from DSH so tests drive it directly.
|
|
25
|
+
* @param {{ listSkills: (agent?: any) => Promise<any[]>, toolNames: (agent?: any) => Iterable<string> }} host
|
|
26
|
+
*/
|
|
27
|
+
export function router(host) {
|
|
28
|
+
const requests = new WeakMap()
|
|
29
|
+
const catalogs = new WeakMap()
|
|
30
|
+
let shared = []
|
|
31
|
+
const refresh = async (agent) => {
|
|
32
|
+
try {
|
|
33
|
+
const list = await host.listSkills(agent)
|
|
34
|
+
if (agent) catalogs.set(agent, list)
|
|
35
|
+
else shared = list
|
|
36
|
+
} catch {
|
|
37
|
+
// The last catalog stays
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
refresh,
|
|
42
|
+
/** agent/inbox/inserted: the person's newest message for that agent */
|
|
43
|
+
onMessage({ agent, message }) {
|
|
44
|
+
if (message?.source?.kind !== "user") return undefined
|
|
45
|
+
const text = textOf(message)
|
|
46
|
+
if (!text) return undefined
|
|
47
|
+
requests.set(agent, text)
|
|
48
|
+
return refresh(agent)
|
|
49
|
+
},
|
|
50
|
+
/** The section's text for one agent: "" before any message */
|
|
51
|
+
text(agent) {
|
|
52
|
+
const request = agent && requests.get(agent)
|
|
53
|
+
if (!request) return ""
|
|
54
|
+
let tools = []
|
|
55
|
+
try {
|
|
56
|
+
tools = [...host.toolNames(agent)]
|
|
57
|
+
} catch {
|
|
58
|
+
// No tool list: skills only
|
|
59
|
+
}
|
|
60
|
+
return brief(request, catalogs.get(agent) ?? shared, tools)
|
|
61
|
+
},
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export async function apply(ctx) {
|
|
66
|
+
const r = router({
|
|
67
|
+
// The session's folder selects workspace skills (project and .agents ones)
|
|
68
|
+
listSkills: (agent) => ctx.skills.list({ cwd: process.cwd(), ...(agent && { scope: agent }) }),
|
|
69
|
+
toolNames: (agent) => ctx.tools.schemas(agent).map((s) => s.name),
|
|
70
|
+
})
|
|
71
|
+
ctx.on("agent/inbox/inserted", (event) => {
|
|
72
|
+
r.onMessage(event)
|
|
73
|
+
})
|
|
74
|
+
ctx.systemPrompt.section({
|
|
75
|
+
name: "kriya:router",
|
|
76
|
+
// After DSH's suffix and the loop state, before the anchor
|
|
77
|
+
order: 10260,
|
|
78
|
+
interpolate: false,
|
|
79
|
+
text: ({ scope }) => r.text(scope),
|
|
80
|
+
})
|
|
81
|
+
// The first catalog is read before the plugin is up, so a headless run's
|
|
82
|
+
// first request already has it (about 0.1 s); never more than 3 s
|
|
83
|
+
await Promise.race([r.refresh(), new Promise((done) => setTimeout(done, 3000).unref?.())])
|
|
84
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kriya-ai/harness-router",
|
|
3
|
+
"description": "The intent router for Kriya Harness: a short brief of the skills and tools likely to help with the person's request",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"private": true,
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "index.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": "./index.js",
|
|
10
|
+
"./package.json": "./package.json"
|
|
11
|
+
},
|
|
12
|
+
"license": "UNLICENSED"
|
|
13
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// Delete session, browser half: one row in a session's "..." menu after
|
|
2
|
+
// Archive, asking first in a native <dialog>. The row leaves the list when
|
|
3
|
+
// the Host's session list changes. No DSH file is edited (HD-02).
|
|
4
|
+
window.__ModuleLoader__.load({
|
|
5
|
+
id: "@kriya-ai/harness-sessions",
|
|
6
|
+
factory: (require) => {
|
|
7
|
+
const React = require("react")
|
|
8
|
+
const { MenuItemButton } = require("@deepseek-ai/dsh-client-ui-primitives")
|
|
9
|
+
const h = React.createElement
|
|
10
|
+
|
|
11
|
+
const API = "api/kriya.session.delete"
|
|
12
|
+
|
|
13
|
+
function ask(title) {
|
|
14
|
+
return new Promise((done) => {
|
|
15
|
+
const dialog = document.createElement("dialog")
|
|
16
|
+
dialog.style.cssText = "max-width:360px;border:1px solid var(--dsw-alias-border-l2);border-radius:14px;padding:18px;background:var(--dsw-alias-bg-layer-1,#fff);color:var(--dsw-alias-label-primary)"
|
|
17
|
+
const heading = document.createElement("h2")
|
|
18
|
+
heading.style.cssText = "margin:0 0 6px;font-size:15px"
|
|
19
|
+
heading.textContent = `Delete ${title ? `"${title}"` : "this session"}?`
|
|
20
|
+
const text = document.createElement("p")
|
|
21
|
+
text.style.cssText = "margin:0 0 14px;font-size:13px;line-height:1.5;color:var(--dsw-alias-label-secondary)"
|
|
22
|
+
text.textContent = "Its conversation and history are removed from this computer, and any work in it stops. This can't be undone. Files in the folder stay."
|
|
23
|
+
const row = document.createElement("div")
|
|
24
|
+
row.style.cssText = "display:flex;gap:8px;justify-content:flex-end"
|
|
25
|
+
const button = (label, value, danger) => {
|
|
26
|
+
const b = document.createElement("button")
|
|
27
|
+
b.type = "button"
|
|
28
|
+
b.textContent = label
|
|
29
|
+
b.style.cssText = `min-height:44px;padding:0 14px;border-radius:10px;border:1px solid var(--dsw-alias-border-l2);cursor:pointer;background:${danger ? "var(--dsw-alias-state-error-primary)" : "transparent"};color:${danger ? "#fff" : "inherit"}`
|
|
30
|
+
b.onclick = () => dialog.close(value)
|
|
31
|
+
return b
|
|
32
|
+
}
|
|
33
|
+
const cancel = button("Cancel", "", false)
|
|
34
|
+
row.append(cancel, button("Delete", "yes", true))
|
|
35
|
+
dialog.append(heading, text, row)
|
|
36
|
+
dialog.addEventListener("close", () => {
|
|
37
|
+
done(dialog.returnValue === "yes")
|
|
38
|
+
dialog.remove()
|
|
39
|
+
})
|
|
40
|
+
document.body.append(dialog)
|
|
41
|
+
dialog.showModal()
|
|
42
|
+
cancel.focus()
|
|
43
|
+
})
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
async function remove(sessionId, title) {
|
|
47
|
+
if (!(await ask(title))) return
|
|
48
|
+
const response = await fetch(API, { method: "POST", credentials: "same-origin", headers: { "content-type": "application/json" }, body: JSON.stringify({ session: sessionId }) })
|
|
49
|
+
if (!response.ok) return window.alert((await response.json().catch(() => ({}))).error || "Kriya Harness couldn't delete this session.")
|
|
50
|
+
// DSH's list has no "gone" event, only archive: a fresh read drops the row
|
|
51
|
+
window.location.reload()
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function DeleteRow({ sessionId, displayTitle, useMenuOpenState }) {
|
|
55
|
+
const [, setMenuOpen] = useMenuOpenState()
|
|
56
|
+
return h(MenuItemButton, { separatorBefore: true, onSelect: () => { setMenuOpen(false); remove(sessionId, displayTitle) } }, "Delete session")
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
const inject = ["slots"]
|
|
60
|
+
function apply(ctx) {
|
|
61
|
+
ctx.slots.inject("sidebar.workspaces.session.menu.item", () =>
|
|
62
|
+
// After Copy Session ID (450): the one action that can't be undone goes last
|
|
63
|
+
ctx.slots.register({ name: "sidebar.workspaces.session.menu.item", id: "kriya.delete-session", order: 500 }, DeleteRow)
|
|
64
|
+
)
|
|
65
|
+
}
|
|
66
|
+
return { apply, inject, DeleteRow, API }
|
|
67
|
+
},
|
|
68
|
+
})
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { readdirSync, rmSync } from "node:fs"
|
|
2
|
+
import { join } from "node:path"
|
|
3
|
+
|
|
4
|
+
import { kriyaHome } from "../../src/paths.js"
|
|
5
|
+
import { running as remoteControl } from "../remote/index.js"
|
|
6
|
+
|
|
7
|
+
// Delete session: DSH keeps sessions for good and offers archive only, so
|
|
8
|
+
// this removes one for it, through the seams it has: archive (which stops any
|
|
9
|
+
// work and closes the session), remove its folder under the Kriya home with
|
|
10
|
+
// its subagents' folders, then drop the archive mark. DSH's search index
|
|
11
|
+
// reconciles a missing log by itself. This can't be undone, so the menu asks.
|
|
12
|
+
|
|
13
|
+
export const name = "kriya-sessions"
|
|
14
|
+
export const inject = ["connection", "sessions"]
|
|
15
|
+
export const ROUTE = "/api/kriya.session.delete"
|
|
16
|
+
|
|
17
|
+
const ID = /^[\w-]{1,100}$/
|
|
18
|
+
|
|
19
|
+
/** The session's folders: sessions/<project>/<id>, the id being "session-<uuid>" (DSH's layout, pinned by tests/sessions.test.js) */
|
|
20
|
+
export function sessionFolders(id, root = join(kriyaHome(), "sessions")) {
|
|
21
|
+
const found = []
|
|
22
|
+
for (const project of readdirSync(root, { withFileTypes: true })) {
|
|
23
|
+
if (!project.isDirectory()) continue
|
|
24
|
+
for (const entry of readdirSync(join(root, project.name), { withFileTypes: true }))
|
|
25
|
+
if (entry.isDirectory() && entry.name === id) found.push(join(root, project.name, entry.name))
|
|
26
|
+
}
|
|
27
|
+
return found
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @param {string} id
|
|
32
|
+
* @param {{ list: () => Promise<Array<{ header: any }>>, archive: (id: string) => Promise<unknown>, unarchive: (id: string) => Promise<unknown>, forget?: (id: string) => unknown, root?: string }} host
|
|
33
|
+
*/
|
|
34
|
+
export async function deleteSession(id, host) {
|
|
35
|
+
if (!ID.test(id)) throw new RangeError("Which session?")
|
|
36
|
+
const stored = await host.list()
|
|
37
|
+
if (!stored.some((s) => s.header.id === id)) throw new RangeError("That session isn't known here.")
|
|
38
|
+
// Its subagents' sessions, at any depth
|
|
39
|
+
const ids = [id]
|
|
40
|
+
for (let i = 0; i < ids.length; i++)
|
|
41
|
+
for (const s of stored) if (s.header.origin === "subagent" && s.header.parentSession === ids[i] && !ids.includes(s.header.id)) ids.push(s.header.id)
|
|
42
|
+
if (!sessionFolders(id, host.root).length) throw new RangeError("This session has no history on disk yet.")
|
|
43
|
+
await host.archive(id)
|
|
44
|
+
await host.forget?.(id)
|
|
45
|
+
for (const one of ids) for (const dir of sessionFolders(one, host.root)) rmSync(dir, { recursive: true, force: true })
|
|
46
|
+
await host.unarchive(id)
|
|
47
|
+
return { deleted: ids.length }
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function apply(ctx) {
|
|
51
|
+
const reply = (body, status = 200) => Response.json(body, { status, headers: { "cache-control": "no-store" } })
|
|
52
|
+
const registry = () => ctx.get("workspaceRegistry")
|
|
53
|
+
ctx.effect(
|
|
54
|
+
() =>
|
|
55
|
+
ctx.connection.fetch.register({
|
|
56
|
+
path: ROUTE,
|
|
57
|
+
methods: ["POST"],
|
|
58
|
+
requestBody: "buffered",
|
|
59
|
+
fetch: async (request) => {
|
|
60
|
+
const body = await request.json().catch(() => null)
|
|
61
|
+
try {
|
|
62
|
+
return reply(
|
|
63
|
+
await deleteSession(String(body?.session ?? ""), {
|
|
64
|
+
list: () => ctx.get("sessionPersistence").list(),
|
|
65
|
+
archive: (id) => registry().archiveSession(id, { stopActivity: true }),
|
|
66
|
+
unarchive: (id) => registry().unarchiveSession(id),
|
|
67
|
+
forget: (id) => remoteControl.current?.forget(id),
|
|
68
|
+
})
|
|
69
|
+
)
|
|
70
|
+
} catch (error) {
|
|
71
|
+
if (error instanceof RangeError) return reply({ error: error.message }, 400)
|
|
72
|
+
ctx.logger("kriya-sessions").warn(error)
|
|
73
|
+
return reply({ error: "Kriya Harness couldn't delete this session; see the terminal for details." }, 500)
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
}),
|
|
77
|
+
"kriya-sessions: route"
|
|
78
|
+
)
|
|
79
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kriya-ai/harness-sessions",
|
|
3
|
+
"description": "Delete session in the Kriya Harness Web UI's session menu",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"private": true,
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "index.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": "./index.js",
|
|
10
|
+
"./client": "./client.js",
|
|
11
|
+
"./package.json": "./package.json"
|
|
12
|
+
},
|
|
13
|
+
"dsh": {
|
|
14
|
+
"client": {
|
|
15
|
+
"inject": ["@deepseek-ai/dsh-client-ui-workspace"],
|
|
16
|
+
"platform": "web"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"license": "UNLICENSED"
|
|
20
|
+
}
|