@jini-ai/agent-runtime 0.4.2 → 0.4.3
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
CHANGED
|
@@ -5,7 +5,10 @@ export declare function modelProbeTimeoutMs(agentId: string): number;
|
|
|
5
5
|
export declare function probeCliSubcommand(context: ModelDiscoveryContext, config: AgentDiscoveryConfiguration, deps: ModelDiscoveryDeps, signal: AbortSignal): Promise<ModelProbeResult>;
|
|
6
6
|
/** ACP can create CLI session state/start services. It never sends a user prompt. */
|
|
7
7
|
export declare function probeAcpMetadata(context: ModelDiscoveryContext, args: readonly string[], deps: ModelDiscoveryDeps, signal: AbortSignal): Promise<ModelProbeResult>;
|
|
8
|
-
/** Keep selection IDs, resolved concrete IDs and display names, including capability variants.
|
|
8
|
+
/** Keep selection IDs, resolved concrete IDs and display names, including capability variants.
|
|
9
|
+
* Default-policy display names become the exact resolved ID; malformed responses return null.
|
|
10
|
+
* @complexity O(s + n) time and space in stdout length s and listed models n.
|
|
11
|
+
*/
|
|
9
12
|
export declare function parseClaudeInitializeMetadata(stdout: string): ModelProbeResult | null;
|
|
10
13
|
/** Shared initialize category; CodeBuddy compatibility remains UNVERIFIED locally. */
|
|
11
14
|
export declare function probeClaudeInitialize(context: ModelDiscoveryContext, deps: ModelDiscoveryDeps, signal: AbortSignal): Promise<ModelProbeResult>;
|
|
@@ -39,7 +39,10 @@ export async function probeCliSubcommand(context, config, deps, signal) {
|
|
|
39
39
|
export async function probeAcpMetadata(context, args, deps, signal) {
|
|
40
40
|
return deps.acp.probe({ context, args, signal });
|
|
41
41
|
}
|
|
42
|
-
/** Keep selection IDs, resolved concrete IDs and display names, including capability variants.
|
|
42
|
+
/** Keep selection IDs, resolved concrete IDs and display names, including capability variants.
|
|
43
|
+
* Default-policy display names become the exact resolved ID; malformed responses return null.
|
|
44
|
+
* @complexity O(s + n) time and space in stdout length s and listed models n.
|
|
45
|
+
*/
|
|
43
46
|
export function parseClaudeInitializeMetadata(stdout) {
|
|
44
47
|
for (const line of stdout.split('\n')) {
|
|
45
48
|
let obj;
|
|
@@ -64,9 +67,10 @@ export function parseClaudeInitializeMetadata(stdout) {
|
|
|
64
67
|
const resolvedId = typeof row.resolvedModel === 'string' ? row.resolvedModel.trim() : undefined;
|
|
65
68
|
const label = typeof row.displayName === 'string' && row.displayName.trim() ? row.displayName.trim() : resolvedId || id;
|
|
66
69
|
if (id === 'default') {
|
|
70
|
+
// This displayName describes the CLI's default policy, not the model it resolves to.
|
|
67
71
|
if (resolvedId && modelIdentityKind(resolvedId) === 'concrete') {
|
|
68
72
|
defaultSelectionId = resolvedId;
|
|
69
|
-
models.push({ id: resolvedId, label, identityKind: 'concrete' });
|
|
73
|
+
models.push({ id: resolvedId, label: resolvedId, identityKind: 'concrete' });
|
|
70
74
|
}
|
|
71
75
|
continue;
|
|
72
76
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jini-ai/agent-runtime",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
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": {
|