@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,397 @@
|
|
|
1
|
+
# The "kriya" bundle (Kriya Harness, built on DeepSeek Harness): patch rows
|
|
2
|
+
# applied over dsh-base and the surface bundle (dsh-web-app or
|
|
3
|
+
# dsh-headless) in every Kriya profile. HD-02: nothing in DSH is edited;
|
|
4
|
+
# Kriya is added through configuration rows. HT-REL-03 checks the composed
|
|
5
|
+
# result of each profile against expected/.
|
|
6
|
+
|
|
7
|
+
# P-GW: the only model route is the Kriya gateway. The address, the client
|
|
8
|
+
# version and the device token come from the launcher (src/launch.js);
|
|
9
|
+
# apiKeyEnv is a credential reference DSH resolves per request, so the
|
|
10
|
+
# token never enters a config file. Tiers are Kriya's aliases; Kriya maps
|
|
11
|
+
# them to models on the server.
|
|
12
|
+
- id: llm-pi-ai
|
|
13
|
+
config:
|
|
14
|
+
providers:
|
|
15
|
+
kriya:
|
|
16
|
+
displayName: Kriya
|
|
17
|
+
api: openai-completions
|
|
18
|
+
baseURL: !!js process.env.KRIYA_GATEWAY_URL ?? 'http://127.0.0.1:9/kriya-signed-out'
|
|
19
|
+
apiKeyEnv: KRIYA_DEVICE_TOKEN
|
|
20
|
+
headers:
|
|
21
|
+
X-Kriya-Harness: !!js process.env.KRIYA_CLIENT_VERSION ?? '0.0.0'
|
|
22
|
+
# Only the tiers the plan allows (the launcher reads GET /models into
|
|
23
|
+
# KRIYA_ALLOWED_TIERS): a tier the plan refuses would fail every
|
|
24
|
+
# request with tier_not_allowed. Unset, all three. Each is named
|
|
25
|
+
# after the model the owner routes it to (KRIYA_MODEL_NAMES, from the
|
|
26
|
+
# same answer), else "Kriya <tier>"
|
|
27
|
+
# Harness upgrade U3: a tier Kriya gives limits for (KRIYA_MODEL_LIMITS,
|
|
28
|
+
# from GET /models) declares its model's context window and output
|
|
29
|
+
# cap; the others keep DSH's defaults (262,144 and 32,768). A tier
|
|
30
|
+
# Kriya says takes images (KRIYA_MODEL_IMAGES) declares it, else
|
|
31
|
+
# DSH refuses every image for it
|
|
32
|
+
models: !!js >-
|
|
33
|
+
((names, limits) => [['balanced', 'Kriya balanced'], ['budget', 'Kriya budget'], ['escalation', 'Kriya escalation']]
|
|
34
|
+
.filter(([id]) => (process.env.KRIYA_ALLOWED_TIERS || 'balanced,budget,escalation').split(',').includes(id))
|
|
35
|
+
.map(([id, name]) => ({ id, name: typeof names[id] === 'string' && names[id] ? names[id] : name,
|
|
36
|
+
...((process.env.KRIYA_MODEL_IMAGES || '').split(',').includes(id) ? { input: ['text', 'image'] } : {}),
|
|
37
|
+
...(limits[id] ? { contextWindow: limits[id].contextWindow, maxTokens: limits[id].maxTokens } : {}) })))
|
|
38
|
+
((() => { try { return JSON.parse(process.env.KRIYA_MODEL_NAMES || '{}') } catch { return {} } })(),
|
|
39
|
+
(() => { try { return JSON.parse(process.env.KRIYA_MODEL_LIMITS || '{}') } catch { return {} } })())
|
|
40
|
+
|
|
41
|
+
# Harness upgrade U3: compaction headroom per tier from the same limits, so
|
|
42
|
+
# DSH's trigger (W − O − headroom) stays positive on a small window. No
|
|
43
|
+
# limits, no policies: DSH's defaults, as before
|
|
44
|
+
- id: compaction-basic
|
|
45
|
+
config:
|
|
46
|
+
modelPolicies: !!js >-
|
|
47
|
+
Object.entries((() => { try { return JSON.parse(process.env.KRIYA_MODEL_LIMITS || '{}') } catch { return {} } })())
|
|
48
|
+
.map(([model, l]) => ({ provider: 'kriya', model, headroomTokens: l.headroomTokens }))
|
|
49
|
+
|
|
50
|
+
# The starting tier: balanced, or the best tier the plan allows, chosen by
|
|
51
|
+
# the launcher from GET /models (src/launch.js startTier)
|
|
52
|
+
- id: agent-default-model
|
|
53
|
+
config:
|
|
54
|
+
provider: kriya
|
|
55
|
+
model: !!js process.env.KRIYA_START_TIER ?? 'balanced'
|
|
56
|
+
|
|
57
|
+
# H11 (HD-13): ACP sessions start on the same route. dsh-acp-app's row names
|
|
58
|
+
# DeepSeek's own provider and model; this replaces its config (only the
|
|
59
|
+
# kriya-acp profile has the row)
|
|
60
|
+
- id: acp
|
|
61
|
+
config:
|
|
62
|
+
provider: kriya
|
|
63
|
+
model: !!js process.env.KRIYA_START_TIER ?? 'balanced'
|
|
64
|
+
|
|
65
|
+
# DeepSeek's own account, models and web search need a DeepSeek sign-in or
|
|
66
|
+
# key; the Kriya Harness uses Kriya's gateway instead
|
|
67
|
+
- id: deepseek-account
|
|
68
|
+
disabled: true
|
|
69
|
+
- id: llm-deepseek
|
|
70
|
+
disabled: true
|
|
71
|
+
- id: llm-deepseek-account
|
|
72
|
+
disabled: true
|
|
73
|
+
- id: web-search-deepseek
|
|
74
|
+
disabled: true
|
|
75
|
+
- id: web-deepseek-api
|
|
76
|
+
disabled: true
|
|
77
|
+
# The session-log field rides only official DeepSeek API requests (above,
|
|
78
|
+
# disabled); off outright, with its "Help improve DeepSeek models" switch in
|
|
79
|
+
# the Web UI's Settings → General
|
|
80
|
+
- id: session-log-deepseek
|
|
81
|
+
disabled: true
|
|
82
|
+
- id: ui-settings-session-log
|
|
83
|
+
disabled: true
|
|
84
|
+
# The Web UI's DeepSeek account page and its controller (which would wait
|
|
85
|
+
# forever for the disabled account service); no-ops in the headless profile
|
|
86
|
+
- id: account-controller
|
|
87
|
+
disabled: true
|
|
88
|
+
- id: ui-settings-account
|
|
89
|
+
disabled: true
|
|
90
|
+
|
|
91
|
+
# The Web UI shows Kriya, not DeepSeek: the official brand row is off and
|
|
92
|
+
# Kriya's brand plugin (plugins/brand: sidebar mark and name, hero mark,
|
|
93
|
+
# tab title and icon) fills the same slots, as that row's README asks of
|
|
94
|
+
# other identities. In the headless profile its node half does nothing
|
|
95
|
+
- id: ui-brand-official
|
|
96
|
+
disabled: true
|
|
97
|
+
- insert:
|
|
98
|
+
- id: ui-brand-kriya
|
|
99
|
+
name: '@kriya-ai/harness-brand'
|
|
100
|
+
|
|
101
|
+
# A file's version in DSH includes ctime, which iCloud and backup tools bump
|
|
102
|
+
# with the content untouched: on a real task in ~/Documents, 40 of 146 edits
|
|
103
|
+
# failed as "changed since it was read". plugins/fs-freshness looks past that
|
|
104
|
+
- insert:
|
|
105
|
+
- id: kriya-fs-freshness
|
|
106
|
+
name: '@kriya-ai/harness-fs-freshness'
|
|
107
|
+
|
|
108
|
+
# Kriya Harness is one product: its features come from Kriya, not from
|
|
109
|
+
# DeepSeek Harness's plugin ecosystem. Off: Creator mode (the `cordis`
|
|
110
|
+
# preset, which writes DSH plugins), its panel, the "Create a DSH plugin"
|
|
111
|
+
# menu entries, the sidebar Plugins page (installs DSH bundles and could
|
|
112
|
+
# switch Kriya's own rows off) and Settings → Built-in plugins (a list of
|
|
113
|
+
# DSH packages). DSH hides its own "create a preset" button when the
|
|
114
|
+
# `cordis` preset is absent. In profiles without these rows they're no-ops
|
|
115
|
+
- id: preset-cordis
|
|
116
|
+
disabled: true
|
|
117
|
+
- id: ui-cordis
|
|
118
|
+
disabled: true
|
|
119
|
+
- id: entry-customization
|
|
120
|
+
disabled: true
|
|
121
|
+
- id: ui-plugin-manager
|
|
122
|
+
disabled: true
|
|
123
|
+
- id: ui-settings-plugins
|
|
124
|
+
disabled: true
|
|
125
|
+
- id: ui-settings-plugin-inventory
|
|
126
|
+
disabled: true
|
|
127
|
+
|
|
128
|
+
# The Projects page (plugins/projects): the folders on this computer that
|
|
129
|
+
# look like projects, each opened as a workspace and a session in a click.
|
|
130
|
+
# One read-only route inside Connection's fence; without the web server it
|
|
131
|
+
# doesn't start
|
|
132
|
+
- insert:
|
|
133
|
+
- id: kriya-projects
|
|
134
|
+
name: '@kriya-ai/harness-projects'
|
|
135
|
+
# Web UI only: it needs the web server's connection, which the other profiles lack
|
|
136
|
+
disabled: !!js ctx.get('profileContext')?.name !== 'kriya'
|
|
137
|
+
|
|
138
|
+
# The Editing Studio row (plugins/edit, track E): an "Editing Studio" row in the
|
|
139
|
+
# sidebar that opens the Edit Host's own Studio app in the same tab, through one
|
|
140
|
+
# route inside Connection's fence. Off unless kriya was started with --edit
|
|
141
|
+
# (KRIYA_EDIT=on): off, no row, route or DOM exists and nothing under src/edit loads
|
|
142
|
+
- insert:
|
|
143
|
+
- id: kriya-edit
|
|
144
|
+
name: '@kriya-ai/harness-edit'
|
|
145
|
+
# Web UI only, and only with the switch on
|
|
146
|
+
disabled: !!js process.env.KRIYA_EDIT !== 'on' || ctx.get('profileContext')?.name !== 'kriya'
|
|
147
|
+
|
|
148
|
+
# H14a, the Kriya loop's verify step (plugins/loop): kriya_verify runs the
|
|
149
|
+
# project's check the person confirmed (`kriya verify use`) under the
|
|
150
|
+
# session's own sandbox and reports pass, fail or blocked from its exit
|
|
151
|
+
# code. Off unless kriya was started with --loop (KRIYA_LOOP=on): off, the
|
|
152
|
+
# agent's prompt and tools are exactly as before
|
|
153
|
+
- insert:
|
|
154
|
+
- id: kriya-loop
|
|
155
|
+
name: '@kriya-ai/harness-loop'
|
|
156
|
+
disabled: !!js process.env.KRIYA_LOOP !== 'on'
|
|
157
|
+
|
|
158
|
+
# Harness upgrade U2 (plugins/budget): a turn is bounded by code: at most
|
|
159
|
+
# KRIYA_MAX_STEPS steps (150), KRIYA_TURN_MINUTES minutes (60) and
|
|
160
|
+
# KRIYA_MAX_REPEATS identical tool calls in a row (10); near a limit the agent
|
|
161
|
+
# is told once to wrap up, at a limit the turn ends "blocked". Off unless
|
|
162
|
+
# kriya was started with --budget (KRIYA_BUDGET=on): off, the agent is
|
|
163
|
+
# exactly as before
|
|
164
|
+
- insert:
|
|
165
|
+
- id: kriya-budget
|
|
166
|
+
name: '@kriya-ai/harness-budget'
|
|
167
|
+
disabled: !!js process.env.KRIYA_BUDGET !== 'on'
|
|
168
|
+
|
|
169
|
+
# Harness upgrade U7 (plugins/anchor): the person's own messages, word for
|
|
170
|
+
# word, in a late system-prompt section that compaction never condenses, so
|
|
171
|
+
# a requirement survives a summary that drops it. Off unless kriya was
|
|
172
|
+
# started with --anchor (KRIYA_ANCHOR=on)
|
|
173
|
+
- insert:
|
|
174
|
+
- id: kriya-anchor
|
|
175
|
+
name: '@kriya-ai/harness-anchor'
|
|
176
|
+
disabled: !!js process.env.KRIYA_ANCHOR !== 'on'
|
|
177
|
+
|
|
178
|
+
# Harness upgrade U6: KriyaBench's tool-minimal control arm (arm B0,
|
|
179
|
+
# BENCHMARK_PLAN.md): the same sandbox, gateway, model and prompt, with only
|
|
180
|
+
# the shell and the file and search tools, so a run shows whether the rest
|
|
181
|
+
# of the tool list helps or hurts. A benchmark switch only: KRIYA_MINIMAL=on
|
|
182
|
+
# in the shell that runs the bench. Off, these rows are as before: on in
|
|
183
|
+
# kriya-run and kriya-acp, and off at the top level of the Web UI's profile
|
|
184
|
+
# (`kriya`), where DSH's own web bundle moves them into its agent presets
|
|
185
|
+
- id: tool-goal
|
|
186
|
+
disabled: !!js ctx.get('profileContext')?.name === 'kriya' || process.env.KRIYA_MINIMAL === 'on'
|
|
187
|
+
- id: tool-subagent
|
|
188
|
+
disabled: !!js ctx.get('profileContext')?.name === 'kriya' || process.env.KRIYA_MINIMAL === 'on'
|
|
189
|
+
- id: tool-subagent-fork
|
|
190
|
+
disabled: !!js ctx.get('profileContext')?.name === 'kriya' || process.env.KRIYA_MINIMAL === 'on'
|
|
191
|
+
- id: tool-subagent-control
|
|
192
|
+
disabled: !!js ctx.get('profileContext')?.name === 'kriya' || process.env.KRIYA_MINIMAL === 'on'
|
|
193
|
+
- id: tool-subagent-list-agents
|
|
194
|
+
disabled: !!js ctx.get('profileContext')?.name === 'kriya' || process.env.KRIYA_MINIMAL === 'on'
|
|
195
|
+
- id: tool-jobs
|
|
196
|
+
disabled: !!js ctx.get('profileContext')?.name === 'kriya' || process.env.KRIYA_MINIMAL === 'on'
|
|
197
|
+
- id: tool-todo
|
|
198
|
+
disabled: !!js ctx.get('profileContext')?.name === 'kriya' || process.env.KRIYA_MINIMAL === 'on'
|
|
199
|
+
- id: tool-web
|
|
200
|
+
disabled: !!js ctx.get('profileContext')?.name === 'kriya' || process.env.KRIYA_MINIMAL === 'on'
|
|
201
|
+
- id: tool-workflow
|
|
202
|
+
disabled: !!js ctx.get('profileContext')?.name === 'kriya' || process.env.KRIYA_MINIMAL === 'on'
|
|
203
|
+
- id: tool-skill
|
|
204
|
+
disabled: !!js ctx.get('profileContext')?.name === 'kriya' || process.env.KRIYA_MINIMAL === 'on'
|
|
205
|
+
- id: plan-mode
|
|
206
|
+
disabled: !!js ctx.get('profileContext')?.name === 'kriya' || process.env.KRIYA_MINIMAL === 'on'
|
|
207
|
+
|
|
208
|
+
# The Skills page (plugins/skills): a sidebar row and page listing the
|
|
209
|
+
# agent's SKILL.md skills, with editing for the ones you own, on routes inside
|
|
210
|
+
# Connection's fence. In profiles without the web server it doesn't start
|
|
211
|
+
- insert:
|
|
212
|
+
- id: kriya-skills
|
|
213
|
+
name: '@kriya-ai/harness-skills'
|
|
214
|
+
# Web UI only: it needs the web server's connection, which the other profiles lack
|
|
215
|
+
disabled: !!js ctx.get('profileContext')?.name !== 'kriya'
|
|
216
|
+
|
|
217
|
+
# The Changes tab (plugins/changes): a right-sidebar page with every file
|
|
218
|
+
# changed in the session's folder against HEAD and its diff, read-only, on
|
|
219
|
+
# routes inside Connection's fence. Without the web server it doesn't start
|
|
220
|
+
- insert:
|
|
221
|
+
- id: kriya-changes
|
|
222
|
+
name: '@kriya-ai/harness-changes'
|
|
223
|
+
# Web UI only: it needs the web server's connection, which the other profiles lack
|
|
224
|
+
disabled: !!js ctx.get('profileContext')?.name !== 'kriya'
|
|
225
|
+
|
|
226
|
+
# The Overview tab (plugins/overview): a right-sidebar page with one session
|
|
227
|
+
# at a glance (this computer, the folder, the repository and branch, the
|
|
228
|
+
# token meter's context and usage, changed files, background jobs,
|
|
229
|
+
# connectors), read-only, on one route inside Connection's fence. Without
|
|
230
|
+
# the web server it doesn't start
|
|
231
|
+
- insert:
|
|
232
|
+
- id: kriya-overview
|
|
233
|
+
name: '@kriya-ai/harness-overview'
|
|
234
|
+
# Web UI only: it needs the web server's connection, which the other profiles lack
|
|
235
|
+
disabled: !!js ctx.get('profileContext')?.name !== 'kriya'
|
|
236
|
+
|
|
237
|
+
# Remote Control (plugins/remote): the switch in the Overview tab streams a
|
|
238
|
+
# session to the person's Kriya and listens for the Control Center while this
|
|
239
|
+
# app runs, with no command. Without the web server it doesn't start
|
|
240
|
+
- insert:
|
|
241
|
+
- id: kriya-remote
|
|
242
|
+
name: '@kriya-ai/harness-remote'
|
|
243
|
+
# Web UI only: it needs the web server's connection, which the other profiles lack
|
|
244
|
+
disabled: !!js ctx.get('profileContext')?.name !== 'kriya'
|
|
245
|
+
|
|
246
|
+
# Delete session (plugins/sessions): a row in a session's "..." menu; DSH has
|
|
247
|
+
# archive only. Without the web server it doesn't start
|
|
248
|
+
- insert:
|
|
249
|
+
- id: kriya-sessions
|
|
250
|
+
name: '@kriya-ai/harness-sessions'
|
|
251
|
+
# Web UI only: it needs the web server's connection, which the other profiles lack
|
|
252
|
+
disabled: !!js ctx.get('profileContext')?.name !== 'kriya'
|
|
253
|
+
|
|
254
|
+
# Reverse engineering (plugins/rea): two small tools over the pinned REA MCP
|
|
255
|
+
# server, started on first use, and its guidance only on such requests. Off in
|
|
256
|
+
# KriyaBench's tool-minimal arm
|
|
257
|
+
- insert:
|
|
258
|
+
- id: kriya-rea
|
|
259
|
+
name: '@kriya-ai/harness-rea'
|
|
260
|
+
disabled: !!js process.env.KRIYA_MINIMAL === 'on'
|
|
261
|
+
|
|
262
|
+
# The Progress tab (plugins/progress): what the Kriya loop recorded for a
|
|
263
|
+
# session (goal, plan, each step's status and attempts, every check run and
|
|
264
|
+
# the verdict against the files now), read-only, on one route inside
|
|
265
|
+
# Connection's fence. Without the web server it doesn't start
|
|
266
|
+
- insert:
|
|
267
|
+
- id: kriya-progress
|
|
268
|
+
name: '@kriya-ai/harness-progress'
|
|
269
|
+
# Web UI only: it needs the web server's connection, which the other profiles lack
|
|
270
|
+
disabled: !!js ctx.get('profileContext')?.name !== 'kriya'
|
|
271
|
+
|
|
272
|
+
# The Preview tab (plugins/preview, browser stage 1): an app on this
|
|
273
|
+
# computer (localhost only, never the Web UI's own port) in a frame, with an
|
|
274
|
+
# address bar and "open in your browser". Browser half only
|
|
275
|
+
- insert:
|
|
276
|
+
- id: kriya-preview
|
|
277
|
+
name: '@kriya-ai/harness-preview'
|
|
278
|
+
|
|
279
|
+
# The Graph tab (plugins/graph): the session's plan drawn as a graph, from the
|
|
280
|
+
# Progress tab's own route. Browser half only; a flow is designed in Kriya
|
|
281
|
+
- insert:
|
|
282
|
+
- id: kriya-graph
|
|
283
|
+
name: '@kriya-ai/harness-graph'
|
|
284
|
+
|
|
285
|
+
# Browser stage 2 (plugins/browser): the agent's browser for apps on this
|
|
286
|
+
# computer (localhost only) on the installed Chrome, and the routes the
|
|
287
|
+
# Preview tab's "Agent's browser" view uses. Off unless kriya was started
|
|
288
|
+
# with --browser-tools (KRIYA_BROWSER=on): off, no tool, route or Chrome exists
|
|
289
|
+
- insert:
|
|
290
|
+
- id: kriya-browser
|
|
291
|
+
name: '@kriya-ai/harness-browser'
|
|
292
|
+
# Off in KriyaBench's tool-minimal arm (KRIYA_MINIMAL=on), which keeps only the shell, files and search
|
|
293
|
+
disabled: !!js process.env.KRIYA_BROWSER !== 'on' || process.env.KRIYA_MINIMAL === 'on'
|
|
294
|
+
|
|
295
|
+
# The intent router (plugins/router): for the person's latest message, a
|
|
296
|
+
# short brief of the skills likely to help and the tools to start with, in
|
|
297
|
+
# a late prompt section. Hides and adds nothing. Off unless kriya was
|
|
298
|
+
# started with --router (KRIYA_ROUTER=on): off, the prompt is as before
|
|
299
|
+
- insert:
|
|
300
|
+
- id: kriya-router
|
|
301
|
+
name: '@kriya-ai/harness-router'
|
|
302
|
+
disabled: !!js process.env.KRIYA_ROUTER !== 'on'
|
|
303
|
+
|
|
304
|
+
# Kriya modes (src/modes.js): the launcher sets KRIYA_SANDBOX,
|
|
305
|
+
# KRIYA_APPROVAL and KRIYA_PRESET from `--mode`; anything else falls back
|
|
306
|
+
# to Ask (the HD-02 default: workspace-write, approvals ask). DSH's `never`
|
|
307
|
+
# refuses what would need approval, so Auto and Read only never escalate.
|
|
308
|
+
# The preset table is the Web UI's Permissions selector and /permission
|
|
309
|
+
- id: sandbox-policy
|
|
310
|
+
config:
|
|
311
|
+
mode: !!js >-
|
|
312
|
+
['read-only', 'workspace-write', 'danger-full-access'].includes(process.env.KRIYA_SANDBOX)
|
|
313
|
+
? process.env.KRIYA_SANDBOX : 'workspace-write'
|
|
314
|
+
workspaceRoot: !!js process.cwd()
|
|
315
|
+
- id: approval
|
|
316
|
+
config:
|
|
317
|
+
policy: !!js >-
|
|
318
|
+
process.env.KRIYA_APPROVAL === 'never' ? 'never' : 'ask'
|
|
319
|
+
- id: permission
|
|
320
|
+
config:
|
|
321
|
+
presets:
|
|
322
|
+
ask:
|
|
323
|
+
sandbox: workspace-write
|
|
324
|
+
approval: ask
|
|
325
|
+
name: Ask
|
|
326
|
+
description: Works in this folder and asks before anything beyond it, here or in Kriya on your phone.
|
|
327
|
+
folder-auto:
|
|
328
|
+
sandbox: workspace-write
|
|
329
|
+
approval: never
|
|
330
|
+
name: Auto
|
|
331
|
+
description: Works in this folder without asking; anything that would need your OK is refused instead.
|
|
332
|
+
read-only:
|
|
333
|
+
sandbox: read-only
|
|
334
|
+
approval: never
|
|
335
|
+
name: Read only
|
|
336
|
+
description: Reads and answers; changes no file.
|
|
337
|
+
full-access:
|
|
338
|
+
sandbox: danger-full-access
|
|
339
|
+
approval: never
|
|
340
|
+
name: Full access
|
|
341
|
+
description: No sandbox and no questions. Only on a machine you can afford to change.
|
|
342
|
+
defaultPreset: !!js >-
|
|
343
|
+
['ask', 'folder-auto', 'read-only', 'full-access'].includes(process.env.KRIYA_PRESET)
|
|
344
|
+
? process.env.KRIYA_PRESET : 'ask'
|
|
345
|
+
|
|
346
|
+
# H5 (HD-08): DSH's approval requests also go to Kriya, so the person can
|
|
347
|
+
# answer on their phone; first answer wins, no answer fails closed. Both
|
|
348
|
+
# profiles: in the headless one it's the only answerer (plugins/approvals)
|
|
349
|
+
- insert:
|
|
350
|
+
- id: kriya-approvals
|
|
351
|
+
name: '@kriya-ai/harness-approvals'
|
|
352
|
+
|
|
353
|
+
# H6 (HD-09): a summary of each turn in a Kriya thread, only when the person
|
|
354
|
+
# turned the mirror on for this device in Kriya (plugins/mirror). Local
|
|
355
|
+
# history stays DSH's own
|
|
356
|
+
- insert:
|
|
357
|
+
- id: kriya-mirror
|
|
358
|
+
name: '@kriya-ai/harness-mirror'
|
|
359
|
+
|
|
360
|
+
# H7 (HD-10): the device agent's Kriya skills as a skill source (local
|
|
361
|
+
# skills win a name) and kriya_memory_search / kriya_memory_save; notes
|
|
362
|
+
# saved from here stay unconfirmed until the person confirms them in Kriya
|
|
363
|
+
- insert:
|
|
364
|
+
- id: kriya-tools
|
|
365
|
+
name: '@kriya-ai/harness-tools'
|
|
366
|
+
disabled: !!js process.env.KRIYA_MINIMAL === 'on'
|
|
367
|
+
|
|
368
|
+
# DSH's first-run "Preview Notice" speaks for DeepSeek Harness; Kriya shows
|
|
369
|
+
# its own beta notice at first run (bin/kriya.js) and in SAFETY.md, which
|
|
370
|
+
# say DSH is an unaudited preview. Marked as seen with DSH's own
|
|
371
|
+
# acknowledgement field; a DSH bump that changes the version shows it again
|
|
372
|
+
# and changes the recorded dump (HT-REL-03)
|
|
373
|
+
- id: ui-settings-general
|
|
374
|
+
config:
|
|
375
|
+
welcomeNoticeVersion: '2026-09-28.1'
|
|
376
|
+
|
|
377
|
+
# HD-17: no telemetry leaves the machine
|
|
378
|
+
- id: otel
|
|
379
|
+
disabled: true
|
|
380
|
+
- id: session-telemetry-otel
|
|
381
|
+
disabled: true
|
|
382
|
+
# Web UI only (no such rows in the headless profile, where they're no-ops);
|
|
383
|
+
# DSH turns these on only for its desktop profile, Kriya turns them off outright
|
|
384
|
+
- id: desktop-product-telemetry
|
|
385
|
+
disabled: true
|
|
386
|
+
- id: product-analytics
|
|
387
|
+
disabled: true
|
|
388
|
+
|
|
389
|
+
# The agent's identity is Kriya's (owner, 2026-11-06: "completely this was a
|
|
390
|
+
# Kriya harness product"): DSH's fixed opener names DeepSeek Harness, so it is
|
|
391
|
+
# off and the persona line, which DSH documents for "deployments with another
|
|
392
|
+
# identity", says Kriya instead. DSH stays credited in `kriya --version`,
|
|
393
|
+
# SAFETY.md and THIRD_PARTY_NOTICES.md (its MIT licence)
|
|
394
|
+
- id: system-prompt
|
|
395
|
+
config:
|
|
396
|
+
includeHarnessIdentity: false
|
|
397
|
+
personaPrefix: You are Kriya, a coding agent in Kriya Harness, working with the {{model}} model.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Where contract.json comes from
|
|
2
|
+
|
|
3
|
+
`contract.json` is a copy of `docs/kriya-harness/contract.json` in the Kriya
|
|
4
|
+
repository, exported from `lib/harness/contract.ts` by
|
|
5
|
+
`scripts/harness-contract.ts` there (HD-03). Do not edit it here: copy it
|
|
6
|
+
again from Kriya and update the hash below in the same change.
|
|
7
|
+
|
|
8
|
+
| Field | Value |
|
|
9
|
+
| --- | --- |
|
|
10
|
+
| Copied | 2026-11-08 (again: decision cards, notes, new recordings; dispatch kind `edit`, the editing preview routes) |
|
|
11
|
+
| From | Kriya repository `main` (uncommitted) on `d46bb0c` |
|
|
12
|
+
| sha256 | `65e1614719f28861bc11b2368c97e90ddff81ac070591a48366ac846ededae88` |
|
|
13
|
+
|
|
14
|
+
When the Kriya side commits the file, replace "From" with that commit.
|
|
15
|
+
`tests/contract.test.js` checks the hash, so a hand edit fails.
|