apt-mcp-agent-setup 3.5.37 → 3.5.65
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/README.md +123 -123
- package/bin/cli.js +1 -1
- package/build-input.json +156 -93
- package/bundle/NOTICES.md +0 -0
- package/bundle/core.enc +0 -0
- package/bundle/mcp-rules.enc +0 -0
- package/bundle/skills-aso.enc +0 -0
- package/bundle/skills-ba.enc +0 -0
- package/bundle/skills-base.enc +0 -0
- package/bundle/skills-be.enc +0 -0
- package/bundle/skills-design.enc +0 -0
- package/bundle/skills-fe.enc +0 -0
- package/bundle/skills-marketing.enc +0 -0
- package/bundle/skills-mobile.enc +0 -0
- package/bundle/skills-pm.enc +0 -0
- package/integrity-manifest.json +175 -170
- package/package.json +1 -1
- package/src/backends/browser-tools.js +1 -1
- package/src/backends/index-cache-authority.js +1 -1
- package/src/backends/index-command.js +1 -1
- package/src/backends/index-maintenance.js +1 -1
- package/src/backends/index-store.js +1 -1
- package/src/backends/linked-worktrees.js +1 -0
- package/src/backends/profiles.js +1 -1
- package/src/backends/review_graph.py +26 -4
- package/src/backends/source-discovery.js +1 -1
- package/src/core/admission-fence.js +1 -1
- package/src/core/aso-import.js +1 -1
- package/src/core/backend-lease-recovery.js +1 -1
- package/src/core/boot-evidence.js +1 -1
- package/src/core/caller-context.js +1 -1
- package/src/core/catalog.js +1 -1
- package/src/core/claude-caller-authority.js +1 -1
- package/src/core/claude-invocation.js +1 -1
- package/src/core/claude-launch-recovery.js +1 -1
- package/src/core/claude-native.js +1 -1
- package/src/core/claude-plan.js +1 -1
- package/src/core/claude-transcript-scan.js +1 -1
- package/src/core/claude-worker-transcript.js +1 -1
- package/src/core/codex-host-metadata.js +1 -1
- package/src/core/codex-transcript-receipt.js +1 -1
- package/src/core/connection-inspector.js +1 -1
- package/src/core/content-hash-cache.js +1 -1
- package/src/core/context-metrics.js +1 -1
- package/src/core/doctor.js +1 -1
- package/src/core/draining-completion.js +1 -1
- package/src/core/execution.js +1 -1
- package/src/core/git-context.js +1 -1
- package/src/core/hook-bridge.js +1 -1
- package/src/core/hook-diagnostics.js +1 -1
- package/src/core/hook-lease.js +1 -1
- package/src/core/host-adapters.js +1 -1
- package/src/core/interrupted-boot-transport-proof.js +1 -1
- package/src/core/interrupted-natural-closure-proof.js +1 -1
- package/src/core/interrupted-operation-audit.js +1 -1
- package/src/core/interrupted-transport-proof.js +1 -1
- package/src/core/ipc-envelope.js +1 -1
- package/src/core/legacy-retirement-proof.js +1 -1
- package/src/core/memory-scope.js +1 -1
- package/src/core/memory-store.js +1 -1
- package/src/core/model-inventory.js +1 -1
- package/src/core/model-routing.js +1 -1
- package/src/core/native-dispatch.js +1 -1
- package/src/core/native-receipt.js +1 -1
- package/src/core/native-retirement.js +1 -1
- package/src/core/node-version.js +1 -1
- package/src/core/npm-cli.js +1 -1
- package/src/core/owned-command-child.js +1 -1
- package/src/core/owned-command.js +1 -1
- package/src/core/owned-lock.js +1 -1
- package/src/core/owned-process.js +1 -1
- package/src/core/pipeline-journal.js +1 -1
- package/src/core/presentations.js +1 -1
- package/src/core/quality-artifacts.js +1 -1
- package/src/core/quality.js +1 -1
- package/src/core/read-command.js +1 -1
- package/src/core/readonly-skill.js +1 -1
- package/src/core/recovery-archive.js +1 -1
- package/src/core/recovery-proof.js +1 -1
- package/src/core/resource-transaction.js +1 -1
- package/src/core/run-checkpoint.js +1 -1
- package/src/core/run-compatibility.js +1 -1
- package/src/core/run-owner.js +1 -0
- package/src/core/run-state-codec.js +1 -1
- package/src/core/runtime-authority.js +1 -1
- package/src/core/runtime-info.js +1 -1
- package/src/core/runtime-ownership.js +1 -1
- package/src/core/session.js +1 -1
- package/src/core/shared-checkout.js +1 -1
- package/src/core/skill-companions.js +1 -1
- package/src/core/skill-names.js +1 -1
- package/src/core/storage-retry.js +1 -1
- package/src/core/tool-contracts.js +1 -1
- package/src/core/update-control.js +1 -1
- package/src/core/upgrade-runs.js +1 -1
- package/src/core/upgrade-stop.js +1 -1
- package/src/core/windows-job.js +1 -1
- package/src/core/workflow-policy.js +1 -1
- package/src/core/workspace-generation.js +1 -1
- package/src/core/workspace-path.js +1 -1
- package/src/installer/bounded-command.js +1 -1
- package/src/installer/candidate-preflight.js +1 -1
- package/src/installer/claude-commands.js +1 -1
- package/src/installer/codex-hook-trust.js +1 -0
- package/src/installer/connection-activation.js +1 -1
- package/src/installer/connection-supervisor.js +1 -1
- package/src/installer/deployment-draft.js +1 -1
- package/src/installer/gateway-context.js +1 -1
- package/src/installer/gateway-migration.js +1 -1
- package/src/installer/gateway-runtime.js +1 -1
- package/src/installer/global-setup.js +1 -1
- package/src/installer/hook-context-client.js +1 -1
- package/src/installer/host-hooks.js +1 -1
- package/src/installer/index-interruption-recovery.js +1 -1
- package/src/installer/index-recovery.js +1 -1
- package/src/installer/install-intent.js +1 -1
- package/src/installer/interrupted-operation-recovery.js +1 -1
- package/src/installer/legacy-prepared-plan.js +1 -1
- package/src/installer/legacy-registration.js +1 -1
- package/src/installer/managed-config.js +1 -1
- package/src/installer/migration-scope.js +1 -1
- package/src/installer/platform-config.js +1 -1
- package/src/installer/prerequisites.js +1 -1
- package/src/installer/presentations.js +1 -1
- package/src/installer/project-outcome.js +1 -1
- package/src/installer/project-setup.js +1 -1
- package/src/installer/recovery-backup-retention.js +1 -1
- package/src/installer/registration-closure.js +1 -1
- package/src/installer/registration-plan.js +1 -1
- package/src/installer/registration-receipt.js +1 -1
- package/src/installer/registrations.js +1 -1
- package/src/installer/runtime-activation.js +1 -1
- package/src/installer/runtime-child.js +1 -1
- package/src/installer/runtime-cleanup.js +1 -1
- package/src/installer/runtime-lock.js +1 -1
- package/src/installer/runtime-store.js +1 -1
- package/src/installer/runtime-supervisor.js +1 -1
- package/src/installer/setup-wizard.js +1 -1
- package/src/installer/stale-run-release.js +1 -1
- package/src/installer/uninstall.js +1 -0
- package/src/installer/update-addons.js +1 -1
- package/src/installer/update-cleanup.js +1 -1
- package/src/installer/update-executor.js +1 -1
- package/src/installer/update-history.js +1 -1
- package/src/installer/update-registration.js +1 -1
- package/src/installer/update-report.js +1 -1
- package/src/installer/update-request.js +1 -1
- package/src/installer/update-scope.js +1 -1
- package/src/installer/workspace-registry.js +1 -1
- package/src/installer/workspace-transaction.js +1 -1
- package/src/installer/workspace-update.js +1 -1
- package/src/license/crypto.js +1 -1
- package/src/license/fingerprint.js +1 -1
- package/src/license/terms.js +1 -1
- package/src/license/verify.js +1 -1
- package/src/presets/index.js +1 -1
- package/src/proxy/backends.js +1 -1
- package/src/proxy/browser-sessions.js +1 -1
- package/src/proxy/core-tools.js +1 -1
- package/src/proxy/pipeline.js +1 -1
- package/src/proxy/public-catalog.js +1 -1
- package/src/proxy/router.config.js +1 -1
- package/src/proxy/router.js +1 -1
- package/src/proxy/run-summary.js +1 -1
- package/src/proxy/server-instructions.js +1 -0
- package/src/proxy/server.js +1 -1
- package/src/proxy/workspace-gateway.js +1 -1
- package/src/templates/AGENTS.md +1 -1
- package/src/templates/CLAUDE.md +1 -1
- package/src/templates/GEMINI.md +1 -1
- package/src/templates/apt-runtime.md +2 -2
- package/src/templates/copilot-instructions.md +1 -1
- package/src/templates/cursorrules.mdc +1 -1
- package/src/templates/mcp-tools.md +2 -2
- package/src/templates/windsurfrules.md +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0xa28fd7=_0x116e;function _0x116e(_0x3c7ae8,_0x196869){_0x3c7ae8=_0x3c7ae8-0x16a;const _0xd02111=_0xd021();let _0x116e90=_0xd02111[_0x3c7ae8];if(_0x116e['PGJKIa']===undefined){var _0x230747=function(_0x4a5d98){const _0x55ddea='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x305e7a='',_0x2a985d='';for(let _0x3930a4=0x0,_0x5470ac,_0xe6bb7a,_0xa0ff92=0x0;_0xe6bb7a=_0x4a5d98['charAt'](_0xa0ff92++);~_0xe6bb7a&&(_0x5470ac=_0x3930a4%0x4?_0x5470ac*0x40+_0xe6bb7a:_0xe6bb7a,_0x3930a4++%0x4)?_0x305e7a+=String['fromCharCode'](0xff&_0x5470ac>>(-0x2*_0x3930a4&0x6)):0x0){_0xe6bb7a=_0x55ddea['indexOf'](_0xe6bb7a);}for(let _0x53f6da=0x0,_0x2ca61c=_0x305e7a['length'];_0x53f6da<_0x2ca61c;_0x53f6da++){_0x2a985d+='%'+('00'+_0x305e7a['charCodeAt'](_0x53f6da)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2a985d);};_0x116e['svYFlI']=_0x230747,_0x116e['XefkoK']={},_0x116e['PGJKIa']=!![];}const _0x54cd25=_0xd02111[0x0],_0x214f8a=_0x3c7ae8+_0x54cd25,_0x4d7253=_0x116e['XefkoK'][_0x214f8a];return!_0x4d7253?(_0x116e90=_0x116e['svYFlI'](_0x116e90),_0x116e['XefkoK'][_0x214f8a]=_0x116e90):_0x116e90=_0x4d7253,_0x116e90;}(function(_0x2852c5,_0x10a704){const _0x261bd0=_0x116e,_0x23b184=_0x2852c5();while(!![]){try{const _0x2dc314=-parseInt(_0x261bd0(0x1ce))/0x1*(-parseInt(_0x261bd0(0x1eb))/0x2)+parseInt(_0x261bd0(0x1c3))/0x3*(parseInt(_0x261bd0(0x16f))/0x4)+parseInt(_0x261bd0(0x1a9))/0x5*(parseInt(_0x261bd0(0x1b3))/0x6)+parseInt(_0x261bd0(0x1bd))/0x7*(-parseInt(_0x261bd0(0x1f2))/0x8)+-parseInt(_0x261bd0(0x1d1))/0x9*(-parseInt(_0x261bd0(0x1af))/0xa)+parseInt(_0x261bd0(0x188))/0xb+-parseInt(_0x261bd0(0x19f))/0xc;if(_0x2dc314===_0x10a704)break;else _0x23b184['push'](_0x23b184['shift']());}catch(_0x1b05c4){_0x23b184['push'](_0x23b184['shift']());}}}(_0xd021,0x27e97));const crypto=require(_0xa28fd7(0x17d)),{WorkspaceRegistry}=require(_0xa28fd7(0x171)),{gatewayCatalog}=require('./public-catalog'),{sameWorkspace}=require(_0xa28fd7(0x16c)),contracts=require('../core/tool-contracts'),fail=(_0x265593,_0x32d5f4=_0x265593)=>{const _0x11dd9d=_0xa28fd7,_0x2b4056={};_0x2b4056[_0x11dd9d(0x174)]=_0x265593;throw Object[_0x11dd9d(0x1c7)](new Error(_0x32d5f4),_0x2b4056);},content=_0x3db56c=>({'content':[{'type':_0xa28fd7(0x197),'text':JSON[_0xa28fd7(0x18d)](_0x3db56c)}]});function validateIdentity(_0x43e581){const _0x2c16d3=_0xa28fd7,_0x2e043e={};_0x2e043e[_0x2c16d3(0x1fd)]=contracts['sessionId'],_0x2e043e[_0x2c16d3(0x201)]=contracts[_0x2c16d3(0x201)],_0x2e043e[_0x2c16d3(0x1f4)]=contracts[_0x2c16d3(0x1f4)],_0x2e043e[_0x2c16d3(0x1c1)]=contracts['runId'];for(const [_0x363b5c,_0x1c057c]of Object[_0x2c16d3(0x193)](_0x2e043e)){if(_0x43e581[_0x363b5c]===undefined)continue;const _0x4e0b65=_0x43e581[_0x363b5c];if(typeof _0x4e0b65!==_0x2c16d3(0x19d)||!_0x4e0b65[_0x2c16d3(0x1ff)]()||_0x4e0b65[_0x2c16d3(0x176)]>_0x1c057c['maxLength']||_0x1c057c[_0x2c16d3(0x1f9)]&&!new RegExp(_0x1c057c['pattern'])[_0x2c16d3(0x1fe)](_0x4e0b65))fail(_0x2c16d3(0x1cd)+_0x363b5c[_0x2c16d3(0x1b7)](/([a-z])([A-Z])/g,'$1_$2')[_0x2c16d3(0x1ac)](),_0x1c057c[_0x2c16d3(0x1de)]);}}class WorkspaceGateway{constructor(_0xfc9d6={}){const _0x516651=_0xa28fd7;this[_0x516651(0x198)]=_0xfc9d6[_0x516651(0x198)]||new WorkspaceRegistry(),this[_0x516651(0x1fa)]=_0xfc9d6[_0x516651(0x1fa)],this[_0x516651(0x1a2)]=_0xfc9d6['host']||null,this[_0x516651(0x181)]=_0xfc9d6['connectionId']||crypto[_0x516651(0x16b)](),this['sessions']=new Map(),this[_0x516651(0x1e8)]=new Map(),this['bindingSelections']=new Map(),this[_0x516651(0x1b6)]=gatewayCatalog(),this[_0x516651(0x1c5)]=_0xfc9d6['onCatalogChanged']||(()=>{}),this[_0x516651(0x19c)]=null,this[_0x516651(0x190)]=![];}async[_0xa28fd7(0x1d8)](_0x3e06c7,_0x5cb777={}){const _0x189b35=_0xa28fd7;_0x5cb777[_0x189b35(0x1f0)]?.[_0x189b35(0x19a)]();if(!_0x3e06c7[_0x189b35(0x1fd)])fail('SESSION_ID_REQUIRED',_0x189b35(0x1d2));const _0xa1b9a=this[_0x189b35(0x1e3)][_0x189b35(0x187)](_0x3e06c7[_0x189b35(0x1fd)]);if(_0xa1b9a&&!_0x3e06c7['workspaceId']&&!_0x3e06c7['workspacePath'])return _0xa1b9a;const _0x147505=this[_0x189b35(0x1e8)][_0x189b35(0x187)](_0x3e06c7[_0x189b35(0x1fd)]);if(_0x147505&&!_0x3e06c7[_0x189b35(0x17a)]&&!_0x3e06c7['workspacePath'])return _0x147505[_0x189b35(0x196)];const _0x2b1b37=this[_0x189b35(0x198)]['resolve'](_0x3e06c7,{'host':this[_0x189b35(0x1a2)]});if(_0x3e06c7[_0x189b35(0x194)])this[_0x189b35(0x1b4)](_0x3e06c7[_0x189b35(0x194)],_0x2b1b37[_0x189b35(0x17a)]);if(_0xa1b9a){if(!sameWorkspace(_0x2b1b37['workspace'],_0xa1b9a[_0x189b35(0x191)]))fail(_0x189b35(0x1d0));return _0xa1b9a;}if(this[_0x189b35(0x1e8)]['has'](_0x3e06c7['sessionId'])){const _0x7269c4=this[_0x189b35(0x1e8)][_0x189b35(0x187)](_0x3e06c7[_0x189b35(0x1fd)]);if(!sameWorkspace(_0x7269c4['workspace'],_0x2b1b37['workspace']))fail('WORKSPACE_BINDING_CONFLICT');return _0x7269c4[_0x189b35(0x196)];}const _0x29c355={};_0x29c355['connectionId']=this[_0x189b35(0x181)],_0x29c355[_0x189b35(0x1fd)]=_0x3e06c7[_0x189b35(0x1fd)],_0x29c355[_0x189b35(0x191)]=_0x2b1b37[_0x189b35(0x191)],_0x29c355[_0x189b35(0x17a)]=_0x2b1b37[_0x189b35(0x17a)],_0x29c355[_0x189b35(0x17e)]='apt-mcp-agent',_0x29c355[_0x189b35(0x1e9)]=_0x189b35(0x1d9),_0x29c355['nativeIdentity']=_0x189b35(0x183);const _0x2b1a65=_0x29c355,_0xc82931=((async()=>{const _0x101509=_0x189b35;if(typeof this[_0x101509(0x1fa)]!=='function')fail('GATEWAY_RUNTIME_UNAVAILABLE');const _0x349f68=_0x2b1b37[_0x101509(0x17c)]?.[this[_0x101509(0x1a2)]]||{},_0x1fdabf=await this[_0x101509(0x1fa)](_0x2b1a65,this[_0x101509(0x19c)]||{},_0x349f68);try{if(_0x5cb777[_0x101509(0x1f0)])await require(_0x101509(0x1a7))[_0x101509(0x19e)](_0x5cb777['lease']);}catch(_0x5d41ff){await _0x1fdabf[_0x101509(0x18e)]();throw _0x5d41ff;}this[_0x101509(0x190)]&&(await _0x1fdabf['close'](),fail(_0x101509(0x1a1)));const _0x970fdb={..._0x2b1a65};_0x970fdb['runtime']=_0x1fdabf,_0x970fdb[_0x101509(0x182)]=_0x349f68;const _0x48f1dd=_0x970fdb;return _0x5cb777[_0x101509(0x1f0)]?.[_0x101509(0x19a)](),this[_0x101509(0x1e3)][_0x101509(0x1dd)](_0x3e06c7[_0x101509(0x1fd)],_0x48f1dd),_0x48f1dd;})()),_0x2ee35f={};_0x2ee35f[_0x189b35(0x191)]=_0x2b1b37[_0x189b35(0x191)],_0x2ee35f[_0x189b35(0x196)]=_0xc82931,this[_0x189b35(0x1e8)][_0x189b35(0x1dd)](_0x3e06c7[_0x189b35(0x1fd)],_0x2ee35f);try{return await _0xc82931;}finally{this['initializing']['delete'](_0x3e06c7[_0x189b35(0x1fd)]);}}['selection'](_0x11a728){const _0x550f4b=_0xa28fd7;for(const [_0x4316ca,_0x566d01]of this['bindingSelections'])if(_0x566d01[_0x550f4b(0x19b)]<Date[_0x550f4b(0x1b8)]())this[_0x550f4b(0x1d5)][_0x550f4b(0x1c4)](_0x4316ca);if(this[_0x550f4b(0x1d5)][_0x550f4b(0x1aa)]>=0x1000)fail(_0x550f4b(0x170));const _0x36102c=this[_0x550f4b(0x181)]+'.'+crypto['randomBytes'](0x20)[_0x550f4b(0x202)]('base64url');this[_0x550f4b(0x1d5)][_0x550f4b(0x1dd)](_0x36102c,{'workspaceId':_0x11a728[_0x550f4b(0x17a)],'expiresAt':Date[_0x550f4b(0x1b8)]()+0xdbba0});const _0x56f979={};return _0x56f979['workspaceId']=_0x11a728[_0x550f4b(0x17a)],_0x56f979[_0x550f4b(0x191)]=_0x11a728[_0x550f4b(0x191)],_0x56f979[_0x550f4b(0x194)]=_0x36102c,_0x56f979;}[_0xa28fd7(0x1b4)](_0x5e0526,_0x4edd0d){const _0x161a4b=_0xa28fd7,_0x67fadc=this[_0x161a4b(0x1d5)]['get'](_0x5e0526);if(!_0x67fadc||_0x67fadc['expiresAt']<Date['now']()||_0x67fadc[_0x161a4b(0x17a)]!==_0x4edd0d)fail(_0x161a4b(0x189),_0x161a4b(0x1f8));return _0x67fadc;}['selected'](_0x297966){const _0x2122aa=_0xa28fd7;let _0x59d83f;if(_0x297966['sessionId'])_0x59d83f=this[_0x2122aa(0x1e3)][_0x2122aa(0x187)](_0x297966[_0x2122aa(0x1fd)]);else{if(this[_0x2122aa(0x1e3)][_0x2122aa(0x1aa)]===0x1)_0x59d83f=this['sessions'][_0x2122aa(0x1ee)]()[_0x2122aa(0x1a4)]()[_0x2122aa(0x1ed)];else{if(this[_0x2122aa(0x1e3)][_0x2122aa(0x1aa)]>0x1)fail(_0x2122aa(0x1bc),_0x2122aa(0x199));}}if(!_0x59d83f)fail(_0x2122aa(0x173),_0x2122aa(0x1f3));if(_0x297966['workspaceId']||_0x297966[_0x2122aa(0x1ab)]){const _0x12d7d0=this['registry'][_0x2122aa(0x1a3)](_0x297966,{'host':this[_0x2122aa(0x1a2)]});if(!sameWorkspace(_0x12d7d0[_0x2122aa(0x191)],_0x59d83f[_0x2122aa(0x191)]))fail(_0x2122aa(0x1d0));}if(_0x297966['projectPath']&&!sameWorkspace(_0x297966[_0x2122aa(0x1b9)],_0x59d83f[_0x2122aa(0x191)]))fail('WORKSPACE_BINDING_CONFLICT');return _0x59d83f;}async[_0xa28fd7(0x1be)](_0x4e1d5c){const _0x6a3d2a=_0xa28fd7;if(this['stopped'])fail('GATEWAY_CLOSED');const {id:_0x419ce5,method:_0x499be0,params:params={}}=_0x4e1d5c,_0x2b8414=_0x2a8ea2=>({'jsonrpc':_0x6a3d2a(0x1e4),'id':_0x419ce5,'result':_0x2a8ea2});if(_0x499be0===_0x6a3d2a(0x19c)||_0x499be0==='server/discover'){const _0x3f4b24=[_0x6a3d2a(0x1db),_0x6a3d2a(0x1c0),'2025-06-18',_0x6a3d2a(0x172)],_0x5eff83=_0x3f4b24[_0x6a3d2a(0x1dc)](params['protocolVersion'])?params['protocolVersion']:_0x3f4b24['at'](-0x1),_0x3f63c2={...params};_0x3f63c2[_0x6a3d2a(0x18c)]=_0x5eff83,this[_0x6a3d2a(0x19c)]=_0x3f63c2;const _0x2618e7={};_0x2618e7[_0x6a3d2a(0x16e)]=!![];const _0x3e29a7={};return _0x3e29a7[_0x6a3d2a(0x1e1)]=_0x2618e7,_0x2b8414({'protocolVersion':_0x5eff83,'capabilities':_0x3e29a7,'serverInfo':{'name':_0x6a3d2a(0x1cc),'version':require(_0x6a3d2a(0x1e7))[_0x6a3d2a(0x186)]},'instructions':_0x6a3d2a(0x1a8)});}if(_0x499be0===_0x6a3d2a(0x1ec))return _0x2b8414({'tools':structuredClone(this[_0x6a3d2a(0x1b6)])});if(_0x499be0===_0x6a3d2a(0x1d3))return _0x2b8414({});if(_0x499be0===_0x6a3d2a(0x1fc))return null;const _0x2a7c69={};_0x2a7c69[_0x6a3d2a(0x174)]=-0x7f59,_0x2a7c69[_0x6a3d2a(0x1d7)]=_0x6a3d2a(0x1b2);if(_0x499be0!=='tools/call')return _0x419ce5===undefined?null:{'jsonrpc':_0x6a3d2a(0x1e4),'id':_0x419ce5,'error':_0x2a7c69};try{const _0x5e827d=params[_0x6a3d2a(0x1c8)]||{};if(Array[_0x6a3d2a(0x1ef)](_0x5e827d)||typeof _0x5e827d!==_0x6a3d2a(0x18b))fail(_0x6a3d2a(0x18a));validateIdentity(_0x5e827d);if(params['name']!==_0x6a3d2a(0x178)&¶ms[_0x6a3d2a(0x177)]!==_0x6a3d2a(0x1ba)&&require(_0x6a3d2a(0x1f6))[_0x6a3d2a(0x1b5)](params[_0x6a3d2a(0x177)])&&!_0x5e827d[_0x6a3d2a(0x1fd)])fail(_0x6a3d2a(0x1cf),_0x6a3d2a(0x185));const _0x2005cb=this[_0x6a3d2a(0x1b6)]['find'](_0x1d69a6=>_0x1d69a6[_0x6a3d2a(0x177)]===params['name']);if(!_0x2005cb){const _0x12331c=require(_0x6a3d2a(0x1ca))[_0x6a3d2a(0x16a)](params[_0x6a3d2a(0x177)]);if(_0x12331c&&_0x12331c[_0x6a3d2a(0x175)]!==_0x6a3d2a(0x200)){const _0x2ea16f={};_0x2ea16f[_0x6a3d2a(0x175)]=_0x12331c[_0x6a3d2a(0x175)],_0x2ea16f[_0x6a3d2a(0x1fd)]=_0x5e827d[_0x6a3d2a(0x1fd)];const _0x1accd0={};_0x1accd0[_0x6a3d2a(0x1f7)]=_0x6a3d2a(0x1ba),_0x1accd0[_0x6a3d2a(0x1c8)]=_0x2ea16f;const _0x1c6f18={};_0x1c6f18['code']=_0x6a3d2a(0x17b),_0x1c6f18[_0x6a3d2a(0x1d6)]=_0x1accd0;const _0x468165=Object[_0x6a3d2a(0x1c7)](new Error(_0x6a3d2a(0x1f5)),_0x1c6f18);throw _0x468165;}fail('TOOL_NOT_AVAILABLE',_0x6a3d2a(0x1ad));}if(params[_0x6a3d2a(0x177)]==='workspace_list')return _0x2b8414(content({'workspaces':this[_0x6a3d2a(0x198)][_0x6a3d2a(0x1f1)]()[_0x6a3d2a(0x1c2)](_0x1c1b2d=>!this[_0x6a3d2a(0x1a2)]||_0x1c1b2d[_0x6a3d2a(0x1fb)][_0x6a3d2a(0x1dc)](this['host']))[_0x6a3d2a(0x184)](_0xc7487=>this[_0x6a3d2a(0x1a0)](_0xc7487)),'connectionId':this[_0x6a3d2a(0x181)]}));if(params['name']==='mcp_agent_health'&&!_0x5e827d[_0x6a3d2a(0x1fd)]&&!_0x5e827d[_0x6a3d2a(0x175)])return _0x2b8414(content({'registration':_0x6a3d2a(0x1cc),'connectionId':this['connectionId'],'boundSessions':this[_0x6a3d2a(0x1e3)][_0x6a3d2a(0x1aa)],'backendsStartedByDiscovery':0x0,'serving':_0x6a3d2a(0x1b0),'version':require(_0x6a3d2a(0x1e7))[_0x6a3d2a(0x186)]}));for(const _0x4af759 of _0x2005cb[_0x6a3d2a(0x17f)][_0x6a3d2a(0x1e0)]||[])if(_0x5e827d[_0x4af759]===undefined&&_0x4af759!=='sessionId')fail(_0x6a3d2a(0x180)+_0x4af759[_0x6a3d2a(0x1b7)](/([a-z])([A-Z])/g,_0x6a3d2a(0x1bb))['toUpperCase'](),_0x6a3d2a(0x1e2)+_0x4af759+'.');const _0x15f133=params[_0x6a3d2a(0x177)]===_0x6a3d2a(0x1ae)?await this['bind'](_0x5e827d):this[_0x6a3d2a(0x1a5)](_0x5e827d);if(_0x15f133[_0x6a3d2a(0x182)]?.[_0x6a3d2a(0x1e1)]?.[params[_0x6a3d2a(0x177)]]?.['enabled']===![])fail('PROJECT_TOOL_DISABLED');const _0x4ec2cf={..._0x5e827d};_0x4ec2cf['sessionId']=_0x15f133['sessionId'];const _0x215c27=_0x4ec2cf,_0x2a9cee={...params};_0x2a9cee[_0x6a3d2a(0x1c8)]=_0x215c27;const _0x43ef39={..._0x4e1d5c};_0x43ef39[_0x6a3d2a(0x1bf)]=_0x2a9cee;const _0x3d12e2=await _0x15f133[_0x6a3d2a(0x1df)][_0x6a3d2a(0x1a6)](_0x43ef39);if(params[_0x6a3d2a(0x177)]===_0x6a3d2a(0x1ba)&&_0x5e827d[_0x6a3d2a(0x175)]&&!_0x3d12e2['isError']){const _0x47faa7={};_0x47faa7[_0x6a3d2a(0x1ea)]=_0x6a3d2a(0x1ec),_0x47faa7[_0x6a3d2a(0x1bf)]={};const _0x599f26=await _0x15f133[_0x6a3d2a(0x1df)]['request'](_0x47faa7);let _0x18407c=![];for(const _0xc78b78 of _0x599f26[_0x6a3d2a(0x1e1)]||[]){if(require(_0x6a3d2a(0x1ca))[_0x6a3d2a(0x16a)](_0xc78b78[_0x6a3d2a(0x177)])?.['backend']!==_0x5e827d[_0x6a3d2a(0x175)])continue;const _0x212977=require(_0x6a3d2a(0x1da))['decorateGatewayTool'](structuredClone(_0xc78b78)),_0x3f6dab=this['catalog'][_0x6a3d2a(0x195)](_0xfda4bb=>_0xfda4bb['name']===_0x212977['name']);if(_0x3f6dab&&JSON['stringify'](_0x3f6dab[_0x6a3d2a(0x17f)])!==JSON[_0x6a3d2a(0x18d)](_0x212977[_0x6a3d2a(0x17f)]))fail(_0x6a3d2a(0x1d4));!_0x3f6dab&&(this[_0x6a3d2a(0x1b6)][_0x6a3d2a(0x1e5)](_0x212977),_0x18407c=!![]);}if(_0x18407c)this[_0x6a3d2a(0x1c5)]();}return _0x2b8414(_0x3d12e2);}catch(_0x583519){const _0x3e2757={};return _0x3e2757['tool']=_0x6a3d2a(0x178),_0x3e2757[_0x6a3d2a(0x18f)]=_0x6a3d2a(0x1ae),_0x3e2757[_0x6a3d2a(0x1e0)]=['sessionId','workspaceId'],_0x2b8414({...content({'success':![],'code':_0x583519['code']||_0x6a3d2a(0x1cb),'error':_0x583519[_0x6a3d2a(0x1d7)],'recovery':_0x583519[_0x6a3d2a(0x1d6)]||([_0x6a3d2a(0x173),_0x6a3d2a(0x1bc),_0x6a3d2a(0x1b1)]['includes'](_0x583519[_0x6a3d2a(0x174)])?_0x3e2757:undefined)}),'isError':!![]});}}async[_0xa28fd7(0x18e)](){const _0x2bc1db=_0xa28fd7;this[_0x2bc1db(0x190)]=!![],await Promise[_0x2bc1db(0x1c9)]([...this[_0x2bc1db(0x1e8)][_0x2bc1db(0x1ee)]()][_0x2bc1db(0x184)](_0x3216e1=>_0x3216e1['promise']));const _0x13c5a7=await Promise[_0x2bc1db(0x1c9)]([...this[_0x2bc1db(0x1e3)][_0x2bc1db(0x1ee)]()][_0x2bc1db(0x184)](_0x30c691=>_0x30c691['runtime'][_0x2bc1db(0x18e)]())),_0x36649d=_0x13c5a7[_0x2bc1db(0x195)](_0x12755f=>_0x12755f[_0x2bc1db(0x1e6)]===_0x2bc1db(0x179));if(_0x36649d)throw _0x36649d['reason'];this[_0x2bc1db(0x1e3)][_0x2bc1db(0x16d)]();}}const _0x3d25cc={};function _0xd021(){const _0x47d3dc=['tuLtu0Lor18','y29UBMvJDgLVBKLK','ChjVzMLSzq','Dw5JB25MAxjTzwq','BwfW','txv0yxrPB25ZihjLCxvPCMuGDgHLigv4CgXPy2L0BhKGyM91BMqGC2vZC2LVBKLKlG','DMvYC2LVBG','z2v0','mJC2mJq5nKLqEvHwEa','r0furvDbwv9truXfq1rjt05FuKvrvuLsruq','su5wquXjrf9buKDvtuvovfm','B2jQzwn0','ChjVDg9JB2XwzxjZAw9U','C3rYAw5NAwz5','y2XVC2u','DgHLBG','C3rVChbLza','D29YA3nWywnL','DMfSAwrHDgvjzgvUDgL0Eq','zw50CMLLCW','yMLUzgLUz1rVA2vU','zMLUza','ChjVBwLZzq','Dgv4Da','CMvNAxn0CNK','ugfZCYbZzxnZAw9Uswq7ihrOAxmGy29UBMvJDgLVBIbZzxj2zxmGBxvSDgLWBguGChjVAMvJDcbZzxnZAw9UCY4','yxnZzxj0q3vYCMvUDa','zxHWAxjLC0f0','Aw5PDgLHBgL6zq','C3rYAw5N','B2jZzxj2zuHVB2Tdyw5JzwXSyxrPB24','ndG3mtuWofrmrg93tW','C2vSzwn0Aw9U','r0furvDbwv9dte9truq','Ag9ZDa','CMvZB2X2zq','BMv4Da','C2vSzwn0zwq','CMvXDwvZDa','lI4Vy29Yzs9OB29RlwXLyxnL','t25LiefqvcbNyxrLD2f5ihnLCNzLCYbPBNn0ywXSzwqGChjVAMvJDhmUienHBgWGD29YA3nWywnLx2XPC3qSihrOzw4GC2vZC2LVBL9IB290C3rYyxaGD2L0Acb5B3vYihnLC3nPB25jzcbHBMqGDgHLihbYB2PLy3qGD29YA3nWywnLswqUiefSD2f5CYbWyxnZihrOyxqGC2vZC2LVBKLKig9Uihn1yNnLCxvLBNqGy2fSBhmUie5LDMvYigjPBMqGAg9TzsbVCIbZzwXLy3qGysbWCM9Qzwn0igzYB20GCMvJzw5JEs4','mtbjwMjoAvm','C2L6zq','D29YA3nWywnLugf0Aa','Dg9vChbLCKnHC2u','vgHPCYbNyxrLD2f5igHHCYbUBYb2zxjPzMLLzcbJyxrHBg9NigzVCIb0Agf0ihrVB2WU','C2vZC2LVBL9IB290C3rYyxa','mtb1Agflrgm','z2f0zxDHEq','v09ss1nqqunfx05pvf9sruDju1rfuKve','twv0Ag9Kig5VDcbMB3vUza','mtC5nJGYsgvqswDQ','DMvYAwz5u2vSzwn0Aw9U','C2vUC2L0AxzLvg9VBa','y2f0ywXVzW','CMvWBgfJzq','BM93','ChjVAMvJDfbHDgG','BwnWx2fNzw50x2HLywX0Aa','jdfFjdi','v09ss1nqqunfx0fnqKLhvu9vuW','mteYwvfiEu9v','AgfUzgXL','CgfYyw1Z','mJaYns0WmY0YnG','CNvUswq','zMLSDgvY','m2nlvKzqEa','zgvSzxrL','B25dyxrHBg9Nq2HHBMDLza','v29YA3nWywnLr2f0zxDHEq','yxnZAwDU','yxjNDw1LBNrZ','ywXSu2v0DgXLza','lI9YB3v0zxi','r0furvDbwv9srvfvrvnux0zbsuXfra','yxb0lw1JCc1Hz2vUDa','su5wquXjrf8','mtqZntroC3fNqxi','u0vtu0LptL9jrf9srvfvsvjfra','v09ss1nqqunfx0jjtKrjtKDFq09orKXjq1q','ndqYmZe0v3HhrK1X','ugfZCYb0AguGC2fTzsbUB25LBxb0EsbZzxnZAw9UswqGDgHYB3vNAg91Dcb0AgLZignOyxqU','CgLUzW','q0fuquXpr19tq0HftufFq09orKXjq1q','yMLUzgLUz1nLBgvJDgLVBNm','CMvJB3zLCNK','BwvZC2fNzq','yMLUza','y2fSBgvYlxnLBgvJDgvK','lI9WDwjSAwmTy2f0ywXVzW','mJaYnc0Xms0Wnq','Aw5JBhvKzxm','C2v0','zgvZy3jPChrPB24','CNvUDgLTzq','CMvXDwLYzwq','Dg9VBhm','uMvXDwLYzwqGzMLLBgq6ia','C2vZC2LVBNm','mI4W','ChvZAa','C3rHDhvZ','lI4VlI4VCgfJA2fNzs5QC29U','Aw5PDgLHBgL6Aw5N','ChjVDMvUyw5Jzq','Bwv0Ag9K','mJjKzwLHzxK','Dg9VBhmVBgLZDa','DMfSDwu','DMfSDwvZ','AxnbCNjHEq','BgvHC2u','BgLZDa','mZu0nZjJDe5XqNK','q2fSBcb3B3jRC3bHy2vFBgLZDcWGDgHLBIbZzxnZAw9Ux2jVB3rZDhjHCcb3AxrOihnLC3nPB25jzcbHBMqGD29YA3nWywnLswqU','DgfZAW','vgHPCYbHzgrVBIbUzwvKCYbPBNrLBNrPB25HBcbJyxrHBg9NigrPC2nVDMvYEtSGy2fSBcbTy3bFywDLBNrFAgvHBhrOihDPDgGGAxrZigjHy2TLBMqGyw5KihnLC3nPB25jzc4','lI4Vy29Yzs9JywXSzxiTy29UDgv4Da','Dg9VBa','q2fSBcb3B3jRC3bHy2vFBgLZDcbVBIb0AgLZignVBM5Ly3rPB24Gyw5KihvZzsbPDhmGy3vYCMvUDcbIAw5KAw5Nvg9Rzw4U','Cgf0DgvYBG','CNvUDgLTzuzHy3rVCNK','Ag9ZDhm','BM90AwzPy2f0Aw9UCY9PBML0AwfSAxPLza','C2vZC2LVBKLK','DgvZDa','DhjPBq','x2j1AwX0Aw4','CMvXDwvZDeLK','Dg9tDhjPBMC','BwfWrxHWB3nLzfrVt3jPz2LUywW','CMfUzg9Tvvvjra','lI4Vy29Yzs93B3jRC3bHy2uTCgf0Aa','y2XLyxi','BgLZDenOyw5Nzwq','ndG5mJq4twHgq1z3','r0furvDbwv9truXfq1rjt05FteLnsvq','lI4VAw5ZDgfSBgvYl3DVCMTZCgfJzs1YzwDPC3rYEq','mJaYns0Xms0Ynq','v09ss1nqqunfx0jjtKrjtKDFuKvrvuLsruq','y29Kzq','yMfJA2vUza','BgvUz3rO','BMfTzq','D29YA3nWywnLx2XPC3q','CMvQzwn0zwq','D29YA3nWywnLswq','qKfds0vorf9dqvrbte9hx0rju0npvKvswv9srvfvsvjfra','ChjVzMLSzxm','BM9KztPJCNLWDg8','CMvNAxn0CMf0Aw9U','Aw5WDxrty2HLBwe'];_0xd021=function(){return _0x47d3dc;};return _0xd021();}_0x3d25cc[_0xa28fd7(0x1c6)]=WorkspaceGateway,_0x3d25cc[_0xa28fd7(0x192)]=validateIdentity,module['exports']=_0x3d25cc;
|
|
1
|
+
'use strict';const _0x51daa2=_0x2856;(function(_0x4c36f1,_0x2808f0){const _0x18af34=_0x2856,_0x558a08=_0x4c36f1();while(!![]){try{const _0x132b88=-parseInt(_0x18af34(0x138))/0x1*(-parseInt(_0x18af34(0x128))/0x2)+parseInt(_0x18af34(0x19d))/0x3+parseInt(_0x18af34(0x147))/0x4*(-parseInt(_0x18af34(0x175))/0x5)+parseInt(_0x18af34(0x18c))/0x6+-parseInt(_0x18af34(0x19c))/0x7*(parseInt(_0x18af34(0x173))/0x8)+-parseInt(_0x18af34(0x130))/0x9*(parseInt(_0x18af34(0x14e))/0xa)+-parseInt(_0x18af34(0x1ab))/0xb*(-parseInt(_0x18af34(0x18a))/0xc);if(_0x132b88===_0x2808f0)break;else _0x558a08['push'](_0x558a08['shift']());}catch(_0x4a2726){_0x558a08['push'](_0x558a08['shift']());}}}(_0x2e92,0xe0f09));function _0x2856(_0x378201,_0x4fbe7d){_0x378201=_0x378201-0x121;const _0x2e92f3=_0x2e92();let _0x285614=_0x2e92f3[_0x378201];if(_0x2856['fBFjgd']===undefined){var _0x48ab41=function(_0x51041d){const _0x1b1eab='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2d9353='',_0x14399a='';for(let _0x5bb888=0x0,_0xa94b43,_0x23cef7,_0x440859=0x0;_0x23cef7=_0x51041d['charAt'](_0x440859++);~_0x23cef7&&(_0xa94b43=_0x5bb888%0x4?_0xa94b43*0x40+_0x23cef7:_0x23cef7,_0x5bb888++%0x4)?_0x2d9353+=String['fromCharCode'](0xff&_0xa94b43>>(-0x2*_0x5bb888&0x6)):0x0){_0x23cef7=_0x1b1eab['indexOf'](_0x23cef7);}for(let _0x4d2964=0x0,_0x87d6a9=_0x2d9353['length'];_0x4d2964<_0x87d6a9;_0x4d2964++){_0x14399a+='%'+('00'+_0x2d9353['charCodeAt'](_0x4d2964)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x14399a);};_0x2856['ocVTss']=_0x48ab41,_0x2856['ktuVqj']={},_0x2856['fBFjgd']=!![];}const _0x16bd9f=_0x2e92f3[0x0],_0x42e3de=_0x378201+_0x16bd9f,_0x287c5c=_0x2856['ktuVqj'][_0x42e3de];return!_0x287c5c?(_0x285614=_0x2856['ocVTss'](_0x285614),_0x2856['ktuVqj'][_0x42e3de]=_0x285614):_0x285614=_0x287c5c,_0x285614;}const crypto=require(_0x51daa2(0x198)),{WorkspaceRegistry}=require('../installer/workspace-registry'),{gatewayCatalog}=require(_0x51daa2(0x171)),{sameWorkspace}=require(_0x51daa2(0x137)),contracts=require('../core/tool-contracts'),fail=(_0x5008ad,_0x21af0c=_0x5008ad)=>{const _0xa60062=_0x51daa2,_0x2a2c81={};_0x2a2c81[_0xa60062(0x16c)]=_0x5008ad;throw Object[_0xa60062(0x187)](new Error(_0x21af0c),_0x2a2c81);},content=_0x4bd49f=>({'content':[{'type':_0x51daa2(0x152),'text':JSON[_0x51daa2(0x1a5)](_0x4bd49f)}]});function validateIdentity(_0x4cb338){const _0x473786=_0x51daa2,_0x592ca3={};_0x592ca3['sessionId']=contracts[_0x473786(0x1a0)],_0x592ca3['requestId']=contracts['requestId'],_0x592ca3['task']=contracts['task'],_0x592ca3[_0x473786(0x16a)]=contracts['runId'];for(const [_0x7144ee,_0x1920f8]of Object[_0x473786(0x1a6)](_0x592ca3)){if(_0x4cb338[_0x7144ee]===undefined)continue;const _0x5984cf=_0x4cb338[_0x7144ee];if(typeof _0x5984cf!==_0x473786(0x127)||!_0x5984cf['trim']()||_0x5984cf[_0x473786(0x18e)]>_0x1920f8[_0x473786(0x184)]||_0x1920f8[_0x473786(0x134)]&&!new RegExp(_0x1920f8['pattern'])[_0x473786(0x141)](_0x5984cf))fail(_0x473786(0x158)+_0x7144ee['replace'](/([a-z])([A-Z])/g,_0x473786(0x12e))[_0x473786(0x181)](),_0x1920f8[_0x473786(0x15d)]);}}class WorkspaceGateway{constructor(_0x3dc69c={}){const _0x2eea3a=_0x51daa2;this['registry']=_0x3dc69c[_0x2eea3a(0x133)]||new WorkspaceRegistry(),this['runtimeFactory']=_0x3dc69c[_0x2eea3a(0x146)],this[_0x2eea3a(0x1a3)]=_0x3dc69c[_0x2eea3a(0x1a3)]||null,this[_0x2eea3a(0x1a8)]=_0x3dc69c[_0x2eea3a(0x1a8)]||crypto[_0x2eea3a(0x157)](),this[_0x2eea3a(0x15f)]=new Map(),this[_0x2eea3a(0x124)]=new Map(),this['bindingSelections']=new Map(),this[_0x2eea3a(0x164)]=gatewayCatalog(),this[_0x2eea3a(0x12b)]=_0x3dc69c[_0x2eea3a(0x12b)]||(()=>{}),this[_0x2eea3a(0x17e)]=null,this[_0x2eea3a(0x132)]=![];}async[_0x51daa2(0x168)](_0x294856,_0xcecbea={}){const _0x3be400=_0x51daa2;_0xcecbea[_0x3be400(0x180)]?.[_0x3be400(0x16f)]();if(!_0x294856[_0x3be400(0x1a0)])fail('SESSION_ID_REQUIRED',_0x3be400(0x14a));const _0x495cc6=this[_0x3be400(0x15f)][_0x3be400(0x1a7)](_0x294856[_0x3be400(0x1a0)]);if(_0x495cc6&&!_0x294856[_0x3be400(0x167)]&&!_0x294856[_0x3be400(0x192)])return _0x495cc6;const _0x40cebb=this[_0x3be400(0x124)][_0x3be400(0x1a7)](_0x294856[_0x3be400(0x1a0)]);if(_0x40cebb&&!_0x294856[_0x3be400(0x167)]&&!_0x294856[_0x3be400(0x192)])return _0x40cebb[_0x3be400(0x18b)];const _0x3c0cbc=this[_0x3be400(0x133)][_0x3be400(0x13b)](_0x294856,{'host':this[_0x3be400(0x1a3)]});if(_0x294856[_0x3be400(0x129)])this[_0x3be400(0x19a)](_0x294856['bindingToken'],_0x3c0cbc['workspaceId']);if(_0x495cc6){if(!sameWorkspace(_0x3c0cbc[_0x3be400(0x143)],_0x495cc6[_0x3be400(0x143)]))fail(_0x3be400(0x153));return _0x495cc6;}if(this[_0x3be400(0x124)]['has'](_0x294856[_0x3be400(0x1a0)])){const _0x2a09fa=this[_0x3be400(0x124)][_0x3be400(0x1a7)](_0x294856[_0x3be400(0x1a0)]);if(!sameWorkspace(_0x2a09fa[_0x3be400(0x143)],_0x3c0cbc[_0x3be400(0x143)]))fail(_0x3be400(0x153));return _0x2a09fa[_0x3be400(0x18b)];}const _0xb411ba={};_0xb411ba[_0x3be400(0x1a8)]=this[_0x3be400(0x1a8)],_0xb411ba[_0x3be400(0x1a0)]=_0x294856[_0x3be400(0x1a0)],_0xb411ba[_0x3be400(0x143)]=_0x3c0cbc['workspace'],_0xb411ba[_0x3be400(0x167)]=_0x3c0cbc[_0x3be400(0x167)],_0xb411ba[_0x3be400(0x174)]=_0x3be400(0x122),_0xb411ba['provenance']='caller-selected',_0xb411ba['nativeIdentity']=_0x3be400(0x1ad);const _0x41e958=_0xb411ba,_0x7a8bba=((async()=>{const _0x7096ac=_0x3be400;if(typeof this[_0x7096ac(0x146)]!==_0x7096ac(0x17d))fail(_0x7096ac(0x186));const _0x148ee4=_0x3c0cbc['profiles']?.[this[_0x7096ac(0x1a3)]]||{},_0x2f1357=await this[_0x7096ac(0x146)](_0x41e958,this['initialize']||{},_0x148ee4);try{if(_0xcecbea[_0x7096ac(0x180)])await require(_0x7096ac(0x19b))[_0x7096ac(0x172)](_0xcecbea[_0x7096ac(0x180)]);}catch(_0x34c3af){await _0x2f1357[_0x7096ac(0x148)]();throw _0x34c3af;}this[_0x7096ac(0x132)]&&(await _0x2f1357[_0x7096ac(0x148)](),fail('GATEWAY_CLOSED'));const _0x4a7b5f={..._0x41e958};_0x4a7b5f['runtime']=_0x2f1357,_0x4a7b5f['profile']=_0x148ee4;const _0x3be1e9=_0x4a7b5f;return _0xcecbea[_0x7096ac(0x180)]?.[_0x7096ac(0x16f)](),this[_0x7096ac(0x15f)][_0x7096ac(0x194)](_0x294856[_0x7096ac(0x1a0)],_0x3be1e9),_0x3be1e9;})()),_0x431826={};_0x431826[_0x3be400(0x143)]=_0x3c0cbc[_0x3be400(0x143)],_0x431826[_0x3be400(0x18b)]=_0x7a8bba,this[_0x3be400(0x124)][_0x3be400(0x194)](_0x294856[_0x3be400(0x1a0)],_0x431826);try{return await _0x7a8bba;}finally{this['initializing'][_0x3be400(0x151)](_0x294856[_0x3be400(0x1a0)]);}}[_0x51daa2(0x165)](_0x4b630b){const _0x2ca5eb=_0x51daa2;for(const [_0x506739,_0x5c3949]of this['bindingSelections'])if(_0x5c3949[_0x2ca5eb(0x18f)]<Date[_0x2ca5eb(0x1a2)]())this['bindingSelections'][_0x2ca5eb(0x151)](_0x506739);if(this[_0x2ca5eb(0x16b)]['size']>=0x1000)fail(_0x2ca5eb(0x177));const _0x435207=this[_0x2ca5eb(0x1a8)]+'.'+crypto[_0x2ca5eb(0x149)](0x20)['toString'](_0x2ca5eb(0x125));this[_0x2ca5eb(0x16b)]['set'](_0x435207,{'workspaceId':_0x4b630b[_0x2ca5eb(0x167)],'expiresAt':Date[_0x2ca5eb(0x1a2)]()+0xdbba0});const _0x3fd01c={};return _0x3fd01c[_0x2ca5eb(0x167)]=_0x4b630b[_0x2ca5eb(0x167)],_0x3fd01c[_0x2ca5eb(0x143)]=_0x4b630b['workspace'],_0x3fd01c[_0x2ca5eb(0x129)]=_0x435207,_0x3fd01c;}[_0x51daa2(0x19a)](_0x2e6f33,_0x46eb5e){const _0x1ff6a1=_0x51daa2,_0x2ebea4=this['bindingSelections'][_0x1ff6a1(0x1a7)](_0x2e6f33);if(!_0x2ebea4||_0x2ebea4[_0x1ff6a1(0x18f)]<Date[_0x1ff6a1(0x1a2)]()||_0x2ebea4[_0x1ff6a1(0x167)]!==_0x46eb5e)fail(_0x1ff6a1(0x15e),'Call\x20workspace_list\x20on\x20this\x20connection\x20and\x20use\x20its\x20current\x20bindingToken.');return _0x2ebea4;}[_0x51daa2(0x14c)](_0x2ae987){const _0x2be8c1=_0x51daa2;let _0x161107;if(_0x2ae987['sessionId'])_0x161107=this[_0x2be8c1(0x15f)][_0x2be8c1(0x1a7)](_0x2ae987[_0x2be8c1(0x1a0)]);else{if(this[_0x2be8c1(0x15f)]['size']===0x1)_0x161107=this[_0x2be8c1(0x15f)][_0x2be8c1(0x178)]()['next']()[_0x2be8c1(0x12c)];else{if(this['sessions'][_0x2be8c1(0x14b)]>0x1)fail(_0x2be8c1(0x16d),_0x2be8c1(0x185));}}if(!_0x161107)fail(_0x2be8c1(0x162),_0x2be8c1(0x14d));if(_0x2ae987[_0x2be8c1(0x167)]||_0x2ae987[_0x2be8c1(0x192)]){const _0x3e3806=this[_0x2be8c1(0x133)]['resolve'](_0x2ae987,{'host':this['host']});if(!sameWorkspace(_0x3e3806[_0x2be8c1(0x143)],_0x161107[_0x2be8c1(0x143)]))fail(_0x2be8c1(0x153));}if(_0x2ae987[_0x2be8c1(0x156)]&&!sameWorkspace(_0x2ae987[_0x2be8c1(0x156)],_0x161107[_0x2be8c1(0x143)]))fail(_0x2be8c1(0x153));return _0x161107;}async['handle'](_0x1adfd8){const _0x2b5060=_0x51daa2;if(this[_0x2b5060(0x132)])fail(_0x2b5060(0x19f));const {id:_0x4782bd,method:_0x4d5084,params:params={}}=_0x1adfd8,_0x112b72=_0x46a42f=>({'jsonrpc':_0x2b5060(0x193),'id':_0x4782bd,'result':_0x46a42f});if(_0x4d5084===_0x2b5060(0x17e)||_0x4d5084===_0x2b5060(0x191)){const _0x4b88de=[_0x2b5060(0x179),'2025-03-26','2025-06-18',_0x2b5060(0x15a)],_0x34eb4b=_0x4b88de[_0x2b5060(0x183)](params[_0x2b5060(0x1a9)])?params[_0x2b5060(0x1a9)]:_0x4b88de['at'](-0x1),_0x31748f={...params};_0x31748f['protocolVersion']=_0x34eb4b,this[_0x2b5060(0x17e)]=_0x31748f;const _0x46555d={};_0x46555d[_0x2b5060(0x15b)]=!![];const _0x4a47d6={};return _0x4a47d6[_0x2b5060(0x159)]=_0x46555d,_0x112b72({'protocolVersion':_0x34eb4b,'capabilities':_0x4a47d6,'serverInfo':{'name':_0x2b5060(0x122),'version':require(_0x2b5060(0x17b))['version']},'instructions':_0x2b5060(0x144)});}if(_0x4d5084==='tools/list')return _0x112b72({'tools':structuredClone(this['catalog'])});if(_0x4d5084===_0x2b5060(0x1a4))return _0x112b72({});if(_0x4d5084==='notifications/initialized')return null;const _0x53d7a5={};_0x53d7a5[_0x2b5060(0x16c)]=-0x7f59,_0x53d7a5[_0x2b5060(0x13e)]=_0x2b5060(0x17c);if(_0x4d5084!==_0x2b5060(0x17f))return _0x4782bd===undefined?null:{'jsonrpc':'2.0','id':_0x4782bd,'error':_0x53d7a5};try{const _0x10c537=params['arguments']||{};if(Array[_0x2b5060(0x136)](_0x10c537)||typeof _0x10c537!==_0x2b5060(0x182))fail(_0x2b5060(0x123));validateIdentity(_0x10c537);if(params[_0x2b5060(0x1ac)]!=='workspace_list'&¶ms[_0x2b5060(0x1ac)]!=='mcp_agent_health'&&require(_0x2b5060(0x126))[_0x2b5060(0x13d)](params[_0x2b5060(0x1ac)])&&!_0x10c537[_0x2b5060(0x1a0)])fail(_0x2b5060(0x195),'Mutations\x20require\x20the\x20explicitly\x20bound\x20sessionId.');const _0x7bcb1f=this[_0x2b5060(0x164)]['find'](_0x20984e=>_0x20984e[_0x2b5060(0x1ac)]===params[_0x2b5060(0x1ac)]);if(!_0x7bcb1f){const _0x3791f1=require(_0x2b5060(0x169))[_0x2b5060(0x19e)](params[_0x2b5060(0x1ac)]);if(_0x3791f1&&_0x3791f1[_0x2b5060(0x176)]!==_0x2b5060(0x189)){const _0x4d2b73={};_0x4d2b73[_0x2b5060(0x176)]=_0x3791f1[_0x2b5060(0x176)],_0x4d2b73[_0x2b5060(0x1a0)]=_0x10c537[_0x2b5060(0x1a0)];const _0x545d17={};_0x545d17[_0x2b5060(0x13a)]=_0x2b5060(0x16e),_0x545d17['arguments']=_0x4d2b73;const _0x247e2b={};_0x247e2b['code']=_0x2b5060(0x170),_0x247e2b[_0x2b5060(0x13c)]=_0x545d17;const _0x43570a=Object[_0x2b5060(0x187)](new Error(_0x2b5060(0x155)),_0x247e2b);throw _0x43570a;}fail(_0x2b5060(0x12d),'This\x20gateway\x20has\x20no\x20verified\x20catalog\x20for\x20that\x20tool.');}if(params[_0x2b5060(0x1ac)]===_0x2b5060(0x17a))return _0x112b72(content({'workspaces':this[_0x2b5060(0x133)][_0x2b5060(0x131)]()[_0x2b5060(0x150)](_0x26d34d=>!this[_0x2b5060(0x1a3)]||_0x26d34d['hosts'][_0x2b5060(0x183)](this['host']))['map'](_0x2e1c16=>this['selection'](_0x2e1c16)),'connectionId':this[_0x2b5060(0x1a8)]}));if(params[_0x2b5060(0x1ac)]===_0x2b5060(0x16e)&&!_0x10c537[_0x2b5060(0x1a0)]&&!_0x10c537[_0x2b5060(0x176)])return _0x112b72(content({'registration':_0x2b5060(0x122),'connectionId':this[_0x2b5060(0x1a8)],'boundSessions':this[_0x2b5060(0x15f)]['size'],'backendsStartedByDiscovery':0x0,'serving':'gateway','version':require(_0x2b5060(0x17b))['version']}));for(const _0x16731e of _0x7bcb1f[_0x2b5060(0x12a)][_0x2b5060(0x15c)]||[])if(_0x10c537[_0x16731e]===undefined&&_0x16731e!==_0x2b5060(0x1a0))fail(_0x2b5060(0x160)+_0x16731e[_0x2b5060(0x121)](/([a-z])([A-Z])/g,_0x2b5060(0x12e))['toUpperCase'](),'Required\x20field:\x20'+_0x16731e+'.');const _0x484c03=params[_0x2b5060(0x1ac)]==='session_bootstrap'?await this[_0x2b5060(0x168)](_0x10c537):this['selected'](_0x10c537);if(_0x484c03[_0x2b5060(0x196)]?.[_0x2b5060(0x159)]?.[params[_0x2b5060(0x1ac)]]?.[_0x2b5060(0x145)]===![])fail('PROJECT_TOOL_DISABLED');const _0x46327e={..._0x10c537};_0x46327e[_0x2b5060(0x1a0)]=_0x484c03[_0x2b5060(0x1a0)];const _0x24d196=_0x46327e,_0xa1faf8={...params};_0xa1faf8[_0x2b5060(0x139)]=_0x24d196;const _0x2efef5={..._0x1adfd8};_0x2efef5['params']=_0xa1faf8;const _0x2e6590=await _0x484c03['runtime'][_0x2b5060(0x135)](_0x2efef5);if(params[_0x2b5060(0x1ac)]===_0x2b5060(0x16e)&&_0x10c537[_0x2b5060(0x176)]&&!_0x2e6590[_0x2b5060(0x166)]){const _0x1700e7={};_0x1700e7[_0x2b5060(0x140)]='tools/list',_0x1700e7[_0x2b5060(0x197)]={};const _0xcf321c=await _0x484c03[_0x2b5060(0x188)][_0x2b5060(0x135)](_0x1700e7);let _0x3cb8d3=![];for(const _0x5e9765 of _0xcf321c[_0x2b5060(0x159)]||[]){if(require(_0x2b5060(0x169))[_0x2b5060(0x19e)](_0x5e9765['name'])?.[_0x2b5060(0x176)]!==_0x10c537['backend'])continue;const _0x190ef8=require(_0x2b5060(0x171))[_0x2b5060(0x1a1)](structuredClone(_0x5e9765)),_0x5b86c4=this[_0x2b5060(0x164)][_0x2b5060(0x1aa)](_0x23564c=>_0x23564c[_0x2b5060(0x1ac)]===_0x190ef8['name']);if(_0x5b86c4&&JSON[_0x2b5060(0x1a5)](_0x5b86c4[_0x2b5060(0x12a)])!==JSON[_0x2b5060(0x1a5)](_0x190ef8[_0x2b5060(0x12a)]))fail(_0x2b5060(0x199));!_0x5b86c4&&(this[_0x2b5060(0x164)]['push'](_0x190ef8),_0x3cb8d3=!![]);}if(_0x3cb8d3)this[_0x2b5060(0x12b)]();}return _0x112b72(_0x2e6590);}catch(_0x576442){const _0x347356={};return _0x347356[_0x2b5060(0x13a)]='workspace_list',_0x347356['then']=_0x2b5060(0x161),_0x347356['required']=[_0x2b5060(0x1a0),_0x2b5060(0x167)],_0x112b72({...content({'success':![],'code':_0x576442[_0x2b5060(0x16c)]||_0x2b5060(0x12f),'error':_0x576442['message'],'recovery':_0x576442[_0x2b5060(0x13c)]||([_0x2b5060(0x162),_0x2b5060(0x16d),_0x2b5060(0x18d)][_0x2b5060(0x183)](_0x576442[_0x2b5060(0x16c)])?_0x347356:undefined)}),'isError':!![]});}}async['close'](){const _0x437cfa=_0x51daa2;this[_0x437cfa(0x132)]=!![],await Promise['allSettled']([...this['initializing'][_0x437cfa(0x178)]()][_0x437cfa(0x163)](_0x534575=>_0x534575[_0x437cfa(0x18b)]));const _0xed7352=await Promise['allSettled']([...this[_0x437cfa(0x15f)][_0x437cfa(0x178)]()][_0x437cfa(0x163)](_0xce14f2=>_0xce14f2[_0x437cfa(0x188)][_0x437cfa(0x148)]())),_0x1e3b0c=_0xed7352['find'](_0x5e3e5f=>_0x5e3e5f[_0x437cfa(0x190)]==='rejected');if(_0x1e3b0c)throw _0x1e3b0c[_0x437cfa(0x13f)];this[_0x437cfa(0x15f)][_0x437cfa(0x14f)]();}}const _0xd83b={};_0xd83b[_0x51daa2(0x142)]=WorkspaceGateway,_0xd83b['validateIdentity']=validateIdentity,module[_0x51daa2(0x154)]=_0xd83b;function _0x2e92(){const _0x4763d1=['C2vYDMvYl2rPC2nVDMvY','D29YA3nWywnLugf0Aa','mI4W','C2v0','u0vtu0LptL9jrf9srvfvsvjfra','ChjVzMLSzq','CgfYyw1Z','BM9KztPJCNLWDg8','q0fuquXpr19tq0HftufFq09orKXjq1q','DMvYAwz5u2vSzwn0Aw9U','lI4Vy29Yzs9OB29RlwXLyxnL','mta0nte5oeHYwgPxvq','ndm0mtm4n0D0B0Dtrq','BwfWrxHWB3nLzfrVt3jPz2LUywW','r0furvDbwv9dte9truq','C2vZC2LVBKLK','zgvJB3jHDgvhyxrLD2f5vg9VBa','BM93','Ag9ZDa','CgLUzW','C3rYAw5NAwz5','zw50CMLLCW','z2v0','y29UBMvJDgLVBKLK','ChjVDg9JB2XwzxjZAw9U','zMLUza','mtfMuLzHwwq','BMfTzq','Dw5JB25MAxjTzwq','CMvWBgfJzq','yxb0lw1JCc1Hz2vUDa','su5wquXjrf9buKDvtuvovfm','Aw5PDgLHBgL6Aw5N','yMfZzty0DxjS','lI4Vy29Yzs9JywXSzxiTy29UDgv4Da','C3rYAw5N','nhHSugHAwa','yMLUzgLUz1rVA2vU','Aw5WDxrty2HLBwe','B25dyxrHBg9Nq2HHBMDLza','DMfSDwu','ve9ptf9ot1rFqvzbsuXbqKXf','jdfFjdi','r0furvDbwv9srvfvrvnux0zbsuXfra','ownpq0rHrq','BgLZDa','C3rVChbLza','CMvNAxn0CNK','Cgf0DgvYBG','CMvXDwvZDa','AxnbCNjHEq','lI4Vy29Yzs93B3jRC3bHy2uTCgf0Aa','mZCZmJyWy0jxBuTL','yxjNDw1LBNrZ','Dg9VBa','CMvZB2X2zq','CMvJB3zLCNK','C2vUC2L0AxzLvg9VBa','BwvZC2fNzq','CMvHC29U','Bwv0Ag9K','DgvZDa','v29YA3nWywnLr2f0zxDHEq','D29YA3nWywnL','t25LiefqvcbNyxrLD2f5ihnLCNzLCYbPBNn0ywXSzwqGChjVAMvJDhmUienHBgWGD29YA3nWywnLx2XPC3qSihrOzw4GC2vZC2LVBL9IB290C3rYyxaGD2L0Acb5B3vYihnLC3nPB25jzcbHBMqGDgHLihbYB2PLy3qGD29YA3nWywnLswqUiefSD2f5CYbWyxnZihrOyxqGC2vZC2LVBKLKig9Uihn1yNnLCxvLBNqGy2fSBhmUie5LDMvYigjPBMqGAg9TzsbVCIbZzwXLy3qGysbWCM9Qzwn0igzYB20GCMvJzw5JEs4','zw5HyMXLza','CNvUDgLTzuzHy3rVCNK','odm5nZzvyKfbufe','y2XVC2u','CMfUzg9TqNL0zxm','ugfZCYb0AguGC2fTzsbUB25LBxb0EsbZzxnZAw9UswqGDgHYB3vNAg91Dcb0AgLZignOyxqU','C2L6zq','C2vSzwn0zwq','q2fSBcb3B3jRC3bHy2vFBgLZDcWGDgHLBIbZzxnZAw9Ux2jVB3rZDhjHCcb3AxrOihnLC3nPB25jzcbHBMqGD29YA3nWywnLswqU','mtyWmZuWmZbsBfnrzuu','y2XLyxi','zMLSDgvY','zgvSzxrL','Dgv4Da','v09ss1nqqunfx0jjtKrjtKDFq09orKXjq1q','zxHWB3j0CW','vgHPCYbHzgrVBIbUzwvKCYbPBNrLBNrPB25HBcbJyxrHBg9NigrPC2nVDMvYEtSGy2fSBcbTy3bFywDLBNrFAgvHBhrOihDPDgGGAxrZigjHy2TLBMqGyw5KihnLC3nPB25jzc4','ChjVAMvJDfbHDgG','CMfUzg9Tvvvjra','su5wquXjrf8','Dg9VBhm','mJaYns0Xms0Ynq','BgLZDenOyw5Nzwq','CMvXDwLYzwq','zgvZy3jPChrPB24','r0furvDbwv9truXfq1rjt05FuKvrvuLsruq','C2vZC2LVBNm','tuLtu0Lor18','C2vZC2LVBL9IB290C3rYyxa','v09ss1nqqunfx0jjtKrjtKDFuKvrvuLsruq','BwfW','y2f0ywXVzW','C2vSzwn0Aw9U','AxnfCNjVCG','D29YA3nWywnLswq','yMLUza','lI9YB3v0zxi','CNvUswq','yMLUzgLUz1nLBgvJDgLVBNm','y29Kzq','v09ss1nqqunfx0fnqKLhvu9vuW','BwnWx2fNzw50x2HLywX0Aa','yxnZzxj0q3vYCMvUDa','qKfds0vorf9dqvrbte9hx0rju0npvKvswv9srvfvsvjfra','lI9WDwjSAwmTy2f0ywXVzW','B2jZzxj2zuHVB2Tdyw5JzwXSyxrPB24','mtzVwMX2wuu','CMvNAxn0CMf0Aw9U','mJyWCK1dCM5o','yMfJA2vUza','r0furvDbwv9truXfq1rjt05FteLnsvq','DMfSDwvZ','mJaYnc0Xms0Wnq','D29YA3nWywnLx2XPC3q','lI4VlI4VCgfJA2fNzs5QC29U','twv0Ag9Kig5VDcbMB3vUza','zNvUy3rPB24','Aw5PDgLHBgL6zq','Dg9VBhmVy2fSBa','BgvHC2u','Dg9vChbLCKnHC2u','B2jQzwn0','Aw5JBhvKzxm','Bwf4tgvUz3rO','ugfZCYbZzxnZAw9Uswq7ihrOAxmGy29UBMvJDgLVBIbZzxj2zxmGBxvSDgLWBguGChjVAMvJDcbZzxnZAw9UCY4','r0furvDbwv9svu5usu1fx1voqvzbsuXbqKXf','yxnZAwDU','CNvUDgLTzq','x2j1AwX0Aw4','mtqWotKXndHRv0jOwMS','ChjVBwLZzq','mZi3otu2nfzsq3DduG','v09ss1nqqunfx05pvf9sruDju1rfuKve','BgvUz3rO','zxHWAxjLC0f0','C3rHDhvZ'];_0x2e92=function(){return _0x4763d1;};return _0x2e92();}
|
package/src/templates/AGENTS.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
At session start and after context recovery, call `session_bootstrap` for this workspace and read `docs/agents/apt-runtime.md` once per context. Read project conventions in `.agents/memory/MEMORY.md`; retrieve only relevant dynamic memory. Report unavailable backends once and use available fallbacks.
|
|
4
4
|
|
|
5
|
-
For new or changed intent, call `route_request` with the target, stack and explicit skills.
|
|
5
|
+
For new or changed intent, call `route_request` with the target, stack and explicit skills. Load what `pipeline_next` names: skills with `skill_load`, the specialist with `context_load`; work as it and brief workers the same. Do not load the full trigger catalog or repeat rules on every tool call.
|
|
6
6
|
|
|
7
7
|
Before code changes, bind `pipeline_status` and `pipeline_start` or `pipeline_use` to an explicit task, runId and workspace. Reserve with `pipeline_next`; verify and checkpoint current code before completion. Read-only questions, review and existing tests need no code-change pipeline. Clarify only unresolved decisions.
|
|
8
8
|
|
package/src/templates/CLAUDE.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
At session start and after context recovery, call `session_bootstrap` for this workspace and read `docs/agents/apt-runtime.md` once per context. Read project conventions in `.agents/memory/MEMORY.md`; retrieve only relevant dynamic memory. Report unavailable backends once and use available fallbacks.
|
|
4
4
|
|
|
5
|
-
For new or changed intent, call `route_request` with the target, stack and explicit skills.
|
|
5
|
+
For new or changed intent, call `route_request` with the target, stack and explicit skills. Load what `pipeline_next` names: skills with `skill_load`, the specialist with `context_load`; work as it and brief workers the same. Do not load the full trigger catalog or repeat rules on every tool call.
|
|
6
6
|
|
|
7
7
|
Before code changes, bind `pipeline_status` and `pipeline_start` or `pipeline_use` to an explicit task, runId and workspace. Reserve with `pipeline_next`; verify and checkpoint current code before completion. Read-only questions, review and existing tests need no code-change pipeline. Clarify only unresolved decisions.
|
|
8
8
|
|
package/src/templates/GEMINI.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
At session start and after context recovery, call `session_bootstrap` for this workspace and read `docs/agents/apt-runtime.md` once per context. Read project conventions in `.agents/memory/MEMORY.md`; retrieve only relevant dynamic memory. Report unavailable backends once and use available fallbacks.
|
|
4
4
|
|
|
5
|
-
For new or changed intent, call `route_request` with the target, stack and explicit skills.
|
|
5
|
+
For new or changed intent, call `route_request` with the target, stack and explicit skills. Load what `pipeline_next` names: skills with `skill_load`, the specialist with `context_load`; work as it and brief workers the same. Do not load the full trigger catalog or repeat rules on every tool call.
|
|
6
6
|
|
|
7
7
|
Before code changes, bind `pipeline_status` and `pipeline_start` or `pipeline_use` to an explicit task, runId and workspace. Reserve with `pipeline_next`; verify and checkpoint current code before completion. Read-only questions, review and existing tests need no code-change pipeline. Clarify only unresolved decisions.
|
|
8
8
|
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
2. Call `route_request` for a new request or changed intent, including target package/stack and explicit skills. Load the selected specialist and companion skills with `skill_load`. Do not read the complete trigger catalog into the model context.
|
|
5
5
|
3. Read-only questions, reviews and running existing tests do not require a code-change pipeline. Before executable changes, inspect `pipeline_status` and bind `pipeline_start` or `pipeline_use` with canonical task/run identity and an explicit workspace.
|
|
6
6
|
4. Small changes use scope, fix/check and review. Features use clarification only where needed, a plan with acceptance criteria, implementation, verification, review and acceptance. Bug fixes start with diagnosis and regression coverage. Do not require three questions, a PRD or external issues when the task is already clear.
|
|
7
|
-
5. Use `pipeline_next` to reserve work before dispatch
|
|
7
|
+
5. Use `pipeline_next` to reserve work before dispatch, and call the native spawn tool with its `spawnArguments` as given. Codex model overrides use a fresh brief with `fork_turns:"none"` and the exact `nativeTaskName`; a follow-up cannot change an existing worker's model. Include APT attempt, actor and session markers in the brief. Delegate useful independent research and reviews to native host subagents, with at most four active actors including the coordinator. Report `capabilities.subagents` and `capabilities.maxAgents` at bootstrap to reserve more than one worker. A writer is exclusive in its workspace unless it is confined. To write in parallel, mark work items `parallel: true` with disjoint `scope` path prefixes at the plan checkpoint, then reserve one writer per item with `pipeline_next(workItemId, actorId, role:"writer")`. The host hook denies a confined writer's file edits outside its scope; shell commands are not path-checked, so keep them inside it. Each writer ends with `action="report"`. Consume the reports and run `pipeline_verify` after every parallel writer has reported. `parallelWrite:false` reserves a parallel item exclusively when its scope proves too narrow. Workers must not start/reset/rebind the parent pipeline.
|
|
8
8
|
6. Pin a quality plan for new executable runs: stable criteria, expected outcomes, concrete check IDs, target platforms and required review roles. Use `pipeline_verify` with a supported test report and named assertions, then `pipeline_checkpoint` with the current evidence IDs. Exit code, build, screenshot or a free-form summary cannot prove functional acceptance. Missing required checks keep the run unaccepted.
|
|
9
|
-
7. Record separate technical and Product/UX review verdicts when the work affects a user flow. Review staged, unstaged and relevant untracked changes. Keep finding IDs open across reviews until a current fix or reasoned dismissal is confirmed by a reviewer. The native reviewer records its own structured verdict with `pipeline_checkpoint(action="review")`; nested work items use `spec`/`quality`, while run-level review uses `technical`/`product`. High-risk work needs host proof of the reviewer and verdict authorship; actor names, worker receipts alone and self-reported models do not prove it. Rerun checks after affected changes. Review-only requests produce findings, not unsolicited edits or MR comments.
|
|
9
|
+
7. Record separate technical and Product/UX review verdicts when the work affects a user flow. Review staged, unstaged and relevant untracked changes. Keep finding IDs open across reviews until a current fix or reasoned dismissal is confirmed by a reviewer. The native reviewer records its own structured verdict with `pipeline_checkpoint(action="review")`; nested work items use `spec`/`quality`, while run-level review uses `technical`/`product`. High-risk work needs host proof of the reviewer and verdict authorship; actor names, worker receipts alone and self-reported models do not prove it. When acceptance lacks that proof, refresh the reviewer's receipts first, then reserve a reviewer at acceptance with `reviewStages` for the stage still unproven. Rerun checks after affected changes. Review-only requests produce findings, not unsolicited edits or MR comments.
|
|
10
10
|
8. `pipeline_verify(kind="review")` cannot satisfy a review gate and is rejected before command execution. Use the `requiredReview` returned by `pipeline_next`, then record a structured review on the reserved attempt. Stop after ten repair/check attempts per work item or three repeated outcomes without progress. Preserve budgets and blocked/paused states across resume. User interruption always wins over continuation hooks.
|
|
11
11
|
9. Native tool enforcement and automatic continuation depend on observed host capability. If unavailable, use sequential execution and state that limitation. Never claim independent review without an independent reviewer.
|
|
12
12
|
10. Keep prose short and clear, reuse existing code, and load only current-step references. Strong caveman style is opt-in. Publishing, merging and external communication require authorization for those actions.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
At session start and after context recovery, call `session_bootstrap` for this workspace and read `docs/agents/apt-runtime.md` once per context. Read project conventions in `.agents/memory/MEMORY.md`; retrieve only relevant dynamic memory. Report unavailable backends once and use available fallbacks.
|
|
4
4
|
|
|
5
|
-
For new or changed intent, call `route_request` with the target, stack and explicit skills.
|
|
5
|
+
For new or changed intent, call `route_request` with the target, stack and explicit skills. Load what `pipeline_next` names: skills with `skill_load`, the specialist with `context_load`; work as it and brief workers the same. Do not load the full trigger catalog or repeat rules on every tool call.
|
|
6
6
|
|
|
7
7
|
Before code changes, bind `pipeline_status` and `pipeline_start` or `pipeline_use` to an explicit task, runId and workspace. Reserve with `pipeline_next`; verify and checkpoint current code before completion. Read-only questions, review and existing tests need no code-change pipeline. Clarify only unresolved decisions.
|
|
8
8
|
|
|
@@ -7,7 +7,7 @@ alwaysApply: true
|
|
|
7
7
|
|
|
8
8
|
At session start and after context recovery, call `session_bootstrap` for this workspace and read `docs/agents/apt-runtime.md` once per context. Read project conventions in `.agents/memory/MEMORY.md`; retrieve only relevant dynamic memory. Report unavailable backends once and use available fallbacks.
|
|
9
9
|
|
|
10
|
-
For new or changed intent, call `route_request` with the target, stack and explicit skills.
|
|
10
|
+
For new or changed intent, call `route_request` with the target, stack and explicit skills. Load what `pipeline_next` names: skills with `skill_load`, the specialist with `context_load`; work as it and brief workers the same. Do not load the full trigger catalog or repeat rules on every tool call.
|
|
11
11
|
|
|
12
12
|
Before code changes, bind `pipeline_status` and `pipeline_start` or `pipeline_use` to an explicit task, runId and workspace. Reserve with `pipeline_next`; verify and checkpoint current code before completion. Read-only questions, review and existing tests need no code-change pipeline. Clarify only unresolved decisions.
|
|
13
13
|
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
For Figma and Stitch tool names and authentication, read `docs/agents/design-config.md` when working on design tasks.
|
|
6
6
|
|
|
7
|
-
- Bootstrap: `session_bootstrap(sessionId, contextEpoch, host, capabilities)` identifies this context and reports resumable work.
|
|
7
|
+
- Bootstrap: `session_bootstrap(sessionId, contextEpoch, host, capabilities)` identifies this context and reports resumable work. Report your worker tool in `capabilities.nativeDispatch`. Naming the tool is enough on Claude Code (`{tool:"Agent"}`); on Codex name it with the model IDs it accepts (`{tool:"spawn_agent", models:["gpt-6-luna","gpt-5.6-sol"]}`). APT knows the model, effort and fork fields of these tools, keeps model IDs you declared earlier in the session, and on Codex uses the list another session of the workspace declared when you give none. Send `selection:"inherit"` only to keep every worker on your model. Pass the model `pipeline_next` pins: a launch without it is refused with NATIVE_SELECTOR_MISMATCH. On Claude Code APT asks for a cheaper model per task (`haiku`, `sonnet`, or `opus` under a coordinator that ranks above it), never for a model above yours, and leaves the field unset when the task needs your model. This coordinator declaration permits a request, but is not a host-observed model receipt. An absent capability field means unknown, not a permanent denial.
|
|
8
8
|
- Route: `route_request(sessionId, requestId, prompt, target, stack, explicitSkills)` returns the workflow, specialist, review roles, platform verification requirements and phase-specific skills. Load current-step skills with `skill_load` and agent/workflow content with `context_load` for each new worker or context epoch. Start the run with the pipeline it returns, which follows what the request produces: research that only answers needs no run, a PRD, report, guide, translation or research write-up is `document-artifact` also when scripts build it, and only a change to code is `bugfix`, `hotfix`, `feature` or `high-risk`. A document run gets its writer, a spec review per item and the quality review of the run; give its workers the research and writing task, not code or test work.
|
|
9
9
|
- Models: `model_list(sessionId, offset, limit, query)` reports advertised, requestable and eligible models with source, account scope and coverage. CLI and Codex local cache entries are reference only. Use the pinned `nativeDispatch` from `pipeline_next`; compare its selector with the actual spawn arguments, then keep the host-reported worker model separate. An `inherit` selector or a model chosen in the IDE does not confirm a child model.
|
|
10
10
|
- Start: `pipeline_start(pipeline, task, workspace, acceptanceCriteria, scope, qualityPlan, productImpact, sessionId)` creates a versioned run. Give `scope` the narrowest directory prefixes the task changes, such as `docs/guide/`, never the whole workspace or a pattern: runs of other host sessions work in the same checkout at the same time only when the scopes do not overlap, and a run is confined to its scope while it shares the checkout. Bootstrap the session in the intended workspace first. `workspace` is a schema-valid object, such as `{mode:"current",confirmed:true}`; a string or an unbound global server cannot create a run. Use the canonical `apt-mcp-agent` gateway, selecting a registered project with `workspace_list` then `session_bootstrap(sessionId, workspaceId, bindingToken)` first. Preserve that session ID on later calls. Legacy connections keep their reported alias until migration. New executable runs require at least one acceptance criterion string that exactly matches `qualityPlan.criteria[].expectedOutcome`. The plan uses `criteria: [{id, expectedOutcome, source, checkIds}]`, `checks: [{id, criterionIds, format, testIds, required}]`, and `reviews: [{id, required}]`. A recent user-facing web or mobile route requires its platform check and Product review. Use `pipeline_use(task, runId)` to resume the same run.
|
|
11
|
-
- Execute: `pipeline_next(task, runId, sessionId, role, requestId)` reserves an attempt.
|
|
11
|
+
- Execute: `pipeline_next(task, runId, sessionId, role, requestId)` reserves an attempt. A run takes the specialist and the skills per stage of the task's route; a run started without a route is routed from its task, criteria and scope. `pipeline_next` returns the step's `skills` and the run's `specialist`: whoever performs the step, you or a worker, first calls `skill_load` for each skill and `context_load(kind="agent", id=<specialist>)`, and works as that specialist. Its `spawnArguments` are the arguments of the native spawn call: pass them as given, replacing only the brief placeholder with a brief that contains `briefMarkers`. They carry the exact `nativeTaskName`, model, reasoning effort and fork mode; a spawn without them runs the worker on your own model, and the next reservation says so in `dispatchWarning`. Its `complexity` and `risk` arguments set the worker's model tier. Leave them at `normal` unless the task needs otherwise: `high` is for a change to a shared interface, to security or to stored data, and runs on the strongest model, which is often your own. A task that makes no progress twice is raised to that model without a rating. On a high-risk run every writer gets that model; reviewers and researchers keep their rating. A researcher rated `low` runs on the fastest model. Codex model overrides require `fork_turns:"none"`; put `APT_ATTEMPT_ID`, `APT_ACTOR_ID` and `APT_SESSION_ID` in the fresh worker brief. A `followup_task` keeps the existing worker's model; dispatch a new worker when a new model is required. The coordinator controls transitions. Resource and quota waits remain resumable. When a step answers `WORKSPACE_BUSY` with `waiting:true`, call `pipeline_checkpoint(action="resource-wait", reason="workspace_busy", workerStopped=true)` and retry later; do not pause the run. Reading next to an active writer of the same run needs no reservation: on Claude Code launch an `Explore` or `Plan` agent without APT markers. Writers are exclusive by default. Work items planned with `parallel: true` and disjoint `scope` prefixes reserve confined writers that run at the same time, one per item and at most four actors in total; `parallelWrite:true` confines a writer on an unmarked scoped item and `parallelWrite:false` reserves a marked item exclusively. A confined writer cannot edit files outside its scope and reports with `action="report"`; verification runs after all parallel writers have reported. A work item planned with `risk: "low"` is accepted after its spec review when the run is not high-risk and none of its changed files is sensitive (auth, permission, API, schema, migration, lock or runtime files) or changes a public contract; otherwise it keeps the quality review, and the item records why in `reviewDepth`. Mark an item low only for copy, styling or internal changes with no public surface. A reviewer records `pipeline_checkpoint(action="review")` with `review.findings`, each `{id, message}` and optionally `severity` and `required`. One reviewer covers an item: `pipeline_next` returns `requiredReview.stages` `["spec","quality"]` (only `spec` for a low-risk item or a document run), and the reviewer records `action="review"` once per stage. The last stage, or the first failed one, files its report and releases the attempt; consume it with `consume-report`, no separate `report` is needed. A later review of the item gets `reviewFocus`: the earlier findings and the files changed since the last review. The run review can be split: pass `reviewStages`, for example `["technical"]`, to `pipeline_next` for each reviewer; without it a reviewer gets every stage not yet assigned. A run started on 3.5.38 or later blocks only on findings of severity high or blocker, or with `criterionId` for a failed acceptance criterion; give security and data-loss defects severity high. Other findings stay open as the run's hardening list (`quality.hardening`, and a section of progress.md) and hold nothing; `qualityPlan.blocking:"all"` restores blocking on every required finding. A confirmed finding stays closed until a review reports it again. Writers get their item's `openFindings` and the defects fixed in other items as `siblingFindings`. Keep handoff and record files outside the scope of code items: moving files out of an accepted item reopens it. A writer that runs the checks of its item with `pipeline_verify(checkId)` before it reports spares the verify stage: `pipeline_next` then returns `currentChecks`, and the verify checkpoint takes those evidence IDs without running the checks again. Plan related packages as work items of one run rather than one run each, so the run review and acceptance happen once. When a review failed or its reviewer stopped without a verdict, consume the report with `status:"failed"` and a `blocker` to return to implementation, or reserve a new reviewer with `pipeline_next(workItemId)`. When acceptance answers `INDEPENDENT_REVIEW_REQUIRED`, call `pipeline_checkpoint(action="refresh-receipts")` for the technical reviewer's attempt and checkpoint acceptance again; if the review is still not host-observed, reserve a reviewer at acceptance with `pipeline_next(role:"reviewer", reviewStages:["technical"])`, let it record its review, and consume its report, which completes acceptance. Do not reset the run or change its criteria for this. Codex leaves an MCP server that is still starting out of a new worker's tools: a Codex worker whose tool list lacks the APT tools lists them again after a few seconds, and if they are still missing it says so and stops without a verdict.
|
|
12
12
|
- Verify: `pipeline_verify` records authorized argv execution under the run workspace. For functional acceptance, pass `checkId`, supported `reportFormat` and named test IDs in the pinned plan. A `reportPath` is a workspace-relative path below `.agents/runtime/`, such as `.agents/runtime/reports/<checkId>.json`, that the command writes and that does not exist yet. Zero, skipped or unreadable tests and unrelated successful commands remain unverified. `pipeline_verify(kind="review")` is rejected before running a command. Read `pipeline_next.requiredReview`: nested work items require `spec`/`quality`, while run-level gates require `technical`/`product`. The reserved reviewer records its own structured verdict with `pipeline_checkpoint(action="review")`; resolution of a persistent finding needs current evidence and later reviewer confirmation. A finding raised by the review of a work item belongs to that item: it holds that item's reviews and the completion of the run, not the reviews of other items, and a change outside the item's scope does not reopen it. A failed round that leaves other findings open than the round before counts as progress. A direct start without a bound route needs Technical `impactAssessment` before acceptance. User-flow impact requires Product review and platform checks. Missing required platform checks leave the run unaccepted.
|
|
13
13
|
- Inspect: `pipeline_status` reports current criterion/check status, open findings, reviewer provenance and pending creation intents without binding sessions. `pipeline_start`, `pipeline_use`, `pipeline_reset` and `pipeline_checkpoint` answer with a summary of the run: the last evidence records, open findings without their history, and the attempts in flight. `pipeline_status(task, runId)` returns the full record. A reported attempt's own evidence is attached when its report is consumed. `pipeline_reset(task, runId, sessionId, confirm:true, target:"creation")` abandons a matching unfinished intent while preserving its file. The default `target:"run"` cancels a run without deleting history. `pipeline_prepare_merge` only prepares a report.
|
|
14
14
|
- After an APT update: the update pauses open runs with reason `runtime-upgrade` and keeps their steps, items, evidence and budgets. Bind the run with `pipeline_use(task, runId)` and continue it with `pipeline_checkpoint(action="resume")`; do not start a new run. A run paused by its attempt budget resumes only with `grantAttempts` after the user has answered in this session: `true` grants ten attempts, a number up to 100 grants that many, so ask the user how many when the work may run unattended. A user may also grant in advance, for example "allow up to 40 attempts" before leaving the work running: record it at once with `pipeline_checkpoint(action="resume", grantAttempts=40)` on the running run. It raises the limit of every item without pausing the run, and only a message of the user in this session counts. When a failed run review leaves findings of the run open, reserve a writer for the item whose code they concern with `pipeline_next(workItemId)`; that reopens the accepted item. Item reviews do not wait for findings of the run.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
At session start and after context recovery, call `session_bootstrap` for this workspace and read `docs/agents/apt-runtime.md` once per context. Read project conventions in `.agents/memory/MEMORY.md`; retrieve only relevant dynamic memory. Report unavailable backends once and use available fallbacks.
|
|
4
4
|
|
|
5
|
-
For new or changed intent, call `route_request` with the target, stack and explicit skills.
|
|
5
|
+
For new or changed intent, call `route_request` with the target, stack and explicit skills. Load what `pipeline_next` names: skills with `skill_load`, the specialist with `context_load`; work as it and brief workers the same. Do not load the full trigger catalog or repeat rules on every tool call.
|
|
6
6
|
|
|
7
7
|
Before code changes, bind `pipeline_status` and `pipeline_start` or `pipeline_use` to an explicit task, runId and workspace. Reserve with `pipeline_next`; verify and checkpoint current code before completion. Read-only questions, review and existing tests need no code-change pipeline. Clarify only unresolved decisions.
|
|
8
8
|
|