icoa-cli 2.19.32 → 2.19.33

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.
@@ -214,6 +214,15 @@ export async function handleChatMessage(input) {
214
214
  if (chatTokensUsed >= DEMO_TOKEN_CAP) {
215
215
  chatActive = false;
216
216
  chatSession = null;
217
+ // Report the token-cap session so the server can count "hit the wall"
218
+ // outcomes. Without this, a user who burned 5000 tokens without solving
219
+ // was invisible to the admin dashboard.
220
+ fetch('https://practice.icoa2026.au/api/icoa/demo-stats', {
221
+ method: 'POST',
222
+ headers: { 'Content-Type': 'application/json' },
223
+ body: JSON.stringify({ type: 'ai4ctf', solved: false, tokensUsed: chatTokensUsed, timestamp: new Date().toISOString() }),
224
+ signal: AbortSignal.timeout(5000),
225
+ }).catch(() => { });
217
226
  console.log();
218
227
  console.log(chalk.yellow(` ${t('tokenLimit')}`));
219
228
  drawTokenBar();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "icoa-cli",
3
- "version": "2.19.32",
3
+ "version": "2.19.33",
4
4
  "description": "ICOA CLI — The world's first CLI-native CTF competition terminal",
5
5
  "type": "module",
6
6
  "bin": {