@hasna/todos 0.11.34 → 0.11.35

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 CHANGED
@@ -31,6 +31,18 @@ todos-mcp
31
31
  todos-serve
32
32
  ```
33
33
 
34
+ Generate an API key before exposing the REST API to another app. Once at least one
35
+ generated key exists, all `/api/*` requests require `x-api-key` or
36
+ `Authorization: Bearer`.
37
+
38
+ ```bash
39
+ todos api-keys create "My app"
40
+ todos-serve --host 0.0.0.0
41
+ ```
42
+
43
+ Pass the generated key from your app as `x-api-key` or set `TODOS_API_KEY` for
44
+ the SDK client.
45
+
34
46
  ## Cloud Sync
35
47
 
36
48
  This package supports cloud sync via `@hasna/cloud`:
@@ -1 +1 @@
1
- {"version":3,"file":"agent-commands.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/agent-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASzC,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,QAkYrD"}
1
+ {"version":3,"file":"agent-commands.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/agent-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASzC,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,QA4ZrD"}
@@ -0,0 +1,3 @@
1
+ import type { Command } from "commander";
2
+ export declare function registerApiKeyCommands(program: Command): void;
3
+ //# sourceMappingURL=api-key-commands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-key-commands.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/api-key-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKzC,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,QAsGtD"}
@@ -1 +1 @@
1
- {"version":3,"file":"config-serve-commands.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/config-serve-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASzC,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,OAAO,QAuS3D"}
1
+ {"version":3,"file":"config-serve-commands.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/config-serve-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASzC,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,OAAO,QAwS3D"}