aiterm-mcp 0.27.0 → 0.27.1
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/dist/core.js +6 -4
- package/package.json +1 -1
package/dist/core.js
CHANGED
|
@@ -1620,13 +1620,15 @@ function codexConfigSummary(configPath) {
|
|
|
1620
1620
|
bits.push(`sandbox_mode=${sandboxMode}`);
|
|
1621
1621
|
return `共有 config: ${bits.join(" / ")}`;
|
|
1622
1622
|
}
|
|
1623
|
-
function createClaudeCorrelationSettings(name, launchId) {
|
|
1623
|
+
function createClaudeCorrelationSettings(name, launchId, model, effort) {
|
|
1624
1624
|
const hookScript = claudeHookScriptPath();
|
|
1625
1625
|
if (!fs.existsSync(hookScript)) {
|
|
1626
1626
|
throw new AitermError(`Claude Stop hook wrapper が見つかりません。npm run build を実行してください: ${hookScript}`, 2);
|
|
1627
1627
|
}
|
|
1628
1628
|
const settings = agentManagedClaudeSettingsPath(name, launchId);
|
|
1629
1629
|
writeJson0600(settings, {
|
|
1630
|
+
...(model ? { model } : {}),
|
|
1631
|
+
...(effort ? { effortLevel: effort } : {}),
|
|
1630
1632
|
hooks: {
|
|
1631
1633
|
Stop: [
|
|
1632
1634
|
{
|
|
@@ -2173,13 +2175,13 @@ function liveWaitLocks(name) {
|
|
|
2173
2175
|
}
|
|
2174
2176
|
return out;
|
|
2175
2177
|
}
|
|
2176
|
-
function createClaudeAgentMetadata(name, cwd, initialPrompt, launchOperationId, launchRequestDigest, lineageContext) {
|
|
2178
|
+
function createClaudeAgentMetadata(name, cwd, initialPrompt, launchOperationId, launchRequestDigest, lineageContext, model, effort) {
|
|
2177
2179
|
const launchId = randomBytes(16).toString("hex");
|
|
2178
2180
|
const eventFile = agentEventPath(name, launchId);
|
|
2179
2181
|
const resultFile = agentClaudeResultPath(name, launchId);
|
|
2180
2182
|
createEmpty0600(eventFile);
|
|
2181
2183
|
createEmpty0600(resultFile);
|
|
2182
|
-
const claudeSettings = createClaudeCorrelationSettings(name, launchId);
|
|
2184
|
+
const claudeSettings = createClaudeCorrelationSettings(name, launchId, model, effort);
|
|
2183
2185
|
const meta = {
|
|
2184
2186
|
kind: "claude",
|
|
2185
2187
|
aiterm_session: name,
|
|
@@ -4470,7 +4472,7 @@ export function openAgent(kind, opts = {}) {
|
|
|
4470
4472
|
const lineageContext = createAgentLineageContext(kind, sid, lineageSeed);
|
|
4471
4473
|
const meta = agentDone
|
|
4472
4474
|
? kind === "claude"
|
|
4473
|
-
? createClaudeAgentMetadata(sid, cwd, opts.prompt ? "pending" : "none", launchOperationId, launchRequestDigest, lineageContext)
|
|
4475
|
+
? createClaudeAgentMetadata(sid, cwd, opts.prompt ? "pending" : "none", launchOperationId, launchRequestDigest, lineageContext, model, effort)
|
|
4474
4476
|
: kind === "codex"
|
|
4475
4477
|
? createCodexAgentMetadata(sid, cwd, opts.prompt ? "pending" : "none", { model, effort }, writeScope, lineageContext)
|
|
4476
4478
|
: createGrokAgentMetadata(kind, sid, cwd, opts.prompt ? "pending" : "none", grokAuthPath, writeScope, lineageContext)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aiterm-mcp",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.1",
|
|
4
4
|
"mcpName": "io.github.kitepon/aiterm-mcp",
|
|
5
5
|
"description": "Persistent tmux terminal MCP for launching and driving Claude, Codex, Grok, or Composer from any MCP client, cross-vendor or same-vendor. Also runs durable PTY sessions for SSH, containers, and REPLs.",
|
|
6
6
|
"keywords": [
|