@dmsdc-ai/aigentry-deliberation 0.0.7 → 0.0.9
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/index.js +16 -2
- package/package.json +2 -1
package/index.js
CHANGED
|
@@ -1330,11 +1330,25 @@ function resolveTransportForSpeaker(state, speaker) {
|
|
|
1330
1330
|
return { transport, profile, reason: null };
|
|
1331
1331
|
}
|
|
1332
1332
|
|
|
1333
|
+
// CLI-specific invocation flags for non-interactive execution
|
|
1334
|
+
const CLI_INVOCATION_HINTS = {
|
|
1335
|
+
claude: { cmd: "claude", flags: '-p --output-format text', example: 'claude -p --output-format text "프롬프트"' },
|
|
1336
|
+
codex: { cmd: "codex", flags: 'exec', example: 'codex exec "프롬프트"' },
|
|
1337
|
+
gemini: { cmd: "gemini", flags: '', example: 'gemini "프롬프트"' },
|
|
1338
|
+
aider: { cmd: "aider", flags: '--message', example: 'aider --message "프롬프트"' },
|
|
1339
|
+
cursor: { cmd: "cursor", flags: '', example: 'cursor "프롬프트"' },
|
|
1340
|
+
};
|
|
1341
|
+
|
|
1333
1342
|
function formatTransportGuidance(transport, state, speaker) {
|
|
1334
1343
|
const sid = state.id;
|
|
1335
1344
|
switch (transport) {
|
|
1336
|
-
case "cli_respond":
|
|
1337
|
-
|
|
1345
|
+
case "cli_respond": {
|
|
1346
|
+
const hint = CLI_INVOCATION_HINTS[speaker] || null;
|
|
1347
|
+
const invocationGuide = hint
|
|
1348
|
+
? `\n\n**CLI 호출 방법:** \`${hint.example}\`\n(플래그: \`${hint.cmd} ${hint.flags}\`)`
|
|
1349
|
+
: "";
|
|
1350
|
+
return `CLI speaker입니다. \`deliberation_respond(session_id: "${sid}", speaker: "${speaker}", content: "...")\`로 직접 응답하세요.${invocationGuide}`;
|
|
1351
|
+
}
|
|
1338
1352
|
case "clipboard":
|
|
1339
1353
|
return `브라우저 LLM speaker입니다. CDP 자동 연결 시도 중... Chrome이 이미 CDP 없이 실행 중이면 재시작이 필요할 수 있습니다.`;
|
|
1340
1354
|
case "browser_auto":
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dmsdc-ai/aigentry-deliberation",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "MCP Deliberation Server — Multi-session AI deliberation with smart speaker ordering and persona roles",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"main": "index.js",
|
|
20
20
|
"bin": {
|
|
21
|
+
"aigentry-deliberation": "index.js",
|
|
21
22
|
"mcp-deliberation": "index.js",
|
|
22
23
|
"deliberation-observer": "observer.js",
|
|
23
24
|
"deliberation-install": "install.js"
|