@ai.weget.jp/bot 0.1.11 → 0.1.13
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 +12 -1
- package/dist/src/index.js +1 -1
- package/dist/src/ipc/registerHandlers.js +1 -1
- package/dist/src/main.js +1 -1
- package/dist/src/preload.cjs +10 -4
- package/dist/src/renderer/app.js +1 -1
- package/dist/src/renderer/index.html +257 -63
- package/dist/src/renderer/styles.css +519 -4
- package/dist/src/services/authApiService.js +1 -1
- package/dist/src/services/codexService.js +1 -1
- package/dist/src/services/gatewayFileBridgeService.js +1 -0
- package/dist/src/skillHostState.js +1 -1
- package/dist/src/skillRuntimeManager.js +1 -0
- package/package.json +7 -5
- package/scripts/build-ts.cjs +2 -0
- package/dist/src/gmoCoinRuntime.js +0 -1
- package/dist/src/gmoFxRuntime.js +0 -1
|
@@ -58,25 +58,56 @@
|
|
|
58
58
|
</div>
|
|
59
59
|
</header>
|
|
60
60
|
|
|
61
|
-
<
|
|
62
|
-
<
|
|
63
|
-
<
|
|
64
|
-
|
|
65
|
-
<button type="button" class="
|
|
66
|
-
<button type="button" class="tab-btn" data-tab="ai">Codex Console</button>
|
|
61
|
+
<div class="app-layout">
|
|
62
|
+
<aside id="sidebar-nav" class="sidebar-nav">
|
|
63
|
+
<div class="sidebar-head">
|
|
64
|
+
<strong>Console</strong>
|
|
65
|
+
<button id="sidebar-toggle-btn" type="button" class="sidebar-toggle-btn secondary" aria-label="Toggle menu">◀</button>
|
|
67
66
|
</div>
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
67
|
+
<nav class="tabs-shell">
|
|
68
|
+
<div class="tab-group">
|
|
69
|
+
<span class="tab-group-label">Host</span>
|
|
70
|
+
<div class="tabs">
|
|
71
|
+
<button type="button" class="tab-btn" data-tab="config" data-icon="HC">
|
|
72
|
+
<span class="tab-btn-icon">HC</span>
|
|
73
|
+
<span class="tab-btn-label">Host Control</span>
|
|
74
|
+
</button>
|
|
75
|
+
<button type="button" class="tab-btn is-active" data-tab="ai" data-icon="AI">
|
|
76
|
+
<span class="tab-btn-icon">AI</span>
|
|
77
|
+
<span class="tab-btn-label">Codex Console</span>
|
|
78
|
+
</button>
|
|
79
|
+
<button type="button" class="tab-btn" data-tab="gateway" data-icon="GW">
|
|
80
|
+
<span class="tab-btn-icon">GW</span>
|
|
81
|
+
<span class="tab-btn-label">Gateway</span>
|
|
82
|
+
</button>
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
<div class="tab-group">
|
|
86
|
+
<span class="tab-group-label">Installed Skills</span>
|
|
87
|
+
<div class="tabs">
|
|
88
|
+
<button id="tab-btn-skill-gmo-coin" type="button" class="tab-btn" data-tab="coin" data-icon="C">
|
|
89
|
+
<span class="tab-btn-icon">C</span>
|
|
90
|
+
<span class="tab-btn-label">skill-gmo-coin</span>
|
|
91
|
+
</button>
|
|
92
|
+
<button id="tab-btn-skill-gmo-fx" type="button" class="tab-btn" data-tab="fx" data-icon="FX">
|
|
93
|
+
<span class="tab-btn-icon">FX</span>
|
|
94
|
+
<span class="tab-btn-label">skill-gmo-fx</span>
|
|
95
|
+
</button>
|
|
96
|
+
<button id="tab-btn-skill-browser" type="button" class="tab-btn" data-tab="browser" data-icon="Br">
|
|
97
|
+
<span class="tab-btn-icon">Br</span>
|
|
98
|
+
<span class="tab-btn-label">skill-browser</span>
|
|
99
|
+
</button>
|
|
100
|
+
<button id="tab-btn-skill-macro-economy" type="button" class="tab-btn" data-tab="macro" data-icon="ME">
|
|
101
|
+
<span class="tab-btn-icon">ME</span>
|
|
102
|
+
<span class="tab-btn-label">skill-macro-economy</span>
|
|
103
|
+
</button>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
</nav>
|
|
107
|
+
</aside>
|
|
78
108
|
|
|
79
|
-
|
|
109
|
+
<section class="content-shell">
|
|
110
|
+
<section id="tab-coin" class="tab-panel">
|
|
80
111
|
<section class="panel market-shell coin-theme">
|
|
81
112
|
<div class="skill-surface-head">
|
|
82
113
|
<div>
|
|
@@ -211,6 +242,27 @@
|
|
|
211
242
|
</table>
|
|
212
243
|
</section>
|
|
213
244
|
</div>
|
|
245
|
+
<section class="panel host-section">
|
|
246
|
+
<h3 id="coin-config-title">Coin Skill Config</h3>
|
|
247
|
+
<label>
|
|
248
|
+
<span id="coin-config-label-riskDailyLossLimitJpy">Coin Risk Daily Loss Limit (JPY)</span>
|
|
249
|
+
<input id="coin-risk-daily-loss-limit-jpy" type="number" min="1" step="1" />
|
|
250
|
+
</label>
|
|
251
|
+
<label>
|
|
252
|
+
<span id="coin-config-label-cryptoApiKey">Crypto API Key</span>
|
|
253
|
+
<input id="crypto-api-key" type="text" />
|
|
254
|
+
</label>
|
|
255
|
+
<label>
|
|
256
|
+
<span id="coin-config-label-cryptoApiSecret">Crypto API Secret</span>
|
|
257
|
+
<div class="inline-input-row">
|
|
258
|
+
<input id="crypto-api-secret" type="password" />
|
|
259
|
+
<button id="toggle-crypto-secret-btn" type="button" class="secondary">显示</button>
|
|
260
|
+
</div>
|
|
261
|
+
</label>
|
|
262
|
+
<div class="row config-actions">
|
|
263
|
+
<button id="save-coin-config-btn" type="button">Save Coin Skill Config</button>
|
|
264
|
+
</div>
|
|
265
|
+
</section>
|
|
214
266
|
</section>
|
|
215
267
|
</section>
|
|
216
268
|
|
|
@@ -351,12 +403,33 @@
|
|
|
351
403
|
</table>
|
|
352
404
|
</section>
|
|
353
405
|
</div>
|
|
406
|
+
<section class="panel host-section">
|
|
407
|
+
<h3 id="fx-config-title">FX Skill Config</h3>
|
|
408
|
+
<label>
|
|
409
|
+
<span id="fx-config-label-riskDailyLossLimitJpy">FX Risk Daily Loss Limit (JPY)</span>
|
|
410
|
+
<input id="fx-risk-daily-loss-limit-jpy" type="number" min="1" step="1" />
|
|
411
|
+
</label>
|
|
412
|
+
<label>
|
|
413
|
+
<span id="fx-config-label-fxApiKey">FX API Key</span>
|
|
414
|
+
<input id="fx-api-key" type="text" />
|
|
415
|
+
</label>
|
|
416
|
+
<label>
|
|
417
|
+
<span id="fx-config-label-fxApiSecret">FX API Secret</span>
|
|
418
|
+
<div class="inline-input-row">
|
|
419
|
+
<input id="fx-api-secret" type="password" />
|
|
420
|
+
<button id="toggle-fx-secret-btn" type="button" class="secondary">显示</button>
|
|
421
|
+
</div>
|
|
422
|
+
</label>
|
|
423
|
+
<div class="row config-actions">
|
|
424
|
+
<button id="save-fx-config-btn" type="button">Save FX Skill Config</button>
|
|
425
|
+
</div>
|
|
426
|
+
</section>
|
|
354
427
|
</section>
|
|
355
428
|
</section>
|
|
356
429
|
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
430
|
+
<section id="tab-browser" class="tab-panel">
|
|
431
|
+
<section class="panel">
|
|
432
|
+
<div class="skill-surface-head">
|
|
360
433
|
<div>
|
|
361
434
|
<div class="skill-surface-kicker">Installed Skill</div>
|
|
362
435
|
<h2 id="browser-skill-title">Browser Skill</h2>
|
|
@@ -366,21 +439,172 @@
|
|
|
366
439
|
<span id="browser-skill-enabled" class="skill-surface-badge">enabled</span>
|
|
367
440
|
<span id="browser-skill-version" class="skill-surface-badge is-muted">builtin</span>
|
|
368
441
|
</div>
|
|
369
|
-
|
|
370
|
-
|
|
442
|
+
</div>
|
|
443
|
+
<div id="browser-skill-cards" class="browser-skill-shell"></div>
|
|
371
444
|
<div class="browser-skill-card">
|
|
372
|
-
<
|
|
373
|
-
|
|
445
|
+
<div class="browser-mcp-status-row">
|
|
446
|
+
<span id="browser-chromium-status" class="skill-surface-badge is-muted">unknown</span>
|
|
447
|
+
<span id="browser-chromium-detail" class="muted">Checking local Playwright browser installation...</span>
|
|
448
|
+
</div>
|
|
449
|
+
<div class="row config-actions">
|
|
450
|
+
<button id="browser-refresh-playwright-mcp-btn" type="button" class="secondary">Refresh Browser Status</button>
|
|
451
|
+
</div>
|
|
452
|
+
<div id="browser-prereq-hint" class="muted">Before using browser tasks, run <code>npx playwright install chromium</code> once on this machine.</div>
|
|
374
453
|
</div>
|
|
375
454
|
<div class="browser-skill-card">
|
|
376
455
|
<h3>Declared Tools</h3>
|
|
377
456
|
<div id="browser-skill-tools" class="skill-tags"></div>
|
|
457
|
+
</div>
|
|
458
|
+
</section>
|
|
459
|
+
</section>
|
|
460
|
+
|
|
461
|
+
<section id="tab-gateway" class="tab-panel">
|
|
462
|
+
<section class="panel">
|
|
463
|
+
<div class="panel-title-block">
|
|
464
|
+
<h2>WeGet Gateway MCP</h2>
|
|
465
|
+
<p class="muted">Codex integration, gateway MCP registration, and per-skill connectivity tests.</p>
|
|
466
|
+
</div>
|
|
467
|
+
<div class="macro-status-strip">
|
|
468
|
+
<div class="macro-status-main">
|
|
469
|
+
<div class="macro-stat-row">
|
|
470
|
+
<span class="muted">Codex Auth</span>
|
|
471
|
+
<strong id="gateway-codex-auth">-</strong>
|
|
472
|
+
</div>
|
|
473
|
+
<div class="macro-stat-row">
|
|
474
|
+
<span class="muted">Gateway MCP</span>
|
|
475
|
+
<strong id="gateway-mcp-status">-</strong>
|
|
476
|
+
</div>
|
|
477
|
+
<div class="macro-stat-row">
|
|
478
|
+
<span class="muted">Chromium</span>
|
|
479
|
+
<strong id="gateway-browser-status">-</strong>
|
|
480
|
+
</div>
|
|
378
481
|
</div>
|
|
482
|
+
<div class="macro-toolbar-actions">
|
|
483
|
+
<button id="gateway-install-btn" type="button">Install Gateway MCP</button>
|
|
484
|
+
<button id="gateway-refresh-btn" type="button" class="secondary">Refresh Status</button>
|
|
485
|
+
</div>
|
|
486
|
+
</div>
|
|
487
|
+
<div class="browser-skill-card">
|
|
488
|
+
<h3>Connection Detail</h3>
|
|
489
|
+
<div id="gateway-context-file" class="muted">Context file: -</div>
|
|
490
|
+
<pre id="gateway-detail" class="status-output">Loading gateway status...</pre>
|
|
379
491
|
</div>
|
|
380
492
|
</section>
|
|
493
|
+
<section class="panel">
|
|
494
|
+
<div class="panel-title-block">
|
|
495
|
+
<h2>Skill Connectivity</h2>
|
|
496
|
+
<p class="muted">Use these tests to verify the gateway can actually reach each skill path.</p>
|
|
497
|
+
</div>
|
|
498
|
+
<div id="gateway-skill-grid" class="gateway-skill-grid"></div>
|
|
499
|
+
</section>
|
|
381
500
|
</section>
|
|
382
501
|
|
|
383
|
-
<section id="tab-
|
|
502
|
+
<section id="tab-macro" class="tab-panel">
|
|
503
|
+
<section class="panel">
|
|
504
|
+
<div class="skill-surface-head">
|
|
505
|
+
<div>
|
|
506
|
+
<div class="skill-surface-kicker">Installed Skill</div>
|
|
507
|
+
<h2 id="macro-skill-title">Macro Economy Skill</h2>
|
|
508
|
+
<div id="macro-skill-package" class="skill-surface-package">@ai.weget.jp/skill-macro-economy</div>
|
|
509
|
+
</div>
|
|
510
|
+
<div class="skill-surface-statuses">
|
|
511
|
+
<span id="macro-skill-enabled" class="skill-surface-badge">enabled</span>
|
|
512
|
+
<span id="macro-skill-version" class="skill-surface-badge is-muted">builtin</span>
|
|
513
|
+
</div>
|
|
514
|
+
</div>
|
|
515
|
+
<section class="macro-status-strip">
|
|
516
|
+
<div class="macro-status-main">
|
|
517
|
+
<strong>Snapshot Status</strong>
|
|
518
|
+
<div class="macro-stat-row">
|
|
519
|
+
<span class="muted">As Of</span>
|
|
520
|
+
<strong id="macro-snapshot-as-of">-</strong>
|
|
521
|
+
</div>
|
|
522
|
+
<div class="macro-stat-row">
|
|
523
|
+
<span class="muted">Fear & Greed</span>
|
|
524
|
+
<strong id="macro-fear-greed-score">-</strong>
|
|
525
|
+
</div>
|
|
526
|
+
</div>
|
|
527
|
+
<div class="macro-toolbar-actions">
|
|
528
|
+
<button id="macro-refresh-snapshot-btn" type="button">Refresh Snapshot</button>
|
|
529
|
+
<button id="macro-refresh-day-btn" type="button" class="secondary">Load Calendar & News</button>
|
|
530
|
+
</div>
|
|
531
|
+
<label class="macro-date-field">
|
|
532
|
+
<span>Macro Date</span>
|
|
533
|
+
<input id="macro-date-key" type="date" />
|
|
534
|
+
</label>
|
|
535
|
+
</section>
|
|
536
|
+
<p id="macro-snapshot-hint" class="muted macro-status-hint">Snapshot is loaded from the macro economy skill runtime.</p>
|
|
537
|
+
<div class="macro-two-col">
|
|
538
|
+
<section class="browser-skill-card macro-side-card">
|
|
539
|
+
<h3>Coin Snapshot</h3>
|
|
540
|
+
<div id="macro-coin-cards" class="macro-chip-grid"></div>
|
|
541
|
+
</section>
|
|
542
|
+
<section class="browser-skill-card macro-side-card">
|
|
543
|
+
<h3>FX Snapshot</h3>
|
|
544
|
+
<div id="macro-fx-cards" class="macro-chip-grid"></div>
|
|
545
|
+
</section>
|
|
546
|
+
</div>
|
|
547
|
+
<div class="macro-two-col">
|
|
548
|
+
<section class="browser-skill-card macro-side-card">
|
|
549
|
+
<h3>Coin Heatmap Movers</h3>
|
|
550
|
+
<div id="macro-coin-heatmap-treemap" class="macro-treemap"></div>
|
|
551
|
+
</section>
|
|
552
|
+
<section class="browser-skill-card macro-side-card">
|
|
553
|
+
<h3>FX Heatmap Movers</h3>
|
|
554
|
+
<div id="macro-fx-heatmap-treemap" class="macro-treemap"></div>
|
|
555
|
+
</section>
|
|
556
|
+
</div>
|
|
557
|
+
</section>
|
|
558
|
+
<section class="panel">
|
|
559
|
+
<div class="panel-title-block">
|
|
560
|
+
<h2>Economic Calendar</h2>
|
|
561
|
+
<p class="muted">Server-backed macro event feed for the selected date.</p>
|
|
562
|
+
</div>
|
|
563
|
+
<div class="table-scroll">
|
|
564
|
+
<table class="position-table macro-table">
|
|
565
|
+
<thead>
|
|
566
|
+
<tr>
|
|
567
|
+
<th>Time</th>
|
|
568
|
+
<th>Country</th>
|
|
569
|
+
<th>Title</th>
|
|
570
|
+
<th>Impact</th>
|
|
571
|
+
<th>Actual</th>
|
|
572
|
+
<th>Forecast</th>
|
|
573
|
+
<th>Previous</th>
|
|
574
|
+
<th>Direction</th>
|
|
575
|
+
</tr>
|
|
576
|
+
</thead>
|
|
577
|
+
<tbody id="macro-calendar-body">
|
|
578
|
+
<tr><td colspan="8" class="empty-cell">No calendar data loaded.</td></tr>
|
|
579
|
+
</tbody>
|
|
580
|
+
</table>
|
|
581
|
+
</div>
|
|
582
|
+
</section>
|
|
583
|
+
<section class="panel">
|
|
584
|
+
<div class="panel-title-block">
|
|
585
|
+
<h2>Economic News</h2>
|
|
586
|
+
<p class="muted">Curated macro news with analyzer output for the selected date.</p>
|
|
587
|
+
</div>
|
|
588
|
+
<div class="table-scroll">
|
|
589
|
+
<table class="position-table macro-table">
|
|
590
|
+
<thead>
|
|
591
|
+
<tr>
|
|
592
|
+
<th>Time</th>
|
|
593
|
+
<th>Content</th>
|
|
594
|
+
<th>Impact</th>
|
|
595
|
+
<th>Direction</th>
|
|
596
|
+
<th>Source</th>
|
|
597
|
+
</tr>
|
|
598
|
+
</thead>
|
|
599
|
+
<tbody id="macro-news-body">
|
|
600
|
+
<tr><td colspan="5" class="empty-cell">No news data loaded.</td></tr>
|
|
601
|
+
</tbody>
|
|
602
|
+
</table>
|
|
603
|
+
</div>
|
|
604
|
+
</section>
|
|
605
|
+
</section>
|
|
606
|
+
|
|
607
|
+
<section id="tab-ai" class="tab-panel is-active">
|
|
384
608
|
<section class="panel">
|
|
385
609
|
<div class="panel-title-block">
|
|
386
610
|
<h2>Codex Console</h2>
|
|
@@ -426,50 +650,18 @@
|
|
|
426
650
|
<label>
|
|
427
651
|
<span>模型</span>
|
|
428
652
|
<select id="ai-model">
|
|
429
|
-
<option value="gpt-4
|
|
653
|
+
<option value="gpt-5.4">gpt-5.4</option>
|
|
654
|
+
<option value="gpt-5-mini">gpt-5-mini</option>
|
|
430
655
|
<option value="gpt-4.1">gpt-4.1</option>
|
|
431
|
-
<option value="gpt-4o-mini">gpt-4o-mini</option>
|
|
432
656
|
</select>
|
|
433
657
|
</label>
|
|
434
|
-
<div class="row config-actions">
|
|
435
|
-
<button id="save-ai-config-btn" type="button">保存 AI 设置</button>
|
|
436
|
-
<button id="logout-btn" type="button" class="secondary">Logout</button>
|
|
437
|
-
</div>
|
|
438
|
-
</section>
|
|
439
|
-
<section class="host-section">
|
|
440
|
-
<h3>GMO Credentials</h3>
|
|
441
|
-
<label>
|
|
442
|
-
<span>Error Log Directory</span>
|
|
443
|
-
<input id="error-log-dir" type="text" placeholder="e.g. D:\\weget-bot\\logs" />
|
|
444
|
-
</label>
|
|
445
|
-
<label>
|
|
446
|
-
<span>Risk Daily Loss Limit (JPY)</span>
|
|
447
|
-
<input id="risk-daily-loss-limit-jpy" type="number" min="1" step="1" />
|
|
448
|
-
</label>
|
|
449
|
-
<label>
|
|
450
|
-
<span>Crypto API Key</span>
|
|
451
|
-
<input id="crypto-api-key" type="text" />
|
|
452
|
-
</label>
|
|
453
|
-
<label>
|
|
454
|
-
<span>Crypto API Secret</span>
|
|
455
|
-
<div class="inline-input-row">
|
|
456
|
-
<input id="crypto-api-secret" type="password" />
|
|
457
|
-
<button id="toggle-crypto-secret-btn" type="button" class="secondary">显示</button>
|
|
458
|
-
</div>
|
|
459
|
-
</label>
|
|
460
|
-
<label>
|
|
461
|
-
<span>FX API Key</span>
|
|
462
|
-
<input id="fx-api-key" type="text" />
|
|
463
|
-
</label>
|
|
464
658
|
<label>
|
|
465
|
-
<span>
|
|
466
|
-
<
|
|
467
|
-
<input id="fx-api-secret" type="password" />
|
|
468
|
-
<button id="toggle-fx-secret-btn" type="button" class="secondary">显示</button>
|
|
469
|
-
</div>
|
|
659
|
+
<span>Log Output Directory</span>
|
|
660
|
+
<input id="host-log-output-dir" type="text" placeholder="e.g. D:\\weget-bot\\logs" />
|
|
470
661
|
</label>
|
|
471
662
|
<div class="row config-actions">
|
|
472
|
-
<button id="save-
|
|
663
|
+
<button id="save-ai-config-btn" type="button">保存 AI 设置</button>
|
|
664
|
+
<button id="logout-btn" type="button" class="secondary">Logout</button>
|
|
473
665
|
</div>
|
|
474
666
|
</section>
|
|
475
667
|
<section class="host-section skill-panel">
|
|
@@ -481,6 +673,8 @@
|
|
|
481
673
|
</section>
|
|
482
674
|
</section>
|
|
483
675
|
</section>
|
|
676
|
+
</section>
|
|
677
|
+
</div>
|
|
484
678
|
</main>
|
|
485
679
|
<script type="module" src="./app.js"></script>
|
|
486
680
|
</body>
|