neozip-cli 0.90.0 → 0.95.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 (76) hide show
  1. package/AGENTS.md +93 -0
  2. package/CHANGELOG.md +70 -1
  3. package/DOCUMENTATION.md +22 -30
  4. package/README.md +214 -48
  5. package/dist/src/account/account-state.js +95 -0
  6. package/dist/src/account/format-account-status.js +62 -0
  7. package/dist/src/account/identity-provision.js +79 -0
  8. package/dist/src/account/identity-wrap.js +106 -0
  9. package/dist/src/account/profile-crypto.js +85 -0
  10. package/dist/src/account/profile-store.js +129 -0
  11. package/dist/src/account/require-account.js +32 -0
  12. package/dist/src/account/token-service-funding.js +151 -0
  13. package/dist/src/account/token-service-identity.js +488 -0
  14. package/dist/src/account/types.js +3 -0
  15. package/dist/src/account/wallet-evm.js +46 -0
  16. package/dist/src/account/wallet-setup.js +33 -0
  17. package/dist/src/archive/crypto-self.js +117 -0
  18. package/dist/src/archive/identity-key.js +217 -0
  19. package/dist/src/archive/recipient-lookup.js +61 -0
  20. package/dist/src/cli/output.js +100 -0
  21. package/dist/src/cli/params.js +122 -0
  22. package/dist/src/cli/schema.js +186 -0
  23. package/dist/src/cli/validate.js +119 -0
  24. package/dist/src/commands/mintTimestampProof.js +26 -14
  25. package/dist/src/commands/verifyEmail.js +9 -9
  26. package/dist/src/config/ConfigSetup.js +82 -423
  27. package/dist/src/config/ConfigStore.js +0 -33
  28. package/dist/src/connect/command.js +364 -0
  29. package/dist/src/connection/bootstrap.js +50 -0
  30. package/dist/src/connection/cli-guidance.js +101 -0
  31. package/dist/src/connection/cli-prefs.js +180 -0
  32. package/dist/src/connection/cli-settings.js +140 -0
  33. package/dist/src/connection/cli-types.js +14 -0
  34. package/dist/src/connection/coordinator.js +83 -0
  35. package/dist/src/connection/credentials.js +33 -0
  36. package/dist/src/connection/crypto.js +96 -0
  37. package/dist/src/connection/dump.js +117 -0
  38. package/dist/src/connection/funding.js +187 -0
  39. package/dist/src/connection/incomplete-setup.js +89 -0
  40. package/dist/src/connection/interactive.js +871 -0
  41. package/dist/src/connection/legacy-profile-reader.js +87 -0
  42. package/dist/src/connection/magic-link.js +142 -0
  43. package/dist/src/connection/migrate.js +115 -0
  44. package/dist/src/connection/onboarding.js +616 -0
  45. package/dist/src/connection/origin.js +69 -0
  46. package/dist/src/connection/phase.js +101 -0
  47. package/dist/src/connection/phone.js +26 -0
  48. package/dist/src/connection/promote-active.js +56 -0
  49. package/dist/src/connection/reset.js +56 -0
  50. package/dist/src/connection/status-report.js +52 -0
  51. package/dist/src/connection/store.js +406 -0
  52. package/dist/src/connection/token-auth.js +44 -0
  53. package/dist/src/connection/types.js +3 -0
  54. package/dist/src/connection/wallet-json-migration.js +155 -0
  55. package/dist/src/connection/wallet-login.js +65 -0
  56. package/dist/src/connection/wallet-setup.js +83 -0
  57. package/dist/src/constants/wallet-identity.js +14 -0
  58. package/dist/src/exit-codes.js +54 -10
  59. package/dist/src/neolist.js +93 -9
  60. package/dist/src/neounzip.js +217 -59
  61. package/dist/src/neozip/blockchain.js +18 -18
  62. package/dist/src/neozip/createZip.js +114 -91
  63. package/dist/src/neozip/upgradeZip.js +14 -11
  64. package/dist/src/neozip.js +252 -75
  65. package/dist/src/skills/command.js +256 -0
  66. package/dist/src/skills/locate.js +99 -0
  67. package/dist/src/util/mask.js +34 -0
  68. package/dist/src/util/token-service-fetch.js +26 -0
  69. package/env.example +18 -85
  70. package/package.json +89 -82
  71. package/skills/neozip-connect/SKILL.md +95 -0
  72. package/skills/neozip-create/SKILL.md +57 -0
  73. package/skills/neozip-extract/SKILL.md +58 -0
  74. package/skills/neozip-legacy/SKILL.md +48 -0
  75. package/skills/neozip-list/SKILL.md +56 -0
  76. package/skills/neozip-shared/SKILL.md +60 -0
@@ -0,0 +1,60 @@
1
+ ---
2
+ name: neozip-shared
3
+ description: "NeoZip global flags for agents: JSON output, --params/--json input, schema introspection, dry-run, and exit codes. Prerequisite for the other neozip skills."
4
+ metadata:
5
+ version: 0.90.0
6
+ openclaw:
7
+ category: "productivity"
8
+ requires:
9
+ bins:
10
+ - neozip
11
+ - neounzip
12
+ - neolist
13
+ cliHelp: "neozip --help"
14
+ ---
15
+
16
+ # NeoZip — shared agent conventions
17
+
18
+ Read this before the per-command skills. It applies to `neozip`, `neounzip`, and
19
+ `neolist`.
20
+
21
+ ## Get machine-readable output
22
+
23
+ Add `--format json` to any command. Output is a single JSON object on stdout:
24
+
25
+ - Success: `{ "ok": true, ... }`
26
+ - Error: `{ "ok": false, "error": { "code", "exitCode", "message", "nextCommand"? } }`
27
+
28
+ stdout carries only the JSON object. Human hints/progress go to stderr. Always
29
+ parse stdout; never parse human text.
30
+
31
+ ## Introspect before calling
32
+
33
+ ```bash
34
+ neozip schema neozip # or: neounzip | neolist | connect
35
+ ```
36
+
37
+ Returns accepted `--params` fields, the `--json` payload shape, defaults, and
38
+ exit codes. Use it to build your `--params`/`--json` objects.
39
+
40
+ ## Provide input as JSON
41
+
42
+ - `--params '<JSON>'` — options ("how").
43
+ - `--json '<JSON>'` — payload ("what": archive + files/targets).
44
+ - Either accepts `-` to read JSON from stdin.
45
+ - Explicit CLI flags override values from `--params`/`--json`.
46
+
47
+ ## Always dry-run mutations first
48
+
49
+ ```bash
50
+ neozip --format json --dry-run --json '{"archive":"out.zip","files":["src/"]}'
51
+ neounzip --format json --dry-run --params '{"exdir":"out"}' in.zip
52
+ ```
53
+
54
+ `--dry-run` resolves the full plan and writes nothing.
55
+
56
+ ## Branch on exit codes
57
+
58
+ Exit codes are InfoZip-compatible and echoed in `error.exitCode`. Common:
59
+ `0` success, `10` parameter/option error, `9` files not found, `82` bad password.
60
+ When an error includes `nextCommand`, run it to recover.