@odla-ai/harness 0.8.0 → 0.8.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/dist/node.d.cts CHANGED
@@ -406,6 +406,11 @@ interface CodeAgentAttemptOptions {
406
406
  /** Run-wide ceiling enforced by runAgent against incremental usage. */
407
407
  budget?: AgentRunBudget;
408
408
  signal?: AbortSignal;
409
+ /** Skills the host adds beyond the sandbox surface — PM, chat — built by the
410
+ * caller because they need a tenant-scoped database credential the harness
411
+ * deliberately does not hold. Without them a coordinator can read and patch
412
+ * code and then has no way to record a task, a decision or a bug. */
413
+ extraSkills?: Skill[];
409
414
  /** Emitted per brokered call so the engine can report tool activity. */
410
415
  onToolCall?(call: {
411
416
  tool: HarnessToolName;
@@ -507,6 +512,15 @@ interface TheseusRuntimeEngineOptions {
507
512
  recipeExecutor?: CodeRecipeExecutor;
508
513
  /** Owner-visible and terminal-visible bounded runtime failures. */
509
514
  onDiagnostic?: (message: string) => void;
515
+ /** Skills the host adds for a session, beyond the sandbox surface.
516
+ *
517
+ * A function of the command rather than a fixed list, because PM is scoped to
518
+ * one app and one project: the credential and the project are properties of
519
+ * the session being served, not of the engine. Absent means the coordinator
520
+ * gets code tools only, which is what it had — able to patch a file and
521
+ * unable to record that it did.
522
+ */
523
+ sessionSkills?: (command: CodeRuntimeCommand) => Skill[] | Promise<Skill[]>;
510
524
  /** Frozen checkout snapshot owned by the foreground terminal process. */
511
525
  localSource?: FrozenCodeLocalSource;
512
526
  }
package/dist/node.d.ts CHANGED
@@ -406,6 +406,11 @@ interface CodeAgentAttemptOptions {
406
406
  /** Run-wide ceiling enforced by runAgent against incremental usage. */
407
407
  budget?: AgentRunBudget;
408
408
  signal?: AbortSignal;
409
+ /** Skills the host adds beyond the sandbox surface — PM, chat — built by the
410
+ * caller because they need a tenant-scoped database credential the harness
411
+ * deliberately does not hold. Without them a coordinator can read and patch
412
+ * code and then has no way to record a task, a decision or a bug. */
413
+ extraSkills?: Skill[];
409
414
  /** Emitted per brokered call so the engine can report tool activity. */
410
415
  onToolCall?(call: {
411
416
  tool: HarnessToolName;
@@ -507,6 +512,15 @@ interface TheseusRuntimeEngineOptions {
507
512
  recipeExecutor?: CodeRecipeExecutor;
508
513
  /** Owner-visible and terminal-visible bounded runtime failures. */
509
514
  onDiagnostic?: (message: string) => void;
515
+ /** Skills the host adds for a session, beyond the sandbox surface.
516
+ *
517
+ * A function of the command rather than a fixed list, because PM is scoped to
518
+ * one app and one project: the credential and the project are properties of
519
+ * the session being served, not of the engine. Absent means the coordinator
520
+ * gets code tools only, which is what it had — able to patch a file and
521
+ * unable to record that it did.
522
+ */
523
+ sessionSkills?: (command: CodeRuntimeCommand) => Skill[] | Promise<Skill[]>;
510
524
  /** Frozen checkout snapshot owned by the foreground terminal process. */
511
525
  localSource?: FrozenCodeLocalSource;
512
526
  }
package/dist/node.js CHANGED
@@ -44,7 +44,7 @@ import {
44
44
  validateMemory,
45
45
  validateRelativePath,
46
46
  verifyCodeCandidate
47
- } from "./chunk-ISR434K7.js";
47
+ } from "./chunk-IWVGSWY6.js";
48
48
  import {
49
49
  assertPinnedImage,
50
50
  buildContainerRunArgs,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odla-ai/harness",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Safe, inspectable coding-task protocol and credentialless container runner for odla Studio.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://odla.ai/docs/packages/harness",