apt-mcp-agent-setup 3.5.17 → 3.5.18
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 +2 -2
- package/bin/cli.js +1 -1
- package/build-input.json +34 -23
- 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/docs/technical-sources.md +147 -137
- package/integrity-manifest.json +155 -150
- 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-contract.json +1 -0
- 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-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/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 -0
- package/src/core/interrupted-natural-closure-proof.js +1 -0
- 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/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/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/transport-boot-contract.json +12 -0
- package/src/core/transport-close-contract.json +10 -0
- 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/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/interrupted-operation-recovery.js +1 -1
- package/src/installer/legacy-prepared-plan.js +1 -0
- 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/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/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-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/server.js +1 -1
- package/src/proxy/workspace-gateway.js +1 -1
package/src/core/git-context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x4aa8(){const _0x517913=['r0Lux0nfsuXjtKDFreLsrunut1jjrvm','sw52ywXPzcbhAxqGzgLYzwn0B3j5ig1HCMTLCG','y29Kzq','DxrMoa','mJy1muzgyNDUvq','mtm4mJCXmLnVqKvWuq','zgv2','r0Lux0nptLrfwfrFsu5wquXjra','r0Lux1DpuKTFvfjfrq','sevbra','AxneAxjLy3rVCNK','mtmZneD2wu1btq','z2L0rgLY','rxHWBgLJAxqGr2L0igvUDMLYB25Tzw50ig92zxjYAwrLCYbYzxf1AxjLigeGyM91BMqGCMvWB3nPDg9YEsbJB25MAwD1CMf0Aw9U','C29Tzq','AxnhAxrszxbVC2L0B3j5','C3bSAxq','zgLYBMfTzq','CMvZB2X2zq','zgvSAw1PDgvY','ngzzDgXhuq','n2j2zxvsAa','mZCWoeXZDxzXtW','CMvHzezPBgvtEw5J','CMvMCW','mtm2mJGXotzMC3jsDvy','sw5JB21WBgv0zsbhAxqGCMvWB3nPDg9YEsbTzxrHzgf0yq','mtnfr0TUBvK','C3rHDfn5BMm','AM9PBG','mJe4mJbsvg1twei','r0Lux0nptu1ptL9esvi','B2jQzwn0CW','yxnZAwDU','ru5pru5u','AxngAwXL','BM9KztPWyxrO','y29TBw9UzgLY','DhjPBq','C2L6zq','z2L0q29TBw9UrgLY','CMvHBhbHDgHtEw5J','ntGYotK1u0T2Effe','mty0odi1ngrqrLnjCa','BwfW','mtaXnvLwzeDcrW','lMDPDa','ntGZmLfJq1bAsa','Aw5JBhvKzxm'];_0x4aa8=function(){return _0x517913;};return _0x4aa8();}const _0x19f2e3=_0x1b39;(function(_0x4baf1d,_0x316a90){const _0x4984b1=_0x1b39,_0x333069=_0x4baf1d();while(!![]){try{const _0x1e00af=parseInt(_0x4984b1(0x118))/0x1*(-parseInt(_0x4984b1(0x127))/0x2)+-parseInt(_0x4984b1(0x121))/0x3+-parseInt(_0x4984b1(0x130))/0x4*(-parseInt(_0x4984b1(0x115))/0x5)+parseInt(_0x4984b1(0x116))/0x6*(parseInt(_0x4984b1(0x131))/0x7)+-parseInt(_0x4984b1(0x11a))/0x8*(parseInt(_0x4984b1(0x132))/0x9)+parseInt(_0x4984b1(0x109))/0xa*(parseInt(_0x4984b1(0x120))/0xb)+-parseInt(_0x4984b1(0x104))/0xc*(-parseInt(_0x4984b1(0x106))/0xd);if(_0x1e00af===_0x316a90)break;else _0x333069['push'](_0x333069['shift']());}catch(_0x52154f){_0x333069['push'](_0x333069['shift']());}}}(_0x4aa8,0x960c4));function _0x1b39(_0x2e6900,_0x54c3a9){_0x2e6900=_0x2e6900-0x102;const _0x4aa847=_0x4aa8();let _0x1b394f=_0x4aa847[_0x2e6900];if(_0x1b39['BuPcMZ']===undefined){var _0x45fffc=function(_0x4132d8){const _0x46098b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x40cd52='',_0xad0b50='';for(let _0x1299f7=0x0,_0x52b2af,_0x23432f,_0x186c28=0x0;_0x23432f=_0x4132d8['charAt'](_0x186c28++);~_0x23432f&&(_0x52b2af=_0x1299f7%0x4?_0x52b2af*0x40+_0x23432f:_0x23432f,_0x1299f7++%0x4)?_0x40cd52+=String['fromCharCode'](0xff&_0x52b2af>>(-0x2*_0x1299f7&0x6)):0x0){_0x23432f=_0x46098b['indexOf'](_0x23432f);}for(let _0x4cca65=0x0,_0x2899fd=_0x40cd52['length'];_0x4cca65<_0x2899fd;_0x4cca65++){_0xad0b50+='%'+('00'+_0x40cd52['charCodeAt'](_0x4cca65)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xad0b50);};_0x1b39['PtpIdD']=_0x45fffc,_0x1b39['iiGgNo']={},_0x1b39['BuPcMZ']=!![];}const _0xcdfef1=_0x4aa847[0x0],_0x87f691=_0x2e6900+_0xcdfef1,_0x36a831=_0x1b39['iiGgNo'][_0x87f691];return!_0x36a831?(_0x1b394f=_0x1b39['PtpIdD'](_0x1b394f),_0x1b39['iiGgNo'][_0x87f691]=_0x1b394f):_0x1b394f=_0x36a831,_0x1b394f;}const fs=require('node:fs'),path=require(_0x19f2e3(0x10f)),missing=_0x2899fd=>[_0x19f2e3(0x10d),'ENOTDIR'][_0x19f2e3(0x11b)](_0x2899fd[_0x19f2e3(0x11e)]);function stat(_0x45cbd7){const _0x28f044=_0x19f2e3;try{return fs[_0x28f044(0x107)](_0x45cbd7);}catch(_0x234ec2){if(!missing(_0x234ec2))throw _0x234ec2;return null;}}function text(_0x43d264){const _0x35ea88=_0x19f2e3,_0x5426c0={};_0x5426c0['code']=_0x35ea88(0x123);if(stat(_0x43d264)?.[_0x35ea88(0x112)]>0x1000)throw Object[_0x35ea88(0x10c)](new Error('Git\x20path\x20metadata\x20exceeds\x20inspection\x20limit'),_0x5426c0);return fs[_0x35ea88(0x102)](_0x43d264,_0x35ea88(0x11f))[_0x35ea88(0x111)]();}function repositoryContext(_0x250302,_0x17ec0d=process.env){const _0x5d6fa4=_0x19f2e3,_0x18fb20=fs['realpathSync'](_0x250302),_0x5cdc7b={};_0x5cdc7b[_0x5d6fa4(0x11e)]='GIT_CONTEXT_OVERRIDE_UNSUPPORTED';if(['GIT_DIR',_0x5d6fa4(0x10a),_0x5d6fa4(0x124)][_0x5d6fa4(0x12a)](_0x556cbc=>_0x17ec0d[_0x556cbc]))throw Object[_0x5d6fa4(0x10c)](new Error(_0x5d6fa4(0x129)),_0x5cdc7b);const _0x1d7aee=(_0x17ec0d[_0x5d6fa4(0x11c)]||'')[_0x5d6fa4(0x12c)](path[_0x5d6fa4(0x12f)])['filter'](Boolean)[_0x5d6fa4(0x117)](_0x1e3cce=>path['resolve'](_0x1e3cce));let _0x86a512=_0x18fb20;const _0xbe9682=fs[_0x5d6fa4(0x107)](_0x18fb20)[_0x5d6fa4(0x122)];while(!![]){const _0x39c29f=path[_0x5d6fa4(0x108)](_0x86a512,_0x5d6fa4(0x119)),_0x16a0fe=stat(_0x39c29f);if(_0x16a0fe){let _0x1bfa39;if(_0x16a0fe['isDirectory']())_0x1bfa39=fs[_0x5d6fa4(0x114)](_0x39c29f);else{if(_0x16a0fe[_0x5d6fa4(0x10e)]()){const _0x412445=/^gitdir: (.+)$/['exec'](text(_0x39c29f));if(_0x412445)_0x1bfa39=fs[_0x5d6fa4(0x114)](path[_0x5d6fa4(0x12e)](_0x86a512,_0x412445[0x1]));}}const _0x398782={};_0x398782[_0x5d6fa4(0x11e)]=_0x5d6fa4(0x123);if(!_0x1bfa39)throw Object['assign'](new Error(_0x5d6fa4(0x11d)),_0x398782);const _0x1a4935=path[_0x5d6fa4(0x108)](_0x1bfa39,_0x5d6fa4(0x110)),_0x72d921=stat(_0x1a4935)?fs[_0x5d6fa4(0x114)](path[_0x5d6fa4(0x12e)](_0x1bfa39,text(_0x1a4935))):_0x1bfa39,_0x3a27a7={};_0x3a27a7[_0x5d6fa4(0x11e)]='GIT_CONTEXT_INVALID';if(!stat(path['join'](_0x1bfa39,_0x5d6fa4(0x125)))?.[_0x5d6fa4(0x10e)]()||!stat(path[_0x5d6fa4(0x108)](_0x72d921,_0x5d6fa4(0x10b)))?.[_0x5d6fa4(0x126)]()||!stat(path['join'](_0x72d921,_0x5d6fa4(0x103)))?.[_0x5d6fa4(0x126)]())throw Object[_0x5d6fa4(0x10c)](new Error(_0x5d6fa4(0x105)),_0x3a27a7);const _0x15ce0c={};return _0x15ce0c[_0x5d6fa4(0x12b)]=!![],_0x15ce0c[_0x5d6fa4(0x128)]=_0x1bfa39,_0x15ce0c[_0x5d6fa4(0x113)]=_0x72d921,_0x15ce0c;}if(stat(path[_0x5d6fa4(0x108)](_0x86a512,_0x5d6fa4(0x125)))?.[_0x5d6fa4(0x10e)]()&&stat(path[_0x5d6fa4(0x108)](_0x86a512,_0x5d6fa4(0x10b)))?.[_0x5d6fa4(0x126)]())break;const _0x1ad3d5=path[_0x5d6fa4(0x12d)](_0x86a512);if(_0x1ad3d5===_0x86a512||_0x1d7aee[_0x5d6fa4(0x11b)](_0x1ad3d5)||_0x17ec0d['GIT_DISCOVERY_ACROSS_FILESYSTEM']!=='1'&&fs[_0x5d6fa4(0x107)](_0x1ad3d5)[_0x5d6fa4(0x122)]!==_0xbe9682)break;_0x86a512=_0x1ad3d5;}const _0x11b768={};return _0x11b768[_0x5d6fa4(0x12b)]=![],_0x11b768['gitDir']=null,_0x11b768[_0x5d6fa4(0x113)]=null,_0x11b768;}const _0x4cca65={};_0x4cca65['repositoryContext']=repositoryContext,module['exports']=_0x4cca65;
|
package/src/core/hook-bridge.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x51c510=_0x4822;(function(_0x5c3cdd,_0x28c44e){const _0x10ede3=_0x4822,_0x437b91=_0x5c3cdd();while(!![]){try{const _0x5871ff=-parseInt(_0x10ede3(0x21c))/0x1*(parseInt(_0x10ede3(0x297))/0x2)+-parseInt(_0x10ede3(0x2ef))/0x3*(parseInt(_0x10ede3(0x22f))/0x4)+parseInt(_0x10ede3(0x231))/0x5*(parseInt(_0x10ede3(0x245))/0x6)+-parseInt(_0x10ede3(0x2ea))/0x7+-parseInt(_0x10ede3(0x281))/0x8+-parseInt(_0x10ede3(0x28a))/0x9+parseInt(_0x10ede3(0x200))/0xa*(parseInt(_0x10ede3(0x213))/0xb);if(_0x5871ff===_0x28c44e)break;else _0x437b91['push'](_0x437b91['shift']());}catch(_0x1a1ff3){_0x437b91['push'](_0x437b91['shift']());}}}(_0x3d0b,0x4ad19));const fs=require('fs'),path=require(_0x51c510(0x2ab)),crypto=require('crypto'),{isDeepStrictEqual}=require('util'),{SessionRuntime}=require(_0x51c510(0x356)),{sameWorkspace,workspaceServerAlias}=require(_0x51c510(0x29b)),{normalizeHook,detectCapabilities,formatHookResult}=require(_0x51c510(0x1ec)),{ClaudeNative,fingerprint,failure:nativeFailure}=require(_0x51c510(0x222));function responseObjects(_0x32838c,_0x22b24f=0x0){const _0x2d2fe5=_0x51c510;if(_0x22b24f>0x4||_0x32838c==null)return[];if(typeof _0x32838c===_0x2d2fe5(0x1da)){if(_0x32838c[_0x2d2fe5(0x32c)]>0x10000)return[];try{return responseObjects(JSON[_0x2d2fe5(0x316)](_0x32838c),_0x22b24f+0x1);}catch{return[];}}if(Array[_0x2d2fe5(0x2c0)](_0x32838c))return _0x32838c[_0x2d2fe5(0x269)](_0x4573d4=>responseObjects(_0x4573d4,_0x22b24f+0x1));if(typeof _0x32838c!==_0x2d2fe5(0x1e8)||_0x32838c[_0x2d2fe5(0x27e)]===!![]||_0x32838c[_0x2d2fe5(0x248)])return[];return[_0x32838c,...[_0x2d2fe5(0x1d8),_0x2d2fe5(0x2c8),'output',_0x2d2fe5(0x342)][_0x2d2fe5(0x269)](_0x8aaa71=>responseObjects(_0x32838c[_0x8aaa71],_0x22b24f+0x1))];}function workerBrief(_0x459375){const _0x1e745e=_0x51c510,_0x5f28c3=String(_0x459375||''),_0x1be89f=_0x5f28c3[_0x1e745e(0x21b)](/\bAPT_ATTEMPT_ID=([0-9a-f-]{36})\b/i)?.[0x1],_0x1ba690=_0x5f28c3[_0x1e745e(0x21b)](/\bAPT_ACTOR_ID=([^\s]+)/)?.[0x1],_0x46f0b5=_0x5f28c3[_0x1e745e(0x21b)](/\bAPT_SESSION_ID=([^\s]+)/)?.[0x1];try{return _0x1be89f&&_0x1ba690&&_0x46f0b5?{'attemptId':_0x1be89f,'actorId':decodeURIComponent(_0x1ba690),'sessionId':decodeURIComponent(_0x46f0b5)}:null;}catch{return null;}}function hostWorkerIds(_0x3bca5b){const _0x3e683f=_0x51c510,_0xf7893c=new Set();if(typeof _0x3bca5b===_0x3e683f(0x1da)&&_0x3bca5b[_0x3e683f(0x32c)]<=0x10000)try{_0x3bca5b=JSON[_0x3e683f(0x316)](_0x3bca5b);}catch{return[];}if(!_0x3bca5b||typeof _0x3bca5b!==_0x3e683f(0x1e8)||_0x3bca5b[_0x3e683f(0x27e)]===!![]||_0x3bca5b['error'])return[];const _0x35c2e1=_0x3bca5b[_0x3e683f(0x1d8)]&&typeof _0x3bca5b[_0x3e683f(0x1d8)]===_0x3e683f(0x1e8)&&!_0x3bca5b[_0x3e683f(0x1d8)][_0x3e683f(0x248)]?_0x3bca5b[_0x3e683f(0x1d8)]:_0x3bca5b;for(const _0x450c70 of[_0x3e683f(0x1ef),'agentId',_0x3e683f(0x1dd),_0x3e683f(0x301),_0x3e683f(0x2d6),_0x3e683f(0x351),_0x3e683f(0x2cd)]){const _0xe36e7e=_0x35c2e1[_0x450c70];if(typeof _0xe36e7e===_0x3e683f(0x1da)&&_0xe36e7e&&_0xe36e7e['length']<=0x200)_0xf7893c['add'](_0xe36e7e);}return[..._0xf7893c];}function codexDispatchStatus(_0x110223,_0x151c43={}){const _0x1cdc0b=_0x51c510,_0x24437f=_0x110223[_0x1cdc0b(0x1dc)]?.[_0x1cdc0b(0x2c3)]||null,_0x198886=typeof _0x151c43[_0x1cdc0b(0x30b)]==='string'?_0x151c43['model']:null;if(_0x110223[_0x1cdc0b(0x1cc)]&&_0x151c43['task_name']!==_0x110223['nativeTaskName'])return _0x1cdc0b(0x32d);if(!_0x24437f)return _0x198886?_0x1cdc0b(0x1c1):'inherit';if(!_0x198886)return'missing-selector';if(_0x198886!==_0x24437f)return'selector-mismatch';if(_0x110223[_0x1cdc0b(0x250)]?.[_0x1cdc0b(0x237)]&&_0x151c43[_0x1cdc0b(0x2fb)]!==_0x110223['nativeDispatch'][_0x1cdc0b(0x237)])return _0x1cdc0b(0x285);if(_0x110223[_0x1cdc0b(0x1dc)]?.['reasoningEffort']&&_0x151c43[_0x1cdc0b(0x2fd)]!==_0x110223[_0x1cdc0b(0x1dc)][_0x1cdc0b(0x2c1)])return _0x1cdc0b(0x299);return _0x1cdc0b(0x1e7);}function isSignedInstalledDoctor(_0x15c979,_0x1552f0){const _0x18d401=_0x51c510;if(!_0x1552f0)return![];const _0xb3463e=[];try{const _0x4dfe88=JSON[_0x18d401(0x316)](fs['readFileSync'](path[_0x18d401(0x230)](_0x1552f0,'.agents/mcp_config.json'),'utf8')),_0x391ee1=_0x4dfe88['mcpServers']?.[workspaceServerAlias(_0x1552f0)],_0x27a692=_0x391ee1?.['args'];if(_0x391ee1?.['command']===_0x18d401(0x24a)&&Array[_0x18d401(0x2c0)](_0x27a692)&&_0x27a692[_0x18d401(0x32c)]===0x3&&_0x27a692[0x1]===_0x18d401(0x20f)&&sameWorkspace(_0x27a692[0x2],_0x1552f0)&&path[_0x18d401(0x256)](_0x27a692[0x0])===_0x18d401(0x211))_0xb3463e[_0x18d401(0x308)](path['dirname'](_0x27a692[0x0]));}catch{}try{const _0x2c376c=new(require(_0x18d401(0x1ad)))[(_0x18d401(0x1af))]()[_0x18d401(0x310)](),_0x1f8fff=_0x2c376c[_0x18d401(0x27f)](_0x487163=>sameWorkspace(_0x487163[_0x18d401(0x244)],_0x1552f0));for(const _0x42536e of _0x1f8fff?.['hosts']||[]){const _0x94acf=require('../installer/registrations')[_0x18d401(0x1d2)](_0x42536e,_0x18d401(0x300),_0x1552f0),_0x275bd1=_0x94acf[_0x18d401(0x1a4)][_0x18d401(0x27f)](_0xf606ba=>_0xf606ba[_0x18d401(0x2ca)]===_0x18d401(0x330)),_0x5e87a8=_0x275bd1?.[_0x18d401(0x1b6)]?.['args'];if(_0x275bd1?.[_0x18d401(0x1b6)]?.[_0x18d401(0x2fc)]!==_0x18d401(0x24a)||!Array['isArray'](_0x5e87a8)||_0x5e87a8[_0x18d401(0x32c)]!==0x4||_0x5e87a8[0x1]!==_0x18d401(0x1ba)||_0x5e87a8[0x2]!==_0x18d401(0x2b9)||_0x5e87a8[0x3]!==_0x42536e||path[_0x18d401(0x256)](_0x5e87a8[0x0])!==_0x18d401(0x211))continue;const _0xd8cd22={};_0xd8cd22['host']=_0x42536e,_0xd8cd22[_0x18d401(0x2f0)]='global',_0xd8cd22[_0x18d401(0x259)]=_0x94acf[_0x18d401(0x2ab)],_0xd8cd22[_0x18d401(0x298)]='apt-mcp-agent',_0xd8cd22[_0x18d401(0x279)]=_0x275bd1[_0x18d401(0x2ac)];if(require(_0x18d401(0x287))[_0x18d401(0x261)](_0xd8cd22))_0xb3463e[_0x18d401(0x308)](path['dirname'](_0x5e87a8[0x0]));}}catch{}for(const _0x222ddd of _0xb3463e)try{const _0x11a693=[];for(const _0x143f3e of[path[_0x18d401(0x230)](_0x222ddd,_0x18d401(0x348)),path[_0x18d401(0x230)](_0x222ddd,_0x18d401(0x2b2)),path[_0x18d401(0x230)](_0x1552f0,_0x18d401(0x1bc)),path[_0x18d401(0x230)](_0x1552f0,_0x18d401(0x286))]){try{const _0xdba3f=JSON['parse'](fs[_0x18d401(0x2d2)](_0x143f3e,_0x18d401(0x2d5)));_0x11a693['push'](_0xdba3f[_0x18d401(0x347)]||_0xdba3f);}catch{}}for(const _0x40d7ff of _0x11a693){if(!/^\d+\.\d+\.\d+$/[_0x18d401(0x1c2)](_0x40d7ff[_0x18d401(0x31b)])||!/^[a-f0-9]{64}$/[_0x18d401(0x1c2)](_0x40d7ff[_0x18d401(0x26b)]))continue;const _0x215bb0=path[_0x18d401(0x230)](_0x222ddd,_0x18d401(0x293),_0x40d7ff[_0x18d401(0x31b)]+'-'+_0x40d7ff['digest']);if(fs['lstatSync'](_0x215bb0)[_0x18d401(0x32a)]()||!sameWorkspace(_0x15c979,path['join'](_0x215bb0,_0x18d401(0x326))))continue;const _0x23bf3f=JSON[_0x18d401(0x316)](fs[_0x18d401(0x2d2)](path[_0x18d401(0x230)](_0x215bb0,_0x18d401(0x31f)),_0x18d401(0x2d5))),_0x5cdedd=require(_0x18d401(0x271))[_0x18d401(0x1be)];if(!_0x23bf3f['files']||!crypto[_0x18d401(0x315)](null,Buffer[_0x18d401(0x25c)](JSON['stringify'](_0x23bf3f['files'])),_0x5cdedd,Buffer[_0x18d401(0x25c)](_0x23bf3f[_0x18d401(0x2a9)]||'','base64url')))continue;const _0x1376e2=path[_0x18d401(0x230)](_0x215bb0,'src/installer/runtime-store.js');if(fs[_0x18d401(0x221)](_0x1376e2)['isSymbolicLink']()||crypto[_0x18d401(0x2c6)](_0x18d401(0x2e8))['update'](fs[_0x18d401(0x2d2)](_0x1376e2))['digest']('hex')!==_0x23bf3f[_0x18d401(0x1c6)][_0x18d401(0x1a5)])continue;const _0x257541=require(_0x1376e2)[_0x18d401(0x25b)](_0x215bb0,_0x5cdedd);if(_0x257541[_0x18d401(0x31b)]===_0x40d7ff[_0x18d401(0x31b)]&&_0x257541[_0x18d401(0x26b)]===_0x40d7ff[_0x18d401(0x26b)])return!![];}}catch{}return![];}function isOwnDoctorCommand(_0x543550,_0x5776b7){const _0x1c1eb9=_0x51c510,_0x2a963b=/^node(?:\.exe)? (?:(?:"([^"\r\n;&|<>`$()%^!#]+)")|([^\s"';&|<>`$()%^!#]+)) doctor --project \.(?:[ \t]+2>&1)?$/i[_0x1c1eb9(0x1bb)](_0x543550);if(!_0x2a963b)return![];const _0x405ae5=_0x2a963b[0x1]||_0x2a963b[0x2];if(!path['isAbsolute'](_0x405ae5)||process['platform']!=='win32'&&['\x5c','*','?','[',']','{','}'][_0x1c1eb9(0x20d)](_0x46f4f9=>_0x405ae5[_0x1c1eb9(0x31e)](_0x46f4f9)))return![];try{if(sameWorkspace(_0x405ae5,path[_0x1c1eb9(0x21f)](__dirname,_0x1c1eb9(0x302))))return!![];}catch{}return isSignedInstalledDoctor(_0x405ae5,_0x5776b7);}const APT_WRAPPED_UNGUARDED_TOOLS=new Set([_0x51c510(0x303),_0x51c510(0x2b1),_0x51c510(0x2e9),'model_list',_0x51c510(0x22c),_0x51c510(0x25d),'pipeline_start',_0x51c510(0x21e),'pipeline_status',_0x51c510(0x2b6),_0x51c510(0x1eb),'pipeline_verify',_0x51c510(0x2ad),_0x51c510(0x32f),'pipeline_prepare_merge',_0x51c510(0x2b4),_0x51c510(0x296),_0x51c510(0x34d),_0x51c510(0x23f),_0x51c510(0x278),_0x51c510(0x344),'grep_search','read_knowledge',_0x51c510(0x30a),_0x51c510(0x1fd),'mcp_agent_health']),NATIVE_CODEX_SPAWN_NAMES=new Set([_0x51c510(0x339),_0x51c510(0x2e0),_0x51c510(0x332),'functions.collaboration.spawn_agent']),HOST_OWNED_EXTERNAL_PERMISSIONS=new Set([_0x51c510(0x2f7),_0x51c510(0x2f9),_0x51c510(0x212)]);function hostOwnsExternalToolPermissions(_0x14edd5){const _0x2b5146=_0x51c510;return HOST_OWNED_EXTERNAL_PERMISSIONS[_0x2b5146(0x284)](_0x14edd5);}function aptNamespacedTool(_0x2cf320,_0x54bff){const _0x590b02=_0x51c510,_0x82c269=/^mcp__(.+)__([a-z][a-z0-9_-]*)$/i['exec'](_0x2cf320);if(!_0x82c269)return null;const _0x32e522=_0x82c269[0x1][_0x590b02(0x292)]();return[_0x590b02(0x1c3),_0x590b02(0x241),_0x590b02(0x330)]['includes'](_0x32e522)||_0x54bff&&_0x32e522===workspaceServerAlias(_0x54bff)[_0x590b02(0x292)]()?_0x82c269[0x2]['toLowerCase']():null;}function aptDirectTool(_0x30b2a7,_0x302887){const _0x23ba27=_0x51c510;if(typeof _0x30b2a7!=='string'||!_0x30b2a7[_0x23ba27(0x292)]()[_0x23ba27(0x2f2)](_0x23ba27(0x280)))return null;const _0x1f98eb=_0x30b2a7[_0x23ba27(0x292)](),_0x5eb8d2=[_0x23ba27(0x330)];if(_0x302887)_0x5eb8d2['push'](workspaceServerAlias(_0x302887));for(const _0x5ee517 of _0x5eb8d2['map'](_0x55b364=>_0x55b364['toLowerCase']())){const _0x4f0688=_0x23ba27(0x280)+_0x5ee517+'_';if(_0x1f98eb[_0x23ba27(0x2f2)](_0x4f0688)){const _0x5d9704=_0x1f98eb['slice'](_0x4f0688[_0x23ba27(0x32c)]);return/^[a-z][a-z0-9_-]*$/[_0x23ba27(0x1c2)](_0x5d9704)?_0x5d9704:null;}}return null;}function aptToolForHook(_0x140f30,_0x187743){const _0x3a1082=_0x51c510,_0x4ab63c=aptDirectTool(_0x140f30['toolName'],_0x187743)||aptNamespacedTool(_0x140f30[_0x3a1082(0x251)],_0x187743);if(_0x4ab63c)return _0x4ab63c;if(_0x140f30[_0x3a1082(0x30e)]&&require(_0x3a1082(0x1b4))[_0x3a1082(0x1ae)](_0x140f30[_0x3a1082(0x251)]))return _0x140f30[_0x3a1082(0x251)];return APT_WRAPPED_UNGUARDED_TOOLS[_0x3a1082(0x284)](_0x140f30['toolName'])?_0x140f30[_0x3a1082(0x251)]:null;}function externalHostTool(_0x170196,_0x18713e={},_0x32bc3c){const _0x47e1b4=_0x51c510,_0x1611ab=_0x32bc3c?workspaceServerAlias(_0x32bc3c):null;if(_0x170196===_0x47e1b4(0x2c9))return!![];if(_0x170196==='call_mcp_tool'){const _0x3667e3=_0x18713e['ServerName'];if(typeof _0x3667e3!==_0x47e1b4(0x1da))return![];return![_0x47e1b4(0x330),_0x1611ab]['filter'](Boolean)[_0x47e1b4(0x1f9)](_0x4c3d1f=>_0x4c3d1f[_0x47e1b4(0x292)]())['includes'](_0x3667e3[_0x47e1b4(0x292)]())&&!/^apt-mcp-agent-w[a-f0-9]{12}$/i[_0x47e1b4(0x1c2)](_0x3667e3);}if(_0x170196[_0x47e1b4(0x2f2)](_0x47e1b4(0x1db))){const _0x11c03b=/^mcp__(.+)__[a-z][a-z0-9_-]*$/i['exec'](_0x170196);if(!_0x11c03b)return![];const _0x51a6b5=_0x11c03b[0x1];return!['apt',_0x47e1b4(0x241),_0x47e1b4(0x330),_0x1611ab]['filter'](Boolean)[_0x47e1b4(0x1f9)](_0x388b3a=>_0x388b3a[_0x47e1b4(0x292)]())[_0x47e1b4(0x31e)](_0x51a6b5['toLowerCase']())&&!/^apt-mcp-agent-w[a-f0-9]{12}$/i['test'](_0x51a6b5);}if(_0x170196[_0x47e1b4(0x2f2)](_0x47e1b4(0x280))){if(typeof _0x170196===_0x47e1b4(0x1da)&&_0x170196[_0x47e1b4(0x292)]()[_0x47e1b4(0x2f2)](_0x47e1b4(0x321)))return![];if(aptDirectTool(_0x170196,_0x32bc3c))return![];return!/^mcp_apt-mcp-agent-w[a-f0-9]{12}_/i['test'](_0x170196);}return![];}function isWriteTool(_0x23b988,_0x566206={},_0x88512f,_0x3ed63c=null){const _0x1f573e=_0x51c510;if(hostOwnsExternalToolPermissions(_0x3ed63c)&&externalHostTool(_0x23b988,_0x566206,_0x88512f))return![];if([_0x1f573e(0x204),_0x1f573e(0x1f1),_0x1f573e(0x2cc),_0x1f573e(0x282),_0x1f573e(0x1f5),_0x1f573e(0x341)]['includes'](_0x23b988))return![];const _0x4154a6=_0x8fb096=>_0x8fb096&&require('./caller-context')[_0x1f573e(0x1ae)](_0x8fb096);if(_0x23b988[_0x1f573e(0x31e)]('__')){const _0x6e37ec=aptNamespacedTool(_0x23b988,_0x88512f);return!APT_WRAPPED_UNGUARDED_TOOLS['has'](_0x6e37ec)&&!_0x4154a6(_0x6e37ec);}if(_0x23b988[_0x1f573e(0x2f2)](_0x1f573e(0x280))){const _0x539b33=aptDirectTool(_0x23b988,_0x88512f);return!APT_WRAPPED_UNGUARDED_TOOLS[_0x1f573e(0x284)](_0x539b33)&&!_0x4154a6(_0x539b33);}if(APT_WRAPPED_UNGUARDED_TOOLS[_0x1f573e(0x284)](_0x23b988))return![];if(/^(read|read_file|view_file|view_file_outline|read_many_files|read_resource|list_resources|list_resource_templates|grep|glob|list_files|list_dir|view_image|search_web|read_url_content|find_by_name|list_permissions|request_user_input)$/i[_0x1f573e(0x1c2)](_0x23b988))return![];if(/bash|shell|terminal|exec|run_command/i[_0x1f573e(0x1c2)](_0x23b988)){const _0x5ab3d7=[_0x1f573e(0x2fc),'cmd',_0x1f573e(0x352),_0x1f573e(0x295)][_0x1f573e(0x1f9)](_0x496c3b=>_0x566206[_0x496c3b])['filter'](_0x16963a=>typeof _0x16963a==='string'&&_0x16963a['trim']());if(new Set(_0x5ab3d7)['size']>0x1||Object['entries'](_0x566206)[_0x1f573e(0x20d)](([_0x321eab,_0x3b43be])=>/^(env|environment)$/i['test'](_0x321eab)&&_0x3b43be&&(typeof _0x3b43be!==_0x1f573e(0x1e8)||Object[_0x1f573e(0x345)](_0x3b43be)['length'])))return!![];const _0x5227ae=_0x5ab3d7[0x0]||'';if(isOwnDoctorCommand(_0x5227ae[_0x1f573e(0x246)](),_0x88512f))return![];if(require('./read-command')[_0x1f573e(0x1c5)](_0x5227ae))return![];if(/--(?:output|ext-diff|textconv|pre)(?:=|\s|$)/i[_0x1f573e(0x1c2)](_0x5227ae))return!![];return!/^(git (status|diff|show|log|rev-parse)( [\w./ :@=,-]+)?|pwd|Get-Location|rg( --files)?( [\w./ :@=,-]+)?|(?:npm|pnpm|yarn) (?:test|run test)(?: [\w./ :=,-]+)?|node --test(?: [\w./ :=,-]+)?|flutter test(?: [\w./ :=,-]+)?)(?:[ \t]+2>&1)?$/i[_0x1f573e(0x1c2)](_0x5227ae[_0x1f573e(0x246)]());}return!![];}function _0x4822(_0x380f9e,_0x5ad6b4){_0x380f9e=_0x380f9e-0x1a2;const _0x3d0b8f=_0x3d0b();let _0x482286=_0x3d0b8f[_0x380f9e];if(_0x4822['hoNtxP']===undefined){var _0x34ebb7=function(_0x13a0fd){const _0x250810='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1dedff='',_0x304eaa='';for(let _0x442fac=0x0,_0x542717,_0x2e836c,_0x9e8eb0=0x0;_0x2e836c=_0x13a0fd['charAt'](_0x9e8eb0++);~_0x2e836c&&(_0x542717=_0x442fac%0x4?_0x542717*0x40+_0x2e836c:_0x2e836c,_0x442fac++%0x4)?_0x1dedff+=String['fromCharCode'](0xff&_0x542717>>(-0x2*_0x442fac&0x6)):0x0){_0x2e836c=_0x250810['indexOf'](_0x2e836c);}for(let _0x568f6d=0x0,_0x892185=_0x1dedff['length'];_0x568f6d<_0x892185;_0x568f6d++){_0x304eaa+='%'+('00'+_0x1dedff['charCodeAt'](_0x568f6d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x304eaa);};_0x4822['pKuoRe']=_0x34ebb7,_0x4822['ZYfeCk']={},_0x4822['hoNtxP']=!![];}const _0x4cd236=_0x3d0b8f[0x0],_0x5b81cb=_0x380f9e+_0x4cd236,_0x36332a=_0x4822['ZYfeCk'][_0x5b81cb];return!_0x36332a?(_0x482286=_0x4822['pKuoRe'](_0x482286),_0x4822['ZYfeCk'][_0x5b81cb]=_0x482286):_0x482286=_0x36332a,_0x482286;}function unwrapAptMcpCall(_0x1224be,_0x499b8e){const _0x4c47c5=_0x51c510;if(_0x1224be['toolName']!==_0x4c47c5(0x2b0))return;const _0x487389=_0x1224be[_0x4c47c5(0x26e)];if(!_0x487389||typeof _0x487389!==_0x4c47c5(0x1e8)||Array[_0x4c47c5(0x2c0)](_0x487389)||![_0x4c47c5(0x330),workspaceServerAlias(_0x499b8e)]['some'](_0x8ab3a4=>_0x8ab3a4[_0x4c47c5(0x292)]()===String(_0x487389[_0x4c47c5(0x2bd)])[_0x4c47c5(0x292)]())||!APT_WRAPPED_UNGUARDED_TOOLS[_0x4c47c5(0x284)](_0x487389[_0x4c47c5(0x210)])&&!require(_0x4c47c5(0x1b4))[_0x4c47c5(0x1ae)](_0x487389[_0x4c47c5(0x210)]))return;if(Object[_0x4c47c5(0x345)](_0x487389)[_0x4c47c5(0x20d)](_0x359c83=>/^(servername|server_name|toolname|tool_name|arguments?|arguments_json|args)$/i[_0x4c47c5(0x1c2)](_0x359c83)&&![_0x4c47c5(0x2bd),_0x4c47c5(0x210),_0x4c47c5(0x2fe)][_0x4c47c5(0x31e)](_0x359c83)))return;let _0x4561da=_0x487389[_0x4c47c5(0x2fe)];if(typeof _0x4561da==='string'){if(_0x4561da[_0x4c47c5(0x32c)]>0x10000)return;try{_0x4561da=JSON[_0x4c47c5(0x316)](_0x4561da);}catch{return;}}if(!_0x4561da||typeof _0x4561da!==_0x4c47c5(0x1e8)||Array[_0x4c47c5(0x2c0)](_0x4561da))return;_0x1224be[_0x4c47c5(0x30e)]=_0x487389[_0x4c47c5(0x2bd)],_0x1224be[_0x4c47c5(0x251)]=_0x487389[_0x4c47c5(0x210)],_0x1224be['toolInput']=_0x4561da;}async function processHook(_0x1d2e39,_0x591a48,_0x223179,_0x1a47b8,_0x22706f={}){const _0x26d7ac=_0x51c510;_0x22706f[_0x26d7ac(0x26d)]?.(),require(_0x26d7ac(0x1ec))[_0x26d7ac(0x273)](_0x223179['capabilities']);const _0x583fc0=normalizeHook(_0x1d2e39,_0x591a48,_0x223179),_0x5952f7=!!_0x223179[_0x26d7ac(0x26a)]&&(Object[_0x26d7ac(0x313)]['hasOwnProperty']['call'](_0x223179,_0x26d7ac(0x2b5))&&_0x223179[_0x26d7ac(0x2b5)]!==_0x223179[_0x26d7ac(0x26a)][_0x26d7ac(0x2ca)]||Object['prototype'][_0x26d7ac(0x22a)][_0x26d7ac(0x30d)](_0x223179,_0x26d7ac(0x2e4))&&!isDeepStrictEqual(_0x223179['tool_input'],_0x223179[_0x26d7ac(0x26a)][_0x26d7ac(0x1de)]));if(!_0x583fc0[_0x26d7ac(0x277)])throw new Error(_0x26d7ac(0x1d6));const _0x4714af=_0x583fc0[_0x26d7ac(0x277)],_0x2477bd=_0x22706f[_0x26d7ac(0x335)]||new SessionRuntime(_0x1a47b8),_0x1f3954=_0x2477bd['projectPath'],_0x4646c2={};_0x4646c2[_0x26d7ac(0x27c)]=![],_0x4646c2[_0x26d7ac(0x340)]='APT\x20workspace\x20does\x20not\x20match\x20the\x20host\x20workspace.\x20Bootstrap\x20the\x20correct\x20workspace.';if(_0x583fc0[_0x26d7ac(0x244)]&&!sameWorkspace(_0x583fc0['workspace'],_0x2477bd[_0x26d7ac(0x22d)]))return _0x4646c2;if(_0x1d2e39===_0x26d7ac(0x212)&&_0x583fc0['kind']===_0x26d7ac(0x218)&&_0x583fc0[_0x26d7ac(0x251)]==='call_mcp_tool'&&/^apt-mcp-agent-w[a-f0-9]{12}$/i[_0x26d7ac(0x1c2)](_0x583fc0[_0x26d7ac(0x26e)]?.['ServerName'])&&_0x583fc0[_0x26d7ac(0x26e)]['ServerName'][_0x26d7ac(0x292)]()!==require(_0x26d7ac(0x29b))['workspaceServerAlias'](_0x2477bd[_0x26d7ac(0x22d)])[_0x26d7ac(0x292)]())return{'allow':![],'reason':_0x26d7ac(0x355)+require(_0x26d7ac(0x29b))[_0x26d7ac(0x225)](_0x2477bd[_0x26d7ac(0x22d)])+_0x26d7ac(0x1c8)+_0x2477bd[_0x26d7ac(0x22d)]+'.'};if(_0x1d2e39===_0x26d7ac(0x212))unwrapAptMcpCall(_0x583fc0,_0x2477bd[_0x26d7ac(0x22d)]);if(['codex',_0x26d7ac(0x2f7)][_0x26d7ac(0x31e)](_0x1d2e39)&&!_0x223179[_0x26d7ac(0x1ef)]&&!_0x5952f7&&(aptNamespacedTool(_0x583fc0[_0x26d7ac(0x251)],_0x2477bd[_0x26d7ac(0x22d)])||aptDirectTool(_0x583fc0['toolName'],_0x2477bd[_0x26d7ac(0x22d)]))===_0x26d7ac(0x303)){if(_0x583fc0[_0x26d7ac(0x260)]==='after-tool'&&typeof _0x583fc0[_0x26d7ac(0x26e)][_0x26d7ac(0x277)]==='string'){const _0x2e046=responseObjects(_0x223179[_0x26d7ac(0x2f5)])[_0x26d7ac(0x27f)](_0x295ddc=>_0x295ddc[_0x26d7ac(0x277)]===_0x583fc0['toolInput'][_0x26d7ac(0x277)]&&typeof _0x295ddc[_0x26d7ac(0x244)]===_0x26d7ac(0x1da)&&sameWorkspace(_0x295ddc['workspace'],_0x2477bd[_0x26d7ac(0x22d)]));if(_0x2e046){if(_0x1d2e39===_0x26d7ac(0x2f7)&&/^[0-9a-f-]{36}$/i[_0x26d7ac(0x1c2)](_0x4714af)&&_0x223179['tool_use_id'])_0x2477bd[_0x26d7ac(0x1ff)]({'aptSessionId':_0x2e046['sessionId'],'nativeSessionId':_0x4714af,'host':_0x1d2e39,'provenance':{'source':_0x26d7ac(0x32b),'toolCallId':_0x223179[_0x26d7ac(0x33f)]}});else _0x2477bd[_0x26d7ac(0x2ce)]({'sessionId':_0x583fc0['sessionId'],'aptSessionId':_0x2e046[_0x26d7ac(0x277)]});}}}const _0x56af1c={};_0x56af1c[_0x26d7ac(0x277)]=_0x4714af;const _0xce749c=[_0x26d7ac(0x2f9),_0x26d7ac(0x2f7)][_0x26d7ac(0x31e)](_0x1d2e39)?_0x2477bd[_0x26d7ac(0x1a3)](_0x56af1c):null;if(_0xce749c)_0x583fc0['sessionId']=_0xce749c;const _0x5ec988={};_0x5ec988['sessionId']=_0x583fc0[_0x26d7ac(0x277)],_0x5ec988[_0x26d7ac(0x323)]=_0x1d2e39,_0x5ec988[_0x26d7ac(0x252)]=_0x591a48,_0x5ec988[_0x26d7ac(0x34c)]=_0x223179[_0x26d7ac(0x34c)]||_0x223179[_0x26d7ac(0x227)]||_0x223179[_0x26d7ac(0x31b)],_0x2477bd[_0x26d7ac(0x1cf)](_0x5ec988);const _0x5daf53={};_0x5daf53[_0x26d7ac(0x277)]=_0x4714af;if([_0x26d7ac(0x2f9),_0x26d7ac(0x2f7)][_0x26d7ac(0x31e)](_0x1d2e39)&&!_0xce749c)_0x583fc0['sessionId']=_0x2477bd[_0x26d7ac(0x1a3)](_0x5daf53)||_0x4714af;const _0x122eee={};_0x122eee['sessionId']=_0x583fc0['sessionId'];const _0x1a6459=_0x2477bd[_0x26d7ac(0x334)](_0x122eee),_0x305482=_0x1d2e39===_0x26d7ac(0x2f7)?new ClaudeNative(_0x2477bd['projectPath'],_0x4714af,_0x22706f):null,_0x3dd3d5=_0x305482&&typeof _0x223179[_0x26d7ac(0x1ef)]===_0x26d7ac(0x1da)?_0x223179[_0x26d7ac(0x1ef)]:null,_0x41f2e1=_0x3dd3d5?_0x305482[_0x26d7ac(0x274)](_0x3dd3d5):null,_0xdb96d3=_0x223179[_0x26d7ac(0x33f)]&&'native:'+_0x4714af+':'+(_0x3dd3d5||_0x26d7ac(0x2af))+':'+_0x223179['tool_use_id'],_0x4d048b=(_0xfaab31,_0x1f5ae3,_0x4affeb)=>{const _0x420083=_0x26d7ac;if(_0xfaab31[_0x420083(0x27c)]!==!![])return _0xfaab31;if(!_0xdb96d3)return nativeFailure(_0x420083(0x33d),_0x420083(0x1b0));try{return require(_0x420083(0x2d1))[_0x420083(0x20a)](_0x2477bd[_0x420083(0x22d)],{'invocationId':_0xdb96d3,'actorId':_0x1f5ae3[_0x420083(0x1fb)],'attemptId':_0x1f5ae3[_0x420083(0x2eb)],'inputHash':fingerprint(_0x583fc0[_0x420083(0x26e)]),'admittedEpoch':_0x4affeb[_0x420083(0x34b)]===_0x420083(0x2e7)?_0x4affeb[_0x420083(0x2dc)]:Date[_0x420083(0x316)](_0x1f5ae3[_0x420083(0x350)])<Date['parse'](_0x4affeb[_0x420083(0x1df)])?_0x4affeb['epoch']-0x1:null},()=>{const _0x19b9c5=_0x420083,_0x32cbdd=_0x2477bd['peek'](_0x583fc0[_0x19b9c5(0x277)]),_0x32fb47=_0x3dd3d5?_0x305482[_0x19b9c5(0x274)](_0x3dd3d5):null;if(!_0x32cbdd?.[_0x19b9c5(0x2da)]||_0x32cbdd['stopped']||_0x32cbdd[_0x19b9c5(0x255)]===_0x19b9c5(0x2bb)||_0x583fc0[_0x19b9c5(0x255)]===_0x19b9c5(0x2bb)||_0x3dd3d5&&(!_0x32fb47||_0x32fb47[_0x19b9c5(0x1d0)]!==_0x41f2e1[_0x19b9c5(0x1d0)]||_0x32fb47[_0x19b9c5(0x255)]===_0x19b9c5(0x2bb)||_0x32fb47['userStopped']||_0x32fb47[_0x19b9c5(0x334)]===_0x19b9c5(0x29f)))return![];const _0x39d889=_0x22706f['pipeline']||new(require(_0x19b9c5(0x235)))[(_0x19b9c5(0x294))](_0x2477bd[_0x19b9c5(0x22d)]),_0x1f035a=typeof _0x39d889['readRun']===_0x19b9c5(0x1a2)?_0x39d889[_0x19b9c5(0x242)](_0x1f5ae3[_0x19b9c5(0x2db)]||_0x32cbdd[_0x19b9c5(0x2db)],_0x1f5ae3[_0x19b9c5(0x2d0)]||_0x32cbdd['runId']):null;return _0x1f035a?.['status']===_0x19b9c5(0x219)&&!_0x1f035a['execution']?.['stopReason']&&_0x1f035a[_0x19b9c5(0x2db)]===_0x32cbdd[_0x19b9c5(0x2db)]&&_0x1f035a['runId']===_0x32cbdd[_0x19b9c5(0x2d0)]&&sameWorkspace(_0x1f035a[_0x19b9c5(0x244)]?.[_0x19b9c5(0x2ab)]||'',_0x2477bd[_0x19b9c5(0x22d)])&&_0x1f035a['execution']?.[_0x19b9c5(0x219)]?.[_0x19b9c5(0x20d)](_0x217664=>_0x217664[_0x19b9c5(0x2eb)]===_0x1f5ae3[_0x19b9c5(0x2eb)]&&_0x217664['actorId']===_0x1f5ae3[_0x19b9c5(0x1fb)]&&_0x217664['role']===_0x1f5ae3[_0x19b9c5(0x1d3)])===!![];},{'assertCurrent':_0x22706f[_0x420083(0x26d)]}),_0xfaab31;}catch(_0x49da55){return nativeFailure(_0x49da55[_0x420083(0x2a4)]||_0x420083(0x1f7),'Native\x20operation\x20was\x20not\x20admitted.');}};if(_0x41f2e1&&_0x583fc0[_0x26d7ac(0x260)]==='before-tool')_0x305482[_0x26d7ac(0x290)](_0x3dd3d5,_0x583fc0[_0x26d7ac(0x255)],_0x583fc0[_0x26d7ac(0x1b2)]);const _0x1dc02=_0x1a6459[_0x26d7ac(0x23b)]?.[_0x1d2e39]?.[_0x26d7ac(0x353)]||[_0x591a48],_0x336a9c=!_0x1a6459[_0x26d7ac(0x323)]||_0x1a6459[_0x26d7ac(0x323)]===_0x1d2e39,_0x95a876={..._0x336a9c?_0x1a6459['capabilities']:{},..._0x223179[_0x26d7ac(0x1b8)]},_0x11f439=_0x95a876;_0x11f439[_0x26d7ac(0x266)]=Object[_0x26d7ac(0x313)]['hasOwnProperty'][_0x26d7ac(0x30d)](_0x223179[_0x26d7ac(0x1b8)]||{},_0x26d7ac(0x319))||Object[_0x26d7ac(0x313)]['hasOwnProperty'][_0x26d7ac(0x30d)](_0x223179[_0x26d7ac(0x1b8)]||{},_0x26d7ac(0x232));if(Object['prototype'][_0x26d7ac(0x22a)][_0x26d7ac(0x30d)](_0x223179['capabilities']||{},_0x26d7ac(0x232))&&!Object['prototype'][_0x26d7ac(0x22a)][_0x26d7ac(0x30d)](_0x223179[_0x26d7ac(0x1b8)]||{},_0x26d7ac(0x319))){if((!_0x336a9c||_0x1a6459['capabilities'][_0x26d7ac(0x319)]!==!![])&&!Object[_0x26d7ac(0x313)][_0x26d7ac(0x22a)][_0x26d7ac(0x30d)](_0x223179[_0x26d7ac(0x1b8)],'maxAgents'))delete _0x11f439[_0x26d7ac(0x21a)];delete _0x11f439[_0x26d7ac(0x319)];}if(Object[_0x26d7ac(0x313)][_0x26d7ac(0x22a)]['call'](_0x223179[_0x26d7ac(0x1b8)]||{},_0x26d7ac(0x1cd)))_0x11f439['continuationDisabled']=_0x223179[_0x26d7ac(0x1b8)]['continuation']===![];if(!Object['prototype']['hasOwnProperty']['call'](_0x223179[_0x26d7ac(0x1b8)]||{},'continuation'))delete _0x11f439[_0x26d7ac(0x1cd)];const _0xfe0ef5={..._0x223179};_0xfe0ef5['capabilities']=_0x11f439;const _0x1ff183=detectCapabilities(_0x1d2e39,_0xfe0ef5,_0x1dc02);if(_0x11f439[_0x26d7ac(0x1f6)])_0x1ff183[_0x26d7ac(0x1f6)]=_0x11f439[_0x26d7ac(0x1f6)];const _0xd859c4={};_0xd859c4[_0x26d7ac(0x277)]=_0x583fc0[_0x26d7ac(0x277)],_0xd859c4['host']=_0x1d2e39,_0xd859c4['capabilities']=_0x1ff183,_0xd859c4['mode']=_0x583fc0[_0x26d7ac(0x255)],_0xd859c4[_0x26d7ac(0x2be)]=_0x583fc0[_0x26d7ac(0x2be)];const _0x531111=_0xd859c4;if(_0x583fc0[_0x26d7ac(0x1b2)]){const _0x19e53f={};_0x19e53f[_0x26d7ac(0x277)]=_0x583fc0[_0x26d7ac(0x277)];if(!_0x3dd3d5)_0x2477bd['stop'](_0x19e53f);const _0x588175={};return _0x588175[_0x26d7ac(0x27c)]=_0x583fc0[_0x26d7ac(0x260)]!==_0x26d7ac(0x218),_0x588175['continue']=![],_0x588175[_0x26d7ac(0x340)]=_0x26d7ac(0x338),_0x588175;}const _0x1cc07c={};_0x1cc07c['allow']=!![],_0x1cc07c[_0x26d7ac(0x340)]=_0x26d7ac(0x23e);if(_0x583fc0[_0x26d7ac(0x260)]===_0x26d7ac(0x28d)&&_0x5952f7)return _0x1cc07c;if(_0x583fc0['kind']==='before-tool'){const _0x1c9a93={};_0x1c9a93['allow']=![],_0x1c9a93[_0x26d7ac(0x340)]='Conflicting\x20host\x20tool\x20identity.';if(_0x5952f7)return _0x1c9a93;const _0x4f71ba={};_0x4f71ba[_0x26d7ac(0x208)]=!![];if(!_0x3dd3d5&&_0x583fc0[_0x26d7ac(0x255)]&&_0x583fc0[_0x26d7ac(0x255)]!==_0x1a6459[_0x26d7ac(0x255)]&&_0x1a6459[_0x26d7ac(0x2da)])_0x2477bd['bootstrap']({'sessionId':_0x583fc0[_0x26d7ac(0x277)],'host':_0x1d2e39,'mode':_0x583fc0[_0x26d7ac(0x255)]},_0x4f71ba);const _0x4f8816={};_0x4f8816['allow']=!![],_0x4f8816['hostOwned']=!![];if(hostOwnsExternalToolPermissions(_0x1d2e39)&&externalHostTool(_0x583fc0['toolName'],_0x583fc0[_0x26d7ac(0x26e)],_0x2477bd[_0x26d7ac(0x22d)]))return _0x4f8816;if(!hostOwnsExternalToolPermissions(_0x1d2e39)&&_0x583fc0[_0x26d7ac(0x251)]==='Skill'&&!require(_0x26d7ac(0x20e))[_0x26d7ac(0x354)](_0x583fc0[_0x26d7ac(0x26e)],_0x2477bd[_0x26d7ac(0x22d)]))return nativeFailure(_0x26d7ac(0x240),_0x26d7ac(0x2f8));const _0x134336=aptToolForHook(_0x583fc0,_0x2477bd['projectPath']);if(_0x3dd3d5){const _0x4a3103=_0x134336&&!require('./caller-context')[_0x26d7ac(0x1b5)](_0x134336);if(_0x41f2e1?.['readonlyResearch']&&(_0x134336?!_0x4a3103:/bash|shell|terminal|exec|run_command/i[_0x26d7ac(0x1c2)](_0x583fc0[_0x26d7ac(0x251)])||isWriteTool(_0x583fc0['toolName'],_0x583fc0[_0x26d7ac(0x26e)],_0x1f3954,_0x1d2e39)))return nativeFailure(_0x26d7ac(0x267),'Research\x20workers\x20cannot\x20mutate\x20source,\x20backend\x20state,\x20or\x20pipeline\x20lifecycle.');if(_0x4a3103){if(!_0x41f2e1)return nativeFailure(_0x26d7ac(0x1c0),'Use\x20native\x20reads\x20until\x20this\x20child\x20has\x20a\x20confirmed\x20launch\x20binding.');if(!_0x22706f[_0x26d7ac(0x2d3)])return nativeFailure(_0x26d7ac(0x263),'Reconnect\x20with\x20caller\x20context\x20enforcement.');const _0x42dac5={};_0x42dac5[_0x26d7ac(0x28f)]=_0x4714af,_0x42dac5[_0x26d7ac(0x2d4)]=_0x41f2e1,_0x42dac5['tool']=_0x134336,_0x42dac5[_0x26d7ac(0x24c)]=_0x223179[_0x26d7ac(0x33f)],_0x42dac5['arguments']=_0x583fc0[_0x26d7ac(0x26e)];const _0x5ea12e=await _0x22706f[_0x26d7ac(0x2d3)][_0x26d7ac(0x2de)](_0x42dac5),_0xdc368b={..._0x583fc0[_0x26d7ac(0x26e)]};_0xdc368b['_aptContext']=_0x5ea12e;const _0x26101e={};return _0x26101e[_0x26d7ac(0x27c)]=!![],_0x26101e['updatedInput']=_0xdc368b,_0x26101e;}if(!_0x41f2e1&&(_0x134336?!_0x4a3103:isWriteTool(_0x583fc0[_0x26d7ac(0x251)],_0x583fc0[_0x26d7ac(0x26e)],_0x1f3954,_0x1d2e39)))return nativeFailure(_0x26d7ac(0x1c0),'This\x20child\x20has\x20no\x20confirmed\x20native\x20launch\x20binding.\x20Reading\x20is\x20allowed.');if(_0x134336&&!_0x4a3103){if(!_0x41f2e1)return nativeFailure(_0x26d7ac(0x1c0),_0x26d7ac(0x29a));if(_0x1a6459[_0x26d7ac(0x255)]===_0x26d7ac(0x2bb)||_0x583fc0[_0x26d7ac(0x255)]===_0x26d7ac(0x2bb)||_0x1a6459['stopped'])return nativeFailure(_0x26d7ac(0x317),_0x26d7ac(0x34f));const _0x2be6a0=require(_0x26d7ac(0x2d1))[_0x26d7ac(0x2c2)](_0x2477bd['projectPath']);if(_0x2be6a0[_0x26d7ac(0x34b)]===_0x26d7ac(0x226)&&_0x2be6a0[_0x26d7ac(0x1ed)]&&!(_0x134336===_0x26d7ac(0x1eb)&&[_0x26d7ac(0x2d9),_0x26d7ac(0x31c),'resource-wait'][_0x26d7ac(0x31e)](_0x583fc0['toolInput'][_0x26d7ac(0x24d)])))return nativeFailure('RUNTIME_UPGRADE_STOP_REQUESTED',_0x26d7ac(0x1e4));if([_0x26d7ac(0x2e6),_0x26d7ac(0x1d4)][_0x26d7ac(0x31e)](_0x2be6a0['state']))return nativeFailure('APT_UPDATE_PENDING','Workspace\x20is\x20frozen\x20for\x20runtime\x20transition.');const _0x11bb83=_0x134336===_0x26d7ac(0x1eb)&&[_0x26d7ac(0x2d9),_0x26d7ac(0x2bc),_0x26d7ac(0x31c),_0x26d7ac(0x2c4)][_0x26d7ac(0x31e)](_0x583fc0[_0x26d7ac(0x26e)][_0x26d7ac(0x24d)])||_0x134336===_0x26d7ac(0x275)&&_0x41f2e1[_0x26d7ac(0x1d3)]===_0x26d7ac(0x33a);if(!_0x11bb83)return nativeFailure(_0x26d7ac(0x1a6),'Only\x20the\x20coordinator\x20may\x20change\x20parent\x20lifecycle\x20or\x20reserve\x20other\x20actors.');if(!_0x22706f[_0x26d7ac(0x2d3)])return nativeFailure(_0x26d7ac(0x263),_0x26d7ac(0x1f4));const _0x2f3a9d={};_0x2f3a9d[_0x26d7ac(0x28f)]=_0x4714af,_0x2f3a9d['child']=_0x41f2e1,_0x2f3a9d[_0x26d7ac(0x34a)]=_0x134336,_0x2f3a9d[_0x26d7ac(0x24c)]=_0x223179['tool_use_id'],_0x2f3a9d['arguments']=_0x583fc0[_0x26d7ac(0x26e)];const _0x352d56=await _0x22706f[_0x26d7ac(0x2d3)][_0x26d7ac(0x2de)](_0x2f3a9d),_0x58e39a=_0x305482[_0x26d7ac(0x1f3)](_0x3dd3d5,_0x223179[_0x26d7ac(0x33f)],_0x134336,_0x583fc0[_0x26d7ac(0x26e)]);if(_0x58e39a[_0x26d7ac(0x27c)]!==!![])return _0x58e39a;const _0x437850={..._0x583fc0[_0x26d7ac(0x26e)]};_0x437850[_0x26d7ac(0x33b)]=_0x352d56;const _0x52dffb={};return _0x52dffb['allow']=!![],_0x52dffb[_0x26d7ac(0x25a)]=_0x437850,_0x52dffb;}}const _0x3514ea=require(_0x26d7ac(0x2d1))[_0x26d7ac(0x2c2)](_0x2477bd['projectPath']);if(_0x3514ea[_0x26d7ac(0x34b)]===_0x26d7ac(0x226)&&_0x3514ea[_0x26d7ac(0x1ed)]){const _0x4549d4=_0x134336===_0x26d7ac(0x1eb)&&[_0x26d7ac(0x2d9),_0x26d7ac(0x31c),'resource-wait','reconcile-verification',_0x26d7ac(0x258)][_0x26d7ac(0x31e)](_0x583fc0['toolInput'][_0x26d7ac(0x24d)]);if(!_0x4549d4&&([_0x26d7ac(0x1bf),_0x26d7ac(0x2e3),'SendMessage'][_0x26d7ac(0x31e)](_0x583fc0[_0x26d7ac(0x251)])||NATIVE_CODEX_SPAWN_NAMES[_0x26d7ac(0x284)](_0x583fc0['toolName'])||isWriteTool(_0x583fc0[_0x26d7ac(0x251)],_0x583fc0[_0x26d7ac(0x26e)],_0x1f3954,_0x1d2e39)))return nativeFailure(_0x26d7ac(0x337),_0x26d7ac(0x1c9));}if(_0x3514ea[_0x26d7ac(0x34b)]===_0x26d7ac(0x1d4)){if(_0x134336||[_0x26d7ac(0x1bf),_0x26d7ac(0x2e3),_0x26d7ac(0x27d)][_0x26d7ac(0x31e)](_0x583fc0[_0x26d7ac(0x251)])||NATIVE_CODEX_SPAWN_NAMES[_0x26d7ac(0x284)](_0x583fc0[_0x26d7ac(0x251)])||isWriteTool(_0x583fc0[_0x26d7ac(0x251)],_0x583fc0[_0x26d7ac(0x26e)],_0x1f3954,_0x1d2e39))return nativeFailure(_0x26d7ac(0x270),_0x26d7ac(0x2c7));}if(_0x3514ea[_0x26d7ac(0x34b)]==='draining'&&(['pipeline_start',_0x26d7ac(0x2b6),_0x26d7ac(0x2ad),_0x26d7ac(0x32f)][_0x26d7ac(0x31e)](_0x134336)||[_0x26d7ac(0x1bf),_0x26d7ac(0x2e3)][_0x26d7ac(0x31e)](_0x583fc0['toolName'])&&!_0x583fc0[_0x26d7ac(0x26e)][_0x26d7ac(0x257)]||NATIVE_CODEX_SPAWN_NAMES[_0x26d7ac(0x284)](_0x583fc0[_0x26d7ac(0x251)])))return nativeFailure(_0x26d7ac(0x270),_0x26d7ac(0x28e));if(_0x305482&&!_0x3dd3d5&&_0x3514ea[_0x26d7ac(0x34b)]===_0x26d7ac(0x2e7)&&_0x1a6459['bootstrapped']&&!_0x1a6459[_0x26d7ac(0x29f)]&&(_0x583fc0[_0x26d7ac(0x255)]||_0x1a6459[_0x26d7ac(0x255)])===_0x26d7ac(0x2bb)&&await require('./claude-plan')[_0x26d7ac(0x29d)](_0x223179,_0x2477bd[_0x26d7ac(0x22d)],_0x22706f))try{require(_0x26d7ac(0x2d1))[_0x26d7ac(0x20a)](_0x2477bd[_0x26d7ac(0x22d)],{'invocationId':_0xdb96d3,'actorId':_0x26d7ac(0x1e6),'attemptId':null,'inputHash':fingerprint(_0x583fc0[_0x26d7ac(0x26e)])},()=>{const _0x366ae7=_0x26d7ac,_0x1dd107=_0x2477bd[_0x366ae7(0x20c)](_0x583fc0['sessionId']);return _0x1dd107?.[_0x366ae7(0x2da)]&&!_0x1dd107[_0x366ae7(0x29f)]&&_0x1dd107[_0x366ae7(0x255)]===_0x366ae7(0x2bb)&&require(_0x366ae7(0x291))[_0x366ae7(0x1e3)](_0x583fc0[_0x366ae7(0x26e)][_0x366ae7(0x24e)],_0x22706f[_0x366ae7(0x202)]||path['join'](require('os')[_0x366ae7(0x1c4)](),'.claude'));},{'assertCurrent':_0x22706f[_0x26d7ac(0x26d)]});const _0x192ee6={};return _0x192ee6[_0x26d7ac(0x27c)]=!![],_0x192ee6[_0x26d7ac(0x340)]='Verified\x20native\x20session\x20plan\x20artifact.',_0x192ee6;}catch(_0x572b77){return nativeFailure(_0x572b77[_0x26d7ac(0x2a4)]||_0x26d7ac(0x1f7),_0x26d7ac(0x33e));}if(_0x3514ea[_0x26d7ac(0x34b)]===_0x26d7ac(0x2e6)){const _0x1034a5=_0x134336===_0x26d7ac(0x1eb)&&_0x583fc0[_0x26d7ac(0x26e)]?.['attemptId']&&[_0x26d7ac(0x2d9),_0x26d7ac(0x2b7),'release',_0x26d7ac(0x2c4),_0x26d7ac(0x314),_0x26d7ac(0x2bc),'finding-resolution'][_0x26d7ac(0x31e)](_0x583fc0[_0x26d7ac(0x26e)][_0x26d7ac(0x24d)]),_0x3203cb=_0x134336?.['startsWith'](_0x26d7ac(0x320))&&![_0x26d7ac(0x23c),_0x26d7ac(0x21e),_0x26d7ac(0x203)][_0x26d7ac(0x31e)](_0x134336),_0x322013={};_0x322013['allow']=![],_0x322013[_0x26d7ac(0x340)]=_0x26d7ac(0x1fc)+_0x3514ea['transactionId']+'.';if(!_0x1034a5&&(_0x3203cb||NATIVE_CODEX_SPAWN_NAMES[_0x26d7ac(0x284)](_0x583fc0[_0x26d7ac(0x251)])||isWriteTool(_0x583fc0['toolName'],_0x583fc0[_0x26d7ac(0x26e)],_0x1f3954,_0x1d2e39)))return _0x322013;}const _0x3de6f6=require(_0x26d7ac(0x29b))[_0x26d7ac(0x225)](_0x2477bd[_0x26d7ac(0x22d)]),_0xb86938=String(_0x583fc0[_0x26d7ac(0x251)]||'')[_0x26d7ac(0x292)]();if(_0x1d2e39===_0x26d7ac(0x212)&&/^mcp_apt-mcp-agent-w[a-f0-9]{12}_/i['test'](_0x583fc0[_0x26d7ac(0x251)])&&!_0xb86938[_0x26d7ac(0x2f2)](_0x26d7ac(0x280)+_0x3de6f6[_0x26d7ac(0x292)]()+'_'))return{'allow':![],'reason':_0x26d7ac(0x355)+_0x3de6f6+'\x20for\x20'+_0x2477bd['projectPath']+'.'};if(_0x1d2e39==='antigravity'&&/^mcp__apt-mcp-agent-w[a-f0-9]{12}__/i[_0x26d7ac(0x1c2)](_0x583fc0['toolName'])&&!_0xb86938[_0x26d7ac(0x2f2)]('mcp__'+_0x3de6f6['toLowerCase']()+'__'))return{'allow':![],'reason':_0x26d7ac(0x355)+_0x3de6f6+_0x26d7ac(0x1c8)+_0x2477bd[_0x26d7ac(0x22d)]+'.'};if(_0x1d2e39==='antigravity'&&['pipeline_start',_0x26d7ac(0x2ad),_0x26d7ac(0x32f)][_0x26d7ac(0x31e)](_0x134336)&&(_0xb86938[_0x26d7ac(0x2f2)](_0x26d7ac(0x321))||_0xb86938[_0x26d7ac(0x2f2)]('mcp__apt-mcp-agent__')||_0x583fc0[_0x26d7ac(0x30e)]?.[_0x26d7ac(0x292)]()===_0x26d7ac(0x330))){if(!_0x22706f[_0x26d7ac(0x29c)]||!await _0x22706f[_0x26d7ac(0x29c)](_0x2477bd['projectPath'],_0x583fc0[_0x26d7ac(0x26e)]['sessionId']))return{'allow':![],'reason':'GATEWAY_BINDING_REQUIRED:\x20bootstrap\x20apt-mcp-agent\x20for\x20'+_0x2477bd[_0x26d7ac(0x22d)]+';\x20reconnect\x20if\x20this\x20connection\x20uses\x20a\x20legacy\x20launcher.'};}if([_0x26d7ac(0x21d),'pipeline_reset',_0x26d7ac(0x32f)][_0x26d7ac(0x31e)](_0x134336)){const _0x377275={};_0x377275[_0x26d7ac(0x27c)]=![],_0x377275['reason']=_0x26d7ac(0x205);if(!_0x1a6459[_0x26d7ac(0x2da)])return _0x377275;const _0x4ad3d7={};_0x4ad3d7[_0x26d7ac(0x27c)]=![],_0x4ad3d7['reason']=_0x26d7ac(0x2a8);if((_0x583fc0[_0x26d7ac(0x255)]||_0x1a6459[_0x26d7ac(0x255)])===_0x26d7ac(0x2bb))return _0x4ad3d7;const _0x4f7095={};_0x4f7095[_0x26d7ac(0x27c)]=![],_0x4f7095[_0x26d7ac(0x340)]=_0x26d7ac(0x249);if(_0x1a6459['stopped'])return _0x4f7095;}const _0x5558cb={};_0x5558cb[_0x26d7ac(0x27c)]=![],_0x5558cb['reason']=_0x26d7ac(0x233);if((/(^|__)pipeline_verify$/[_0x26d7ac(0x1c2)](_0x583fc0['toolName'])||_0x134336===_0x26d7ac(0x275))&&(_0x583fc0[_0x26d7ac(0x255)]||_0x1a6459[_0x26d7ac(0x255)])===_0x26d7ac(0x2bb))return _0x5558cb;const _0x465711={};_0x465711[_0x26d7ac(0x27c)]=!![];if(_0x305482&&_0x134336==='workspace_list'&&!_0x3dd3d5)return _0x465711;if(_0x134336==='remember'&&!_0x3dd3d5){if(!_0x1a6459[_0x26d7ac(0x2da)]||_0x1a6459[_0x26d7ac(0x29f)]||(_0x583fc0[_0x26d7ac(0x255)]||_0x1a6459[_0x26d7ac(0x255)])===_0x26d7ac(0x2bb)||_0x3514ea[_0x26d7ac(0x34b)]!==_0x26d7ac(0x2e7))return nativeFailure(_0x26d7ac(0x223),'Memory\x20requires\x20an\x20unstopped\x20default-mode\x20session\x20with\x20open\x20admission.');try{require('./memory-scope')[_0x26d7ac(0x2fa)](_0x2477bd['projectPath'],path[_0x26d7ac(0x230)](_0x2477bd['projectPath'],_0x26d7ac(0x1e0)));}catch(_0x4a68cb){return nativeFailure(_0x4a68cb[_0x26d7ac(0x2a4)],_0x4a68cb[_0x26d7ac(0x2a3)]);}if(_0x305482){if(!_0x22706f['contextBroker'])return nativeFailure('CALLER_CONTEXT_UNAVAILABLE',_0x26d7ac(0x217));const _0x32998e={};_0x32998e[_0x26d7ac(0x28f)]=_0x4714af,_0x32998e[_0x26d7ac(0x34a)]=_0x134336,_0x32998e[_0x26d7ac(0x24c)]=_0x223179[_0x26d7ac(0x33f)],_0x32998e[_0x26d7ac(0x289)]=_0x583fc0[_0x26d7ac(0x26e)];const _0x5ed784=await _0x22706f[_0x26d7ac(0x2d3)][_0x26d7ac(0x2de)](_0x32998e),_0x2fd246={..._0x583fc0[_0x26d7ac(0x26e)]};_0x2fd246[_0x26d7ac(0x33b)]=_0x5ed784;const _0x18785d={};return _0x18785d['allow']=!![],_0x18785d[_0x26d7ac(0x25a)]=_0x2fd246,_0x18785d;}const _0x433f76={};return _0x433f76['allow']=!![],_0x433f76;}if(_0x305482&&_0x134336&&!require(_0x26d7ac(0x1b4))['sensitiveTool'](_0x134336)){if(!_0x22706f[_0x26d7ac(0x2d3)])return nativeFailure(_0x26d7ac(0x263),_0x26d7ac(0x217));const _0x9f31be={};_0x9f31be[_0x26d7ac(0x28f)]=_0x4714af,_0x9f31be[_0x26d7ac(0x34a)]=_0x134336,_0x9f31be['toolUseId']=_0x223179[_0x26d7ac(0x33f)],_0x9f31be[_0x26d7ac(0x289)]=_0x583fc0[_0x26d7ac(0x26e)];const _0x572faa=await _0x22706f[_0x26d7ac(0x2d3)]['issue'](_0x9f31be),_0x3f6460={..._0x583fc0['toolInput']};_0x3f6460['_aptContext']=_0x572faa;const _0x6b30f5={};return _0x6b30f5[_0x26d7ac(0x27c)]=!![],_0x6b30f5[_0x26d7ac(0x25a)]=_0x3f6460,_0x6b30f5;}if(_0x305482&&!_0x3dd3d5&&_0x134336&&APT_WRAPPED_UNGUARDED_TOOLS[_0x26d7ac(0x284)](_0x134336)&&require(_0x26d7ac(0x1b4))['sensitiveTool'](_0x134336)&&_0x22706f[_0x26d7ac(0x2d3)]){const _0x337af1={};_0x337af1['nativeParent']=_0x4714af,_0x337af1[_0x26d7ac(0x34a)]=_0x134336,_0x337af1[_0x26d7ac(0x24c)]=_0x223179[_0x26d7ac(0x33f)],_0x337af1['arguments']=_0x583fc0[_0x26d7ac(0x26e)];const _0x34c0cc=await _0x22706f[_0x26d7ac(0x2d3)][_0x26d7ac(0x2de)](_0x337af1),_0x568ff4={..._0x583fc0[_0x26d7ac(0x26e)]};_0x568ff4['_aptContext']=_0x34c0cc;const _0x5d62da={};return _0x5d62da['allow']=!![],_0x5d62da[_0x26d7ac(0x25a)]=_0x568ff4,_0x5d62da;}const _0x5c3445={};_0x5c3445[_0x26d7ac(0x27c)]=!![];if(_0x583fc0['aptServerName']&&_0x134336&&!require(_0x26d7ac(0x1b4))[_0x26d7ac(0x1b5)](_0x134336))return _0x5c3445;if(_0x305482&&[_0x26d7ac(0x1bf),_0x26d7ac(0x2e3),_0x26d7ac(0x27d)][_0x26d7ac(0x31e)](_0x583fc0[_0x26d7ac(0x251)])){if(_0x3dd3d5)return nativeFailure(_0x26d7ac(0x1a6),_0x26d7ac(0x357));const _0x473bd2=_0x583fc0['toolInput']['resume']||(_0x583fc0['toolName']===_0x26d7ac(0x27d)?_0x583fc0[_0x26d7ac(0x26e)]['to']:null),_0x598ac2=_0x473bd2&&_0x305482[_0x26d7ac(0x274)](_0x473bd2),_0x6c18c3=!_0x473bd2&&[_0x26d7ac(0x318),_0x26d7ac(0x1e9)][_0x26d7ac(0x31e)](_0x583fc0['toolInput']['subagent_type'])&&!workerBrief(_0x583fc0['toolInput'][_0x26d7ac(0x1f8)]);if(_0x6c18c3||_0x598ac2?.[_0x26d7ac(0x328)]){if(!_0x1a6459[_0x26d7ac(0x2da)]||_0x1a6459[_0x26d7ac(0x29f)]||_0x3514ea['state']!=='open')return nativeFailure('NATIVE_DISPATCH_STOPPED',_0x26d7ac(0x268));if(_0x583fc0[_0x26d7ac(0x251)]==='Task'&&_0x1a6459['capabilities']?.['nativeDispatch']?.[_0x26d7ac(0x34a)]!==_0x26d7ac(0x2e3)||_0x583fc0[_0x26d7ac(0x251)]==='SendMessage'&&_0x1a6459[_0x26d7ac(0x1b8)]?.['nativeDispatch']?.[_0x26d7ac(0x1cd)]?.[_0x26d7ac(0x34a)]!==_0x26d7ac(0x27d))return nativeFailure(_0x26d7ac(0x1fa),'This\x20native\x20research\x20surface\x20is\x20not\x20declared\x20by\x20the\x20current\x20host.');let _0x34c39b;try{const _0x1e85fc={};_0x1e85fc[_0x26d7ac(0x26d)]=_0x22706f[_0x26d7ac(0x26d)],require('./admission-fence')[_0x26d7ac(0x20a)](_0x2477bd[_0x26d7ac(0x22d)],{'invocationId':_0xdb96d3,'actorId':_0x598ac2?.[_0x26d7ac(0x1fb)]||_0x26d7ac(0x1e5),'attemptId':null,'inputHash':fingerprint(_0x583fc0[_0x26d7ac(0x26e)]),'admittedEpoch':_0x3514ea[_0x26d7ac(0x2dc)]},()=>{const _0x47216a=_0x26d7ac,_0x10d9ca=_0x2477bd['peek'](_0x583fc0['sessionId']);if(!_0x10d9ca?.[_0x47216a(0x2da)]||_0x10d9ca['stopped'])return![];if(_0x598ac2){const _0x179477=require('./claude-native')[_0x47216a(0x1c7)](_0x2477bd['projectPath'],_0x4714af,_0x10d9ca[_0x47216a(0x1b8)]||{},_0x473bd2);if(!_0x179477[_0x47216a(0x27c)])return _0x34c39b=_0x179477,![];}const _0x38ed88={};return _0x38ed88[_0x47216a(0x24c)]=_0x223179[_0x47216a(0x33f)],_0x38ed88[_0x47216a(0x304)]=_0x583fc0[_0x47216a(0x26e)],_0x38ed88[_0x47216a(0x277)]=_0x583fc0['sessionId'],_0x38ed88['epoch']=_0x3514ea[_0x47216a(0x2dc)],_0x38ed88[_0x47216a(0x1b8)]=_0x10d9ca[_0x47216a(0x1b8)]||{},_0x34c39b=_0x6c18c3?_0x305482[_0x47216a(0x2a0)](_0x38ed88):_0x305482[_0x47216a(0x2aa)](_0x473bd2,_0x223179[_0x47216a(0x33f)],_0x583fc0[_0x47216a(0x26e)],_0x598ac2,_0x3514ea['epoch']),_0x34c39b[_0x47216a(0x27c)]===!![];},_0x1e85fc);if(!_0x34c39b[_0x26d7ac(0x27c)])require(_0x26d7ac(0x2d1))[_0x26d7ac(0x2e1)](_0x2477bd[_0x26d7ac(0x22d)],_0xdb96d3,_0x3514ea[_0x26d7ac(0x2dc)]);return _0x34c39b;}catch(_0x3dd0fe){return _0x34c39b?.['allow']===![]?_0x34c39b:nativeFailure(_0x3dd0fe[_0x26d7ac(0x2a4)]||'NATIVE_INVOCATION_REQUIRED',_0x26d7ac(0x1bd));}}if(!_0x1a6459['bootstrapped']||!_0x1a6459[_0x26d7ac(0x2db)]||!_0x1a6459[_0x26d7ac(0x2d0)])return nativeFailure(_0x26d7ac(0x34e),_0x26d7ac(0x1ce));if((_0x583fc0[_0x26d7ac(0x255)]||_0x1a6459[_0x26d7ac(0x255)])===_0x26d7ac(0x2bb)||_0x1a6459[_0x26d7ac(0x29f)])return nativeFailure('NATIVE_DISPATCH_STOPPED','Parent\x20mode\x20or\x20stop\x20state\x20prevents\x20dispatch.');if(_0x583fc0[_0x26d7ac(0x251)]===_0x26d7ac(0x2e3)&&_0x1a6459[_0x26d7ac(0x1b8)]?.['nativeDispatch']?.['tool']!=='Task'||_0x583fc0[_0x26d7ac(0x251)]===_0x26d7ac(0x27d)&&_0x1a6459['capabilities']?.[_0x26d7ac(0x250)]?.[_0x26d7ac(0x1cd)]?.['tool']!==_0x26d7ac(0x27d))return nativeFailure(_0x26d7ac(0x1fa),_0x26d7ac(0x1ee));const _0x2e15f2=_0x22706f[_0x26d7ac(0x283)]||new(require('../proxy/pipeline'))[(_0x26d7ac(0x294))](_0x2477bd[_0x26d7ac(0x22d)]),_0x15166d=await _0x2e15f2[_0x26d7ac(0x1aa)](_0x1a6459[_0x26d7ac(0x2db)],_0x1a6459[_0x26d7ac(0x2d0)]);if(_0x15166d[_0x26d7ac(0x219)]!==!![]||_0x15166d[_0x26d7ac(0x20b)]?.[_0x26d7ac(0x24b)])return nativeFailure(_0x26d7ac(0x2cb),'Native\x20launch\x20requires\x20an\x20active\x20run\x20with\x20no\x20stop\x20latch.');const _0x13693a=_0x583fc0[_0x26d7ac(0x26e)]['resume']||(_0x583fc0[_0x26d7ac(0x251)]==='SendMessage'?_0x583fc0[_0x26d7ac(0x26e)]['to']:null);if(_0x13693a){const _0x2ac068=_0x305482[_0x26d7ac(0x274)](_0x13693a),_0x99193b=_0x15166d[_0x26d7ac(0x20b)]?.[_0x26d7ac(0x219)]?.[_0x26d7ac(0x27f)](_0x22d1d8=>_0x22d1d8[_0x26d7ac(0x2eb)]===_0x2ac068?.[_0x26d7ac(0x2eb)]&&_0x22d1d8[_0x26d7ac(0x1fb)]===_0x2ac068?.[_0x26d7ac(0x1fb)]&&_0x22d1d8[_0x26d7ac(0x277)]===_0x583fc0[_0x26d7ac(0x277)]);if(!_0x99193b)return nativeFailure('NATIVE_RESUME_MISMATCH',_0x26d7ac(0x238));return _0x4d048b(_0x305482[_0x26d7ac(0x2aa)](_0x13693a,_0x223179['tool_use_id'],_0x583fc0[_0x26d7ac(0x26e)],_0x99193b,_0x3514ea['epoch']),_0x99193b,_0x3514ea);}const _0x43b751=workerBrief(_0x583fc0[_0x26d7ac(0x26e)]['prompt']),_0x2f3b5a=_0x43b751?.[_0x26d7ac(0x277)]===_0x583fc0[_0x26d7ac(0x277)]&&_0x15166d['execution']?.[_0x26d7ac(0x219)]?.[_0x26d7ac(0x27f)](_0x87e257=>_0x87e257[_0x26d7ac(0x2eb)]===_0x43b751[_0x26d7ac(0x2eb)]&&_0x87e257['actorId']===_0x43b751[_0x26d7ac(0x1fb)]&&_0x87e257[_0x26d7ac(0x277)]===_0x583fc0[_0x26d7ac(0x277)]);if(!_0x2f3b5a)return nativeFailure(_0x26d7ac(0x34e),_0x26d7ac(0x1a9));const _0x4857d9={};return _0x4857d9['toolUseId']=_0x223179[_0x26d7ac(0x33f)],_0x4857d9[_0x26d7ac(0x304)]=_0x583fc0[_0x26d7ac(0x26e)],_0x4857d9[_0x26d7ac(0x2c5)]=_0x2f3b5a,_0x4857d9[_0x26d7ac(0x2db)]=_0x1a6459[_0x26d7ac(0x2db)],_0x4857d9[_0x26d7ac(0x2d0)]=_0x1a6459['runId'],_0x4857d9[_0x26d7ac(0x277)]=_0x583fc0[_0x26d7ac(0x277)],_0x4857d9[_0x26d7ac(0x2dc)]=_0x3514ea[_0x26d7ac(0x2dc)],_0x4d048b(_0x305482[_0x26d7ac(0x206)](_0x4857d9),_0x2f3b5a,_0x3514ea);}if(_0x1d2e39===_0x26d7ac(0x2f9)&&NATIVE_CODEX_SPAWN_NAMES['has'](_0x583fc0[_0x26d7ac(0x251)])){const _0x4a9c6f={};_0x4a9c6f[_0x26d7ac(0x27c)]=![],_0x4a9c6f[_0x26d7ac(0x340)]=_0x26d7ac(0x1b3);if(!_0x1a6459['bootstrapped'])return _0x4a9c6f;const _0x592950={};_0x592950['allow']=![],_0x592950[_0x26d7ac(0x340)]=_0x26d7ac(0x32e);if((_0x583fc0[_0x26d7ac(0x255)]||_0x1a6459[_0x26d7ac(0x255)])===_0x26d7ac(0x2bb))return _0x592950;const _0x3a0b6b={};_0x3a0b6b[_0x26d7ac(0x27c)]=![],_0x3a0b6b[_0x26d7ac(0x340)]=_0x26d7ac(0x249);if(_0x1a6459[_0x26d7ac(0x29f)])return _0x3a0b6b;const _0x476c31=workerBrief(_0x583fc0[_0x26d7ac(0x26e)][_0x26d7ac(0x2a3)]);if(_0x476c31){const _0xb18f92={};_0xb18f92[_0x26d7ac(0x27c)]=![],_0xb18f92[_0x26d7ac(0x340)]=_0x26d7ac(0x307);if(!_0x1a6459[_0x26d7ac(0x2db)]||!_0x1a6459[_0x26d7ac(0x2d0)]||_0x476c31[_0x26d7ac(0x277)]!==_0x583fc0[_0x26d7ac(0x277)])return _0xb18f92;const _0x2980d7=_0x22706f['pipeline']||new(require(_0x26d7ac(0x235)))[(_0x26d7ac(0x294))](_0x2477bd[_0x26d7ac(0x22d)]),_0xf2b159=await _0x2980d7[_0x26d7ac(0x1aa)](_0x1a6459[_0x26d7ac(0x2db)],_0x1a6459[_0x26d7ac(0x2d0)]);_0x22706f['assertCurrent']?.();const _0x4307cc=_0xf2b159?.[_0x26d7ac(0x20b)]?.[_0x26d7ac(0x219)]?.[_0x26d7ac(0x27f)](_0x57acd9=>_0x57acd9[_0x26d7ac(0x2eb)]===_0x476c31['attemptId']&&_0x57acd9[_0x26d7ac(0x1fb)]===_0x476c31[_0x26d7ac(0x1fb)]&&_0x57acd9['sessionId']===_0x583fc0['sessionId']);if(!_0x4307cc){const _0x34d76f={};return _0x34d76f[_0x26d7ac(0x27c)]=![],_0x34d76f[_0x26d7ac(0x340)]=_0x26d7ac(0x331),_0x34d76f;}_0x2477bd['recordDispatchObservation']({'sessionId':_0x583fc0['sessionId'],'toolCallId':_0x223179[_0x26d7ac(0x33f)]||_0x223179[_0x26d7ac(0x22e)]||_0x26d7ac(0x276)+_0x476c31[_0x26d7ac(0x2eb)],'attemptId':_0x476c31['attemptId'],'actorId':_0x476c31['actorId'],'task':_0x1a6459['task'],'runId':_0x1a6459[_0x26d7ac(0x2d0)],'tool':_0x583fc0['toolName'],'taskName':_0x583fc0[_0x26d7ac(0x26e)][_0x26d7ac(0x2cd)],'requestedModel':_0x4307cc[_0x26d7ac(0x1dc)]?.[_0x26d7ac(0x2c3)],'dispatchedModel':_0x583fc0[_0x26d7ac(0x26e)][_0x26d7ac(0x30b)],'requestedEffort':_0x4307cc[_0x26d7ac(0x1dc)]?.[_0x26d7ac(0x2c1)],'dispatchedEffort':_0x583fc0[_0x26d7ac(0x26e)]['reasoning_effort'],'forkTurns':_0x583fc0['toolInput'][_0x26d7ac(0x2fb)],'status':codexDispatchStatus(_0x4307cc,_0x583fc0[_0x26d7ac(0x26e)])});}const _0x345937={};return _0x345937['allow']=!![],_0x345937;}const _0x147cc0={};_0x147cc0[_0x26d7ac(0x27c)]=!![];if(!isWriteTool(_0x583fc0[_0x26d7ac(0x251)],_0x583fc0['toolInput'],_0x1f3954,_0x1d2e39))return _0x147cc0;const _0x33a310={};_0x33a310['allow']=![],_0x33a310[_0x26d7ac(0x340)]=_0x26d7ac(0x28b);if(!_0x1a6459['bootstrapped'])return _0x33a310;const _0x522677={};_0x522677['allow']=![],_0x522677[_0x26d7ac(0x340)]='Plan\x20Mode\x20does\x20not\x20authorize\x20source\x20changes.';if(_0x1a6459[_0x26d7ac(0x255)]==='plan'||_0x583fc0[_0x26d7ac(0x255)]===_0x26d7ac(0x2bb))return _0x522677;const _0x15d6bb={};_0x15d6bb[_0x26d7ac(0x27c)]=![],_0x15d6bb[_0x26d7ac(0x340)]='The\x20user\x20stopped\x20this\x20session.\x20Wait\x20for\x20a\x20new\x20user\x20request.';if(_0x1a6459['stopped'])return _0x15d6bb;if(_0x41f2e1?.[_0x26d7ac(0x1b2)])return nativeFailure(_0x26d7ac(0x317),_0x26d7ac(0x29e));const _0x36c832={};_0x36c832[_0x26d7ac(0x27c)]=![],_0x36c832[_0x26d7ac(0x340)]=_0x26d7ac(0x1b9);if(!_0x1a6459[_0x26d7ac(0x2db)]||!_0x1a6459[_0x26d7ac(0x2d0)])return _0x36c832;const _0x1dd6e2=[_0x26d7ac(0x24e),'filePath','path',_0x26d7ac(0x26f),_0x26d7ac(0x243),'AbsolutePath'][_0x26d7ac(0x1f9)](_0x46cbf8=>_0x583fc0[_0x26d7ac(0x26e)][_0x46cbf8])['filter'](_0x5b20d8=>typeof _0x5b20d8==='string'),_0x18c9f5=_0x583fc0[_0x26d7ac(0x26e)][_0x26d7ac(0x2b8)]||_0x583fc0[_0x26d7ac(0x26e)][_0x26d7ac(0x304)]||'';if(typeof _0x18c9f5===_0x26d7ac(0x1da)){for(const _0xcbef3 of _0x18c9f5[_0x26d7ac(0x247)](/^\*\*\* (?:Add File|Update File|Delete File|Move to): (.+)$/gm))_0x1dd6e2[_0x26d7ac(0x308)](_0xcbef3[0x1]);}for(const _0x1d4aae of _0x1dd6e2){let _0x2dd1d7=path[_0x26d7ac(0x21f)](_0x2477bd[_0x26d7ac(0x22d)],_0x1d4aae),_0x2a0c43=_0x2dd1d7;while(!fs[_0x26d7ac(0x346)](_0x2a0c43)&&path[_0x26d7ac(0x333)](_0x2a0c43)!==_0x2a0c43)_0x2a0c43=path[_0x26d7ac(0x333)](_0x2a0c43);if(fs[_0x26d7ac(0x346)](_0x2a0c43))_0x2dd1d7=path['resolve'](fs[_0x26d7ac(0x26c)](_0x2a0c43),path[_0x26d7ac(0x1e2)](_0x2a0c43,_0x2dd1d7));const _0x5b5c13=path['relative'](_0x2477bd[_0x26d7ac(0x22d)],_0x2dd1d7),_0x37514c={};_0x37514c[_0x26d7ac(0x27c)]=![],_0x37514c[_0x26d7ac(0x340)]=_0x26d7ac(0x2f1);if(_0x5b5c13==='..'||_0x5b5c13[_0x26d7ac(0x2f2)]('..'+path[_0x26d7ac(0x228)])||path[_0x26d7ac(0x322)](_0x5b5c13))return _0x37514c;if(/^(?:\.git(?:\/|$)|\.agents\/(?:runtime|pipelines)(?:\/|$))/i[_0x26d7ac(0x1c2)](_0x5b5c13['replaceAll']('\x5c','/')))return nativeFailure(_0x26d7ac(0x2dd),_0x26d7ac(0x2a1));}const _0x16d6c9=_0x22706f['pipeline']||new(require(_0x26d7ac(0x235)))[(_0x26d7ac(0x294))](_0x2477bd[_0x26d7ac(0x22d)]),_0x61d42b={};_0x61d42b['allow']=![],_0x61d42b[_0x26d7ac(0x340)]=_0x26d7ac(0x1cb);if(typeof _0x16d6c9['canMutate']!=='function')return _0x61d42b;const _0x1fbd5e=_0x41f2e1?_0x41f2e1['actorId']:_0x223179[_0x26d7ac(0x1fb)]||(_0x1d2e39!==_0x26d7ac(0x2f7)?_0x223179['agent_id']:null)||_0x26d7ac(0x1e6),_0x3a934a={};_0x3a934a[_0x26d7ac(0x2db)]=_0x1a6459[_0x26d7ac(0x2db)],_0x3a934a[_0x26d7ac(0x2d0)]=_0x1a6459['runId'],_0x3a934a['attemptId']=_0x41f2e1?.['attemptId']||_0x1a6459[_0x26d7ac(0x22b)]?.[_0x1fbd5e]||_0x1a6459[_0x26d7ac(0x2eb)],_0x3a934a[_0x26d7ac(0x277)]=_0x583fc0[_0x26d7ac(0x277)],_0x3a934a[_0x26d7ac(0x1fb)]=_0x1fbd5e,_0x3a934a[_0x26d7ac(0x1e1)]=_0x2477bd[_0x26d7ac(0x22d)],_0x3a934a[_0x26d7ac(0x255)]=_0x583fc0[_0x26d7ac(0x255)]||_0x1a6459[_0x26d7ac(0x255)];const _0x511392=await _0x16d6c9[_0x26d7ac(0x239)](_0x3a934a),_0xa61d00={};_0xa61d00[_0x26d7ac(0x27c)]=_0x511392[_0x26d7ac(0x1ea)]===!![],_0xa61d00[_0x26d7ac(0x340)]=_0x511392['reason']||_0x511392['error']||'';const _0x4acb36=_0xa61d00;if(!_0x305482||_0x4acb36[_0x26d7ac(0x27c)]!==!![])return _0x4acb36;if(_0x134336){if(!_0x22706f[_0x26d7ac(0x2d3)])return nativeFailure(_0x26d7ac(0x263),_0x26d7ac(0x1f4));const _0x13c9f5={};_0x13c9f5['nativeParent']=_0x4714af,_0x13c9f5[_0x26d7ac(0x34a)]=_0x134336,_0x13c9f5[_0x26d7ac(0x24c)]=_0x223179[_0x26d7ac(0x33f)],_0x13c9f5[_0x26d7ac(0x289)]=_0x583fc0[_0x26d7ac(0x26e)];const _0x3e38c0=await _0x22706f[_0x26d7ac(0x2d3)][_0x26d7ac(0x2de)](_0x13c9f5),_0x3053ae={..._0x583fc0[_0x26d7ac(0x26e)]};_0x3053ae[_0x26d7ac(0x33b)]=_0x3e38c0;const _0x4445b0={};return _0x4445b0['allow']=!![],_0x4445b0[_0x26d7ac(0x25a)]=_0x3053ae,_0x4445b0;}const _0x50758f=await _0x16d6c9[_0x26d7ac(0x1aa)](_0x1a6459[_0x26d7ac(0x2db)],_0x1a6459[_0x26d7ac(0x2d0)]),_0x12116f=_0x50758f[_0x26d7ac(0x20b)]?.['active']?.[_0x26d7ac(0x27f)](_0x39ef13=>_0x39ef13[_0x26d7ac(0x1fb)]===_0x1fbd5e&&_0x39ef13[_0x26d7ac(0x277)]===_0x583fc0[_0x26d7ac(0x277)]&&_0x39ef13['attemptId']===(_0x41f2e1?.[_0x26d7ac(0x2eb)]||_0x1a6459[_0x26d7ac(0x22b)]?.[_0x1fbd5e]||_0x1a6459['attemptId']));if(!_0x12116f)return nativeFailure(_0x26d7ac(0x34e),_0x26d7ac(0x312));return _0x4d048b(_0x4acb36,_0x12116f,_0x3514ea);}if(_0x3dd3d5&&_0x583fc0['kind']!==_0x26d7ac(0x28d)){if(_0x583fc0['kind']===_0x26d7ac(0x31d))_0x305482[_0x26d7ac(0x30f)](_0x3dd3d5,_0x223179['activation']);const _0x3a0f97={};_0x3a0f97[_0x26d7ac(0x27c)]=!![];if(![_0x26d7ac(0x274),_0x26d7ac(0x31d)]['includes'](_0x583fc0[_0x26d7ac(0x260)]))return _0x3a0f97;}const _0x3ef619={};_0x3ef619['contextEpoch']=_0x1a6459[_0x26d7ac(0x2be)];const _0x389fcb={..._0x531111};_0x389fcb['compacted']=_0x583fc0[_0x26d7ac(0x260)]===_0x26d7ac(0x2a6);const _0x14fb37={};_0x14fb37[_0x26d7ac(0x208)]=!![];const _0x351036=_0x3dd3d5?_0x3ef619:_0x2477bd[_0x26d7ac(0x2a7)](_0x389fcb,_0x14fb37);if(_0x583fc0[_0x26d7ac(0x260)]===_0x26d7ac(0x28d)){if(_0x305482&&_0xdb96d3&&Object[_0x26d7ac(0x313)][_0x26d7ac(0x22a)][_0x26d7ac(0x30d)](_0x223179,_0x26d7ac(0x2f5))){const _0x352b30=require(_0x26d7ac(0x2d1))[_0x26d7ac(0x2c2)](_0x2477bd[_0x26d7ac(0x22d)]),_0x8001e3=_0x352b30[_0x26d7ac(0x207)]?.[crypto[_0x26d7ac(0x2c6)](_0x26d7ac(0x2e8))['update'](_0xdb96d3)['digest'](_0x26d7ac(0x324))];if(_0x8001e3?.['status']==='active')require(_0x26d7ac(0x2d1))[_0x26d7ac(0x2e1)](_0x2477bd[_0x26d7ac(0x22d)],_0xdb96d3,_0x8001e3[_0x26d7ac(0x2dc)]);}if(_0x41f2e1&&_0x583fc0['toolInput'][_0x26d7ac(0x24d)]==='review'){let _0x5b349f=_0x223179[_0x26d7ac(0x2f5)];if(_0x5b349f?.['structuredContent'])_0x5b349f=_0x5b349f[_0x26d7ac(0x23d)];else{if(Array[_0x26d7ac(0x2c0)](_0x5b349f?.[_0x26d7ac(0x2c8)]))try{_0x5b349f=JSON[_0x26d7ac(0x316)](_0x5b349f[_0x26d7ac(0x2c8)]['find'](_0x530c3e=>_0x530c3e['type']===_0x26d7ac(0x342))?.[_0x26d7ac(0x342)]);}catch{_0x5b349f=null;}}const _0x5c3966=aptToolForHook(_0x583fc0,_0x2477bd['projectPath']);if(_0x5c3966)_0x305482['observeResult'](_0x3dd3d5,_0x223179[_0x26d7ac(0x33f)],_0x5c3966,_0x583fc0[_0x26d7ac(0x26e)],_0x5b349f);}if(_0x305482&&!_0x3dd3d5&&[_0x26d7ac(0x1bf),'Task']['includes'](_0x583fc0['toolName'])&&!_0x583fc0[_0x26d7ac(0x26e)][_0x26d7ac(0x257)]){const _0x27048e=_0x305482['confirm'](_0x223179[_0x26d7ac(0x33f)],_0x583fc0['toolInput'],_0x223179[_0x26d7ac(0x2f5)]),_0x36d1f3={};return _0x36d1f3[_0x26d7ac(0x27c)]=!![],_0x36d1f3[_0x26d7ac(0x2ee)]=_0x27048e[_0x26d7ac(0x274)]&&!_0x27048e['worker'][_0x26d7ac(0x2d8)]&&_0x27048e[_0x26d7ac(0x274)][_0x26d7ac(0x1d3)]==='reviewer'?_0x26d7ac(0x25f)+_0x27048e[_0x26d7ac(0x274)][_0x26d7ac(0x329)]+_0x26d7ac(0x1d5):'',_0x36d1f3;}if(_0x305482&&!_0x3dd3d5&&([_0x26d7ac(0x1bf),'Task'][_0x26d7ac(0x31e)](_0x583fc0[_0x26d7ac(0x251)])&&_0x583fc0[_0x26d7ac(0x26e)]['resume']||_0x583fc0[_0x26d7ac(0x251)]===_0x26d7ac(0x27d))){const _0x590c65=_0x583fc0['toolInput']['resume']||_0x583fc0[_0x26d7ac(0x26e)]['to'];_0x305482[_0x26d7ac(0x2bf)](_0x590c65,_0x223179[_0x26d7ac(0x33f)],_0x583fc0['toolInput'],_0x223179[_0x26d7ac(0x2f5)],[_0x26d7ac(0x1bf),_0x26d7ac(0x2e3)][_0x26d7ac(0x31e)](_0x583fc0['toolName'])&&_0x583fc0[_0x26d7ac(0x26e)][_0x26d7ac(0x288)]!==!![]);}if(_0x1d2e39===_0x26d7ac(0x2f9)&&NATIVE_CODEX_SPAWN_NAMES['has'](_0x583fc0[_0x26d7ac(0x251)])&&_0x1a6459[_0x26d7ac(0x2db)]&&_0x1a6459[_0x26d7ac(0x2d0)]){const _0x2a20b7=workerBrief(_0x583fc0['toolInput'][_0x26d7ac(0x2a3)]),_0x57fd29=hostWorkerIds(_0x223179[_0x26d7ac(0x2f5)]);if(_0x2a20b7?.[_0x26d7ac(0x277)]===_0x583fc0['sessionId']&&_0x57fd29[_0x26d7ac(0x32c)]){const _0x5d2c08=_0x22706f[_0x26d7ac(0x283)]||new(require('../proxy/pipeline'))['PipelineManager'](_0x2477bd['projectPath']),_0x2689e0=await _0x5d2c08[_0x26d7ac(0x1aa)](_0x1a6459['task'],_0x1a6459['runId']),_0x5dcb0d=_0x2689e0?.[_0x26d7ac(0x20b)]?.[_0x26d7ac(0x219)]?.['find'](_0x1043ba=>_0x1043ba[_0x26d7ac(0x2eb)]===_0x2a20b7[_0x26d7ac(0x2eb)]&&_0x1043ba[_0x26d7ac(0x1fb)]===_0x2a20b7[_0x26d7ac(0x1fb)]&&_0x1043ba[_0x26d7ac(0x277)]===_0x583fc0['sessionId']);if(_0x5dcb0d){const _0x5dc9e0=_0x5dcb0d[_0x26d7ac(0x1dc)]?.[_0x26d7ac(0x2c3)]||null,_0x24f5d4=typeof _0x583fc0[_0x26d7ac(0x26e)][_0x26d7ac(0x30b)]===_0x26d7ac(0x1da)?_0x583fc0[_0x26d7ac(0x26e)]['model']:null,_0x5ee6f2=codexDispatchStatus(_0x5dcb0d,_0x583fc0['toolInput']),_0x27ce00={};_0x27ce00[_0x26d7ac(0x277)]=_0x583fc0[_0x26d7ac(0x277)],_0x27ce00['toolCallId']=_0x223179[_0x26d7ac(0x33f)]||_0x223179[_0x26d7ac(0x22e)]||'attempt:'+_0x2a20b7[_0x26d7ac(0x2eb)],_0x27ce00['attemptId']=_0x2a20b7[_0x26d7ac(0x2eb)],_0x27ce00[_0x26d7ac(0x1fb)]=_0x2a20b7[_0x26d7ac(0x1fb)],_0x27ce00['hostIds']=_0x57fd29,_0x27ce00[_0x26d7ac(0x2db)]=_0x1a6459[_0x26d7ac(0x2db)],_0x27ce00[_0x26d7ac(0x2d0)]=_0x1a6459[_0x26d7ac(0x2d0)],_0x27ce00[_0x26d7ac(0x2c3)]=_0x5dc9e0,_0x27ce00[_0x26d7ac(0x2f4)]=_0x24f5d4,_0x27ce00[_0x26d7ac(0x1f2)]=_0x5ee6f2,_0x27ce00['tool']=_0x583fc0[_0x26d7ac(0x251)],_0x27ce00[_0x26d7ac(0x237)]=_0x583fc0[_0x26d7ac(0x26e)][_0x26d7ac(0x2fb)],_0x2477bd[_0x26d7ac(0x201)](_0x27ce00);}}}const _0x5310cf={};_0x5310cf[_0x26d7ac(0x277)]=_0x583fc0[_0x26d7ac(0x277)],_0x5310cf[_0x26d7ac(0x23a)]=!![],_0x5310cf[_0x26d7ac(0x25e)]=_0x223179[_0x26d7ac(0x311)],_0x5310cf[_0x26d7ac(0x24f)]=_0x223179[_0x26d7ac(0x349)]||_0x223179[_0x26d7ac(0x2ed)],_0x5310cf[_0x26d7ac(0x2e5)]=_0x223179[_0x26d7ac(0x1b1)]||_0x223179[_0x26d7ac(0x2e5)]||_0x223179[_0x26d7ac(0x33f)]||_0x223179[_0x26d7ac(0x22e)],_0x5310cf[_0x26d7ac(0x351)]=_0x223179[_0x26d7ac(0x1fb)]||_0x223179['agent_id']||_0x223179[_0x26d7ac(0x2d6)];const _0x2737e1={};_0x2737e1[_0x26d7ac(0x1a8)]=_0x26d7ac(0x33c),_0x2477bd[_0x26d7ac(0x2f6)](_0x5310cf,_0x2737e1);const _0x30b0d4={};return _0x30b0d4['allow']=!![],_0x30b0d4;}if(_0x583fc0['kind']==='prompt'){const _0x24ec82={};_0x24ec82['sessionId']=_0x583fc0[_0x26d7ac(0x277)],_0x24ec82[_0x26d7ac(0x29f)]=![],_0x2477bd[_0x26d7ac(0x30f)](_0x24ec82);const _0x2a41a9={};_0x2a41a9[_0x26d7ac(0x277)]=_0x583fc0[_0x26d7ac(0x277)],_0x2a41a9[_0x26d7ac(0x1d1)]=_0x583fc0['requestId'],_0x2a41a9[_0x26d7ac(0x1f8)]=_0x583fc0[_0x26d7ac(0x1f8)];const _0x5c2404=_0x2477bd[_0x26d7ac(0x220)](_0x2a41a9);return{'allow':!![],'route':_0x5c2404,'context':'APT\x20routing:\x20'+JSON[_0x26d7ac(0x309)](_0x5c2404)+'.\x20Load\x20selected\x20skills\x20with\x20skill_load.\x20For\x20source\x20changes,\x20start/bind\x20the\x20indicated\x20pipeline\x20and\x20request\x20pipeline_next\x20before\x20writing.'};}if(_0x583fc0['kind']===_0x26d7ac(0x30f)){const _0x12479a={};_0x12479a[_0x26d7ac(0x27c)]=!![],_0x12479a[_0x26d7ac(0x2aa)]=![];if((_0x583fc0['mode']||_0x1a6459[_0x26d7ac(0x255)])===_0x26d7ac(0x2bb)||_0x1a6459[_0x26d7ac(0x29f)]||!_0x1ff183['continuation']||!_0x1a6459[_0x26d7ac(0x2db)]||!_0x1a6459[_0x26d7ac(0x2d0)]||[_0x26d7ac(0x209),'error']['includes'](_0x223179[_0x26d7ac(0x1fe)])||_0x223179[_0x26d7ac(0x1d9)]===![])return _0x12479a;const _0x109444=_0x22706f['pipeline']||new(require('../proxy/pipeline'))['PipelineManager'](_0x2477bd['projectPath']),_0x46ca9f=await _0x109444['getStatus'](_0x1a6459[_0x26d7ac(0x2db)],_0x1a6459[_0x26d7ac(0x2d0)]),_0x436964=_0x46ca9f?.[_0x26d7ac(0x219)]===!![]&&!_0x46ca9f?.['execution']?.[_0x26d7ac(0x24b)]&&!_0x46ca9f?.['blocked'],_0x402972=_0x46ca9f?.[_0x26d7ac(0x20b)]||{},_0x35d35a=_0x436964&&Array[_0x26d7ac(0x2c0)](_0x402972['active'])&&_0x402972[_0x26d7ac(0x219)][_0x26d7ac(0x20d)](_0x7cc03f=>_0x7cc03f[_0x26d7ac(0x1fb)]!==_0x26d7ac(0x1e6)),_0x3d5198=_0x436964&&_0x402972[_0x26d7ac(0x272)]?.['kind']===_0x26d7ac(0x2e2)&&Date[_0x26d7ac(0x316)](_0x402972[_0x26d7ac(0x272)][_0x26d7ac(0x2cf)])>Date[_0x26d7ac(0x2df)](),_0x5870c0=_0x436964&&_0x402972[_0x26d7ac(0x272)]?.[_0x26d7ac(0x260)]==='wait-resource';if(_0x35d35a||_0x3d5198||_0x5870c0)return{'allow':!![],'continue':![],'reason':_0x35d35a?'waiting-for-worker':_0x3d5198?_0x26d7ac(0x2a2):_0x26d7ac(0x306)};const _0x3d0095={};_0x3d0095[_0x26d7ac(0x277)]=_0x583fc0[_0x26d7ac(0x277)],_0x3d0095[_0x26d7ac(0x2f3)]=[_0x46ca9f[_0x26d7ac(0x215)],_0x402972[_0x26d7ac(0x22b)],_0x402972[_0x26d7ac(0x2ae)]?.[_0x26d7ac(0x32c)],_0x402972['nextAction']];if(_0x436964&&!_0x2477bd[_0x26d7ac(0x1cd)](_0x3d0095)[_0x26d7ac(0x1ea)]){const _0x280d14={};_0x280d14['task']=_0x1a6459[_0x26d7ac(0x2db)],_0x280d14['runId']=_0x1a6459[_0x26d7ac(0x2d0)],_0x280d14[_0x26d7ac(0x277)]=_0x583fc0[_0x26d7ac(0x277)],_0x280d14[_0x26d7ac(0x24d)]=_0x26d7ac(0x30c),_0x280d14['reason']=_0x26d7ac(0x265);if(_0x109444[_0x26d7ac(0x325)])_0x109444[_0x26d7ac(0x325)](_0x280d14);const _0x2831a1={};return _0x2831a1[_0x26d7ac(0x27c)]=!![],_0x2831a1['continue']=![],_0x2831a1[_0x26d7ac(0x340)]=_0x26d7ac(0x2ba),_0x2831a1;}const _0x173e09={};return _0x173e09[_0x26d7ac(0x27c)]=!![],_0x173e09[_0x26d7ac(0x2aa)]=_0x436964,_0x173e09[_0x26d7ac(0x2ee)]=_0x436964?'Continue\x20the\x20active\x20APT\x20task:\x20reconcile\x20any\x20in-flight\x20attempt\x20with\x20pipeline_status,\x20then\x20call\x20pipeline_next\x20for\x20ready\x20work.\x20Follow\x20its\x20skills\x20and\x20verification\x20instructions\x20and\x20respect\x20durable\x20attempt\x20limits.\x20Do\x20not\x20report\x20completion\x20until\x20the\x20completion\x20gate\x20passes.':'',_0x173e09;}if(_0x583fc0[_0x26d7ac(0x260)]===_0x26d7ac(0x274)||_0x583fc0[_0x26d7ac(0x260)]===_0x26d7ac(0x31d)){const _0x2613c7=String(_0x223179[_0x26d7ac(0x2db)]||'');let _0x5cd72c=_0x223179[_0x26d7ac(0x254)]||_0x2613c7[_0x26d7ac(0x21b)](/\bAPT_ATTEMPT_ID=([0-9a-f-]{36})\b/i)?.[0x1];const _0x274445=_0x2613c7[_0x26d7ac(0x21b)](/\bAPT_ACTOR_ID=([^\s]+)/)?.[0x1];let _0xc618db=_0x223179[_0x26d7ac(0x2a5)]||null;try{if(!_0xc618db&&_0x274445)_0xc618db=decodeURIComponent(_0x274445);}catch{}const _0x20023d=_0x583fc0[_0x26d7ac(0x260)]===_0x26d7ac(0x31d)&&_0x5cd72c&&_0xc618db?_0x2477bd['workerForAttempt']({'sessionId':_0x583fc0[_0x26d7ac(0x277)],'attemptId':_0x5cd72c,'actorId':_0xc618db}):null,_0xaccb3d=_0x223179[_0x26d7ac(0x2b3)]||_0x223179[_0x26d7ac(0x1ef)]||_0x223179[_0x26d7ac(0x2d6)]||_0x20023d?.[_0x26d7ac(0x264)];if(typeof _0xaccb3d===_0x26d7ac(0x1da)&&_0xaccb3d)_0x2477bd['observeWorker']({'sessionId':_0x583fc0[_0x26d7ac(0x277)],'host':_0x1d2e39,'hostWorkerId':_0xaccb3d,'model':_0x223179[_0x26d7ac(0x1ab)]||_0x223179[_0x26d7ac(0x236)]||_0x223179[_0x26d7ac(0x30b)],'actorId':[_0x26d7ac(0x2f9),_0x26d7ac(0x2f7)]['includes'](_0x1d2e39)?null:_0xc618db,'attemptId':[_0x26d7ac(0x2f9),_0x26d7ac(0x2f7)]['includes'](_0x1d2e39)?null:_0x5cd72c,'stopped':_0x583fc0[_0x26d7ac(0x260)]===_0x26d7ac(0x31d)});if(_0x1d2e39===_0x26d7ac(0x2f9)&&typeof _0xaccb3d===_0x26d7ac(0x1da)&&_0xaccb3d)_0x2477bd['linkConfirmedWorker']({'sessionId':_0x583fc0[_0x26d7ac(0x277)],'hostWorkerId':_0xaccb3d});let _0x22d400=_0x583fc0[_0x26d7ac(0x260)]===_0x26d7ac(0x31d)&&_0x1a6459['task']&&_0x1a6459[_0x26d7ac(0x2d0)]&&!_0x1a6459[_0x26d7ac(0x29f)];if(_0x22d400)try{const _0x241021=_0x22706f['pipeline']||new(require(_0x26d7ac(0x235)))[(_0x26d7ac(0x294))](_0x2477bd['projectPath']),_0x469fa7=await _0x241021[_0x26d7ac(0x1aa)](_0x1a6459['task'],_0x1a6459[_0x26d7ac(0x2d0)]);_0x22d400=_0x469fa7?.[_0x26d7ac(0x219)]===!![]&&!_0x469fa7?.[_0x26d7ac(0x20b)]?.[_0x26d7ac(0x24b)]&&!_0x469fa7?.[_0x26d7ac(0x262)];}catch{_0x22d400=![];}const _0x55d5f7={};return _0x55d5f7['allow']=!![],_0x55d5f7['context']=_0x583fc0[_0x26d7ac(0x260)]===_0x26d7ac(0x274)?_0x26d7ac(0x214):_0x22d400?'APT\x20worker\x20stopped.\x20Reconcile\x20its\x20result\x20with\x20pipeline_status,\x20verify\x20its\x20work,\x20then\x20call\x20pipeline_next\x20for\x20ready\x20work\x20without\x20asking\x20the\x20user\x20to\x20continue.':'',_0x55d5f7;}const _0x25c2fd={};return _0x25c2fd[_0x26d7ac(0x27c)]=!![],_0x25c2fd[_0x26d7ac(0x2ee)]=_0x351036[_0x26d7ac(0x2ff)]||_0x583fc0[_0x26d7ac(0x260)]===_0x26d7ac(0x2a6)?'APT\x20session\x20ready.\x20Workspace:\x20'+_0x2477bd[_0x26d7ac(0x22d)]+_0x26d7ac(0x31a)+_0x351036['contextEpoch']+'.':'',_0x25c2fd;}async function runCLI(_0x4c1a39,_0x169ced,_0x3a2715,_0xd3cd2c={}){const _0x5d35eb=_0x51c510;let _0x1b692a='';try{const _0x339335=require(_0x5d35eb(0x1ca))['acceptHookLease'](_0xd3cd2c['hookLease']);for await(const _0xe270b4 of process[_0x5d35eb(0x343)]){_0x1b692a+=_0xe270b4;if(Buffer[_0x5d35eb(0x229)](_0x1b692a)>0x2*0x400*0x400)throw new Error(_0x5d35eb(0x234));}const _0x4b0130=JSON[_0x5d35eb(0x316)](_0x1b692a||'{}');_0x339335[_0x5d35eb(0x26d)]();const _0x351deb=Buffer[_0x5d35eb(0x25c)](_0x3a2715,_0x5d35eb(0x1d7))[_0x5d35eb(0x28c)](_0x5d35eb(0x2d5)),_0x3951e0={};_0x3951e0[_0x5d35eb(0x305)]=_0x339335;const _0x3e7b56=_0x169ced===_0x5d35eb(0x1b7)?{'verifyGatewayBinding':require(_0x5d35eb(0x1ac))['verifyGatewayBinding'],..._0x4c1a39===_0x5d35eb(0x2f7)?{'contextBroker':require(_0x5d35eb(0x1ac))[_0x5d35eb(0x216)](_0x351deb,_0x4b0130,_0x3951e0)}:{},'assertCurrent':_0x339335[_0x5d35eb(0x26d)]}:{'assertCurrent':_0x339335[_0x5d35eb(0x26d)]},_0x4b40ac=formatHookResult(_0x4c1a39,_0x169ced,await processHook(_0x4c1a39,_0x169ced,_0x4b0130,_0x351deb,_0x3e7b56));_0x339335['assertCurrent'](),process['stdout'][_0x5d35eb(0x327)](JSON[_0x5d35eb(0x309)](_0x4b40ac['output'])+'\x0a');if(_0x4b40ac[_0x5d35eb(0x253)])process['stderr'][_0x5d35eb(0x327)](_0x4b40ac[_0x5d35eb(0x253)]+'\x0a');process[_0x5d35eb(0x224)]=_0x4b40ac[_0x5d35eb(0x224)];}catch(_0x506532){process[_0x5d35eb(0x253)]['write'](_0x5d35eb(0x2ec)+_0x506532['message']+'\x0a'),process[_0x5d35eb(0x224)]=0x2;}}if(require['main']===module)runCLI(process[_0x51c510(0x1f0)][0x2],process[_0x51c510(0x1f0)][0x3],process[_0x51c510(0x1f0)][0x4]);const _0xfe3816={};_0xfe3816['processHook']=processHook,_0xfe3816[_0x51c510(0x27b)]=runCLI,_0xfe3816[_0x51c510(0x2d7)]=isWriteTool,_0xfe3816[_0x51c510(0x27a)]=APT_WRAPPED_UNGUARDED_TOOLS,_0xfe3816[_0x51c510(0x336)]=aptNamespacedTool,_0xfe3816[_0x51c510(0x1a7)]=aptDirectTool,module['exports']=_0xfe3816;function _0x3d0b(){const _0x4d7079=['ywz0zxiTDg9VBa','v29YA3nWywnLigLZigrYywLUAw5NoYbUzxCGD29YAYbPCYbUB3qGywrTAxr0zwqU','BMf0AxzLugfYzw50','y29UDhjVBa','lI9JBgf1zguTCgXHBG','Dg9mB3DLCKnHC2u','CMvSzwfZzxm','ugLWzwXPBMvnyw5Hz2vY','q29TBwfUzeXPBMu','y29Kzv9ZzwfYy2G','mtjoDgD6A3i','ywXPyxm','zwzMB3j0lw1PC21HDgnO','q2HPBgqGAwrLBNrPDhKGAxmGBM90ignVBMzPCM1Lzc4','lI93B3jRC3bHy2uTCgf0Aa','DMvYAwz5r2f0zxDHEujPBMrPBMC','DMvYAwzPzwrqBgfUv3jPDgu','vgHLignOAwXKihDHCYbZDg9WCgvKigj5ihrOzsb1C2vYlG','C3rVChbLza','Bgf1BMnOuMvZzwfYy2G','vxnLigXPzMvJEwnSzsb0B29SCYbMB3iGCNvUDgLTzsbZDgf0zs4GtMf0AxzLihnVDxjJzsbLzgL0CYbJyw5UB3qGB3zLCNDYAxrLihrOzsbSzwrNzxiGB3iGy2fSBgvYigf1DgHVCML0Es4','D2fPDgLUzY1MB3iTCxvVDge','BwvZC2fNzq','y29Kzq','yxb0x2fJDg9Yx2LK','y29TCgfJDa','yM9VDhn0CMfW','ugXHBIbnB2rLigrVzxmGBM90igf1DgHVCML6zsbWAxbLBgLUzsbJCMvHDgLVBIWGCMvJB3zLCNKGB3iGy2XLyw51Cc4','C2LNBMf0DxjL','y29UDgLUDwu','Cgf0Aa','CMvJzwLWDevUDhj5','CgLWzwXPBMvFCMvZzxq','zxzPzgvUy2u','CgfYzw50','y2fSBf9Ty3bFDg9VBa','CM91DgvFCMvXDwvZDa','zgvZAxjLzc5QC29U','C3vIywDLBNrFAwq','C2v0x3bYB2PLy3rFCgf0Aa','Dg9VBf9Uyw1L','CgLWzwXPBMvFBMv4Da','y29UC3vTzs1YzxbVCNq','Cgf0y2G','ls1OB3n0','uMvWzwf0zwqGy29UDgLUDwf0Aw9UihbYB2r1y2vKig5VihbPCgvSAw5LihbYB2DYzxnZlG','CgXHBG','CMv2Awv3','u2vYDMvYtMfTzq','y29UDgv4DevWB2nO','y29TCgXLDgvdB250Aw51yxrPB24','AxnbCNjHEq','CMvHC29UAw5NrwzMB3j0','CMvHzezLBMnL','CMvXDwvZDgvKtw9KzwW','CMvZB3vYy2uTD2fPDa','yxr0zw1WDa','y3jLyxrLsgfZAa','v29YA3nWywnLig9WzxjHDgLVBNmGyxjLigzYB3PLBIbMB3iGCNvUDgLTzsb0CMfUC2L0Aw9UlG','y29UDgvUDa','u2TPBgW','BMfTzq','uLvox05pvf9bq1rjvKu','rw50zxjqBgfUtw9Kzq','DgfZA19Uyw1L','BgLUA05HDgL2zvnLC3nPB24','CMv0CNLbzNrLCG','CNvUswq','lI9Hzg1PC3nPB24TzMvUy2u','CMvHzezPBgvtEw5J','y29UDgv4DejYB2TLCG','y2HPBgq','DxrMoa','D29YA2vYx2LK','AxnxCML0zvrVB2W','yMfJA2DYB3vUza','CMvWB3j0','yM9VDhn0CMfWCgvK','DgfZAW','zxbVy2G','uLvoveLnrv9tvefurv9quK9urunuruq','AxnZDwu','BM93','y29SBgfIB3jHDgLVBI5ZCgf3BL9Hz2vUDa','zMLUAxnOt3bLCMf0Aw9U','D2fPDc1XDw90yq','vgfZAW','Dg9VBf9PBNb1Da','zxzLBNrjza','y2XVC2vK','B3bLBG','C2HHmJu2','C2TPBgXFBg9Hza','mZe1mZy4owvZEK1cvq','yxr0zw1WDeLK','qvbuigHVB2S6ia','Dg9Rzw5FDxnHz2u','y29UDgv4Da','odfPthbpv04','C2nVCgu','v3jPDguGDgfYz2v0igLZig91DhnPzguGDgHLigjVDw5Kiefqvcb3B3jRC3bHy2uU','C3rHCNrZv2L0Aa','ChjVz3jLC3m','zgLZCgf0y2HLze1VzgvS','Dg9VBf9YzxnWB25Zzq','B2jZzxj2zq','y2XHDwrLlwnVzgu','uMvZB2X2zsbHihbYB2PLy3qGChjVBxb0lw9UBhKGC2TPBgWGB3iGDxnLiefqvcbZA2LSBf9SB2fKlIbeEw5HBwLJihnOzwXSigfUzcbMB3jRigvMzMvJDhmGCMvXDwLYzsb0AgvPCIbVD24GDMvYAwzPzwqGBMf0AxzLig9WzxjHDgLVBNmU','y29KzxG','DMvYAwz5twvTB3j5u2nVCgu','zM9YA190DxjUCW','y29TBwfUza','CMvHC29UAw5Nx2vMzM9YDa','qxjNDw1LBNrZ','yw5UB3vUy2u','z2XVyMfS','DgHYzwfKswq','lI4VlI4VyMLUl2nSAs5QCW','C2vZC2LVBL9IB290C3rYyxa','Aw5WDxq','BgvHC2u','D2fPDgLUzY1MB3iTCMvZB3vYy2u','qvbuihDVCMTLCIbKAxnWyxrJAcbKB2vZig5VDcbTyxrJAcb0AguGyM91BMqGC2vZC2LVBI4','ChvZAa','C3rYAw5NAwz5','CMvJywXS','Bw9KzwW','Cgf1C2u','y2fSBa','yxb0u2vYDMvYtMfTzq','C3rVCa','BgLZDa','zhvYyxrPB25FBxm','tMf0AxzLihnVDxjJzsb3CML0zsbOyxmGBM8Gywn0AxzLihjLC2vYDMf0Aw9UlG','ChjVDg90ExbL','CMvJB25JAwXLlxzLCMLMAwnHDgLVBG','DMvYAwz5','CgfYC2u','tKfusvzfx0nbteXfuL9tve9queve','rxHWBg9Yzq','C3vIywDLBNrZ','lIbdywXSihjVDxrLx3jLCxvLC3qGD2L0Acb0AguGy3vYCMvUDcb0yxnRlcbSB2fKihnLBgvJDgvKihnRAwXSCYbHBMqGCMvZDw1LigfUEsbIB3vUzcbWAxbLBgLUzsb3AxrOihbPCgvSAw5Lx3n0yxr1CY4Gq29UDgv4DcbLCg9JAdOG','DMvYC2LVBG','CMvSzwfZzq','D29YA2vYlxn0B3a','Aw5JBhvKzxm','Aw50zwDYAxr5lw1HBMLMzxn0lMPZB24','CgLWzwXPBMvF','BwnWx2fWDc1Ty3aTywDLBNrF','AxnbyNnVBhv0zq','Ag9ZDa','Agv4','y2HLy2TWB2LUDa','yMLUl2nSAs5QCW','D3jPDgu','CMvHzg9UBhLszxnLyxjJAa','BMf0AxzLswq','AxntEw1IB2XPy0XPBMS','y2XHDwrLlwjVB3rZDhjHCc1OB29R','BgvUz3rO','DgfZAY1Uyw1Llw1PC21HDgnO','ugXHBIbnB2rLigrVzxmGBM90igf1DgHVCML6zsb3B3jRzxiGzgLZCgf0y2GU','CgLWzwXPBMvFD29YA3nWywnLx2nSzwfUDxa','yxb0lw1JCc1Hz2vUDa','qvbuihDVCMTLCIbKAxnWyxrJAcbOyxmGBM8GBwf0y2HPBMCGywn0AxzLigf0DgvTChqU','zNvUy3rPB25ZlNnWyxDUx2fNzw50','zgLYBMfTzq','C3rHDhvZ','CNvUDgLTzq','yxb0tMfTzxnWywnLzfrVB2W','uLvoveLnrv9vueDsqurfx1nut1bFuKvrvuvtveve','DxnLCI1ZDg9WCgvK','C3bHD25FywDLBNq','D3jPDgvY','x2fWDenVBNrLEhq','Ag9ZDc1OB29R','tKfusvzfx0LovK9dqvrjt05FuKvrvuLsruq','vgHLihbSyw4GD3jPDguGD2fZig5VDcbHzg1PDhrLzc4','Dg9VBf91C2vFAwq','CMvHC29U','z2v0rgLHz25VC3rPy3m','Dgv4Da','C3rKAw4','zMLUzf9JywXSzwvZ','A2v5CW','zxHPC3rZu3LUyW','DgfYz2v0','y3vYCMvUDc5QC29U','DxnHz2u','Dg9VBa','C3rHDgu','Ag9ZDfzLCNnPB24','zxHWBg9Yzv9JB2rL','tKfusvzfx1jfu0vsvKfusu9ox1jfuvvjuKve','ugfYzw50ig9YignOAwXKig1VzguVC3rVCcbZDgf0zsbWCM9OAwjPDhmGDgHPCYbVCgvYyxrPB24U','CMvZzxj2zwrbDa','D29YA2vYswq','y29TBwfUzf9SAw5L','zxzLBNrZ','DMvYAwzPzwrszwfKB25SEvnRAwXS','qvbuihrVB2WGyMvSB25NCYb0BYbHBM90AgvYihDVCMTZCgfJzs4GvxnLia','lI9ZzxnZAw9U','qsbJAgLSzcbJyw5UB3qGzgLZCgf0y2GGB3iGCMvZDw1LihbHCMvUDcb3B3jRzxjZlG','zNvUy3rPB24','yxb0u2vZC2LVBKzVCG','zw50CMLLCW','C3jJl2LUC3rHBgXLCI9YDw50Aw1Llxn0B3jLlMPZ','q0HjterFt1bfuKfusu9ox0rftKLfra','yxb0rgLYzwn0vg9VBa','C291CMnL','vgHLihbYB21WDcbTyxjRzxjZig11C3qGBwf0y2GGyw4Gywn0AxzLigf0DgvTChqU','z2v0u3rHDhvZ','C3vIywDLBNrFBw9KzwW','lI4VAw5ZDgfSBgvYl2HVB2STy29UDgv4Dc1JBgLLBNq','lI4VAw5ZDgfSBgvYl3DVCMTZCgfJzs1YzwDPC3rYEq','yxvKAxrLzejHy2TLBMrszwfK','v29YA3nWywnLuMvNAxn0CNK','tMf0AxzLig9WzxjHDgLVBIbUzwvKCYbPDhmGAg9ZDcbPBNzVy2f0Aw9UieLelG','zxzLBNrFAwq','DxnLCLn0B3bWzwq','qvbuigjVB3rZDhjHCcbPCYbYzxf1AxjLzcbIzwzVCMuGD29YA2vYigrPC3bHDgnOlG','lI9JywXSzxiTy29UDgv4Da','C2vUC2L0AxzLvg9VBa','DMfSDwu','uhjLvg9VBfvZzq','y2fWywjPBgL0AwvZ','qMLUzcbHBIbHy3rPDMuGqvbuihbPCgvSAw5Lihj1BIbIzwzVCMuGy2HHBMDPBMCGC291CMnLlG','ls1NyxrLD2f5','zxHLyW','lMfNzw50CY9YDw50Aw1Ll2DLBMvYyxrPB24UANnVBG','uMvZzwfYy2GGB3bLCMf0Aw9UihDHCYbUB3qGywrTAxr0zwqU','ufjprfvdveLptL9qvujmsunFs0vz','qwDLBNq','tKfusvzfx0jjtKrjtKDFuevoreLorW','Dw5Yzxf1zxn0zwqTB3zLCNjPzgu','DgvZDa','yxb0','Ag9TzwrPCG','AxnszwfKq29TBwfUza','zMLSzxm','CMvZzwfYy2HdyxbHy2L0Eq','igzVCIa','u3rVCcb0AgLZiefqvcbHDhrLBxb0igfUzcbYzwXLyxnLig93BMvYC2HPCc4GvxbKyxrLihDPBgWGChjLC2vYDMuGzMLSzxmGyw5KigHPC3rVCNKSihrOzw4Gy2fUy2vSihrOzsbVBgqGCNvUlG','lI9OB29RlwXLyxnL','ugLWzwXPBMuGD3jPDguGz3vHCMqGAxmGDw5HDMfPBgfIBguU','BMf0AxzLvgfZA05HBwu','y29UDgLUDwf0Aw9U','qMLUzcbHBIbHy3rPDMuGCNvUigfUzcbYzxnLCNzLigeGD29YA2vYigjLzM9YzsbSyxvUy2GU','CMvJB3jKsg9VA09IC2vYDMf0Aw9U','ywn0AxzHDgLVBG','CMvXDwvZDeLK','CMvHzenVBMzPzW','CM9Szq','zNjVEMvU','ihrVigf1DgHVCIbPDhmGC3rYDwn0DxjLzcbYzxzPzxCGyw5KihjLCg9YDc4Gs2vLCcbPDhmGCMvZzxj2yxrPB247ignVB3jKAw5HDg9Yig11C3qGBM90ihn1yNn0Axr1DguGysb2zxjKAwn0lG','sg9ZDcbKAwqGBM90ihbYB3zPzguGysbZzxnZAw9UigLKzw50Axr5','yMfZzty0','CMvZDwX0','zNvSBhLjzgXL','C3rYAw5N','BwnWx18','Bw9KzwXezwnPC2LVBG','DgHYzwfKx2LK','yxjNCW','y2HHBMDLzef0','lM1LBw9YEs9Tzw1VCNKUANnVBMW','D29YA3nWywnLugf0Aa','CMvSyxrPDMu','C2fMzvbSyw5uyxjNzxq','u3rVCcb0AgLZihDVCMTLCIbHBMqGCMvSzwfZzsbVD25LCNnOAxaGzM9YihrOzsbWzw5KAw5Nihj1BNrPBwuGDxbNCMfKzs4','CMvZzwfYy2GTCgfYzw50','y29VCMrPBMf0B3i','Bwf0y2HLza','B2jQzwn0','ugXHBG','ywXSB3DLza','CgLWzwXPBMvFy2HLy2TWB2LUDa','lI9OB3n0lwfKyxb0zxjZ','C3rVCfjLCxvLC3rLza','vgHLign1CNjLBNqGAg9ZDcbOyxmGBM90igrLy2XHCMvKihrOAxmGBMf0AxzLihn1CMzHy2uU','ywDLBNrFAwq','yxjNDG','qxnRvxnLCLf1zxn0Aw9U','zgLZCgf0y2HtDgf0Dxm','yxv0Ag9YAxPLq2fSBa','uMvJB25Uzwn0ihDPDgGGysbJywXSzxiTy29UDgv4DcbJyxbHyMXLie1ducbJB25Uzwn0Aw9UlG','v2vIrMv0y2G','y29UDgv4Dej1zgDLDa','t1bfuKfusu9ox0fvveHpuKLuwv9srvfvsvjfra','ChjVBxb0','BwfW','tKfusvzfx1ndsevnqv9vtKfwquLmqujmrq','ywn0B3jjza','qvbux1vqrefurv9qru5esu5hoIb3B3jRC3bHy2uGywrTAxnZAw9UigLZignSB3nLzcbMB3iGDhjHBNnHy3rPB24G','Aw1Wywn0x2fUywX5C2LZ','DgvYBwLUyxrPB25szwfZB24','BgLUA1zLCMLMAwvKtMf0AxzLu2vZC2LVBG','nJbdzK1Ivgy','CMvJB3jKq29UzMLYBwvKrgLZCgf0y2G','y2XHDwrLsg9Tzq','CgLWzwXPBMvFChjLCgfYzv9TzxjNzq','vg9VBfnLyxjJAa','qvbuigjVB3rZDhjHCcbPCYbYzxf1AxjLzcbIzwzVCMuGCgLWzwXPBMuGy3jLyxrPB24GB3iGCMvJB3zLCNKU','Bgf1BMnO','DgLJA2v0CW','Dhj1C3rLzeHVC3q','Bwf4x3n0zxbZx2v4y2vLzgvK','ywrTAxrpCgvYyxrPB24','zxHLy3v0Aw9U','CgvLAW','C29Tzq','lI9YzwfKB25SEs1ZA2LSBa','ls1WyxrO','vg9VBe5HBwu','Bgf1BMnOzxiUANm','yw50AwDYyxzPDhK','mZmZnZC3neXTtfjNsW','qvbuihDVCMTLCJOGBg9HzcbHC3nPz25LzcbZA2LSBhmGAw4GDgHPCYbJB250zxH0igfUzcbZDgf5ihDPDgHPBIb5B3vYigfZC2LNBMvKihnJB3bLlIbpBMX5ihrOzsbJB29YzgLUyxrVCIbJyw4Gy29TCgXLDguGDgHLihbHCMvUDcbWAxbLBgLUzs4','y29TCgXLDgvK','Ag9VA0nVBNrLEhrdBgLLBNq','uMvJB25Uzwn0ihDPDgGGy2fSBgvYignVBNrLEhqGzw5MB3jJzw1LBNqU','yMvMB3jLlxrVB2W','ywn0AxzL','Bwf4qwDLBNrZ','Bwf0y2G','nZiWnZvntNP0v2e','CgLWzwXPBMvFC3rHCNq','CgLWzwXPBMvFDxnL','CMvZB2X2zq','CM91Dgu','Bhn0yxrtEw5J','lI9JBgf1zguTBMf0AxzL','tuvnt1jzx1Dssvrfx05pvf9srufewq','zxHPDenVzgu','D29YA3nWywnLu2vYDMvYqwXPyxm','zhjHAw5PBMC','y3vYC29Yx3zLCNnPB24','C2vW','yNL0zuXLBMD0Aa','AgfZt3DUuhjVCgvYDhK','yxr0zw1WDhm','y29UDgv4Df9SB2fK','ChjVAMvJDfbHDgG','Dg9VBf9JywXSx2LK','mJCZntj3tK5uqLe','AM9PBG','ndq1mJi1zeXsrezz','BMf0AxzLu3vIywDLBNrZ','ugXHBIbnB2rLigrVzxmGBM90igf1DgHVCML6zsb2zxjPzMLJyxrPB24Gy29TBwfUzhmU','sg9VAYbPBNb1DcbLEgnLzwrZidiGtwLc','lI4VChjVEhKVCgLWzwXPBMu','Bw9KzwXoyw1L','zM9YA1r1CM5Z','q29UDgLUDwf0Aw9UigHHCYbUBYbTyxrJAgLUzYbHy3rPDMuGCMvZzxj2yxrPB24U','y2fUtxv0yxrL','Dg9VBenVBxbSzxrLza','Ag9VA09IC2vYDMf0Aw9UCW','CgLWzwXPBMvFC3rHDhvZ','C3rYDwn0DxjLzenVBNrLBNq','q29UzMXPy3rPBMCGAg9ZDcb0B29SigLKzw50Axr5oYbYzwnLAxb0igLNBM9YzwqU','BgLZDf9JB2rLx2zPBgvZ','tKfusvzfx1nlsuXmx0vgrKvdvf9vtLzfuKLgsuve','yxb0x21JCf9Hz2vUDa','CMvHzfj1BG','DgfYz2v0x2zPBgu','D29YA3nWywnL','nKf6D3D2qG','DhjPBq','Bwf0y2HbBgW','zxjYB3i','vgHLihvZzxiGC3rVChbLzcb0AgLZihnLC3nPB24U','BM9Kzq','C3rVCfjLyxnVBG','Dg9VBfvZzuLK','ywn0Aw9U','zMLSzv9WyxrO','Dg9Rzw5vC2fNzq','BMf0AxzLrgLZCgf0y2G','Dg9VBe5HBwu','zxzLBNq','C3rKzxjY','yxb0x2f0DgvTChrFAwq','Bw9Kzq','yMfZzw5HBwu','CMvZDw1L','CMvMCMvZAc1YzwnLAxb0CW','y29UzMLNugf0Aa','DxbKyxrLzeLUChv0','DMvYAwz5uMvSzwfZzq','zNjVBq','D29YA3nWywnLx2XPC3q','zhvYyxrPB25nCW','uMvZDw1LihrOzsbZyw1LienSyxvKzsbJAgLSzca','A2LUza','Bwf0y2HPBMDszwnLAxb0','yMXVy2TLza','q0fmtevsx0nptLrfwfrFvu5bvKfjtefcteu','Ag9ZDfDVCMTLCKLK','Ag9ZDf9SAw1PDa','C3vIywDLBNrZrxHWBgLJAxq','uKvtrufsq0HFuKvbrf9ptKXz','uMvZzwfYy2GGCMvXDwLYzxmGysbIB290C3rYyxbWzwqSihvUC3rVChbLzcbZzxnZAw9UihDPDgGGB3bLBIbHzg1PC3nPB24U','zMXHDe1HCa','Dg9VBenHBgW','zgLNzxn0','CMvHBhbHDgHtEw5J','yxnZzxj0q3vYCMvUDa','Dg9VBeLUChv0','vgfYz2v0rMLSzq','qvbux1vqrefurv9qru5esu5h','lI4VBgLJzw5Zzs92zxjPzNK','BMv4DefJDgLVBG','DMfSAwrHDgvszxbVCNrLzenHCgfIAwXPDgLLCW','D29YA2vY','CgLWzwXPBMvFDMvYAwz5','yxr0zw1WDdO','C2vZC2LVBKLK','zMLUzf9JywXSzxjZ','zw50CNK','qvbux1DsqvbqrurFvu5hvufsrevex1rpt0Xt','CNvUq0Xj','ywXSB3C','u2vUze1LC3nHz2u','AxnfCNjVCG','zMLUza','BwnWxW','mZa4nZK3nMrZALzisG','rxHPDfbSyw5nB2rL','CgLWzwXPBMu','AgfZ','zM9YAY1TAxnTyxrJAa','lMfNzw50CY9YDw50Aw1Ll3vWzgf0zs1Yzxf1zxn0lMPZB24','lI4VAw5ZDgfSBgvYl3jLz2LZDhjHDgLVBI1YzwnLAxb0','CNvUx2LUx2jHy2TNCM91BMq','yxjNDw1LBNrZ','mtm0nJmYogLiDMPLqq','qvbuigjVB3rZDhjHCcbPCYbYzxf1AxjLzcbIzwzVCMuGD3jPDgvZlG','Dg9tDhjPBMC'];_0x3d0b=function(){return _0x4d7079;};return _0x3d0b();}
|
|
1
|
+
const _0x329ad5=_0x2dd2;(function(_0x473f91,_0x476755){const _0x126867=_0x2dd2,_0x110db7=_0x473f91();while(!![]){try{const _0x382bae=parseInt(_0x126867(0x181))/0x1+-parseInt(_0x126867(0x8a))/0x2+parseInt(_0x126867(0x186))/0x3*(-parseInt(_0x126867(0x73))/0x4)+-parseInt(_0x126867(0x16d))/0x5*(parseInt(_0x126867(0xb7))/0x6)+-parseInt(_0x126867(0x1de))/0x7*(parseInt(_0x126867(0xd4))/0x8)+-parseInt(_0x126867(0x1c7))/0x9*(parseInt(_0x126867(0x1bb))/0xa)+parseInt(_0x126867(0x18b))/0xb*(parseInt(_0x126867(0xb9))/0xc);if(_0x382bae===_0x476755)break;else _0x110db7['push'](_0x110db7['shift']());}catch(_0x3dc520){_0x110db7['push'](_0x110db7['shift']());}}}(_0x1e44,0x52fd5));const fs=require('fs'),path=require('path'),crypto=require('crypto'),{isDeepStrictEqual}=require('util'),{SessionRuntime}=require(_0x329ad5(0x1f6)),{sameWorkspace,workspaceServerAlias}=require(_0x329ad5(0x124)),{normalizeHook,detectCapabilities,formatHookResult}=require(_0x329ad5(0x19f)),{ClaudeNative,fingerprint,failure:nativeFailure}=require(_0x329ad5(0x15e));function responseObjects(_0xcd7d8a,_0x8ac147=0x0){const _0x1d95ee=_0x329ad5;if(_0x8ac147>0x4||_0xcd7d8a==null)return[];if(typeof _0xcd7d8a===_0x1d95ee(0xca)){if(_0xcd7d8a[_0x1d95ee(0x145)]>0x10000)return[];try{return responseObjects(JSON['parse'](_0xcd7d8a),_0x8ac147+0x1);}catch{return[];}}if(Array[_0x1d95ee(0x168)](_0xcd7d8a))return _0xcd7d8a[_0x1d95ee(0x6d)](_0x331890=>responseObjects(_0x331890,_0x8ac147+0x1));if(typeof _0xcd7d8a!=='object'||_0xcd7d8a[_0x1d95ee(0xae)]===!![]||_0xcd7d8a[_0x1d95ee(0x1dc)])return[];return[_0xcd7d8a,...[_0x1d95ee(0x1eb),_0x1d95ee(0xff),_0x1d95ee(0x1a4),_0x1d95ee(0x1b5)]['flatMap'](_0x17a515=>responseObjects(_0xcd7d8a[_0x17a515],_0x8ac147+0x1))];}function workerBrief(_0x354619){const _0x4850bb=_0x329ad5,_0x5936db=String(_0x354619||''),_0x2d4a79=_0x5936db[_0x4850bb(0x12e)](/\bAPT_ATTEMPT_ID=([0-9a-f-]{36})\b/i)?.[0x1],_0x39eb4f=_0x5936db[_0x4850bb(0x12e)](/\bAPT_ACTOR_ID=([^\s]+)/)?.[0x1],_0x1499c0=_0x5936db[_0x4850bb(0x12e)](/\bAPT_SESSION_ID=([^\s]+)/)?.[0x1];try{return _0x2d4a79&&_0x39eb4f&&_0x1499c0?{'attemptId':_0x2d4a79,'actorId':decodeURIComponent(_0x39eb4f),'sessionId':decodeURIComponent(_0x1499c0)}:null;}catch{return null;}}function hostWorkerIds(_0x3db99b){const _0x2978b2=_0x329ad5,_0x349e74=new Set();if(typeof _0x3db99b==='string'&&_0x3db99b[_0x2978b2(0x145)]<=0x10000)try{_0x3db99b=JSON[_0x2978b2(0x157)](_0x3db99b);}catch{return[];}if(!_0x3db99b||typeof _0x3db99b!==_0x2978b2(0x15b)||_0x3db99b[_0x2978b2(0xae)]===!![]||_0x3db99b[_0x2978b2(0x1dc)])return[];const _0x4af1ba=_0x3db99b[_0x2978b2(0x1eb)]&&typeof _0x3db99b[_0x2978b2(0x1eb)]===_0x2978b2(0x15b)&&!_0x3db99b['result']['error']?_0x3db99b['result']:_0x3db99b;for(const _0x1e803e of[_0x2978b2(0xda),_0x2978b2(0x164),_0x2978b2(0x78),_0x2978b2(0x138),_0x2978b2(0x1fd),_0x2978b2(0x142),'task_name']){const _0x575156=_0x4af1ba[_0x1e803e];if(typeof _0x575156===_0x2978b2(0xca)&&_0x575156&&_0x575156[_0x2978b2(0x145)]<=0x200)_0x349e74[_0x2978b2(0x19a)](_0x575156);}return[..._0x349e74];}function _0x1e44(){const _0x2f1ef7=['BwnWu2vYDMvYCW','CgfYC2u','DhjPBq','D29YA3nWywnL','C2vZC2LVBKLK','B2jQzwn0','CgLWzwXPBMvFy2HLy2TWB2LUDa','vxnLigXPzMvJEwnSzsb0B29SCYbMB3iGCNvUDgLTzsbZDgf0zs4GtMf0AxzLihnVDxjJzsbLzgL0CYbJyw5UB3qGB3zLCNDYAxrLihrOzsbSzwrNzxiGB3iGy2fSBgvYigf1DgHVCML0Es4','lI9JBgf1zguTBMf0AxzL','CMvZzwfYy2GTCgfYzw50','CgXHBG','yMfZzw5HBwu','Bwf4qwDLBNrZ','zNjVEMvU','ywDLBNrjza','CMvSzwfZzxm','ywrTAxrpCgvYyxrPB24','vgHLign1CNjLBNqGAg9ZDcbOyxmGBM90igrLy2XHCMvKihrOAxmGBMf0AxzLihn1CMzHy2uU','AxnbCNjHEq','BgvHC2u','CNvUq0Xj','qvbux1vqrefurv9qru5esu5hoIb3B3jRC3bHy2uGywrTAxnZAw9UigLZignSB3nLzcbMB3iGDhjHBNnHy3rPB24G','y29Kzq','nuvUrffOvW','D2fPDgLUzY1MB3iTCMvZB3vYy2u','D2LUmZi','q29UzMXPy3rPBMCGAg9ZDcb0B29SigLKzw50Axr5oYbYzwnLAxb0igLNBM9YzwqU','D29YA3nWywnLx2XPC3q','lI4VlI4VyMLUl2nSAs5QCW','z2v0u3rHDhvZ','BwLZC2LUzY1ZzwXLy3rVCG','C3vIywDLBNrZ','Bgf1BMnOzxiUANm','C3rVCfjLCxvLC3rLza','zhvYyxrPB25FBxm','y3vYCMvUDc5QC29U','Dg9VBfvZzuLK','q2HPBgqGAwrLBNrPDhKGAxmGBM90ignVBMzPCM1Lzc4','zw50CMLLCW','tKfusvzfx0LovK9dqvrjt05FuKvrvuLsruq','CMvJB3jKsg9VA09IC2vYDMf0Aw9U','BwvZC2fNzq','CMvTzw1Izxi','mZC0otG2qMHezwvs','yxb0lw1JCc1Hz2vUDa','BwnWx2fWDc1Ty3aTywDLBNrF','C29Tzq','yNL0zuXLBMD0Aa','mtm4qvHrwgf0','y2HLy2TWB2LUDa','BMf0AxzLvgfZA05HBwu','BwfPBG','ugLWzwXPBMvnyw5Hz2vY','mteYotmYnZfbCuz0zw4','Bwf4x3n0zxbZx2v4y2vLzgvK','y29UDhjVBa','v2vIrMv0y2G','C3vIywDLBNrZrxHWBgLJAxq','tuvnt1jzx1Dssvrfx05pvf9srufewq','qvbuigjVB3rZDhjHCcbPCYbYzxf1AxjLzcbIzwzVCMuGD3jPDgvZlG','ugXHBIbnB2rLigrVzxmGBM90igf1DgHVCML6zsb3B3jRzxiGzgLZCgf0y2GU','CMvJywXS','zxbVy2G','ywXPyxm','sg9ZDcbKAwqGBM90ihbYB3zPzguGysbZzxnZAw9UigLKzw50Axr5','CMvXDwvZDgvKtw9KzwW','BgLUA1zLCMLMAwvKtMf0AxzLu2vZC2LVBG','y29SBgfIB3jHDgLVBI5ZCgf3BL9Hz2vUDa','ywrK','Ag9ZDfzLCNnPB24','C2L6zq','Cgf1C2u','BwfW','lI9OB3n0lwfKyxb0zxjZ','zxHWB3j0CW','tKfusvzfx1ndsevnqv9vtKfwquLmqujmrq','DgfZA19Uyw1L','zxzLBNrFAwq','B3v0Chv0','lI4VAw5ZDgfSBgvYl2HVB2STy29UDgv4Dc1JBgLLBNq','Dg9VBf9JywXSx2LK','zMLUza','DgLJA2v0CW','Cgf0Aa','vgHLihvZzxiGC3rVChbLzcb0AgLZihnLC3nPB24UifDHAxqGzM9YigeGBMv3ihvZzxiGCMvXDwvZDc4','ls1NyxrLD2f5','tMf0AxzLig9WzxjHDgLVBIbUzwvKCYbPDhmGAg9ZDcbPBNzVy2f0Aw9UieLelG','q0HjterFt1bfuKfusu9ox0rftKLfra','Dg9VBf91C2vFAwq','Cgf0y2G','Bwf0y2HLza','yxnZzxj0q3vYCMvUDa','y29KzxG','Aw5JBhvKzxm','C2LNBMf0DxjL','Dgv4Da','DxnLCI1ZDg9WCgvK','B3bLBG','yw5UB3vUy2u','Aw5OzxjPDa','A2v5CW','nJbVuKzpvLu','y29TCgXLDgvK','C3rHCNrZv2L0Aa','vgHPCYbUyxrPDMuGCMvZzwfYy2GGC3vYzMfJzsbPCYbUB3qGzgvJBgfYzwqGyNKGDgHLign1CNjLBNqGAg9ZDc4','DgvYBwLUyxrPB25szwfZB24','yxb0x21JCf9Hz2vUDa','CMvHC29UAw5Nx2vMzM9YDa','uMvZDw1LihrOzsbZyw1LienSyxvKzsbJAgLSzca','y29TBwfUza','Bw9Kzq','Dg9VBf9Uyw1L','zhjHAw5PBMC','ntyYmdqXyKnHCuTi','CMvZzwfYy2HdyxbHy2L0Eq','Dg9VBf9PBNb1Da','zgLYBMfTzq','y29UC3vTzs1YzxbVCNq','C3rVChbLza','CgLWzwXPBMu','qwjZB2X1DgvqyxrO','DMvYAwz5uMvSzwfZzq','ywn0AxzL','CMvHzezLBMnL','C2vUC2L0AxzLvg9VBa','DMvYAwzPzwrszwfKB25SEvnRAwXS','D3jPDgu','DgfZAW','CMv2Awv3zxi','y29UDgv4Df9SB2fK','yMvMB3jLlxrVB2W','yxb0tMfTzxnWywnLzfrVB2W','zw50CNK','lIbdywXSihjVDxrLx3jLCxvLC3qGD2L0Acb0AguGy3vYCMvUDcb0yxnRlcbSB2fKihnLBgvJDgvKihnRAwXSCYbHBMqGCMvZDw1LigfUEsbIB3vUzcbWAxbLBgLUzsb3AxrOihbPCgvSAw5Lx3n0yxr1CY4Gq29UDgv4DcbLCg9JAdOG','zxjYB3i','yw50AwDYyxzPDhK','n2DiAxn4wa','q0fmtevsx0nptLrfwfrFvu5bvKfjtefcteu','ls1OB3n0','AgfZt3DUuhjVCgvYDhK','qwDLBNq','yxr0zw1WDeLK','BwnWx18','q29UDgLUDwf0Aw9UigHHCYbUBYbTyxrJAgLUzYbHy3rPDMuGCMvZzxj2yxrPB24U','Ag9ZDfDVCMTLCKLK','Ag9VA09IC2vYDMf0Aw9UCW','zMLSzvbHDgG','BwnWx19HChqTBwnWlwfNzw50x18','ugXHBIbnB2rLigrVzxmGBM90igf1DgHVCML6zsb2zxjPzMLJyxrPB24Gy29TBwfUzhmU','CMvZDwX0','DMvYC2LVBG','yxjNDG','Bgf1BMnO','DxnLCLn0B3bWzwq','uMvZzwfYy2GGCMvXDwLYzxmGysbIB290C3rYyxbWzwqSihvUC3rVChbLzcbZzxnZAw9UihDPDgGGB3bLBIbHzg1PC3nPB24U','CMvJB3jKq29UzMLYBwvKrgLZCgf0y2G','y29VCMrPBMf0B3i','Ag9VA0XLyxnL','y2fUtxv0yxrL','tKfusvzfx1nlsuXmx0vgrKvdvf9vtLzfuKLgsuve','lI9ZzxnZAw9U','CgLWzwXPBMvFCMvZzxq','ChjVDg90ExbL','vgHLihvZzxiGC3rVChbLzcb0AgLZihnLC3nPB24U','y2XHDwrLlwjVB3rZDhjHCc1OB29R','zM9YAY1TAxnTyxrJAa','CMvXDwvZDeLK','D29YA2vYx2LK','v3jPDguGDgfYz2v0igLZig91DhnPzguGDgHLigjVDw5Kiefqvcb3B3jRC3bHy2uU','B2jZzxj2zvDVCMTLCG','y29TBwfUzf9SAw5L','v29YA3nWywnLigLZigzYB3PLBIbMB3iGCNvUDgLTzsb0CMfUC2L0Aw9UlG','Ag9VA0nVBNrLEhrdBgLLBNq','ugXHBG','CgLWzwXPBMvFChjLCgfYzv9TzxjNzq','ChvZAa','qvbuihrVB2WGyMvSB25NCYb0BYbHBM90AgvYihDVCMTZCgfJzs4GvxnLia','zNjVBq','v29YA3nWywnLig9WzxjHDgLVBNmGyxjLigzYB3PLBIbMB3iGCNvUDgLTzsb0CMfUC2L0Aw9UlG','ChjVz3jLC3m','AM9PBG','zNvSBhLjzgXL','y2HHBMDLzef0','qvbuihjVDxrPBMC6ia','CM9Szq','uMvWzwf0zwqGy29UDgLUDwf0Aw9UihbYB2r1y2vKig5VihbPCgvSAw5LihbYB2DYzxnZlG','u3rVCcb0AgLZihDVCMTLCIbHBMqGCMvSzwfZzsbVD25LCNnOAxaGzM9YihrOzsbWzw5KAw5Nihj1BNrPBwuGDxbNCMfKzs4','tKfusvzfx0jjtKrjtKDFuevoreLorW','C3vIywDLBNrFAwq','lM1LBw9YEs9Tzw1VCNKUANnVBMW','Ag9ZDa','Aw5WDxq','lI4VBgLJzw5Zzs92zxjPzNK','lMfNzw50CY9Ty3bFy29UzMLNlMPZB24','DhLWzq','qvbux1DsqvbqrurFvu5hvufsrevex1rpt0Xt','B2jZzxj2zq','lI9YzwfKlwnVBw1HBMq','CMvZB3vYy2uTD2fPDa','zNvUy3rPB24','zxHPC3rZu3LUyW','yMfZzty0DxjS','Dg9VBeLUChv0','D3jPDgvY','qMLUzcbHBIbHy3rPDMuGCNvUigfUzcbYzxnLCNzLigeGD29YA2vYigjLzM9YzsbSyxvUy2GU','zMLSzv9WyxrO','Dg9Rzw5FDxnHz2u','y29UDgLUDwf0Aw9UrgLZywjSzwq','C3rHDgu','uMvJB25Uzwn0ihDPDgGGy2fSBgvYignVBNrLEhqGzw5MB3jJzw1LBNqU','r0furvDbwv9csu5esu5hx1jfuvvjuKveoIbIB290C3rYyxaGyxb0lw1JCc1Hz2vUDcbMB3iG','zMLUAxnOt3bLCMf0Aw9U','zxHLy3v0Aw9U','DxrMoa','zMXHDe1HCa','ufjprfvdveLptL9qvujmsunFs0vz','zMLSzxm','qxnRvxnLCLf1zxn0Aw9U','CMvHzenVBMzPzW','lI9Hzg1PC3nPB24TzMvUy2u','ntmWnJHHDK1uEhm','DMvYAwz5r2f0zxDHEujPBMrPBMC','Bgf1BMnOuMvZzwfYy2G','C2HHmJu2','yxb0x2fJDg9Yx2LK','DgHYzwfKx2LK','AxnxCML0zvrVB2W','Dg9VBf9YzxnWB25Zzq','u2vUze1LC3nHz2u','DMvYAwzPzwrqBgfUv3jPDgu','qsbJAgLSzcbJyw5UB3qGzgLZCgf0y2GGB3iGCMvZDw1LihbHCMvUDcb3B3jRzxjZlG','ywn0B3jjza','zMLUzf9JywXSzwvZ','CNvUx2LUx2jHy2TNCM91BMq','Dg9VBenVBxbSzxrLza','CMvSzwfZzq','y3jLyxrLsgfZAa','Dg9VBe5HBwu','yxjNCW','CgLWzwXPBMvFBMv4Da','CM91DgvFCMvXDwvZDa','CMvSyxrPDMu','qvbux1vqrefurv9qru5esu5h','mJiZotCWzxH3tNzO','zxHPDenVzgu','CMvHzfj1BG','C3vIywDLBNrFDhLWzq','yM9VDhn0CMfW','uKvtrufsq0HFuKvbrf9ptKXz','qxjNDw1LBNrZ','z2XVyMfS','yM9VDhn0CMfWCgvK','BM9Kzq','Bw9KzwXoyw1L','yMfZzty0','lI9Tzw1VCNKTC2nVCgu','rxHPDfbSyw5nB2rL','y29TCgfJDgvK','ywn0AxzHDgLVBG','Dhj1C3rLzeHVC3q','AgfZ','DMvYAwz5twvTB3j5u2nVCgu','qvbuihDVCMTZCgfJzsbKB2vZig5VDcbTyxrJAcb0AguGAg9ZDcb3B3jRC3bHy2uUiejVB3rZDhjHCcb0AguGy29YCMvJDcb3B3jRC3bHy2uU','y2XHDwrLsg9Tzq','Dg9VBenHBgW','Agv4','CMvJB3jKrgLZCgf0y2HpyNnLCNzHDgLVBG','C2vSzwn0B3iTBwLZBwf0y2G','CMvZzxj2zwrbDa','Bwf0y2HbBgW','BMf0AxzLswq','A2LUza','yxb0u2vZC2LVBKzVCG','CMv0CNLbzNrLCG','Ag9ZDf9SAw1PDa','qvbuigjVB3rZDhjHCcbPCYbYzxf1AxjLzcbIzwzVCMuGCgLWzwXPBMuGy3jLyxrPB24GB3iGCMvJB3zLCNKU','z3jLCf9ZzwfYy2G','y2HPBgq','AxnszwfKq29TBwfUza','AxnfCNjVCG','zM9YA1r1CM5Z','C3rYDwn0DxjLzenVBNrLBNq','BgLUA0nVBMzPCM1LzfDVCMTLCG','zMLSDgvY','ugfYzw50ig9YignOAwXKig1VzguVC3rVCcbZDgf0zsbWCM9OAwjPDhmGDgHPCYbVCgvYyxrPB24U','CMv2Awv3','ywn0Aw9U','vg9VBe5HBwu','mZiZnduXmeTzuvn0Da','C3rHDhvZ','mJrfqMXSwwy','Ag9ZDeLKCW','ls1WyxrO','y29UDgLUDwu','CgfYzw50','y29UDgLUDwf0Aw9U','CgLWzwXPBMvFDxnL','D29YA2vYlxn0B3a','lMfNzw50CY9YDw50Aw1Ll3vWzgf0zs1Yzxf1zxn0lMPZB24','ChjVBxb0','BMf0AxzLugfYzw50','Dg9VBa','CM91Dgu','q29UzMXPy3rPBMCGAg9ZDcb0B29SigLKzw50Axr5lG','CMvJB25JAwXLlxzLCMLMAwnHDgLVBG','C291CMnL','zgLNzxn0','C3rYAw5N','Ag9ZDe93BMvK','zMLUzgLUzY1YzxnVBhv0Aw9U','ChjVAMvJDfbHDgG','lI9JBgf1zguTCgXHBG','yxb0x2f0DgvTChrFAwq','twvTB3j5ihjLCxvPCMvZigfUihvUC3rVChbLzcbKzwzHDwX0lw1VzguGC2vZC2LVBIb3AxrOig9Wzw4GywrTAxnZAw9UlG','C3jJl2LUC3rHBgXLCI9YDw50Aw1Llxn0B3jLlMPZ','tKfusvzfx0rju1bbvenix1nut1bqruq','zgLZCgf0y2HtDgf0Dxm','mZyXody5nMTJy2jvrW','CNvUswq','BgLUA05HDgL2zvnLC3nPB24','sg9VAYbPBNb1DcbLEgnLzwrZidiGtwLc','uhjLvg9VBfvZzq','CgLWzwXPBMvFD29YA3nWywnLx2nSzwfUDxa','ywDLBNrFAwq','C3rKzxjY','C2XPy2u','tMf0AxzLihnVDxjJzsb3CML0zsbOyxmGBM8Gywn0AxzLihjLC2vYDMf0Aw9UlG','vgHLignOAwXKihDHCYbZDg9WCgvKigj5ihrOzsb1C2vYlG','yxv0Ag9YAxPLq2fSBa','y29UDgv4Da','CMvHzf9RBM93BgvKz2u','BMf0AxzLoG','lI9JywXSzxiTy29UDgv4Da','C2vW','ChjVy2vZC0HVB2S','Bw9KzwW','C3rKAw4','yxjNDw1LBNrZ','ywXSB3C','D2fPDc1YzxnVDxjJzq','zM9YA190DxjUCW','C2nVCgu','vgHPCYbJAgLSzcbOyxmGBM8Gy29UzMLYBwvKig5HDgL2zsbSyxvUy2GGyMLUzgLUzY4GuMvHzgLUzYbPCYbHBgXVD2vKlG','DxbKyxrL','y2XHDwrLlwnVzgu','BMfTzq','D29YA3nWywnLugf0Aa','qMLUzcbHBIbHy3rPDMuGqvbuihbPCgvSAw5Lihj1BIbIzwzVCMuGy2HHBMDPBMCGC291CMnLlG','DxbKyxrLzeLUChv0','Dg9VBenHBgXjza','yxr0zw1WDhm','ugXHBIbnB2rLigrVzxmGBM90igf1DgHVCML6zsbWAxbLBgLUzsbJCMvHDgLVBIWGCMvJB3zLCNKGB3iGy2XLyw51Cc4','CgvLAW','D29YA2vY','ywnJzxb0sg9VA0XLyxnL','CgLWzwXPBMvFDMvYAwz5','y2fSBf9Ty3bFDg9VBa','uMvJB25Uzwn0ihDPDgGGysbJywXSzxiTy29UDgv4DcbJyxbHyMXLie1ducbJB25Uzwn0Aw9UlG','CNvUDgLTzq','AxnZDwu','y29UDgvUDa','lI4VAw5ZDgfSBgvYl3DVCMTZCgfJzs1YzwDPC3rYEq','C3rVCfjLyxnVBG','DMfSAwrHDgvszxbVCNrLzenHCgfIAwXPDgLLCW','q29TBwfUzeXPBMu','CgLWzwXPBMvFC3rHDhvZ','CgLWzwXPBMvF','uLvoveLnrv9vueDsqurfx1nut1bFuKvrvuvtveve','vgHLihbSyw4GD3jPDguGD2fZig5VDcbHzg1PDhrLzc4','yxvKAxrLzejHy2TLBMrszwfK','BMv4DefJDgLVBG','zNvUy3rPB25ZlMnVBgXHyM9YyxrPB24UC3bHD25FywDLBNq','zMLUzf9JywXSzxjZ','tMf0AxzLigXHDw5JAcbYzxf1AxjLCYbHBIbHy3rPDMuGCNvUihDPDgGGBM8GC3rVCcbSyxrJAc4','Bw9KzwXezwnPC2LVBG','CMvZDw1L','AxnbyNnVBhv0zq','igzVCIa','BMf0AxzLrgLZCgf0y2G','u3rVCcb0AgLZiefqvcbHDhrLBxb0igfUzcbYzwXLyxnLig93BMvYC2HPCc4GvxbKyxrLihDPBgWGChjLC2vYDMuGzMLSzxmGyw5KigHPC3rVCNKSihrOzw4Gy2fUy2vSihrOzsbVBgqGCNvUlG','lI4VChjVEhKVCgLWzwXPBMu','CMvHC29UAw5NrwzMB3j0','zxHLyW','vxnLig5HDgL2zsbYzwfKCYb1BNrPBcb0AgLZignOAwXKigHHCYbHignVBMzPCM1LzcbSyxvUy2GGyMLUzgLUzY4','v29YA3nWywnLuMvNAxn0CNK','CgLWzwXPBMvFC3rHCNq','lI9YzwfKB25SEs1ZA2LSBa','qvbuihDVCMTLCIbKAxnWyxrJAcbKB2vZig5VDcbTyxrJAcb0AguGyM91BMqGC2vZC2LVBI4','Ag9ZDc1OB29R','y2fSBa','CMvHC29U','y29TCgfJDa','zgvZAxjLzc5QC29U','BwnWxW','zxzPzgvUy2u','vg9VBfnLyxjJAa','tKfusvzfx0nbteXfuL9tve9queve','lI93B3jRC3bHy2uTCgf0Aa','yxb0u2vYDMvYtMfTzq','Bhn0yxrtEw5J','ugXHBIbnB2rLigrVzxmGBM90igf1DgHVCML6zsbZB3vYy2uGy2HHBMDLCY4','lMnSyxvKzq','ywXSB3DLza','DgfYz2v0x2zPBgu','B2jZzxj2zvjLC3vSDa','x2fWDenVBNrLEhq','yMfJA2DYB3vUza','Bwf0y2G','CMvHzezPBgvtEw5J','BM93','rw50zxjqBgfUtw9Kzq','Aw1Wywn0x2fUywX5C2LZ','CMvZB2X2zq','zxzLBNrZ','C3vIywDLBNrFBw9KzwW','Dg9mB3DLCKnHC2u','yxb0rgLYzwn0vg9VBa','DgHYzwfKswq','y2fWywjPBgL0AwvZ','y29UDgv4DejYB2TLCG','DMfSDwu','C3rYAw5NAwz5','y29UDgv4Dej1zgDLDa','lIbmB2fKihnLBgvJDgvKihnRAwXSCYb3AxrOihnRAwXSx2XVywqUiezVCIbZB3vYy2uGy2HHBMDLCYWGC3rHCNqVyMLUzcb0AguGAw5KAwnHDgvKihbPCgvSAw5LigfUzcbYzxf1zxn0ihbPCgvSAw5Lx25LEhqGyMvMB3jLihDYAxrPBMCU','tKfusvzfx1jfu0vsvKfusu9ox1jfuvvjuKve','t1bfuKfusu9ox0fvveHpuKLuwv9srvfvsvjfra','ihrVigf1DgHVCIbPDhmGC3rYDwn0DxjLzcbYzxzPzxCGyw5KihjLCg9YDc4Gs2vLCcbPDhmGCMvZzxj2yxrPB247ignVB3jKAw5HDg9Yig11C3qGBM90ihn1yNn0Axr1DguGysb2zxjKAwn0lG','D29YA2vYswq','C3rVCa','yxb0','BgvUz3rO','DgvZDa','ywz0zxiTDg9VBa','BMf0AxzLu3vIywDLBNrZ','u2vYDMvYtMfTzq','qvbuigjVB3rZDhjHCcbPCYbYzxf1AxjLzcbIzwzVCMuGD29YA2vYigrPC3bHDgnOlG','D2fPDgLUzY1MB3iTD29YA2vY','CMvWB3j0','CMvJzwLWDevUDhj5','Ag9ZDhm','y29UzMLNugf0Aa','uMvZB2X2zsbHihbYB2PLy3qGChjVBxb0lw9UBhKGC2TPBgWGB3iGDxnLiefqvcbZA2LSBf9SB2fKlIbeEw5HBwLJihnOzwXSigfUzcbMB3jRigvMzMvJDhmGCMvXDwLYzsb0AgvPCIbVD24GDMvYAwzPzwqGBMf0AxzLig9WzxjHDgLVBNmU','vMvYAwzPzwqGBMf0AxzLihnLC3nPB24GCgXHBIbHCNrPzMfJDc4','AxntEw1IB2XPy0XPBMS','y29UDgv4DevWB2nO','u2TPBgW','vgfZAW'];_0x1e44=function(){return _0x2f1ef7;};return _0x1e44();}function codexDispatchStatus(_0x379423,_0x25c72c={}){const _0x427e50=_0x329ad5,_0x248be0=_0x379423[_0x427e50(0x10d)]?.['requestedModel']||null,_0x59005a=typeof _0x25c72c[_0x427e50(0xe6)]===_0x427e50(0xca)?_0x25c72c[_0x427e50(0xe6)]:null;if(_0x379423[_0x427e50(0x188)]&&_0x25c72c[_0x427e50(0x1a2)]!==_0x379423[_0x427e50(0x188)])return'task-name-mismatch';if(!_0x248be0)return _0x59005a?'unrequested-override':_0x427e50(0x1b9);if(!_0x59005a)return _0x427e50(0x174);if(_0x59005a!==_0x248be0)return _0x427e50(0xa2);if(_0x379423['nativeDispatch']?.[_0x427e50(0xaf)]&&_0x25c72c['fork_turns']!==_0x379423[_0x427e50(0x111)][_0x427e50(0xaf)])return _0x427e50(0x1fb);if(_0x379423[_0x427e50(0x10d)]?.['reasoningEffort']&&_0x25c72c[_0x427e50(0x1c1)]!==_0x379423[_0x427e50(0x10d)]['reasoningEffort'])return'effort-mismatch';return _0x427e50(0x1b0);}function isSignedInstalledDoctor(_0x39d0a3,_0x4f89a7){const _0x58f047=_0x329ad5;if(!_0x4f89a7)return![];const _0x4ac2e1=[];try{const _0x160cbe=JSON[_0x58f047(0x157)](fs[_0x58f047(0x12f)](path['join'](_0x4f89a7,_0x58f047(0x217)),_0x58f047(0x6c))),_0x40f7da=_0x160cbe[_0x58f047(0x156)]?.[workspaceServerAlias(_0x4f89a7)],_0xc46ce0=_0x40f7da?.[_0x58f047(0x85)];if(_0x40f7da?.[_0x58f047(0x1c3)]==='node'&&Array['isArray'](_0xc46ce0)&&_0xc46ce0[_0x58f047(0x145)]===0x3&&_0xc46ce0[0x1]===_0x58f047(0xbb)&&sameWorkspace(_0xc46ce0[0x2],_0x4f89a7)&&path[_0x58f047(0x161)](_0xc46ce0[0x0])===_0x58f047(0x176))_0x4ac2e1[_0x58f047(0x205)](path['dirname'](_0xc46ce0[0x0]));}catch{}try{const _0x3c3ac0=new(require(_0x58f047(0x100)))[(_0x58f047(0x117))]()['list'](),_0x186a16=_0x3c3ac0[_0x58f047(0x1a7)](_0x3268cb=>sameWorkspace(_0x3268cb[_0x58f047(0x159)],_0x4f89a7));for(const _0x4b6e82 of _0x186a16?.[_0x58f047(0x14e)]||[]){const _0x2d90ad=require('../installer/registrations')[_0x58f047(0x71)](_0x4b6e82,_0x58f047(0x91),_0x4f89a7),_0xb223b8=_0x2d90ad[_0x58f047(0x17c)][_0x58f047(0x1a7)](_0x350326=>_0x350326[_0x58f047(0xf0)]===_0x58f047(0x182)),_0x481927=_0xb223b8?.[_0x58f047(0x13b)]?.[_0x58f047(0x85)];if(_0xb223b8?.[_0x58f047(0x13b)]?.[_0x58f047(0x1c3)]!==_0x58f047(0x93)||!Array['isArray'](_0x481927)||_0x481927[_0x58f047(0x145)]!==0x4||_0x481927[0x1]!==_0x58f047(0x1ab)||_0x481927[0x2]!==_0x58f047(0x1e0)||_0x481927[0x3]!==_0x4b6e82||path[_0x58f047(0x161)](_0x481927[0x0])!==_0x58f047(0x176))continue;const _0x4062f0={};_0x4062f0['host']=_0x4b6e82,_0x4062f0[_0x58f047(0xec)]=_0x58f047(0x91),_0x4062f0[_0x58f047(0x14f)]=_0x2d90ad[_0x58f047(0x1a9)],_0x4062f0[_0x58f047(0x195)]='apt-mcp-agent',_0x4062f0[_0x58f047(0x1da)]=_0xb223b8[_0x58f047(0x14d)];if(require('../installer/registration-receipt')['matchingReceipt'](_0x4062f0))_0x4ac2e1['push'](path[_0x58f047(0x1ca)](_0x481927[0x0]));}}catch{}for(const _0x9867d6 of _0x4ac2e1)try{const _0x2b7ef0=[];for(const _0x52005f of[path['join'](_0x9867d6,_0x58f047(0x179)),path[_0x58f047(0x20a)](_0x9867d6,_0x58f047(0x11f)),path['join'](_0x4f89a7,'.agents/runtime/generation.json'),path['join'](_0x4f89a7,_0x58f047(0xc1))]){try{const _0x2e343a=JSON[_0x58f047(0x157)](fs['readFileSync'](_0x52005f,_0x58f047(0x6c)));_0x2b7ef0['push'](_0x2e343a['target']||_0x2e343a);}catch{}}for(const _0x555ca5 of _0x2b7ef0){if(!/^\d+\.\d+\.\d+$/[_0x58f047(0x146)](_0x555ca5[_0x58f047(0x1ec)])||!/^[a-f0-9]{64}$/[_0x58f047(0x146)](_0x555ca5[_0x58f047(0xc9)]))continue;const _0x58a21b=path[_0x58f047(0x20a)](_0x9867d6,_0x58f047(0x165),_0x555ca5[_0x58f047(0x1ec)]+'-'+_0x555ca5[_0x58f047(0xc9)]);if(fs[_0x58f047(0x126)](_0x58a21b)[_0x58f047(0x152)]()||!sameWorkspace(_0x39d0a3,path[_0x58f047(0x20a)](_0x58a21b,'bin/cli.js')))continue;const _0x21d46d=JSON[_0x58f047(0x157)](fs[_0x58f047(0x12f)](path[_0x58f047(0x20a)](_0x58a21b,'integrity-manifest.json'),'utf8')),_0x4900f3=require(_0x58f047(0x216))[_0x58f047(0x6e)];if(!_0x21d46d[_0x58f047(0x6f)]||!crypto['verify'](null,Buffer[_0x58f047(0x207)](JSON[_0x58f047(0x13c)](_0x21d46d[_0x58f047(0x6f)])),_0x4900f3,Buffer[_0x58f047(0x207)](_0x21d46d[_0x58f047(0x1b4)]||'',_0x58f047(0x21f))))continue;const _0x5a5f75=path[_0x58f047(0x20a)](_0x58a21b,_0x58f047(0xd1));if(fs[_0x58f047(0x126)](_0x5a5f75)['isSymbolicLink']()||crypto[_0x58f047(0x83)](_0x58f047(0x76))[_0x58f047(0xee)](fs['readFileSync'](_0x5a5f75))['digest'](_0x58f047(0xa0))!==_0x21d46d[_0x58f047(0x6f)][_0x58f047(0xd1)])continue;const _0x34869d=require(_0x5a5f75)[_0x58f047(0x1cf)](_0x58a21b,_0x4900f3);if(_0x34869d[_0x58f047(0x1ec)]===_0x555ca5['version']&&_0x34869d[_0x58f047(0xc9)]===_0x555ca5[_0x58f047(0xc9)])return!![];}}catch{}return![];}function isOwnDoctorCommand(_0x195e56,_0x115e3e){const _0x19e328=_0x329ad5,_0x226c91=/^node(?:\.exe)? (?:(?:"([^"\r\n;&|<>`$()%^!#]+)")|([^\s"';&|<>`$()%^!#]+)) doctor --project \.(?:[ \t]+2>&1)?$/i[_0x19e328(0x115)](_0x195e56);if(!_0x226c91)return![];const _0x286261=_0x226c91[0x1]||_0x226c91[0x2];if(!path[_0x19e328(0x10f)](_0x286261)||process['platform']!==_0x19e328(0x16f)&&['\x5c','*','?','[',']','{','}']['some'](_0x4bb524=>_0x286261[_0x19e328(0x1b3)](_0x4bb524)))return![];try{if(sameWorkspace(_0x286261,path[_0x19e328(0x133)](__dirname,_0x19e328(0x172))))return!![];}catch{}return isSignedInstalledDoctor(_0x286261,_0x115e3e);}const APT_WRAPPED_UNGUARDED_TOOLS=new Set(['session_bootstrap',_0x329ad5(0x87),'skill_load','model_list',_0x329ad5(0x1d7),_0x329ad5(0x171),_0x329ad5(0x118),'pipeline_use',_0x329ad5(0x104),'pipeline_next','pipeline_checkpoint',_0x329ad5(0xfa),_0x329ad5(0x1f7),_0x329ad5(0xd9),_0x329ad5(0x204),'set_project_path','code_search','explore_code','list_code_files',_0x329ad5(0x10b),_0x329ad5(0x7f),_0x329ad5(0xab),_0x329ad5(0xe1),_0x329ad5(0x193),_0x329ad5(0x132),'mcp_agent_health']),NATIVE_CODEX_SPAWN_NAMES=new Set(['spawn_agent',_0x329ad5(0x199),'functions.spawn_agent',_0x329ad5(0x10a)]),HOST_OWNED_EXTERNAL_PERMISSIONS=new Set([_0x329ad5(0xef),_0x329ad5(0x1b2),_0x329ad5(0x1dd)]);function hostOwnsExternalToolPermissions(_0x5f66a9){const _0xbfa9b8=_0x329ad5;return HOST_OWNED_EXTERNAL_PERMISSIONS[_0xbfa9b8(0x9b)](_0x5f66a9);}function aptNamespacedTool(_0x1a40ca,_0x2ad217){const _0x407a25=_0x329ad5,_0x1542b6=/^mcp__(.+)__([a-z][a-z0-9_-]*)$/i[_0x407a25(0x115)](_0x1a40ca);if(!_0x1542b6)return null;const _0x5852b7=_0x1542b6[0x1][_0x407a25(0x136)]();return[_0x407a25(0x144),_0x407a25(0x1c0),_0x407a25(0x182)]['includes'](_0x5852b7)||_0x2ad217&&_0x5852b7===workspaceServerAlias(_0x2ad217)['toLowerCase']()?_0x1542b6[0x2][_0x407a25(0x136)]():null;}function aptDirectTool(_0x2c3e70,_0x100ee8){const _0x9b8615=_0x329ad5;if(typeof _0x2c3e70!==_0x9b8615(0xca)||!_0x2c3e70[_0x9b8615(0x136)]()['startsWith'](_0x9b8615(0x120)))return null;const _0x53167f=_0x2c3e70[_0x9b8615(0x136)](),_0x3594a7=[_0x9b8615(0x182)];if(_0x100ee8)_0x3594a7[_0x9b8615(0x205)](workspaceServerAlias(_0x100ee8));for(const _0x34fe60 of _0x3594a7[_0x9b8615(0x19e)](_0x596bbb=>_0x596bbb[_0x9b8615(0x136)]())){const _0x1234c7='mcp_'+_0x34fe60+'_';if(_0x53167f['startsWith'](_0x1234c7)){const _0x23222c=_0x53167f[_0x9b8615(0xdc)](_0x1234c7[_0x9b8615(0x145)]);return/^[a-z][a-z0-9_-]*$/[_0x9b8615(0x146)](_0x23222c)?_0x23222c:null;}}return null;}function aptToolForHook(_0x46bee6,_0x3ee7f0){const _0x51387d=_0x329ad5,_0x508529=aptDirectTool(_0x46bee6[_0x51387d(0x84)],_0x3ee7f0)||aptNamespacedTool(_0x46bee6[_0x51387d(0x84)],_0x3ee7f0);if(_0x508529)return _0x508529;if(_0x46bee6[_0x51387d(0x125)]&&require(_0x51387d(0xe3))[_0x51387d(0x108)](_0x46bee6[_0x51387d(0x84)]))return _0x46bee6['toolName'];return APT_WRAPPED_UNGUARDED_TOOLS['has'](_0x46bee6['toolName'])?_0x46bee6[_0x51387d(0x84)]:null;}function externalHostTool(_0x7d87b9,_0x484a97={},_0x242d3c){const _0x4d67d5=_0x329ad5,_0x17cb6e=_0x242d3c?workspaceServerAlias(_0x242d3c):null;if(_0x7d87b9===_0x4d67d5(0x154))return!![];if(_0x7d87b9===_0x4d67d5(0xfb)){const _0x1b63b8=_0x484a97[_0x4d67d5(0x149)];if(typeof _0x1b63b8!==_0x4d67d5(0xca))return![];return![_0x4d67d5(0x182),_0x17cb6e][_0x4d67d5(0xb2)](Boolean)[_0x4d67d5(0x19e)](_0x59b37f=>_0x59b37f[_0x4d67d5(0x136)]())[_0x4d67d5(0x1b3)](_0x1b63b8[_0x4d67d5(0x136)]())&&!/^apt-mcp-agent-w[a-f0-9]{12}$/i[_0x4d67d5(0x146)](_0x1b63b8);}if(_0x7d87b9['startsWith'](_0x4d67d5(0x1e4))){const _0xcce3e2=/^mcp__(.+)__[a-z][a-z0-9_-]*$/i[_0x4d67d5(0x115)](_0x7d87b9);if(!_0xcce3e2)return![];const _0x155b37=_0xcce3e2[0x1];return![_0x4d67d5(0x144),_0x4d67d5(0x1c0),'apt-mcp-agent',_0x17cb6e]['filter'](Boolean)['map'](_0x4c5358=>_0x4c5358[_0x4d67d5(0x136)]())[_0x4d67d5(0x1b3)](_0x155b37[_0x4d67d5(0x136)]())&&!/^apt-mcp-agent-w[a-f0-9]{12}$/i[_0x4d67d5(0x146)](_0x155b37);}if(_0x7d87b9[_0x4d67d5(0x1bd)](_0x4d67d5(0x120))){if(typeof _0x7d87b9===_0x4d67d5(0xca)&&_0x7d87b9[_0x4d67d5(0x136)]()['startsWith'](_0x4d67d5(0x183)))return![];if(aptDirectTool(_0x7d87b9,_0x242d3c))return![];return!/^mcp_apt-mcp-agent-w[a-f0-9]{12}_/i[_0x4d67d5(0x146)](_0x7d87b9);}return![];}function isWriteTool(_0x531b7f,_0xafc6cb={},_0x35bbc4,_0x4ea971=null){const _0x51aed9=_0x329ad5;if(hostOwnsExternalToolPermissions(_0x4ea971)&&externalHostTool(_0x531b7f,_0xafc6cb,_0x35bbc4))return![];if([_0x51aed9(0x122),_0x51aed9(0x70),_0x51aed9(0x131),_0x51aed9(0x97),_0x51aed9(0x18e),'getDiagnostics'][_0x51aed9(0x1b3)](_0x531b7f))return![];const _0x24fcd3=_0x1d9795=>_0x1d9795&&require(_0x51aed9(0xe3))['auditedBackendRead'](_0x1d9795);if(_0x531b7f[_0x51aed9(0x1b3)]('__')){const _0x3f2f2d=aptNamespacedTool(_0x531b7f,_0x35bbc4);return!APT_WRAPPED_UNGUARDED_TOOLS['has'](_0x3f2f2d)&&!_0x24fcd3(_0x3f2f2d);}if(_0x531b7f[_0x51aed9(0x1bd)](_0x51aed9(0x120))){const _0x5ba2bf=aptDirectTool(_0x531b7f,_0x35bbc4);return!APT_WRAPPED_UNGUARDED_TOOLS['has'](_0x5ba2bf)&&!_0x24fcd3(_0x5ba2bf);}if(APT_WRAPPED_UNGUARDED_TOOLS['has'](_0x531b7f))return![];if(/^(read|read_file|view_file|view_file_outline|read_many_files|read_resource|list_resources|list_resource_templates|grep|glob|list_files|list_dir|view_image|search_web|read_url_content|find_by_name|list_permissions|request_user_input)$/i['test'](_0x531b7f))return![];if(/bash|shell|terminal|exec|run_command/i[_0x51aed9(0x146)](_0x531b7f)){const _0x16f8dc=[_0x51aed9(0x1c3),'cmd',_0x51aed9(0x200),_0x51aed9(0x103)][_0x51aed9(0x19e)](_0x1d7145=>_0xafc6cb[_0x1d7145])[_0x51aed9(0xb2)](_0x2e7535=>typeof _0x2e7535==='string'&&_0x2e7535['trim']());if(new Set(_0x16f8dc)[_0x51aed9(0x19c)]>0x1||Object['entries'](_0xafc6cb)[_0x51aed9(0x184)](([_0x170d18,_0x1ca58d])=>/^(env|environment)$/i[_0x51aed9(0x146)](_0x170d18)&&_0x1ca58d&&(typeof _0x1ca58d!=='object'||Object['keys'](_0x1ca58d)[_0x51aed9(0x145)])))return!![];const _0x47492e=_0x16f8dc[0x0]||'';if(isOwnDoctorCommand(_0x47492e['trim'](),_0x35bbc4))return![];if(require(_0x51aed9(0x21b))[_0x51aed9(0xad)](_0x47492e))return![];if(/--(?:output|ext-diff|textconv|pre)(?:=|\s|$)/i[_0x51aed9(0x146)](_0x47492e))return!![];return!/^(git (status|diff|show|log|rev-parse)( [\w./ :@=,-]+)?|pwd|Get-Location|rg( --files)?( [\w./ :@=,-]+)?|(?:npm|pnpm|yarn) (?:test|run test)(?: [\w./ :=,-]+)?|node --test(?: [\w./ :=,-]+)?|flutter test(?: [\w./ :=,-]+)?)(?:[ \t]+2>&1)?$/i['test'](_0x47492e[_0x51aed9(0x158)]());}return!![];}function unwrapAptMcpCall(_0x6d49b2,_0x27e0b8){const _0x263c91=_0x329ad5;if(_0x6d49b2['toolName']!==_0x263c91(0xfb))return;const _0x4cfd98=_0x6d49b2[_0x263c91(0x220)];if(!_0x4cfd98||typeof _0x4cfd98!==_0x263c91(0x15b)||Array[_0x263c91(0x168)](_0x4cfd98)||![_0x263c91(0x182),workspaceServerAlias(_0x27e0b8)]['some'](_0x343bc6=>_0x343bc6['toLowerCase']()===String(_0x4cfd98[_0x263c91(0x149)])[_0x263c91(0x136)]())||!APT_WRAPPED_UNGUARDED_TOOLS['has'](_0x4cfd98[_0x263c91(0xb6)])&&!require(_0x263c91(0xe3))[_0x263c91(0x108)](_0x4cfd98[_0x263c91(0xb6)]))return;if(Object[_0x263c91(0x1ba)](_0x4cfd98)[_0x263c91(0x184)](_0x4e5e59=>/^(servername|server_name|toolname|tool_name|arguments?|arguments_json|args)$/i[_0x263c91(0x146)](_0x4e5e59)&&![_0x263c91(0x149),_0x263c91(0xb6),_0x263c91(0x90)][_0x263c91(0x1b3)](_0x4e5e59)))return;let _0x1b7e72=_0x4cfd98[_0x263c91(0x90)];if(typeof _0x1b7e72===_0x263c91(0xca)){if(_0x1b7e72[_0x263c91(0x145)]>0x10000)return;try{_0x1b7e72=JSON['parse'](_0x1b7e72);}catch{return;}}if(!_0x1b7e72||typeof _0x1b7e72!==_0x263c91(0x15b)||Array['isArray'](_0x1b7e72))return;_0x6d49b2[_0x263c91(0x125)]=_0x4cfd98[_0x263c91(0x149)],_0x6d49b2[_0x263c91(0x84)]=_0x4cfd98[_0x263c91(0xb6)],_0x6d49b2['toolInput']=_0x1b7e72;}async function processHook(_0x32ee5f,_0x121714,_0x143a33,_0x347be6,_0x45a259={}){const _0x1111eb=_0x329ad5;_0x45a259[_0x1111eb(0x1b1)]?.(),require('./host-adapters')[_0x1111eb(0x102)](_0x143a33[_0x1111eb(0x139)]);const _0x1c60a0=normalizeHook(_0x32ee5f,_0x121714,_0x143a33),_0x3a4b98=!!_0x143a33['toolCall']&&(Object[_0x1111eb(0x1f8)][_0x1111eb(0x1e1)]['call'](_0x143a33,_0x1111eb(0x1c5))&&_0x143a33['tool_name']!==_0x143a33[_0x1111eb(0x9f)][_0x1111eb(0xf0)]||Object[_0x1111eb(0x1f8)][_0x1111eb(0x1e1)][_0x1111eb(0x11c)](_0x143a33,'tool_input')&&!isDeepStrictEqual(_0x143a33[_0x1111eb(0x1c9)],_0x143a33[_0x1111eb(0x9f)][_0x1111eb(0x85)]));if(!_0x1c60a0[_0x1111eb(0x15a)])throw new Error(_0x1111eb(0x196));const _0x1ed12a=_0x1c60a0[_0x1111eb(0x15a)],_0x11835d=_0x45a259[_0x1111eb(0xfd)]||new SessionRuntime(_0x347be6),_0x330bda=_0x11835d[_0x1111eb(0xcd)],_0x499511={};_0x499511[_0x1111eb(0xe9)]=![],_0x499511['reason']=_0x1111eb(0x9d);if(_0x1c60a0['workspace']&&!sameWorkspace(_0x1c60a0['workspace'],_0x11835d['projectPath']))return _0x499511;if(_0x32ee5f===_0x1111eb(0x1dd)&&_0x1c60a0[_0x1111eb(0xa6)]===_0x1111eb(0x1d8)&&_0x1c60a0[_0x1111eb(0x84)]===_0x1111eb(0xfb)&&/^apt-mcp-agent-w[a-f0-9]{12}$/i['test'](_0x1c60a0[_0x1111eb(0x220)]?.[_0x1111eb(0x149)])&&_0x1c60a0[_0x1111eb(0x220)][_0x1111eb(0x149)]['toLowerCase']()!==require(_0x1111eb(0x124))['workspaceServerAlias'](_0x11835d[_0x1111eb(0xcd)])[_0x1111eb(0x136)]())return{'allow':![],'reason':_0x1111eb(0x206)+require(_0x1111eb(0x124))['workspaceServerAlias'](_0x11835d['projectPath'])+_0x1111eb(0x110)+_0x11835d['projectPath']+'.'};if(_0x32ee5f===_0x1111eb(0x1dd))unwrapAptMcpCall(_0x1c60a0,_0x11835d[_0x1111eb(0xcd)]);if([_0x1111eb(0x1b2),_0x1111eb(0xef)]['includes'](_0x32ee5f)&&!_0x143a33['agent_id']&&!_0x3a4b98&&(aptNamespacedTool(_0x1c60a0['toolName'],_0x11835d[_0x1111eb(0xcd)])||aptDirectTool(_0x1c60a0[_0x1111eb(0x84)],_0x11835d['projectPath']))==='session_bootstrap'){if(_0x1c60a0[_0x1111eb(0xa6)]===_0x1111eb(0x147)&&typeof _0x1c60a0[_0x1111eb(0x220)][_0x1111eb(0x15a)]===_0x1111eb(0xca)){const _0xb18f3d=responseObjects(_0x143a33[_0x1111eb(0x7a)])[_0x1111eb(0x1a7)](_0xbda797=>_0xbda797[_0x1111eb(0x15a)]===_0x1c60a0[_0x1111eb(0x220)]['sessionId']&&typeof _0xbda797['workspace']==='string'&&sameWorkspace(_0xbda797['workspace'],_0x11835d['projectPath']));if(_0xb18f3d){if(_0x32ee5f==='claude-code'&&/^[0-9a-f-]{36}$/i[_0x1111eb(0x146)](_0x1ed12a)&&_0x143a33[_0x1111eb(0x1ae)])_0x11835d[_0x1111eb(0x198)]({'aptSessionId':_0xb18f3d['sessionId'],'nativeSessionId':_0x1ed12a,'host':_0x32ee5f,'provenance':{'source':_0x1111eb(0x1fa),'toolCallId':_0x143a33[_0x1111eb(0x1ae)]}});else _0x11835d[_0x1111eb(0xd6)]({'sessionId':_0x1c60a0[_0x1111eb(0x15a)],'aptSessionId':_0xb18f3d[_0x1111eb(0x15a)]});}}}const _0x4ac034={};_0x4ac034[_0x1111eb(0x15a)]=_0x1ed12a;const _0x5e63c4=['codex','claude-code'][_0x1111eb(0x1b3)](_0x32ee5f)?_0x11835d[_0x1111eb(0xa7)](_0x4ac034):null;if(_0x5e63c4)_0x1c60a0[_0x1111eb(0x15a)]=_0x5e63c4;const _0x524a34={};_0x524a34['sessionId']=_0x1c60a0[_0x1111eb(0x15a)],_0x524a34['host']=_0x32ee5f,_0x524a34['event']=_0x121714,_0x524a34[_0x1111eb(0x19b)]=_0x143a33[_0x1111eb(0x19b)]||_0x143a33['cursor_version']||_0x143a33[_0x1111eb(0x1ec)],_0x11835d[_0x1111eb(0x17e)](_0x524a34);const _0x29d215={};_0x29d215[_0x1111eb(0x15a)]=_0x1ed12a;if([_0x1111eb(0x1b2),_0x1111eb(0xef)][_0x1111eb(0x1b3)](_0x32ee5f)&&!_0x5e63c4)_0x1c60a0[_0x1111eb(0x15a)]=_0x11835d['aptSessionFor'](_0x29d215)||_0x1ed12a;const _0xa7fab9={};_0xa7fab9[_0x1111eb(0x15a)]=_0x1c60a0[_0x1111eb(0x15a)];const _0x2376ca=_0x11835d[_0x1111eb(0xb8)](_0xa7fab9),_0xcdb891=_0x32ee5f===_0x1111eb(0xef)?new ClaudeNative(_0x11835d[_0x1111eb(0xcd)],_0x1ed12a,_0x45a259):null,_0x42fc58=_0xcdb891&&typeof _0x143a33[_0x1111eb(0xda)]===_0x1111eb(0xca)?_0x143a33[_0x1111eb(0xda)]:null,_0x11f9ca=_0x42fc58?_0xcdb891['worker'](_0x42fc58):null,_0x52602a=_0x143a33[_0x1111eb(0x1ae)]&&_0x1111eb(0xe2)+_0x1ed12a+':'+(_0x42fc58||_0x1111eb(0xbd))+':'+_0x143a33[_0x1111eb(0x1ae)],_0x186ffe=(_0x37ed5e,_0x58051b,_0x3a5b78)=>{const _0x115359=_0x1111eb;if(_0x37ed5e[_0x115359(0xe9)]!==!![])return _0x37ed5e;if(!_0x52602a)return nativeFailure(_0x115359(0x17d),_0x115359(0x1ac));try{return require(_0x115359(0x72))[_0x115359(0x166)](_0x11835d[_0x115359(0xcd)],{'invocationId':_0x52602a,'actorId':_0x58051b[_0x115359(0x7e)],'attemptId':_0x58051b[_0x115359(0x1e3)],'inputHash':fingerprint(_0x1c60a0['toolInput']),'admittedEpoch':_0x3a5b78[_0x115359(0x226)]===_0x115359(0x1b7)?_0x3a5b78[_0x115359(0x194)]:Date[_0x115359(0x157)](_0x58051b[_0x115359(0xa3)])<Date['parse'](_0x3a5b78[_0x115359(0x20c)])?_0x3a5b78['epoch']-0x1:null},()=>{const _0x3631c4=_0x115359,_0x3473a3=_0x11835d['peek'](_0x1c60a0[_0x3631c4(0x15a)]),_0x880e50=_0x42fc58?_0xcdb891[_0x3631c4(0xf8)](_0x42fc58):null;if(!_0x3473a3?.[_0x3631c4(0x92)]||_0x3473a3[_0x3631c4(0x1cc)]||_0x3473a3[_0x3631c4(0x1c4)]===_0x3631c4(0x160)||_0x1c60a0['mode']==='plan'||_0x42fc58&&(!_0x880e50||_0x880e50[_0x3631c4(0x99)]!==_0x11f9ca[_0x3631c4(0x99)]||_0x880e50['mode']===_0x3631c4(0x160)||_0x880e50['userStopped']||_0x880e50[_0x3631c4(0xb8)]===_0x3631c4(0x1cc)))return![];const _0x431724=_0x45a259[_0x3631c4(0x1cd)]||new(require(_0x3631c4(0x113)))[(_0x3631c4(0x18a))](_0x11835d['projectPath']),_0x66ade5=typeof _0x431724[_0x3631c4(0x8c)]===_0x3631c4(0x21d)?_0x431724[_0x3631c4(0x8c)](_0x58051b[_0x3631c4(0x1d5)]||_0x3473a3['task'],_0x58051b['runId']||_0x3473a3['runId']):null;return _0x66ade5?.['status']==='active'&&!_0x66ade5['execution']?.[_0x3631c4(0x101)]&&_0x66ade5[_0x3631c4(0x1d5)]===_0x3473a3['task']&&_0x66ade5[_0x3631c4(0xd5)]===_0x3473a3[_0x3631c4(0xd5)]&&sameWorkspace(_0x66ade5[_0x3631c4(0x159)]?.[_0x3631c4(0x1a9)]||'',_0x11835d[_0x3631c4(0xcd)])&&_0x66ade5[_0x3631c4(0x6b)]?.[_0x3631c4(0x1d0)]?.['some'](_0x352bc3=>_0x352bc3[_0x3631c4(0x1e3)]===_0x58051b[_0x3631c4(0x1e3)]&&_0x352bc3[_0x3631c4(0x7e)]===_0x58051b[_0x3631c4(0x7e)]&&_0x352bc3[_0x3631c4(0x20e)]===_0x58051b[_0x3631c4(0x20e)])===!![];},{'assertCurrent':_0x45a259['assertCurrent']}),_0x37ed5e;}catch(_0x4da9c7){return nativeFailure(_0x4da9c7[_0x115359(0x16c)]||_0x115359(0x140),'Native\x20operation\x20was\x20not\x20admitted.');}};if(_0x11f9ca&&_0x1c60a0[_0x1111eb(0xa6)]===_0x1111eb(0x1d8))_0xcdb891[_0x1111eb(0x18d)](_0x42fc58,_0x1c60a0[_0x1111eb(0x1c4)],_0x1c60a0['userStopped']);const _0xbfd07f=_0x2376ca[_0x1111eb(0x1e7)]?.[_0x32ee5f]?.[_0x1111eb(0x134)]||[_0x121714],_0x4ce01e=!_0x2376ca[_0x1111eb(0x214)]||_0x2376ca[_0x1111eb(0x214)]===_0x32ee5f,_0x1c1d2b={..._0x4ce01e?_0x2376ca[_0x1111eb(0x139)]:{},..._0x143a33['capabilities']},_0x3a9403=_0x1c1d2b;_0x3a9403[_0x1111eb(0x18f)]=Object[_0x1111eb(0x1f8)][_0x1111eb(0x1e1)][_0x1111eb(0x11c)](_0x143a33[_0x1111eb(0x139)]||{},_0x1111eb(0x175))||Object[_0x1111eb(0x1f8)]['hasOwnProperty'][_0x1111eb(0x11c)](_0x143a33[_0x1111eb(0x139)]||{},_0x1111eb(0x148));if(Object[_0x1111eb(0x1f8)][_0x1111eb(0x1e1)][_0x1111eb(0x11c)](_0x143a33[_0x1111eb(0x139)]||{},_0x1111eb(0x148))&&!Object['prototype'][_0x1111eb(0x1e1)][_0x1111eb(0x11c)](_0x143a33[_0x1111eb(0x139)]||{},_0x1111eb(0x175))){if((!_0x4ce01e||_0x2376ca[_0x1111eb(0x139)]['subagents']!==!![])&&!Object[_0x1111eb(0x1f8)][_0x1111eb(0x1e1)]['call'](_0x143a33['capabilities'],_0x1111eb(0x162)))delete _0x3a9403[_0x1111eb(0x162)];delete _0x3a9403[_0x1111eb(0x175)];}if(Object[_0x1111eb(0x1f8)][_0x1111eb(0x1e1)][_0x1111eb(0x11c)](_0x143a33[_0x1111eb(0x139)]||{},'continuation'))_0x3a9403[_0x1111eb(0x225)]=_0x143a33[_0x1111eb(0x139)][_0x1111eb(0xbe)]===![];if(!Object['prototype']['hasOwnProperty'][_0x1111eb(0x11c)](_0x143a33['capabilities']||{},'continuation'))delete _0x3a9403[_0x1111eb(0xbe)];const _0x3fa755={..._0x143a33};_0x3fa755[_0x1111eb(0x139)]=_0x3a9403;const _0x4e984a=detectCapabilities(_0x32ee5f,_0x3fa755,_0xbfd07f);if(_0x3a9403['contextBudget'])_0x4e984a[_0x1111eb(0x13d)]=_0x3a9403[_0x1111eb(0x13d)];const _0x5017f4={};_0x5017f4['sessionId']=_0x1c60a0[_0x1111eb(0x15a)],_0x5017f4[_0x1111eb(0x214)]=_0x32ee5f,_0x5017f4[_0x1111eb(0x139)]=_0x4e984a,_0x5017f4[_0x1111eb(0x1c4)]=_0x1c60a0['mode'],_0x5017f4[_0x1111eb(0x153)]=_0x1c60a0[_0x1111eb(0x153)];const _0x5420b5=_0x5017f4;if(_0x1c60a0[_0x1111eb(0x1ef)]){const _0x16a1e2={};_0x16a1e2[_0x1111eb(0x15a)]=_0x1c60a0[_0x1111eb(0x15a)];if(!_0x42fc58)_0x11835d[_0x1111eb(0x143)](_0x16a1e2);const _0x3ba523={};return _0x3ba523[_0x1111eb(0xe9)]=_0x1c60a0[_0x1111eb(0xa6)]!==_0x1111eb(0x1d8),_0x3ba523[_0x1111eb(0xbc)]=![],_0x3ba523['reason']=_0x1111eb(0x1b6),_0x3ba523;}const _0x3030d7={};_0x3030d7[_0x1111eb(0xe9)]=!![],_0x3030d7[_0x1111eb(0x11d)]=_0x1111eb(0x170);if(_0x1c60a0[_0x1111eb(0xa6)]===_0x1111eb(0x147)&&_0x3a4b98)return _0x3030d7;if(_0x1c60a0['kind']===_0x1111eb(0x1d8)){const _0x1957d5={};_0x1957d5[_0x1111eb(0xe9)]=![],_0x1957d5['reason']=_0x1111eb(0xc6);if(_0x3a4b98)return _0x1957d5;const _0x30c23b={};_0x30c23b[_0x1111eb(0x9a)]=!![];if(!_0x42fc58&&_0x1c60a0[_0x1111eb(0x1c4)]&&_0x1c60a0['mode']!==_0x2376ca[_0x1111eb(0x1c4)]&&_0x2376ca[_0x1111eb(0x92)])_0x11835d[_0x1111eb(0x8e)]({'sessionId':_0x1c60a0[_0x1111eb(0x15a)],'host':_0x32ee5f,'mode':_0x1c60a0[_0x1111eb(0x1c4)]},_0x30c23b);const _0x29f2fd={};_0x29f2fd[_0x1111eb(0xe9)]=!![],_0x29f2fd[_0x1111eb(0xcb)]=!![];if(hostOwnsExternalToolPermissions(_0x32ee5f)&&externalHostTool(_0x1c60a0[_0x1111eb(0x84)],_0x1c60a0['toolInput'],_0x11835d[_0x1111eb(0xcd)]))return _0x29f2fd;if(!hostOwnsExternalToolPermissions(_0x32ee5f)&&_0x1c60a0[_0x1111eb(0x84)]===_0x1111eb(0x154)&&!require(_0x1111eb(0x119))[_0x1111eb(0x1d3)](_0x1c60a0[_0x1111eb(0x220)],_0x11835d[_0x1111eb(0xcd)]))return nativeFailure(_0x1111eb(0x1f5),_0x1111eb(0x150));const _0x4a1838=aptToolForHook(_0x1c60a0,_0x11835d[_0x1111eb(0xcd)]);if(_0x42fc58){const _0x494d14=_0x4a1838&&!require(_0x1111eb(0xe3))['sensitiveTool'](_0x4a1838);if(_0x11f9ca?.['readonlyResearch']&&(_0x4a1838?!_0x494d14:/bash|shell|terminal|exec|run_command/i['test'](_0x1c60a0[_0x1111eb(0x84)])||isWriteTool(_0x1c60a0[_0x1111eb(0x84)],_0x1c60a0[_0x1111eb(0x220)],_0x330bda,_0x32ee5f)))return nativeFailure(_0x1111eb(0x8f),'Research\x20workers\x20cannot\x20mutate\x20source,\x20backend\x20state,\x20or\x20pipeline\x20lifecycle.');if(_0x494d14){if(!_0x11f9ca)return nativeFailure(_0x1111eb(0x211),_0x1111eb(0x116));if(!_0x45a259[_0x1111eb(0x13a)])return nativeFailure(_0x1111eb(0x1df),_0x1111eb(0x68));const _0x32d5f9={};_0x32d5f9[_0x1111eb(0xc3)]=_0x1ed12a,_0x32d5f9[_0x1111eb(0xac)]=_0x11f9ca,_0x32d5f9[_0x1111eb(0xc4)]=_0x4a1838,_0x32d5f9[_0x1111eb(0x17a)]=_0x143a33[_0x1111eb(0x1ae)],_0x32d5f9[_0x1111eb(0xe8)]=_0x1c60a0[_0x1111eb(0x220)];const _0x1e1d26=await _0x45a259[_0x1111eb(0x13a)][_0x1111eb(0xfe)](_0x32d5f9),_0x433582={..._0x1c60a0[_0x1111eb(0x220)]};_0x433582[_0x1111eb(0x12c)]=_0x1e1d26;const _0x3754a9={};return _0x3754a9[_0x1111eb(0xe9)]=!![],_0x3754a9['updatedInput']=_0x433582,_0x3754a9;}if(!_0x11f9ca&&(_0x4a1838?!_0x494d14:isWriteTool(_0x1c60a0[_0x1111eb(0x84)],_0x1c60a0[_0x1111eb(0x220)],_0x330bda,_0x32ee5f)))return nativeFailure(_0x1111eb(0x211),_0x1111eb(0xed));if(_0x4a1838&&!_0x494d14){if(!_0x11f9ca)return nativeFailure(_0x1111eb(0x211),_0x1111eb(0x17b));if(_0x2376ca[_0x1111eb(0x1c4)]===_0x1111eb(0x160)||_0x1c60a0[_0x1111eb(0x1c4)]===_0x1111eb(0x160)||_0x2376ca[_0x1111eb(0x1cc)])return nativeFailure(_0x1111eb(0x123),_0x1111eb(0xb3));const _0x5a2c64=require('./admission-fence')['readFence'](_0x11835d[_0x1111eb(0xcd)]);if(_0x5a2c64['state']==='draining'&&_0x5a2c64[_0x1111eb(0x177)]&&!(_0x4a1838===_0x1111eb(0x15c)&&[_0x1111eb(0x14c),_0x1111eb(0x82),'resource-wait'][_0x1111eb(0x1b3)](_0x1c60a0['toolInput'][_0x1111eb(0xb5)])))return nativeFailure('RUNTIME_UPGRADE_STOP_REQUESTED',_0x1111eb(0x210));if(['closed',_0x1111eb(0x163)][_0x1111eb(0x1b3)](_0x5a2c64[_0x1111eb(0x226)]))return nativeFailure('APT_UPDATE_PENDING',_0x1111eb(0x201));const _0x3dc049=_0x4a1838===_0x1111eb(0x15c)&&['report',_0x1111eb(0xb4),_0x1111eb(0x82),'resource-wait']['includes'](_0x1c60a0[_0x1111eb(0x220)][_0x1111eb(0xb5)])||_0x4a1838===_0x1111eb(0xfa)&&_0x11f9ca[_0x1111eb(0x20e)]===_0x1111eb(0x221);if(!_0x3dc049)return nativeFailure(_0x1111eb(0x1ad),'Only\x20the\x20coordinator\x20may\x20change\x20parent\x20lifecycle\x20or\x20reserve\x20other\x20actors.');if(!_0x45a259[_0x1111eb(0x13a)])return nativeFailure(_0x1111eb(0x1df),_0x1111eb(0xfc));const _0x592d6e={};_0x592d6e['nativeParent']=_0x1ed12a,_0x592d6e[_0x1111eb(0xac)]=_0x11f9ca,_0x592d6e[_0x1111eb(0xc4)]=_0x4a1838,_0x592d6e[_0x1111eb(0x17a)]=_0x143a33['tool_use_id'],_0x592d6e[_0x1111eb(0xe8)]=_0x1c60a0['toolInput'];const _0x5a73c4=await _0x45a259[_0x1111eb(0x13a)][_0x1111eb(0xfe)](_0x592d6e),_0x19d9fd=_0xcdb891[_0x1111eb(0xdf)](_0x42fc58,_0x143a33[_0x1111eb(0x1ae)],_0x4a1838,_0x1c60a0['toolInput']);if(_0x19d9fd['allow']!==!![])return _0x19d9fd;const _0x1f719b={..._0x1c60a0[_0x1111eb(0x220)]};_0x1f719b[_0x1111eb(0x12c)]=_0x5a73c4;const _0x2cbcd8={};return _0x2cbcd8['allow']=!![],_0x2cbcd8['updatedInput']=_0x1f719b,_0x2cbcd8;}}const _0x17ee21=require(_0x1111eb(0x72))[_0x1111eb(0x1d1)](_0x11835d[_0x1111eb(0xcd)]);if(_0x17ee21[_0x1111eb(0x226)]===_0x1111eb(0x1c6)&&_0x17ee21['stopRequested']){const _0x15775e=_0x4a1838===_0x1111eb(0x15c)&&[_0x1111eb(0x14c),'release',_0x1111eb(0x21c),'reconcile-verification','refresh-receipts']['includes'](_0x1c60a0[_0x1111eb(0x220)][_0x1111eb(0xb5)]);if(!_0x15775e&&([_0x1111eb(0x1e2),_0x1111eb(0x155),'SendMessage']['includes'](_0x1c60a0[_0x1111eb(0x84)])||NATIVE_CODEX_SPAWN_NAMES[_0x1111eb(0x9b)](_0x1c60a0['toolName'])||isWriteTool(_0x1c60a0[_0x1111eb(0x84)],_0x1c60a0[_0x1111eb(0x220)],_0x330bda,_0x32ee5f)))return nativeFailure(_0x1111eb(0x106),_0x1111eb(0x112));}if(_0x17ee21['state']===_0x1111eb(0x163)){if(_0x4a1838||['Agent',_0x1111eb(0x155),_0x1111eb(0x7b)][_0x1111eb(0x1b3)](_0x1c60a0[_0x1111eb(0x84)])||NATIVE_CODEX_SPAWN_NAMES[_0x1111eb(0x9b)](_0x1c60a0[_0x1111eb(0x84)])||isWriteTool(_0x1c60a0[_0x1111eb(0x84)],_0x1c60a0[_0x1111eb(0x220)],_0x330bda,_0x32ee5f))return nativeFailure('APT_UPDATE_PENDING',_0x1111eb(0x208));}if(_0x17ee21[_0x1111eb(0x226)]===_0x1111eb(0x1c6)&&([_0x1111eb(0x118),_0x1111eb(0x86),_0x1111eb(0x1f7),_0x1111eb(0xd9)][_0x1111eb(0x1b3)](_0x4a1838)||['Agent','Task'][_0x1111eb(0x1b3)](_0x1c60a0[_0x1111eb(0x84)])&&!_0x1c60a0[_0x1111eb(0x220)][_0x1111eb(0x10e)]||NATIVE_CODEX_SPAWN_NAMES[_0x1111eb(0x9b)](_0x1c60a0['toolName'])))return nativeFailure(_0x1111eb(0x89),'Workspace\x20is\x20draining;\x20new\x20work\x20is\x20not\x20admitted.');if(_0xcdb891&&!_0x42fc58&&_0x17ee21[_0x1111eb(0x226)]===_0x1111eb(0x1b7)&&_0x2376ca[_0x1111eb(0x92)]&&!_0x2376ca[_0x1111eb(0x1cc)]&&(_0x1c60a0[_0x1111eb(0x1c4)]||_0x2376ca[_0x1111eb(0x1c4)])===_0x1111eb(0x160)&&await require(_0x1111eb(0xce))[_0x1111eb(0x7c)](_0x143a33,_0x11835d[_0x1111eb(0xcd)],_0x45a259))try{require('./admission-fence')['admitOperation'](_0x11835d[_0x1111eb(0xcd)],{'invocationId':_0x52602a,'actorId':_0x1111eb(0x1f2),'attemptId':null,'inputHash':fingerprint(_0x1c60a0[_0x1111eb(0x220)])},()=>{const _0x52d3a5=_0x1111eb,_0xbd04a7=_0x11835d[_0x52d3a5(0xf7)](_0x1c60a0[_0x52d3a5(0x15a)]);return _0xbd04a7?.[_0x52d3a5(0x92)]&&!_0xbd04a7[_0x52d3a5(0x1cc)]&&_0xbd04a7['mode']===_0x52d3a5(0x160)&&require(_0x52d3a5(0xce))['safePlanTarget'](_0x1c60a0[_0x52d3a5(0x220)][_0x52d3a5(0x223)],_0x45a259[_0x52d3a5(0x9e)]||path[_0x52d3a5(0x20a)](require('os')['homedir'](),_0x52d3a5(0x128)));},{'assertCurrent':_0x45a259[_0x1111eb(0x1b1)]});const _0x258209={};return _0x258209['allow']=!![],_0x258209['reason']=_0x1111eb(0x151),_0x258209;}catch(_0x323307){return nativeFailure(_0x323307[_0x1111eb(0x16c)]||_0x1111eb(0x140),_0x1111eb(0x107));}if(_0x17ee21[_0x1111eb(0x226)]==='closed'){const _0x3d933d=_0x4a1838==='pipeline_checkpoint'&&_0x1c60a0[_0x1111eb(0x220)]?.[_0x1111eb(0x1e3)]&&[_0x1111eb(0x14c),_0x1111eb(0x1cb),_0x1111eb(0x82),_0x1111eb(0x21c),_0x1111eb(0xc7),_0x1111eb(0xb4),_0x1111eb(0xcc)][_0x1111eb(0x1b3)](_0x1c60a0[_0x1111eb(0x220)][_0x1111eb(0xb5)]),_0x3a7cb9=_0x4a1838?.[_0x1111eb(0x1bd)](_0x1111eb(0x105))&&!['pipeline_status',_0x1111eb(0xbf),_0x1111eb(0x204)][_0x1111eb(0x1b3)](_0x4a1838),_0x476834={};_0x476834[_0x1111eb(0xe9)]=![],_0x476834[_0x1111eb(0x11d)]=_0x1111eb(0x16b)+_0x17ee21['transactionId']+'.';if(!_0x3d933d&&(_0x3a7cb9||NATIVE_CODEX_SPAWN_NAMES[_0x1111eb(0x9b)](_0x1c60a0[_0x1111eb(0x84)])||isWriteTool(_0x1c60a0[_0x1111eb(0x84)],_0x1c60a0['toolInput'],_0x330bda,_0x32ee5f)))return _0x476834;}const _0x3b9458=require(_0x1111eb(0x124))['workspaceServerAlias'](_0x11835d[_0x1111eb(0xcd)]),_0x5a68e6=String(_0x1c60a0[_0x1111eb(0x84)]||'')[_0x1111eb(0x136)]();if(_0x32ee5f==='antigravity'&&/^mcp_apt-mcp-agent-w[a-f0-9]{12}_/i['test'](_0x1c60a0['toolName'])&&!_0x5a68e6[_0x1111eb(0x1bd)]('mcp_'+_0x3b9458['toLowerCase']()+'_'))return{'allow':![],'reason':'APT\x20tool\x20belongs\x20to\x20another\x20workspace.\x20Use\x20'+_0x3b9458+_0x1111eb(0x110)+_0x11835d['projectPath']+'.'};if(_0x32ee5f===_0x1111eb(0x1dd)&&/^mcp__apt-mcp-agent-w[a-f0-9]{12}__/i[_0x1111eb(0x146)](_0x1c60a0[_0x1111eb(0x84)])&&!_0x5a68e6[_0x1111eb(0x1bd)]('mcp__'+_0x3b9458[_0x1111eb(0x136)]()+'__'))return{'allow':![],'reason':_0x1111eb(0x206)+_0x3b9458+_0x1111eb(0x110)+_0x11835d['projectPath']+'.'};if(_0x32ee5f===_0x1111eb(0x1dd)&&[_0x1111eb(0x118),'pipeline_reset','pipeline_workspace_cleanup'][_0x1111eb(0x1b3)](_0x4a1838)&&(_0x5a68e6['startsWith'](_0x1111eb(0x183))||_0x5a68e6['startsWith'](_0x1111eb(0x1e9))||_0x1c60a0[_0x1111eb(0x125)]?.[_0x1111eb(0x136)]()===_0x1111eb(0x182))){if(!_0x45a259[_0x1111eb(0x74)]||!await _0x45a259[_0x1111eb(0x74)](_0x11835d[_0x1111eb(0xcd)],_0x1c60a0[_0x1111eb(0x220)][_0x1111eb(0x15a)]))return{'allow':![],'reason':_0x1111eb(0x69)+_0x11835d[_0x1111eb(0xcd)]+';\x20reconnect\x20if\x20this\x20connection\x20uses\x20a\x20legacy\x20launcher.'};}if([_0x1111eb(0x118),_0x1111eb(0x1f7),_0x1111eb(0xd9)][_0x1111eb(0x1b3)](_0x4a1838)){const _0x1cfbff={};_0x1cfbff['allow']=![],_0x1cfbff[_0x1111eb(0x11d)]=_0x1111eb(0xaa);if(!_0x2376ca[_0x1111eb(0x92)])return _0x1cfbff;const _0x4a253d={};_0x4a253d['allow']=![],_0x4a253d[_0x1111eb(0x11d)]=_0x1111eb(0xf6);if((_0x1c60a0[_0x1111eb(0x1c4)]||_0x2376ca[_0x1111eb(0x1c4)])===_0x1111eb(0x160))return _0x4a253d;const _0xa57b3f={};_0xa57b3f[_0x1111eb(0xe9)]=![],_0xa57b3f['reason']=_0x1111eb(0x1f9);if(_0x2376ca[_0x1111eb(0x1cc)])return _0xa57b3f;}const _0x33f81c={};_0x33f81c['allow']=![],_0x33f81c[_0x1111eb(0x11d)]=_0x1111eb(0x1ea);if((/(^|__)pipeline_verify$/[_0x1111eb(0x146)](_0x1c60a0[_0x1111eb(0x84)])||_0x4a1838===_0x1111eb(0xfa))&&(_0x1c60a0['mode']||_0x2376ca[_0x1111eb(0x1c4)])==='plan')return _0x33f81c;const _0x41ea67={};_0x41ea67[_0x1111eb(0xe9)]=!![];if(_0xcdb891&&_0x4a1838==='workspace_list'&&!_0x42fc58)return _0x41ea67;if(_0x4a1838===_0x1111eb(0x180)&&!_0x42fc58){if(!_0x2376ca['bootstrapped']||_0x2376ca[_0x1111eb(0x1cc)]||(_0x1c60a0[_0x1111eb(0x1c4)]||_0x2376ca[_0x1111eb(0x1c4)])===_0x1111eb(0x160)||_0x17ee21[_0x1111eb(0x226)]!==_0x1111eb(0x1b7))return nativeFailure(_0x1111eb(0x190),_0x1111eb(0xd0));try{require(_0x1111eb(0x96))[_0x1111eb(0x9c)](_0x11835d[_0x1111eb(0xcd)],path[_0x1111eb(0x20a)](_0x11835d[_0x1111eb(0xcd)],_0x1111eb(0x213)));}catch(_0x1f8ca6){return nativeFailure(_0x1f8ca6[_0x1111eb(0x16c)],_0x1f8ca6[_0x1111eb(0x17f)]);}if(_0xcdb891){if(!_0x45a259[_0x1111eb(0x13a)])return nativeFailure(_0x1111eb(0x1df),'Reconnect\x20with\x20caller\x20context\x20enforcement.');const _0x46e40a={};_0x46e40a[_0x1111eb(0xc3)]=_0x1ed12a,_0x46e40a[_0x1111eb(0xc4)]=_0x4a1838,_0x46e40a[_0x1111eb(0x17a)]=_0x143a33['tool_use_id'],_0x46e40a[_0x1111eb(0xe8)]=_0x1c60a0[_0x1111eb(0x220)];const _0xcf73c9=await _0x45a259['contextBroker'][_0x1111eb(0xfe)](_0x46e40a),_0x55bfa4={..._0x1c60a0[_0x1111eb(0x220)]};_0x55bfa4[_0x1111eb(0x12c)]=_0xcf73c9;const _0x3597f7={};return _0x3597f7[_0x1111eb(0xe9)]=!![],_0x3597f7[_0x1111eb(0xf3)]=_0x55bfa4,_0x3597f7;}const _0x48339f={};return _0x48339f[_0x1111eb(0xe9)]=!![],_0x48339f;}if(_0xcdb891&&_0x4a1838&&!require(_0x1111eb(0xe3))[_0x1111eb(0x1d2)](_0x4a1838)){if(!_0x45a259['contextBroker'])return nativeFailure(_0x1111eb(0x1df),'Reconnect\x20with\x20caller\x20context\x20enforcement.');const _0x29df24={};_0x29df24[_0x1111eb(0xc3)]=_0x1ed12a,_0x29df24[_0x1111eb(0xc4)]=_0x4a1838,_0x29df24[_0x1111eb(0x17a)]=_0x143a33[_0x1111eb(0x1ae)],_0x29df24[_0x1111eb(0xe8)]=_0x1c60a0[_0x1111eb(0x220)];const _0x3c9a3b=await _0x45a259['contextBroker'][_0x1111eb(0xfe)](_0x29df24),_0x1ad94a={..._0x1c60a0[_0x1111eb(0x220)]};_0x1ad94a['_aptContext']=_0x3c9a3b;const _0x65be8f={};return _0x65be8f[_0x1111eb(0xe9)]=!![],_0x65be8f[_0x1111eb(0xf3)]=_0x1ad94a,_0x65be8f;}if(_0xcdb891&&!_0x42fc58&&_0x4a1838&&APT_WRAPPED_UNGUARDED_TOOLS[_0x1111eb(0x9b)](_0x4a1838)&&require(_0x1111eb(0xe3))[_0x1111eb(0x1d2)](_0x4a1838)&&_0x45a259[_0x1111eb(0x13a)]){const _0xca61bb={};_0xca61bb['nativeParent']=_0x1ed12a,_0xca61bb[_0x1111eb(0xc4)]=_0x4a1838,_0xca61bb[_0x1111eb(0x17a)]=_0x143a33['tool_use_id'],_0xca61bb['arguments']=_0x1c60a0['toolInput'];const _0x2b54e7=await _0x45a259[_0x1111eb(0x13a)]['issue'](_0xca61bb),_0x4d8e49={..._0x1c60a0['toolInput']};_0x4d8e49[_0x1111eb(0x12c)]=_0x2b54e7;const _0x2a0054={};return _0x2a0054[_0x1111eb(0xe9)]=!![],_0x2a0054[_0x1111eb(0xf3)]=_0x4d8e49,_0x2a0054;}const _0x33ba5e={};_0x33ba5e['allow']=!![];if(_0x1c60a0[_0x1111eb(0x125)]&&_0x4a1838&&!require('./caller-context')[_0x1111eb(0x1d2)](_0x4a1838))return _0x33ba5e;if(_0xcdb891&&['Agent','Task',_0x1111eb(0x7b)][_0x1111eb(0x1b3)](_0x1c60a0[_0x1111eb(0x84)])){if(_0x42fc58)return nativeFailure(_0x1111eb(0x1ad),_0x1111eb(0x7d));const _0x2308b4=_0x1c60a0['toolInput'][_0x1111eb(0x10e)]||(_0x1c60a0[_0x1111eb(0x84)]===_0x1111eb(0x7b)?_0x1c60a0[_0x1111eb(0x220)]['to']:null),_0x16825e=_0x2308b4&&_0xcdb891[_0x1111eb(0xf8)](_0x2308b4),_0x3a58a7=!_0x2308b4&&['Explore',_0x1111eb(0x203)][_0x1111eb(0x1b3)](_0x1c60a0[_0x1111eb(0x220)][_0x1111eb(0x8d)])&&!workerBrief(_0x1c60a0[_0x1111eb(0x220)]['prompt']);if(_0x3a58a7||_0x16825e?.['readonlyResearch']){if(!_0x2376ca[_0x1111eb(0x92)]||_0x2376ca[_0x1111eb(0x1cc)]||_0x17ee21[_0x1111eb(0x226)]!==_0x1111eb(0x1b7))return nativeFailure('NATIVE_DISPATCH_STOPPED',_0x1111eb(0x1f0));if(_0x1c60a0['toolName']===_0x1111eb(0x155)&&_0x2376ca[_0x1111eb(0x139)]?.['nativeDispatch']?.[_0x1111eb(0xc4)]!==_0x1111eb(0x155)||_0x1c60a0[_0x1111eb(0x84)]===_0x1111eb(0x7b)&&_0x2376ca['capabilities']?.[_0x1111eb(0x111)]?.['continuation']?.[_0x1111eb(0xc4)]!==_0x1111eb(0x7b))return nativeFailure(_0x1111eb(0x1a1),_0x1111eb(0x1be));let _0x52b912;try{const _0x13fea5={};_0x13fea5['assertCurrent']=_0x45a259['assertCurrent'],require(_0x1111eb(0x72))[_0x1111eb(0x166)](_0x11835d[_0x1111eb(0xcd)],{'invocationId':_0x52602a,'actorId':_0x16825e?.[_0x1111eb(0x7e)]||_0x1111eb(0x15f),'attemptId':null,'inputHash':fingerprint(_0x1c60a0[_0x1111eb(0x220)]),'admittedEpoch':_0x17ee21[_0x1111eb(0x194)]},()=>{const _0xbc0e35=_0x1111eb,_0x5bd766=_0x11835d[_0xbc0e35(0xf7)](_0x1c60a0[_0xbc0e35(0x15a)]);if(!_0x5bd766?.[_0xbc0e35(0x92)]||_0x5bd766[_0xbc0e35(0x1cc)])return![];if(_0x16825e){const _0x4ca0c5=require(_0xbc0e35(0x15e))[_0xbc0e35(0x1c8)](_0x11835d[_0xbc0e35(0xcd)],_0x1ed12a,_0x5bd766[_0xbc0e35(0x139)]||{},_0x2308b4);if(!_0x4ca0c5[_0xbc0e35(0xe9)])return _0x52b912=_0x4ca0c5,![];}const _0xb81721={};return _0xb81721[_0xbc0e35(0x17a)]=_0x143a33['tool_use_id'],_0xb81721['input']=_0x1c60a0[_0xbc0e35(0x220)],_0xb81721['sessionId']=_0x1c60a0[_0xbc0e35(0x15a)],_0xb81721[_0xbc0e35(0x194)]=_0x17ee21[_0xbc0e35(0x194)],_0xb81721['capabilities']=_0x5bd766[_0xbc0e35(0x139)]||{},_0x52b912=_0x3a58a7?_0xcdb891[_0xbc0e35(0x75)](_0xb81721):_0xcdb891[_0xbc0e35(0xbc)](_0x2308b4,_0x143a33[_0xbc0e35(0x1ae)],_0x1c60a0[_0xbc0e35(0x220)],_0x16825e,_0x17ee21[_0xbc0e35(0x194)]),_0x52b912['allow']===!![];},_0x13fea5);if(!_0x52b912['allow'])require(_0x1111eb(0x72))['finishOperation'](_0x11835d[_0x1111eb(0xcd)],_0x52602a,_0x17ee21[_0x1111eb(0x194)]);return _0x52b912;}catch(_0x63b172){return _0x52b912?.['allow']===![]?_0x52b912:nativeFailure(_0x63b172['code']||_0x1111eb(0x17d),'Research\x20operation\x20was\x20not\x20admitted.');}}if(!_0x2376ca[_0x1111eb(0x92)]||!_0x2376ca[_0x1111eb(0x1d5)]||!_0x2376ca[_0x1111eb(0xd5)])return nativeFailure(_0x1111eb(0x13f),_0x1111eb(0x222));if((_0x1c60a0[_0x1111eb(0x1c4)]||_0x2376ca['mode'])===_0x1111eb(0x160)||_0x2376ca[_0x1111eb(0x1cc)])return nativeFailure(_0x1111eb(0xd2),'Parent\x20mode\x20or\x20stop\x20state\x20prevents\x20dispatch.');if(_0x1c60a0['toolName']==='Task'&&_0x2376ca[_0x1111eb(0x139)]?.[_0x1111eb(0x111)]?.[_0x1111eb(0xc4)]!==_0x1111eb(0x155)||_0x1c60a0[_0x1111eb(0x84)]==='SendMessage'&&_0x2376ca[_0x1111eb(0x139)]?.[_0x1111eb(0x111)]?.['continuation']?.[_0x1111eb(0xc4)]!==_0x1111eb(0x7b))return nativeFailure('NATIVE_SCHEMA_UNAVAILABLE',_0x1111eb(0x167));const _0x41e74f=_0x45a259[_0x1111eb(0x1cd)]||new(require(_0x1111eb(0x113)))[(_0x1111eb(0x18a))](_0x11835d['projectPath']),_0x653ae7=await _0x41e74f['getStatus'](_0x2376ca[_0x1111eb(0x1d5)],_0x2376ca[_0x1111eb(0xd5)]);if(_0x653ae7[_0x1111eb(0x1d0)]!==!![]||_0x653ae7[_0x1111eb(0x6b)]?.[_0x1111eb(0x101)])return nativeFailure('RUN_NOT_ACTIVE',_0x1111eb(0x10c));const _0x23c0a1=_0x1c60a0[_0x1111eb(0x220)]['resume']||(_0x1c60a0[_0x1111eb(0x84)]===_0x1111eb(0x7b)?_0x1c60a0[_0x1111eb(0x220)]['to']:null);if(_0x23c0a1){const _0x401c64=_0xcdb891['worker'](_0x23c0a1),_0x25a3ad=_0x653ae7[_0x1111eb(0x6b)]?.[_0x1111eb(0x1d0)]?.[_0x1111eb(0x1a7)](_0x15c11f=>_0x15c11f[_0x1111eb(0x1e3)]===_0x401c64?.[_0x1111eb(0x1e3)]&&_0x15c11f[_0x1111eb(0x7e)]===_0x401c64?.[_0x1111eb(0x7e)]&&_0x15c11f[_0x1111eb(0x15a)]===_0x1c60a0['sessionId']);if(!_0x25a3ad)return nativeFailure('NATIVE_RESUME_MISMATCH',_0x1111eb(0x1e5));return _0x186ffe(_0xcdb891[_0x1111eb(0xbc)](_0x23c0a1,_0x143a33[_0x1111eb(0x1ae)],_0x1c60a0['toolInput'],_0x25a3ad,_0x17ee21[_0x1111eb(0x194)]),_0x25a3ad,_0x17ee21);}const _0x8a6cbd=workerBrief(_0x1c60a0['toolInput'][_0x1111eb(0xc2)]),_0x45ef40=_0x8a6cbd?.[_0x1111eb(0x15a)]===_0x1c60a0[_0x1111eb(0x15a)]&&_0x653ae7['execution']?.['active']?.[_0x1111eb(0x1a7)](_0x5442f3=>_0x5442f3[_0x1111eb(0x1e3)]===_0x8a6cbd[_0x1111eb(0x1e3)]&&_0x5442f3[_0x1111eb(0x7e)]===_0x8a6cbd['actorId']&&_0x5442f3[_0x1111eb(0x15a)]===_0x1c60a0['sessionId']);if(!_0x45ef40)return nativeFailure(_0x1111eb(0x13f),'The\x20prompt\x20markers\x20must\x20match\x20an\x20active\x20attempt.');const _0x2dc4de={};return _0x2dc4de[_0x1111eb(0x17a)]=_0x143a33['tool_use_id'],_0x2dc4de[_0x1111eb(0x215)]=_0x1c60a0[_0x1111eb(0x220)],_0x2dc4de['attempt']=_0x45ef40,_0x2dc4de[_0x1111eb(0x1d5)]=_0x2376ca[_0x1111eb(0x1d5)],_0x2dc4de[_0x1111eb(0xd5)]=_0x2376ca[_0x1111eb(0xd5)],_0x2dc4de[_0x1111eb(0x15a)]=_0x1c60a0[_0x1111eb(0x15a)],_0x2dc4de[_0x1111eb(0x194)]=_0x17ee21['epoch'],_0x186ffe(_0xcdb891[_0x1111eb(0x1ee)](_0x2dc4de),_0x45ef40,_0x17ee21);}if(_0x32ee5f===_0x1111eb(0x1b2)&&NATIVE_CODEX_SPAWN_NAMES[_0x1111eb(0x9b)](_0x1c60a0[_0x1111eb(0x84)])){const _0x409351={};_0x409351[_0x1111eb(0xe9)]=![],_0x409351[_0x1111eb(0x11d)]=_0x1111eb(0x14a);if(!_0x2376ca[_0x1111eb(0x92)])return _0x409351;const _0x16ef9e={};_0x16ef9e[_0x1111eb(0xe9)]=![],_0x16ef9e[_0x1111eb(0x11d)]=_0x1111eb(0x192);if((_0x1c60a0['mode']||_0x2376ca[_0x1111eb(0x1c4)])===_0x1111eb(0x160))return _0x16ef9e;const _0x2d7636={};_0x2d7636[_0x1111eb(0xe9)]=![],_0x2d7636[_0x1111eb(0x11d)]=_0x1111eb(0x1f9);if(_0x2376ca[_0x1111eb(0x1cc)])return _0x2d7636;const _0x51baf3=workerBrief(_0x1c60a0[_0x1111eb(0x220)]['message']);if(_0x51baf3){const _0x5b39cf={};_0x5b39cf[_0x1111eb(0xe9)]=![],_0x5b39cf[_0x1111eb(0x11d)]=_0x1111eb(0x11a);if(!_0x2376ca[_0x1111eb(0x1d5)]||!_0x2376ca[_0x1111eb(0xd5)]||_0x51baf3[_0x1111eb(0x15a)]!==_0x1c60a0[_0x1111eb(0x15a)])return _0x5b39cf;const _0x250bdf=_0x45a259['pipeline']||new(require(_0x1111eb(0x113)))['PipelineManager'](_0x11835d[_0x1111eb(0xcd)]),_0xe51f09=await _0x250bdf[_0x1111eb(0x173)](_0x2376ca[_0x1111eb(0x1d5)],_0x2376ca[_0x1111eb(0xd5)]);_0x45a259[_0x1111eb(0x1b1)]?.();const _0x155caa=_0xe51f09?.[_0x1111eb(0x6b)]?.[_0x1111eb(0x1d0)]?.[_0x1111eb(0x1a7)](_0x2ecd4a=>_0x2ecd4a[_0x1111eb(0x1e3)]===_0x51baf3[_0x1111eb(0x1e3)]&&_0x2ecd4a[_0x1111eb(0x7e)]===_0x51baf3['actorId']&&_0x2ecd4a[_0x1111eb(0x15a)]===_0x1c60a0[_0x1111eb(0x15a)]);if(!_0x155caa){const _0x2e89cf={};return _0x2e89cf[_0x1111eb(0xe9)]=![],_0x2e89cf[_0x1111eb(0x11d)]='APT\x20worker\x20dispatch\x20has\x20no\x20matching\x20active\x20attempt.',_0x2e89cf;}_0x11835d[_0x1111eb(0xa1)]({'sessionId':_0x1c60a0['sessionId'],'toolCallId':_0x143a33[_0x1111eb(0x1ae)]||_0x143a33[_0x1111eb(0x1a6)]||'attempt:'+_0x51baf3[_0x1111eb(0x1e3)],'attemptId':_0x51baf3['attemptId'],'actorId':_0x51baf3[_0x1111eb(0x7e)],'task':_0x2376ca[_0x1111eb(0x1d5)],'runId':_0x2376ca[_0x1111eb(0xd5)],'tool':_0x1c60a0['toolName'],'taskName':_0x1c60a0[_0x1111eb(0x220)][_0x1111eb(0x1a2)],'requestedModel':_0x155caa[_0x1111eb(0x10d)]?.[_0x1111eb(0x197)],'dispatchedModel':_0x1c60a0[_0x1111eb(0x220)]['model'],'requestedEffort':_0x155caa['modelDecision']?.[_0x1111eb(0x114)],'dispatchedEffort':_0x1c60a0[_0x1111eb(0x220)][_0x1111eb(0x1c1)],'forkTurns':_0x1c60a0[_0x1111eb(0x220)][_0x1111eb(0xeb)],'status':codexDispatchStatus(_0x155caa,_0x1c60a0['toolInput'])});}const _0x308e8c={};return _0x308e8c['allow']=!![],_0x308e8c;}const _0x54f42c={};_0x54f42c[_0x1111eb(0xe9)]=!![];if(!isWriteTool(_0x1c60a0[_0x1111eb(0x84)],_0x1c60a0[_0x1111eb(0x220)],_0x330bda,_0x32ee5f))return _0x54f42c;const _0x4743ef={};_0x4743ef['allow']=![],_0x4743ef[_0x1111eb(0x11d)]=_0x1111eb(0x191);if(!_0x2376ca[_0x1111eb(0x92)])return _0x4743ef;const _0x13a49b={};_0x13a49b[_0x1111eb(0xe9)]=![],_0x13a49b[_0x1111eb(0x11d)]=_0x1111eb(0x127);if(_0x2376ca[_0x1111eb(0x1c4)]===_0x1111eb(0x160)||_0x1c60a0[_0x1111eb(0x1c4)]===_0x1111eb(0x160))return _0x13a49b;const _0x5c3831={};_0x5c3831[_0x1111eb(0xe9)]=![],_0x5c3831[_0x1111eb(0x11d)]=_0x1111eb(0x1aa);if(_0x2376ca[_0x1111eb(0x1cc)])return _0x5c3831;if(_0x11f9ca?.[_0x1111eb(0x1ef)])return nativeFailure(_0x1111eb(0x123),_0x1111eb(0xde));const _0x441747={};_0x441747['allow']=![],_0x441747['reason']=_0x1111eb(0xf2);if(!_0x2376ca['task']||!_0x2376ca[_0x1111eb(0xd5)])return _0x441747;const _0xb00489=[_0x1111eb(0x223),_0x1111eb(0x1e8),_0x1111eb(0x1a9),'TargetFile',_0x1111eb(0x12a),_0x1111eb(0x1ce)]['map'](_0x4b531a=>_0x1c60a0[_0x1111eb(0x220)][_0x4b531a])[_0x1111eb(0xb2)](_0x4ed1fe=>typeof _0x4ed1fe==='string'),_0x5ea6f2=_0x1c60a0[_0x1111eb(0x220)][_0x1111eb(0x1af)]||_0x1c60a0['toolInput']['input']||'';if(typeof _0x5ea6f2===_0x1111eb(0xca)){for(const _0x1ee7a5 of _0x5ea6f2[_0x1111eb(0xa4)](/^\*\*\* (?:Add File|Update File|Delete File|Move to): (.+)$/gm))_0xb00489[_0x1111eb(0x205)](_0x1ee7a5[0x1]);}for(const _0x3627ea of _0xb00489){let _0x12386f=path[_0x1111eb(0x133)](_0x11835d['projectPath'],_0x3627ea),_0xe09ef2=_0x12386f;while(!fs['existsSync'](_0xe09ef2)&&path[_0x1111eb(0x1ca)](_0xe09ef2)!==_0xe09ef2)_0xe09ef2=path[_0x1111eb(0x1ca)](_0xe09ef2);if(fs[_0x1111eb(0x21e)](_0xe09ef2))_0x12386f=path['resolve'](fs['realpathSync'](_0xe09ef2),path[_0x1111eb(0x88)](_0xe09ef2,_0x12386f));const _0x46477f=path[_0x1111eb(0x88)](_0x11835d[_0x1111eb(0xcd)],_0x12386f),_0x4000fc={};_0x4000fc[_0x1111eb(0xe9)]=![],_0x4000fc[_0x1111eb(0x11d)]=_0x1111eb(0x1fe);if(_0x46477f==='..'||_0x46477f[_0x1111eb(0x1bd)]('..'+path[_0x1111eb(0xe4)])||path[_0x1111eb(0x10f)](_0x46477f))return _0x4000fc;if(/^(?:\.git(?:\/|$)|\.agents\/(?:runtime|pipelines)(?:\/|$))/i[_0x1111eb(0x146)](_0x46477f['replaceAll']('\x5c','/')))return nativeFailure('RUNTIME_STATE_PROTECTED',_0x1111eb(0x15d));}const _0x441e35=_0x45a259[_0x1111eb(0x1cd)]||new(require('../proxy/pipeline'))[(_0x1111eb(0x18a))](_0x11835d['projectPath']),_0x17c828={};_0x17c828[_0x1111eb(0xe9)]=![],_0x17c828[_0x1111eb(0x11d)]='Pipeline\x20write\x20guard\x20is\x20unavailable.';if(typeof _0x441e35[_0x1111eb(0x1f4)]!=='function')return _0x17c828;const _0xb7fdd3=_0x11f9ca?_0x11f9ca[_0x1111eb(0x7e)]:_0x143a33[_0x1111eb(0x7e)]||(_0x32ee5f!==_0x1111eb(0xef)?_0x143a33['agent_id']:null)||'coordinator',_0x3524a2={};_0x3524a2[_0x1111eb(0x1d5)]=_0x2376ca[_0x1111eb(0x1d5)],_0x3524a2[_0x1111eb(0xd5)]=_0x2376ca['runId'],_0x3524a2[_0x1111eb(0x1e3)]=_0x11f9ca?.[_0x1111eb(0x1e3)]||_0x2376ca[_0x1111eb(0xf5)]?.[_0xb7fdd3]||_0x2376ca[_0x1111eb(0x1e3)],_0x3524a2[_0x1111eb(0x15a)]=_0x1c60a0[_0x1111eb(0x15a)],_0x3524a2['actorId']=_0xb7fdd3,_0x3524a2[_0x1111eb(0xf1)]=_0x11835d[_0x1111eb(0xcd)],_0x3524a2[_0x1111eb(0x1c4)]=_0x1c60a0[_0x1111eb(0x1c4)]||_0x2376ca['mode'];const _0x3690a5=await _0x441e35[_0x1111eb(0x1f4)](_0x3524a2),_0x143846={};_0x143846['allow']=_0x3690a5[_0x1111eb(0x129)]===!![],_0x143846[_0x1111eb(0x11d)]=_0x3690a5[_0x1111eb(0x11d)]||_0x3690a5[_0x1111eb(0x1dc)]||'';const _0x376aef=_0x143846;if(!_0xcdb891||_0x376aef[_0x1111eb(0xe9)]!==!![])return _0x376aef;if(_0x4a1838){if(!_0x45a259[_0x1111eb(0x13a)])return nativeFailure(_0x1111eb(0x1df),_0x1111eb(0xfc));const _0x58b228={};_0x58b228[_0x1111eb(0xc3)]=_0x1ed12a,_0x58b228[_0x1111eb(0xc4)]=_0x4a1838,_0x58b228[_0x1111eb(0x17a)]=_0x143a33[_0x1111eb(0x1ae)],_0x58b228[_0x1111eb(0xe8)]=_0x1c60a0[_0x1111eb(0x220)];const _0xc102b2=await _0x45a259[_0x1111eb(0x13a)][_0x1111eb(0xfe)](_0x58b228),_0x2b0706={..._0x1c60a0[_0x1111eb(0x220)]};_0x2b0706[_0x1111eb(0x12c)]=_0xc102b2;const _0x398977={};return _0x398977['allow']=!![],_0x398977[_0x1111eb(0xf3)]=_0x2b0706,_0x398977;}const _0x5ec667=await _0x441e35[_0x1111eb(0x173)](_0x2376ca[_0x1111eb(0x1d5)],_0x2376ca[_0x1111eb(0xd5)]),_0x325dbf=_0x5ec667[_0x1111eb(0x6b)]?.[_0x1111eb(0x1d0)]?.[_0x1111eb(0x1a7)](_0x17120c=>_0x17120c[_0x1111eb(0x7e)]===_0xb7fdd3&&_0x17120c['sessionId']===_0x1c60a0['sessionId']&&_0x17120c[_0x1111eb(0x1e3)]===(_0x11f9ca?.[_0x1111eb(0x1e3)]||_0x2376ca[_0x1111eb(0xf5)]?.[_0xb7fdd3]||_0x2376ca[_0x1111eb(0x1e3)]));if(!_0x325dbf)return nativeFailure(_0x1111eb(0x13f),_0x1111eb(0xdd));return _0x186ffe(_0x376aef,_0x325dbf,_0x17ee21);}if(_0x42fc58&&_0x1c60a0[_0x1111eb(0xa6)]!==_0x1111eb(0x147)){if(_0x1c60a0[_0x1111eb(0xa6)]===_0x1111eb(0xc0))_0xcdb891[_0x1111eb(0x143)](_0x42fc58,_0x143a33['activation']);const _0x157582={};_0x157582[_0x1111eb(0xe9)]=!![];if(![_0x1111eb(0xf8),_0x1111eb(0xc0)]['includes'](_0x1c60a0[_0x1111eb(0xa6)]))return _0x157582;}const _0x5e74d4={};_0x5e74d4[_0x1111eb(0x153)]=_0x2376ca[_0x1111eb(0x153)];const _0x277c1d={..._0x5420b5};_0x277c1d[_0x1111eb(0x98)]=_0x1c60a0[_0x1111eb(0xa6)]===_0x1111eb(0x11e);const _0x11d32a={};_0x11d32a[_0x1111eb(0x9a)]=!![];const _0x575726=_0x42fc58?_0x5e74d4:_0x11835d[_0x1111eb(0x8e)](_0x277c1d,_0x11d32a);if(_0x1c60a0[_0x1111eb(0xa6)]===_0x1111eb(0x147)){if(_0xcdb891&&_0x52602a&&Object[_0x1111eb(0x1f8)]['hasOwnProperty'][_0x1111eb(0x11c)](_0x143a33,_0x1111eb(0x7a))){const _0x584df7=require(_0x1111eb(0x72))[_0x1111eb(0x1d1)](_0x11835d['projectPath']),_0x5689b1=_0x584df7[_0x1111eb(0x1a8)]?.[crypto['createHash'](_0x1111eb(0x76))['update'](_0x52602a)[_0x1111eb(0xc9)](_0x1111eb(0xa0))];if(_0x5689b1?.[_0x1111eb(0xb8)]==='active')require(_0x1111eb(0x72))[_0x1111eb(0x6a)](_0x11835d['projectPath'],_0x52602a,_0x5689b1['epoch']);}if(_0x11f9ca&&_0x1c60a0[_0x1111eb(0x220)][_0x1111eb(0xb5)]==='review'){let _0x2e727a=_0x143a33[_0x1111eb(0x7a)];if(_0x2e727a?.[_0x1111eb(0xb0)])_0x2e727a=_0x2e727a[_0x1111eb(0xb0)];else{if(Array[_0x1111eb(0x168)](_0x2e727a?.[_0x1111eb(0xff)]))try{_0x2e727a=JSON[_0x1111eb(0x157)](_0x2e727a[_0x1111eb(0xff)]['find'](_0x563a10=>_0x563a10[_0x1111eb(0x218)]===_0x1111eb(0x1b5))?.[_0x1111eb(0x1b5)]);}catch{_0x2e727a=null;}}const _0x39a97b=aptToolForHook(_0x1c60a0,_0x11835d[_0x1111eb(0xcd)]);if(_0x39a97b)_0xcdb891[_0x1111eb(0x12b)](_0x42fc58,_0x143a33[_0x1111eb(0x1ae)],_0x39a97b,_0x1c60a0[_0x1111eb(0x220)],_0x2e727a);}if(_0xcdb891&&!_0x42fc58&&[_0x1111eb(0x1e2),'Task'][_0x1111eb(0x1b3)](_0x1c60a0[_0x1111eb(0x84)])&&!_0x1c60a0[_0x1111eb(0x220)][_0x1111eb(0x10e)]){const _0x14f5ea=_0xcdb891['confirm'](_0x143a33[_0x1111eb(0x1ae)],_0x1c60a0[_0x1111eb(0x220)],_0x143a33[_0x1111eb(0x7a)]),_0x2a120b={};return _0x2a120b[_0x1111eb(0xe9)]=!![],_0x2a120b[_0x1111eb(0xe0)]=_0x14f5ea[_0x1111eb(0xf8)]&&!_0x14f5ea[_0x1111eb(0xf8)][_0x1111eb(0x12d)]&&_0x14f5ea[_0x1111eb(0xf8)][_0x1111eb(0x20e)]===_0x1111eb(0x1d6)?_0x1111eb(0x1c2)+_0x14f5ea[_0x1111eb(0xf8)][_0x1111eb(0xa5)]+_0x1111eb(0x141):'',_0x2a120b;}if(_0xcdb891&&!_0x42fc58&&(['Agent','Task'][_0x1111eb(0x1b3)](_0x1c60a0[_0x1111eb(0x84)])&&_0x1c60a0[_0x1111eb(0x220)][_0x1111eb(0x10e)]||_0x1c60a0[_0x1111eb(0x84)]==='SendMessage')){const _0xc38c9d=_0x1c60a0[_0x1111eb(0x220)][_0x1111eb(0x10e)]||_0x1c60a0[_0x1111eb(0x220)]['to'];_0xcdb891['completeContinuation'](_0xc38c9d,_0x143a33[_0x1111eb(0x1ae)],_0x1c60a0[_0x1111eb(0x220)],_0x143a33[_0x1111eb(0x7a)],['Agent','Task'][_0x1111eb(0x1b3)](_0x1c60a0['toolName'])&&_0x1c60a0[_0x1111eb(0x220)][_0x1111eb(0x80)]!==!![]);}if(_0x32ee5f===_0x1111eb(0x1b2)&&NATIVE_CODEX_SPAWN_NAMES[_0x1111eb(0x9b)](_0x1c60a0[_0x1111eb(0x84)])&&_0x2376ca[_0x1111eb(0x1d5)]&&_0x2376ca[_0x1111eb(0xd5)]){const _0x54679b=workerBrief(_0x1c60a0[_0x1111eb(0x220)][_0x1111eb(0x17f)]),_0x563317=hostWorkerIds(_0x143a33['tool_response']);if(_0x54679b?.[_0x1111eb(0x15a)]===_0x1c60a0['sessionId']&&_0x563317[_0x1111eb(0x145)]){const _0x28a905=_0x45a259[_0x1111eb(0x1cd)]||new(require('../proxy/pipeline'))[(_0x1111eb(0x18a))](_0x11835d['projectPath']),_0x2ee770=await _0x28a905['getStatus'](_0x2376ca[_0x1111eb(0x1d5)],_0x2376ca[_0x1111eb(0xd5)]),_0x31666c=_0x2ee770?.['execution']?.['active']?.[_0x1111eb(0x1a7)](_0x4e2613=>_0x4e2613[_0x1111eb(0x1e3)]===_0x54679b[_0x1111eb(0x1e3)]&&_0x4e2613[_0x1111eb(0x7e)]===_0x54679b[_0x1111eb(0x7e)]&&_0x4e2613[_0x1111eb(0x15a)]===_0x1c60a0['sessionId']);if(_0x31666c){const _0x50a3c6=_0x31666c[_0x1111eb(0x10d)]?.[_0x1111eb(0x197)]||null,_0x445d89=typeof _0x1c60a0[_0x1111eb(0x220)][_0x1111eb(0xe6)]===_0x1111eb(0xca)?_0x1c60a0['toolInput'][_0x1111eb(0xe6)]:null,_0x346c51=codexDispatchStatus(_0x31666c,_0x1c60a0[_0x1111eb(0x220)]),_0x332001={};_0x332001['sessionId']=_0x1c60a0['sessionId'],_0x332001[_0x1111eb(0xf4)]=_0x143a33[_0x1111eb(0x1ae)]||_0x143a33['tool_call_id']||'attempt:'+_0x54679b[_0x1111eb(0x1e3)],_0x332001['attemptId']=_0x54679b[_0x1111eb(0x1e3)],_0x332001[_0x1111eb(0x7e)]=_0x54679b['actorId'],_0x332001[_0x1111eb(0xba)]=_0x563317,_0x332001[_0x1111eb(0x1d5)]=_0x2376ca[_0x1111eb(0x1d5)],_0x332001[_0x1111eb(0xd5)]=_0x2376ca[_0x1111eb(0xd5)],_0x332001[_0x1111eb(0x197)]=_0x50a3c6,_0x332001['dispatchedModel']=_0x445d89,_0x332001[_0x1111eb(0xd3)]=_0x346c51,_0x332001['tool']=_0x1c60a0[_0x1111eb(0x84)],_0x332001['forkTurns']=_0x1c60a0['toolInput']['fork_turns'],_0x11835d[_0x1111eb(0x1f1)](_0x332001);}}}const _0x3f19d7={};_0x3f19d7[_0x1111eb(0x15a)]=_0x1c60a0[_0x1111eb(0x15a)],_0x3f19d7[_0x1111eb(0x81)]=!![],_0x3f19d7['durationMs']=_0x143a33[_0x1111eb(0x178)],_0x3f19d7['tokenUsage']=_0x143a33['usage']||_0x143a33[_0x1111eb(0x224)],_0x3f19d7['eventId']=_0x143a33[_0x1111eb(0x1a3)]||_0x143a33['eventId']||_0x143a33[_0x1111eb(0x1ae)]||_0x143a33['tool_call_id'],_0x3f19d7[_0x1111eb(0x142)]=_0x143a33[_0x1111eb(0x7e)]||_0x143a33[_0x1111eb(0xda)]||_0x143a33['worker_id'];const _0x8a501c={};_0x8a501c[_0x1111eb(0xc8)]=_0x1111eb(0x11b),_0x11835d[_0x1111eb(0x21a)](_0x3f19d7,_0x8a501c);const _0x1be61a={};return _0x1be61a[_0x1111eb(0xe9)]=!![],_0x1be61a;}if(_0x1c60a0[_0x1111eb(0xa6)]==='prompt'){const _0x1ec350={};_0x1ec350['sessionId']=_0x1c60a0[_0x1111eb(0x15a)],_0x1ec350[_0x1111eb(0x1cc)]=![],_0x11835d['stop'](_0x1ec350);const _0x2ae3bb={};_0x2ae3bb[_0x1111eb(0x15a)]=_0x1c60a0[_0x1111eb(0x15a)],_0x2ae3bb[_0x1111eb(0x1fc)]=_0x1c60a0[_0x1111eb(0x1fc)],_0x2ae3bb[_0x1111eb(0xc2)]=_0x1c60a0[_0x1111eb(0xc2)];const _0x4782cc=_0x11835d[_0x1111eb(0xc5)](_0x2ae3bb);return{'allow':!![],'route':_0x4782cc,'context':_0x1111eb(0x20d)+JSON[_0x1111eb(0x13c)](_0x4782cc)+_0x1111eb(0x13e)};}if(_0x1c60a0['kind']===_0x1111eb(0x143)){const _0x4c5a56={};_0x4c5a56[_0x1111eb(0xe9)]=!![],_0x4c5a56[_0x1111eb(0xbc)]=![];if((_0x1c60a0[_0x1111eb(0x1c4)]||_0x2376ca['mode'])===_0x1111eb(0x160)||_0x2376ca[_0x1111eb(0x1cc)]||!_0x4e984a[_0x1111eb(0xbe)]||!_0x2376ca['task']||!_0x2376ca[_0x1111eb(0xd5)]||[_0x1111eb(0x18c),_0x1111eb(0x1dc)][_0x1111eb(0x1b3)](_0x143a33[_0x1111eb(0x1bf)])||_0x143a33[_0x1111eb(0x20b)]===![])return _0x4c5a56;const _0x260690=_0x45a259[_0x1111eb(0x1cd)]||new(require(_0x1111eb(0x113)))['PipelineManager'](_0x11835d[_0x1111eb(0xcd)]),_0x2b5155=await _0x260690[_0x1111eb(0x173)](_0x2376ca[_0x1111eb(0x1d5)],_0x2376ca[_0x1111eb(0xd5)]),_0x111aa8=_0x2b5155?.[_0x1111eb(0x1d0)]===!![]&&!_0x2b5155?.[_0x1111eb(0x6b)]?.['stopReason']&&!_0x2b5155?.['blocked'],_0x54b37d=_0x2b5155?.[_0x1111eb(0x6b)]||{},_0x13cc1a=_0x111aa8&&Array[_0x1111eb(0x168)](_0x54b37d[_0x1111eb(0x1d0)])&&_0x54b37d[_0x1111eb(0x1d0)][_0x1111eb(0x184)](_0x450732=>_0x450732[_0x1111eb(0x7e)]!=='coordinator'),_0x1eb7f4=_0x111aa8&&_0x54b37d[_0x1111eb(0x109)]?.[_0x1111eb(0xa6)]==='wait-quota'&&Date[_0x1111eb(0x157)](_0x54b37d[_0x1111eb(0x109)][_0x1111eb(0xa8)])>Date[_0x1111eb(0x130)](),_0x2b8780=_0x111aa8&&_0x54b37d['nextAction']?.[_0x1111eb(0xa6)]===_0x1111eb(0xea);if(_0x13cc1a||_0x1eb7f4||_0x2b8780)return{'allow':!![],'continue':![],'reason':_0x13cc1a?_0x1111eb(0x14b):_0x1eb7f4?'waiting-for-quota':_0x1111eb(0x16e)};const _0x3978b3={};_0x3978b3[_0x1111eb(0x15a)]=_0x1c60a0[_0x1111eb(0x15a)],_0x3978b3[_0x1111eb(0x209)]=[_0x2b5155[_0x1111eb(0x1bc)],_0x54b37d[_0x1111eb(0xf5)],_0x54b37d[_0x1111eb(0x121)]?.[_0x1111eb(0x145)],_0x54b37d[_0x1111eb(0x109)]];if(_0x111aa8&&!_0x11835d['continuation'](_0x3978b3)[_0x1111eb(0x129)]){const _0x1c6129={};_0x1c6129['task']=_0x2376ca[_0x1111eb(0x1d5)],_0x1c6129[_0x1111eb(0xd5)]=_0x2376ca[_0x1111eb(0xd5)],_0x1c6129[_0x1111eb(0x15a)]=_0x1c60a0[_0x1111eb(0x15a)],_0x1c6129[_0x1111eb(0xb5)]=_0x1111eb(0x19d),_0x1c6129[_0x1111eb(0x11d)]=_0x1111eb(0xa9);if(_0x260690[_0x1111eb(0x187)])_0x260690['checkpoint'](_0x1c6129);const _0x5ecf57={};return _0x5ecf57[_0x1111eb(0xe9)]=!![],_0x5ecf57[_0x1111eb(0xbc)]=![],_0x5ecf57['reason']=_0x1111eb(0x20f),_0x5ecf57;}const _0x4482d0={};return _0x4482d0[_0x1111eb(0xe9)]=!![],_0x4482d0[_0x1111eb(0xbc)]=_0x111aa8,_0x4482d0['context']=_0x111aa8?'Continue\x20the\x20active\x20APT\x20task:\x20reconcile\x20any\x20in-flight\x20attempt\x20with\x20pipeline_status,\x20then\x20call\x20pipeline_next\x20for\x20ready\x20work.\x20Follow\x20its\x20skills\x20and\x20verification\x20instructions\x20and\x20respect\x20durable\x20attempt\x20limits.\x20Do\x20not\x20report\x20completion\x20until\x20the\x20completion\x20gate\x20passes.':'',_0x4482d0;}if(_0x1c60a0[_0x1111eb(0xa6)]==='worker'||_0x1c60a0[_0x1111eb(0xa6)]===_0x1111eb(0xc0)){const _0x36230e=String(_0x143a33[_0x1111eb(0x1d5)]||'');let _0x4806f4=_0x143a33[_0x1111eb(0xcf)]||_0x36230e[_0x1111eb(0x12e)](/\bAPT_ATTEMPT_ID=([0-9a-f-]{36})\b/i)?.[0x1];const _0xd0f772=_0x36230e[_0x1111eb(0x12e)](/\bAPT_ACTOR_ID=([^\s]+)/)?.[0x1];let _0x5187ff=_0x143a33[_0x1111eb(0x77)]||null;try{if(!_0x5187ff&&_0xd0f772)_0x5187ff=decodeURIComponent(_0xd0f772);}catch{}const _0x5cd801=_0x1c60a0['kind']==='worker-stop'&&_0x4806f4&&_0x5187ff?_0x11835d['workerForAttempt']({'sessionId':_0x1c60a0['sessionId'],'attemptId':_0x4806f4,'actorId':_0x5187ff}):null,_0x3a83e6=_0x143a33[_0x1111eb(0x212)]||_0x143a33[_0x1111eb(0xda)]||_0x143a33['worker_id']||_0x5cd801?.[_0x1111eb(0x1e6)];if(typeof _0x3a83e6===_0x1111eb(0xca)&&_0x3a83e6)_0x11835d[_0x1111eb(0x1ff)]({'sessionId':_0x1c60a0[_0x1111eb(0x15a)],'host':_0x32ee5f,'hostWorkerId':_0x3a83e6,'model':_0x143a33[_0x1111eb(0x135)]||_0x143a33[_0x1111eb(0x94)]||_0x143a33['model'],'actorId':['codex',_0x1111eb(0xef)][_0x1111eb(0x1b3)](_0x32ee5f)?null:_0x5187ff,'attemptId':[_0x1111eb(0x1b2),_0x1111eb(0xef)]['includes'](_0x32ee5f)?null:_0x4806f4,'stopped':_0x1c60a0[_0x1111eb(0xa6)]===_0x1111eb(0xc0)});if(_0x32ee5f===_0x1111eb(0x1b2)&&typeof _0x3a83e6===_0x1111eb(0xca)&&_0x3a83e6)_0x11835d[_0x1111eb(0xb1)]({'sessionId':_0x1c60a0[_0x1111eb(0x15a)],'hostWorkerId':_0x3a83e6});let _0x1f55c5=_0x1c60a0[_0x1111eb(0xa6)]===_0x1111eb(0xc0)&&_0x2376ca[_0x1111eb(0x1d5)]&&_0x2376ca['runId']&&!_0x2376ca[_0x1111eb(0x1cc)];if(_0x1f55c5)try{const _0x2213b3=_0x45a259[_0x1111eb(0x1cd)]||new(require(_0x1111eb(0x113)))[(_0x1111eb(0x18a))](_0x11835d[_0x1111eb(0xcd)]),_0x8b2985=await _0x2213b3[_0x1111eb(0x173)](_0x2376ca['task'],_0x2376ca[_0x1111eb(0xd5)]);_0x1f55c5=_0x8b2985?.[_0x1111eb(0x1d0)]===!![]&&!_0x8b2985?.['execution']?.[_0x1111eb(0x101)]&&!_0x8b2985?.['blocked'];}catch{_0x1f55c5=![];}const _0xe360af={};return _0xe360af[_0x1111eb(0xe9)]=!![],_0xe360af['context']=_0x1c60a0[_0x1111eb(0xa6)]===_0x1111eb(0xf8)?'APT\x20worker:\x20load\x20assigned\x20skills\x20in\x20this\x20context\x20and\x20stay\x20within\x20your\x20assigned\x20scope.\x20Only\x20the\x20coordinator\x20can\x20complete\x20the\x20parent\x20pipeline.':_0x1f55c5?'APT\x20worker\x20stopped.\x20Reconcile\x20its\x20result\x20with\x20pipeline_status,\x20verify\x20its\x20work,\x20then\x20call\x20pipeline_next\x20for\x20ready\x20work\x20without\x20asking\x20the\x20user\x20to\x20continue.':'',_0xe360af;}const _0x3722ac={};return _0x3722ac[_0x1111eb(0xe9)]=!![],_0x3722ac['context']=_0x575726[_0x1111eb(0x1b8)]||_0x1c60a0[_0x1111eb(0xa6)]==='compact'?'APT\x20session\x20ready.\x20Workspace:\x20'+_0x11835d[_0x1111eb(0xcd)]+_0x1111eb(0x1db)+_0x575726[_0x1111eb(0x153)]+'.':'',_0x3722ac;}async function runCLI(_0x5cbc16,_0x38bb06,_0xd4fa85,_0x28143a={}){const _0x24d2ac=_0x329ad5;let _0x10bd57='';try{const _0x4fed72=require('./hook-lease')[_0x24d2ac(0xf9)](_0x28143a[_0x24d2ac(0x1f3)]);for await(const _0xd5ec8 of process[_0x24d2ac(0xe7)]){_0x10bd57+=_0xd5ec8;if(Buffer[_0x24d2ac(0x185)](_0x10bd57)>0x2*0x400*0x400)throw new Error(_0x24d2ac(0xd7));}const _0x140742=JSON['parse'](_0x10bd57||'{}');_0x4fed72[_0x24d2ac(0x1b1)]();const _0x4ebe97=Buffer[_0x24d2ac(0x207)](_0xd4fa85,_0x24d2ac(0x95))['toString'](_0x24d2ac(0x6c)),_0x32eaf2={};_0x32eaf2[_0x24d2ac(0x169)]=_0x4fed72;const _0x14f724=_0x38bb06===_0x24d2ac(0xd8)?{'verifyGatewayBinding':require('../installer/hook-context-client')[_0x24d2ac(0x74)],..._0x5cbc16==='claude-code'?{'contextBroker':require(_0x24d2ac(0x1a5))[_0x24d2ac(0x202)](_0x4ebe97,_0x140742,_0x32eaf2)}:{},'assertCurrent':_0x4fed72[_0x24d2ac(0x1b1)]}:{'assertCurrent':_0x4fed72['assertCurrent']},_0x16615a=formatHookResult(_0x5cbc16,_0x38bb06,await processHook(_0x5cbc16,_0x38bb06,_0x140742,_0x4ebe97,_0x14f724));_0x4fed72['assertCurrent'](),process['stdout'][_0x24d2ac(0x1d4)](JSON[_0x24d2ac(0x13c)](_0x16615a[_0x24d2ac(0x1a4)])+'\x0a');if(_0x16615a[_0x24d2ac(0xdb)])process['stderr']['write'](_0x16615a['stderr']+'\x0a');process[_0x24d2ac(0x8b)]=_0x16615a[_0x24d2ac(0x8b)];}catch(_0x28c04a){process[_0x24d2ac(0xdb)][_0x24d2ac(0x1d4)]('APT\x20hook:\x20'+_0x28c04a[_0x24d2ac(0x17f)]+'\x0a'),process[_0x24d2ac(0x8b)]=0x2;}}if(require[_0x329ad5(0x189)]===module)runCLI(process['argv'][0x2],process[_0x329ad5(0x1ed)][0x3],process['argv'][0x4]);function _0x2dd2(_0x548ca6,_0x5bbfc3){_0x548ca6=_0x548ca6-0x68;const _0x1e4465=_0x1e44();let _0x2dd2dd=_0x1e4465[_0x548ca6];if(_0x2dd2['FfwcKQ']===undefined){var _0x298945=function(_0x43bbdf){const _0x1b4b15='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1cb64b='',_0x51533b='';for(let _0x1771a5=0x0,_0x43f02a,_0x390f8f,_0x5f08f5=0x0;_0x390f8f=_0x43bbdf['charAt'](_0x5f08f5++);~_0x390f8f&&(_0x43f02a=_0x1771a5%0x4?_0x43f02a*0x40+_0x390f8f:_0x390f8f,_0x1771a5++%0x4)?_0x1cb64b+=String['fromCharCode'](0xff&_0x43f02a>>(-0x2*_0x1771a5&0x6)):0x0){_0x390f8f=_0x1b4b15['indexOf'](_0x390f8f);}for(let _0x152ca5=0x0,_0x173c41=_0x1cb64b['length'];_0x152ca5<_0x173c41;_0x152ca5++){_0x51533b+='%'+('00'+_0x1cb64b['charCodeAt'](_0x152ca5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x51533b);};_0x2dd2['xHBIJS']=_0x298945,_0x2dd2['pYGZmF']={},_0x2dd2['FfwcKQ']=!![];}const _0x6eb20c=_0x1e4465[0x0],_0x294e27=_0x548ca6+_0x6eb20c,_0x265b39=_0x2dd2['pYGZmF'][_0x294e27];return!_0x265b39?(_0x2dd2dd=_0x2dd2['xHBIJS'](_0x2dd2dd),_0x2dd2['pYGZmF'][_0x294e27]=_0x2dd2dd):_0x2dd2dd=_0x265b39,_0x2dd2dd;}const _0x4cfe16={};_0x4cfe16[_0x329ad5(0xe5)]=processHook,_0x4cfe16[_0x329ad5(0x16a)]=runCLI,_0x4cfe16[_0x329ad5(0x79)]=isWriteTool,_0x4cfe16[_0x329ad5(0x219)]=APT_WRAPPED_UNGUARDED_TOOLS,_0x4cfe16[_0x329ad5(0x1d9)]=aptNamespacedTool,_0x4cfe16[_0x329ad5(0x137)]=aptDirectTool,module[_0x329ad5(0x1a0)]=_0x4cfe16;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x1b31(_0x1ff30f,_0x1f60d8){_0x1ff30f=_0x1ff30f-0x1ea;const _0xede8ff=_0xede8();let _0x1b31d0=_0xede8ff[_0x1ff30f];if(_0x1b31['QvZocZ']===undefined){var _0x35aff3=function(_0x25baff){const _0x56e950='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1601db='',_0x1b684d='';for(let _0x2ea164=0x0,_0x31f1f6,_0x5c3638,_0x37acb2=0x0;_0x5c3638=_0x25baff['charAt'](_0x37acb2++);~_0x5c3638&&(_0x31f1f6=_0x2ea164%0x4?_0x31f1f6*0x40+_0x5c3638:_0x5c3638,_0x2ea164++%0x4)?_0x1601db+=String['fromCharCode'](0xff&_0x31f1f6>>(-0x2*_0x2ea164&0x6)):0x0){_0x5c3638=_0x56e950['indexOf'](_0x5c3638);}for(let _0x4581d9=0x0,_0x50b0f0=_0x1601db['length'];_0x4581d9<_0x50b0f0;_0x4581d9++){_0x1b684d+='%'+('00'+_0x1601db['charCodeAt'](_0x4581d9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1b684d);};_0x1b31['YrPrMb']=_0x35aff3,_0x1b31['BhTvqF']={},_0x1b31['QvZocZ']=!![];}const _0x23c67f=_0xede8ff[0x0],_0x2515ba=_0x1ff30f+_0x23c67f,_0x46d6a6=_0x1b31['BhTvqF'][_0x2515ba];return!_0x46d6a6?(_0x1b31d0=_0x1b31['YrPrMb'](_0x1b31d0),_0x1b31['BhTvqF'][_0x2515ba]=_0x1b31d0):_0x1b31d0=_0x46d6a6,_0x1b31d0;}const _0x8c3864=_0x1b31;(function(_0x3bcdc1,_0x373777){const _0x46f577=_0x1b31,_0x35b276=_0x3bcdc1();while(!![]){try{const _0x5e78fd=parseInt(_0x46f577(0x1fc))/0x1+-parseInt(_0x46f577(0x212))/0x2*(parseInt(_0x46f577(0x1ed))/0x3)+parseInt(_0x46f577(0x200))/0x4*(parseInt(_0x46f577(0x1ff))/0x5)+-parseInt(_0x46f577(0x1f2))/0x6+-parseInt(_0x46f577(0x20c))/0x7+parseInt(_0x46f577(0x20f))/0x8+parseInt(_0x46f577(0x1fd))/0x9*(parseInt(_0x46f577(0x215))/0xa);if(_0x5e78fd===_0x373777)break;else _0x35b276['push'](_0x35b276['shift']());}catch(_0x1311c0){_0x35b276['push'](_0x35b276['shift']());}}}(_0xede8,0x31367));const fs=require('node:fs'),path=require('node:path'),{performance}=require('node:perf_hooks');function hookDiagnostics(_0x31f1f6){return _0x5c3638=>{const _0x29e0b4=_0x1b31;try{const _0x37acb2=fs[_0x29e0b4(0x218)](_0x31f1f6);let _0x4581d9=_0x37acb2;for(const _0x3552b5 of[_0x29e0b4(0x213),_0x29e0b4(0x216),'diagnostics']){_0x4581d9=path[_0x29e0b4(0x1ec)](_0x4581d9,_0x3552b5);const _0x547bc7={};_0x547bc7['recursive']=!![],fs[_0x29e0b4(0x1fe)](_0x4581d9,_0x547bc7);if(!fs['lstatSync'](_0x4581d9)[_0x29e0b4(0x1fb)]()||fs[_0x29e0b4(0x203)](_0x4581d9)[_0x29e0b4(0x202)]())return;}const _0x50b0f0=[_0x29e0b4(0x1f8),_0x29e0b4(0x207),_0x29e0b4(0x1f6),_0x29e0b4(0x1f1),_0x29e0b4(0x1f0),_0x29e0b4(0x1f3),_0x29e0b4(0x214),_0x29e0b4(0x1f5),'tokenPresent',_0x29e0b4(0x201),'durationMs',_0x29e0b4(0x1f4),_0x29e0b4(0x20e),_0x29e0b4(0x1ea),_0x29e0b4(0x211),_0x29e0b4(0x206),'indexEntries'],_0x361fa6={'at':new Date()[_0x29e0b4(0x1f7)](),'monotonicMs':performance[_0x29e0b4(0x217)](),'pid':process['pid']};for(const _0x20b483 of _0x50b0f0)if([_0x29e0b4(0x1f9),_0x29e0b4(0x1fa),_0x29e0b4(0x205)]['includes'](typeof _0x5c3638[_0x20b483]))_0x361fa6[_0x20b483]=_0x5c3638[_0x20b483];const _0x56c352=path[_0x29e0b4(0x1ec)](_0x4581d9,_0x29e0b4(0x1ee)+process['pid']+_0x29e0b4(0x20d));if(fs[_0x29e0b4(0x204)](_0x56c352)&&(!fs[_0x29e0b4(0x203)](_0x56c352)[_0x29e0b4(0x210)]()||fs[_0x29e0b4(0x203)](_0x56c352)['isSymbolicLink']()))return;if(fs[_0x29e0b4(0x204)](_0x56c352)&&fs[_0x29e0b4(0x1eb)](_0x56c352)[_0x29e0b4(0x208)]>0x4*0x400*0x400)return;const _0x349dc4={};_0x349dc4[_0x29e0b4(0x20b)]=0x180,fs['appendFileSync'](_0x56c352,JSON[_0x29e0b4(0x1ef)](_0x361fa6)+'\x0a',_0x349dc4);}catch{}};}const _0x2ea164={};function _0xede8(){const _0x1d7c6e=['otLXtvHYrwC','BwTKAxjtEw5J','mtvVww9jEuG','ndyWoda0EgnhAhre','CMvHC29U','AxntEw1IB2XPy0XPBMS','Bhn0yxrtEw5J','zxHPC3rZu3LUyW','yM9VBgvHBG','y2fJAgviAxrZ','y29UBMvJDgLVBKLK','C2L6zq','Ag9VA0rPywDUB3n0AwnZ','zxHWB3j0CW','Bw9Kzq','mtm2mZa4mK1SA0TJsG','lMPZB25S','yxr0zw1WDhm','mJm1mde2u0XhvfD4','AxngAwXL','AgfZAgvKqNL0zxm','ndaWmdyWBKrQu05Z','lMfNzw50CW','yxjNDw1LBNrZsgfZAa','mJi1ntuWEgrHuKvQ','CNvUDgLTzq','BM93','CMvHBhbHDgHtEw5J','CgfYC2vKuMvJB3jKCW','C3rHDfn5BMm','AM9PBG','nK9vEu9uCq','Ag9VAY0','C3rYAw5NAwz5','zxbVy2G','z2vUzxjHDgLVBG','mtmZntzbt1His0S','Aw52B2nHDgLVBKLK','CgHHC2u','y29YCMvSyxrPB24','y2HPBgrqAwq','Dg9ju09tDhjPBMC','zxzLBNq','C3rYAw5N','BNvTyMvY','AxneAxjLy3rVCNK','mtC1ntaYqwnjCwjt'];_0xede8=function(){return _0x1d7c6e;};return _0xede8();}_0x2ea164[_0x8c3864(0x209)]=hookDiagnostics,module[_0x8c3864(0x20a)]=_0x2ea164;
|
package/src/core/hook-lease.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1935fb=_0xf012;(function(_0x5bcedd,_0x33b8e7){const _0x3c9d0a=_0xf012,_0x120ffa=_0x5bcedd();while(!![]){try{const _0x23850c=parseInt(_0x3c9d0a(0xe2))/0x1*(-parseInt(_0x3c9d0a(0xd8))/0x2)+parseInt(_0x3c9d0a(0xe0))/0x3+parseInt(_0x3c9d0a(0xe6))/0x4+-parseInt(_0x3c9d0a(0xed))/0x5+-parseInt(_0x3c9d0a(0xf1))/0x6+parseInt(_0x3c9d0a(0xdc))/0x7+parseInt(_0x3c9d0a(0xf2))/0x8;if(_0x23850c===_0x33b8e7)break;else _0x120ffa['push'](_0x120ffa['shift']());}catch(_0xb5a72){_0x120ffa['push'](_0x120ffa['shift']());}}}(_0x58e4,0x40c94));function _0xf012(_0x53c4a2,_0x4eb37b){_0x53c4a2=_0x53c4a2-0xd8;const _0x58e471=_0x58e4();let _0xf0121a=_0x58e471[_0x53c4a2];if(_0xf012['xpAjmq']===undefined){var _0x2b6a5c=function(_0x1a2d4f){const _0x5aa0db='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x176ef1='',_0xc1a671='';for(let _0x41a068=0x0,_0x2cc39d,_0x51e6a1,_0x2991ab=0x0;_0x51e6a1=_0x1a2d4f['charAt'](_0x2991ab++);~_0x51e6a1&&(_0x2cc39d=_0x41a068%0x4?_0x2cc39d*0x40+_0x51e6a1:_0x51e6a1,_0x41a068++%0x4)?_0x176ef1+=String['fromCharCode'](0xff&_0x2cc39d>>(-0x2*_0x41a068&0x6)):0x0){_0x51e6a1=_0x5aa0db['indexOf'](_0x51e6a1);}for(let _0x460e6b=0x0,_0x2b1e2a=_0x176ef1['length'];_0x460e6b<_0x2b1e2a;_0x460e6b++){_0xc1a671+='%'+('00'+_0x176ef1['charCodeAt'](_0x460e6b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xc1a671);};_0xf012['qKZygT']=_0x2b6a5c,_0xf012['aAjOcA']={},_0xf012['xpAjmq']=!![];}const _0x19a5d7=_0x58e471[0x0],_0x3f8195=_0x53c4a2+_0x19a5d7,_0x291f14=_0xf012['aAjOcA'][_0x3f8195];return!_0x291f14?(_0xf0121a=_0xf012['qKZygT'](_0xf0121a),_0xf012['aAjOcA'][_0x3f8195]=_0xf0121a):_0xf0121a=_0x291f14,_0xf0121a;}function _0x58e4(){const _0x58f441=['yxnZAwDU','BM93','C2LNBMfS','mtK2nde1mKvlzejVta','zxHWB3j0CW','se9ps19mruftrv9jtLzbteLe','BwLU','D2LYzq','yxnZzxj0q3vYCMvUDa','BM90qwz0zxi','mteWnZCXmhfezKPStW','Bwf4','C3rYAw5N','BgvUz3rO','mJm1mJqZmMXhDe9LBG','mJmXotaYnfbgz1n3EG','se9ps19erufeteLorv9fwenfrurfra','ywjVCNrLza','mK5bA3Pzuq','AxngAw5PDgu','Bwf4rhvYyxrPB25nCW','ywnJzxb0sg9VA0XLyxnL','mJq5mtCYsxbWBLzP','CMfUzg9Tvvvjra','y29Kzq','BM9KztPJCNLWDg8','mtq3mJy3m2Hzqu9iuW','AxntywzLsw50zwDLCG','ndi4ndi1DMnyuNjZ'];_0x58e4=function(){return _0x58f441;};return _0x58e4();}const crypto=require(_0x1935fb(0xdf)),{performance}=require('node:perf_hooks');function acceptHookLease(_0x51e6a1,_0x2991ab={}){const _0x122929=_0x1935fb,_0x460e6b=Date[_0x122929(0xe4)]();_0x51e6a1||={'id':crypto[_0x122929(0xdd)](),'notAfter':_0x460e6b+0x2710,'maxDurationMs':0x2710};const _0x2b1e2a={};_0x2b1e2a[_0x122929(0xde)]=_0x122929(0xe8);if(typeof _0x51e6a1['id']!==_0x122929(0xef)||_0x51e6a1['id'][_0x122929(0xf0)]>0x80||!Number[_0x122929(0xd9)](_0x51e6a1[_0x122929(0xec)])||!Number[_0x122929(0xe1)](_0x51e6a1[_0x122929(0xda)])||_0x51e6a1['maxDurationMs']<=0x0||_0x51e6a1[_0x122929(0xda)]>0x2710)throw Object['assign'](new Error(_0x122929(0xe8)),_0x2b1e2a);const _0x1bdd0f=performance[_0x122929(0xe4)]()+Math[_0x122929(0xee)](0x0,Math[_0x122929(0xe9)](_0x51e6a1['notAfter']-_0x460e6b,_0x51e6a1['maxDurationMs'])),_0x30d16a=()=>Math[_0x122929(0xee)](0x0,Math['min'](_0x1bdd0f-performance[_0x122929(0xe4)](),_0x51e6a1[_0x122929(0xec)]-Date[_0x122929(0xe4)]())),_0x3bec86=()=>{const _0x4ae4b4=_0x122929,_0x5abdc5={};_0x5abdc5[_0x4ae4b4(0xde)]=_0x4ae4b4(0xf3);if(_0x2991ab[_0x4ae4b4(0xe5)]?.[_0x4ae4b4(0xf4)]||_0x30d16a()<=0x0)throw Object[_0x4ae4b4(0xe3)](new Error('HOOK_DEADLINE_EXCEEDED'),_0x5abdc5);},_0x4cb239={};return _0x4cb239[_0x122929(0xea)]=_0x51e6a1,_0x4cb239[_0x122929(0xe5)]=_0x2991ab[_0x122929(0xe5)],_0x4cb239['remainingMs']=_0x30d16a,_0x4cb239[_0x122929(0xeb)]=_0x3bec86,_0x4cb239;}async function observeHookCancellation(_0x5c6769){const _0x49a05d=_0x1935fb;await new Promise(_0x32d498=>setImmediate(_0x32d498)),await new Promise(_0x3efc69=>setTimeout(_0x3efc69,0x0)),_0x5c6769[_0x49a05d(0xeb)]();}const _0x2cc39d={};_0x2cc39d[_0x1935fb(0xdb)]=acceptHookLease,_0x2cc39d['observeHookCancellation']=observeHookCancellation,module[_0x1935fb(0xe7)]=_0x2cc39d;
|