@wiimdy/openfunderse 0.1.0 → 0.1.2

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
@@ -2,6 +2,10 @@
2
2
 
3
3
  Install OpenFunderse skill packs into Codex.
4
4
 
5
+ ## Role
6
+ - Monorepo distribution package for Codex skills/prompts/manifests.
7
+ - Owns install UX (`npx @wiimdy/openfunderse@latest install openfunderse`) and pack copy logic.
8
+
5
9
  ## Usage
6
10
 
7
11
  ```bash
@@ -11,8 +15,39 @@ npx @wiimdy/openfunderse@latest list
11
15
  # install pack into ~/.codex/skills
12
16
  npx @wiimdy/openfunderse@latest install openfunderse
13
17
 
18
+ # install strategy-only pack
19
+ npx @wiimdy/openfunderse@latest install openfunderse-strategy
20
+
21
+ # install participant-only pack
22
+ npx @wiimdy/openfunderse@latest install openfunderse-participant
23
+
24
+ # install pack + runtime package in one command (recommended)
25
+ npx @wiimdy/openfunderse@latest install openfunderse --with-runtime
26
+
27
+ # install pack + runtime + strategy env scaffold in one command
28
+ npx @wiimdy/openfunderse@latest install openfunderse \
29
+ --with-runtime \
30
+ --env-profile strategy
31
+
14
32
  # install into custom codex home
15
33
  npx @wiimdy/openfunderse@latest install openfunderse --codex-home /custom/.codex
34
+
35
+ # install runtime into a specific project directory
36
+ npx @wiimdy/openfunderse@latest install openfunderse \
37
+ --with-runtime \
38
+ --runtime-dir /path/to/project
39
+
40
+ # initialize bot env + fresh Monad wallet (strategy)
41
+ npx @wiimdy/openfunderse@latest bot-init \
42
+ --skill-name strategy \
43
+ --env-path .env.strategy \
44
+ --yes
45
+
46
+ # initialize participant bot env + wallet
47
+ npx @wiimdy/openfunderse@latest bot-init \
48
+ --skill-name participant \
49
+ --env-path .env.participant \
50
+ --yes
16
51
  ```
17
52
 
18
53
  ## Notes
@@ -20,3 +55,23 @@ npx @wiimdy/openfunderse@latest install openfunderse --codex-home /custom/.codex
20
55
  - Skills are copied into `$CODEX_HOME/skills` (default `~/.codex/skills`).
21
56
  - Pack metadata/prompts are copied into `$CODEX_HOME/packs/<pack-name>`.
22
57
  - Use `--force` to overwrite existing installed skills.
58
+ - `--with-runtime` installs `@wiimdy/openfunderse-agents` into the current project (`package.json` required).
59
+ - Env scaffold generation is enabled by default (default path: `.env.openfunderse`).
60
+ - `--env-profile` controls scaffold scope: `strategy` | `participant` | `all` (auto-selected by pack when omitted).
61
+ - Use `--no-init-env` to skip env scaffold generation.
62
+ - `--env-path` sets a custom env scaffold path.
63
+ - Optional: `--runtime-package`, `--runtime-dir`, `--runtime-manager`.
64
+ - Available packs: `openfunderse` (unified), `openfunderse-strategy`, `openfunderse-participant`.
65
+ - Split packs (`openfunderse-strategy`, `openfunderse-participant`) are intentionally minimal and centered on the skill payload.
66
+ - Prefer `--env-path` (Node 20+ reserves `--env-file` as a runtime flag).
67
+ - `bot-init` uses `cast wallet new --json` (Foundry) to generate a new wallet for Monad testnet.
68
+ - `bot-init` infers role from `--skill-name`, `--env-path`, or `--wallet-name` when `--role` is omitted.
69
+ - It also infers from active skill env hints (`OPENCLAW_SKILL_KEY`, `OPENCLAW_ACTIVE_SKILL`, `SKILL_KEY`, `SKILL_NAME`).
70
+ - `bot-init` writes role-specific key fields:
71
+ - `strategy`: `STRATEGY_PRIVATE_KEY`, `BOT_ADDRESS`
72
+ - `participant`: `PARTICIPANT_PRIVATE_KEY`, `PARTICIPANT_BOT_ADDRESS`, `BOT_ADDRESS`
73
+ - `bot-init` stores a wallet backup JSON under `$CODEX_HOME/openfunderse/wallets`.
74
+ - Generated scaffolds include a temporary bootstrap key value. It is public/unsafe and must be rotated via `bot-init` before funding.
75
+ - `bot-init` shows a warning and requires confirmation (`Type YES`) unless `--yes` is passed.
76
+ - If private key already exists in the target env file, `bot-init` requires `--force` to rotate.
77
+ - CLI cannot mutate your parent shell env directly; run the printed `set -a; source ...; set +a` command.