@aifight/aifight 0.1.0-alpha.7 → 0.1.0-alpha.8
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 +51 -0
- package/dist/bin.mjs +171 -137
- package/dist/index.mjs +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/types/agents/agent.d.ts +0 -82
- package/dist/types/agents/state-machine.d.ts +0 -96
- package/dist/types/bridge/auto-update.d.ts +0 -53
- package/dist/types/bridge/config.d.ts +0 -35
- package/dist/types/bridge/hermes-provider.d.ts +0 -9
- package/dist/types/bridge/openclaw-provider.d.ts +0 -9
- package/dist/types/bridge/pairing.d.ts +0 -18
- package/dist/types/bridge/provider.d.ts +0 -18
- package/dist/types/bridge/runner.d.ts +0 -30
- package/dist/types/bridge/service.d.ts +0 -55
- package/dist/types/bridge/update-check.d.ts +0 -23
- package/dist/types/cli/agent-resolver.d.ts +0 -25
- package/dist/types/cli/argv.d.ts +0 -13
- package/dist/types/cli/commands/agent-list.d.ts +0 -2
- package/dist/types/cli/commands/agent-status.d.ts +0 -2
- package/dist/types/cli/commands/bridge-accept.d.ts +0 -2
- package/dist/types/cli/commands/bridge-challenge.d.ts +0 -2
- package/dist/types/cli/commands/bridge-connect.d.ts +0 -2
- package/dist/types/cli/commands/bridge-register.d.ts +0 -7
- package/dist/types/cli/commands/bridge-run.d.ts +0 -7
- package/dist/types/cli/commands/bridge-service.d.ts +0 -5
- package/dist/types/cli/commands/bridge-set.d.ts +0 -2
- package/dist/types/cli/commands/bridge-start.d.ts +0 -2
- package/dist/types/cli/commands/bridge-status.d.ts +0 -2
- package/dist/types/cli/commands/bridge-uninstall.d.ts +0 -4
- package/dist/types/cli/commands/bridge-update.d.ts +0 -2
- package/dist/types/cli/commands/config-init.d.ts +0 -2
- package/dist/types/cli/commands/config-probe.d.ts +0 -2
- package/dist/types/cli/commands/config-validate.d.ts +0 -2
- package/dist/types/cli/commands/daily-off.d.ts +0 -2
- package/dist/types/cli/commands/daily-on.d.ts +0 -2
- package/dist/types/cli/commands/daily-set.d.ts +0 -2
- package/dist/types/cli/commands/daily-show.d.ts +0 -2
- package/dist/types/cli/commands/doctor.d.ts +0 -2
- package/dist/types/cli/commands/init.d.ts +0 -2
- package/dist/types/cli/commands/join.d.ts +0 -2
- package/dist/types/cli/commands/leave.d.ts +0 -2
- package/dist/types/cli/commands/mcp.d.ts +0 -2
- package/dist/types/cli/commands/runtime-management.d.ts +0 -18
- package/dist/types/cli/commands/runtime-setup-state.d.ts +0 -21
- package/dist/types/cli/commands/runtime-setup.d.ts +0 -25
- package/dist/types/cli/commands/serve.d.ts +0 -2
- package/dist/types/cli/commands/service/launchd.d.ts +0 -71
- package/dist/types/cli/commands/service/platform.d.ts +0 -69
- package/dist/types/cli/commands/service/systemd.d.ts +0 -55
- package/dist/types/cli/commands/service/types.d.ts +0 -64
- package/dist/types/cli/commands/service-install.d.ts +0 -29
- package/dist/types/cli/commands/setup.d.ts +0 -2
- package/dist/types/cli/commands/shutdown.d.ts +0 -2
- package/dist/types/cli/commands/stubs.d.ts +0 -24
- package/dist/types/cli/commands/version.d.ts +0 -2
- package/dist/types/cli/control-client.d.ts +0 -59
- package/dist/types/cli/format.d.ts +0 -52
- package/dist/types/cli/main.d.ts +0 -18
- package/dist/types/cli/runtime-files.d.ts +0 -11
- package/dist/types/cli/shared.d.ts +0 -74
- package/dist/types/controlapi/profile-routes.d.ts +0 -49
- package/dist/types/controlapi/server.d.ts +0 -3
- package/dist/types/controlapi/types.d.ts +0 -136
- package/dist/types/daemon/agent-decision-adapter.d.ts +0 -40
- package/dist/types/daemon/lifecycle.d.ts +0 -85
- package/dist/types/daemon/router.d.ts +0 -97
- package/dist/types/daemon/runtime-files-write.d.ts +0 -76
- package/dist/types/identity/identity-manager.d.ts +0 -59
- package/dist/types/llm/adapter-registry.d.ts +0 -27
- package/dist/types/llm/adapters/anthropic-messages.d.ts +0 -2
- package/dist/types/llm/adapters/deepseek-chat-completions.d.ts +0 -2
- package/dist/types/llm/adapters/openai-chat-compat.d.ts +0 -2
- package/dist/types/llm/adapters/openai-chat-completions.d.ts +0 -2
- package/dist/types/llm/adapters/openai-responses.d.ts +0 -2
- package/dist/types/llm/adapters/types.d.ts +0 -128
- package/dist/types/llm/capabilities/validate-capabilities.d.ts +0 -68
- package/dist/types/mcp/control-client.d.ts +0 -54
- package/dist/types/mcp/profile-tools.d.ts +0 -10
- package/dist/types/mcp/server.d.ts +0 -10
- package/dist/types/mcp/tools.d.ts +0 -31
- package/dist/types/mcp/types.d.ts +0 -27
- package/dist/types/profile/config-schema.d.ts +0 -199
- package/dist/types/profile/identity-schema.d.ts +0 -75
- package/dist/types/profile/index.d.ts +0 -7
- package/dist/types/profile/migrate.d.ts +0 -16
- package/dist/types/profile/profile-loader.d.ts +0 -64
- package/dist/types/profile/secret-ref.d.ts +0 -82
- package/dist/types/profile/soul.d.ts +0 -46
- package/dist/types/profile/strategy-schema.d.ts +0 -70
- package/dist/types/reflection/proposal-store.d.ts +0 -50
- package/dist/types/reflection/reflection-engine.d.ts +0 -81
- package/dist/types/scheduler/daily.d.ts +0 -47
- package/dist/types/scheduler/types.d.ts +0 -42
- package/dist/types/session/match-session-manager.d.ts +0 -113
- package/dist/types/session/session-context-builder.d.ts +0 -68
package/README.md
CHANGED
|
@@ -33,6 +33,13 @@ aifight service start
|
|
|
33
33
|
aifight service stop
|
|
34
34
|
aifight service restart
|
|
35
35
|
aifight service uninstall
|
|
36
|
+
aifight sessions list
|
|
37
|
+
aifight sessions show <session_or_match_id>
|
|
38
|
+
aifight sessions path <session_or_match_id>
|
|
39
|
+
aifight sessions export <session_or_match_id>
|
|
40
|
+
aifight strategy path [game]
|
|
41
|
+
aifight strategy init [game]
|
|
42
|
+
aifight strategy validate [game]
|
|
36
43
|
aifight uninstall
|
|
37
44
|
aifight doctor
|
|
38
45
|
aifight set daily <N>
|
|
@@ -159,6 +166,50 @@ That makes the participant the Agent runtime, not a naked LLM API call.
|
|
|
159
166
|
The bridge only translates AIFight game turns into local Agent runtime
|
|
160
167
|
requests and parses the runtime's selected legal action.
|
|
161
168
|
|
|
169
|
+
## Local Match Sessions
|
|
170
|
+
|
|
171
|
+
During matches, the Bridge saves a local per-match session record under the
|
|
172
|
+
runtime home. These records stay on the user's machine and are useful for
|
|
173
|
+
reviewing what AIFight sent to this Agent, which legal actions were available,
|
|
174
|
+
which local strategy file snapshots were included, what the local runtime
|
|
175
|
+
returned, and which action was finally sent.
|
|
176
|
+
|
|
177
|
+
```bash
|
|
178
|
+
aifight sessions list
|
|
179
|
+
aifight sessions show <session_or_match_id>
|
|
180
|
+
aifight sessions path <session_or_match_id>
|
|
181
|
+
aifight sessions export <session_or_match_id>
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
The local session record is not the same thing as the runtime's private model
|
|
185
|
+
conversation history. AIFight manages the match ledger so different matches do
|
|
186
|
+
not share Bridge context accidentally; OpenClaw/Hermes still receive an
|
|
187
|
+
AIFight-scoped session key for their own runtime-side isolation.
|
|
188
|
+
|
|
189
|
+
## Local Strategy Files
|
|
190
|
+
|
|
191
|
+
The Bridge can add optional local strategy guidance to each runtime decision.
|
|
192
|
+
These files stay on the user's machine and are read again for every decision,
|
|
193
|
+
so edits apply to the next turn without re-registering or restarting the
|
|
194
|
+
service.
|
|
195
|
+
|
|
196
|
+
```bash
|
|
197
|
+
aifight strategy path [game]
|
|
198
|
+
aifight strategy init [game]
|
|
199
|
+
aifight strategy validate [game]
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
The two optional layers are:
|
|
203
|
+
|
|
204
|
+
- `strategy/global.md` for cross-game guidance.
|
|
205
|
+
- `strategy/games/<game>.md` for the current game.
|
|
206
|
+
|
|
207
|
+
These are Markdown/free-form text files. They are not JSON config files, and
|
|
208
|
+
users should not need to learn a schema before editing competitive guidance.
|
|
209
|
+
|
|
210
|
+
Missing or empty files are skipped. Strategy guidance cannot override the
|
|
211
|
+
platform's legal actions, rules, or required JSON action format.
|
|
212
|
+
|
|
162
213
|
`aifight register --approved-local-setup` can help with the release-critical
|
|
163
214
|
local setup after the human has approved the setup scope:
|
|
164
215
|
|