apt-mcp-agent-setup 3.5.30 → 3.5.35
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 +1 -1
- package/bin/cli.js +1 -1
- package/build-input.json +45 -26
- 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 +162 -159
- 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/profiles.js +1 -1
- 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 -0
- 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-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 -0
- 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/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/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 -0
- package/src/proxy/server.js +1 -1
- package/src/proxy/workspace-gateway.js +1 -1
- package/src/templates/mcp-tools.md +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x3d94bd=_0x30ec;function _0x30ec(_0x4f6e67,_0x46cfee){_0x4f6e67=_0x4f6e67-0x185;const _0x198f9e=_0x198f();let _0x30ecc5=_0x198f9e[_0x4f6e67];if(_0x30ec['kAsOLv']===undefined){var _0x33ece1=function(_0x108297){const _0x268e43='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2660f7='',_0x354e57='';for(let _0x422264=0x0,_0x2b6175,_0x12d497,_0xbb17b7=0x0;_0x12d497=_0x108297['charAt'](_0xbb17b7++);~_0x12d497&&(_0x2b6175=_0x422264%0x4?_0x2b6175*0x40+_0x12d497:_0x12d497,_0x422264++%0x4)?_0x2660f7+=String['fromCharCode'](0xff&_0x2b6175>>(-0x2*_0x422264&0x6)):0x0){_0x12d497=_0x268e43['indexOf'](_0x12d497);}for(let _0x21c079=0x0,_0x1fb16e=_0x2660f7['length'];_0x21c079<_0x1fb16e;_0x21c079++){_0x354e57+='%'+('00'+_0x2660f7['charCodeAt'](_0x21c079)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x354e57);};_0x30ec['VrRoyl']=_0x33ece1,_0x30ec['RmSnrY']={},_0x30ec['kAsOLv']=!![];}const _0x187204=_0x198f9e[0x0],_0x2fcf98=_0x4f6e67+_0x187204,_0x54b414=_0x30ec['RmSnrY'][_0x2fcf98];return!_0x54b414?(_0x30ecc5=_0x30ec['VrRoyl'](_0x30ecc5),_0x30ec['RmSnrY'][_0x2fcf98]=_0x30ecc5):_0x30ecc5=_0x54b414,_0x30ecc5;}(function(_0x1fb0b2,_0xf08619){const _0x49814e=_0x30ec,_0x4af1ec=_0x1fb0b2();while(!![]){try{const _0x56f257=parseInt(_0x49814e(0x1da))/0x1*(-parseInt(_0x49814e(0x192))/0x2)+-parseInt(_0x49814e(0x1f8))/0x3+parseInt(_0x49814e(0x19a))/0x4*(parseInt(_0x49814e(0x1a1))/0x5)+parseInt(_0x49814e(0x20b))/0x6+parseInt(_0x49814e(0x1b9))/0x7+-parseInt(_0x49814e(0x1d2))/0x8+parseInt(_0x49814e(0x20e))/0x9*(parseInt(_0x49814e(0x1b8))/0xa);if(_0x56f257===_0xf08619)break;else _0x4af1ec['push'](_0x4af1ec['shift']());}catch(_0x508344){_0x4af1ec['push'](_0x4af1ec['shift']());}}}(_0x198f,0x55277));const crypto=require('node:crypto'),{WorkspaceRegistry}=require(_0x3d94bd(0x18d)),{gatewayCatalog}=require(_0x3d94bd(0x1e6)),{sameWorkspace}=require(_0x3d94bd(0x1aa)),contracts=require(_0x3d94bd(0x1e8)),fail=(_0x48b0a5,_0xe59408=_0x48b0a5)=>{const _0x5c4cbf=_0x3d94bd,_0x43fad1={};_0x43fad1[_0x5c4cbf(0x18c)]=_0x48b0a5;throw Object[_0x5c4cbf(0x18a)](new Error(_0xe59408),_0x43fad1);},content=_0x159472=>({'content':[{'type':'text','text':JSON[_0x3d94bd(0x1c7)](_0x159472)}]});function validateIdentity(_0x2ac590){const _0x1e2710=_0x3d94bd,_0x2fd908={};_0x2fd908[_0x1e2710(0x1c5)]=contracts[_0x1e2710(0x1c5)],_0x2fd908['requestId']=contracts[_0x1e2710(0x196)],_0x2fd908['task']=contracts[_0x1e2710(0x1ff)],_0x2fd908[_0x1e2710(0x205)]=contracts[_0x1e2710(0x205)];for(const [_0x3103ca,_0xc14de6]of Object[_0x1e2710(0x1c3)](_0x2fd908)){if(_0x2ac590[_0x3103ca]===undefined)continue;const _0x452e6d=_0x2ac590[_0x3103ca];if(typeof _0x452e6d!==_0x1e2710(0x1c4)||!_0x452e6d[_0x1e2710(0x1fc)]()||_0x452e6d[_0x1e2710(0x1d1)]>_0xc14de6[_0x1e2710(0x190)]||_0xc14de6[_0x1e2710(0x199)]&&!new RegExp(_0xc14de6[_0x1e2710(0x199)])[_0x1e2710(0x19f)](_0x452e6d))fail(_0x1e2710(0x213)+_0x3103ca[_0x1e2710(0x1e9)](/([a-z])([A-Z])/g,_0x1e2710(0x197))[_0x1e2710(0x212)](),_0xc14de6[_0x1e2710(0x1ec)]);}}class WorkspaceGateway{constructor(_0x77d48a={}){const _0x539957=_0x3d94bd;this[_0x539957(0x1d9)]=_0x77d48a['registry']||new WorkspaceRegistry(),this[_0x539957(0x201)]=_0x77d48a[_0x539957(0x201)],this['host']=_0x77d48a[_0x539957(0x1a5)]||null,this['connectionId']=_0x77d48a[_0x539957(0x1d5)]||crypto[_0x539957(0x1b5)](),this[_0x539957(0x186)]=new Map(),this['initializing']=new Map(),this['bindingSelections']=new Map(),this[_0x539957(0x19c)]=gatewayCatalog(),this['onCatalogChanged']=_0x77d48a['onCatalogChanged']||(()=>{}),this[_0x539957(0x1c6)]=null,this[_0x539957(0x1e5)]=![];}async[_0x3d94bd(0x202)](_0x4296e3,_0x21372d={}){const _0x5c69a1=_0x3d94bd;_0x21372d[_0x5c69a1(0x1e1)]?.['assertCurrent']();if(!_0x4296e3[_0x5c69a1(0x1c5)])fail(_0x5c69a1(0x1a2),'Pass\x20the\x20same\x20nonempty\x20sessionId\x20throughout\x20this\x20chat.');const _0x81a76f=this[_0x5c69a1(0x186)][_0x5c69a1(0x1b4)](_0x4296e3[_0x5c69a1(0x1c5)]);if(_0x81a76f&&!_0x4296e3[_0x5c69a1(0x18e)]&&!_0x4296e3[_0x5c69a1(0x1e4)])return _0x81a76f;const _0x3465c2=this[_0x5c69a1(0x1b7)][_0x5c69a1(0x1b4)](_0x4296e3[_0x5c69a1(0x1c5)]);if(_0x3465c2&&!_0x4296e3['workspaceId']&&!_0x4296e3[_0x5c69a1(0x1e4)])return _0x3465c2[_0x5c69a1(0x1d8)];const _0x56f2af=this[_0x5c69a1(0x1d9)][_0x5c69a1(0x1f6)](_0x4296e3,{'host':this['host']});if(_0x4296e3[_0x5c69a1(0x1b3)])this['verifySelection'](_0x4296e3[_0x5c69a1(0x1b3)],_0x56f2af[_0x5c69a1(0x18e)]);if(_0x81a76f){if(!sameWorkspace(_0x56f2af[_0x5c69a1(0x194)],_0x81a76f['workspace']))fail(_0x5c69a1(0x203));return _0x81a76f;}if(this[_0x5c69a1(0x1b7)]['has'](_0x4296e3['sessionId'])){const _0xd4e6d8=this[_0x5c69a1(0x1b7)][_0x5c69a1(0x1b4)](_0x4296e3[_0x5c69a1(0x1c5)]);if(!sameWorkspace(_0xd4e6d8[_0x5c69a1(0x194)],_0x56f2af[_0x5c69a1(0x194)]))fail(_0x5c69a1(0x203));return _0xd4e6d8[_0x5c69a1(0x1d8)];}const _0x15e893={};_0x15e893[_0x5c69a1(0x1d5)]=this[_0x5c69a1(0x1d5)],_0x15e893[_0x5c69a1(0x1c5)]=_0x4296e3['sessionId'],_0x15e893['workspace']=_0x56f2af[_0x5c69a1(0x194)],_0x15e893['workspaceId']=_0x56f2af[_0x5c69a1(0x18e)],_0x15e893[_0x5c69a1(0x1d4)]=_0x5c69a1(0x1f1),_0x15e893[_0x5c69a1(0x198)]='caller-selected',_0x15e893['nativeIdentity']=_0x5c69a1(0x200);const _0x33d2c1=_0x15e893,_0x406d4f=((async()=>{const _0x157fc0=_0x5c69a1;if(typeof this['runtimeFactory']!==_0x157fc0(0x187))fail(_0x157fc0(0x211));const _0x4fd761=_0x56f2af[_0x157fc0(0x1bc)]?.[this['host']]||{},_0x3ad42a=await this[_0x157fc0(0x201)](_0x33d2c1,this['initialize']||{},_0x4fd761);try{if(_0x21372d[_0x157fc0(0x1e1)])await require(_0x157fc0(0x1ad))[_0x157fc0(0x20c)](_0x21372d[_0x157fc0(0x1e1)]);}catch(_0x4c5067){await _0x3ad42a['close']();throw _0x4c5067;}this[_0x157fc0(0x1e5)]&&(await _0x3ad42a[_0x157fc0(0x1dd)](),fail(_0x157fc0(0x1d3)));const _0x5898e8={..._0x33d2c1};_0x5898e8[_0x157fc0(0x1fa)]=_0x3ad42a,_0x5898e8[_0x157fc0(0x1ee)]=_0x4fd761;const _0x1eea8f=_0x5898e8;return _0x21372d[_0x157fc0(0x1e1)]?.[_0x157fc0(0x1af)](),this[_0x157fc0(0x186)]['set'](_0x4296e3[_0x157fc0(0x1c5)],_0x1eea8f),_0x1eea8f;})()),_0x375910={};_0x375910[_0x5c69a1(0x194)]=_0x56f2af[_0x5c69a1(0x194)],_0x375910[_0x5c69a1(0x1d8)]=_0x406d4f,this['initializing'][_0x5c69a1(0x1c0)](_0x4296e3[_0x5c69a1(0x1c5)],_0x375910);try{return await _0x406d4f;}finally{this[_0x5c69a1(0x1b7)][_0x5c69a1(0x1ef)](_0x4296e3[_0x5c69a1(0x1c5)]);}}[_0x3d94bd(0x1a3)](_0x2ce047){const _0x4de9fa=_0x3d94bd;for(const [_0x20bfa3,_0xbb2c2c]of this[_0x4de9fa(0x209)])if(_0xbb2c2c[_0x4de9fa(0x1fb)]<Date['now']())this['bindingSelections']['delete'](_0x20bfa3);if(this[_0x4de9fa(0x209)]['size']>=0x1000)fail(_0x4de9fa(0x1ab));const _0x4cc5b3=this['connectionId']+'.'+crypto['randomBytes'](0x20)[_0x4de9fa(0x1f3)](_0x4de9fa(0x19b));this[_0x4de9fa(0x209)][_0x4de9fa(0x1c0)](_0x4cc5b3,{'workspaceId':_0x2ce047[_0x4de9fa(0x18e)],'expiresAt':Date['now']()+0xdbba0});const _0xf5d380={};return _0xf5d380[_0x4de9fa(0x18e)]=_0x2ce047[_0x4de9fa(0x18e)],_0xf5d380['workspace']=_0x2ce047['workspace'],_0xf5d380[_0x4de9fa(0x1b3)]=_0x4cc5b3,_0xf5d380;}[_0x3d94bd(0x208)](_0x53ba76,_0x590462){const _0x50e7a4=_0x3d94bd,_0x1ef5ca=this['bindingSelections'][_0x50e7a4(0x1b4)](_0x53ba76);if(!_0x1ef5ca||_0x1ef5ca[_0x50e7a4(0x1fb)]<Date[_0x50e7a4(0x1f2)]()||_0x1ef5ca[_0x50e7a4(0x18e)]!==_0x590462)fail(_0x50e7a4(0x1b0),_0x50e7a4(0x207));return _0x1ef5ca;}[_0x3d94bd(0x216)](_0x7b3794){const _0x57daf2=_0x3d94bd;let _0x3e5339;if(_0x7b3794[_0x57daf2(0x1c5)])_0x3e5339=this[_0x57daf2(0x186)][_0x57daf2(0x1b4)](_0x7b3794[_0x57daf2(0x1c5)]);else{if(this[_0x57daf2(0x186)][_0x57daf2(0x1ba)]===0x1)_0x3e5339=this[_0x57daf2(0x186)]['values']()['next']()[_0x57daf2(0x1bd)];else{if(this['sessions'][_0x57daf2(0x1ba)]>0x1)fail('WORKSPACE_AMBIGUOUS',_0x57daf2(0x1dc));}}if(!_0x3e5339)fail(_0x57daf2(0x18f),_0x57daf2(0x204));if(_0x7b3794[_0x57daf2(0x18e)]||_0x7b3794[_0x57daf2(0x1e4)]){const _0x4f0029=this[_0x57daf2(0x1d9)][_0x57daf2(0x1f6)](_0x7b3794,{'host':this['host']});if(!sameWorkspace(_0x4f0029['workspace'],_0x3e5339[_0x57daf2(0x194)]))fail('WORKSPACE_BINDING_CONFLICT');}if(_0x7b3794[_0x57daf2(0x188)]&&!sameWorkspace(_0x7b3794[_0x57daf2(0x188)],_0x3e5339[_0x57daf2(0x194)]))fail('WORKSPACE_BINDING_CONFLICT');return _0x3e5339;}async['handle'](_0x449059){const _0x409620=_0x3d94bd;if(this[_0x409620(0x1e5)])fail('GATEWAY_CLOSED');const {id:_0x541ac3,method:_0x4ea8ac,params:params={}}=_0x449059,_0xd7e687=_0x1a099b=>({'jsonrpc':_0x409620(0x1ac),'id':_0x541ac3,'result':_0x1a099b});if(_0x4ea8ac===_0x409620(0x1c6)||_0x4ea8ac===_0x409620(0x1ce)){const _0x14b7fc=[_0x409620(0x1fe),'2025-03-26',_0x409620(0x215),_0x409620(0x195)],_0x203969=_0x14b7fc[_0x409620(0x1a9)](params[_0x409620(0x1cf)])?params[_0x409620(0x1cf)]:_0x14b7fc['at'](-0x1),_0x350cde={...params};_0x350cde['protocolVersion']=_0x203969,this[_0x409620(0x1c6)]=_0x350cde;const _0x1c0a45={};_0x1c0a45[_0x409620(0x1a8)]=!![];const _0xc8a873={};return _0xc8a873[_0x409620(0x1c9)]=_0x1c0a45,_0xd7e687({'protocolVersion':_0x203969,'capabilities':_0xc8a873,'serverInfo':{'name':_0x409620(0x1f1),'version':require('../../package.json')[_0x409620(0x20a)]},'instructions':_0x409620(0x1cd)});}if(_0x4ea8ac===_0x409620(0x206))return _0xd7e687({'tools':structuredClone(this['catalog'])});if(_0x4ea8ac===_0x409620(0x1e3))return _0xd7e687({});if(_0x4ea8ac===_0x409620(0x1e7))return null;const _0x16abae={};_0x16abae[_0x409620(0x18c)]=-0x7f59,_0x16abae['message']='Method\x20not\x20found';if(_0x4ea8ac!==_0x409620(0x1ca))return _0x541ac3===undefined?null:{'jsonrpc':_0x409620(0x1ac),'id':_0x541ac3,'error':_0x16abae};try{const _0x240fd9=params['arguments']||{};if(Array[_0x409620(0x1e0)](_0x240fd9)||typeof _0x240fd9!=='object')fail(_0x409620(0x1bb));validateIdentity(_0x240fd9);if(params[_0x409620(0x1b1)]!=='workspace_list'&¶ms[_0x409620(0x1b1)]!=='mcp_agent_health'&&require('../core/caller-context')['sensitiveTool'](params['name'])&&!_0x240fd9[_0x409620(0x1c5)])fail('SESSION_ID_REQUIRED',_0x409620(0x189));const _0x7df148=this[_0x409620(0x19c)][_0x409620(0x185)](_0x21d746=>_0x21d746[_0x409620(0x1b1)]===params[_0x409620(0x1b1)]);if(!_0x7df148){const _0x405501=require(_0x409620(0x191))[_0x409620(0x19d)](params[_0x409620(0x1b1)]);if(_0x405501&&_0x405501[_0x409620(0x1fd)]!=='_builtin'){const _0x47d086={};_0x47d086['backend']=_0x405501['backend'],_0x47d086[_0x409620(0x1c5)]=_0x240fd9['sessionId'];const _0x3d761f={};_0x3d761f[_0x409620(0x18b)]=_0x409620(0x1d6),_0x3d761f[_0x409620(0x1db)]=_0x47d086;const _0x2b0a24={};_0x2b0a24[_0x409620(0x18c)]=_0x409620(0x1eb),_0x2b0a24[_0x409620(0x1b6)]=_0x3d761f;const _0x30751d=Object[_0x409620(0x18a)](new Error(_0x409620(0x1ae)),_0x2b0a24);throw _0x30751d;}fail(_0x409620(0x1f9),'This\x20gateway\x20has\x20no\x20verified\x20catalog\x20for\x20that\x20tool.');}if(params['name']===_0x409620(0x1d0))return _0xd7e687(content({'workspaces':this['registry'][_0x409620(0x1ea)]()[_0x409620(0x1a7)](_0x12a8dc=>!this[_0x409620(0x1a5)]||_0x12a8dc[_0x409620(0x20d)][_0x409620(0x1a9)](this[_0x409620(0x1a5)]))[_0x409620(0x1f4)](_0xa7d5ad=>this['selection'](_0xa7d5ad)),'connectionId':this['connectionId']}));if(params[_0x409620(0x1b1)]===_0x409620(0x1d6)&&!_0x240fd9['sessionId']&&!_0x240fd9[_0x409620(0x1fd)])return _0xd7e687(content({'registration':_0x409620(0x1f1),'connectionId':this[_0x409620(0x1d5)],'boundSessions':this[_0x409620(0x186)]['size'],'backendsStartedByDiscovery':0x0,'serving':_0x409620(0x214),'version':require(_0x409620(0x1ed))[_0x409620(0x20a)]}));for(const _0x3e55b8 of _0x7df148[_0x409620(0x1c8)][_0x409620(0x1a0)]||[])if(_0x240fd9[_0x3e55b8]===undefined&&_0x3e55b8!==_0x409620(0x1c5))fail('MISSING_'+_0x3e55b8[_0x409620(0x1e9)](/([a-z])([A-Z])/g,_0x409620(0x197))[_0x409620(0x212)](),_0x409620(0x1df)+_0x3e55b8+'.');const _0x5597c5=params['name']===_0x409620(0x1e2)?await this[_0x409620(0x202)](_0x240fd9):this['selected'](_0x240fd9);if(_0x5597c5[_0x409620(0x1ee)]?.['tools']?.[params[_0x409620(0x1b1)]]?.['enabled']===![])fail('PROJECT_TOOL_DISABLED');const _0x540a52={..._0x240fd9};_0x540a52[_0x409620(0x1c5)]=_0x5597c5[_0x409620(0x1c5)];const _0x2fdb90=_0x540a52,_0x196b86={...params};_0x196b86[_0x409620(0x1db)]=_0x2fdb90;const _0x501dc0={..._0x449059};_0x501dc0[_0x409620(0x1bf)]=_0x196b86;const _0x11bb22=await _0x5597c5['runtime']['request'](_0x501dc0);if(params[_0x409620(0x1b1)]===_0x409620(0x1d6)&&_0x240fd9['backend']&&!_0x11bb22[_0x409620(0x1c2)]){const _0x48b21b={};_0x48b21b[_0x409620(0x1a4)]=_0x409620(0x206),_0x48b21b[_0x409620(0x1bf)]={};const _0x3fefbf=await _0x5597c5[_0x409620(0x1fa)][_0x409620(0x19e)](_0x48b21b);let _0x212635=![];for(const _0x249421 of _0x3fefbf['tools']||[]){if(require(_0x409620(0x191))[_0x409620(0x19d)](_0x249421[_0x409620(0x1b1)])?.[_0x409620(0x1fd)]!==_0x240fd9['backend'])continue;const _0x4da7f0=require('./public-catalog')[_0x409620(0x1d7)](structuredClone(_0x249421)),_0x2e4d2b=this[_0x409620(0x19c)]['find'](_0x2621c3=>_0x2621c3['name']===_0x4da7f0[_0x409620(0x1b1)]);if(_0x2e4d2b&&JSON[_0x409620(0x1c7)](_0x2e4d2b[_0x409620(0x1c8)])!==JSON[_0x409620(0x1c7)](_0x4da7f0[_0x409620(0x1c8)]))fail(_0x409620(0x1f7));!_0x2e4d2b&&(this[_0x409620(0x19c)][_0x409620(0x1a6)](_0x4da7f0),_0x212635=!![]);}if(_0x212635)this[_0x409620(0x1c1)]();}return _0xd7e687(_0x11bb22);}catch(_0x3a35df){const _0x5ab08e={};return _0x5ab08e[_0x409620(0x18b)]=_0x409620(0x1d0),_0x5ab08e[_0x409620(0x1cc)]=_0x409620(0x1e2),_0x5ab08e[_0x409620(0x1a0)]=[_0x409620(0x1c5),_0x409620(0x18e)],_0xd7e687({...content({'success':![],'code':_0x3a35df[_0x409620(0x18c)]||_0x409620(0x1be),'error':_0x3a35df[_0x409620(0x1cb)],'recovery':_0x3a35df[_0x409620(0x1b6)]||([_0x409620(0x18f),_0x409620(0x193),'WORKSPACE_NOT_REGISTERED']['includes'](_0x3a35df[_0x409620(0x18c)])?_0x5ab08e:undefined)}),'isError':!![]});}}async['close'](){const _0xeacaf8=_0x3d94bd;this['stopped']=!![],await Promise[_0xeacaf8(0x1f0)]([...this[_0xeacaf8(0x1b7)]['values']()][_0xeacaf8(0x1f4)](_0x3d03a1=>_0x3d03a1['promise']));const _0x1ba260=await Promise['allSettled']([...this['sessions'][_0xeacaf8(0x1f5)]()][_0xeacaf8(0x1f4)](_0x436999=>_0x436999['runtime'][_0xeacaf8(0x1dd)]())),_0x5e51a1=_0x1ba260['find'](_0x2d320a=>_0x2d320a[_0xeacaf8(0x210)]==='rejected');if(_0x5e51a1)throw _0x5e51a1['reason'];this[_0xeacaf8(0x186)][_0xeacaf8(0x1de)]();}}function _0x198f(){const _0x47d7e2=['CMvWBgfJzq','BgLZDa','qKfds0vorf9dqvrbte9hx0rju0npvKvswv9srvfvsvjfra','zgvZy3jPChrPB24','lI4VlI4VCgfJA2fNzs5QC29U','ChjVzMLSzq','zgvSzxrL','ywXSu2v0DgXLza','yxb0lw1JCc1Hz2vUDa','BM93','Dg9tDhjPBMC','BwfW','DMfSDwvZ','CMvZB2X2zq','q0fuquXpr19tq0HftufFq09orKXjq1q','otq0mtC1ENrnEMTr','ve9ptf9ot1rFqvzbsuXbqKXf','CNvUDgLTzq','zxHWAxjLC0f0','DhjPBq','yMfJA2vUza','mJaYnc0Xms0Wnq','DgfZAW','Dw5JB25MAxjTzwq','CNvUDgLTzuzHy3rVCNK','yMLUza','v09ss1nqqunfx0jjtKrjtKDFq09orKXjq1q','q2fSBcb3B3jRC3bHy2vFBgLZDcWGDgHLBIbZzxnZAw9Ux2jVB3rZDhjHCcb3AxrOihnLC3nPB25jzcbHBMqGD29YA3nWywnLswqU','CNvUswq','Dg9VBhmVBgLZDa','q2fSBcb3B3jRC3bHy2vFBgLZDcbVBIb0AgLZignVBM5Ly3rPB24Gyw5KihvZzsbPDhmGy3vYCMvUDcbIAw5KAw5Nvg9Rzw4U','DMvYAwz5u2vSzwn0Aw9U','yMLUzgLUz1nLBgvJDgLVBNm','DMvYC2LVBG','mJqYmtu4mLnTuxDrAq','B2jZzxj2zuHVB2Tdyw5JzwXSyxrPB24','Ag9ZDhm','mJDjAxbyB2O','v29YA3nWywnLr2f0zxDHEq','C3rHDhvZ','r0furvDbwv9svu5usu1fx1voqvzbsuXbqKXf','Dg9vChbLCKnHC2u','su5wquXjrf8','z2f0zxDHEq','mJaYns0WnI0Xoa','C2vSzwn0zwq','zMLUza','C2vZC2LVBNm','zNvUy3rPB24','ChjVAMvJDfbHDgG','txv0yxrPB25ZihjLCxvPCMuGDgHLigv4CgXPy2L0BhKGyM91BMqGC2vZC2LVBKLKlG','yxnZAwDU','Dg9VBa','y29Kzq','lI4VAw5ZDgfSBgvYl3DVCMTZCgfJzs1YzwDPC3rYEq','D29YA3nWywnLswq','v09ss1nqqunfx0jjtKrjtKDFuKvrvuLsruq','Bwf4tgvUz3rO','lI9YB3v0zxi','ntC3nZeYDwruDMXU','v09ss1nqqunfx0fnqKLhvu9vuW','D29YA3nWywnL','mJaYns0Xms0Ynq','CMvXDwvZDeLK','jdfFjdi','ChjVDMvUyw5Jzq','Cgf0DgvYBG','ntq2nZzdAxbMBfG','yMfZzty0DxjS','y2f0ywXVzW','BwfWrxHWB3nLzfrVt3jPz2LUywW','CMvXDwvZDa','DgvZDa','CMvXDwLYzwq','mtvZvhrVsvC','u0vtu0LptL9jrf9srvfvsvjfra','C2vSzwn0Aw9U','Bwv0Ag9K','Ag9ZDa','ChvZAa','zMLSDgvY','BgLZDenOyw5Nzwq','Aw5JBhvKzxm','lI4Vy29Yzs93B3jRC3bHy2uTCgf0Aa','r0furvDbwv9truXfq1rjt05FteLnsvq','mI4W','lI4Vy29Yzs9OB29RlwXLyxnL','vgHPCYbHzgrVBIbUzwvKCYbPBNrLBNrPB25HBcbJyxrHBg9NigrPC2nVDMvYEtSGy2fSBcbTy3bFywDLBNrFAgvHBhrOihDPDgGGAxrZigjHy2TLBMqGyw5KihnLC3nPB25jzc4','yxnZzxj0q3vYCMvUDa','r0furvDbwv9truXfq1rjt05FuKvrvuLsruq','BMfTzq','DMfSAwrHDgvjzgvUDgL0Eq','yMLUzgLUz1rVA2vU','z2v0','CMfUzg9Tvvvjra','CMvJB3zLCNK','Aw5PDgLHBgL6Aw5N','mJmWoteZmhrwvhHxyq','mtKZntyXovbsuxrIwG','C2L6zq','su5wquXjrf9buKDvtuvovfm','ChjVzMLSzxm','DMfSDwu','r0furvDbwv9srvfvrvnux0zbsuXfra','CgfYyw1Z','C2v0','B25dyxrHBg9Nq2HHBMDLza','AxnfCNjVCG','zw50CMLLCW','C3rYAw5N','C2vZC2LVBKLK','Aw5PDgLHBgL6zq','C3rYAw5NAwz5','Aw5WDxrty2HLBwe','Dg9VBhm','Dg9VBhmVy2fSBa','BwvZC2fNzq','DgHLBG','t25LiefqvcbNyxrLD2f5ihnLCNzLCYbPBNn0ywXSzwqGChjVAMvJDhmUienHBgWGD29YA3nWywnLx2XPC3qSihrOzw4GC2vZC2LVBL9IB290C3rYyxaGD2L0Acb5B3vYihnLC3nPB25jzcbHBMqGDgHLihbYB2PLy3qGD29YA3nWywnLswqUiefSD2f5CYbWyxnZihrOyxqGC2vZC2LVBKLKig9Uihn1yNnLCxvLBNqGy2fSBhmUie5LDMvYigjPBMqGAg9TzsbVCIbZzwXLy3qGysbWCM9Qzwn0igzYB20GCMvJzw5JEs4','C2vYDMvYl2rPC2nVDMvY','ChjVDg9JB2XwzxjZAw9U','D29YA3nWywnLx2XPC3q','BgvUz3rO','mZy5mtKWnefzquHzCq','r0furvDbwv9dte9truq','CMvNAxn0CMf0Aw9U','y29UBMvJDgLVBKLK','BwnWx2fNzw50x2HLywX0Aa','zgvJB3jHDgvhyxrLD2f5vg9VBa','ChjVBwLZzq','CMvNAxn0CNK','muX3Dg91CW','yxjNDw1LBNrZ','ugfZCYbZzxnZAw9Uswq7ihrOAxmGy29UBMvJDgLVBIbZzxj2zxmGBxvSDgLWBguGChjVAMvJDcbZzxnZAw9UCY4','y2XVC2u','y2XLyxi','uMvXDwLYzwqGzMLLBgq6ia','AxnbCNjHEq','BgvHC2u','C2vZC2LVBL9IB290C3rYyxa','CgLUzW','D29YA3nWywnLugf0Aa','C3rVChbLza','lI9WDwjSAwmTy2f0ywXVzW','BM90AwzPy2f0Aw9UCY9PBML0AwfSAxPLza','lI4Vy29Yzs90B29SlwnVBNrYywn0CW'];_0x198f=function(){return _0x47d7e2;};return _0x198f();}const _0x4d72b6={};_0x4d72b6[_0x3d94bd(0x20f)]=WorkspaceGateway,_0x4d72b6[_0x3d94bd(0x1b2)]=validateIdentity,module['exports']=_0x4d72b6;
|
|
1
|
+
'use strict';const _0x13ab78=_0x5b1d;(function(_0x29ed78,_0x5478f7){const _0x4e2cc9=_0x5b1d,_0x9b742=_0x29ed78();while(!![]){try{const _0x50bc4c=parseInt(_0x4e2cc9(0x1ca))/0x1*(parseInt(_0x4e2cc9(0x1eb))/0x2)+-parseInt(_0x4e2cc9(0x1fa))/0x3*(parseInt(_0x4e2cc9(0x20b))/0x4)+parseInt(_0x4e2cc9(0x1b8))/0x5*(parseInt(_0x4e2cc9(0x200))/0x6)+parseInt(_0x4e2cc9(0x1fe))/0x7*(parseInt(_0x4e2cc9(0x1e5))/0x8)+parseInt(_0x4e2cc9(0x1ea))/0x9+parseInt(_0x4e2cc9(0x1c7))/0xa+-parseInt(_0x4e2cc9(0x17f))/0xb;if(_0x50bc4c===_0x5478f7)break;else _0x9b742['push'](_0x9b742['shift']());}catch(_0x202005){_0x9b742['push'](_0x9b742['shift']());}}}(_0x3ced,0xca3ad));const crypto=require(_0x13ab78(0x182)),{WorkspaceRegistry}=require(_0x13ab78(0x1d8)),{gatewayCatalog}=require(_0x13ab78(0x1be)),{sameWorkspace}=require(_0x13ab78(0x18b)),contracts=require(_0x13ab78(0x1d4)),fail=(_0x3b3d13,_0x3bf414=_0x3b3d13)=>{const _0x5f2af8=_0x13ab78,_0x27e782={};_0x27e782[_0x5f2af8(0x1d9)]=_0x3b3d13;throw Object[_0x5f2af8(0x1a0)](new Error(_0x3bf414),_0x27e782);},content=_0x37fd65=>({'content':[{'type':_0x13ab78(0x1f2),'text':JSON[_0x13ab78(0x1b0)](_0x37fd65)}]});function _0x5b1d(_0x4f4585,_0x210866){_0x4f4585=_0x4f4585-0x17e;const _0x3ced0f=_0x3ced();let _0x5b1d27=_0x3ced0f[_0x4f4585];if(_0x5b1d['lGNKOZ']===undefined){var _0x19674=function(_0x50c5c5){const _0x21caf6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3b998b='',_0x363b8b='';for(let _0x345a87=0x0,_0x19a5b3,_0x422c97,_0x384452=0x0;_0x422c97=_0x50c5c5['charAt'](_0x384452++);~_0x422c97&&(_0x19a5b3=_0x345a87%0x4?_0x19a5b3*0x40+_0x422c97:_0x422c97,_0x345a87++%0x4)?_0x3b998b+=String['fromCharCode'](0xff&_0x19a5b3>>(-0x2*_0x345a87&0x6)):0x0){_0x422c97=_0x21caf6['indexOf'](_0x422c97);}for(let _0x450fe9=0x0,_0x4e1a59=_0x3b998b['length'];_0x450fe9<_0x4e1a59;_0x450fe9++){_0x363b8b+='%'+('00'+_0x3b998b['charCodeAt'](_0x450fe9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x363b8b);};_0x5b1d['ENpVAX']=_0x19674,_0x5b1d['XVBodo']={},_0x5b1d['lGNKOZ']=!![];}const _0x511342=_0x3ced0f[0x0],_0x3f23ac=_0x4f4585+_0x511342,_0x2a0a7e=_0x5b1d['XVBodo'][_0x3f23ac];return!_0x2a0a7e?(_0x5b1d27=_0x5b1d['ENpVAX'](_0x5b1d27),_0x5b1d['XVBodo'][_0x3f23ac]=_0x5b1d27):_0x5b1d27=_0x2a0a7e,_0x5b1d27;}function validateIdentity(_0x4807b9){const _0x1fcf61=_0x13ab78,_0x50784c={};_0x50784c[_0x1fcf61(0x1d2)]=contracts[_0x1fcf61(0x1d2)],_0x50784c[_0x1fcf61(0x1da)]=contracts[_0x1fcf61(0x1da)],_0x50784c['task']=contracts[_0x1fcf61(0x1f1)],_0x50784c[_0x1fcf61(0x1ba)]=contracts[_0x1fcf61(0x1ba)];for(const [_0x32e7c3,_0x1162e0]of Object[_0x1fcf61(0x1bf)](_0x50784c)){if(_0x4807b9[_0x32e7c3]===undefined)continue;const _0x1030aa=_0x4807b9[_0x32e7c3];if(typeof _0x1030aa!==_0x1fcf61(0x209)||!_0x1030aa[_0x1fcf61(0x1ab)]()||_0x1030aa[_0x1fcf61(0x195)]>_0x1162e0[_0x1fcf61(0x1a2)]||_0x1162e0[_0x1fcf61(0x1b5)]&&!new RegExp(_0x1162e0[_0x1fcf61(0x1b5)])[_0x1fcf61(0x1a8)](_0x1030aa))fail(_0x1fcf61(0x1dd)+_0x32e7c3[_0x1fcf61(0x180)](/([a-z])([A-Z])/g,_0x1fcf61(0x190))[_0x1fcf61(0x1fb)](),_0x1162e0[_0x1fcf61(0x203)]);}}class WorkspaceGateway{constructor(_0x239ca4={}){const _0x4ceb7f=_0x13ab78;this[_0x4ceb7f(0x204)]=_0x239ca4[_0x4ceb7f(0x204)]||new WorkspaceRegistry(),this[_0x4ceb7f(0x1e3)]=_0x239ca4[_0x4ceb7f(0x1e3)],this['host']=_0x239ca4[_0x4ceb7f(0x1cb)]||null,this[_0x4ceb7f(0x18d)]=_0x239ca4[_0x4ceb7f(0x18d)]||crypto[_0x4ceb7f(0x206)](),this[_0x4ceb7f(0x20c)]=new Map(),this[_0x4ceb7f(0x1e9)]=new Map(),this[_0x4ceb7f(0x1c0)]=new Map(),this[_0x4ceb7f(0x1aa)]=gatewayCatalog(),this[_0x4ceb7f(0x19d)]=_0x239ca4[_0x4ceb7f(0x19d)]||(()=>{}),this[_0x4ceb7f(0x19e)]=null,this['stopped']=![];}async['bind'](_0x5e73a3,_0x444508={}){const _0x2ccfbc=_0x13ab78;_0x444508[_0x2ccfbc(0x1ef)]?.[_0x2ccfbc(0x1a3)]();if(!_0x5e73a3['sessionId'])fail(_0x2ccfbc(0x1d3),_0x2ccfbc(0x1f4));const _0x17bc89=this[_0x2ccfbc(0x20c)][_0x2ccfbc(0x1e7)](_0x5e73a3[_0x2ccfbc(0x1d2)]);if(_0x17bc89&&!_0x5e73a3[_0x2ccfbc(0x1dc)]&&!_0x5e73a3[_0x2ccfbc(0x1b9)])return _0x17bc89;const _0x523fd6=this[_0x2ccfbc(0x1e9)][_0x2ccfbc(0x1e7)](_0x5e73a3['sessionId']);if(_0x523fd6&&!_0x5e73a3[_0x2ccfbc(0x1dc)]&&!_0x5e73a3['workspacePath'])return _0x523fd6[_0x2ccfbc(0x1e0)];const _0x525b90=this[_0x2ccfbc(0x204)][_0x2ccfbc(0x1b3)](_0x5e73a3,{'host':this[_0x2ccfbc(0x1cb)]});if(_0x5e73a3['bindingToken'])this[_0x2ccfbc(0x1b1)](_0x5e73a3[_0x2ccfbc(0x19f)],_0x525b90[_0x2ccfbc(0x1dc)]);if(_0x17bc89){if(!sameWorkspace(_0x525b90[_0x2ccfbc(0x1ce)],_0x17bc89[_0x2ccfbc(0x1ce)]))fail(_0x2ccfbc(0x184));return _0x17bc89;}if(this['initializing']['has'](_0x5e73a3[_0x2ccfbc(0x1d2)])){const _0x380d24=this[_0x2ccfbc(0x1e9)][_0x2ccfbc(0x1e7)](_0x5e73a3[_0x2ccfbc(0x1d2)]);if(!sameWorkspace(_0x380d24[_0x2ccfbc(0x1ce)],_0x525b90['workspace']))fail(_0x2ccfbc(0x184));return _0x380d24[_0x2ccfbc(0x1e0)];}const _0x52c8bd={};_0x52c8bd[_0x2ccfbc(0x18d)]=this[_0x2ccfbc(0x18d)],_0x52c8bd['sessionId']=_0x5e73a3[_0x2ccfbc(0x1d2)],_0x52c8bd[_0x2ccfbc(0x1ce)]=_0x525b90['workspace'],_0x52c8bd['workspaceId']=_0x525b90['workspaceId'],_0x52c8bd[_0x2ccfbc(0x1de)]=_0x2ccfbc(0x192),_0x52c8bd[_0x2ccfbc(0x19b)]=_0x2ccfbc(0x196),_0x52c8bd['nativeIdentity']=_0x2ccfbc(0x20a);const _0x472260=_0x52c8bd,_0x19f021=((async()=>{const _0x735c86=_0x2ccfbc;if(typeof this['runtimeFactory']!==_0x735c86(0x1a7))fail('GATEWAY_RUNTIME_UNAVAILABLE');const _0x3d3c2c=_0x525b90[_0x735c86(0x186)]?.[this[_0x735c86(0x1cb)]]||{},_0x25fabc=await this['runtimeFactory'](_0x472260,this[_0x735c86(0x19e)]||{},_0x3d3c2c);try{if(_0x444508[_0x735c86(0x1ef)])await require(_0x735c86(0x1a5))[_0x735c86(0x205)](_0x444508['lease']);}catch(_0x47c92f){await _0x25fabc[_0x735c86(0x1ed)]();throw _0x47c92f;}this[_0x735c86(0x208)]&&(await _0x25fabc['close'](),fail(_0x735c86(0x210)));const _0xa50267={..._0x472260};_0xa50267[_0x735c86(0x1ac)]=_0x25fabc,_0xa50267[_0x735c86(0x1fd)]=_0x3d3c2c;const _0x355e20=_0xa50267;return _0x444508[_0x735c86(0x1ef)]?.['assertCurrent'](),this[_0x735c86(0x20c)][_0x735c86(0x1bc)](_0x5e73a3[_0x735c86(0x1d2)],_0x355e20),_0x355e20;})()),_0x1cbe10={};_0x1cbe10['workspace']=_0x525b90['workspace'],_0x1cbe10[_0x2ccfbc(0x1e0)]=_0x19f021,this['initializing'][_0x2ccfbc(0x1bc)](_0x5e73a3[_0x2ccfbc(0x1d2)],_0x1cbe10);try{return await _0x19f021;}finally{this[_0x2ccfbc(0x1e9)][_0x2ccfbc(0x1c1)](_0x5e73a3[_0x2ccfbc(0x1d2)]);}}[_0x13ab78(0x1c2)](_0xd6b3bd){const _0x32da92=_0x13ab78;for(const [_0x196f07,_0x25eb53]of this[_0x32da92(0x1c0)])if(_0x25eb53[_0x32da92(0x1c6)]<Date[_0x32da92(0x1e8)]())this[_0x32da92(0x1c0)]['delete'](_0x196f07);if(this['bindingSelections'][_0x32da92(0x17e)]>=0x1000)fail('GATEWAY_SELECTION_LIMIT');const _0x5cf96d=this[_0x32da92(0x18d)]+'.'+crypto['randomBytes'](0x20)[_0x32da92(0x199)]('base64url');this[_0x32da92(0x1c0)][_0x32da92(0x1bc)](_0x5cf96d,{'workspaceId':_0xd6b3bd[_0x32da92(0x1dc)],'expiresAt':Date['now']()+0xdbba0});const _0x2d40b7={};return _0x2d40b7[_0x32da92(0x1dc)]=_0xd6b3bd['workspaceId'],_0x2d40b7['workspace']=_0xd6b3bd[_0x32da92(0x1ce)],_0x2d40b7['bindingToken']=_0x5cf96d,_0x2d40b7;}[_0x13ab78(0x1b1)](_0x184941,_0x531300){const _0x1b81a3=_0x13ab78,_0x539684=this[_0x1b81a3(0x1c0)][_0x1b81a3(0x1e7)](_0x184941);if(!_0x539684||_0x539684[_0x1b81a3(0x1c6)]<Date[_0x1b81a3(0x1e8)]()||_0x539684[_0x1b81a3(0x1dc)]!==_0x531300)fail(_0x1b81a3(0x207),_0x1b81a3(0x1b7));return _0x539684;}[_0x13ab78(0x1c8)](_0x543111){const _0x4dffad=_0x13ab78;let _0x4db9ff;if(_0x543111['sessionId'])_0x4db9ff=this[_0x4dffad(0x20c)]['get'](_0x543111[_0x4dffad(0x1d2)]);else{if(this['sessions']['size']===0x1)_0x4db9ff=this[_0x4dffad(0x20c)][_0x4dffad(0x1d0)]()[_0x4dffad(0x181)]()[_0x4dffad(0x1a4)];else{if(this['sessions'][_0x4dffad(0x17e)]>0x1)fail('WORKSPACE_AMBIGUOUS',_0x4dffad(0x1c4));}}if(!_0x4db9ff)fail(_0x4dffad(0x1d7),_0x4dffad(0x1ad));if(_0x543111[_0x4dffad(0x1dc)]||_0x543111[_0x4dffad(0x1b9)]){const _0x33ccf0=this[_0x4dffad(0x204)]['resolve'](_0x543111,{'host':this['host']});if(!sameWorkspace(_0x33ccf0[_0x4dffad(0x1ce)],_0x4db9ff[_0x4dffad(0x1ce)]))fail(_0x4dffad(0x184));}if(_0x543111['projectPath']&&!sameWorkspace(_0x543111[_0x4dffad(0x19c)],_0x4db9ff[_0x4dffad(0x1ce)]))fail(_0x4dffad(0x184));return _0x4db9ff;}async['handle'](_0x4a8cd2){const _0x1f13d0=_0x13ab78;if(this[_0x1f13d0(0x208)])fail('GATEWAY_CLOSED');const {id:_0x33e760,method:_0x5d8ef4,params:params={}}=_0x4a8cd2,_0x11d7a0=_0x24ecb6=>({'jsonrpc':_0x1f13d0(0x1a9),'id':_0x33e760,'result':_0x24ecb6});if(_0x5d8ef4==='initialize'||_0x5d8ef4===_0x1f13d0(0x202)){const _0x107d84=[_0x1f13d0(0x20f),_0x1f13d0(0x1c5),_0x1f13d0(0x191),_0x1f13d0(0x189)],_0x3b3851=_0x107d84[_0x1f13d0(0x1bd)](params[_0x1f13d0(0x1e4)])?params['protocolVersion']:_0x107d84['at'](-0x1),_0x3bf875={...params};_0x3bf875[_0x1f13d0(0x1e4)]=_0x3b3851,this[_0x1f13d0(0x19e)]=_0x3bf875;const _0x25b429={};_0x25b429[_0x1f13d0(0x198)]=!![];const _0x3d39dc={};return _0x3d39dc['tools']=_0x25b429,_0x11d7a0({'protocolVersion':_0x3b3851,'capabilities':_0x3d39dc,'serverInfo':{'name':_0x1f13d0(0x192),'version':require(_0x1f13d0(0x1db))[_0x1f13d0(0x1e1)]},'instructions':_0x1f13d0(0x20e)});}if(_0x5d8ef4==='tools/list')return _0x11d7a0({'tools':structuredClone(this[_0x1f13d0(0x1aa)])});if(_0x5d8ef4===_0x1f13d0(0x185))return _0x11d7a0({});if(_0x5d8ef4===_0x1f13d0(0x193))return null;const _0x3b00c2={};_0x3b00c2[_0x1f13d0(0x1d9)]=-0x7f59,_0x3b00c2[_0x1f13d0(0x18c)]='Method\x20not\x20found';if(_0x5d8ef4!=='tools/call')return _0x33e760===undefined?null:{'jsonrpc':_0x1f13d0(0x1a9),'id':_0x33e760,'error':_0x3b00c2};try{const _0x17613d=params['arguments']||{};if(Array[_0x1f13d0(0x188)](_0x17613d)||typeof _0x17613d!==_0x1f13d0(0x194))fail(_0x1f13d0(0x1cc));validateIdentity(_0x17613d);if(params[_0x1f13d0(0x1d1)]!==_0x1f13d0(0x1af)&¶ms['name']!=='mcp_agent_health'&&require(_0x1f13d0(0x1a1))['sensitiveTool'](params[_0x1f13d0(0x1d1)])&&!_0x17613d[_0x1f13d0(0x1d2)])fail(_0x1f13d0(0x1d3),'Mutations\x20require\x20the\x20explicitly\x20bound\x20sessionId.');const _0x23a76f=this['catalog'][_0x1f13d0(0x1e6)](_0x204666=>_0x204666[_0x1f13d0(0x1d1)]===params[_0x1f13d0(0x1d1)]);if(!_0x23a76f){const _0x3357dd=require(_0x1f13d0(0x1ee))[_0x1f13d0(0x19a)](params[_0x1f13d0(0x1d1)]);if(_0x3357dd&&_0x3357dd[_0x1f13d0(0x1ae)]!==_0x1f13d0(0x1f8)){const _0x568038={};_0x568038[_0x1f13d0(0x1ae)]=_0x3357dd[_0x1f13d0(0x1ae)],_0x568038[_0x1f13d0(0x1d2)]=_0x17613d[_0x1f13d0(0x1d2)];const _0x559108={};_0x559108[_0x1f13d0(0x20d)]=_0x1f13d0(0x1f3),_0x559108[_0x1f13d0(0x1ec)]=_0x568038;const _0x194551={};_0x194551['code']=_0x1f13d0(0x18a),_0x194551[_0x1f13d0(0x1f7)]=_0x559108;const _0x38619d=Object[_0x1f13d0(0x1a0)](new Error('This\x20addon\x20needs\x20intentional\x20catalog\x20discovery;\x20call\x20mcp_agent_health\x20with\x20its\x20backend\x20and\x20sessionId.'),_0x194551);throw _0x38619d;}fail(_0x1f13d0(0x1df),'This\x20gateway\x20has\x20no\x20verified\x20catalog\x20for\x20that\x20tool.');}if(params[_0x1f13d0(0x1d1)]==='workspace_list')return _0x11d7a0(content({'workspaces':this[_0x1f13d0(0x204)][_0x1f13d0(0x1a6)]()[_0x1f13d0(0x1d6)](_0x1e6dbb=>!this['host']||_0x1e6dbb[_0x1f13d0(0x1e2)][_0x1f13d0(0x1bd)](this[_0x1f13d0(0x1cb)]))['map'](_0x146c5e=>this[_0x1f13d0(0x1c2)](_0x146c5e)),'connectionId':this[_0x1f13d0(0x18d)]}));if(params[_0x1f13d0(0x1d1)]===_0x1f13d0(0x1f3)&&!_0x17613d[_0x1f13d0(0x1d2)]&&!_0x17613d[_0x1f13d0(0x1ae)])return _0x11d7a0(content({'registration':_0x1f13d0(0x192),'connectionId':this[_0x1f13d0(0x18d)],'boundSessions':this[_0x1f13d0(0x20c)][_0x1f13d0(0x17e)],'backendsStartedByDiscovery':0x0,'serving':'gateway','version':require(_0x1f13d0(0x1db))[_0x1f13d0(0x1e1)]}));for(const _0x51203e of _0x23a76f[_0x1f13d0(0x18e)][_0x1f13d0(0x1c3)]||[])if(_0x17613d[_0x51203e]===undefined&&_0x51203e!==_0x1f13d0(0x1d2))fail('MISSING_'+_0x51203e[_0x1f13d0(0x180)](/([a-z])([A-Z])/g,_0x1f13d0(0x190))[_0x1f13d0(0x1fb)](),'Required\x20field:\x20'+_0x51203e+'.');const _0x574067=params[_0x1f13d0(0x1d1)]===_0x1f13d0(0x1b4)?await this['bind'](_0x17613d):this['selected'](_0x17613d);if(_0x574067['profile']?.[_0x1f13d0(0x1d5)]?.[params[_0x1f13d0(0x1d1)]]?.[_0x1f13d0(0x197)]===![])fail('PROJECT_TOOL_DISABLED');const _0x35ba16={..._0x17613d};_0x35ba16[_0x1f13d0(0x1d2)]=_0x574067['sessionId'];const _0xebe790=_0x35ba16,_0x2bb189={...params};_0x2bb189['arguments']=_0xebe790;const _0x18cd1d={..._0x4a8cd2};_0x18cd1d[_0x1f13d0(0x18f)]=_0x2bb189;const _0x452589=await _0x574067[_0x1f13d0(0x1ac)][_0x1f13d0(0x1f6)](_0x18cd1d);if(params['name']==='mcp_agent_health'&&_0x17613d[_0x1f13d0(0x1ae)]&&!_0x452589['isError']){const _0x215bda={};_0x215bda[_0x1f13d0(0x187)]=_0x1f13d0(0x1cd),_0x215bda[_0x1f13d0(0x18f)]={};const _0x342915=await _0x574067['runtime'][_0x1f13d0(0x1f6)](_0x215bda);let _0x1b2b6e=![];for(const _0x2444be of _0x342915[_0x1f13d0(0x1d5)]||[]){if(require(_0x1f13d0(0x1ee))[_0x1f13d0(0x19a)](_0x2444be['name'])?.[_0x1f13d0(0x1ae)]!==_0x17613d[_0x1f13d0(0x1ae)])continue;const _0x3bdb3e=require('./public-catalog')[_0x1f13d0(0x183)](structuredClone(_0x2444be)),_0x20b818=this[_0x1f13d0(0x1aa)]['find'](_0x25df1d=>_0x25df1d[_0x1f13d0(0x1d1)]===_0x3bdb3e['name']);if(_0x20b818&&JSON[_0x1f13d0(0x1b0)](_0x20b818[_0x1f13d0(0x18e)])!==JSON['stringify'](_0x3bdb3e['inputSchema']))fail(_0x1f13d0(0x1b6));!_0x20b818&&(this['catalog'][_0x1f13d0(0x1bb)](_0x3bdb3e),_0x1b2b6e=!![]);}if(_0x1b2b6e)this['onCatalogChanged']();}return _0x11d7a0(_0x452589);}catch(_0x6c1bcc){const _0x372460={};return _0x372460['tool']='workspace_list',_0x372460[_0x1f13d0(0x1f5)]=_0x1f13d0(0x1b4),_0x372460[_0x1f13d0(0x1c3)]=[_0x1f13d0(0x1d2),_0x1f13d0(0x1dc)],_0x11d7a0({...content({'success':![],'code':_0x6c1bcc[_0x1f13d0(0x1d9)]||_0x1f13d0(0x1cf),'error':_0x6c1bcc['message'],'recovery':_0x6c1bcc[_0x1f13d0(0x1f7)]||([_0x1f13d0(0x1d7),'WORKSPACE_AMBIGUOUS',_0x1f13d0(0x1f0)][_0x1f13d0(0x1bd)](_0x6c1bcc[_0x1f13d0(0x1d9)])?_0x372460:undefined)}),'isError':!![]});}}async['close'](){const _0x5ae668=_0x13ab78;this[_0x5ae668(0x208)]=!![],await Promise[_0x5ae668(0x1b2)]([...this['initializing'][_0x5ae668(0x1d0)]()][_0x5ae668(0x1c9)](_0x4a6e5f=>_0x4a6e5f['promise']));const _0xc02d78=await Promise[_0x5ae668(0x1b2)]([...this[_0x5ae668(0x20c)][_0x5ae668(0x1d0)]()][_0x5ae668(0x1c9)](_0x173efb=>_0x173efb[_0x5ae668(0x1ac)][_0x5ae668(0x1ed)]())),_0x3b2592=_0xc02d78[_0x5ae668(0x1e6)](_0x9eb183=>_0x9eb183[_0x5ae668(0x1f9)]===_0x5ae668(0x1fc));if(_0x3b2592)throw _0x3b2592['reason'];this[_0x5ae668(0x20c)][_0x5ae668(0x1ff)]();}}const _0x2e0f72={};_0x2e0f72[_0x13ab78(0x201)]=WorkspaceGateway,_0x2e0f72['validateIdentity']=validateIdentity,module['exports']=_0x2e0f72;function _0x3ced(){const _0x4eea88=['y29Kzq','CMvXDwvZDeLK','lI4VlI4VCgfJA2fNzs5QC29U','D29YA3nWywnLswq','su5wquXjrf8','CMvNAxn0CMf0Aw9U','ve9ptf9ot1rFqvzbsuXbqKXf','ChjVBwLZzq','DMvYC2LVBG','Ag9ZDhm','CNvUDgLTzuzHy3rVCNK','ChjVDg9JB2XwzxjZAw9U','mtGZmdu3nM5ssevdyW','zMLUza','z2v0','BM93','Aw5PDgLHBgL6Aw5N','odi5oti1mwjyturlAq','mM5hq0jUtW','yxjNDw1LBNrZ','y2XVC2u','lI9YB3v0zxi','BgvHC2u','v09ss1nqqunfx05pvf9sruDju1rfuKve','DgfZAW','Dgv4Da','BwnWx2fNzw50x2HLywX0Aa','ugfZCYb0AguGC2fTzsbUB25LBxb0EsbZzxnZAw9UswqGDgHYB3vNAg91Dcb0AgLZignOyxqU','DgHLBG','CMvXDwvZDa','CMvJB3zLCNK','x2j1AwX0Aw4','C3rHDhvZ','mJCZodfVy2XQDNe','Dg9vChbLCKnHC2u','CMvQzwn0zwq','ChjVzMLSzq','mJHXD0nkAgK','y2XLyxi','nLrUuvH4Bq','v29YA3nWywnLr2f0zxDHEq','C2vYDMvYl2rPC2nVDMvY','zgvZy3jPChrPB24','CMvNAxn0CNK','B2jZzxj2zuHVB2Tdyw5JzwXSyxrPB24','CMfUzg9Tvvvjra','r0furvDbwv9truXfq1rjt05FuKvrvuLsruq','C3rVChbLza','C3rYAw5N','Dw5JB25MAxjTzwq','mZy0uxvtquDK','C2vZC2LVBNm','Dg9VBa','t25LiefqvcbNyxrLD2f5ihnLCNzLCYbPBNn0ywXSzwqGChjVAMvJDhmUienHBgWGD29YA3nWywnLx2XPC3qSihrOzw4GC2vZC2LVBL9IB290C3rYyxaGD2L0Acb5B3vYihnLC3nPB25jzcbHBMqGDgHLihbYB2PLy3qGD29YA3nWywnLswqUiefSD2f5CYbWyxnZihrOyxqGC2vZC2LVBKLKig9Uihn1yNnLCxvLBNqGy2fSBhmUie5LDMvYigjPBMqGAg9TzsbVCIbZzwXLy3qGysbWCM9Qzwn0igzYB20GCMvJzw5JEs4','mJaYnc0Xms0Wnq','r0furvDbwv9dte9truq','C2L6zq','mtyWmty1mJHJwwDywK8','CMvWBgfJzq','BMv4Da','BM9KztPJCNLWDg8','zgvJB3jHDgvhyxrLD2f5vg9VBa','v09ss1nqqunfx0jjtKrjtKDFq09orKXjq1q','CgLUzW','ChjVzMLSzxm','Bwv0Ag9K','AxnbCNjHEq','mJaYns0Xms0Ynq','qKfds0vorf9dqvrbte9hx0rju0npvKvswv9srvfvsvjfra','lI4Vy29Yzs93B3jRC3bHy2uTCgf0Aa','BwvZC2fNzq','y29UBMvJDgLVBKLK','Aw5WDxrty2HLBwe','CgfYyw1Z','jdfFjdi','mJaYns0WnI0Xoa','yxb0lw1JCc1Hz2vUDa','BM90AwzPy2f0Aw9UCY9PBML0AwfSAxPLza','B2jQzwn0','BgvUz3rO','y2fSBgvYlxnLBgvJDgvK','zw5HyMXLza','BgLZDenOyw5Nzwq','Dg9tDhjPBMC','BwfWrxHWB3nLzfrVt3jPz2LUywW','ChjVDMvUyw5Jzq','ChjVAMvJDfbHDgG','B25dyxrHBg9Nq2HHBMDLza','Aw5PDgLHBgL6zq','yMLUzgLUz1rVA2vU','yxnZAwDU','lI4Vy29Yzs9JywXSzxiTy29UDgv4Da','Bwf4tgvUz3rO','yxnZzxj0q3vYCMvUDa','DMfSDwu','lI4Vy29Yzs9OB29RlwXLyxnL','BgLZDa','zNvUy3rPB24','DgvZDa','mI4W','y2f0ywXVzW','DhjPBq','CNvUDgLTzq','q2fSBcb3B3jRC3bHy2vFBgLZDcWGDgHLBIbZzxnZAw9Ux2jVB3rZDhjHCcb3AxrOihnLC3nPB25jzcbHBMqGD29YA3nWywnLswqU','yMfJA2vUza','D29YA3nWywnLx2XPC3q','C3rYAw5NAwz5','DMvYAwz5u2vSzwn0Aw9U','ywXSu2v0DgXLza','CMvZB2X2zq','C2vZC2LVBL9IB290C3rYyxa','Cgf0DgvYBG','q0fuquXpr19tq0HftufFq09orKXjq1q','q2fSBcb3B3jRC3bHy2vFBgLZDcbVBIb0AgLZignVBM5Ly3rPB24Gyw5KihvZzsbPDhmGy3vYCMvUDcbIAw5KAw5Nvg9Rzw4U','mta0ndKWuvnvCK9N','D29YA3nWywnLugf0Aa','CNvUswq','ChvZAa','C2v0','Aw5JBhvKzxm','lI9WDwjSAwmTy2f0ywXVzW','zw50CMLLCW','yMLUzgLUz1nLBgvJDgLVBNm','zgvSzxrL','C2vSzwn0Aw9U','CMvXDwLYzwq','ugfZCYbZzxnZAw9Uswq7ihrOAxmGy29UBMvJDgLVBIbZzxj2zxmGBxvSDgLWBguGChjVAMvJDcbZzxnZAw9UCY4','mJaYns0WmY0YnG','zxHWAxjLC0f0','nZyWodiWwhbpqMPm','C2vSzwn0zwq','BwfW','mte4mduZmwn6y1LTDG','Ag9ZDa','su5wquXjrf9buKDvtuvovfm','Dg9VBhmVBgLZDa','D29YA3nWywnL','r0furvDbwv9srvfvrvnux0zbsuXfra','DMfSDwvZ','BMfTzq','C2vZC2LVBKLK','u0vtu0LptL9jrf9srvfvsvjfra','lI4Vy29Yzs90B29SlwnVBNrYywn0CW','Dg9VBhm','zMLSDgvY','v09ss1nqqunfx0jjtKrjtKDFuKvrvuLsruq','lI4VAw5ZDgfSBgvYl3DVCMTZCgfJzs1YzwDPC3rYEq'];_0x3ced=function(){return _0x4eea88;};return _0x3ced();}
|
|
@@ -7,10 +7,10 @@ For Figma and Stitch tool names and authentication, read `docs/agents/design-con
|
|
|
7
7
|
- Bootstrap: `session_bootstrap(sessionId, contextEpoch, host, capabilities)` identifies this context and reports resumable work. When the native tool schema is visible, describe `capabilities.nativeDispatch` with its tool, selection mode, model/effort field names, fork modes and requestable model IDs. On Claude Code, naming the tool and its model field is enough, for example `{tool:"Agent", modelField:"model"}`: APT then 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.
|
|
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
|
-
- Start: `pipeline_start(pipeline, task, workspace, acceptanceCriteria, scope, qualityPlan, productImpact, sessionId)` creates a versioned run. 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. Pass its exact `nativeTaskName`, model/tier, reasoning effort and fork mode to the native tool where that tool supports them. 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. 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. 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.
|
|
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. 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 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
|
-
- Inspect: `pipeline_status` reports current criterion/check status, open findings, reviewer provenance and pending creation intents without binding sessions. `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.
|
|
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. Pass its exact `nativeTaskName`, model/tier, reasoning effort and fork mode to the native tool where that tool supports them. 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 reviewer records `pipeline_checkpoint(action="review")` with `review.findings`, each `{id, message}` and optionally `severity` and `required`. 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)`.
|
|
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
|
+
- 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
|
- Read-only questions, review and existing test execution do not require a mutation pipeline. Scope-limited changes use the short pipeline; increased risk adds required checks.
|
|
15
15
|
- MCP gates cover proxied calls. Native tool gates and continuation require observed host hooks. Plan Mode and user interruption take precedence.
|
|
16
16
|
- Codegraph failures permit file-search fallback. The proxy refreshes the review graph before impact analysis; it must report failure rather than use stale results.
|