@agent-corpus/policy-manager 0.10.0 → 0.11.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/README.md +94 -29
- package/dist/adapters.d.ts +3 -1
- package/dist/adapters.js +37 -18
- package/dist/classifier.d.ts +98 -0
- package/dist/classifier.js +343 -0
- package/dist/cli.js +66 -7
- package/dist/config.d.ts +2 -0
- package/dist/config.js +6 -2
- package/dist/evidence.d.ts +1 -0
- package/dist/evidence.js +60 -0
- package/dist/flow.d.ts +4 -0
- package/dist/flow.js +68 -13
- package/dist/gitalias.d.ts +13 -0
- package/dist/gitalias.js +33 -0
- package/dist/grants.d.ts +9 -9
- package/dist/grants.js +46 -35
- package/dist/hard.d.ts +63 -0
- package/dist/hard.js +1637 -0
- package/dist/merged.d.ts +6 -0
- package/dist/merged.js +23 -0
- package/dist/nativerules.d.ts +44 -0
- package/dist/nativerules.js +653 -0
- package/dist/permissive.js +32 -6
- package/dist/policy.d.ts +12 -0
- package/dist/policy.js +228 -45
- package/dist/profile.d.ts +4 -0
- package/dist/profile.js +19 -1
- package/dist/prompt.d.ts +32 -0
- package/dist/prompt.js +334 -0
- package/dist/reads.d.ts +46 -0
- package/dist/reads.js +812 -0
- package/dist/replay.d.ts +42 -0
- package/dist/replay.js +174 -1
- package/dist/service.d.ts +12 -1
- package/dist/service.js +23 -6
- package/dist/session.d.ts +76 -13
- package/dist/session.js +373 -116
- package/dist/shellscan.d.ts +58 -0
- package/dist/shellscan.js +395 -0
- package/dist/statepaths.d.ts +41 -0
- package/dist/statepaths.js +706 -0
- package/dist/types.d.ts +9 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -36,7 +36,15 @@ export interface Decision {
|
|
|
36
36
|
tier?: "ambiguous";
|
|
37
37
|
classification?: ClassificationStage;
|
|
38
38
|
/** Why a human was asked after classification could not decide. */
|
|
39
|
-
fallbackReason?: "unavailable" | "invalid-result" | "
|
|
39
|
+
fallbackReason?: "unavailable" | "invalid-result" | "disabled" | "too-long" | "missing" | "not-logged-in" | "exit" | "timeout" | "bad-json" | "schema";
|
|
40
|
+
/** A hard human item: never classified, and no classification approves it. The rule it hit. */
|
|
41
|
+
hard?: string;
|
|
42
|
+
/** What the classifier said when it did not approve, shown to the person who is asked. */
|
|
43
|
+
classifierNote?: string;
|
|
44
|
+
/** Approved by the user's own harness permission rule: the rule, as written. */
|
|
45
|
+
userAllowRule?: string;
|
|
46
|
+
/** No decision because the user's own deny or ask rule matched: the rule, as written. */
|
|
47
|
+
userRule?: string;
|
|
40
48
|
ai?: Classification;
|
|
41
49
|
/** A human decision the user may approve for the rest of the session (`approve --session`). */
|
|
42
50
|
sessionGrantable?: boolean;
|
package/package.json
CHANGED