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.
- package/AGENTS.md +93 -0
- package/CHANGELOG.md +70 -1
- package/DOCUMENTATION.md +22 -30
- package/README.md +214 -48
- package/dist/src/account/account-state.js +95 -0
- package/dist/src/account/format-account-status.js +62 -0
- package/dist/src/account/identity-provision.js +79 -0
- package/dist/src/account/identity-wrap.js +106 -0
- package/dist/src/account/profile-crypto.js +85 -0
- package/dist/src/account/profile-store.js +129 -0
- package/dist/src/account/require-account.js +32 -0
- package/dist/src/account/token-service-funding.js +151 -0
- package/dist/src/account/token-service-identity.js +488 -0
- package/dist/src/account/types.js +3 -0
- package/dist/src/account/wallet-evm.js +46 -0
- package/dist/src/account/wallet-setup.js +33 -0
- package/dist/src/archive/crypto-self.js +117 -0
- package/dist/src/archive/identity-key.js +217 -0
- package/dist/src/archive/recipient-lookup.js +61 -0
- package/dist/src/cli/output.js +100 -0
- package/dist/src/cli/params.js +122 -0
- package/dist/src/cli/schema.js +186 -0
- package/dist/src/cli/validate.js +119 -0
- package/dist/src/commands/mintTimestampProof.js +26 -14
- package/dist/src/commands/verifyEmail.js +9 -9
- package/dist/src/config/ConfigSetup.js +82 -423
- package/dist/src/config/ConfigStore.js +0 -33
- package/dist/src/connect/command.js +364 -0
- package/dist/src/connection/bootstrap.js +50 -0
- package/dist/src/connection/cli-guidance.js +101 -0
- package/dist/src/connection/cli-prefs.js +180 -0
- package/dist/src/connection/cli-settings.js +140 -0
- package/dist/src/connection/cli-types.js +14 -0
- package/dist/src/connection/coordinator.js +83 -0
- package/dist/src/connection/credentials.js +33 -0
- package/dist/src/connection/crypto.js +96 -0
- package/dist/src/connection/dump.js +117 -0
- package/dist/src/connection/funding.js +187 -0
- package/dist/src/connection/incomplete-setup.js +89 -0
- package/dist/src/connection/interactive.js +871 -0
- package/dist/src/connection/legacy-profile-reader.js +87 -0
- package/dist/src/connection/magic-link.js +142 -0
- package/dist/src/connection/migrate.js +115 -0
- package/dist/src/connection/onboarding.js +616 -0
- package/dist/src/connection/origin.js +69 -0
- package/dist/src/connection/phase.js +101 -0
- package/dist/src/connection/phone.js +26 -0
- package/dist/src/connection/promote-active.js +56 -0
- package/dist/src/connection/reset.js +56 -0
- package/dist/src/connection/status-report.js +52 -0
- package/dist/src/connection/store.js +406 -0
- package/dist/src/connection/token-auth.js +44 -0
- package/dist/src/connection/types.js +3 -0
- package/dist/src/connection/wallet-json-migration.js +155 -0
- package/dist/src/connection/wallet-login.js +65 -0
- package/dist/src/connection/wallet-setup.js +83 -0
- package/dist/src/constants/wallet-identity.js +14 -0
- package/dist/src/exit-codes.js +54 -10
- package/dist/src/neolist.js +93 -9
- package/dist/src/neounzip.js +217 -59
- package/dist/src/neozip/blockchain.js +18 -18
- package/dist/src/neozip/createZip.js +114 -91
- package/dist/src/neozip/upgradeZip.js +14 -11
- package/dist/src/neozip.js +252 -75
- package/dist/src/skills/command.js +256 -0
- package/dist/src/skills/locate.js +99 -0
- package/dist/src/util/mask.js +34 -0
- package/dist/src/util/token-service-fetch.js +26 -0
- package/env.example +18 -85
- package/package.json +89 -82
- package/skills/neozip-connect/SKILL.md +95 -0
- package/skills/neozip-create/SKILL.md +57 -0
- package/skills/neozip-extract/SKILL.md +58 -0
- package/skills/neozip-legacy/SKILL.md +48 -0
- package/skills/neozip-list/SKILL.md +56 -0
- 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.
|