@make-u-free/migi 0.5.4 → 0.5.5

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/bin/migi.js CHANGED
@@ -66,6 +66,23 @@ console.log(chalk.dim(' /exit 終了\n'))
66
66
 
67
67
  const agent = new MigiAgent({ context, promptFn, apiKey, model, name: agentName, userName, teamsWebhookUrl })
68
68
 
69
+ // ---- 起動時ダッシュボード ----
70
+ {
71
+ const today = new Date().toISOString().split('T')[0]
72
+ console.log('\n' + chalk.bold.cyan(`─── ${agentName} `) + chalk.dim('─'.repeat(Math.max(0, (process.stdout.columns || 80) - agentName.length - 5))))
73
+ try {
74
+ await agent.chat(
75
+ `起動した。以下の手順で今日の状況を確認して、簡潔にダッシュボードを表示してから、今一番優先すべきことを1つだけ提案して:\n` +
76
+ `1. todos/${today}.md を read_file で読んで未完了タスクを確認\n` +
77
+ `2. .migi/memory/next-actions.md があれば読む\n` +
78
+ `3. ダッシュボード(完了済み・未完了の件数サマリー)をコンパクトに出して、一言で「今日はこれから」と提案する\n` +
79
+ `(詳細な説明はいらない。テンポよく)`
80
+ )
81
+ } catch (err) {
82
+ console.error(chalk.red(' 起動チェック失敗: ' + err.message))
83
+ }
84
+ }
85
+
69
86
  function sep() {
70
87
  const w = process.stdout.columns || 80
71
88
  return chalk.dim('─'.repeat(w))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@make-u-free/migi",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "Your AI right-hand agent. Works anywhere, with any LLM API.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/tools.js CHANGED
@@ -4,6 +4,7 @@ import { dirname, extname } from 'path'
4
4
  import { diffLines } from 'diff'
5
5
  import { request } from 'https'
6
6
  import { glob } from 'glob'
7
+ import chalk from 'chalk'
7
8
  import xlsxPkg from 'xlsx'
8
9
  import { createRequire } from 'module'
9
10
  const require = createRequire(import.meta.url)
@@ -129,8 +130,6 @@ export const teamsToolSchema = {
129
130
 
130
131
  // ---- diff 表示 ----
131
132
 
132
- import chalk from 'chalk'
133
-
134
133
  function showDiff(path, oldContent, newContent) {
135
134
  const MAX_LINES = 50 // 長すぎる diff は省略
136
135