@kriya-ai/harness 0.2.4 → 2.0.0
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/RELEASE_NOTES.md +121 -0
- package/SAFETY.md +181 -0
- package/THIRD_PARTY_NOTICES.md +113 -0
- package/bin/kriya.js +188 -2
- package/bundle/cordis.patch.yml +49 -0
- package/contract/SOURCE.md +3 -3
- package/contract/contract.json +504 -3
- package/contract/schemas/api.json +64 -0
- package/contract/schemas/auth_matrix.json +44 -0
- package/contract/schemas/component_states.json +33 -0
- package/contract/schemas/design_tokens.json +34 -0
- package/contract/schemas/scene_direction.json +82 -0
- package/contract/schemas/threat_model.json +44 -0
- package/package.json +2 -1
- package/plugins/changes/client.js +5 -3
- package/plugins/deploy/index.js +215 -0
- package/plugins/deploy/package.json +13 -0
- package/plugins/grounding/index.js +81 -0
- package/plugins/grounding/lookup.js +373 -0
- package/plugins/grounding/package.json +13 -0
- package/plugins/kriya-tools/index.js +2 -1
- package/plugins/loop/index.js +376 -10
- package/plugins/mcp/index.js +79 -0
- package/plugins/mcp/package.json +13 -0
- package/plugins/mirror/index.js +17 -0
- package/plugins/overview/client.js +5 -2
- package/plugins/preview/client.js +12 -6
- package/plugins/progress/client.js +7 -4
- package/plugins/repo/index.js +230 -0
- package/plugins/repo/package.json +13 -0
- package/plugins/repo/repo.js +348 -0
- package/plugins/runstrip/client.js +426 -0
- package/plugins/runstrip/index.js +301 -0
- package/plugins/runstrip/package.json +23 -0
- package/src/cartridges.js +133 -0
- package/src/contracts.js +130 -0
- package/src/critic.js +78 -0
- package/src/daemon.js +7 -1
- package/src/doctor.js +67 -0
- package/src/edit/core/effects.js +185 -0
- package/src/edit/core/ffmpeg.js +82 -5
- package/src/edit/core/layout.js +46 -1
- package/src/edit/core/ops.js +175 -3
- package/src/edit/core/plan.js +95 -9
- package/src/edit/core/project.d.ts +24 -0
- package/src/edit/core/project.js +64 -0
- package/src/edit/core/solver.js +34 -6
- package/src/edit/core/style-brief.js +211 -0
- package/src/edit/core/style-packs.js +57 -0
- package/src/edit/core/transitions.js +17 -0
- package/src/edit/core/type-kit.js +173 -0
- package/src/edit/director/ask.js +37 -3
- package/src/edit/director/assembly.js +829 -0
- package/src/edit/director/continuity.js +137 -0
- package/src/edit/director/custom-motion.js +88 -0
- package/src/edit/director/graphics.js +186 -0
- package/src/edit/director/intent.js +125 -0
- package/src/edit/director/mentions.js +52 -0
- package/src/edit/director/plan.js +89 -12
- package/src/edit/director/revise.js +172 -7
- package/src/edit/director/viewer.js +136 -0
- package/src/edit/director/watch-fix.js +119 -0
- package/src/edit/engine/captions.js +110 -5
- package/src/edit/engine/confine.js +81 -4
- package/src/edit/engine/custom.js +243 -0
- package/src/edit/engine/dna2.js +893 -0
- package/src/edit/engine/fonts.js +218 -0
- package/src/edit/engine/graphics.js +439 -0
- package/src/edit/engine/index.js +14 -5
- package/src/edit/engine/motion.js +153 -14
- package/src/edit/engine/music-bed.js +59 -1
- package/src/edit/engine/packs.js +11 -0
- package/src/edit/engine/reference2.js +26 -0
- package/src/edit/engine/sfx.js +56 -1
- package/src/edit/engine/tool.js +21 -5
- package/src/edit/gates/assembly.js +194 -0
- package/src/edit/gates/copy.js +7 -4
- package/src/edit/gates/index.js +76 -8
- package/src/edit/gates/picture.js +6 -3
- package/src/edit/gates/reference.js +115 -0
- package/src/edit/gates/tile.js +96 -0
- package/src/edit/host/client.js +4 -3
- package/src/edit/host/clips.js +33 -0
- package/src/edit/host/jobs.js +9 -3
- package/src/edit/host/layers.js +134 -0
- package/src/edit/host/main.js +17 -7
- package/src/edit/host/paths.js +34 -3
- package/src/edit/host/preview.js +108 -0
- package/src/edit/host/projects.js +494 -29
- package/src/edit/host/server.js +263 -19
- package/src/edit/host/tavi.js +77 -0
- package/src/edit/loop/make.js +44 -3
- package/src/edit/recipes/assembly.js +352 -0
- package/src/edit/recipes/graphic-clips.js +59 -0
- package/src/edit/recipes/openings.js +36 -0
- package/src/edit/recipes/reel.js +138 -17
- package/src/edit/recipes/reference-look.js +29 -0
- package/src/edit/recipes/short-from-long.js +3 -3
- package/src/edit/recipes/sound.js +71 -0
- package/src/edit/runtime/cli.js +26 -5
- package/src/edit/runtime/fetch.js +4 -3
- package/src/edit/runtime/licences.js +7 -1
- package/src/explore.js +103 -0
- package/src/failure.js +1 -1
- package/src/gate-commands.js +114 -0
- package/src/gates/api.js +127 -0
- package/src/gates/commands.js +111 -0
- package/src/gates/detectors.js +370 -0
- package/src/gates/http.js +62 -0
- package/src/gates/index.js +196 -0
- package/src/gates/page.js +264 -0
- package/src/gates/sast.js +64 -0
- package/src/gates/stack.js +110 -0
- package/src/gates/tenant.js +162 -0
- package/src/gates/three.js +407 -0
- package/src/gates/ui.js +111 -0
- package/src/launch.js +15 -3
- package/src/loop.js +199 -7
- package/src/mcp.js +126 -0
- package/src/milestones.js +188 -0
- package/src/modes.js +32 -0
- package/src/orchestra.js +43 -0
- package/src/outcomes.js +88 -0
- package/src/profiles.js +5 -0
- package/src/receipts.js +238 -0
- package/src/release.js +356 -0
- package/src/runstrip.js +122 -0
- package/src/stack.js +120 -0
- package/src/verify.js +67 -20
- package/studio/dist/fonts/fraunces.woff2 +0 -0
- package/studio/dist/fonts/geist.woff2 +0 -0
- package/studio/dist/fonts/jetbrains-mono.woff2 +0 -0
- package/studio/dist/studio.css +452 -3
- package/studio/dist/studio.js +3 -3
package/bin/kriya.js
CHANGED
|
@@ -13,7 +13,12 @@ import { CheckpointError, listCheckpoints, trackedRoot, undo } from "../src/chec
|
|
|
13
13
|
import { clearCheck, confirmCheck, confirmedCheck, discoverChecks, MAX_ATTEMPTS, sessionReport, VerifyError } from "../src/verify.js"
|
|
14
14
|
import { projectRoot, setSkillSwitch, SwitchError } from "../src/skill-switches.js"
|
|
15
15
|
import { confirmRule, dismissRule, forgetRule, listRules, RulesError } from "../src/rules.js"
|
|
16
|
+
import { forgetStack, hostedDatabase, readStack, shownDatabase, StackError, useStack } from "../src/stack.js"
|
|
17
|
+
import { COMMAND_GATES, confirmBaseline, forgetGateCommand, GateCommandError, gateCommands, useGateCommand } from "../src/gate-commands.js"
|
|
16
18
|
import { login } from "../src/login.js"
|
|
19
|
+
import { setShare, shareStatus } from "../src/outcomes.js"
|
|
20
|
+
import { latestSession, makeReceipt, makeReport, ReceiptError, verifyReceipt } from "../src/receipts.js"
|
|
21
|
+
import { readRelease, ReleaseError, useRelease } from "../src/release.js"
|
|
17
22
|
import { APP_MODES, FULL_ACCESS_WARNING, MODES, ModeError, parseMode, planJob, switchEnv } from "../src/modes.js"
|
|
18
23
|
import { CLIENT_VERSION, DSH_VERSION, kriyaHome } from "../src/paths.js"
|
|
19
24
|
import { deleteDevice, ensureHome, kriyaUrl, readDevice } from "../src/store.js"
|
|
@@ -31,6 +36,20 @@ Usage:
|
|
|
31
36
|
run one job and print the answer (--json for events)
|
|
32
37
|
kriya acp the agent for editors: an ACP server on stdin/stdout
|
|
33
38
|
kriya usage [--json] this month's Kriya Harness spend and limit
|
|
39
|
+
kriya release use --build "<cmd>" --app http://localhost:<port> [--out dist] [--routes /,/pricing]
|
|
40
|
+
[--budget-kb <n>] [--domain <host>] [--headers <names>] [--marker "<text>"]
|
|
41
|
+
confirm how this project's production build is made and checked
|
|
42
|
+
kriya release show it
|
|
43
|
+
kriya doctor --gates which gates work on this computer, and their self-tests
|
|
44
|
+
kriya report write a redacted bundle for a bug report (you attach it)
|
|
45
|
+
kriya receipt make [<session>]
|
|
46
|
+
write this project's proof receipt (what Kriya checked by
|
|
47
|
+
code on this computer) to ~/.kriya/receipts/
|
|
48
|
+
kriya receipt verify <file>
|
|
49
|
+
recheck a receipt against this computer's records
|
|
50
|
+
kriya share on|off|status
|
|
51
|
+
share counts of verified and blocked steps per role
|
|
52
|
+
cartridge version with Kriya (off by default; counts only)
|
|
34
53
|
(your editor starts it; kriya acp --help for details)
|
|
35
54
|
kriya handoff ["<note>"]
|
|
36
55
|
hand this repository's uncommitted work to your Kriya
|
|
@@ -66,6 +85,17 @@ Usage:
|
|
|
66
85
|
kriya verify status [--session <id>] [--json]
|
|
67
86
|
where the newest session here stands, with each check
|
|
68
87
|
run as evidence; exits 0 only when verified
|
|
88
|
+
kriya stack use --app http://localhost:<port> [--db postgresql://…@127.0.0.1:<port>/<db>]
|
|
89
|
+
confirm the app and database you run on this computer, for
|
|
90
|
+
the live gates (--gates): only local addresses are accepted
|
|
91
|
+
kriya stack show them; kriya stack forget removes them
|
|
92
|
+
kriya gates use <data|eval|san|iac|sim|sim-headless> "<command>" [options]
|
|
93
|
+
confirm the command a gate runs (data: --output <path>;
|
|
94
|
+
eval: --metrics <file.json> --metric <name> [--direction
|
|
95
|
+
lower] [--margin <n>]; sim-headless: [--frame-budget-ms <n>])
|
|
96
|
+
kriya gates show them; kriya gates forget <gate> removes one
|
|
97
|
+
kriya eval baseline confirm
|
|
98
|
+
make the last recorded evaluation the baseline G-EVAL compares to
|
|
69
99
|
kriya undo put this repository's files back one step (with the loop
|
|
70
100
|
the agent saves a checkpoint before each change)
|
|
71
101
|
kriya undo --list the checkpoints, newest first
|
|
@@ -219,12 +249,53 @@ async function main(argv) {
|
|
|
219
249
|
return 0
|
|
220
250
|
}
|
|
221
251
|
case "doctor":
|
|
252
|
+
if (args.includes("--gates")) {
|
|
253
|
+
const { doctorGates } = await import("../src/doctor.js")
|
|
254
|
+
return (await doctorGates()) ? 0 : 1
|
|
255
|
+
}
|
|
222
256
|
return (await doctor()) ? 0 : 1
|
|
257
|
+
case "release": {
|
|
258
|
+
const [action, ...rest] = args
|
|
259
|
+
if (action === "use") {
|
|
260
|
+
try {
|
|
261
|
+
const entry = useRelease(process.cwd(), {
|
|
262
|
+
build: option(rest, "--build"),
|
|
263
|
+
app: option(rest, "--app"),
|
|
264
|
+
out: option(rest, "--out"),
|
|
265
|
+
routes: option(rest, "--routes"),
|
|
266
|
+
budgetKb: option(rest, "--budget-kb"),
|
|
267
|
+
domain: option(rest, "--domain"),
|
|
268
|
+
headers: option(rest, "--headers"),
|
|
269
|
+
marker: option(rest, "--marker"),
|
|
270
|
+
})
|
|
271
|
+
say(`Release confirmed: build \`${entry.build}\`${entry.app ? `, production server ${entry.app}` : " (no production server yet: start it and add --app http://localhost:<port>)"}.`)
|
|
272
|
+
return 0
|
|
273
|
+
} catch (error) {
|
|
274
|
+
if (error instanceof ReleaseError) {
|
|
275
|
+
say(error.message)
|
|
276
|
+
return 1
|
|
277
|
+
}
|
|
278
|
+
throw error
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
if (action !== undefined) {
|
|
282
|
+
say(`Unknown release command ${action}.\n\n${HELP}`)
|
|
283
|
+
return 1
|
|
284
|
+
}
|
|
285
|
+
const release = readRelease(process.cwd())
|
|
286
|
+
say(release ? JSON.stringify(release, null, 2) : 'No release confirmed: kriya release use --build "<command>" --app http://localhost:<port> sets one.')
|
|
287
|
+
return 0
|
|
288
|
+
}
|
|
289
|
+
case "report": {
|
|
290
|
+
const { file } = await makeReport(projectRoot(process.cwd()))
|
|
291
|
+
say(`Wrote ${file}. It holds versions, the gates' matrix and self-tests, and this project's receipts: no file contents, prompts, commands' secrets or query strings. Attach it yourself if you report a bug.`)
|
|
292
|
+
return 0
|
|
293
|
+
}
|
|
223
294
|
// Track E: nothing under src/edit/ loads unless the switch is on
|
|
224
295
|
case "edit": {
|
|
225
296
|
useLoop(args)
|
|
226
297
|
if (process.env.KRIYA_EDIT !== "on") {
|
|
227
|
-
say("Editing is off.
|
|
298
|
+
say("Editing is off. Run kriya edit --edit to open the Editing Studio, or set KRIYA_EDIT=on.")
|
|
228
299
|
return 1
|
|
229
300
|
}
|
|
230
301
|
const { editCommand } = await import("../src/edit/runtime/cli.js")
|
|
@@ -239,6 +310,61 @@ async function main(argv) {
|
|
|
239
310
|
else say(`This month: ₹${(harness.usedMicroInr / 1e6).toFixed(2)} of ₹${(harness.capMicroInr / 1e6).toFixed(2)}${harness.unpriced ? ` (${harness.unpriced} not priced yet)` : ""}.`)
|
|
240
311
|
return 0
|
|
241
312
|
}
|
|
313
|
+
case "receipt": {
|
|
314
|
+
const [action, target] = args
|
|
315
|
+
if (action === "make") {
|
|
316
|
+
const root = projectRoot(process.cwd())
|
|
317
|
+
const session = target ?? latestSession(root)
|
|
318
|
+
if (!session) {
|
|
319
|
+
say("No Kriya session has records in this project yet.")
|
|
320
|
+
return 1
|
|
321
|
+
}
|
|
322
|
+
try {
|
|
323
|
+
const { receipt, files } = makeReceipt(root, session)
|
|
324
|
+
say(`Receipt for session ${session}: ${receipt.verdict}, ${receipt.runs} check run(s), chain ${receipt.chain}.\n${files.json}\n${files.md}`)
|
|
325
|
+
return 0
|
|
326
|
+
} catch (error) {
|
|
327
|
+
if (error instanceof ReceiptError || error instanceof VerifyError) {
|
|
328
|
+
say(error.message)
|
|
329
|
+
return 1
|
|
330
|
+
}
|
|
331
|
+
throw error
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
if (action === "verify" && target) {
|
|
335
|
+
let text
|
|
336
|
+
try {
|
|
337
|
+
text = readFileSync(target, "utf8")
|
|
338
|
+
} catch {
|
|
339
|
+
say(`Can't read ${target}.`)
|
|
340
|
+
return 1
|
|
341
|
+
}
|
|
342
|
+
const { ok, problems } = verifyReceipt(text)
|
|
343
|
+
say(ok ? "The receipt matches this computer's records: every run and field checks out." : `The receipt doesn't match:\n${problems.map((p) => `- ${p}`).join("\n")}`)
|
|
344
|
+
return ok ? 0 : 1
|
|
345
|
+
}
|
|
346
|
+
say("kriya receipt make [<session>] | kriya receipt verify <file>")
|
|
347
|
+
return 1
|
|
348
|
+
}
|
|
349
|
+
case "share": {
|
|
350
|
+
const [action] = args
|
|
351
|
+
if (action === "on" || action === "off") {
|
|
352
|
+
setShare(action === "on")
|
|
353
|
+
say(
|
|
354
|
+
action === "on"
|
|
355
|
+
? "Sharing is on: Kriya gets counts of verified, blocked and unchecked steps per role cartridge version, with your mirrored turns. No text, names or files. kriya share off stops it."
|
|
356
|
+
: "Sharing is off. Counts not yet sent were dropped."
|
|
357
|
+
)
|
|
358
|
+
return 0
|
|
359
|
+
}
|
|
360
|
+
if (action === undefined || action === "status") {
|
|
361
|
+
const { on, changedAt } = shareStatus()
|
|
362
|
+
say(on ? `Sharing is on${changedAt ? ` (since ${changedAt})` : ""}: counts only, sent with mirrored turns.` : "Sharing is off (the default). kriya share on shares counts of step outcomes per role cartridge version.")
|
|
363
|
+
return 0
|
|
364
|
+
}
|
|
365
|
+
say("kriya share takes on, off or status.")
|
|
366
|
+
return 1
|
|
367
|
+
}
|
|
242
368
|
case "skills": {
|
|
243
369
|
const [action, target] = args
|
|
244
370
|
if (action === "link") {
|
|
@@ -323,6 +449,64 @@ async function main(argv) {
|
|
|
323
449
|
} else say('This project defines no check Kriya recognises; kriya verify use "<command>" sets one.')
|
|
324
450
|
return 0
|
|
325
451
|
}
|
|
452
|
+
case "stack": {
|
|
453
|
+
const [action, ...rest] = args
|
|
454
|
+
if (action === "use") {
|
|
455
|
+
const entry = useStack(process.cwd(), { app: option(rest, "--app"), db: option(rest, "--db") })
|
|
456
|
+
say(`Confirmed for ${entry.root}:${entry.app ? ` app ${entry.app}` : ""}${entry.db ? ` database ${shownDatabase(entry.db)}` : ""}`)
|
|
457
|
+
say("With --gates, the live gates check against these and nothing else. The API and tenant gates send requests to this app, writes included, using the test identities in .kriya/gates/tenants.json; migrations run in a transaction that is rolled back.")
|
|
458
|
+
return 0
|
|
459
|
+
}
|
|
460
|
+
if (action === "forget") {
|
|
461
|
+
say(forgetStack(process.cwd()) ? "Forgot this project's stack." : "This project had no stack.")
|
|
462
|
+
return 0
|
|
463
|
+
}
|
|
464
|
+
if (action !== undefined) {
|
|
465
|
+
say(`Unknown stack command ${action}.\n\n${HELP}`)
|
|
466
|
+
return 1
|
|
467
|
+
}
|
|
468
|
+
const stack = readStack(process.cwd())
|
|
469
|
+
say(stack.app || stack.db ? `App: ${stack.app ?? "none"}\nDatabase: ${stack.db ? shownDatabase(stack.db) : "none"}` : 'No stack confirmed: kriya stack use --app http://localhost:<port> sets one.')
|
|
470
|
+
const hosted = hostedDatabase(projectRoot(process.cwd()))
|
|
471
|
+
if (hosted) say(`${hosted.variable} in ${hosted.file} points off this computer, so the database gate won't run here.`)
|
|
472
|
+
return 0
|
|
473
|
+
}
|
|
474
|
+
case "gates": {
|
|
475
|
+
const [action, gate, ...rest] = args
|
|
476
|
+
if (action === "use") {
|
|
477
|
+
const words = []
|
|
478
|
+
const opts = {}
|
|
479
|
+
for (let i = 0; i < rest.length; i++) {
|
|
480
|
+
const m = /^--(output|metrics|metric|direction|margin|frame-budget-ms)$/.exec(rest[i])
|
|
481
|
+
if (m) opts[m[1] === "frame-budget-ms" ? "frameBudgetMs" : m[1]] = rest[++i]
|
|
482
|
+
else words.push(rest[i])
|
|
483
|
+
}
|
|
484
|
+
const e = useGateCommand(process.cwd(), gate, words.join(" "), opts)
|
|
485
|
+
say(`Confirmed ${COMMAND_GATES[gate].id} for ${e.root}: ${e.command}`)
|
|
486
|
+
return 0
|
|
487
|
+
}
|
|
488
|
+
if (action === "forget") {
|
|
489
|
+
say(forgetGateCommand(process.cwd(), gate) ? `Forgot the ${gate} gate's command.` : `No ${gate} command was confirmed.`)
|
|
490
|
+
return 0
|
|
491
|
+
}
|
|
492
|
+
if (action !== undefined) {
|
|
493
|
+
say(`Unknown gates command ${action}.\n\n${HELP}`)
|
|
494
|
+
return 1
|
|
495
|
+
}
|
|
496
|
+
const mine = gateCommands(process.cwd())
|
|
497
|
+
for (const [name, spec] of Object.entries(COMMAND_GATES)) say(` ${spec.id.padEnd(15)} ${mine[name] ? mine[name].command : `not confirmed (${spec.what})`}`)
|
|
498
|
+
return 0
|
|
499
|
+
}
|
|
500
|
+
case "eval": {
|
|
501
|
+
const [what, action] = args
|
|
502
|
+
if (what !== "baseline" || action !== "confirm") {
|
|
503
|
+
say(`kriya eval baseline confirm\n\n${HELP}`)
|
|
504
|
+
return 1
|
|
505
|
+
}
|
|
506
|
+
const c = confirmBaseline(process.cwd())
|
|
507
|
+
say(`Baseline confirmed: ${c.metric} = ${c.value} (${c.direction} is better). G-EVAL fails anything worse.`)
|
|
508
|
+
return 0
|
|
509
|
+
}
|
|
326
510
|
case "rules": {
|
|
327
511
|
const [action, n, ...words] = args
|
|
328
512
|
if (action === "confirm") say(`Confirmed; the loop's builders now see: ${confirmRule(process.cwd(), n, words.join(" "))}`)
|
|
@@ -570,7 +754,9 @@ main(process.argv.slice(2)).then(
|
|
|
570
754
|
error instanceof SkillsError ||
|
|
571
755
|
error instanceof VerifyError ||
|
|
572
756
|
error instanceof CheckpointError ||
|
|
573
|
-
error instanceof RulesError
|
|
757
|
+
error instanceof RulesError ||
|
|
758
|
+
error instanceof StackError ||
|
|
759
|
+
error instanceof GateCommandError
|
|
574
760
|
process.stderr.write(`kriya: ${known ? error.message : error?.message ?? error}\n`)
|
|
575
761
|
process.exit(1)
|
|
576
762
|
}
|
package/bundle/cordis.patch.yml
CHANGED
|
@@ -175,6 +175,55 @@
|
|
|
175
175
|
name: '@kriya-ai/harness-anchor'
|
|
176
176
|
disabled: !!js process.env.KRIYA_ANCHOR !== 'on'
|
|
177
177
|
|
|
178
|
+
# Harness 2.0 W15, grounding (plugins/grounding, WD-20): api_lookup,
|
|
179
|
+
# api_changes and api_version read the project's installed type definitions,
|
|
180
|
+
# stubs, changelogs and lockfiles; nothing is imported, run or sent. Off
|
|
181
|
+
# unless kriya was started with --grounding (KRIYA_GROUNDING=on): off, no
|
|
182
|
+
# tool or prompt section exists
|
|
183
|
+
- insert:
|
|
184
|
+
- id: kriya-grounding
|
|
185
|
+
name: '@kriya-ai/harness-grounding'
|
|
186
|
+
disabled: !!js process.env.KRIYA_GROUNDING !== 'on'
|
|
187
|
+
|
|
188
|
+
# Harness 2.0 W16, repository tools (plugins/repo, WD-19): typed git and gh
|
|
189
|
+
# calls through the person's own login; branch, commit, push and draft pull
|
|
190
|
+
# requests only with the person's approval (Auto refuses). Off unless kriya was
|
|
191
|
+
# started with --repo-tools (KRIYA_REPO_TOOLS=on)
|
|
192
|
+
- insert:
|
|
193
|
+
- id: kriya-repo
|
|
194
|
+
name: '@kriya-ai/harness-repo'
|
|
195
|
+
disabled: !!js process.env.KRIYA_REPO_TOOLS !== 'on'
|
|
196
|
+
|
|
197
|
+
# Harness 2.0 W16, MCP P3a (plugins/mcp): the owner's registry servers that need
|
|
198
|
+
# no sign-in, each tool registered only if its definition matches the hash the
|
|
199
|
+
# owner pinned; no token is sent. Off unless kriya was started with --mcp
|
|
200
|
+
# (KRIYA_MCP=on)
|
|
201
|
+
- insert:
|
|
202
|
+
- id: kriya-mcp
|
|
203
|
+
name: '@kriya-ai/harness-mcp'
|
|
204
|
+
disabled: !!js process.env.KRIYA_MCP !== 'on'
|
|
205
|
+
|
|
206
|
+
# Harness 2.0 W17, deploy (plugins/deploy, WD-21, WD-22): G-RELEASE, preview
|
|
207
|
+
# and production deploys through the person's own provider CLI, each approved
|
|
208
|
+
# (Auto refuses), G-DEPLOYED on the printed URL, and a guard refusing in the
|
|
209
|
+
# agent's shell what stays the person's (hosted-database migrations,
|
|
210
|
+
# production env and secrets, DNS, merges). Off unless kriya was started with
|
|
211
|
+
# --deploy (KRIYA_DEPLOY=on)
|
|
212
|
+
- insert:
|
|
213
|
+
- id: kriya-deploy
|
|
214
|
+
name: '@kriya-ai/harness-deploy'
|
|
215
|
+
disabled: !!js process.env.KRIYA_DEPLOY !== 'on'
|
|
216
|
+
|
|
217
|
+
# Harness 2.0 W18 (WD-23): the Run strip in shell.bottom, Mission Control and
|
|
218
|
+
# the four right-column tracks (Live, Proof, Changes, Project: the Preview,
|
|
219
|
+
# Progress, Changes and Overview tabs, same ids). Off unless kriya was started
|
|
220
|
+
# with --runstrip (KRIYA_RUNSTRIP=on): off, no row, route or DOM exists and
|
|
221
|
+
# the tabs read as before. Web UI only
|
|
222
|
+
- insert:
|
|
223
|
+
- id: kriya-runstrip
|
|
224
|
+
name: '@kriya-ai/harness-runstrip'
|
|
225
|
+
disabled: !!js process.env.KRIYA_RUNSTRIP !== 'on' || ctx.get('profileContext')?.name !== 'kriya'
|
|
226
|
+
|
|
178
227
|
# Harness upgrade U6: KriyaBench's tool-minimal control arm (arm B0,
|
|
179
228
|
# BENCHMARK_PLAN.md): the same sandbox, gateway, model and prompt, with only
|
|
180
229
|
# the shell and the file and search tools, so a run shows whether the rest
|
package/contract/SOURCE.md
CHANGED
|
@@ -7,9 +7,9 @@ again from Kriya and update the hash below in the same change.
|
|
|
7
7
|
|
|
8
8
|
| Field | Value |
|
|
9
9
|
| --- | --- |
|
|
10
|
-
| Copied | 2026-11-
|
|
11
|
-
| From | Kriya repository `main` (uncommitted
|
|
12
|
-
| sha256 | `
|
|
10
|
+
| Copied | 2026-11-23 (again: Harness 2.0 W13, the `graphics` role, `G-3D`, the `GX-*` and `FE-ASSET-LICENCE` detectors and the `scene_direction` contract; W16, `GET /mcp`; earlier frozen for the Harness 2.0 W12 release: regenerated, identical; again: Harness 2.0 W11, `TurnRequest.cartridgeOutcomes` and `GET /models` `workforce`; W2, the optional `orchestra` field of `GET /models`; W1's `cartridgeIds` and `GET /skills` item fields) |
|
|
11
|
+
| From | Kriya repository branch `main` (uncommitted, on `b0ed4c2`) |
|
|
12
|
+
| sha256 | `ebfcb72c1a6687e7bed3510be00a81662a2ed6594c1e1a9836cae46b44d6107f` |
|
|
13
13
|
|
|
14
14
|
When the Kriya side commits the file, replace "From" with that commit.
|
|
15
15
|
`tests/contract.test.js` checks the hash, so a hand edit fails.
|