maka-agent 0.2.0-dev.46.20260922 → 0.2.0-dev.48.20260923
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/DISCLAIMER-WIP +6 -1
- package/README.md +6 -1
- package/dist/acp/maka-acp-agent.js +1 -1
- package/dist/acp/session-mcp.js +212 -0
- package/dist/acp/session-registry.js +52 -8
- package/dist/acp/stdio-server.js +3 -0
- package/dist/cli-core.js +1 -1
- package/dist/mcp-capability-provider.js +6 -1
- package/dist/mcp-capability-publication.js +139 -0
- package/dist/pi-tui-layout.js +46 -17
- package/dist/pi-tui-pickers.js +25 -14
- package/dist/pi-tui-runner.js +24 -15
- package/dist/runtime-host-capability-provider-command.js +25 -6
- package/dist/runtime-host-service-manager.js +26 -2
- package/dist/tui-context-refresh.js +15 -26
- package/dist/tui-mcp-control.js +66 -112
- package/native/runtime-host-windows-task-launcher/prebuilds/win32-x64/maka-runtime-host-task-launcher.exe +0 -0
- package/node_modules/@maka/acp-executor-plugin/dist/acp-errors.js +26 -0
- package/node_modules/@maka/acp-executor-plugin/dist/acp-filesystem.js +103 -0
- package/node_modules/@maka/acp-executor-plugin/dist/acp-process.js +119 -0
- package/node_modules/@maka/acp-executor-plugin/dist/acp-projection.js +146 -0
- package/node_modules/@maka/acp-executor-plugin/dist/index.js +653 -0
- package/node_modules/@maka/acp-executor-plugin/dist/plugin.mjs +24446 -0
- package/node_modules/@maka/acp-executor-plugin/package.json +15 -0
- package/node_modules/@maka/antigravity-acp-plugin/dist/index.js +88 -0
- package/node_modules/@maka/antigravity-acp-plugin/dist/model-presentation.js +53 -0
- package/node_modules/@maka/antigravity-acp-plugin/dist/plugin.mjs +115 -0
- package/node_modules/@maka/antigravity-acp-plugin/package.json +15 -0
- package/node_modules/@maka/core/dist/client-capability-grant.js +2 -2
- package/node_modules/@maka/core/dist/executor-catalog.js +106 -0
- package/node_modules/@maka/core/dist/mcp.js +4 -1
- package/node_modules/@maka/core/dist/model-metadata.js +28 -1
- package/node_modules/@maka/core/dist/model-thinking.js +36 -1
- package/node_modules/@maka/core/dist/provider-registry.js +0 -1
- package/node_modules/@maka/core/dist/refresh-read-coordinator.js +62 -0
- package/node_modules/@maka/core/dist/runtime-event-store.js +25 -0
- package/node_modules/@maka/core/dist/runtime-invocation.js +5 -0
- package/node_modules/@maka/core/dist/runtime-policy/connection-catalog-codec.js +4 -0
- package/node_modules/@maka/core/dist/runtime-policy/credential-vault-codec.js +6 -0
- package/node_modules/@maka/core/dist/runtime-policy/policy-codec.js +21 -0
- package/node_modules/@maka/core/dist/session.js +19 -1
- package/node_modules/@maka/core/dist/settings.js +3 -0
- package/node_modules/@maka/core/dist/tool-ledger-scanner.js +365 -104
- package/node_modules/@maka/core/dist/turn-origin.js +14 -0
- package/node_modules/@maka/core/package.json +3 -0
- package/node_modules/@maka/mcp/dist/credential-coordinator.js +6 -1
- package/node_modules/@maka/mcp/dist/index.js +31 -5
- package/node_modules/@maka/mcp/dist/oauth.js +54 -6
- package/node_modules/@maka/runtime/dist/agent-run-inspect.js +1 -1
- package/node_modules/@maka/runtime/dist/ai-sdk-message-projection.js +15 -60
- package/node_modules/@maka/runtime/dist/ai-sdk-turn.js +18 -0
- package/node_modules/@maka/runtime/dist/apply-patch-profile.js +64 -14
- package/node_modules/@maka/runtime/dist/builtin-tools.js +3 -2
- package/node_modules/@maka/runtime/dist/codex-v4a-patch.js +18 -0
- package/node_modules/@maka/runtime/dist/conversation-copy.js +56 -1
- package/node_modules/@maka/runtime/dist/mcp-tools.js +9 -2
- package/node_modules/@maka/runtime/dist/model-adapter.js +80 -3
- package/node_modules/@maka/runtime/dist/model-runtime.js +6 -0
- package/node_modules/@maka/runtime/dist/openai-apply-patch.js +5 -0
- package/node_modules/@maka/runtime/dist/plugin-executor-backend.js +122 -3
- package/node_modules/@maka/runtime/dist/plugin-executor-service.js +212 -16
- package/node_modules/@maka/runtime/dist/runtime-ledger-repair.js +2 -2
- package/node_modules/@maka/runtime/dist/session-event-runtime-mapper.js +3 -0
- package/node_modules/@maka/runtime/dist/session-manager.js +184 -126
- package/node_modules/@maka/runtime/dist/shell-run-manager.js +3 -0
- package/node_modules/@maka/runtime/dist/stream-graph-coordinator.js +29 -4
- package/node_modules/@maka/runtime-host/dist/candidate-entry.js +8 -5
- package/node_modules/@maka/runtime-host/dist/client/capability-provider-service.js +2 -0
- package/node_modules/@maka/runtime-host/dist/client/client-capability-channel.js +59 -20
- package/node_modules/@maka/runtime-host/dist/client/connection.js +6 -4
- package/node_modules/@maka/runtime-host/dist/client/index.js +1 -1
- package/node_modules/@maka/runtime-host/dist/client/reconnect-lifecycle.js +8 -1
- package/node_modules/@maka/runtime-host/dist/client/reconnecting-connection.js +4 -4
- package/node_modules/@maka/runtime-host/dist/client/session-catalog-summary.js +6 -1
- package/node_modules/@maka/runtime-host/dist/composition-identity.js +19 -0
- package/node_modules/@maka/runtime-host/dist/protocol/client-capability.js +20 -3
- package/node_modules/@maka/runtime-host/dist/protocol/external-session.js +8 -5
- package/node_modules/@maka/runtime-host/dist/protocol/index.js +20 -2
- package/node_modules/@maka/runtime-host/dist/protocol/plugin-platform.js +34 -0
- package/node_modules/@maka/runtime-host/dist/protocol/session-catalog.js +75 -5
- package/node_modules/@maka/runtime-host/dist/protocol/workhub-coordination.js +1 -5
- package/node_modules/@maka/runtime-host/dist/server/builtin-external-agent-plugins.js +188 -0
- package/node_modules/@maka/runtime-host/dist/server/candidate.js +12 -7
- package/node_modules/@maka/runtime-host/dist/server/client-capability-coordinator.js +234 -70
- package/node_modules/@maka/runtime-host/dist/server/client-capability-invocation-broker.js +14 -8
- package/node_modules/@maka/runtime-host/dist/server/client-capability-recovery.js +44 -46
- package/node_modules/@maka/runtime-host/dist/server/context-coordinator.js +2 -0
- package/node_modules/@maka/runtime-host/dist/server/execution-composition-factory.js +1 -1
- package/node_modules/@maka/runtime-host/dist/server/execution-composition.js +188 -21
- package/node_modules/@maka/runtime-host/dist/server/execution-model-authority.js +6 -0
- package/node_modules/@maka/runtime-host/dist/server/extension-bundle.js +4 -0
- package/node_modules/@maka/runtime-host/dist/server/external-session-coordinator.js +29 -7
- package/node_modules/@maka/runtime-host/dist/server/host-composition-source.js +47 -0
- package/node_modules/@maka/runtime-host/dist/server/host-composition.js +1 -29
- package/node_modules/@maka/runtime-host/dist/server/host-kernel.js +2 -9
- package/node_modules/@maka/runtime-host/dist/server/hosted-execution-recovery.js +75 -9
- package/node_modules/@maka/runtime-host/dist/server/hosted-execution-tool-profile.js +5 -1
- package/node_modules/@maka/runtime-host/dist/server/interaction-coordinator.js +45 -0
- package/node_modules/@maka/runtime-host/dist/server/jev-routing-model.js +157 -0
- package/node_modules/@maka/runtime-host/dist/server/listener-set.js +2 -2
- package/node_modules/@maka/runtime-host/dist/server/message-coordinator.js +4 -0
- package/node_modules/@maka/runtime-host/dist/server/plugin-platform-coordinator.js +11 -1
- package/node_modules/@maka/runtime-host/dist/server/process-lifecycle.js +1 -1
- package/node_modules/@maka/runtime-host/dist/server/process-termination-error.js +27 -0
- package/node_modules/@maka/runtime-host/dist/server/root-turn-coordinator.js +91 -12
- package/node_modules/@maka/runtime-host/dist/server/runtime-policy-coordinator.js +2 -0
- package/node_modules/@maka/runtime-host/dist/server/session-bundle-coordinator.js +4 -1
- package/node_modules/@maka/runtime-host/dist/server/session-catalog-coordinator.js +128 -13
- package/node_modules/@maka/runtime-host/dist/server/session-effect-coordinator.js +12 -6
- package/node_modules/@maka/runtime-host/dist/server/session-retirement-coordinator.js +2 -2
- package/node_modules/@maka/runtime-host/dist/server/session-transcript-reader.js +33 -0
- package/node_modules/@maka/runtime-host/dist/server/workhub-coordination-coordinator.js +4 -0
- package/node_modules/@maka/runtime-host/dist/server/workhub-result-coordinator.js +173 -0
- package/node_modules/@maka/runtime-host/dist/server/workhub-result-runtime.js +293 -0
- package/node_modules/@maka/runtime-host/package.json +2 -0
- package/node_modules/@maka/storage/dist/agent-run-store-contract.js +8 -0
- package/node_modules/@maka/storage/dist/execution-stores.js +15 -3
- package/node_modules/@maka/storage/dist/mcp-config-store.js +91 -2
- package/node_modules/@maka/storage/dist/operational-state-store.js +15 -1
- package/node_modules/@maka/storage/dist/plan-authority.js +2 -0
- package/node_modules/@maka/storage/dist/plan-store.js +30 -0
- package/node_modules/@maka/storage/dist/runtime-event-persistence.js +1 -0
- package/node_modules/@maka/storage/dist/runtime-policy/credential-vault-document.js +4 -1
- package/node_modules/@maka/storage/dist/runtime-policy/policy-document.js +2 -0
- package/node_modules/@maka/storage/dist/session-store-values.js +16 -4
- package/node_modules/@maka/storage/dist/shell-run-authority.js +1 -0
- package/node_modules/@maka/storage/dist/shell-run-store.js +15 -0
- package/node_modules/@maka/storage/dist/sqlite-runtime-schema.js +74 -1
- package/node_modules/@maka/storage/dist/sqlite-runtime-store.js +724 -84
- package/node_modules/@maka/storage/dist/sqlite-session-metadata-store.js +16 -0
- package/package.json +1 -1
|
@@ -170,6 +170,7 @@ export function decodeModelOverridesTable(value) {
|
|
|
170
170
|
'thinkingLevels',
|
|
171
171
|
'defaultThinkingLevel',
|
|
172
172
|
'vision',
|
|
173
|
+
'applyPatch',
|
|
173
174
|
'contextWindow',
|
|
174
175
|
'serviceTier',
|
|
175
176
|
'compactionThreshold',
|
|
@@ -210,6 +211,9 @@ export function decodeModelOverridesTable(value) {
|
|
|
210
211
|
if (entry.vision !== undefined) {
|
|
211
212
|
declared.vision = booleanValue(entry.vision, `declared vision for ${modelId}`);
|
|
212
213
|
}
|
|
214
|
+
if (entry.applyPatch !== undefined) {
|
|
215
|
+
declared.applyPatch = booleanValue(entry.applyPatch, `declared ApplyPatch for ${modelId}`);
|
|
216
|
+
}
|
|
213
217
|
for (const field of [
|
|
214
218
|
'contextWindow',
|
|
215
219
|
'compactionThreshold',
|
|
@@ -22,6 +22,12 @@ import { parseRequestHeaders, RequestCustomizationValidationError, serializeRequ
|
|
|
22
22
|
import { domainError, entityIdValue, exactRecord, integerValue, positiveRevisionValue, } from './domain-codec.js';
|
|
23
23
|
export function decodeCredentialLocator(value) {
|
|
24
24
|
const base = exactRecord(value, 'credential locator', ['scope', 'connectionId', 'provider', 'kind'], ['scope', 'kind']);
|
|
25
|
+
if (base.scope === 'jev') {
|
|
26
|
+
const item = exactRecord(value, 'Jev credential locator', ['scope', 'kind']);
|
|
27
|
+
if (item.kind !== 'api_key')
|
|
28
|
+
throw domainError('Jev credential kind is invalid');
|
|
29
|
+
return { scope: 'jev', kind: 'api_key' };
|
|
30
|
+
}
|
|
25
31
|
if (base.scope === 'connection') {
|
|
26
32
|
const item = exactRecord(value, 'connection credential locator', [
|
|
27
33
|
'scope',
|
|
@@ -137,6 +137,18 @@ function normalizeRuntimePolicy(value) {
|
|
|
137
137
|
'subagents',
|
|
138
138
|
'shell',
|
|
139
139
|
'externalAgents',
|
|
140
|
+
'jev',
|
|
141
|
+
], [
|
|
142
|
+
'networkProxy',
|
|
143
|
+
'personalization',
|
|
144
|
+
'memory',
|
|
145
|
+
'workspaceInstructions',
|
|
146
|
+
'privacy',
|
|
147
|
+
'chatDefaults',
|
|
148
|
+
'webSearch',
|
|
149
|
+
'subagents',
|
|
150
|
+
'shell',
|
|
151
|
+
'externalAgents',
|
|
140
152
|
]);
|
|
141
153
|
return normalizeRuntimePolicyFields(policy, normalizeSubagentSettings(policy.subagents), normalizeShell(policy.shell), normalizeExternalAgents(policy.externalAgents));
|
|
142
154
|
}
|
|
@@ -152,6 +164,7 @@ function normalizeRuntimePolicyFields(policy, subagents, shell, externalAgents =
|
|
|
152
164
|
subagents,
|
|
153
165
|
shell,
|
|
154
166
|
externalAgents,
|
|
167
|
+
...(policy.jev === undefined ? {} : { jev: normalizeJev(policy.jev) }),
|
|
155
168
|
};
|
|
156
169
|
}
|
|
157
170
|
function withoutShell(policy) {
|
|
@@ -160,6 +173,8 @@ function withoutShell(policy) {
|
|
|
160
173
|
}
|
|
161
174
|
function normalizeMutationOperation(operation) {
|
|
162
175
|
switch (operation.kind) {
|
|
176
|
+
case 'set_jev':
|
|
177
|
+
return { kind: operation.kind, value: normalizeJev(operation.value) };
|
|
163
178
|
case 'set_network_proxy':
|
|
164
179
|
return { kind: operation.kind, value: normalizeNetworkProxy(operation.value) };
|
|
165
180
|
case 'set_personalization':
|
|
@@ -374,3 +389,9 @@ function normalizeExternalAgents(value) {
|
|
|
374
389
|
}
|
|
375
390
|
return { antigravity: { executable } };
|
|
376
391
|
}
|
|
392
|
+
function normalizeJev(value) {
|
|
393
|
+
const item = exactRecord(value, 'Jev settings', ['enabled']);
|
|
394
|
+
if (typeof item.enabled !== 'boolean')
|
|
395
|
+
throw domainError('Jev enabled must be boolean');
|
|
396
|
+
return { enabled: item.enabled };
|
|
397
|
+
}
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
*/
|
|
19
19
|
import { isWorkHubActionReceipt } from './workhub-action-result.js';
|
|
20
20
|
import { isExecutorId } from './executor-id.js';
|
|
21
|
+
import { isThinkingLevel } from './model-thinking.js';
|
|
21
22
|
import { MODEL_FAILURE_MESSAGE_MAX_BYTES, isModelRetryDecision, } from './model-failure.js';
|
|
22
23
|
import { decodeMessageContent, TOOL_ACTIVITY_KINDS, } from './events.js';
|
|
23
24
|
import { isPermissionMode, isToolCategory, } from './permission.js';
|
|
@@ -304,16 +305,31 @@ export function isConversationTextMessage(message) {
|
|
|
304
305
|
export const WORKHUB_COORDINATION_RECORD_SCHEMA_VERSION = 1;
|
|
305
306
|
export const WORKHUB_COORDINATION_REPLACEMENT_SCHEMA_VERSION = 2;
|
|
306
307
|
export const WORKHUB_COORDINATION_STOP_SCHEMA_VERSION = 3;
|
|
308
|
+
/** UTF-8 wire limit shared by persisted and protocol Session model identifiers. */
|
|
309
|
+
export const SESSION_MODEL_ID_MAX_BYTES = 512;
|
|
307
310
|
export function isWorkHubCreateDefaults(value) {
|
|
308
311
|
if (!isRecord(value) ||
|
|
309
|
-
Object.keys(value).some((key) => key !== 'executorId' &&
|
|
312
|
+
Object.keys(value).some((key) => key !== 'executorId' &&
|
|
313
|
+
key !== 'executorModel' &&
|
|
314
|
+
key !== 'model' &&
|
|
315
|
+
key !== 'thinkingLevel' &&
|
|
316
|
+
key !== 'permissionMode'))
|
|
310
317
|
return false;
|
|
311
318
|
if (value.permissionMode !== undefined && !isPermissionMode(value.permissionMode))
|
|
312
319
|
return false;
|
|
313
320
|
if (value.executorId !== undefined && !isExecutorId(value.executorId))
|
|
314
321
|
return false;
|
|
322
|
+
if (value.executorModel !== undefined &&
|
|
323
|
+
(typeof value.executorModel !== 'string' ||
|
|
324
|
+
value.executorModel.trim().length === 0 ||
|
|
325
|
+
new TextEncoder().encode(value.executorModel).byteLength > SESSION_MODEL_ID_MAX_BYTES))
|
|
326
|
+
return false;
|
|
327
|
+
if (value.executorModel !== undefined && value.executorId === undefined)
|
|
328
|
+
return false;
|
|
315
329
|
if (value.executorId !== undefined && value.model !== undefined)
|
|
316
330
|
return false;
|
|
331
|
+
if (value.thinkingLevel !== undefined && !isThinkingLevel(value.thinkingLevel))
|
|
332
|
+
return false;
|
|
317
333
|
if (value.model === undefined)
|
|
318
334
|
return true;
|
|
319
335
|
const model = value.model;
|
|
@@ -447,6 +463,7 @@ const WORKHUB_DELEGATION_ASSIGNED_MESSAGE_SHAPE = defineObjectShape()([
|
|
|
447
463
|
], [
|
|
448
464
|
'attachments',
|
|
449
465
|
'targetAttachments',
|
|
466
|
+
'returnResults',
|
|
450
467
|
'create',
|
|
451
468
|
'steered',
|
|
452
469
|
'replacesActionId',
|
|
@@ -780,6 +797,7 @@ function isWorkHubCoordinationMessage(message) {
|
|
|
780
797
|
typeof message.targetMessageId === 'string' &&
|
|
781
798
|
typeof message.targetSessionName === 'string' &&
|
|
782
799
|
message.targetSessionName.trim().length > 0 &&
|
|
800
|
+
(message.returnResults === undefined || message.returnResults === true) &&
|
|
783
801
|
(message.steered === undefined || message.steered === true) &&
|
|
784
802
|
((message.schemaVersion === WORKHUB_COORDINATION_RECORD_SCHEMA_VERSION &&
|
|
785
803
|
message.replacesActionId === undefined &&
|
|
@@ -340,6 +340,7 @@ export function createDefaultSettings() {
|
|
|
340
340
|
activeTab: 'requests',
|
|
341
341
|
},
|
|
342
342
|
appearance: {
|
|
343
|
+
workbarTogglePosition: 'edge',
|
|
343
344
|
theme: 'auto',
|
|
344
345
|
palette: 'default',
|
|
345
346
|
appIcon: DEFAULT_APP_ICON,
|
|
@@ -362,6 +363,7 @@ export function createDefaultSettings() {
|
|
|
362
363
|
},
|
|
363
364
|
privacy: defaultPrivacySettings(),
|
|
364
365
|
projects: defaultProjectPreferencesSettings(),
|
|
366
|
+
jev: { enabled: false, apiKey: '' },
|
|
365
367
|
chatDefaults: defaultChatDefaultsSettings(),
|
|
366
368
|
notifications: {
|
|
367
369
|
runComplete: true,
|
|
@@ -515,6 +517,7 @@ export function normalizeSettings(input) {
|
|
|
515
517
|
// position; UI density is no longer a product setting.
|
|
516
518
|
appearance: {
|
|
517
519
|
...appearanceWithoutLegacyFields,
|
|
520
|
+
workbarTogglePosition: base.appearance.workbarTogglePosition === 'titlebar' ? 'titlebar' : 'edge',
|
|
518
521
|
palette: isThemePalette(base.appearance.palette) ? base.appearance.palette : 'default',
|
|
519
522
|
// Same fail-closed rule as `palette` above, for the same reason: an
|
|
520
523
|
// unknown id would otherwise reach the main process and resolve to a
|