@mnemom/mnemom 0.8.0 → 0.9.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/commands/card.d.ts +16 -5
- package/dist/commands/card.js +476 -89
- package/dist/commands/integrity.js +7 -6
- package/dist/commands/protection.d.ts +12 -4
- package/dist/commands/protection.js +288 -54
- package/dist/commands/status.js +6 -4
- package/dist/index.js +13 -9
- package/dist/lib/api.d.ts +98 -17
- package/dist/lib/api.js +177 -21
- package/dist/lib/auth.d.ts +16 -0
- package/dist/lib/auth.js +53 -3
- package/package.json +2 -2
package/dist/commands/card.d.ts
CHANGED
|
@@ -11,17 +11,28 @@ export interface ValidationCheck {
|
|
|
11
11
|
message: string;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
* Validate a unified alignment card
|
|
15
|
-
*
|
|
16
|
-
*
|
|
14
|
+
* Validate a unified alignment card against ADR-039 canonical form.
|
|
15
|
+
*
|
|
16
|
+
* Required: card_version, agent_id, autonomy_mode, integrity_mode,
|
|
17
|
+
* principal (with identifier when type != unspecified),
|
|
18
|
+
* values.declared (non-empty), autonomy.bounded_actions (non-empty,
|
|
19
|
+
* disjoint from forbidden_actions), audit (retention_days, queryable,
|
|
20
|
+
* query_endpoint when queryable=true).
|
|
21
|
+
*
|
|
22
|
+
* Rejected legacy locations: integrity.enforcement_mode,
|
|
23
|
+
* enforcement.{mode, unmapped_tool_action, fail_open}, _composition.
|
|
17
24
|
*/
|
|
18
25
|
export declare function validateUnifiedCard(card: Record<string, unknown>): ValidationCheck[];
|
|
19
26
|
/** @deprecated Use validateUnifiedCard instead */
|
|
20
27
|
export declare const validateCardJson: (raw: string) => ValidationCheck[];
|
|
21
28
|
export declare function cardShowCommand(agentName?: string): Promise<void>;
|
|
22
|
-
export declare function cardPublishCommand(file: string, agentName?: string
|
|
29
|
+
export declare function cardPublishCommand(file: string, agentName?: string, options?: {
|
|
30
|
+
idempotencyKey?: string;
|
|
31
|
+
}): Promise<void>;
|
|
23
32
|
export declare function cardValidateCommand(file: string): Promise<void>;
|
|
24
|
-
export declare function cardEditCommand(agentName?: string
|
|
33
|
+
export declare function cardEditCommand(agentName?: string, options?: {
|
|
34
|
+
idempotencyKey?: string;
|
|
35
|
+
}): Promise<void>;
|
|
25
36
|
/**
|
|
26
37
|
* mnemom card evaluate <card-file> --tools <tools> -- local CI/CD evaluation
|
|
27
38
|
*
|