@geminilight/mindos 1.1.49 → 1.1.51
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/agent/prompt/agent-prompt.txt +26 -4
- package/dist/agent/runtime/adapter-contracts.d.ts +10 -0
- package/dist/agent/runtime/adapter-contracts.d.ts.map +1 -0
- package/dist/agent/runtime/adapter-contracts.js +144 -0
- package/dist/agent/runtime/adapter-contracts.js.map +1 -0
- package/dist/agent/runtime/compatibility.d.ts +12 -0
- package/dist/agent/runtime/compatibility.d.ts.map +1 -0
- package/dist/agent/runtime/compatibility.js +401 -0
- package/dist/agent/runtime/compatibility.js.map +1 -0
- package/dist/agent/runtime/descriptors.d.ts.map +1 -1
- package/dist/agent/runtime/descriptors.js +41 -3
- package/dist/agent/runtime/descriptors.js.map +1 -1
- package/dist/agent/runtime/detection.d.ts.map +1 -1
- package/dist/agent/runtime/detection.js +116 -0
- package/dist/agent/runtime/detection.js.map +1 -1
- package/dist/agent/runtime/index.d.ts +2 -0
- package/dist/agent/runtime/index.d.ts.map +1 -1
- package/dist/agent/runtime/index.js +2 -0
- package/dist/agent/runtime/index.js.map +1 -1
- package/dist/agent/runtime/lifecycle.d.ts +6 -0
- package/dist/agent/runtime/lifecycle.d.ts.map +1 -0
- package/dist/agent/runtime/lifecycle.js +311 -0
- package/dist/agent/runtime/lifecycle.js.map +1 -0
- package/dist/agent/runtime/registry.d.ts +139 -2
- package/dist/agent/runtime/registry.d.ts.map +1 -1
- package/dist/agent/runtime/registry.js.map +1 -1
- package/dist/agent/runtime/skill-runtime-matcher.d.ts +32 -0
- package/dist/agent/runtime/skill-runtime-matcher.d.ts.map +1 -0
- package/dist/agent/runtime/skill-runtime-matcher.js +380 -0
- package/dist/agent/runtime/skill-runtime-matcher.js.map +1 -0
- package/dist/agent/runtime/skill-runtime-requirements.d.ts +23 -0
- package/dist/agent/runtime/skill-runtime-requirements.d.ts.map +1 -0
- package/dist/agent/runtime/skill-runtime-requirements.js +15 -0
- package/dist/agent/runtime/skill-runtime-requirements.js.map +1 -0
- package/dist/agent/tool/capability-registry.js +2 -0
- package/dist/agent/tool/capability-registry.js.map +1 -1
- package/dist/agent/turn/index.d.ts +18 -2
- package/dist/agent/turn/index.d.ts.map +1 -1
- package/dist/agent/turn/index.js +52 -1
- package/dist/agent/turn/index.js.map +1 -1
- package/dist/protocols/acp/agent-descriptors.d.ts +49 -2
- package/dist/protocols/acp/agent-descriptors.d.ts.map +1 -1
- package/dist/protocols/acp/agent-descriptors.js +281 -19
- package/dist/protocols/acp/agent-descriptors.js.map +1 -1
- package/dist/protocols/acp/detect-local.d.ts +2 -1
- package/dist/protocols/acp/detect-local.d.ts.map +1 -1
- package/dist/protocols/acp/detect-local.js +150 -3
- package/dist/protocols/acp/detect-local.js.map +1 -1
- package/dist/protocols/acp/index.d.ts +4 -4
- package/dist/protocols/acp/index.d.ts.map +1 -1
- package/dist/protocols/acp/index.js +24 -24
- package/dist/protocols/acp/index.js.map +1 -1
- package/dist/protocols/acp/session.d.ts +4 -1
- package/dist/protocols/acp/session.d.ts.map +1 -1
- package/dist/protocols/acp/session.js +287 -11
- package/dist/protocols/acp/session.js.map +1 -1
- package/dist/protocols/acp/subprocess.d.ts +3 -1
- package/dist/protocols/acp/subprocess.d.ts.map +1 -1
- package/dist/protocols/acp/subprocess.js +67 -2
- package/dist/protocols/acp/subprocess.js.map +1 -1
- package/dist/protocols/acp/types.d.ts +104 -13
- package/dist/protocols/acp/types.d.ts.map +1 -1
- package/dist/protocols/acp/types.js.map +1 -1
- package/dist/server/contract.d.ts.map +1 -1
- package/dist/server/contract.js +8 -0
- package/dist/server/contract.js.map +1 -1
- package/dist/server/handlers/acp.d.ts +13 -9
- package/dist/server/handlers/acp.d.ts.map +1 -1
- package/dist/server/handlers/acp.js +34 -36
- package/dist/server/handlers/acp.js.map +1 -1
- package/dist/server/handlers/agent-runtimes.d.ts +1 -1
- package/dist/server/handlers/agent-runtimes.d.ts.map +1 -1
- package/dist/server/handlers/agent-runtimes.js.map +1 -1
- package/dist/server/handlers/agent-turn.d.ts +5 -0
- package/dist/server/handlers/agent-turn.d.ts.map +1 -1
- package/dist/server/handlers/agent-turn.js +47 -0
- package/dist/server/handlers/agent-turn.js.map +1 -1
- package/dist/server/handlers/mcp-runtime-projections.d.ts +49 -0
- package/dist/server/handlers/mcp-runtime-projections.d.ts.map +1 -0
- package/dist/server/handlers/mcp-runtime-projections.js +216 -0
- package/dist/server/handlers/mcp-runtime-projections.js.map +1 -0
- package/dist/server/handlers/runtime-adapter-projections.d.ts +90 -0
- package/dist/server/handlers/runtime-adapter-projections.d.ts.map +1 -0
- package/dist/server/handlers/runtime-adapter-projections.js +329 -0
- package/dist/server/handlers/runtime-adapter-projections.js.map +1 -0
- package/dist/server/handlers/runtime-artifact-projections.d.ts +57 -0
- package/dist/server/handlers/runtime-artifact-projections.d.ts.map +1 -0
- package/dist/server/handlers/runtime-artifact-projections.js +147 -0
- package/dist/server/handlers/runtime-artifact-projections.js.map +1 -0
- package/dist/server/handlers/runtime-automation-projections.d.ts +49 -0
- package/dist/server/handlers/runtime-automation-projections.d.ts.map +1 -0
- package/dist/server/handlers/runtime-automation-projections.js +114 -0
- package/dist/server/handlers/runtime-automation-projections.js.map +1 -0
- package/dist/server/handlers/runtime-permission-projections.d.ts +71 -0
- package/dist/server/handlers/runtime-permission-projections.d.ts.map +1 -0
- package/dist/server/handlers/runtime-permission-projections.js +223 -0
- package/dist/server/handlers/runtime-permission-projections.js.map +1 -0
- package/dist/server/handlers/runtime-readiness.d.ts +68 -0
- package/dist/server/handlers/runtime-readiness.d.ts.map +1 -0
- package/dist/server/handlers/runtime-readiness.js +481 -0
- package/dist/server/handlers/runtime-readiness.js.map +1 -0
- package/dist/server/handlers/runtime-session-projections.d.ts +81 -0
- package/dist/server/handlers/runtime-session-projections.d.ts.map +1 -0
- package/dist/server/handlers/runtime-session-projections.js +267 -0
- package/dist/server/handlers/runtime-session-projections.js.map +1 -0
- package/dist/server/handlers/skill-links.d.ts +1 -1
- package/dist/server/handlers/skill-links.d.ts.map +1 -1
- package/dist/server/handlers/skill-links.js +17 -2
- package/dist/server/handlers/skill-links.js.map +1 -1
- package/dist/server/handlers/skill-metadata.d.ts +12 -0
- package/dist/server/handlers/skill-metadata.d.ts.map +1 -0
- package/dist/server/handlers/skill-metadata.js +179 -0
- package/dist/server/handlers/skill-metadata.js.map +1 -0
- package/dist/server/handlers/skill-runtime-matches.d.ts +25 -0
- package/dist/server/handlers/skill-runtime-matches.d.ts.map +1 -0
- package/dist/server/handlers/skill-runtime-matches.js +75 -0
- package/dist/server/handlers/skill-runtime-matches.js.map +1 -0
- package/dist/server/handlers/skills.d.ts +2 -0
- package/dist/server/handlers/skills.d.ts.map +1 -1
- package/dist/server/handlers/skills.js +8 -24
- package/dist/server/handlers/skills.js.map +1 -1
- package/dist/server/http.d.ts.map +1 -1
- package/dist/server/http.js +95 -5
- package/dist/server/http.js.map +1 -1
- package/dist/server/index.d.ts +13 -2
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +12 -1
- package/dist/server/index.js.map +1 -1
- package/dist/server/route-ownership.d.ts.map +1 -1
- package/dist/server/route-ownership.js +8 -0
- package/dist/server/route-ownership.js.map +1 -1
- package/package.json +9 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AcpAgentOverride } from '../../protocols/acp/index.js';
|
|
1
|
+
import type { AcpAdapterConnectionType, AcpMcpCapabilities, AcpPromptCapabilities, AcpSessionCapabilities, AcpAgentOverride } from '../../protocols/acp/index.js';
|
|
2
2
|
import type { AgentRuntimeEnvironmentSettings } from './runtime-env.js';
|
|
3
3
|
export type AgentRuntimeKind = 'mindos' | 'acp' | 'codex' | 'claude';
|
|
4
4
|
export type AgentRuntimeCategory = 'mindos' | 'native' | 'acp' | 'cloud';
|
|
@@ -33,12 +33,145 @@ export type AgentRuntimeHarnessCapabilities = {
|
|
|
33
33
|
};
|
|
34
34
|
export type AgentRuntimeAdapter = 'mindos' | 'codex-app-server' | 'codex-sdk' | 'claude-cli' | 'claude-sdk' | 'acp';
|
|
35
35
|
export type AgentRuntimeOwner = 'mindos' | 'external';
|
|
36
|
+
export type AgentRuntimeLifecycleStage = 'detect' | 'health' | 'configure' | 'launch' | 'session' | 'context' | 'execute' | 'interrupt' | 'archive' | 'remote' | 'coordinate';
|
|
37
|
+
export type AgentRuntimeLifecycleSupport = 'owned' | 'delegated' | 'unsupported' | 'unknown';
|
|
38
|
+
export type AgentRuntimeLifecycleSource = 'settings' | 'runtime-registry' | 'native-health' | 'acp-detect' | 'acp-registry' | 'turn-runner' | 'runtime-bridge' | 'codex-app-server' | 'claude-bridge' | 'acp-session' | 'mindos-pi-session' | 'run-ledger';
|
|
39
|
+
export type AgentRuntimeLifecycleStageDescriptor = {
|
|
40
|
+
support: AgentRuntimeLifecycleSupport;
|
|
41
|
+
owner: AgentRuntimeOwner;
|
|
42
|
+
summary: string;
|
|
43
|
+
required?: boolean;
|
|
44
|
+
sources?: AgentRuntimeLifecycleSource[];
|
|
45
|
+
diagnosticHints?: string[];
|
|
46
|
+
};
|
|
47
|
+
export type AgentRuntimeRemoteMode = 'local-only' | 'server-runnable' | 'external-runtime' | 'cloud-task' | 'unknown';
|
|
48
|
+
export type AgentRuntimeUnattendedSupport = 'supported' | 'limited' | 'unsupported' | 'unknown';
|
|
49
|
+
export type AgentRuntimeCoordinationRole = 'primary' | 'external-worker' | 'subagent-capable' | 'unknown';
|
|
50
|
+
export type AgentRuntimeLifecycle = {
|
|
51
|
+
schemaVersion: 1;
|
|
52
|
+
stages: Record<AgentRuntimeLifecycleStage, AgentRuntimeLifecycleStageDescriptor>;
|
|
53
|
+
remote: {
|
|
54
|
+
supported: boolean;
|
|
55
|
+
mode: AgentRuntimeRemoteMode;
|
|
56
|
+
unattended: AgentRuntimeUnattendedSupport;
|
|
57
|
+
summary: string;
|
|
58
|
+
};
|
|
59
|
+
coordination: {
|
|
60
|
+
role: AgentRuntimeCoordinationRole;
|
|
61
|
+
supportsSharedContext: boolean;
|
|
62
|
+
supportsMailbox: boolean;
|
|
63
|
+
supportsTaskBoard: boolean;
|
|
64
|
+
summary: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
export type AgentRuntimeCompatibilityLevel = 'ready' | 'limited' | 'blocked' | 'unknown';
|
|
68
|
+
export type AgentRuntimeCompatibilityOwner = AgentRuntimeOwner | 'shared';
|
|
69
|
+
export type AgentRuntimeCompatibilityScenario = 'interactive-turn' | 'coding-workflow' | 'session-continuity' | 'context-governance' | 'permission-governance' | 'mcp-tooling' | 'skill-execution' | 'artifact-governance' | 'remote-control' | 'unattended-automation' | 'team-coordination';
|
|
70
|
+
export type AgentRuntimeCompatibilityRequirementStatus = 'satisfied' | 'external' | 'missing' | 'unknown' | 'not-applicable';
|
|
71
|
+
export type AgentRuntimeCompatibilityRequirement = {
|
|
72
|
+
id: string;
|
|
73
|
+
status: AgentRuntimeCompatibilityRequirementStatus;
|
|
74
|
+
owner: AgentRuntimeCompatibilityOwner;
|
|
75
|
+
summary: string;
|
|
76
|
+
};
|
|
77
|
+
export type AgentRuntimeCompatibilityAssessment = {
|
|
78
|
+
level: AgentRuntimeCompatibilityLevel;
|
|
79
|
+
owner: AgentRuntimeCompatibilityOwner;
|
|
80
|
+
summary: string;
|
|
81
|
+
requirements: AgentRuntimeCompatibilityRequirement[];
|
|
82
|
+
blockers?: string[];
|
|
83
|
+
};
|
|
84
|
+
export type AgentRuntimeCompatibilityProfile = {
|
|
85
|
+
schemaVersion: 1;
|
|
86
|
+
scenarios: Record<AgentRuntimeCompatibilityScenario, AgentRuntimeCompatibilityAssessment>;
|
|
87
|
+
summary: string;
|
|
88
|
+
};
|
|
36
89
|
export type AgentRuntimeBridge = {
|
|
37
90
|
kind: 'codex-app-server' | 'claude-sdk' | 'claude-cli';
|
|
38
91
|
label: string;
|
|
39
92
|
fallback?: boolean;
|
|
40
93
|
reason?: string;
|
|
41
94
|
};
|
|
95
|
+
export type AgentRuntimeAdapterConnectionKind = 'internal' | 'stdio' | 'app-server' | 'sdk' | 'cli' | 'unknown';
|
|
96
|
+
export type AgentRuntimeAdapterConfigurationOwner = 'mindos-session' | 'mindos-settings' | 'runtime-native' | 'adapter-declared' | 'unsupported' | 'unknown';
|
|
97
|
+
export type AgentRuntimeAdapterHealthMode = 'mindos-native' | 'runtime-native' | 'adapter-declared' | 'unsupported' | 'unknown';
|
|
98
|
+
export type AgentRuntimeAdapterCommandDiscovery = 'mindos-skills' | 'runtime-event' | 'adapter-declared' | 'unsupported' | 'unknown';
|
|
99
|
+
export type AgentRuntimeAdapterCommandSource = 'mindos' | 'runtime-native' | 'adapter-declared';
|
|
100
|
+
export type AgentRuntimeResolvedCommandSource = 'user-override' | 'descriptor' | 'registry';
|
|
101
|
+
export type AgentRuntimeAdapterDeclaredCommand = {
|
|
102
|
+
name: string;
|
|
103
|
+
description?: string;
|
|
104
|
+
source: AgentRuntimeAdapterCommandSource;
|
|
105
|
+
};
|
|
106
|
+
export type AgentRuntimeAdapterMetadata = {
|
|
107
|
+
connectionType?: AcpAdapterConnectionType;
|
|
108
|
+
authRequired?: boolean;
|
|
109
|
+
supportsStreaming?: boolean;
|
|
110
|
+
models?: Array<{
|
|
111
|
+
id: string;
|
|
112
|
+
label?: string;
|
|
113
|
+
description?: string;
|
|
114
|
+
}>;
|
|
115
|
+
promptCapabilities?: AcpPromptCapabilities;
|
|
116
|
+
mcpCapabilities?: AcpMcpCapabilities;
|
|
117
|
+
sessionCapabilities?: AcpSessionCapabilities & {
|
|
118
|
+
loadSession?: boolean;
|
|
119
|
+
};
|
|
120
|
+
healthCheck?: {
|
|
121
|
+
command?: string;
|
|
122
|
+
timeoutMs?: number;
|
|
123
|
+
summary?: string;
|
|
124
|
+
};
|
|
125
|
+
commands?: Array<{
|
|
126
|
+
name: string;
|
|
127
|
+
description?: string;
|
|
128
|
+
}>;
|
|
129
|
+
};
|
|
130
|
+
export type AgentRuntimeAdapterContract = {
|
|
131
|
+
schemaVersion: 1;
|
|
132
|
+
connection: {
|
|
133
|
+
kind: AgentRuntimeAdapterConnectionKind;
|
|
134
|
+
owner: AgentRuntimeOwner;
|
|
135
|
+
summary: string;
|
|
136
|
+
command?: string;
|
|
137
|
+
commandSource?: AgentRuntimeResolvedCommandSource;
|
|
138
|
+
};
|
|
139
|
+
configuration: {
|
|
140
|
+
modelSelection: AgentRuntimeAdapterConfigurationOwner;
|
|
141
|
+
credentials: AgentRuntimeAdapterConfigurationOwner;
|
|
142
|
+
settings: AgentRuntimeAdapterConfigurationOwner;
|
|
143
|
+
summary: string;
|
|
144
|
+
};
|
|
145
|
+
health: {
|
|
146
|
+
mode: AgentRuntimeAdapterHealthMode;
|
|
147
|
+
owner: AgentRuntimeOwner;
|
|
148
|
+
summary: string;
|
|
149
|
+
command?: string;
|
|
150
|
+
timeoutMs?: number;
|
|
151
|
+
};
|
|
152
|
+
commands: {
|
|
153
|
+
discovery: AgentRuntimeAdapterCommandDiscovery;
|
|
154
|
+
commands: AgentRuntimeAdapterDeclaredCommand[];
|
|
155
|
+
summary: string;
|
|
156
|
+
};
|
|
157
|
+
protocol: {
|
|
158
|
+
declaredConnectionType?: AcpAdapterConnectionType;
|
|
159
|
+
supportsStreaming: boolean | null;
|
|
160
|
+
authRequired: boolean | null;
|
|
161
|
+
modelCount: number;
|
|
162
|
+
models: Array<{
|
|
163
|
+
id: string;
|
|
164
|
+
label?: string;
|
|
165
|
+
description?: string;
|
|
166
|
+
}>;
|
|
167
|
+
promptCapabilities?: AcpPromptCapabilities;
|
|
168
|
+
mcpCapabilities?: AcpMcpCapabilities;
|
|
169
|
+
sessionCapabilities?: AcpSessionCapabilities & {
|
|
170
|
+
loadSession?: boolean;
|
|
171
|
+
};
|
|
172
|
+
summary: string;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
42
175
|
export type AgentRuntimeDescriptor = {
|
|
43
176
|
id: string;
|
|
44
177
|
name: string;
|
|
@@ -53,6 +186,9 @@ export type AgentRuntimeDescriptor = {
|
|
|
53
186
|
status: AgentRuntimeStatus;
|
|
54
187
|
capabilities: AgentRuntimeCapabilities;
|
|
55
188
|
harnessCapabilities?: AgentRuntimeHarnessCapabilities;
|
|
189
|
+
lifecycle: AgentRuntimeLifecycle;
|
|
190
|
+
compatibility: AgentRuntimeCompatibilityProfile;
|
|
191
|
+
adapterContract: AgentRuntimeAdapterContract;
|
|
56
192
|
runtimeBridge?: AgentRuntimeBridge;
|
|
57
193
|
description?: string;
|
|
58
194
|
sourceAgentId?: string;
|
|
@@ -63,7 +199,7 @@ export type AgentRuntimeDescriptor = {
|
|
|
63
199
|
resolvedCommand?: {
|
|
64
200
|
cmd: string;
|
|
65
201
|
args: string[];
|
|
66
|
-
source:
|
|
202
|
+
source: AgentRuntimeResolvedCommandSource;
|
|
67
203
|
};
|
|
68
204
|
installCmd?: string;
|
|
69
205
|
packageName?: string;
|
|
@@ -80,6 +216,7 @@ export type DetectedRuntimeAgent = {
|
|
|
80
216
|
name: string;
|
|
81
217
|
binaryPath: string;
|
|
82
218
|
resolvedCommand?: NonNullable<AgentRuntimeDescriptor['resolvedCommand']>;
|
|
219
|
+
adapterMetadata?: AgentRuntimeAdapterMetadata;
|
|
83
220
|
status?: Exclude<AgentRuntimeStatus, 'missing'>;
|
|
84
221
|
reason?: string;
|
|
85
222
|
diagnosticHints?: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/agent/runtime/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/agent/runtime/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,kBAAkB,EAClB,qBAAqB,EACrB,sBAAsB,EACtB,gBAAgB,EACjB,MAAM,8BAA8B,CAAC;AAatC,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,kBAAkB,CAAC;AAEx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OAAO,EAAE,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;CACnB,GAAG,oBAAoB,CAUvB;AAED,wBAAsB,wBAAwB,CAC5C,SAAS,EAAE,OAAO,EAAE,EACpB,QAAQ,EAAE,qBAAqB,EAC/B,gCAAgC,EAAE,CAAC,KAAK,EAAE,wBAAwB,KAAK,OAAO,CAAC,yBAAyB,CAAC,GACxG,OAAO,CAAC,OAAO,EAAE,CAAC,CA+BpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../src/agent/runtime/registry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../src/agent/runtime/registry.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,sBAAsB,EACtB,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,gBAAgB,CAAC;AA0XxB,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,CAAC;AACjD,MAAM,CAAC,MAAM,wBAAwB,GAAG,KAAK,CAAC;AAE9C,MAAM,CAAC,MAAM,wBAAwB,GAMhC;IACH,EAAE,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,8BAA8B,EAAE;IAClH,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,0CAA0C,EAAE;CACpI,CAAC;AAEF,MAAM,UAAU,yBAAyB,CAAC,KAIzC;IACC,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAi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,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aACzE,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,MAAM,GAAG,sBAAsB,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC;YACvG,OAAO;gBACL,GAAG,CAAC,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC;gBAC3E,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aACpD,CAAC;QACJ,CAAC;IACH,CAAC,CAAC,CAAC,CAAC;IACJ,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { AgentRuntimeCompatibilityScenario, AgentRuntimeDescriptor } from './registry.js';
|
|
2
|
+
import type { MindosSkillRuntimeRequirements } from './skill-runtime-requirements.js';
|
|
3
|
+
export type MindosSkillRuntimeMatchLevel = 'ready' | 'limited' | 'blocked' | 'unknown';
|
|
4
|
+
export type MindosSkillRuntimeMatchReasonStatus = 'satisfied' | 'limited' | 'missing' | 'unknown' | 'not-applicable';
|
|
5
|
+
export type MindosSkillRuntimeMatchReason = {
|
|
6
|
+
id: string;
|
|
7
|
+
status: MindosSkillRuntimeMatchReasonStatus;
|
|
8
|
+
summary: string;
|
|
9
|
+
};
|
|
10
|
+
export type MindosSkillRuntimeMatch = {
|
|
11
|
+
schemaVersion: 1;
|
|
12
|
+
level: MindosSkillRuntimeMatchLevel;
|
|
13
|
+
runtimeId: string;
|
|
14
|
+
runtimeName: string;
|
|
15
|
+
runtimeKind: AgentRuntimeDescriptor['kind'];
|
|
16
|
+
skillName: string;
|
|
17
|
+
declared: boolean;
|
|
18
|
+
scenario: AgentRuntimeCompatibilityScenario;
|
|
19
|
+
reasons: MindosSkillRuntimeMatchReason[];
|
|
20
|
+
blockers?: string[];
|
|
21
|
+
notes?: string[];
|
|
22
|
+
};
|
|
23
|
+
export type MindosSkillRuntimeMatchInput = {
|
|
24
|
+
skill: {
|
|
25
|
+
name: string;
|
|
26
|
+
runtimeRequirements: MindosSkillRuntimeRequirements;
|
|
27
|
+
};
|
|
28
|
+
runtime: AgentRuntimeDescriptor;
|
|
29
|
+
scenario?: AgentRuntimeCompatibilityScenario;
|
|
30
|
+
};
|
|
31
|
+
export declare function evaluateSkillRuntimeMatch(input: MindosSkillRuntimeMatchInput): MindosSkillRuntimeMatch;
|
|
32
|
+
//# sourceMappingURL=skill-runtime-matcher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-runtime-matcher.d.ts","sourceRoot":"","sources":["../../../src/agent/runtime/skill-runtime-matcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iCAAiC,EACjC,sBAAsB,EAEvB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAEV,8BAA8B,EAE/B,MAAM,iCAAiC,CAAC;AAEzC,MAAM,MAAM,4BAA4B,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;AAEvF,MAAM,MAAM,mCAAmC,GAC3C,WAAW,GACX,SAAS,GACT,SAAS,GACT,SAAS,GACT,gBAAgB,CAAC;AAErB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,mCAAmC,CAAC;IAC5C,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,aAAa,EAAE,CAAC,CAAC;IACjB,KAAK,EAAE,4BAA4B,CAAC;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,iCAAiC,CAAC;IAC5C,OAAO,EAAE,6BAA6B,EAAE,CAAC;IACzC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,KAAK,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,mBAAmB,EAAE,8BAA8B,CAAC;KACrD,CAAC;IACF,OAAO,EAAE,sBAAsB,CAAC;IAChC,QAAQ,CAAC,EAAE,iCAAiC,CAAC;CAC9C,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,4BAA4B,GAAG,uBAAuB,CA0EtG"}
|
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
export function evaluateSkillRuntimeMatch(input) {
|
|
2
|
+
const scenario = input.scenario ?? 'interactive-turn';
|
|
3
|
+
const requirements = input.skill.runtimeRequirements;
|
|
4
|
+
const reasons = [];
|
|
5
|
+
const blockers = [];
|
|
6
|
+
let unknown = false;
|
|
7
|
+
let limited = false;
|
|
8
|
+
const addReason = (reason, blocker) => {
|
|
9
|
+
reasons.push(reason);
|
|
10
|
+
if (reason.status === 'missing' && blocker)
|
|
11
|
+
blockers.push(blocker);
|
|
12
|
+
if (reason.status === 'unknown')
|
|
13
|
+
unknown = true;
|
|
14
|
+
};
|
|
15
|
+
const addLimited = () => {
|
|
16
|
+
limited = true;
|
|
17
|
+
};
|
|
18
|
+
if (input.runtime.status !== 'available') {
|
|
19
|
+
addReason({
|
|
20
|
+
id: 'runtime-available',
|
|
21
|
+
status: 'missing',
|
|
22
|
+
summary: `${input.runtime.name} is ${input.runtime.status}, so this skill cannot run there yet.`,
|
|
23
|
+
}, 'runtime-unavailable');
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
addReason({
|
|
27
|
+
id: 'runtime-available',
|
|
28
|
+
status: 'satisfied',
|
|
29
|
+
summary: `${input.runtime.name} is available.`,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
if (!requirements.declared) {
|
|
33
|
+
addReason({
|
|
34
|
+
id: 'skill-requirements-declared',
|
|
35
|
+
status: 'unknown',
|
|
36
|
+
summary: 'The skill has not declared runtime requirements, so MindOS cannot prove it is safe for automatic routing.',
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
addReason({
|
|
41
|
+
id: 'skill-requirements-declared',
|
|
42
|
+
status: 'satisfied',
|
|
43
|
+
summary: 'The skill declares machine-readable runtime requirements.',
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
evaluateRuntimeKinds(requirements.runtimeKinds, input.runtime, addReason);
|
|
47
|
+
evaluateRuntimeScenario(scenario, input.runtime, addReason, addLimited);
|
|
48
|
+
evaluateRequiredTools(requirements.requiredTools, input.runtime.harnessCapabilities, addReason);
|
|
49
|
+
evaluateRequiredCapabilities(requirements.requiredCapabilities, input.runtime, addReason);
|
|
50
|
+
evaluateApprovalRequirement(requirements.approvals, input.runtime, scenario, addReason, addLimited);
|
|
51
|
+
evaluateUserInputRequirement(requirements.userInput, input.runtime, scenario, addReason);
|
|
52
|
+
evaluateScenarioSafety(requirements, scenario, addReason, addLimited);
|
|
53
|
+
const level = blockers.length > 0
|
|
54
|
+
? 'blocked'
|
|
55
|
+
: unknown
|
|
56
|
+
? 'unknown'
|
|
57
|
+
: limited
|
|
58
|
+
? 'limited'
|
|
59
|
+
: 'ready';
|
|
60
|
+
return {
|
|
61
|
+
schemaVersion: 1,
|
|
62
|
+
level,
|
|
63
|
+
runtimeId: input.runtime.runtimeId ?? input.runtime.id,
|
|
64
|
+
runtimeName: input.runtime.name,
|
|
65
|
+
runtimeKind: input.runtime.kind,
|
|
66
|
+
skillName: input.skill.name,
|
|
67
|
+
declared: requirements.declared,
|
|
68
|
+
scenario,
|
|
69
|
+
reasons,
|
|
70
|
+
...(blockers.length > 0 ? { blockers: unique(blockers) } : {}),
|
|
71
|
+
...(requirements.notes.length > 0 ? { notes: requirements.notes } : {}),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
function evaluateRuntimeKinds(runtimeKinds, runtime, addReason) {
|
|
75
|
+
if (runtimeKinds.length === 0 || runtimeKinds.includes('any')) {
|
|
76
|
+
addReason({
|
|
77
|
+
id: 'runtime-kind',
|
|
78
|
+
status: 'not-applicable',
|
|
79
|
+
summary: 'The skill does not restrict runtime kind.',
|
|
80
|
+
});
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
if (runtimeKinds.some((kind) => runtimeKindMatches(kind, runtime))) {
|
|
84
|
+
addReason({
|
|
85
|
+
id: 'runtime-kind',
|
|
86
|
+
status: 'satisfied',
|
|
87
|
+
summary: `The skill allows ${runtime.kind} runtimes.`,
|
|
88
|
+
});
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
addReason({
|
|
92
|
+
id: 'runtime-kind',
|
|
93
|
+
status: 'missing',
|
|
94
|
+
summary: `The skill allows ${runtimeKinds.join(', ')} runtimes, but ${runtime.name} is ${runtime.kind}.`,
|
|
95
|
+
}, 'runtime-kind');
|
|
96
|
+
}
|
|
97
|
+
function runtimeKindMatches(kind, runtime) {
|
|
98
|
+
if (kind === 'any')
|
|
99
|
+
return true;
|
|
100
|
+
if (kind === 'native')
|
|
101
|
+
return runtime.category === 'native' || runtime.kind === 'codex' || runtime.kind === 'claude';
|
|
102
|
+
return runtime.kind === kind;
|
|
103
|
+
}
|
|
104
|
+
function evaluateRuntimeScenario(scenario, runtime, addReason, addLimited) {
|
|
105
|
+
const assessment = runtime.compatibility.scenarios[scenario];
|
|
106
|
+
if (!assessment) {
|
|
107
|
+
addReason({
|
|
108
|
+
id: `runtime-scenario:${scenario}`,
|
|
109
|
+
status: 'unknown',
|
|
110
|
+
summary: `${runtime.name} has not declared compatibility for ${scenario}.`,
|
|
111
|
+
});
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
if (assessment.level === 'ready') {
|
|
115
|
+
addReason({
|
|
116
|
+
id: `runtime-scenario:${scenario}`,
|
|
117
|
+
status: 'satisfied',
|
|
118
|
+
summary: `${runtime.name} declares ${scenario} as ready.`,
|
|
119
|
+
});
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
if (assessment.level === 'limited') {
|
|
123
|
+
addLimited();
|
|
124
|
+
addReason({
|
|
125
|
+
id: `runtime-scenario:${scenario}`,
|
|
126
|
+
status: 'limited',
|
|
127
|
+
summary: `${runtime.name} declares ${scenario} as limited: ${assessment.summary}`,
|
|
128
|
+
});
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
if (assessment.level === 'blocked') {
|
|
132
|
+
addReason({
|
|
133
|
+
id: `runtime-scenario:${scenario}`,
|
|
134
|
+
status: 'missing',
|
|
135
|
+
summary: `${runtime.name} declares ${scenario} as blocked: ${assessment.summary}`,
|
|
136
|
+
}, `runtime-scenario:${scenario}`);
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
addReason({
|
|
140
|
+
id: `runtime-scenario:${scenario}`,
|
|
141
|
+
status: 'unknown',
|
|
142
|
+
summary: `${runtime.name} declares ${scenario} as unknown: ${assessment.summary}`,
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
function evaluateRequiredTools(requiredTools, harnessCapabilities, addReason) {
|
|
146
|
+
if (requiredTools.length === 0) {
|
|
147
|
+
addReason({
|
|
148
|
+
id: 'required-tools',
|
|
149
|
+
status: 'not-applicable',
|
|
150
|
+
summary: 'The skill does not require specific runtime tools.',
|
|
151
|
+
});
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
if (!harnessCapabilities) {
|
|
155
|
+
addReason({
|
|
156
|
+
id: 'required-tools',
|
|
157
|
+
status: 'unknown',
|
|
158
|
+
summary: 'The runtime has not declared harness tool capabilities.',
|
|
159
|
+
});
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
for (const tool of requiredTools) {
|
|
163
|
+
const hasTool = harnessCapabilities.tools.includes(tool);
|
|
164
|
+
addReason({
|
|
165
|
+
id: `tool:${tool}`,
|
|
166
|
+
status: hasTool ? 'satisfied' : 'missing',
|
|
167
|
+
summary: hasTool
|
|
168
|
+
? `${tool} tool is available in this runtime harness.`
|
|
169
|
+
: `${tool} tool is required by the skill but not available in this runtime harness.`,
|
|
170
|
+
}, hasTool ? undefined : `tool:${tool}`);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
function evaluateRequiredCapabilities(requiredCapabilities, runtime, addReason) {
|
|
174
|
+
if (requiredCapabilities.length === 0) {
|
|
175
|
+
addReason({
|
|
176
|
+
id: 'required-capabilities',
|
|
177
|
+
status: 'not-applicable',
|
|
178
|
+
summary: 'The skill does not require named runtime capabilities.',
|
|
179
|
+
});
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
for (const capability of requiredCapabilities) {
|
|
183
|
+
const status = evaluateKnownCapability(capability, runtime);
|
|
184
|
+
addReason({
|
|
185
|
+
id: `capability:${capability}`,
|
|
186
|
+
status,
|
|
187
|
+
summary: capabilitySummary(capability, status),
|
|
188
|
+
}, status === 'missing' ? `capability:${capability}` : undefined);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
function evaluateKnownCapability(capability, runtime) {
|
|
192
|
+
const harness = runtime.harnessCapabilities;
|
|
193
|
+
switch (capability) {
|
|
194
|
+
case 'artifact-output':
|
|
195
|
+
return harness?.output.includes('artifact') ? 'satisfied' : harness ? 'missing' : 'unknown';
|
|
196
|
+
case 'diff-output':
|
|
197
|
+
return harness?.output.includes('diff') ? 'satisfied' : harness ? 'missing' : 'unknown';
|
|
198
|
+
case 'branch-output':
|
|
199
|
+
return harness?.output.includes('branch') ? 'satisfied' : harness ? 'missing' : 'unknown';
|
|
200
|
+
case 'pr-output':
|
|
201
|
+
return harness?.output.includes('pr') ? 'satisfied' : harness ? 'missing' : 'unknown';
|
|
202
|
+
case 'checkpoint-output':
|
|
203
|
+
return harness?.output.includes('checkpoint') ? 'satisfied' : harness ? 'missing' : 'unknown';
|
|
204
|
+
case 'approval-routing':
|
|
205
|
+
return runtime.capabilities.supportsApprovals || runtime.compatibility.scenarios['permission-governance']?.level === 'ready'
|
|
206
|
+
? 'satisfied'
|
|
207
|
+
: 'missing';
|
|
208
|
+
case 'mcp-config':
|
|
209
|
+
return runtime.capabilities.supportsMcpConfig || Boolean(harness?.tools.includes('mcp')) ? 'satisfied' : 'missing';
|
|
210
|
+
case 'user-input':
|
|
211
|
+
return runtime.capabilities.supportsUserInput || Boolean(harness?.eventStream.includes('user-input')) ? 'satisfied' : 'missing';
|
|
212
|
+
case 'background-runs':
|
|
213
|
+
return runtime.capabilities.supportsBackgroundRuns ? 'satisfied' : 'missing';
|
|
214
|
+
case 'tool-events':
|
|
215
|
+
return runtime.capabilities.supportsToolEvents || Boolean(harness?.eventStream.includes('tool-events')) ? 'satisfied' : 'missing';
|
|
216
|
+
case 'runtime-status':
|
|
217
|
+
return runtime.capabilities.supportsRuntimeStatus || Boolean(harness?.eventStream.includes('runtime-status')) ? 'satisfied' : 'missing';
|
|
218
|
+
case 'session-resume':
|
|
219
|
+
return runtime.capabilities.supportsResume ? 'satisfied' : 'missing';
|
|
220
|
+
case 'fresh-session':
|
|
221
|
+
return runtime.capabilities.supportsFreshSession ? 'satisfied' : 'missing';
|
|
222
|
+
default:
|
|
223
|
+
return 'unknown';
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
function capabilitySummary(capability, status) {
|
|
227
|
+
if (status === 'satisfied')
|
|
228
|
+
return `${capability} is satisfied by this runtime descriptor.`;
|
|
229
|
+
if (status === 'missing')
|
|
230
|
+
return `${capability} is required by the skill but missing from this runtime descriptor.`;
|
|
231
|
+
return `${capability} is not a known MindOS runtime capability yet, so the matcher cannot prove it.`;
|
|
232
|
+
}
|
|
233
|
+
function evaluateApprovalRequirement(approvals, runtime, scenario, addReason, addLimited) {
|
|
234
|
+
if (approvals === 'not-required') {
|
|
235
|
+
addReason({
|
|
236
|
+
id: 'approval-requirement',
|
|
237
|
+
status: 'satisfied',
|
|
238
|
+
summary: 'The skill declares that runtime approvals are not required.',
|
|
239
|
+
});
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
242
|
+
if (approvals === 'unknown') {
|
|
243
|
+
addReason({
|
|
244
|
+
id: 'approval-requirement',
|
|
245
|
+
status: 'unknown',
|
|
246
|
+
summary: 'The skill has not declared whether runtime approvals are required.',
|
|
247
|
+
});
|
|
248
|
+
return;
|
|
249
|
+
}
|
|
250
|
+
const permissionGovernance = runtime.compatibility.scenarios['permission-governance']?.level;
|
|
251
|
+
const hasInteractiveApprovalRoute = runtime.capabilities.supportsApprovals || permissionGovernance === 'ready' || permissionGovernance === 'limited';
|
|
252
|
+
if (scenario !== 'unattended-automation' && hasInteractiveApprovalRoute) {
|
|
253
|
+
addReason({
|
|
254
|
+
id: 'approval-requirement',
|
|
255
|
+
status: 'satisfied',
|
|
256
|
+
summary: 'The runtime has an interactive approval or permission governance route.',
|
|
257
|
+
});
|
|
258
|
+
return;
|
|
259
|
+
}
|
|
260
|
+
if (scenario === 'unattended-automation') {
|
|
261
|
+
const unattended = runtime.compatibility.scenarios['unattended-automation'];
|
|
262
|
+
const approvalRouting = unattended?.requirements.some((requirement) => (requirement.id === 'approval-routing' &&
|
|
263
|
+
(requirement.status === 'satisfied' || requirement.status === 'external'))) ?? false;
|
|
264
|
+
if (approvalRouting) {
|
|
265
|
+
addReason({
|
|
266
|
+
id: 'approval-requirement',
|
|
267
|
+
status: 'satisfied',
|
|
268
|
+
summary: 'The unattended scenario has an approval routing contract.',
|
|
269
|
+
});
|
|
270
|
+
return;
|
|
271
|
+
}
|
|
272
|
+
addReason({
|
|
273
|
+
id: 'approval-requirement',
|
|
274
|
+
status: 'missing',
|
|
275
|
+
summary: 'The skill requires approvals, but unattended approval routing is not available yet.',
|
|
276
|
+
}, 'approval-routing');
|
|
277
|
+
return;
|
|
278
|
+
}
|
|
279
|
+
addLimited();
|
|
280
|
+
addReason({
|
|
281
|
+
id: 'approval-requirement',
|
|
282
|
+
status: 'missing',
|
|
283
|
+
summary: 'The skill requires approvals, but this runtime does not expose approval or permission governance.',
|
|
284
|
+
}, 'approval-routing');
|
|
285
|
+
}
|
|
286
|
+
function evaluateUserInputRequirement(userInput, runtime, scenario, addReason) {
|
|
287
|
+
if (userInput === 'not-required') {
|
|
288
|
+
addReason({
|
|
289
|
+
id: 'user-input-requirement',
|
|
290
|
+
status: 'satisfied',
|
|
291
|
+
summary: 'The skill declares that user input is not required after launch.',
|
|
292
|
+
});
|
|
293
|
+
return;
|
|
294
|
+
}
|
|
295
|
+
if (userInput === 'unknown') {
|
|
296
|
+
addReason({
|
|
297
|
+
id: 'user-input-requirement',
|
|
298
|
+
status: 'unknown',
|
|
299
|
+
summary: 'The skill has not declared whether user input is required after launch.',
|
|
300
|
+
});
|
|
301
|
+
return;
|
|
302
|
+
}
|
|
303
|
+
if (scenario === 'unattended-automation') {
|
|
304
|
+
addReason({
|
|
305
|
+
id: 'user-input-requirement',
|
|
306
|
+
status: 'missing',
|
|
307
|
+
summary: 'The skill requires user input, so it is not safe for unattended automation.',
|
|
308
|
+
}, 'user-input-required');
|
|
309
|
+
return;
|
|
310
|
+
}
|
|
311
|
+
const hasUserInput = runtime.capabilities.supportsUserInput || Boolean(runtime.harnessCapabilities?.eventStream.includes('user-input'));
|
|
312
|
+
addReason({
|
|
313
|
+
id: 'user-input-requirement',
|
|
314
|
+
status: hasUserInput ? 'satisfied' : 'missing',
|
|
315
|
+
summary: hasUserInput
|
|
316
|
+
? 'The runtime supports interactive user input.'
|
|
317
|
+
: 'The skill requires user input, but this runtime does not expose a user-input event route.',
|
|
318
|
+
}, hasUserInput ? undefined : 'user-input');
|
|
319
|
+
}
|
|
320
|
+
function evaluateScenarioSafety(requirements, scenario, addReason, addLimited) {
|
|
321
|
+
if (scenario === 'remote-control') {
|
|
322
|
+
if (requirements.remote === 'safe') {
|
|
323
|
+
addReason({
|
|
324
|
+
id: 'remote-safety',
|
|
325
|
+
status: 'satisfied',
|
|
326
|
+
summary: 'The skill declares remote control as safe.',
|
|
327
|
+
});
|
|
328
|
+
return;
|
|
329
|
+
}
|
|
330
|
+
if (requirements.remote === 'unsafe') {
|
|
331
|
+
addReason({
|
|
332
|
+
id: 'remote-safety',
|
|
333
|
+
status: 'missing',
|
|
334
|
+
summary: 'The skill declares remote control as unsafe.',
|
|
335
|
+
}, 'remote-unsafe');
|
|
336
|
+
return;
|
|
337
|
+
}
|
|
338
|
+
addLimited();
|
|
339
|
+
addReason({
|
|
340
|
+
id: 'remote-safety',
|
|
341
|
+
status: 'unknown',
|
|
342
|
+
summary: 'The skill has not declared whether remote control is safe.',
|
|
343
|
+
});
|
|
344
|
+
return;
|
|
345
|
+
}
|
|
346
|
+
if (scenario === 'unattended-automation') {
|
|
347
|
+
if (requirements.unattended === 'safe') {
|
|
348
|
+
addReason({
|
|
349
|
+
id: 'unattended-safety',
|
|
350
|
+
status: 'satisfied',
|
|
351
|
+
summary: 'The skill declares unattended automation as safe.',
|
|
352
|
+
});
|
|
353
|
+
return;
|
|
354
|
+
}
|
|
355
|
+
if (requirements.unattended === 'unsafe') {
|
|
356
|
+
addReason({
|
|
357
|
+
id: 'unattended-safety',
|
|
358
|
+
status: 'missing',
|
|
359
|
+
summary: 'The skill declares unattended automation as unsafe.',
|
|
360
|
+
}, 'unattended-unsafe');
|
|
361
|
+
return;
|
|
362
|
+
}
|
|
363
|
+
addLimited();
|
|
364
|
+
addReason({
|
|
365
|
+
id: 'unattended-safety',
|
|
366
|
+
status: 'unknown',
|
|
367
|
+
summary: 'The skill has not declared whether unattended automation is safe.',
|
|
368
|
+
});
|
|
369
|
+
return;
|
|
370
|
+
}
|
|
371
|
+
addReason({
|
|
372
|
+
id: 'scenario-safety',
|
|
373
|
+
status: 'not-applicable',
|
|
374
|
+
summary: `${scenario} does not require remote or unattended safety metadata.`,
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
function unique(values) {
|
|
378
|
+
return [...new Set(values)];
|
|
379
|
+
}
|
|
380
|
+
//# sourceMappingURL=skill-runtime-matcher.js.map
|