@skill-harness/cli 0.34.2 → 0.35.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/decision.js +5 -2
- package/package.json +3 -3
package/dist/decision.js
CHANGED
|
@@ -1175,8 +1175,11 @@ function validateSource(source) {
|
|
|
1175
1175
|
const a = source.authorization;
|
|
1176
1176
|
keys3(a, ["kind", "interactionId", "sessionId", "recordedAt", ...native ? ["route"] : ["provider", "model"], "question", "maximumCalls"], "workflow authorization");
|
|
1177
1177
|
text3(a.interactionId, "authorization interaction");
|
|
1178
|
-
const
|
|
1179
|
-
|
|
1178
|
+
const sessionScope = a.kind === "jev-session-paid-scope-v1";
|
|
1179
|
+
const validLimit = sessionScope ? Number.isSafeInteger(a.maximumCalls) && a.maximumCalls > 0 : a.maximumCalls === 3;
|
|
1180
|
+
const validKind = sessionScope || a.kind === (native ? "jev-workflow-paid-scope-v2" : "jev-workflow-paid-scope");
|
|
1181
|
+
const validRoute = native ? isDeepStrictEqual(validateNativeRoute(a.route), route) : a.provider === source.provider && a.model === source.model;
|
|
1182
|
+
check3(validKind && validLimit && validRoute && a.sessionId === source.sessionId && a.question === QUESTION && date2(a.recordedAt) <= date2(source.frozenAt), "workflow authorization mismatch");
|
|
1180
1183
|
check3(source.provenance === "tool-selected-input" && source.evidenceClaims === "unassessed" && source.redaction === "unassessed" && source.rights === "unassessed" && source.publicCaptureVerified === false, "unsupported workflow provenance claims");
|
|
1181
1184
|
unlabeled(source);
|
|
1182
1185
|
const refs = evidenceRefs(source.evidenceRefs);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skill-harness/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.1",
|
|
4
4
|
"description": "skill-harness CLI \u2014 run, grade, review, and lint agent-skill scenarios on the pi harness",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"prepack": "node ../../scripts/release-pack.mjs --guard"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@skill-harness/core": "0.
|
|
48
|
-
"@skill-harness/adapters": "0.
|
|
47
|
+
"@skill-harness/core": "0.35.1",
|
|
48
|
+
"@skill-harness/adapters": "0.35.1"
|
|
49
49
|
}
|
|
50
50
|
}
|