blob: b2bba95e6836133d766914f24ab36ca3154d4cb3 [file]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Generated from Rust runtime schemas. Run npm run schema:generate -w @maka-agent/plugin-sdk.
import { contracts } from './contracts.js';
import { configurations } from './configurations.js';
export const nativeImplementations = /* @__PURE__ */ ((): {
receiptReader: {
implementation: string;
configuration: { type: 'object'; properties: {}; required: []; additionalProperties: false };
exports: { Receipts: typeof contracts.receiptReader };
};
deploymentManager: {
implementation: string;
configuration: { type: 'object'; properties: {}; required: []; additionalProperties: false };
exports: { Management: typeof contracts.deploymentManager };
};
gateway: {
implementation: string;
configuration: { type: 'object'; properties: {}; required: []; additionalProperties: false };
exports: {};
};
agent: {
implementation: string;
configuration: typeof configurations.agent;
exports: { agent: typeof contracts.agent };
};
acpExecutor: {
implementation: string;
configuration: {
type: 'object';
additionalProperties: false;
properties: {
agent: { $ref: '#/$defs/AcpAgent' };
permissions: {
anyOf: [{ $ref: '#/$defs/Permissions' }, { type: 'null' }];
description: 'Requested launch access, still subject to installation limits and consent.';
};
};
required: ['agent'];
title: 'AcpExecutorConfiguration';
$schema: 'https://json-schema.org/draft/2020-12/schema';
$defs: {
AcpAgent: {
type: 'object';
additionalProperties: false;
properties: {
id: { type: 'string' };
displayName: { type: 'string' };
executable: { type: 'string' };
args: { type: 'array'; items: { type: 'string' }; default: [] };
env: {
type: 'object';
additionalProperties: { type: 'string' };
description: "Ordinary launch settings only. Credentials belong to the agent's login store.";
default: {};
};
};
required: ['id', 'displayName', 'executable'];
};
Permissions: {
type: 'object';
additionalProperties: false;
properties: {
filesystem: { type: 'array'; items: { $ref: '#/$defs/Rule' } };
network: { $ref: '#/$defs/Network' };
};
required: ['filesystem', 'network'];
};
Rule: {
type: 'object';
additionalProperties: false;
properties: {
path: { type: 'string' };
scope: { $ref: '#/$defs/Scope' };
access: { $ref: '#/$defs/Access' };
};
required: ['path', 'scope', 'access'];
description: 'Paths have executor-native meaning. Validate and materialize them on the\nexecution host, never on a remote Desktop. This document alone grants nothing.';
};
Scope: { type: 'string'; enum: ['subtree', 'exact'] };
Access: {
type: 'string';
enum: ['read', 'write', 'deny'];
description: 'Equal-path conflict priority is different from authority breadth: deny wins.';
};
Network: {
oneOf: [
{ type: 'string'; enum: ['denied', 'allowed'] },
{
type: 'object';
properties: {
restricted: {
type: 'object';
properties: {
destinations: {
type: 'array';
uniqueItems: true;
items: { $ref: '#/$defs/Destination' };
};
};
additionalProperties: false;
required: ['destinations'];
};
};
required: ['restricted'];
additionalProperties: false;
},
];
};
Destination: {
type: 'object';
additionalProperties: false;
properties: {
host: { type: 'string'; minLength: 1; maxLength: 253 };
port: { type: 'integer'; format: 'uint16'; minimum: 1; maximum: 65535 };
};
required: ['host', 'port'];
description: 'Destination authority, independent of the upstream proxy used to reach it.\nA domain grant does not authorize its subdomains or other ports.';
};
};
};
exports: { executor: typeof contracts.executor; setup: typeof contracts.executorSetup };
};
workspaceComputer: {
implementation: string;
configuration: typeof configurations.workspaceComputer;
exports: { computer: typeof contracts.workspaceComputer };
};
workspaceFiles: {
implementation: string;
configuration: { type: 'object'; properties: {}; required: []; additionalProperties: false };
exports: { files: typeof contracts.workspaceFiles };
};
workspaceProcesses: {
implementation: string;
configuration: typeof configurations.workspaceProcesses;
exports: {
processes: typeof contracts.workspaceProcesses;
terminal: typeof contracts.terminal;
};
};
protocolProcesses: {
implementation: string;
configuration: typeof configurations.workspaceProcesses;
exports: { protocol: typeof contracts.protocolProcesses };
};
workspaceWeb: {
implementation: string;
configuration: typeof configurations.workspaceWeb;
exports: { web: typeof contracts.workspaceWeb };
};
workspaceDecisionsApi: {
implementation: string;
configuration: typeof configurations.workspaceDecisionsApi;
exports: { decisions_api: typeof contracts.workspaceDecisionsApi };
};
skillLibrary: {
implementation: string;
configuration: typeof configurations.skillLibrary;
exports: { skills: typeof contracts.skillLibrary };
};
questions: {
implementation: string;
configuration: { type: 'object'; properties: {}; required: []; additionalProperties: false };
exports: { questions: typeof contracts.questions };
};
forms: {
implementation: string;
configuration: { type: 'object'; properties: {}; required: []; additionalProperties: false };
exports: { forms: typeof contracts.forms };
};
settings: {
implementation: string;
configuration: {
$schema: 'https://json-schema.org/draft/2020-12/schema';
title: 'Configuration';
type: 'object';
properties: {
locale: { type: 'string'; default: '' };
workspaceLocations: {
anyOf: [{ $ref: '#/$defs/Configuration' }, { type: 'null' }];
default: null;
};
};
additionalProperties: false;
$defs: {
Configuration: {
type: 'object';
properties: {
agent: { type: 'string' };
skills: { type: ['string', 'null'] };
processes: { type: ['string', 'null'] };
};
additionalProperties: false;
required: ['agent'];
};
};
};
exports: { Settings: typeof contracts.settings };
};
settingsAuthentication: {
implementation: string;
configuration: {
$schema: 'https://json-schema.org/draft/2020-12/schema';
title: 'Configuration';
type: 'object';
properties: {
locale: { type: 'string'; default: '' };
workspaceLocations: {
anyOf: [{ $ref: '#/$defs/Configuration' }, { type: 'null' }];
default: null;
};
};
additionalProperties: false;
$defs: {
Configuration: {
type: 'object';
properties: {
agent: { type: 'string' };
skills: { type: ['string', 'null'] };
processes: { type: ['string', 'null'] };
};
additionalProperties: false;
required: ['agent'];
};
};
};
exports: { Authentication: typeof contracts.settingsAuthentication };
};
hostLogs: {
implementation: string;
configuration: { type: 'object'; properties: {}; required: []; additionalProperties: false };
exports: { HostLogs: typeof contracts.hostLogs };
};
settingsSetup: {
implementation: string;
configuration: {
$schema: 'https://json-schema.org/draft/2020-12/schema';
title: 'Configuration';
type: 'object';
properties: {
locale: { type: 'string'; default: '' };
workspaceLocations: {
anyOf: [{ $ref: '#/$defs/Configuration' }, { type: 'null' }];
default: null;
};
};
additionalProperties: false;
$defs: {
Configuration: {
type: 'object';
properties: {
agent: { type: 'string' };
skills: { type: ['string', 'null'] };
processes: { type: ['string', 'null'] };
};
additionalProperties: false;
required: ['agent'];
};
};
};
exports: { Setup: typeof contracts.settingsSetup };
};
} => ({
receiptReader: {
implementation: 'maka.operations.receipts',
configuration: { type: 'object', properties: {}, required: [], additionalProperties: false },
exports: { Receipts: contracts.receiptReader },
},
deploymentManager: {
implementation: 'maka.application.management',
configuration: { type: 'object', properties: {}, required: [], additionalProperties: false },
exports: { Management: contracts.deploymentManager },
},
gateway: {
implementation: 'maka.application.gateway',
configuration: { type: 'object', properties: {}, required: [], additionalProperties: false },
exports: {},
},
agent: {
implementation: 'maka.agent.api',
configuration: configurations.agent,
exports: { agent: contracts.agent },
},
acpExecutor: {
implementation: 'maka.agent.acp',
configuration: {
type: 'object',
additionalProperties: false,
properties: {
agent: { $ref: '#/$defs/AcpAgent' },
permissions: {
anyOf: [{ $ref: '#/$defs/Permissions' }, { type: 'null' }],
description: 'Requested launch access, still subject to installation limits and consent.',
},
},
required: ['agent'],
title: 'AcpExecutorConfiguration',
$schema: 'https://json-schema.org/draft/2020-12/schema',
$defs: {
AcpAgent: {
type: 'object',
additionalProperties: false,
properties: {
id: { type: 'string' },
displayName: { type: 'string' },
executable: { type: 'string' },
args: { type: 'array', items: { type: 'string' }, default: [] },
env: {
type: 'object',
additionalProperties: { type: 'string' },
description:
"Ordinary launch settings only. Credentials belong to the agent's login store.",
default: {},
},
},
required: ['id', 'displayName', 'executable'],
},
Permissions: {
type: 'object',
additionalProperties: false,
properties: {
filesystem: { type: 'array', items: { $ref: '#/$defs/Rule' } },
network: { $ref: '#/$defs/Network' },
},
required: ['filesystem', 'network'],
},
Rule: {
type: 'object',
additionalProperties: false,
properties: {
path: { type: 'string' },
scope: { $ref: '#/$defs/Scope' },
access: { $ref: '#/$defs/Access' },
},
required: ['path', 'scope', 'access'],
description:
'Paths have executor-native meaning. Validate and materialize them on the\nexecution host, never on a remote Desktop. This document alone grants nothing.',
},
Scope: { type: 'string', enum: ['subtree', 'exact'] },
Access: {
type: 'string',
enum: ['read', 'write', 'deny'],
description:
'Equal-path conflict priority is different from authority breadth: deny wins.',
},
Network: {
oneOf: [
{ type: 'string', enum: ['denied', 'allowed'] },
{
type: 'object',
properties: {
restricted: {
type: 'object',
properties: {
destinations: {
type: 'array',
uniqueItems: true,
items: { $ref: '#/$defs/Destination' },
},
},
additionalProperties: false,
required: ['destinations'],
},
},
required: ['restricted'],
additionalProperties: false,
},
],
},
Destination: {
type: 'object',
additionalProperties: false,
properties: {
host: { type: 'string', minLength: 1, maxLength: 253 },
port: { type: 'integer', format: 'uint16', minimum: 1, maximum: 65535 },
},
required: ['host', 'port'],
description:
'Destination authority, independent of the upstream proxy used to reach it.\nA domain grant does not authorize its subdomains or other ports.',
},
},
},
exports: { executor: contracts.executor, setup: contracts.executorSetup },
},
workspaceComputer: {
implementation: 'maka.workspace.computer',
configuration: configurations.workspaceComputer,
exports: { computer: contracts.workspaceComputer },
},
workspaceFiles: {
implementation: 'maka.workspace.files',
configuration: { type: 'object', properties: {}, required: [], additionalProperties: false },
exports: { files: contracts.workspaceFiles },
},
workspaceProcesses: {
implementation: 'maka.workspace.processes',
configuration: configurations.workspaceProcesses,
exports: { processes: contracts.workspaceProcesses, terminal: contracts.terminal },
},
protocolProcesses: {
implementation: 'maka.workspace.protocol-processes',
configuration: configurations.workspaceProcesses,
exports: { protocol: contracts.protocolProcesses },
},
workspaceWeb: {
implementation: 'maka.workspace.web',
configuration: configurations.workspaceWeb,
exports: { web: contracts.workspaceWeb },
},
workspaceDecisionsApi: {
implementation: 'maka.workspace.decisions_api',
configuration: configurations.workspaceDecisionsApi,
exports: { decisions_api: contracts.workspaceDecisionsApi },
},
skillLibrary: {
implementation: 'maka.skills.library',
configuration: configurations.skillLibrary,
exports: { skills: contracts.skillLibrary },
},
questions: {
implementation: 'maka.interactions.questions',
configuration: { type: 'object', properties: {}, required: [], additionalProperties: false },
exports: { questions: contracts.questions },
},
forms: {
implementation: 'maka.interactions.forms',
configuration: { type: 'object', properties: {}, required: [], additionalProperties: false },
exports: { forms: contracts.forms },
},
settings: {
implementation: 'maka.settings',
configuration: {
$schema: 'https://json-schema.org/draft/2020-12/schema',
title: 'Configuration',
type: 'object',
properties: {
locale: { type: 'string', default: '' },
workspaceLocations: {
anyOf: [{ $ref: '#/$defs/Configuration' }, { type: 'null' }],
default: null,
},
},
additionalProperties: false,
$defs: {
Configuration: {
type: 'object',
properties: {
agent: { type: 'string' },
skills: { type: ['string', 'null'] },
processes: { type: ['string', 'null'] },
},
additionalProperties: false,
required: ['agent'],
},
},
},
exports: { Settings: contracts.settings },
},
settingsAuthentication: {
implementation: 'maka.settings.authentication',
configuration: {
$schema: 'https://json-schema.org/draft/2020-12/schema',
title: 'Configuration',
type: 'object',
properties: {
locale: { type: 'string', default: '' },
workspaceLocations: {
anyOf: [{ $ref: '#/$defs/Configuration' }, { type: 'null' }],
default: null,
},
},
additionalProperties: false,
$defs: {
Configuration: {
type: 'object',
properties: {
agent: { type: 'string' },
skills: { type: ['string', 'null'] },
processes: { type: ['string', 'null'] },
},
additionalProperties: false,
required: ['agent'],
},
},
},
exports: { Authentication: contracts.settingsAuthentication },
},
hostLogs: {
implementation: 'maka.host.logs',
configuration: { type: 'object', properties: {}, required: [], additionalProperties: false },
exports: { HostLogs: contracts.hostLogs },
},
settingsSetup: {
implementation: 'maka.settings.setup',
configuration: {
$schema: 'https://json-schema.org/draft/2020-12/schema',
title: 'Configuration',
type: 'object',
properties: {
locale: { type: 'string', default: '' },
workspaceLocations: {
anyOf: [{ $ref: '#/$defs/Configuration' }, { type: 'null' }],
default: null,
},
},
additionalProperties: false,
$defs: {
Configuration: {
type: 'object',
properties: {
agent: { type: 'string' },
skills: { type: ['string', 'null'] },
processes: { type: ['string', 'null'] },
},
additionalProperties: false,
required: ['agent'],
},
},
},
exports: { Setup: contracts.settingsSetup },
},
}))();