@jini-ai/agent-runtime 0.6.16 → 0.6.19
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/CHANGELOG.md +11 -0
- package/dist/defs/claude.d.ts +1 -0
- package/dist/defs/claude.js +1 -0
- package/dist/defs/codex.d.ts +1 -0
- package/dist/defs/codex.js +1 -0
- package/dist/defs/opencode.d.ts +1 -0
- package/dist/defs/opencode.js +1 -0
- package/dist/json-event-stream.js +5 -3
- package/dist/providers/oauth-callback-server.js +3 -1
- package/dist/providers/oauth-tokens.js +4 -2
- package/dist/types.d.ts +2 -0
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
## 0.6.19
|
|
2
|
+
|
|
3
|
+
- Redact OAuth callback, token parsing and file-permission failure diagnostics.
|
|
4
|
+
- Codex names a Jini MCP call `mcp__jini__X`, as Claude Code does, so the chat folds it with the daemon bridge's `X` row and a direct call shows once, not twice.
|
|
5
|
+
|
|
6
|
+
## 0.6.17
|
|
7
|
+
|
|
8
|
+
### Patch Changes
|
|
9
|
+
|
|
10
|
+
- Version bump only.
|
|
11
|
+
|
|
1
12
|
## 0.6.16
|
|
2
13
|
|
|
3
14
|
### Minor Changes
|
package/dist/defs/claude.d.ts
CHANGED
package/dist/defs/claude.js
CHANGED
|
@@ -283,6 +283,7 @@ export const claudeAgentDef = {
|
|
|
283
283
|
// Claude Code auto-loads `.mcp.json` from the project cwd at spawn,
|
|
284
284
|
// so the daemon writes the user's external MCP servers there before
|
|
285
285
|
// launching (server.ts handles the cwd guard).
|
|
286
|
+
mcpHttp: true,
|
|
286
287
|
externalMcpInjection: 'claude-mcp-json',
|
|
287
288
|
// Load MCP tools up front instead of deferring them behind the CLI's ToolSearch tool.
|
|
288
289
|
// Deferral cost every run one extra model round (a `select:` ToolSearch call, ~3 s) before its
|
package/dist/defs/codex.d.ts
CHANGED
|
@@ -72,6 +72,7 @@ export declare const codexAgentDef: {
|
|
|
72
72
|
streamFormat: string;
|
|
73
73
|
eventParser: string;
|
|
74
74
|
imageDelivery: "native";
|
|
75
|
+
mcpHttp: true;
|
|
75
76
|
externalMcpInjection: "codex-toml";
|
|
76
77
|
discoverModels(requiredArgs: {
|
|
77
78
|
context: import("../model-discovery-types.js").ModelDiscoveryContext;
|
package/dist/defs/codex.js
CHANGED
|
@@ -410,6 +410,7 @@ export const codexAgentDef = {
|
|
|
410
410
|
// prompt. Missing credentials fail observably through turn.failed instead of blocking a run.
|
|
411
411
|
// The staged shape includes command, args and a nested env table. Staging and cleanup belong
|
|
412
412
|
// to daemon's prepareCodexHomeForRun/buildCodexHomeConfigToml.
|
|
413
|
+
mcpHttp: true,
|
|
413
414
|
externalMcpInjection: 'codex-toml',
|
|
414
415
|
};
|
|
415
416
|
//# sourceMappingURL=codex.js.map
|
package/dist/defs/opencode.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export declare const opencodeAgentDef: {
|
|
|
30
30
|
capturesSessionIdFromStream: true;
|
|
31
31
|
streamFormat: string;
|
|
32
32
|
eventParser: string;
|
|
33
|
+
mcpHttp: true;
|
|
33
34
|
externalMcpInjection: "opencode-env-content";
|
|
34
35
|
systemPromptDelivery: {
|
|
35
36
|
strategy: "config-instructions-file";
|
package/dist/defs/opencode.js
CHANGED
|
@@ -88,6 +88,7 @@ export const opencodeAgentDef = {
|
|
|
88
88
|
// user-configured external MCP servers to a single `opencode run`
|
|
89
89
|
// invocation without polluting the user's saved config files. See
|
|
90
90
|
// <https://opencode.ai/docs/config> and issue #2142.
|
|
91
|
+
mcpHttp: true,
|
|
91
92
|
externalMcpInjection: 'opencode-env-content',
|
|
92
93
|
// `instructions` (an array of file paths or remote URLs — confirmed live an inline string is
|
|
93
94
|
// silently ignored, never honored) is OpenCode's real, native system-prompt-append mechanism.
|
|
@@ -574,8 +574,9 @@ function emitCodexErrorOnce(message, onEvent, state) {
|
|
|
574
574
|
function codexMcpToolName(item) {
|
|
575
575
|
const tool = nonEmptyString(item.tool);
|
|
576
576
|
// Preserve the bridge's catalog names; external MCP must never masquerade as Bash/Edit.
|
|
577
|
-
|
|
578
|
-
|
|
577
|
+
// A Jini call is named `mcp__jini__X` exactly as Claude Code names it: the daemon bridge also
|
|
578
|
+
// reports a direct call as its own `X` row, and @jini-ai/chat folds the pair into one row only
|
|
579
|
+
// when the CLI row carries the MCP prefix (a bare `X` drew every Codex direct call twice).
|
|
579
580
|
const server = typeof item.server === 'string' ? item.server : 'external';
|
|
580
581
|
return `mcp__${server}__${tool ?? 'call'}`;
|
|
581
582
|
}
|
|
@@ -585,7 +586,8 @@ function codexMcpToolName(item) {
|
|
|
585
586
|
* `item.completed` — already rely on, since Codex reports both frames for one call).
|
|
586
587
|
*
|
|
587
588
|
* `item.tool` — the literal MCP tool name Codex called (`search_tools`, `describe_tool`,
|
|
588
|
-
* `execute_delegated_tool`) — is used verbatim
|
|
589
|
+
* `execute_delegated_tool`) — is used verbatim (behind the `mcp__jini__` prefix, see
|
|
590
|
+
* {@link codexMcpToolName}) as the emitted `name`, never unwrapped to the
|
|
589
591
|
* delegated `toolId` inside `item.arguments`: `@jini-ai/chat`'s `ToolCard`/`DelegatedToolCard`
|
|
590
592
|
* already recover that id from `{toolId, input}` for `execute_delegated_tool` specifically (see that
|
|
591
593
|
* component's own doc), so duplicating the unwrap here would be a second, driftable copy of the same
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { inspect } from 'node:util';
|
|
2
|
+
import { redactSecrets } from '@jini-ai/core';
|
|
1
3
|
/**
|
|
2
4
|
* @module providers/oauth-callback-server
|
|
3
5
|
*
|
|
@@ -111,7 +113,7 @@ export async function startOAuthCallbackListener(requiredArgs, optionalArgs = {}
|
|
|
111
113
|
await input.onCallback(outcome);
|
|
112
114
|
}
|
|
113
115
|
catch (err) {
|
|
114
|
-
console.error('[oauth-callback-server] onCallback failed:', err);
|
|
116
|
+
console.error('[oauth-callback-server] onCallback failed:', redactSecrets({ input: inspect(err) }, { redactPii: false }));
|
|
115
117
|
}
|
|
116
118
|
finally {
|
|
117
119
|
void stop();
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { inspect } from 'node:util';
|
|
2
|
+
import { redactSecrets } from '@jini-ai/core';
|
|
1
3
|
/**
|
|
2
4
|
* @module providers/oauth-tokens
|
|
3
5
|
*
|
|
@@ -60,7 +62,7 @@ export async function readOAuthTokenFile({ dataDir, fileName }) {
|
|
|
60
62
|
if (e.code === 'ENOENT')
|
|
61
63
|
return {};
|
|
62
64
|
if (e.name === 'SyntaxError') {
|
|
63
|
-
console.error('[oauth-tokens] Corrupted JSON, returning empty:', e
|
|
65
|
+
console.error('[oauth-tokens] Corrupted JSON, returning empty:', redactSecrets({ input: inspect(e) }, { redactPii: false }));
|
|
64
66
|
return {};
|
|
65
67
|
}
|
|
66
68
|
throw err;
|
|
@@ -94,7 +96,7 @@ async function writeTokenFile(dataDir, fileName, next) {
|
|
|
94
96
|
catch (err) {
|
|
95
97
|
const e = err;
|
|
96
98
|
if (e.code !== 'ENOTSUP' && e.code !== 'EPERM') {
|
|
97
|
-
console.warn('[oauth-tokens] could not chmod 0600', file,
|
|
99
|
+
console.warn('[oauth-tokens] could not chmod 0600', file, redactSecrets({ input: inspect(err) }, { redactPii: false }));
|
|
98
100
|
}
|
|
99
101
|
}
|
|
100
102
|
return next;
|
package/dist/types.d.ts
CHANGED
|
@@ -399,6 +399,8 @@ export type RuntimeAgentDef = Partial<AgentModelDiscoveryPort> & {
|
|
|
399
399
|
maxPromptArgBytes?: number;
|
|
400
400
|
mcpDiscovery?: string;
|
|
401
401
|
externalMcpInjection?: 'claude-mcp-json' | 'acp-merge' | 'opencode-env-content' | 'mimo-env-content' | 'codex-toml' | 'env-passthrough';
|
|
402
|
+
/** CLI explicitly supports authenticated Streamable HTTP MCP; independent of stdio delivery. */
|
|
403
|
+
mcpHttp?: boolean;
|
|
402
404
|
systemPromptDelivery?: {
|
|
403
405
|
readonly strategy: 'append-flag';
|
|
404
406
|
readonly flag: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jini-ai/agent-runtime",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.19",
|
|
4
4
|
"description": "Coding-agent runtime adapters: runtime registry, detection, launch, stream parsers, and the ACP/pi-rpc subprocess transport.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -120,15 +120,15 @@
|
|
|
120
120
|
"devDependencies": {
|
|
121
121
|
"@vitest/coverage-v8": "^2.1.9",
|
|
122
122
|
"@jini-ai/core": "^0.6.13",
|
|
123
|
-
"@jini-ai/integrations": "^0.6.
|
|
124
|
-
"@jini-ai/platform": "^0.6.
|
|
123
|
+
"@jini-ai/integrations": "^0.6.19",
|
|
124
|
+
"@jini-ai/platform": "^0.6.19"
|
|
125
125
|
},
|
|
126
126
|
"dependencies": {
|
|
127
|
-
"@jini-ai/core": "^0.6.
|
|
128
|
-
"@jini-ai/
|
|
129
|
-
"@jini-ai/
|
|
130
|
-
"@jini-ai/
|
|
131
|
-
"@jini-ai/
|
|
127
|
+
"@jini-ai/core": "^0.6.19",
|
|
128
|
+
"@jini-ai/platform": "^0.6.19",
|
|
129
|
+
"@jini-ai/protocol": "^0.6.19",
|
|
130
|
+
"@jini-ai/oauth": "^0.6.19",
|
|
131
|
+
"@jini-ai/integrations": "^0.6.19"
|
|
132
132
|
},
|
|
133
133
|
"scripts": {
|
|
134
134
|
"build": "tsc -p tsconfig.json",
|