attesso 0.3.0 → 0.3.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/package.json +1 -1
  2. package/src/store.mjs +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attesso",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "A local, signed ledger of what your AI agents attempted, what was allowed, and what was refused.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
package/src/store.mjs CHANGED
@@ -43,10 +43,12 @@ export function init(dir) {
43
43
  const file = paths(dir);
44
44
  const key = newSigningKey();
45
45
  writeJson(file.key, { version: 1, kid: key.kid, public: key.publicPem, private: key.privatePem });
46
+ // Record everything by default and let rules.json decide: a policy that names
47
+ // one action refuses every other action, so a fresh install could not log the
48
+ // very commands its own README shows.
46
49
  writeJson(file.policy, {
47
50
  version: 1,
48
- action: 'EXAMPLE.action',
49
- subjects: [],
51
+ action: '*',
50
52
  });
51
53
  writeJson(file.config, { version: 1, head: { count: 0, hash: 'genesis' } });
52
54
  writeJson(file.rules, {