agent-devkit 0.5.7 → 0.6.0
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 +27 -0
- package/dist/main.js +1293 -113
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/i18n/en-US.json +16 -0
- package/src/assets/i18n/fr-FR.json +16 -0
- package/src/assets/i18n/ja-JP.json +16 -0
- package/src/assets/i18n/pt-BR.json +16 -0
- package/src/assets/i18n/zh-CN.json +16 -0
- package/src/assets/prompts/core/domain-decision.json +33 -0
package/package.json
CHANGED
|
@@ -242,6 +242,20 @@
|
|
|
242
242
|
"tui.foundation": "v0.3.5 technical foundation",
|
|
243
243
|
"tui.prompt": "Prompt: {{prompt}}",
|
|
244
244
|
"tui.helpHint": "Run agent --help for CLI options.",
|
|
245
|
+
"tui.error": "Error: {{error}}",
|
|
246
|
+
"tui.newSession": "new session",
|
|
247
|
+
"tui.session": "session {{sessionId}}",
|
|
248
|
+
"tui.sessionResumed": "Session resumed: {{sessionId}}",
|
|
249
|
+
"tui.sessionsListFailed": "Could not list sessions.",
|
|
250
|
+
"tui.sessionsEmpty": "No active sessions. Send a message to create one.",
|
|
251
|
+
"tui.approvalRequired": "Tool {{tool}} requires approval. Approve? (y/n)",
|
|
252
|
+
"tui.approvalPlaceholder": "approve? (y/n)",
|
|
253
|
+
"tui.approvalAccepted": "Approved: {{tool}}. Continuing...",
|
|
254
|
+
"tui.approvalDenied": "Approval denied. Task stopped.",
|
|
255
|
+
"tui.thinking": "thinking...",
|
|
256
|
+
"tui.kbd.send": "Enter send",
|
|
257
|
+
"tui.kbd.task": "/task <task>",
|
|
258
|
+
"tui.kbd.exit": "ctrl+c exit",
|
|
245
259
|
"cli.alias.description": "manage a local command alias for the Agent DevKit CLI",
|
|
246
260
|
"cli.alias.set.description": "create or update the local CLI alias",
|
|
247
261
|
"cli.alias.remove.description": "remove the local CLI alias",
|
|
@@ -268,6 +282,8 @@
|
|
|
268
282
|
"cli.models.use.option.chat": "set the default model for the chat role",
|
|
269
283
|
"cli.models.argument.id": "catalog model id",
|
|
270
284
|
"cli.models.option.json": "print the result as JSON",
|
|
285
|
+
"cli.models.providers.description": "List brain providers and their availability.",
|
|
286
|
+
"cli.models.providers.option.json": "print providers as JSON",
|
|
271
287
|
"cli.firstRun.hint": "No local model installed. Run: agent models install {{id}}",
|
|
272
288
|
"cli.firstRun.prompt": "No local model installed. Install the recommended model {{id}} now? (y/N)",
|
|
273
289
|
"cli.firstRun.installed": "Model {{id}} installed and set as default.",
|
|
@@ -242,6 +242,20 @@
|
|
|
242
242
|
"tui.foundation": "v0.3.5 base technique",
|
|
243
243
|
"tui.prompt": "Prompt: {{prompt}}",
|
|
244
244
|
"tui.helpHint": "Executez agent --help pour les options CLI.",
|
|
245
|
+
"tui.error": "Erreur: {{error}}",
|
|
246
|
+
"tui.newSession": "nouvelle session",
|
|
247
|
+
"tui.session": "session {{sessionId}}",
|
|
248
|
+
"tui.sessionResumed": "Session reprise: {{sessionId}}",
|
|
249
|
+
"tui.sessionsListFailed": "Impossible de lister les sessions.",
|
|
250
|
+
"tui.sessionsEmpty": "Aucune session active. Envoyez un message pour en creer une.",
|
|
251
|
+
"tui.approvalRequired": "L'outil {{tool}} exige une approbation. Approuver ? (o/n)",
|
|
252
|
+
"tui.approvalPlaceholder": "approuver ? (o/n)",
|
|
253
|
+
"tui.approvalAccepted": "Approuve: {{tool}}. Suite...",
|
|
254
|
+
"tui.approvalDenied": "Approbation refusee. Tache arretee.",
|
|
255
|
+
"tui.thinking": "reflexion...",
|
|
256
|
+
"tui.kbd.send": "Entree envoyer",
|
|
257
|
+
"tui.kbd.task": "/task <tache>",
|
|
258
|
+
"tui.kbd.exit": "ctrl+c quitter",
|
|
245
259
|
"cli.alias.description": "gere un alias local pour le CLI Agent DevKit",
|
|
246
260
|
"cli.alias.set.description": "cree ou met a jour l'alias CLI local",
|
|
247
261
|
"cli.alias.remove.description": "supprime l'alias CLI local",
|
|
@@ -268,6 +282,8 @@
|
|
|
268
282
|
"cli.models.use.option.chat": "definit le modele par defaut pour le role de chat",
|
|
269
283
|
"cli.models.argument.id": "id du modele du catalogue",
|
|
270
284
|
"cli.models.option.json": "imprime le resultat en JSON",
|
|
285
|
+
"cli.models.providers.description": "Liste les providers de cerveau et leur disponibilité.",
|
|
286
|
+
"cli.models.providers.option.json": "affiche les providers en JSON",
|
|
271
287
|
"cli.firstRun.hint": "Aucun modele local installe. Executez: agent models install {{id}}",
|
|
272
288
|
"cli.firstRun.prompt": "Aucun modele local installe. Installer le modele recommande {{id}} maintenant ? (y/N)",
|
|
273
289
|
"cli.firstRun.installed": "Modele {{id}} installe et defini par defaut.",
|
|
@@ -242,6 +242,20 @@
|
|
|
242
242
|
"tui.foundation": "v0.3.5 技術基盤",
|
|
243
243
|
"tui.prompt": "プロンプト: {{prompt}}",
|
|
244
244
|
"tui.helpHint": "CLI オプションは agent --help を実行してください。",
|
|
245
|
+
"tui.error": "エラー: {{error}}",
|
|
246
|
+
"tui.newSession": "新しいセッション",
|
|
247
|
+
"tui.session": "セッション {{sessionId}}",
|
|
248
|
+
"tui.sessionResumed": "セッションを再開しました: {{sessionId}}",
|
|
249
|
+
"tui.sessionsListFailed": "セッションを一覧できませんでした。",
|
|
250
|
+
"tui.sessionsEmpty": "アクティブなセッションはありません。メッセージを送ると作成されます。",
|
|
251
|
+
"tui.approvalRequired": "ツール {{tool}} には承認が必要です。承認しますか? (y/n)",
|
|
252
|
+
"tui.approvalPlaceholder": "承認しますか? (y/n)",
|
|
253
|
+
"tui.approvalAccepted": "承認しました: {{tool}}。続行します...",
|
|
254
|
+
"tui.approvalDenied": "承認が拒否されました。タスクを停止しました。",
|
|
255
|
+
"tui.thinking": "思考中...",
|
|
256
|
+
"tui.kbd.send": "Enter 送信",
|
|
257
|
+
"tui.kbd.task": "/task <タスク>",
|
|
258
|
+
"tui.kbd.exit": "ctrl+c 終了",
|
|
245
259
|
"cli.alias.description": "Agent DevKit CLI のローカルコマンド別名を管理します",
|
|
246
260
|
"cli.alias.set.description": "ローカル CLI 別名を作成または更新します",
|
|
247
261
|
"cli.alias.remove.description": "ローカル CLI 別名を削除します",
|
|
@@ -268,6 +282,8 @@
|
|
|
268
282
|
"cli.models.use.option.chat": "チャット役割のデフォルトモデルを設定します",
|
|
269
283
|
"cli.models.argument.id": "カタログモデル id",
|
|
270
284
|
"cli.models.option.json": "結果を JSON で出力します",
|
|
285
|
+
"cli.models.providers.description": "ブレインプロバイダーと利用可否を一覧表示します。",
|
|
286
|
+
"cli.models.providers.option.json": "プロバイダーをJSONで出力",
|
|
271
287
|
"cli.firstRun.hint": "ローカルモデルが未インストールです。実行: agent models install {{id}}",
|
|
272
288
|
"cli.firstRun.prompt": "ローカルモデルが未インストールです。推奨モデル {{id}} を今インストールしますか?(y/N)",
|
|
273
289
|
"cli.firstRun.installed": "モデル {{id}} をインストールし、デフォルトに設定しました。",
|
|
@@ -242,6 +242,20 @@
|
|
|
242
242
|
"tui.foundation": "v0.3.5 base tecnica",
|
|
243
243
|
"tui.prompt": "Prompt: {{prompt}}",
|
|
244
244
|
"tui.helpHint": "Execute agent --help para opcoes de CLI.",
|
|
245
|
+
"tui.error": "Erro: {{error}}",
|
|
246
|
+
"tui.newSession": "nova sessao",
|
|
247
|
+
"tui.session": "sessao {{sessionId}}",
|
|
248
|
+
"tui.sessionResumed": "Sessao retomada: {{sessionId}}",
|
|
249
|
+
"tui.sessionsListFailed": "Nao foi possivel listar as sessoes.",
|
|
250
|
+
"tui.sessionsEmpty": "Nenhuma sessao ativa. Envie uma mensagem para criar uma.",
|
|
251
|
+
"tui.approvalRequired": "A ferramenta {{tool}} precisa de aprovacao. Aprovar? (s/n)",
|
|
252
|
+
"tui.approvalPlaceholder": "aprovar? (s/n)",
|
|
253
|
+
"tui.approvalAccepted": "Aprovado: {{tool}}. Continuando...",
|
|
254
|
+
"tui.approvalDenied": "Aprovacao negada. Tarefa interrompida.",
|
|
255
|
+
"tui.thinking": "pensando...",
|
|
256
|
+
"tui.kbd.send": "Enter enviar",
|
|
257
|
+
"tui.kbd.task": "/task <tarefa>",
|
|
258
|
+
"tui.kbd.exit": "ctrl+c sair",
|
|
245
259
|
"cli.alias.description": "gerencia um alias local para o CLI do Agent DevKit",
|
|
246
260
|
"cli.alias.set.description": "cria ou atualiza o alias local do CLI",
|
|
247
261
|
"cli.alias.remove.description": "remove o alias local do CLI",
|
|
@@ -268,6 +282,8 @@
|
|
|
268
282
|
"cli.models.use.option.chat": "define o modelo padrao do papel de chat",
|
|
269
283
|
"cli.models.argument.id": "id do modelo do catalogo",
|
|
270
284
|
"cli.models.option.json": "imprime o resultado como JSON",
|
|
285
|
+
"cli.models.providers.description": "Lista os providers de cérebro e a disponibilidade de cada um.",
|
|
286
|
+
"cli.models.providers.option.json": "imprime providers em JSON",
|
|
271
287
|
"cli.firstRun.hint": "Nenhum modelo local instalado. Rode: agent models install {{id}}",
|
|
272
288
|
"cli.firstRun.prompt": "Nenhum modelo local instalado. Deseja instalar o modelo recomendado {{id}} agora? (s/N)",
|
|
273
289
|
"cli.firstRun.installed": "Modelo {{id}} instalado e definido como padrao.",
|
|
@@ -242,6 +242,20 @@
|
|
|
242
242
|
"tui.foundation": "v0.3.5 技术基础",
|
|
243
243
|
"tui.prompt": "提示: {{prompt}}",
|
|
244
244
|
"tui.helpHint": "运行 agent --help 查看 CLI 选项。",
|
|
245
|
+
"tui.error": "错误: {{error}}",
|
|
246
|
+
"tui.newSession": "新会话",
|
|
247
|
+
"tui.session": "会话 {{sessionId}}",
|
|
248
|
+
"tui.sessionResumed": "已恢复会话: {{sessionId}}",
|
|
249
|
+
"tui.sessionsListFailed": "无法列出会话。",
|
|
250
|
+
"tui.sessionsEmpty": "没有活动会话。发送消息以创建一个。",
|
|
251
|
+
"tui.approvalRequired": "工具 {{tool}} 需要批准。批准? (y/n)",
|
|
252
|
+
"tui.approvalPlaceholder": "批准? (y/n)",
|
|
253
|
+
"tui.approvalAccepted": "已批准: {{tool}}。继续...",
|
|
254
|
+
"tui.approvalDenied": "批准被拒绝。任务已停止。",
|
|
255
|
+
"tui.thinking": "思考中...",
|
|
256
|
+
"tui.kbd.send": "Enter 发送",
|
|
257
|
+
"tui.kbd.task": "/task <任务>",
|
|
258
|
+
"tui.kbd.exit": "ctrl+c 退出",
|
|
245
259
|
"cli.alias.description": "管理 Agent DevKit CLI 的本地命令别名",
|
|
246
260
|
"cli.alias.set.description": "创建或更新本地 CLI 别名",
|
|
247
261
|
"cli.alias.remove.description": "移除本地 CLI 别名",
|
|
@@ -268,6 +282,8 @@
|
|
|
268
282
|
"cli.models.use.option.chat": "设置聊天角色的默认模型",
|
|
269
283
|
"cli.models.argument.id": "目录模型 id",
|
|
270
284
|
"cli.models.option.json": "以 JSON 输出结果",
|
|
285
|
+
"cli.models.providers.description": "列出大脑提供方及其可用状态。",
|
|
286
|
+
"cli.models.providers.option.json": "以JSON输出提供方",
|
|
271
287
|
"cli.firstRun.hint": "未安装本地模型。运行: agent models install {{id}}",
|
|
272
288
|
"cli.firstRun.prompt": "未安装本地模型。现在安装推荐模型 {{id}} 吗?(y/N)",
|
|
273
289
|
"cli.firstRun.installed": "模型 {{id}} 已安装并设为默认。",
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "agent-devkit.prompt-pack/v1",
|
|
3
|
+
"id": "core/domain-decision",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"description": "Hierarchical routing stage 1: pick the capability domains relevant to the task before choosing a concrete tool.",
|
|
6
|
+
"locale": "pt-BR",
|
|
7
|
+
"output": {
|
|
8
|
+
"format": "json",
|
|
9
|
+
"language": "pt-BR"
|
|
10
|
+
},
|
|
11
|
+
"policies": {
|
|
12
|
+
"allowToolCalls": false,
|
|
13
|
+
"approvalRequired": false,
|
|
14
|
+
"maxToolCalls": 0
|
|
15
|
+
},
|
|
16
|
+
"knowledge": [
|
|
17
|
+
{
|
|
18
|
+
"id": "agent.runtime.identity",
|
|
19
|
+
"source": "core/domain-decision",
|
|
20
|
+
"content": "You are the Agent DevKit orchestration runtime. First narrow the task to the capability domains that matter; concrete tools are chosen in the next step."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"id": "agent.runtime.domain-rule",
|
|
24
|
+
"source": "core/domain-decision",
|
|
25
|
+
"content": "Pick at most two domains. Only pick domains whose description matches the task. If no domain helps, answer final directly."
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"task": {
|
|
29
|
+
"intent": "domain-routing",
|
|
30
|
+
"userMessage": "Tarefa do usuario: {{task}}\n\nDominios de capabilities disponiveis:\n{{domains}}\n\nEscolha ate DOIS dominios relevantes para a tarefa, ou responda ao usuario se nenhuma ferramenta for necessaria.\nResponda SOMENTE com JSON. Para escolher dominios: {\"action\":\"domains\",\"domains\":[\"<id>\"]}. Para responder direto: {\"action\":\"final\",\"reply\":\"<texto>\"}.",
|
|
31
|
+
"variables": ["task", "domains"]
|
|
32
|
+
}
|
|
33
|
+
}
|