@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.
Files changed (96) hide show
  1. package/README.md +51 -0
  2. package/dist/bin.mjs +171 -137
  3. package/dist/index.mjs +1 -1
  4. package/dist/types/index.d.ts +1 -1
  5. package/package.json +1 -1
  6. package/dist/types/agents/agent.d.ts +0 -82
  7. package/dist/types/agents/state-machine.d.ts +0 -96
  8. package/dist/types/bridge/auto-update.d.ts +0 -53
  9. package/dist/types/bridge/config.d.ts +0 -35
  10. package/dist/types/bridge/hermes-provider.d.ts +0 -9
  11. package/dist/types/bridge/openclaw-provider.d.ts +0 -9
  12. package/dist/types/bridge/pairing.d.ts +0 -18
  13. package/dist/types/bridge/provider.d.ts +0 -18
  14. package/dist/types/bridge/runner.d.ts +0 -30
  15. package/dist/types/bridge/service.d.ts +0 -55
  16. package/dist/types/bridge/update-check.d.ts +0 -23
  17. package/dist/types/cli/agent-resolver.d.ts +0 -25
  18. package/dist/types/cli/argv.d.ts +0 -13
  19. package/dist/types/cli/commands/agent-list.d.ts +0 -2
  20. package/dist/types/cli/commands/agent-status.d.ts +0 -2
  21. package/dist/types/cli/commands/bridge-accept.d.ts +0 -2
  22. package/dist/types/cli/commands/bridge-challenge.d.ts +0 -2
  23. package/dist/types/cli/commands/bridge-connect.d.ts +0 -2
  24. package/dist/types/cli/commands/bridge-register.d.ts +0 -7
  25. package/dist/types/cli/commands/bridge-run.d.ts +0 -7
  26. package/dist/types/cli/commands/bridge-service.d.ts +0 -5
  27. package/dist/types/cli/commands/bridge-set.d.ts +0 -2
  28. package/dist/types/cli/commands/bridge-start.d.ts +0 -2
  29. package/dist/types/cli/commands/bridge-status.d.ts +0 -2
  30. package/dist/types/cli/commands/bridge-uninstall.d.ts +0 -4
  31. package/dist/types/cli/commands/bridge-update.d.ts +0 -2
  32. package/dist/types/cli/commands/config-init.d.ts +0 -2
  33. package/dist/types/cli/commands/config-probe.d.ts +0 -2
  34. package/dist/types/cli/commands/config-validate.d.ts +0 -2
  35. package/dist/types/cli/commands/daily-off.d.ts +0 -2
  36. package/dist/types/cli/commands/daily-on.d.ts +0 -2
  37. package/dist/types/cli/commands/daily-set.d.ts +0 -2
  38. package/dist/types/cli/commands/daily-show.d.ts +0 -2
  39. package/dist/types/cli/commands/doctor.d.ts +0 -2
  40. package/dist/types/cli/commands/init.d.ts +0 -2
  41. package/dist/types/cli/commands/join.d.ts +0 -2
  42. package/dist/types/cli/commands/leave.d.ts +0 -2
  43. package/dist/types/cli/commands/mcp.d.ts +0 -2
  44. package/dist/types/cli/commands/runtime-management.d.ts +0 -18
  45. package/dist/types/cli/commands/runtime-setup-state.d.ts +0 -21
  46. package/dist/types/cli/commands/runtime-setup.d.ts +0 -25
  47. package/dist/types/cli/commands/serve.d.ts +0 -2
  48. package/dist/types/cli/commands/service/launchd.d.ts +0 -71
  49. package/dist/types/cli/commands/service/platform.d.ts +0 -69
  50. package/dist/types/cli/commands/service/systemd.d.ts +0 -55
  51. package/dist/types/cli/commands/service/types.d.ts +0 -64
  52. package/dist/types/cli/commands/service-install.d.ts +0 -29
  53. package/dist/types/cli/commands/setup.d.ts +0 -2
  54. package/dist/types/cli/commands/shutdown.d.ts +0 -2
  55. package/dist/types/cli/commands/stubs.d.ts +0 -24
  56. package/dist/types/cli/commands/version.d.ts +0 -2
  57. package/dist/types/cli/control-client.d.ts +0 -59
  58. package/dist/types/cli/format.d.ts +0 -52
  59. package/dist/types/cli/main.d.ts +0 -18
  60. package/dist/types/cli/runtime-files.d.ts +0 -11
  61. package/dist/types/cli/shared.d.ts +0 -74
  62. package/dist/types/controlapi/profile-routes.d.ts +0 -49
  63. package/dist/types/controlapi/server.d.ts +0 -3
  64. package/dist/types/controlapi/types.d.ts +0 -136
  65. package/dist/types/daemon/agent-decision-adapter.d.ts +0 -40
  66. package/dist/types/daemon/lifecycle.d.ts +0 -85
  67. package/dist/types/daemon/router.d.ts +0 -97
  68. package/dist/types/daemon/runtime-files-write.d.ts +0 -76
  69. package/dist/types/identity/identity-manager.d.ts +0 -59
  70. package/dist/types/llm/adapter-registry.d.ts +0 -27
  71. package/dist/types/llm/adapters/anthropic-messages.d.ts +0 -2
  72. package/dist/types/llm/adapters/deepseek-chat-completions.d.ts +0 -2
  73. package/dist/types/llm/adapters/openai-chat-compat.d.ts +0 -2
  74. package/dist/types/llm/adapters/openai-chat-completions.d.ts +0 -2
  75. package/dist/types/llm/adapters/openai-responses.d.ts +0 -2
  76. package/dist/types/llm/adapters/types.d.ts +0 -128
  77. package/dist/types/llm/capabilities/validate-capabilities.d.ts +0 -68
  78. package/dist/types/mcp/control-client.d.ts +0 -54
  79. package/dist/types/mcp/profile-tools.d.ts +0 -10
  80. package/dist/types/mcp/server.d.ts +0 -10
  81. package/dist/types/mcp/tools.d.ts +0 -31
  82. package/dist/types/mcp/types.d.ts +0 -27
  83. package/dist/types/profile/config-schema.d.ts +0 -199
  84. package/dist/types/profile/identity-schema.d.ts +0 -75
  85. package/dist/types/profile/index.d.ts +0 -7
  86. package/dist/types/profile/migrate.d.ts +0 -16
  87. package/dist/types/profile/profile-loader.d.ts +0 -64
  88. package/dist/types/profile/secret-ref.d.ts +0 -82
  89. package/dist/types/profile/soul.d.ts +0 -46
  90. package/dist/types/profile/strategy-schema.d.ts +0 -70
  91. package/dist/types/reflection/proposal-store.d.ts +0 -50
  92. package/dist/types/reflection/reflection-engine.d.ts +0 -81
  93. package/dist/types/scheduler/daily.d.ts +0 -47
  94. package/dist/types/scheduler/types.d.ts +0 -42
  95. package/dist/types/session/match-session-manager.d.ts +0 -113
  96. 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