skill-harness 0.26.0 → 0.26.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.
Files changed (2) hide show
  1. package/dist/index.js +7 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -8843,7 +8843,7 @@ var PI_DADDY_RECORD_V1_COMMIT2, PI_DADDY_RECORD_V1_SCHEMA2, PI_DADDY_RECORD_V1_G
8843
8843
  var init_pi_daddy_record_v1_contract = __esm({
8844
8844
  "packages/adapters/src/pi-daddy-record-v1-contract.ts"() {
8845
8845
  "use strict";
8846
- PI_DADDY_RECORD_V1_COMMIT2 = "38418793efb785bc582c4a233a18c40364ccd1be";
8846
+ PI_DADDY_RECORD_V1_COMMIT2 = "fad624ebc465eeb924fe91ba3b063b3851ce30ad";
8847
8847
  PI_DADDY_RECORD_V1_SCHEMA2 = {
8848
8848
  "$schema": "https://json-schema.org/draft/2020-12/schema",
8849
8849
  "$id": "https://github.com/mojomanyana/pi-daddy/contracts/ledger-record/v1/record.schema.json",
@@ -9348,6 +9348,8 @@ var init_pi_daddy_record_v1_contract = __esm({
9348
9348
  "enum": [
9349
9349
  "declined",
9350
9350
  "dismissed",
9351
+ "expired",
9352
+ "aborted",
9351
9353
  "no-ui",
9352
9354
  "error"
9353
9355
  ]
@@ -18754,6 +18756,7 @@ var unmeasuredProvider = () => ({
18754
18756
  usage: { inputTokens: null, outputTokens: null, costUsd: null },
18755
18757
  latencyMs: null
18756
18758
  });
18759
+ var missingKeyRemedy = "Set OPENROUTER_API_KEY in the environment that launches Pi, restart Pi, then enable JEV again with fresh session consent.";
18757
18760
  function createJevController(pi, options = {}) {
18758
18761
  const run = options.run ?? main;
18759
18762
  let epoch = 0;
@@ -18780,6 +18783,7 @@ function createJevController(pi, options = {}) {
18780
18783
  storage: active?.consent.decision ?? null,
18781
18784
  remaining: active?.mode === "workflow" ? JEV_WORKFLOW_LIMIT - active.used : 0,
18782
18785
  availability,
18786
+ providerReadiness: hasKey() ? "key-present" : "missing-key",
18783
18787
  advisory: true
18784
18788
  };
18785
18789
  };
@@ -18808,7 +18812,7 @@ function createJevController(pi, options = {}) {
18808
18812
  if (bound.blocked) return unavailable("Workflow advice is suppressed after an error; explicit new activation is required.");
18809
18813
  if (bound.busy) return unavailable("An advisory request is already in flight; no additional call was made.");
18810
18814
  if (bound.used >= JEV_WORKFLOW_LIMIT) return unavailable("This activation's advisory call limit is reached.");
18811
- if (!hasKey()) return unavailable("OPENROUTER_API_KEY is unavailable; no call was made.");
18815
+ if (!hasKey()) return unavailable(`OPENROUTER_API_KEY is unavailable; no call was made. ${missingKeyRemedy}`);
18812
18816
  const abort = new AbortController();
18813
18817
  const cancel = () => abort.abort();
18814
18818
  const signals = [bound.abort.signal, signal].filter((s) => s !== void 0);
@@ -18959,7 +18963,7 @@ function createJevController(pi, options = {}) {
18959
18963
  cache: /* @__PURE__ */ new Map()
18960
18964
  };
18961
18965
  ctx.ui.notify(
18962
- (workflow ? `JEV workflow advice enabled (up to ${JEV_WORKFLOW_LIMIT} paid calls). LoRA storage ` : "JEV enabled for explicitly selected paid calls. LoRA storage ") + consent.decision + " for this session only."
18966
+ (workflow ? `JEV workflow calls authorized for this session (up to ${JEV_WORKFLOW_LIMIT} paid calls). LoRA storage ` : "JEV manual mode activated; each selected paid call still requires confirmation. LoRA storage ") + consent.decision + " for this session only. " + (hasKey() ? "Provider readiness: OPENROUTER_API_KEY is present; credentials and provider access have not been verified. No provider call was made." : `Provider unavailable: OPENROUTER_API_KEY is missing or blank in this Pi process. No provider call was made. ${missingKeyRemedy}`)
18963
18967
  );
18964
18968
  return;
18965
18969
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skill-harness",
3
- "version": "0.26.0",
3
+ "version": "0.26.1",
4
4
  "description": "Test/optimize loop for agent skills \u2014 run spec'd scenarios on pi, LLM-judge, score, review, re-run",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -31,7 +31,7 @@
31
31
  "README.md"
32
32
  ],
33
33
  "dependencies": {
34
- "@skill-harness/cli": "0.26.0"
34
+ "@skill-harness/cli": "0.26.1"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "typebox": "*"