@lovrabet/lovrabet-cli 2.3.4 → 2.3.5-beta.2
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 +44 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/approval/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/import-excel.d.ts +2 -0
- package/lib/commands/data/import-excel.js +1 -0
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.d.ts +21 -5
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.d.ts +1 -0
- package/lib/errors.js +1 -1
- package/lib/framework/access-error.d.ts +5 -0
- package/lib/framework/access-error.js +1 -0
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.d.ts +2 -17
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-import/auto-id-runner.d.ts +25 -0
- package/lib/services/dataset-import/auto-id-runner.js +1 -0
- package/lib/services/dataset-import/excel-reader.d.ts +3 -0
- package/lib/services/dataset-import/excel-reader.js +1 -0
- package/lib/services/dataset-import/metadata.d.ts +2 -0
- package/lib/services/dataset-import/metadata.js +1 -0
- package/lib/services/dataset-import/preview.d.ts +4 -0
- package/lib/services/dataset-import/preview.js +1 -0
- package/lib/services/dataset-import/runner.d.ts +63 -0
- package/lib/services/dataset-import/runner.js +1 -0
- package/lib/services/dataset-import/types.d.ts +33 -0
- package/lib/services/dataset-import/types.js +1 -0
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +8 -3
- package/skills/lovrabet/SKILL.md +10 -5
- package/skills/lovrabet/guides/dataset-and-data-workflow.md +4 -2
- package/skills/lovrabet/guides/role-and-permission-workflow.md +14 -0
- package/skills/lovrabet/guides/sql-and-bff-workflow.md +1 -1
- package/skills/lovrabet/guides/troubleshooting.md +7 -1
- package/skills/lovrabet/references/instant-api-workflow.md +6 -2
- package/skills/lovrabet/references/lovrabet-approval-workflow.md +16 -2
- package/skills/lovrabet/references/lovrabet-bff-workflow.md +9 -0
- package/skills/lovrabet/references/lovrabet-db-table-excel-import.md +113 -0
- package/skills/lovrabet/references/lovrabet-excel-import.md +31 -0
- package/skills/lovrabet/references/lovrabet-kb-workflow.md +1 -1
- package/skills/lovrabet/references/lovrabet-personal-bff-workflow.md +2 -0
- package/skills/lovrabet.manifest.json +5 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2bc63b,_0x52ea70){const _0x118cd4=a117_0x37b7,_0x5159b1=_0x2bc63b();while(!![]){try{const _0x5334e2=parseInt(_0x118cd4(0x93))/0x1*(-parseInt(_0x118cd4(0x80))/0x2)+-parseInt(_0x118cd4(0x9f))/0x3+-parseInt(_0x118cd4(0x96))/0x4+-parseInt(_0x118cd4(0x84))/0x5+parseInt(_0x118cd4(0x88))/0x6*(-parseInt(_0x118cd4(0x94))/0x7)+-parseInt(_0x118cd4(0x95))/0x8*(parseInt(_0x118cd4(0x89))/0x9)+parseInt(_0x118cd4(0x7f))/0xa;if(_0x5334e2===_0x52ea70)break;else _0x5159b1['push'](_0x5159b1['shift']());}catch(_0x547464){_0x5159b1['push'](_0x5159b1['shift']());}}}(a117_0xabba,0x3b2dc));export function toKebab(_0x426fb5){const _0xce9cee=a117_0x37b7;return _0x426fb5['replace'](/_/g,'-')[_0xce9cee(0x8a)](/-([A-Z]+)/g,(_0x290cac,_0x4c0358)=>'-'+_0x4c0358[_0xce9cee(0x83)]())['replace'](/([a-z0-9])([A-Z])/g,(_0x3b315a,_0x22ffcf,_0x397fa8)=>_0x22ffcf+'-'+_0x397fa8)[_0xce9cee(0x83)]();}function a117_0x37b7(_0x4002b7,_0x59c570){_0x4002b7=_0x4002b7-0x79;const _0xabba70=a117_0xabba();let _0x37b765=_0xabba70[_0x4002b7];return _0x37b765;}function buildKnownFlags(_0x281192){const _0x56a8ac=a117_0x37b7,_0x43ca04=new Set();for(const _0x48bb99 of _0x281192){_0x43ca04['add'](_0x48bb99[_0x56a8ac(0x86)]),_0x43ca04[_0x56a8ac(0x92)](toCamelCase(_0x48bb99[_0x56a8ac(0x86)]));}for(const _0x4ade8e of['dry-run',_0x56a8ac(0x9e),'yes','format']){_0x43ca04[_0x56a8ac(0x92)](_0x4ade8e);}for(const _0x1e09cb of[_0x56a8ac(0x8d),_0x56a8ac(0x85),_0x56a8ac(0x7b),_0x56a8ac(0x7d),_0x56a8ac(0x7e),_0x56a8ac(0x79),'ci',_0x56a8ac(0x90),'version']){_0x43ca04['add'](_0x1e09cb);}return _0x43ca04;}function buildFlagTypeMap(_0xbd979e){const _0x40b540=a117_0x37b7,_0x5e961e=new Map();for(const _0x406c50 of _0xbd979e){_0x5e961e[_0x40b540(0x7c)](_0x406c50['name'],_0x406c50[_0x40b540(0x9d)]),_0x5e961e['set'](toCamelCase(_0x406c50[_0x40b540(0x86)]),_0x406c50[_0x40b540(0x9d)]);}return _0x5e961e;}function toCamelCase(_0x406c08){const _0x20a48b=a117_0x37b7;return _0x406c08['replace'](/-([a-z])/g,(_0x38c04e,_0x7b1aaf)=>_0x7b1aaf[_0x20a48b(0x8b)]());}function aliasHandler(_0x5718e5,_0x2bb127){const _0x47343d=a117_0x37b7,_0x249b3c=[];for(const _0xf06c5c of Object[_0x47343d(0x8c)](_0x5718e5)){if(_0x2bb127[_0x47343d(0x9b)](_0xf06c5c))continue;const _0x50e603=toKebab(_0xf06c5c);_0x50e603!==_0xf06c5c&&_0x2bb127['has'](_0x50e603)&&_0x249b3c[_0x47343d(0x8f)]({'original':_0xf06c5c,'corrected':_0x50e603,'handler':_0x47343d(0x9a)});}return _0x249b3c;}function stickyHandler(_0x566222,_0x1a4ec4,_0x141fd6){const _0x48a0a5=a117_0x37b7,_0x402c7c=[];for(const [_0xf714b,_0x3b3b95]of Object[_0x48a0a5(0x81)](_0x566222)){if(_0x3b3b95!==!![])continue;for(let _0x27ef88=_0xf714b[_0x48a0a5(0x82)]-0x1;_0x27ef88>0x0;_0x27ef88--){const _0x474c4b=_0xf714b['slice'](0x0,_0x27ef88),_0x5cbf8c=_0xf714b['slice'](_0x27ef88),_0x3d65d2=toKebab(_0x474c4b),_0xa42294=toCamelCase(_0x474c4b),_0x4c1c91=_0x1a4ec4[_0x48a0a5(0x9b)](_0x474c4b)?_0x474c4b:_0x1a4ec4[_0x48a0a5(0x9b)](_0x3d65d2)?_0x3d65d2:_0x1a4ec4[_0x48a0a5(0x9b)](_0xa42294)?_0xa42294:null;if(!_0x4c1c91)continue;const _0x703b5e=_0x141fd6[_0x48a0a5(0x91)](_0x4c1c91)??'string';let _0x384c64;if(_0x703b5e===_0x48a0a5(0x97)){const _0xc94b06=Number(_0x5cbf8c);if(isNaN(_0xc94b06)||_0x5cbf8c==='')continue;_0x384c64=_0xc94b06;}else{if(_0x703b5e==='boolean')continue;else{if(_0x5cbf8c==='')continue;_0x384c64=_0x5cbf8c;}}_0x402c7c[_0x48a0a5(0x8f)]({'original':_0xf714b,'corrected':_0x4c1c91+'='+_0x384c64,'handler':_0x48a0a5(0x99)});break;}}return _0x402c7c;}function a117_0xabba(){const _0x2f6375=['push','global','get','add','1dLPUIJ','238iGrZsQ','56GTUJBI','1373784FMLopi','number','original','sticky','alias','has','indexOf','type','dryRun','1379385pjeFUU','non-interactive','corrected','appcode','set','app','nonInteractive','15210050YRautd','830814anFlWf','entries','length','toLowerCase','71105ziuSlF','env','name','string','3138hksUVK','35946STTYDc','replace','toUpperCase','keys','help','slice'];a117_0xabba=function(){return _0x2f6375;};return a117_0xabba();}export function correctFlags(_0x16722d,_0x946cd5){const _0x28100f=a117_0x37b7,_0x4da436=buildKnownFlags(_0x946cd5),_0x271964=buildFlagTypeMap(_0x946cd5),_0x1331b7=aliasHandler(_0x16722d,_0x4da436),_0x290f50=stickyHandler(_0x16722d,_0x4da436,_0x271964),_0x567507=[..._0x1331b7,..._0x290f50];if(_0x567507[_0x28100f(0x82)]===0x0)return{'flags':_0x16722d,'corrections':[]};const _0x2d4e29={..._0x16722d},_0x4a7718=new Set();for(const _0x5c7e49 of _0x1331b7){_0x2d4e29[_0x5c7e49[_0x28100f(0x7a)]]=_0x16722d[_0x5c7e49[_0x28100f(0x98)]],_0x4a7718[_0x28100f(0x92)](_0x5c7e49[_0x28100f(0x98)]);}for(const _0x38eedc of _0x290f50){const _0x1e8646=_0x38eedc[_0x28100f(0x7a)][_0x28100f(0x9c)]('='),_0x16cc02=_0x38eedc[_0x28100f(0x7a)][_0x28100f(0x8e)](0x0,_0x1e8646),_0x1aa21f=_0x38eedc[_0x28100f(0x7a)][_0x28100f(0x8e)](_0x1e8646+0x1),_0x1e5ac7=_0x271964[_0x28100f(0x91)](_0x16cc02)??_0x28100f(0x87);_0x1e5ac7===_0x28100f(0x97)?_0x2d4e29[_0x16cc02]=Number(_0x1aa21f):_0x2d4e29[_0x16cc02]=_0x1aa21f,_0x4a7718[_0x28100f(0x92)](_0x38eedc[_0x28100f(0x98)]);}for(const _0x242448 of _0x4a7718){delete _0x2d4e29[_0x242448];}return{'flags':_0x2d4e29,'corrections':_0x567507};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a118_0x49293a=a118_0x49cd;(function(_0x4b283e,_0x547489){const _0x443f59=a118_0x49cd,_0x2b88c4=_0x4b283e();while(!![]){try{const _0x5d8bc3=-parseInt(_0x443f59(0x7d))/0x1*(parseInt(_0x443f59(0x8d))/0x2)+parseInt(_0x443f59(0x87))/0x3+parseInt(_0x443f59(0xa0))/0x4+-parseInt(_0x443f59(0x93))/0x5*(-parseInt(_0x443f59(0x9a))/0x6)+parseInt(_0x443f59(0x80))/0x7*(parseInt(_0x443f59(0x9b))/0x8)+parseInt(_0x443f59(0x99))/0x9*(parseInt(_0x443f59(0x81))/0xa)+parseInt(_0x443f59(0x8b))/0xb*(-parseInt(_0x443f59(0x97))/0xc);if(_0x5d8bc3===_0x547489)break;else _0x2b88c4['push'](_0x2b88c4['shift']());}catch(_0x4c74cf){_0x2b88c4['push'](_0x2b88c4['shift']());}}}(a118_0x4f75,0x21ce7));import{CliErrors}from'../errors.js';const RATE_LIMIT_ERROR_CODES=new Set([a118_0x49293a(0xa1),a118_0x49293a(0x7f),a118_0x49293a(0x96)]);function nonEmptyString(_0x3d8a34){const _0x556993=a118_0x49293a;if(typeof _0x3d8a34!==_0x556993(0x7e))return undefined;const _0x19bcca=_0x3d8a34[_0x556993(0x9c)]();return _0x19bcca||undefined;}function a118_0x49cd(_0x7e0b8b,_0x2a5cc4){_0x7e0b8b=_0x7e0b8b-0x7b;const _0x4f7580=a118_0x4f75();let _0x49cd87=_0x4f7580[_0x7e0b8b];return _0x49cd87;}function a118_0x4f75(){const _0x1b69e2=['rateLimited','869CKfeSi','status','234WUJIed','\x20seconds\x20before\x20retrying.','Wait\x20','toUpperCase','object','call','104310twfHuW','Retry\x20after\x20a\x20short\x20delay.','errorCode','IP_RATE_LIMIT_EXCEEDED','38268zCWGnY','retry-after','9HhVGkx','42vZMZNF','15112aRvbCn','trim','Request\x20rate\x20limit\x20exceeded.','function','retryAfter','47968rlozyV','EXCEED_MAX_QPS_LIMIT','retryAfterSeconds','has','1518BLGuSR','string','MAX_QPS_LIMIT','42eLsugp','1580620UIcjEI','test','\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.','Retry\x20after\x20','entries','isArray','721758nkrJpO','isInteger','toLowerCase'];a118_0x4f75=function(){return _0x1b69e2;};return a118_0x4f75();}function buildRetryHint(_0x354473){const _0x1d9ad8=a118_0x49293a,_0x51bb05=nonEmptyString(_0x354473),_0x242d0a=_0x51bb05?/^\d+$/[_0x1d9ad8(0x82)](_0x51bb05)?_0x1d9ad8(0x8f)+_0x51bb05+_0x1d9ad8(0x8e):_0x1d9ad8(0x84)+_0x51bb05+'.':_0x1d9ad8(0x94);return _0x242d0a+_0x1d9ad8(0x83);}export function createRateLimitError(_0x13094e){const _0x5da86d=a118_0x49293a,_0x448c8e=nonEmptyString(_0x13094e[_0x5da86d(0x95)])?.[_0x5da86d(0x90)](),_0x3d4edd=Number(_0x13094e[_0x5da86d(0x8c)])===0x1ad||_0x448c8e!==undefined&&RATE_LIMIT_ERROR_CODES[_0x5da86d(0x7c)](_0x448c8e);if(!_0x3d4edd)return undefined;return CliErrors[_0x5da86d(0x8a)](nonEmptyString(_0x13094e['message'])??_0x5da86d(0x9d),buildRetryHint(_0x13094e[_0x5da86d(0x9f)]));}export function readRetryAfter(_0x4eb337){const _0x2349ee=a118_0x49293a;if(!_0x4eb337||typeof _0x4eb337!==_0x2349ee(0x91))return undefined;const _0x1c506a=_0x4eb337['get'];if(typeof _0x1c506a===_0x2349ee(0x9e)){const _0x4f810f=_0x1c506a[_0x2349ee(0x92)](_0x4eb337,'Retry-After')??_0x1c506a['call'](_0x4eb337,_0x2349ee(0x98));return nonEmptyString(_0x4f810f);}for(const [_0x1f26cd,_0x4dd252]of Object[_0x2349ee(0x85)](_0x4eb337)){if(_0x1f26cd[_0x2349ee(0x89)]()===_0x2349ee(0x98))return nonEmptyString(_0x4dd252)??(typeof _0x4dd252==='number'?String(_0x4dd252):undefined);}return undefined;}export function readRetryAfterSeconds(_0x134868){const _0x35f0ce=a118_0x49293a;if(!_0x134868||typeof _0x134868!==_0x35f0ce(0x91)||Array[_0x35f0ce(0x86)](_0x134868))return undefined;const _0x3c690e=_0x134868[_0x35f0ce(0x7b)];if(typeof _0x3c690e==='number')return Number[_0x35f0ce(0x88)](_0x3c690e)&&_0x3c690e>=0x0?String(_0x3c690e):undefined;const _0x15385b=nonEmptyString(_0x3c690e);return _0x15385b&&/^\d+$/[_0x35f0ce(0x82)](_0x15385b)?_0x15385b:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a119_0x617a29=a119_0x2592;(function(_0x2330d5,_0x4dc6ac){const _0x5d7573=a119_0x2592,_0x253ed9=_0x2330d5();while(!![]){try{const _0x200ae3=-parseInt(_0x5d7573(0x1ec))/0x1+parseInt(_0x5d7573(0x1f3))/0x2+parseInt(_0x5d7573(0x1e0))/0x3*(parseInt(_0x5d7573(0x1de))/0x4)+parseInt(_0x5d7573(0x1e5))/0x5+-parseInt(_0x5d7573(0x1dd))/0x6*(-parseInt(_0x5d7573(0x1ed))/0x7)+parseInt(_0x5d7573(0x1db))/0x8+-parseInt(_0x5d7573(0x1d5))/0x9;if(_0x200ae3===_0x4dc6ac)break;else _0x253ed9['push'](_0x253ed9['shift']());}catch(_0x2ac338){_0x253ed9['push'](_0x253ed9['shift']());}}}(a119_0x3ff2,0x3f084));import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a119_0x3ff2(){const _0x795766=['page','962796BRtcuY','Run\x20`','command','orderby','Unknown\x20flag\x20--','10638810FjSFBQ','\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`','service','filter','currentpage','active','3695520UorFLD','name','108186HcWTFa','436EuhTyc','current-page','9849WMUUXK','\x20--help`\x20to\x20see\x20accepted\x20flags.','order-by','has','\x20for\x20`','320345jCBIgw','where','validation','asc','add','entries','Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20','159387Piruyw','91tOKkIP','page-size','flags','no-','select'];a119_0x3ff2=function(){return _0x795766;};return a119_0x3ff2();}function a119_0x2592(_0x38f811,_0xa2fea){_0x38f811=_0x38f811-0x1d2;const _0x3ff239=a119_0x3ff2();let _0x2592b5=_0x3ff239[_0x38f811];return _0x2592b5;}import{toKebab}from'../framework/preparse.js';const FILTER_BODY_FIELDS=new Set([a119_0x617a29(0x1e6),a119_0x617a29(0x1f1),a119_0x617a29(0x1e2),a119_0x617a29(0x1d3),a119_0x617a29(0x1df),a119_0x617a29(0x1d9),a119_0x617a29(0x1f2),a119_0x617a29(0x1ee),'pagesize']);export function assertKnownCommandFlags(_0x347ed6,_0x61fa77){const _0x63b10c=a119_0x617a29,_0x778280=new Set(['version']);for(const _0x30c634 of GLOBAL_FLAGS){_0x778280[_0x63b10c(0x1e9)](_0x30c634['name']),_0x778280['add'](toKebab(_0x30c634['meowKey']));}for(const _0x148579 of _0x347ed6[_0x63b10c(0x1ef)]??[]){_0x778280[_0x63b10c(0x1e9)](_0x148579[_0x63b10c(0x1dc)]);}for(const [_0x1cbbf5,_0x3b566c]of Object[_0x63b10c(0x1ea)](_0x61fa77)){const _0xef795a=toKebab(_0x1cbbf5);if(_0x778280['has'](_0xef795a))continue;if(_0x3b566c===![]&&_0x778280[_0x63b10c(0x1e3)](_0x63b10c(0x1f0)+_0xef795a))continue;if(_0x347ed6[_0x63b10c(0x1d7)]==='data'&&_0x347ed6[_0x63b10c(0x1d2)]===_0x63b10c(0x1d8)&&FILTER_BODY_FIELDS['has'](_0xef795a))throw CliErrors[_0x63b10c(0x1e7)]('--'+_0xef795a+_0x63b10c(0x1d6)+CLI_BIN_NAME+'\x20data\x20filter`.',_0x63b10c(0x1eb)+('Example:\x20'+CLI_BIN_NAME+'\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20')+('\x27'+JSON['stringify']({'where':{'status':{'$eq':_0x63b10c(0x1da)}},'orderBy':[{'id':_0x63b10c(0x1e8)}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors[_0x63b10c(0x1e7)](_0x63b10c(0x1d4)+_0xef795a+_0x63b10c(0x1e4)+CLI_BIN_NAME+'\x20'+_0x347ed6['service']+'\x20'+_0x347ed6[_0x63b10c(0x1d2)]+'`.',_0x63b10c(0x1f4)+CLI_BIN_NAME+'\x20'+_0x347ed6[_0x63b10c(0x1d7)]+'\x20'+_0x347ed6[_0x63b10c(0x1d2)]+_0x63b10c(0x1e1));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a120_0x5194(_0x3e8638,_0x48ee0d){_0x3e8638=_0x3e8638-0x161;var _0x388f75=a120_0x388f();var _0x5194c8=_0x388f75[_0x3e8638];return _0x5194c8;}function a120_0x388f(){var _0x25b0b6=['8wGaeIR','6QQkEvL','3624205pgJbjT','5GpqigX','40fjhtfw','3447728gtwCAk','3781785zxyfYl','2555212hFSrNv','9940679MKsQDB','1117890BqWIMU','648910gBmlra'];a120_0x388f=function(){return _0x25b0b6;};return a120_0x388f();}(function(_0x5b4df9,_0x198f2a){var _0x59f94d=a120_0x5194,_0x3c6ade=_0x5b4df9();while(!![]){try{var _0x96ec6d=-parseInt(_0x59f94d(0x165))/0x1*(parseInt(_0x59f94d(0x161))/0x2)+parseInt(_0x59f94d(0x168))/0x3+-parseInt(_0x59f94d(0x162))/0x4*(parseInt(_0x59f94d(0x164))/0x5)+-parseInt(_0x59f94d(0x163))/0x6*(-parseInt(_0x59f94d(0x16a))/0x7)+parseInt(_0x59f94d(0x167))/0x8+-parseInt(_0x59f94d(0x16b))/0x9+-parseInt(_0x59f94d(0x166))/0xa*(-parseInt(_0x59f94d(0x169))/0xb);if(_0x96ec6d===_0x198f2a)break;else _0x3c6ade['push'](_0x3c6ade['shift']());}catch(_0xad3174){_0x3c6ade['push'](_0x3c6ade['shift']());}}}(a120_0x388f,0xce373));export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x34e795,_0x3b1e05){const _0x1bdd77=a121_0x5b93,_0x36f0c0=_0x34e795();while(!![]){try{const _0x51a421=-parseInt(_0x1bdd77(0x9d))/0x1*(parseInt(_0x1bdd77(0x8a))/0x2)+-parseInt(_0x1bdd77(0xa2))/0x3*(-parseInt(_0x1bdd77(0x7c))/0x4)+parseInt(_0x1bdd77(0xa4))/0x5*(-parseInt(_0x1bdd77(0x86))/0x6)+-parseInt(_0x1bdd77(0xa0))/0x7*(-parseInt(_0x1bdd77(0x8e))/0x8)+-parseInt(_0x1bdd77(0x8c))/0x9+parseInt(_0x1bdd77(0x95))/0xa*(-parseInt(_0x1bdd77(0x8f))/0xb)+parseInt(_0x1bdd77(0x99))/0xc*(parseInt(_0x1bdd77(0x7f))/0xd);if(_0x51a421===_0x3b1e05)break;else _0x36f0c0['push'](_0x36f0c0['shift']());}catch(_0x35f0b8){_0x36f0c0['push'](_0x36f0c0['shift']());}}}(a121_0x336e,0x258e3));function a121_0x336e(){const _0x49cb0a=['2oBRgxI','description','90225OflBty','code=','57192VDHeVo','3333DZJrom','schedule-id=','scheduled-at','\x20\x20\x20','id=','params','1750aahAeR','params=','kind','length','2318088NVjWlD','entries','\x20\x20\x20Continue?\x20[y/N]\x20','--yes','168697CBxDEg','push','name=','175pkzGaq','code','1476lgVcEp','name','3415ZGdffg','title','1616waXuvr','scheduled-at=','cron','13nwDBjp','schedule-id','affectedRecords','channel','kind=','\x20\x20\x20Affected:\x20','join','1626kiNUuM','\x20[REDACTED]','cron=','service'];a121_0x336e=function(){return _0x49cb0a;};return a121_0x336e();}import{CLI_BIN_NAME}from'../constant/cli.js';import{isSensitiveFlagName}from'../utils/redaction.js';export function buildConfirmationLines(_0x905b8c,_0x493508,_0x3ffe09){const _0xd3e2f7=a121_0x5b93,_0x13bb93=buildConfirmationContext(_0x905b8c,_0x493508,_0x3ffe09),_0x294ba1=['⚠\x20\x20High-risk\x20operation:\x20'+_0x13bb93['commandLabel']];return _0x13bb93[_0xd3e2f7(0x8b)]&&_0x294ba1[_0xd3e2f7(0x9e)](_0xd3e2f7(0x92)+_0x13bb93[_0xd3e2f7(0x8b)]),_0x13bb93['affectedRecords']&&_0x294ba1[_0xd3e2f7(0x9e)](_0xd3e2f7(0x84)+_0x13bb93[_0xd3e2f7(0x81)]),_0x294ba1[_0xd3e2f7(0x9e)](_0xd3e2f7(0x9b)),_0x294ba1;}export function reconstructCommandArgv(_0x2baf28,_0x5946fa){const _0x3f8e41=a121_0x5b93,_0x31b2b6=[CLI_BIN_NAME,_0x2baf28[_0x3f8e41(0x89)],_0x2baf28['command']];for(const [_0x17dad5,_0x171747]of Object[_0x3f8e41(0x9a)](_0x5946fa)){if(_0x171747===!![])_0x31b2b6[_0x3f8e41(0x9e)]('--'+_0x17dad5);else{if(isSensitiveFlagName(_0x17dad5)&&_0x171747!==![]&&_0x171747!==undefined&&_0x171747!=='')_0x31b2b6['push']('--'+_0x17dad5+_0x3f8e41(0x87));else _0x171747!==![]&&_0x171747!==undefined&&_0x171747!==''&&_0x31b2b6[_0x3f8e41(0x9e)]('--'+_0x17dad5+'\x20'+JSON['stringify'](_0x171747));}}return _0x31b2b6[_0x3f8e41(0x9e)](_0x3f8e41(0x9c)),_0x31b2b6['join']('\x20');}function a121_0x5b93(_0x1a7b33,_0x539f04){_0x1a7b33=_0x1a7b33-0x7b;const _0x336e30=a121_0x336e();let _0x5b93d6=_0x336e30[_0x1a7b33];return _0x5b93d6;}function buildConfirmationContext(_0x1e7ff9,_0x307f10,_0x961cf0){const _0x360d85=a121_0x5b93,_0xc2d5ad=extractAffectedRecords(_0x961cf0);return{'commandLabel':_0x307f10,'description':_0x1e7ff9[_0x360d85(0x8b)],'affectedRecords':_0xc2d5ad};}function extractAffectedRecords(_0x1c7afb){const _0x35a7b1=a121_0x5b93,_0x3d7dd3=[];if(_0x1c7afb[_0x35a7b1(0xa1)])_0x3d7dd3[_0x35a7b1(0x9e)](_0x35a7b1(0x8d)+_0x1c7afb[_0x35a7b1(0xa1)]);if(_0x1c7afb['id'])_0x3d7dd3['push'](_0x35a7b1(0x93)+_0x1c7afb['id']);if(_0x1c7afb['schedule-id'])_0x3d7dd3[_0x35a7b1(0x9e)](_0x35a7b1(0x90)+_0x1c7afb[_0x35a7b1(0x80)]);if(_0x1c7afb[_0x35a7b1(0xa3)])_0x3d7dd3[_0x35a7b1(0x9e)](_0x35a7b1(0x9f)+_0x1c7afb['name']);if(_0x1c7afb['title'])_0x3d7dd3[_0x35a7b1(0x9e)]('title='+_0x1c7afb[_0x35a7b1(0x7b)]);if(_0x1c7afb[_0x35a7b1(0x97)])_0x3d7dd3[_0x35a7b1(0x9e)](_0x35a7b1(0x83)+_0x1c7afb[_0x35a7b1(0x97)]);if(_0x1c7afb[_0x35a7b1(0x7e)])_0x3d7dd3[_0x35a7b1(0x9e)](_0x35a7b1(0x88)+_0x1c7afb[_0x35a7b1(0x7e)]);if(_0x1c7afb[_0x35a7b1(0x91)])_0x3d7dd3[_0x35a7b1(0x9e)](_0x35a7b1(0x7d)+_0x1c7afb[_0x35a7b1(0x91)]);if(_0x1c7afb[_0x35a7b1(0x82)])_0x3d7dd3[_0x35a7b1(0x9e)]('channel='+_0x1c7afb[_0x35a7b1(0x82)]);if(_0x1c7afb[_0x35a7b1(0x94)])_0x3d7dd3[_0x35a7b1(0x9e)](_0x35a7b1(0x96)+_0x1c7afb[_0x35a7b1(0x94)]);return _0x3d7dd3[_0x35a7b1(0x98)]>0x0?_0x3d7dd3[_0x35a7b1(0x85)](',\x20'):undefined;}
|
|
@@ -1,24 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview Maps SDK errors to user-facing CLI errors.
|
|
3
|
-
*
|
|
4
|
-
* Why this mapping layer exists: the `@lovrabet/sdk` throws `LovrabetError` instances
|
|
5
|
-
* whose `message` field contains internal technical details (stack traces, internal
|
|
6
|
-
* codes) unsuitable for end users. The SDK also surfaces a `description` field that
|
|
7
|
-
* contains the human-readable message set by the API team.
|
|
8
|
-
*
|
|
9
|
-
* This function extracts `description` (when available and non-empty) and uses it
|
|
10
|
-
* as the user-facing message, falling back to `message` only when `description`
|
|
11
|
-
* is absent. Rate-limit failures are mapped to the retryable `rate_limited` contract;
|
|
12
|
-
* other SDK failures retain the existing validation mapping.
|
|
13
|
-
*
|
|
14
|
-
* Design decision: non-LovrabetError errors pass through unchanged. This preserves
|
|
15
|
-
* stack traces and error types for unexpected errors, which is better for debugging
|
|
16
|
-
* than wrapping everything in a generic CLI error.
|
|
17
|
-
*/
|
|
1
|
+
/** Maps SDK failures to the CLI error contract without confusing HTTP 401 with an invalid AK. */
|
|
18
2
|
/**
|
|
19
3
|
* Maps any error thrown during command execution to a user-facing CLI error.
|
|
20
4
|
*
|
|
21
5
|
* - Rate-limited `LovrabetError` → retryable `rate_limited` `CliError`
|
|
6
|
+
* - Runtime 202 / 201 → permission_denied / auth_required with stable English guidance
|
|
22
7
|
* - Other `LovrabetError` → validation `CliError` with `description` as the message
|
|
23
8
|
* - Everything else → passed through unchanged (preserves stack trace)
|
|
24
9
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1a15c3,_0x535b35){const _0x2b27e5=a122_0x93b8,_0x5e8309=_0x1a15c3();while(!![]){try{const _0x539bff=-parseInt(_0x2b27e5(0x81))/0x1+-parseInt(_0x2b27e5(0x87))/0x2+parseInt(_0x2b27e5(0x8d))/0x3*(-parseInt(_0x2b27e5(0x8f))/0x4)+parseInt(_0x2b27e5(0x94))/0x5+-parseInt(_0x2b27e5(0x8c))/0x6+-parseInt(_0x2b27e5(0x93))/0x7*(-parseInt(_0x2b27e5(0x84))/0x8)+parseInt(_0x2b27e5(0x89))/0x9;if(_0x539bff===_0x535b35)break;else _0x5e8309['push'](_0x5e8309['shift']());}catch(_0x387863){_0x5e8309['push'](_0x5e8309['shift']());}}}(a122_0x1494,0x247d8));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';function a122_0x93b8(_0x34f0cc,_0x544d40){_0x34f0cc=_0x34f0cc-0x81;const _0x1494a3=a122_0x1494();let _0x93b8ce=_0x1494a3[_0x34f0cc];return _0x93b8ce;}import{createAccessError}from'../framework/access-error.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0x1228d0){const _0x58f2ae=a122_0x93b8;if(_0x1228d0 instanceof LovrabetError){const _0x1c4dc2=userFacingLovrabetMessage(_0x1228d0),_0x7bafaa=_0x1228d0,_0x2385c3=createRateLimitError({'status':_0x7bafaa[_0x58f2ae(0x8a)],'errorCode':_0x7bafaa[_0x58f2ae(0x91)],'message':_0x1c4dc2,'retryAfter':readRetryAfter(_0x7bafaa[_0x58f2ae(0x8e)]?.[_0x58f2ae(0x82)])??readRetryAfterSeconds(_0x7bafaa['response'])});return createAccessError(_0x7bafaa['response'],_0x7bafaa['code'])??_0x2385c3??(Number(_0x7bafaa[_0x58f2ae(0x8a)])===0x191?CliErrors[_0x58f2ae(0x86)](_0x58f2ae(0x88),_0x58f2ae(0x83)):CliErrors[_0x58f2ae(0x8b)](_0x1c4dc2));}return _0x1228d0;}function a122_0x1494(){const _0x5dd1a4=['description','apiError','580198orxOwh','Request\x20rejected\x20(HTTP\x20401).','7907031AkAqqt','status','validation','911742KTfSSV','105ASnYEe','response','32972DoKMUl','stringify','code','trim','37534ZCHKAw','523395DIiORb','108575jUTIeB','headers','The\x20response\x20does\x20not\x20identify\x20whether\x20authentication\x20or\x20permission\x20checks\x20failed.','8YBgrXa'];a122_0x1494=function(){return _0x5dd1a4;};return a122_0x1494();}function userFacingLovrabetMessage(_0x295759){const _0x485a92=a122_0x93b8,_0x2992df=_0x295759[_0x485a92(0x85)];if(_0x2992df!==undefined&&_0x2992df!==null){if(typeof _0x2992df==='string'&&_0x2992df[_0x485a92(0x92)]())return _0x2992df[_0x485a92(0x92)]();try{return JSON[_0x485a92(0x90)](_0x2992df);}catch{}}return _0x295759['message'];}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0xe0fed8,_0x54530a){const _0x519da2=a121_0x291a,_0x3f5d5f=_0xe0fed8();while(!![]){try{const _0x3e1af5=parseInt(_0x519da2(0x197))/0x1+-parseInt(_0x519da2(0x184))/0x2*(-parseInt(_0x519da2(0x161))/0x3)+parseInt(_0x519da2(0x19d))/0x4*(-parseInt(_0x519da2(0x198))/0x5)+-parseInt(_0x519da2(0x177))/0x6+-parseInt(_0x519da2(0x15e))/0x7*(parseInt(_0x519da2(0x15c))/0x8)+-parseInt(_0x519da2(0x18b))/0x9+parseInt(_0x519da2(0x175))/0xa*(parseInt(_0x519da2(0x172))/0xb);if(_0x3e1af5===_0x54530a)break;else _0x3f5d5f['push'](_0x3f5d5f['shift']());}catch(_0x1e5b18){_0x3f5d5f['push'](_0x3f5d5f['shift']());}}}(a121_0x2a33,0x363c7));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain,getRuntimeDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{assertKnownCommandFlags}from'../framework/raw-flags.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{assertCliVersionSupported,checkCliVersion}from'../utils/cli-version-check.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x3470cd){const _0x3ece4f=a121_0x291a;return void _0x3470cd,AUTH_MODE[_0x3ece4f(0x15b)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x5061ff,_0x3bce4a){const _0x206f10=a121_0x291a,_0x5f3ae3=typeof _0x3bce4a['app']===_0x206f10(0x193)&&_0x3bce4a[_0x206f10(0x16b)][_0x206f10(0x180)]();return{'rawFlags':_0x3bce4a,'appCode':_0x5061ff[_0x206f10(0x17b)]||productEnv(_0x206f10(0x16c))||(_0x5f3ae3?undefined:readAppCodeFromConfig()),'appCodeSource':_0x5061ff[_0x206f10(0x195)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x3bce4a),'defaultFormat':_0x5061ff[_0x206f10(0x174)],'defaultPageSize':_0x5061ff[_0x206f10(0x178)],'defaultVerbose':_0x5061ff[_0x206f10(0x179)],'riskLevel':_0x5061ff[_0x206f10(0x154)],'nativeToolAvailable':_0x5061ff[_0x206f10(0x165)],'accessKey':_0x5061ff[_0x206f10(0x189)],'env':_0x5061ff['env'],'mergedCli':{'defaultApp':_0x5061ff['defaultApp'],'currentApp':_0x5061ff[_0x206f10(0x15a)],'appCode':_0x5061ff['appCode']}};}export function createLovrabetRunnerAdapter(_0x27fcb6={}){const _0x59906f=a121_0x291a,_0x4bc93e={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x59906f(0x16a)](_0x267ae7=>PIPELINE_FLAG_NAMES[_0x59906f(0x181)](_0x267ae7[_0x59906f(0x156)]))['map'](({name:_0x109a5b,type:_0x42f618,description:_0x42d3d2})=>({'name':_0x109a5b,'type':_0x42f618,'description':_0x42d3d2})),'formatOutput':_0x27fcb6['formatOutput']??formatOutput,'getCommandLabel'(_0x1a111c){const _0x52bed7=_0x59906f;return CLI_BIN_NAME+'\x20'+_0x1a111c[_0x52bed7(0x19a)]+'\x20'+_0x1a111c[_0x52bed7(0x185)];},'riskPolicy':{'onViolation'(_0x139489,{def:_0x24c997,env:_0x437e32}){const _0x4cef53=_0x59906f;if(shouldRouteWriteToNativeTool(_0x24c997,_0x437e32))return;console[_0x4cef53(0x192)](_0x139489);},'createError'(_0x17e146,{def:_0x3db7c7,env:_0x3c173e}){const _0x29cec1=_0x59906f;if(shouldRouteWriteToNativeTool(_0x3db7c7,_0x3c173e))return CliErrors[_0x29cec1(0x199)](CLI_BIN_NAME+'\x20'+_0x3db7c7[_0x29cec1(0x19a)]+'\x20'+_0x3db7c7[_0x29cec1(0x185)]);return CliErrors[_0x29cec1(0x188)](_0x17e146);}},async 'prepare'(_0x5671c1,_0x1bbb10){const _0x28c6d8=_0x59906f,_0x4ba15a=resolveAuthMode(_0x1bbb10);if(_0x5671c1[_0x28c6d8(0x183)]!==![]){if(!_0x1bbb10[_0x28c6d8(0x189)])throw CliErrors['authRequired']('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x28c6d8(0x191)]+'\x20or\x20pass\x20'+productEnvName(_0x28c6d8(0x17e))+'.');const {setActiveAK:_0x360c84}=await import(_0x28c6d8(0x186));_0x360c84(_0x1bbb10[_0x28c6d8(0x189)]);}let _0x412b8c='';if(_0x5671c1['requiresAppCode']!==![]){_0x412b8c=_0x1bbb10[_0x28c6d8(0x17b)]??'',_0x412b8c=await resolveExplicitAppName(_0x5671c1,_0x1bbb10,_0x412b8c);if(!_0x412b8c){await assertSelectedAppNameIsRuntimeAccessible(_0x5671c1,_0x1bbb10);throw CliErrors[_0x28c6d8(0x166)](_0x28c6d8(0x157)+PRODUCT_CONFIG[_0x28c6d8(0x191)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x5671c1,_0x1bbb10,_0x412b8c);}if(_0x412b8c){const {initSdkClient:_0x527e7d}=await import(_0x28c6d8(0x18c));_0x527e7d({'appCode':_0x412b8c,'env':_0x1bbb10[_0x28c6d8(0x194)]??'production','runtimeDomain':_0x1bbb10[_0x28c6d8(0x173)],'accessKey':_0x1bbb10[_0x28c6d8(0x189)],'authMode':_0x4ba15a}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x1bbb10['defaultVerbose']},'numbers':{'pagesize':_0x1bbb10[_0x28c6d8(0x170)]}},'extras':{'appCode':_0x412b8c,'cookie':'','apiDomain':_0x1bbb10[_0x28c6d8(0x155)],'apiDir':'','accessKey':_0x1bbb10['accessKey'],'envName':_0x1bbb10[_0x28c6d8(0x194)],'mergedCli':_0x1bbb10[_0x28c6d8(0x17c)]}};},'confirmHighRisk':_0x27fcb6[_0x59906f(0x15d)]??(async({def:_0x2396e2,env:_0x51ab88,flags:_0x569950,commandLabel:_0x2a53b7})=>{const _0x3d487c=_0x59906f;if(_0x51ab88[_0x3d487c(0x164)]){const _0x10989b=reconstructCommandArgv(_0x2396e2,_0x569950);throw CliErrors['validation']('High-risk\x20operation\x20`'+_0x2a53b7+_0x3d487c(0x163)+(_0x3d487c(0x190)+_0x10989b));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x2396e2,_0x2a53b7,_0x569950),'createCancelledError':_0x2b3b3f=>CliErrors[_0x3d487c(0x188)](_0x2b3b3f)});}),'mapDryRunError'(_0x1704a5){return mapUserFacingExecuteError(_0x1704a5);},'mapExecuteError'(_0x3bd465){return mapUserFacingExecuteError(_0x3bd465);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x4bc93e;}function shouldRouteWriteToNativeTool(_0x5875d1,_0x2e0999){const _0x12f29e=a121_0x291a;return _0x2e0999[_0x12f29e(0x165)]===!![]&&(_0x5875d1[_0x12f29e(0x19c)]===_0x12f29e(0x18d)||_0x5875d1['risk']===_0x12f29e(0x159));}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x111bfd=a121_0x291a;try{if(sdkClientInitialized){const {clearSdkClient:_0x280361}=await import(_0x111bfd(0x18c));_0x280361();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x259729}=await import(_0x111bfd(0x186));_0x259729();}}async function resolveExplicitAppName(_0x1bb0c0,_0x1cc74a,_0x594eaa){const _0x3a8d9a=a121_0x291a;if(_0x1bb0c0[_0x3a8d9a(0x18f)]===![])return _0x594eaa;const _0x29b0cf=typeof _0x1cc74a['rawFlags'][_0x3a8d9a(0x16b)]===_0x3a8d9a(0x193)?_0x1cc74a[_0x3a8d9a(0x17d)][_0x3a8d9a(0x16b)]['trim']():'';if(!_0x29b0cf)return _0x594eaa;const _0x39d0d9=typeof _0x1cc74a[_0x3a8d9a(0x17d)][_0x3a8d9a(0x158)]===_0x3a8d9a(0x193)&&_0x1cc74a['rawFlags']['appcode']['trim']()||productEnv(_0x3a8d9a(0x16c));if(_0x39d0d9||_0x1cc74a[_0x3a8d9a(0x195)]==='local-alias')return _0x594eaa;const {getRemoteAppList:_0x4a16d9}=await import('../commands/app/remote-source.js'),_0x2cefc8=await _0x4a16d9({'env':_0x1cc74a[_0x3a8d9a(0x194)]??_0x3a8d9a(0x17f),'accessKey':_0x1cc74a['accessKey']}),_0x2e07bd=findAppByName(_0x2cefc8[_0x3a8d9a(0x171)],_0x29b0cf);if(_0x2e07bd&&!isRuntimeAccessibleApp(_0x2e07bd))throw runtimeInaccessibleAppError(_0x2e07bd,'\x22'+_0x29b0cf+'\x22');const _0x54e5b8=_0x2e07bd?.[_0x3a8d9a(0x17b)]?.[_0x3a8d9a(0x180)]();if(_0x54e5b8)return _0x54e5b8;throw CliErrors[_0x3a8d9a(0x182)]('Unknown\x20app:\x20'+_0x29b0cf,_0x3a8d9a(0x176)+CLI_BIN_NAME+_0x3a8d9a(0x168)+_0x29b0cf+_0x3a8d9a(0x19b)+PRODUCT_CONFIG[_0x3a8d9a(0x191)]+'.');}function a121_0x2a33(){const _0xd8bf32=['_notice','../commands/app/remote-source.js','update','defaultPageSize','items','72809PDFKav','runtimeDomain','format','940jhejgp','Run\x20`','963684mybSxE','pageSize','verbose','schema','appCode','mergedCli','rawFlags','ACCESS_KEY','production','trim','has','validation','requiresAuth','6jJagQY','command','../core/api-client.js','execute','cancelled','accessKey','includes','1546236CiZtHV','../core/sdk-client.js','write','appcode\x20\x22','requiresAppCode','\x20\x20To\x20proceed:\x20','newConfigFileName','error','string','env','appCodeSource','defaultApp','178874bGqAjx','7565PhuPoW','nativeToolRequired','service','.appcode\x20to\x20','risk','364xqwssg','riskLevel','apiDomain','name','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','appcode','high-risk-write','currentApp','ClientAk','54304LGFgyw','confirmHighRisk','329gduUmR','object','doctor','210228IUPmUJ','nonInteractive','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','isNonInteractive','nativeToolAvailable','configMissing','pretty','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','cli-skill','filter','app','APPCODE'];a121_0x2a33=function(){return _0xd8bf32;};return a121_0x2a33();}async function assertSelectedAppNameIsRuntimeAccessible(_0x2f5943,_0x5184ea){const _0x261d60=a121_0x291a;if(_0x2f5943[_0x261d60(0x18f)]===![]||!_0x5184ea['accessKey'])return;const _0x1310e1=(typeof _0x5184ea['rawFlags'][_0x261d60(0x16b)]===_0x261d60(0x193)&&_0x5184ea[_0x261d60(0x17d)]['app'][_0x261d60(0x180)]()?_0x5184ea['rawFlags'][_0x261d60(0x16b)]:_0x5184ea[_0x261d60(0x17c)]?.[_0x261d60(0x15a)]??_0x5184ea[_0x261d60(0x17c)]?.[_0x261d60(0x196)])?.[_0x261d60(0x180)]();if(!_0x1310e1)return;const {getRemoteAppList:_0x39aa3d}=await import(_0x261d60(0x16e)),_0x5c4259=await _0x39aa3d({'env':_0x5184ea[_0x261d60(0x194)]??_0x261d60(0x17f),'accessKey':_0x5184ea[_0x261d60(0x189)]}),_0x4a82a0=findAppByName(_0x5c4259[_0x261d60(0x171)],_0x1310e1);if(_0x4a82a0&&!isRuntimeAccessibleApp(_0x4a82a0))throw runtimeInaccessibleAppError(_0x4a82a0,'\x22'+_0x1310e1+'\x22');}function a121_0x291a(_0xc0b541,_0x16afdb){_0xc0b541=_0xc0b541-0x154;const _0x2a33bc=a121_0x2a33();let _0x291a75=_0x2a33bc[_0xc0b541];return _0x291a75;}async function assertAppCodeIsRuntimeAccessible(_0x242441,_0x4aed12,_0x2ef0b4){const _0x5ccfe6=a121_0x291a;if(_0x242441['requiresAppCode']===![]||!_0x4aed12[_0x5ccfe6(0x189)])return;const {getRemoteAppList:_0x3df398}=await import(_0x5ccfe6(0x16e)),_0x5263d3=await _0x3df398({'env':_0x4aed12[_0x5ccfe6(0x194)]??_0x5ccfe6(0x17f),'accessKey':_0x4aed12[_0x5ccfe6(0x189)]}),_0x445a58=findAppByCode(_0x5263d3[_0x5ccfe6(0x171)],_0x2ef0b4);if(_0x445a58&&!isRuntimeAccessibleApp(_0x445a58))throw runtimeInaccessibleAppError(_0x445a58,_0x5ccfe6(0x18e)+_0x2ef0b4+'\x22');}export async function runCommand(_0x9ecd83,_0x2f1d21,_0x2538af=terminalRunnerAdapter){assertKnownCommandFlags(_0x9ecd83,_0x2f1d21['rawFlags']),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x9ecd83)?withVersionPolicy(_0x9ecd83):_0x9ecd83,_0x2f1d21,_0x2538af);}function shouldApplyVersionPolicy(_0x3d50a6){const _0x3ae26d=a121_0x291a;if([_0x3ae26d(0x16f),_0x3ae26d(0x17a),_0x3ae26d(0x160)][_0x3ae26d(0x18a)](_0x3d50a6[_0x3ae26d(0x19a)]))return![];return!(_0x3d50a6['service']===_0x3ae26d(0x169)&&_0x3d50a6[_0x3ae26d(0x185)]==='install');}function withVersionPolicy(_0x5428bc){return{..._0x5428bc,async 'execute'(_0x2f5a96){const _0x8530d4=a121_0x291a,_0xa57245=await checkCliVersion();assertCliVersionSupported(_0xa57245);const _0x22fe0b=shouldResolveUpdateNotice(_0x2f5a96)?resolveLatestUpdateNotice(_0xa57245)['catch'](()=>null):Promise['resolve'](null),_0x3d90c6=await _0x5428bc[_0x8530d4(0x187)](_0x2f5a96);return attachUpdateNotice(_0x3d90c6,await _0x22fe0b);}};}function shouldResolveUpdateNotice(_0x18ddf2){const _0x2b8b42=a121_0x291a;return _0x18ddf2[_0x2b8b42(0x174)]===_0x2b8b42(0x167)&&!_0x18ddf2[_0x2b8b42(0x162)];}function attachUpdateNotice(_0x38f66d,_0x162b09){const _0x278ddb=a121_0x291a;if(!_0x162b09||!_0x38f66d||typeof _0x38f66d!==_0x278ddb(0x15f))return _0x38f66d;const _0x33e01c=_0x38f66d,_0xc1a303=typeof _0x33e01c['_notice']===_0x278ddb(0x15f)&&_0x33e01c[_0x278ddb(0x16d)]!==null?_0x33e01c[_0x278ddb(0x16d)]:{};return{..._0x33e01c,'_notice':{..._0xc1a303,'update':_0x162b09}};}
|
|
1
|
+
(function(_0x2b7be5,_0x1cbc06){const _0x31a43f=a123_0x44dc,_0x15c257=_0x2b7be5();while(!![]){try{const _0x1709bb=-parseInt(_0x31a43f(0xb3))/0x1*(parseInt(_0x31a43f(0x85))/0x2)+parseInt(_0x31a43f(0xa0))/0x3+parseInt(_0x31a43f(0xa9))/0x4*(-parseInt(_0x31a43f(0xb5))/0x5)+parseInt(_0x31a43f(0x8a))/0x6*(-parseInt(_0x31a43f(0x8b))/0x7)+-parseInt(_0x31a43f(0xb4))/0x8+parseInt(_0x31a43f(0xab))/0x9+parseInt(_0x31a43f(0xaa))/0xa*(parseInt(_0x31a43f(0x92))/0xb);if(_0x1709bb===_0x1cbc06)break;else _0x15c257['push'](_0x15c257['shift']());}catch(_0x22cdef){_0x15c257['push'](_0x15c257['shift']());}}}(a123_0x3a5d,0xee492));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';function a123_0x44dc(_0x20a29f,_0x1ee8a3){_0x20a29f=_0x20a29f-0x72;const _0x3a5de2=a123_0x3a5d();let _0x44dcc8=_0x3a5de2[_0x20a29f];return _0x44dcc8;}import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain,getRuntimeDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{assertKnownCommandFlags}from'../framework/raw-flags.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{assertCliVersionSupported,checkCliVersion}from'../utils/cli-version-check.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x34c902){const _0x3f764c=a123_0x44dc;return void _0x34c902,AUTH_MODE[_0x3f764c(0x99)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x3b9fde,_0x41fc89){const _0x4c1f2a=a123_0x44dc,_0x3f0cb3=typeof _0x41fc89[_0x4c1f2a(0x83)]===_0x4c1f2a(0xa8)&&_0x41fc89[_0x4c1f2a(0x83)][_0x4c1f2a(0xb8)]();return{'rawFlags':_0x41fc89,'appCode':_0x3b9fde['appCode']||productEnv('APPCODE')||(_0x3f0cb3?undefined:readAppCodeFromConfig()),'appCodeSource':_0x3b9fde['appCodeSource'],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x41fc89),'defaultFormat':_0x3b9fde[_0x4c1f2a(0x91)],'defaultPageSize':_0x3b9fde[_0x4c1f2a(0x89)],'defaultVerbose':_0x3b9fde[_0x4c1f2a(0xad)],'riskLevel':_0x3b9fde['riskLevel'],'nativeToolAvailable':_0x3b9fde['nativeToolAvailable'],'accessKey':_0x3b9fde[_0x4c1f2a(0x9c)],'env':_0x3b9fde[_0x4c1f2a(0x81)],'mergedCli':{'defaultApp':_0x3b9fde['defaultApp'],'currentApp':_0x3b9fde['currentApp'],'appCode':_0x3b9fde[_0x4c1f2a(0x7c)]}};}export function createLovrabetRunnerAdapter(_0x253418={}){const _0x39eab9=a123_0x44dc,_0x2869f2={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x39eab9(0xb1)](_0x2ccbce=>PIPELINE_FLAG_NAMES[_0x39eab9(0x96)](_0x2ccbce[_0x39eab9(0x74)]))[_0x39eab9(0xa3)](({name:_0x73425,type:_0x3e51b5,description:_0x264d86})=>({'name':_0x73425,'type':_0x3e51b5,'description':_0x264d86})),'formatOutput':_0x253418[_0x39eab9(0x7d)]??formatOutput,'getCommandLabel'(_0x170d7f){const _0x3402f8=_0x39eab9;return CLI_BIN_NAME+'\x20'+_0x170d7f['service']+'\x20'+_0x170d7f[_0x3402f8(0xb9)];},'riskPolicy':{'onViolation'(_0x55c31d,{def:_0x176819,env:_0x23a7ef}){const _0x41095a=_0x39eab9;if(shouldRouteWriteToNativeTool(_0x176819,_0x23a7ef))return;console[_0x41095a(0xb0)](_0x55c31d);},'createError'(_0x4fa970,{def:_0x387c5f,env:_0x5a588a}){const _0x4de697=_0x39eab9;if(shouldRouteWriteToNativeTool(_0x387c5f,_0x5a588a))return CliErrors[_0x4de697(0x95)](CLI_BIN_NAME+'\x20'+_0x387c5f[_0x4de697(0x86)]+'\x20'+_0x387c5f[_0x4de697(0xb9)]);return CliErrors[_0x4de697(0x7a)](_0x4fa970);}},async 'prepare'(_0x9f9553,_0x489d23){const _0x2021ff=_0x39eab9,_0x2e3dec=resolveAuthMode(_0x489d23);if(_0x9f9553[_0x2021ff(0x7e)]!==![]){if(!_0x489d23[_0x2021ff(0x9c)])throw CliErrors['authRequired']('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x2021ff(0x8f)]+_0x2021ff(0xb6)+productEnvName(_0x2021ff(0xbe))+'.');const {setActiveAK:_0x500c2d}=await import(_0x2021ff(0x7f));_0x500c2d(_0x489d23[_0x2021ff(0x9c)]);}let _0x419a24='';if(_0x9f9553[_0x2021ff(0x9a)]!==![]){_0x419a24=_0x489d23[_0x2021ff(0x7c)]??'',_0x419a24=await resolveExplicitAppName(_0x9f9553,_0x489d23,_0x419a24);if(!_0x419a24){await assertSelectedAppNameIsRuntimeAccessible(_0x9f9553,_0x489d23);throw CliErrors[_0x2021ff(0xbd)](_0x2021ff(0xba)+PRODUCT_CONFIG[_0x2021ff(0x8f)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x9f9553,_0x489d23,_0x419a24);}if(_0x419a24){const {initSdkClient:_0x2d42bb}=await import(_0x2021ff(0x9b));_0x2d42bb({'appCode':_0x419a24,'env':_0x489d23[_0x2021ff(0x81)]??'production','runtimeDomain':_0x489d23[_0x2021ff(0x72)],'accessKey':_0x489d23['accessKey'],'authMode':_0x2e3dec}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x489d23[_0x2021ff(0x90)]},'numbers':{'pagesize':_0x489d23[_0x2021ff(0x76)]}},'extras':{'appCode':_0x419a24,'cookie':'','apiDomain':_0x489d23['apiDomain'],'apiDir':'','accessKey':_0x489d23[_0x2021ff(0x9c)],'envName':_0x489d23['env'],'mergedCli':_0x489d23[_0x2021ff(0xb2)]}};},'confirmHighRisk':_0x253418[_0x39eab9(0x93)]??(async({def:_0x56d0ec,env:_0x19609a,flags:_0x2eeef5,commandLabel:_0x4ee8ad})=>{const _0x48093b=_0x39eab9;if(_0x19609a[_0x48093b(0xaf)]){const _0x128ae8=reconstructCommandArgv(_0x56d0ec,_0x2eeef5);throw CliErrors[_0x48093b(0x9f)](_0x48093b(0x94)+_0x4ee8ad+_0x48093b(0x8e)+(_0x48093b(0xa5)+_0x128ae8));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x56d0ec,_0x4ee8ad,_0x2eeef5),'createCancelledError':_0x498ff3=>CliErrors['cancelled'](_0x498ff3)});}),'mapDryRunError'(_0x2841fb){return mapUserFacingExecuteError(_0x2841fb);},'mapExecuteError'(_0x194865){return mapUserFacingExecuteError(_0x194865);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x2869f2;}function shouldRouteWriteToNativeTool(_0x489f87,_0x4934ce){const _0xd8db09=a123_0x44dc;return _0x4934ce[_0xd8db09(0xa6)]===!![]&&(_0x489f87[_0xd8db09(0xae)]===_0xd8db09(0x73)||_0x489f87['risk']==='high-risk-write');}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x2933a1=a123_0x44dc;try{if(sdkClientInitialized){const {clearSdkClient:_0x56c513}=await import('../core/sdk-client.js');_0x56c513();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x284115}=await import(_0x2933a1(0x7f));_0x284115();}}async function resolveExplicitAppName(_0x354fa1,_0x4b3286,_0x377b26){const _0x5ace75=a123_0x44dc;if(_0x354fa1[_0x5ace75(0x9a)]===![])return _0x377b26;const _0x20b291=typeof _0x4b3286[_0x5ace75(0x79)][_0x5ace75(0x83)]==='string'?_0x4b3286[_0x5ace75(0x79)][_0x5ace75(0x83)][_0x5ace75(0xb8)]():'';if(!_0x20b291)return _0x377b26;const _0x3ed470=typeof _0x4b3286[_0x5ace75(0x79)][_0x5ace75(0x8d)]===_0x5ace75(0xa8)&&_0x4b3286[_0x5ace75(0x79)][_0x5ace75(0x8d)][_0x5ace75(0xb8)]()||productEnv(_0x5ace75(0x88));if(_0x3ed470||_0x4b3286[_0x5ace75(0xb7)]===_0x5ace75(0xa4))return _0x377b26;const {getRemoteAppList:_0x4e74c8}=await import(_0x5ace75(0x77)),_0x31c87c=await _0x4e74c8({'env':_0x4b3286['env']??'production','accessKey':_0x4b3286['accessKey']}),_0x3c213b=findAppByName(_0x31c87c[_0x5ace75(0xa7)],_0x20b291);if(_0x3c213b&&!isRuntimeAccessibleApp(_0x3c213b))throw runtimeInaccessibleAppError(_0x3c213b,'\x22'+_0x20b291+'\x22');const _0x151e61=_0x3c213b?.[_0x5ace75(0x7c)]?.[_0x5ace75(0xb8)]();if(_0x151e61)return _0x151e61;throw CliErrors['validation'](_0x5ace75(0xa2)+_0x20b291,_0x5ace75(0x97)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x20b291+_0x5ace75(0x9e)+PRODUCT_CONFIG[_0x5ace75(0x8f)]+'.');}function a123_0x3a5d(){const _0x304ac5=['runtimeDomain','write','name','update','defaultPageSize','../commands/app/remote-source.js','appcode\x20\x22','rawFlags','cancelled','cli-skill','appCode','formatOutput','requiresAuth','../core/api-client.js','execute','env','resolve','app','pretty','49846qzGcuX','service','currentApp','APPCODE','pageSize','1591026PDdEKD','49GmFQua','object','appcode','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','newConfigFileName','defaultVerbose','format','460834HAFoQq','confirmHighRisk','High-risk\x20operation\x20`','nativeToolRequired','has','Run\x20`','nonInteractive','ClientAk','requiresAppCode','../core/sdk-client.js','accessKey','catch','.appcode\x20to\x20','validation','1561890TZLWIT','_notice','Unknown\x20app:\x20','map','local-alias','\x20\x20To\x20proceed:\x20','nativeToolAvailable','items','string','692CIQzKK','1310jctXGm','1081395HdraEX','production','verbose','risk','isNonInteractive','error','filter','mergedCli','62LAeAZS','159208unEaLj','50045gYKcDv','\x20or\x20pass\x20','appCodeSource','trim','command','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','includes','doctor','configMissing','ACCESS_KEY','schema'];a123_0x3a5d=function(){return _0x304ac5;};return a123_0x3a5d();}async function assertSelectedAppNameIsRuntimeAccessible(_0x19f024,_0x6cc954){const _0x172a79=a123_0x44dc;if(_0x19f024[_0x172a79(0x9a)]===![]||!_0x6cc954[_0x172a79(0x9c)])return;const _0x3ab47c=(typeof _0x6cc954[_0x172a79(0x79)][_0x172a79(0x83)]===_0x172a79(0xa8)&&_0x6cc954[_0x172a79(0x79)][_0x172a79(0x83)][_0x172a79(0xb8)]()?_0x6cc954[_0x172a79(0x79)][_0x172a79(0x83)]:_0x6cc954[_0x172a79(0xb2)]?.[_0x172a79(0x87)]??_0x6cc954[_0x172a79(0xb2)]?.['defaultApp'])?.[_0x172a79(0xb8)]();if(!_0x3ab47c)return;const {getRemoteAppList:_0x263507}=await import(_0x172a79(0x77)),_0x1851f0=await _0x263507({'env':_0x6cc954[_0x172a79(0x81)]??'production','accessKey':_0x6cc954['accessKey']}),_0x41d499=findAppByName(_0x1851f0[_0x172a79(0xa7)],_0x3ab47c);if(_0x41d499&&!isRuntimeAccessibleApp(_0x41d499))throw runtimeInaccessibleAppError(_0x41d499,'\x22'+_0x3ab47c+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0xd7c417,_0x8d36c5,_0x13c5ac){const _0x55d1b7=a123_0x44dc;if(_0xd7c417[_0x55d1b7(0x9a)]===![]||!_0x8d36c5[_0x55d1b7(0x9c)])return;const {getRemoteAppList:_0x3e43ef}=await import('../commands/app/remote-source.js'),_0x24063f=await _0x3e43ef({'env':_0x8d36c5[_0x55d1b7(0x81)]??_0x55d1b7(0xac),'accessKey':_0x8d36c5[_0x55d1b7(0x9c)]}),_0x28fdc7=findAppByCode(_0x24063f[_0x55d1b7(0xa7)],_0x13c5ac);if(_0x28fdc7&&!isRuntimeAccessibleApp(_0x28fdc7))throw runtimeInaccessibleAppError(_0x28fdc7,_0x55d1b7(0x78)+_0x13c5ac+'\x22');}export async function runCommand(_0x2cf0f9,_0x203e48,_0x22bbf3=terminalRunnerAdapter){const _0x1ef6e3=a123_0x44dc;assertKnownCommandFlags(_0x2cf0f9,_0x203e48[_0x1ef6e3(0x79)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x2cf0f9)?withVersionPolicy(_0x2cf0f9):_0x2cf0f9,_0x203e48,_0x22bbf3);}function shouldApplyVersionPolicy(_0x529979){const _0x498f94=a123_0x44dc;if([_0x498f94(0x75),_0x498f94(0xbf),_0x498f94(0xbc)][_0x498f94(0xbb)](_0x529979[_0x498f94(0x86)]))return![];return!(_0x529979[_0x498f94(0x86)]===_0x498f94(0x7b)&&_0x529979[_0x498f94(0xb9)]==='install');}function withVersionPolicy(_0x4a1510){return{..._0x4a1510,async 'execute'(_0x55c639){const _0x1e0cc4=a123_0x44dc,_0x2b9637=await checkCliVersion();assertCliVersionSupported(_0x2b9637);const _0x7253a2=shouldResolveUpdateNotice(_0x55c639)?resolveLatestUpdateNotice(_0x2b9637)[_0x1e0cc4(0x9d)](()=>null):Promise[_0x1e0cc4(0x82)](null),_0x2f3c66=await _0x4a1510[_0x1e0cc4(0x80)](_0x55c639);return attachUpdateNotice(_0x2f3c66,await _0x7253a2);}};}function shouldResolveUpdateNotice(_0x16b3b1){const _0x239854=a123_0x44dc;return _0x16b3b1[_0x239854(0x91)]===_0x239854(0x84)&&!_0x16b3b1[_0x239854(0x98)];}function attachUpdateNotice(_0x35d03c,_0xf7b625){const _0x4c11d7=a123_0x44dc;if(!_0xf7b625||!_0x35d03c||typeof _0x35d03c!==_0x4c11d7(0x8c))return _0x35d03c;const _0x5d5c0b=_0x35d03c,_0x468b12=typeof _0x5d5c0b[_0x4c11d7(0xa1)]===_0x4c11d7(0x8c)&&_0x5d5c0b[_0x4c11d7(0xa1)]!==null?_0x5d5c0b[_0x4c11d7(0xa1)]:{};return{..._0x5d5c0b,'_notice':{..._0x468b12,'update':_0xf7b625}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3f8f7e,_0x301135){const _0x56bf66=a124_0x25ed,_0x292743=_0x3f8f7e();while(!![]){try{const _0x4009e7=-parseInt(_0x56bf66(0x12d))/0x1*(-parseInt(_0x56bf66(0x126))/0x2)+parseInt(_0x56bf66(0x133))/0x3*(-parseInt(_0x56bf66(0x127))/0x4)+parseInt(_0x56bf66(0x132))/0x5*(-parseInt(_0x56bf66(0x128))/0x6)+-parseInt(_0x56bf66(0x12a))/0x7*(-parseInt(_0x56bf66(0x134))/0x8)+parseInt(_0x56bf66(0x138))/0x9+-parseInt(_0x56bf66(0x136))/0xa+-parseInt(_0x56bf66(0x12b))/0xb;if(_0x4009e7===_0x301135)break;else _0x292743['push'](_0x292743['shift']());}catch(_0xb5f993){_0x292743['push'](_0x292743['shift']());}}}(a124_0x14b4,0x1d6f7));import{buildSchemaPayload as a124_0x422ba7}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliGitCommit,getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x4b1897=a124_0x25ed,{serviceRegistry:_0x38ac09,findDefinition:_0x13b9e6}=await import('../commands/registry.js'),_0x37fcb3=new Set(_0x38ac09[_0x4b1897(0x137)](_0xf6753c=>_0xf6753c[_0x4b1897(0x129)])),_0x3a80f8=listDynamicServiceEntries()[_0x4b1897(0x12c)](_0x158c71=>!_0x37fcb3[_0x4b1897(0x139)](_0x158c71['service'])),_0x4c2f69=a124_0x422ba7({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x38ac09,_0x3a80f8),'buildAllFlags':buildAllFlags,'findDefinition':(_0x4fe069,_0x3b4119)=>_0x13b9e6(_0x4fe069,_0x3b4119)??findDynamicServiceDefinition(_0x4fe069,_0x3b4119)});return normalizeSchemaPayload(_0x4c2f69);}function normalizeSchemaPayload(_0x69f83a){const _0x587f20=a124_0x25ed;return{..._0x69f83a,'schemaVersion':0x2,'services':_0x69f83a['services'][_0x587f20(0x137)](_0x2be5c9=>({..._0x2be5c9,'commands':_0x2be5c9[_0x587f20(0x12f)]['map'](normalizeSchemaCommand)}))};}function a124_0x25ed(_0x183221,_0x1f599c){_0x183221=_0x183221-0x126;const _0x14b42d=a124_0x14b4();let _0x25edbe=_0x14b42d[_0x183221];return _0x25edbe;}function normalizeSchemaCommand(_0x46f697){const _0x26797b=a124_0x25ed,_0x149592=_0x46f697;return{..._0x46f697,'auth':_0x149592[_0x26797b(0x12e)]??(_0x46f697[_0x26797b(0x130)]?_0x26797b(0x135):_0x26797b(0x131))};}function a124_0x14b4(){const _0x1dbb09=['filter','2VAGUFy','auth','commands','requiresAuth','none','119265argvxM','555jMGTvH','74768nDlPmE','required','901890yrWCNB','map','1593207SWCsGR','has','106968RaigJh','3524kbSeOO','30ryvXIv','service','161NkoBNT','65373lTAbOZ'];a124_0x14b4=function(){return _0x1dbb09;};return a124_0x14b4();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a125_0x1ebf(_0x25b707,_0x39b30a){_0x25b707=_0x25b707-0x17c;const _0x60ace1=a125_0x60ac();let _0x1ebfef=_0x60ace1[_0x25b707];return _0x1ebfef;}function a125_0x60ac(){const _0x5dd52e=['51021AiHGUY','length','795588TdcaKX','20986wTRVTZ','354LacVSi','service','192276UQqfKT','slice','168fKCnRF','4316WFweIG','981290gKcTDh','280TtvMTU','67627MycmTf','2RgeFWc','findIndex','77KwdrMU'];a125_0x60ac=function(){return _0x5dd52e;};return a125_0x60ac();}(function(_0x5c5638,_0x24abc3){const _0x249032=a125_0x1ebf,_0x22e154=_0x5c5638();while(!![]){try{const _0x126179=-parseInt(_0x249032(0x182))/0x1+parseInt(_0x249032(0x183))/0x2*(parseInt(_0x249032(0x188))/0x3)+parseInt(_0x249032(0x17f))/0x4*(parseInt(_0x249032(0x181))/0x5)+-parseInt(_0x249032(0x18a))/0x6*(parseInt(_0x249032(0x189))/0x7)+-parseInt(_0x249032(0x17e))/0x8*(parseInt(_0x249032(0x186))/0x9)+parseInt(_0x249032(0x180))/0xa+parseInt(_0x249032(0x185))/0xb*(parseInt(_0x249032(0x17c))/0xc);if(_0x126179===_0x24abc3)break;else _0x22e154['push'](_0x22e154['shift']());}catch(_0x4f2464){_0x22e154['push'](_0x22e154['shift']());}}}(a125_0x60ac,0x2a140));export function insertDynamicServicesAfterServiceTree(_0x30c573,_0x35c9b8){const _0x1fdef8=a125_0x1ebf;if(_0x35c9b8[_0x1fdef8(0x187)]===0x0)return[..._0x30c573];const _0x313138=_0x30c573[_0x1fdef8(0x184)](_0x1264fc=>_0x1264fc[_0x1fdef8(0x18b)]===_0x1fdef8(0x18b));if(_0x313138<0x0)return[..._0x30c573,..._0x35c9b8];return[..._0x30c573[_0x1fdef8(0x17d)](0x0,_0x313138+0x1),..._0x35c9b8,..._0x30c573[_0x1fdef8(0x17d)](_0x313138+0x1)];}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a126_0x35c0(){var _0x5679b2=['7707224XdwZst','1039536FzbpXE','263035yEKAYC','8IVmupZ','477972vMgPjs','8175755yTyomk','1277260bEoihb','990914eoSCmo'];a126_0x35c0=function(){return _0x5679b2;};return a126_0x35c0();}function a126_0x357b(_0x27d611,_0x51f825){_0x27d611=_0x27d611-0x10c;var _0x35c037=a126_0x35c0();var _0x357bbc=_0x35c037[_0x27d611];return _0x357bbc;}(function(_0x45a7e1,_0x50398f){var _0x3d6f03=a126_0x357b,_0x1acd01=_0x45a7e1();while(!![]){try{var _0x4e0bcf=-parseInt(_0x3d6f03(0x110))/0x1+parseInt(_0x3d6f03(0x10d))/0x2+-parseInt(_0x3d6f03(0x112))/0x3+parseInt(_0x3d6f03(0x111))/0x4*(parseInt(_0x3d6f03(0x10c))/0x5)+-parseInt(_0x3d6f03(0x10f))/0x6+parseInt(_0x3d6f03(0x113))/0x7+-parseInt(_0x3d6f03(0x10e))/0x8;if(_0x4e0bcf===_0x50398f)break;else _0x1acd01['push'](_0x1acd01['shift']());}catch(_0x3e7f65){_0x1acd01['push'](_0x1acd01['shift']());}}}(a126_0x35c0,0x9638c));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.3.
|
|
2
|
-
export declare const GIT_TAG = "v2.3.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-
|
|
1
|
+
export declare const VERSION = "2.3.5-beta.2";
|
|
2
|
+
export declare const GIT_TAG = "v2.3.5-beta.2";
|
|
3
|
+
export declare const GIT_COMMIT = "e202c71";
|
|
4
|
+
export declare const BUILD_TIME = "2026-10-16T05:29:29.605Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a127_0x5cc0(_0x170ae3,_0x49639c){_0x170ae3=_0x170ae3-0x11c;const _0x113d81=a127_0x113d();let _0x5cc09d=_0x113d81[_0x170ae3];return _0x5cc09d;}const a127_0xb77663=a127_0x5cc0;(function(_0x243396,_0x5b68a6){const _0x55e0d6=a127_0x5cc0,_0x22bbb9=_0x243396();while(!![]){try{const _0x1b26d6=-parseInt(_0x55e0d6(0x11c))/0x1*(-parseInt(_0x55e0d6(0x129))/0x2)+-parseInt(_0x55e0d6(0x124))/0x3+parseInt(_0x55e0d6(0x11d))/0x4*(parseInt(_0x55e0d6(0x127))/0x5)+parseInt(_0x55e0d6(0x125))/0x6+parseInt(_0x55e0d6(0x11e))/0x7*(-parseInt(_0x55e0d6(0x128))/0x8)+parseInt(_0x55e0d6(0x123))/0x9*(parseInt(_0x55e0d6(0x120))/0xa)+parseInt(_0x55e0d6(0x121))/0xb;if(_0x1b26d6===_0x5b68a6)break;else _0x22bbb9['push'](_0x22bbb9['shift']());}catch(_0x3fc3fa){_0x22bbb9['push'](_0x22bbb9['shift']());}}}(a127_0x113d,0xb2d5d));export const VERSION=a127_0xb77663(0x11f);export const GIT_TAG=a127_0xb77663(0x122);export const GIT_COMMIT='e202c71';export const BUILD_TIME=a127_0xb77663(0x126);function a127_0x113d(){const _0x3a8c60=['88THaSJO','1362HNIesD','632OMVmmO','834396BjlVuv','440979ofexlz','2.3.5-beta.2','10ckOYnK','307230XlfLaD','v2.3.5-beta.2','1119627NodHgh','146781FuOCao','343692QjpBTQ','2026-10-16T05:29:29.605Z','20zHIzZw'];a127_0x113d=function(){return _0x3a8c60;};return a127_0x113d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a128_0x251d81=a128_0x5b65;(function(_0x256d69,_0x3ae4f2){const _0x47f1e7=a128_0x5b65,_0xdfba2e=_0x256d69();while(!![]){try{const _0x444f82=parseInt(_0x47f1e7(0xdc))/0x1*(parseInt(_0x47f1e7(0xce))/0x2)+-parseInt(_0x47f1e7(0xbc))/0x3+-parseInt(_0x47f1e7(0xc9))/0x4+parseInt(_0x47f1e7(0xc5))/0x5*(parseInt(_0x47f1e7(0xbd))/0x6)+-parseInt(_0x47f1e7(0xc2))/0x7+parseInt(_0x47f1e7(0xc7))/0x8*(parseInt(_0x47f1e7(0xd0))/0x9)+-parseInt(_0x47f1e7(0xc0))/0xa*(parseInt(_0x47f1e7(0xde))/0xb);if(_0x444f82===_0x3ae4f2)break;else _0xdfba2e['push'](_0xdfba2e['shift']());}catch(_0x5f1db3){_0xdfba2e['push'](_0xdfba2e['shift']());}}}(a128_0x3c4d,0x58374));export const ROUTING_CATALOG_DIGEST=a128_0x251d81(0xd8);export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id','global'];function a128_0x5b65(_0x34ef07,_0x19037a){_0x34ef07=_0x34ef07-0xbc;const _0x3c4d57=a128_0x3c4d();let _0x5b6509=_0x3c4d57[_0x34ef07];return _0x5b6509;}export const ENABLED_REGION_VALUES=['cn','id',a128_0x251d81(0xca)];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':'Mainland\x20China','aliases':[a128_0x251d81(0xd5)],'serviceDomains':{'production':{'user':a128_0x251d81(0xc4),'api':a128_0x251d81(0xcc),'runtime':'https://runtime.lovrabet.com','skill':a128_0x251d81(0xc8),'kbService':a128_0x251d81(0xda)},'daily':{'user':a128_0x251d81(0xd6),'api':a128_0x251d81(0xd2),'runtime':a128_0x251d81(0xdb),'skill':a128_0x251d81(0xc3),'kbService':a128_0x251d81(0xc1)}}},'id':{'enabled':!![],'label':a128_0x251d81(0xd4),'aliases':[a128_0x251d81(0xbf)],'serviceDomains':{'production':{'user':a128_0x251d81(0xdd),'api':a128_0x251d81(0xdf),'runtime':a128_0x251d81(0xc6),'skill':a128_0x251d81(0xd7),'kbService':'https://kb-service.lovrabet.id'}}},'global':{'enabled':!![],'label':a128_0x251d81(0xd9),'aliases':[],'serviceDomains':{'production':{'user':a128_0x251d81(0xcb),'api':a128_0x251d81(0xbe),'runtime':a128_0x251d81(0xcd),'skill':'https://skills.lovrabet.ai'},'daily':{'user':a128_0x251d81(0xd3),'api':'https://daily-api.lovrabet.ai','runtime':a128_0x251d81(0xd1),'skill':a128_0x251d81(0xcf)}}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};function a128_0x3c4d(){const _0x19bb08=['https://kb-service.lovrabet.com','https://daily-runtime.lovrabet.com','714047kHCQnb','https://user.lovrabet.id','11beyzCD','https://api.lovrabet.id','850011EyjRUP','38670QPDRPV','https://api.lovrabet.ai','indonesia','6719060KeoUrK','https://kb-service-daily.lovrabet.com','575120AYrHMC','https://skills-daily.lovrabet.com','https://user.lovrabet.com','505iejunh','https://runtime.lovrabet.id','1399528oECHlM','https://skills.lovrabet.com','2664084zspfMa','global','https://user.lovrabet.ai','https://api.lovrabet.com','https://runtime.lovrabet.ai','2BcPiXp','https://skills-daily.lovrabet.ai','36SBTARF','https://daily-runtime.lovrabet.ai','https://daily-api.lovrabet.com','https://user-daily.lovrabet.ai','Indonesia','china','https://user-daily.lovrabet.com','https://skills.lovrabet.id','886843ef89aa4ff2b36d612e8fbd1b6c1840b37728916fba5699be34129ef579','Global'];a128_0x3c4d=function(){return _0x19bb08;};return a128_0x3c4d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a129_0x4a0b(){const _0x4412b1=['skillDomain','326TonbXq','921864CLkBRK','e3423cad71c22edb18a8481be7bdb733ff2d4136c31aa3ae6da56271e32cced7','26200XMeHOJ','userDomain','3290WgUWhL','14388mOQeFU','708QLbTFr','7tfqOhF','lovrabet-routing/v1','9864oToXBF','2990xOTQnI','apiDomain','2260084teDkff','1791468LQFLxk','runtimeDomain','kbServiceDomain'];a129_0x4a0b=function(){return _0x4412b1;};return a129_0x4a0b();}const a129_0x328e71=a129_0x983c;(function(_0x58e48d,_0x39d213){const _0x1d01f6=a129_0x983c,_0xefa16f=_0x58e48d();while(!![]){try{const _0x5e6690=parseInt(_0x1d01f6(0xac))/0x1*(parseInt(_0x1d01f6(0xb6))/0x2)+-parseInt(_0x1d01f6(0xb7))/0x3+parseInt(_0x1d01f6(0xb1))/0x4+-parseInt(_0x1d01f6(0xb9))/0x5*(parseInt(_0x1d01f6(0xab))/0x6)+-parseInt(_0x1d01f6(0xbb))/0x7*(-parseInt(_0x1d01f6(0xae))/0x8)+-parseInt(_0x1d01f6(0xb2))/0x9+-parseInt(_0x1d01f6(0xaf))/0xa*(-parseInt(_0x1d01f6(0xbc))/0xb);if(_0x5e6690===_0x39d213)break;else _0xefa16f['push'](_0xefa16f['shift']());}catch(_0x443a38){_0xefa16f['push'](_0xefa16f['shift']());}}}(a129_0x4a0b,0x649c8));function a129_0x983c(_0x5e28da,_0x558fd6){_0x5e28da=_0x5e28da-0xab;const _0x4a0b0c=a129_0x4a0b();let _0x983c53=_0x4a0b0c[_0x5e28da];return _0x983c53;}export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a129_0x328e71(0xb8);export const ENTERPRISE_ROUTING_PROTOCOL=a129_0x328e71(0xad);export const ENTERPRISE_ROUTING_KIND='enterprise';export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a129_0x328e71(0xba),a129_0x328e71(0xb0),a129_0x328e71(0xb3),a129_0x328e71(0xb5),a129_0x328e71(0xb4)];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a129_0x328e71(0xba),a129_0x328e71(0xb0),a129_0x328e71(0xb3),a129_0x328e71(0xb5)];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2f3434,_0x32d083){const _0x3bfad6=a130_0x2814,_0x437fed=_0x2f3434();while(!![]){try{const _0x32447c=-parseInt(_0x3bfad6(0x199))/0x1+-parseInt(_0x3bfad6(0x192))/0x2+parseInt(_0x3bfad6(0x193))/0x3+parseInt(_0x3bfad6(0x19a))/0x4+parseInt(_0x3bfad6(0x198))/0x5+-parseInt(_0x3bfad6(0x191))/0x6*(-parseInt(_0x3bfad6(0x190))/0x7)+-parseInt(_0x3bfad6(0x196))/0x8;if(_0x32447c===_0x32d083)break;else _0x437fed['push'](_0x437fed['shift']());}catch(_0x4cf4c1){_0x437fed['push'](_0x437fed['shift']());}}}(a130_0x3e31,0x955ec));import{jsx as a130_0x3b2c4d,jsxs as a130_0x5d5d54}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a130_0x2814(_0x19b48d,_0x3f3609){_0x19b48d=_0x19b48d-0x18f;const _0x3e314d=a130_0x3e31();let _0x281422=_0x3e314d[_0x19b48d];return _0x281422;}export function Help(){const _0xe70f6c=a130_0x2814,{exit:_0x2dc2b9}=useApp();return useEffect(()=>{_0x2dc2b9();},[_0x2dc2b9]),a130_0x5d5d54(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a130_0x3b2c4d(Box,{'children':a130_0x3b2c4d(Text,{'bold':!![],'color':_0xe70f6c(0x18f),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a130_0x5d5d54(Box,{'marginTop':0x1,'children':[a130_0x3b2c4d(Text,{'dimColor':!![],'children':_0xe70f6c(0x195)}),a130_0x3b2c4d(Text,{'bold':!![],'color':_0xe70f6c(0x18f),'children':CLI_BIN_NAME+_0xe70f6c(0x197)}),a130_0x3b2c4d(Text,{'dimColor':!![],'children':_0xe70f6c(0x194)})]})]});}function a130_0x3e31(){const _0x521b64=['725852uwCTmD','3664290DHKRiV','\x20to\x20view\x20available\x20commands.','\x20\x20Use\x20','14492440vsAXnw','\x20--help','3464290SyBOLq','117599bQLCUi','3501128fhXKKY','green','10815VHwdkt','444wgldiL'];a130_0x3e31=function(){return _0x521b64;};return a130_0x3e31();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a131_0x494d(_0x158dbe,_0x2a5b67){_0x158dbe=_0x158dbe-0xe0;const _0x29dd5d=a131_0x29dd();let _0x494da4=_0x29dd5d[_0x158dbe];return _0x494da4;}(function(_0x1aae38,_0xf791b4){const _0x3c60d9=a131_0x494d,_0xe43a33=_0x1aae38();while(!![]){try{const _0x45fbc9=parseInt(_0x3c60d9(0xef))/0x1*(parseInt(_0x3c60d9(0xea))/0x2)+parseInt(_0x3c60d9(0xf2))/0x3+parseInt(_0x3c60d9(0xe6))/0x4*(parseInt(_0x3c60d9(0xe4))/0x5)+parseInt(_0x3c60d9(0xf4))/0x6+-parseInt(_0x3c60d9(0xe3))/0x7*(parseInt(_0x3c60d9(0xe2))/0x8)+-parseInt(_0x3c60d9(0xe5))/0x9*(parseInt(_0x3c60d9(0xe7))/0xa)+-parseInt(_0x3c60d9(0xec))/0xb;if(_0x45fbc9===_0xf791b4)break;else _0xe43a33['push'](_0xe43a33['shift']());}catch(_0x955176){_0xe43a33['push'](_0xe43a33['shift']());}}}(a131_0x29dd,0x68407));function a131_0x29dd(){const _0x5e3f51=['SOURCE_INVALID','FAILED','1949241Lgzyix','skillVersion','4215330IdUnhT','Repair\x20with:\x20','Lovrabet\x20Built-in\x20Skill\x20','\x20via\x20skills@latest','code','4560eFxjTo','9142DpeoPb','1169410woUyEN','108567YYysEM','4BkbAwO','590vlwITp','[BUILTIN_SKILL_INSTALL_','already\x20current','52960UtQnse','Installation\x20failed','3432792UZMuWk','changed','warn','23IYYlre'];a131_0x29dd=function(){return _0x5e3f51;};return a131_0x29dd();}import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x2aab15={}){const _0x9db9f4=a131_0x494d,_0x767d3c=installBuiltinSkill(_0x2aab15);if(_0x767d3c['ok']){const _0x3ac7a5=_0x767d3c[_0x9db9f4(0xed)]?'installed':_0x9db9f4(0xe9),_0xc36560=_0x767d3c['installedPath']?'\x20at\x20'+_0x767d3c['installedPath']:_0x9db9f4(0xe0);return console['log'](_0x9db9f4(0xf6)+_0x767d3c[_0x9db9f4(0xf3)]+'\x20'+_0x3ac7a5+_0xc36560),_0x767d3c;}const _0x3e1658=_0x9db9f4(0xe8)+(_0x767d3c[_0x9db9f4(0xe1)]??_0x9db9f4(0xf1))+']\x20'+(_0x767d3c['error']??_0x9db9f4(0xeb))+'.\x20'+(_0x9db9f4(0xf5)+_0x767d3c['repairCommand']);if(_0x767d3c[_0x9db9f4(0xe1)]===_0x9db9f4(0xf0))throw new Error(_0x3e1658);return console[_0x9db9f4(0xee)](_0x3e1658),_0x767d3c;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a132_0xd78a(_0x4e1862,_0x234ef2){_0x4e1862=_0x4e1862-0x141;const _0x2feb80=a132_0x2feb();let _0xd78ac1=_0x2feb80[_0x4e1862];return _0xd78ac1;}(function(_0x252adb,_0x57ac25){const _0x402914=a132_0xd78a,_0x17b495=_0x252adb();while(!![]){try{const _0x2c9e4b=parseInt(_0x402914(0x14f))/0x1+parseInt(_0x402914(0x150))/0x2+parseInt(_0x402914(0x152))/0x3+parseInt(_0x402914(0x14c))/0x4*(-parseInt(_0x402914(0x153))/0x5)+-parseInt(_0x402914(0x151))/0x6*(-parseInt(_0x402914(0x142))/0x7)+parseInt(_0x402914(0x14d))/0x8*(-parseInt(_0x402914(0x146))/0x9)+-parseInt(_0x402914(0x149))/0xa*(-parseInt(_0x402914(0x144))/0xb);if(_0x2c9e4b===_0x57ac25)break;else _0x17b495['push'](_0x17b495['shift']());}catch(_0x5af977){_0x17b495['push'](_0x17b495['shift']());}}}(a132_0x2feb,0xad9d0));function a132_0x2feb(){const _0x74ffab=['1573626GyszHg','5277005ooEPIA','slice','high-risk-write','2705206tOzVna','string','649iyBFqR','write','135AhdzmG','confirmationDescription','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','85000GIoIRH','description','replace','4UTTnAe','607016vZFAzi','risk','297903YJjUAX','842714viNizf','18LeOdKV'];a132_0x2feb=function(){return _0x74ffab;};return a132_0x2feb();}const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0x15b952,_0x558cdd,_0x465fab){const _0x44499f=a132_0xd78a,_0x3db999=normalizeText(_0x15b952[_0x44499f(0x147)],DESCRIPTION_MAX_LENGTH),_0x4b503d=normalizeText(_0x15b952[_0x44499f(0x14a)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x558cdd,'risk':requireWriteRisk(_0x15b952),'description':_0x3db999||_0x4b503d||'Run\x20this\x20write\x20operation',..._0x465fab?{'signal':_0x465fab}:{}};}function requireWriteRisk(_0xf77867){const _0x544b16=a132_0xd78a;if(_0xf77867['risk']===_0x544b16(0x145)||_0xf77867[_0x544b16(0x14e)]===_0x544b16(0x141))return _0xf77867[_0x544b16(0x14e)];throw new Error(_0x544b16(0x148));}function normalizeText(_0x5e57c8,_0x260f94){const _0x4ab145=a132_0xd78a;if(typeof _0x5e57c8!==_0x4ab145(0x143))return'';return _0x5e57c8['replace'](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x4ab145(0x14b)](/\s+/g,'\x20')['trim']()[_0x4ab145(0x154)](0x0,_0x260f94);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xd4816c,_0x236be1){const _0x1d4a9d=a133_0x1ca7,_0x215b59=_0xd4816c();while(!![]){try{const _0x13b50a=-parseInt(_0x1d4a9d(0x1a8))/0x1+-parseInt(_0x1d4a9d(0x1ab))/0x2+parseInt(_0x1d4a9d(0x1a1))/0x3*(-parseInt(_0x1d4a9d(0x19f))/0x4)+-parseInt(_0x1d4a9d(0x1a2))/0x5*(parseInt(_0x1d4a9d(0x1a3))/0x6)+parseInt(_0x1d4a9d(0x1ac))/0x7+-parseInt(_0x1d4a9d(0x1ad))/0x8+-parseInt(_0x1d4a9d(0x1a7))/0x9*(-parseInt(_0x1d4a9d(0x1a4))/0xa);if(_0x13b50a===_0x236be1)break;else _0x215b59['push'](_0x215b59['shift']());}catch(_0x47ec95){_0x215b59['push'](_0x215b59['shift']());}}}(a133_0x5eed,0x9131e));export function canonicalLovrabetOperation(_0x22e6e4){const _0x4218aa=a133_0x1ca7;return[_0x22e6e4[_0x4218aa(0x1a9)],..._0x22e6e4['command'][_0x4218aa(0x1a5)]()[_0x4218aa(0x19e)](/\s+/)][_0x4218aa(0x1a6)](Boolean)['join']('.');}function a133_0x5eed(){const _0x2a3dd2=['751710czSFXO','2360nsVRtv','trim','filter','106173Izoenc','923227HWmfYh','service','writeEventSubject','842558zEkwPy','4875507ypjpae','6225312lxvAXC','split','1048260GNnOSV','risk','3tHBaNa','20eluZwQ'];a133_0x5eed=function(){return _0x2a3dd2;};return a133_0x5eed();}function a133_0x1ca7(_0x5bce35,_0x4dcf81){_0x5bce35=_0x5bce35-0x19e;const _0x5eed53=a133_0x5eed();let _0x1ca7e5=_0x5eed53[_0x5bce35];return _0x1ca7e5;}export function createLovrabetWriteMetadata(_0x294d99,_0x2ca2e5,_0x1c08d0,_0x198b97){const _0xf88edf=a133_0x1ca7;if(_0x198b97||_0x1c08d0['ok']!==!![]||_0x294d99[_0xf88edf(0x1a0)]!=='write'&&_0x294d99[_0xf88edf(0x1a0)]!=='high-risk-write')return undefined;const _0x40010a=_0x294d99[_0xf88edf(0x1aa)]?.(_0x1c08d0),_0xb43170={'type':'lovrabet.write.completed','operation':_0x2ca2e5,'risk':_0x294d99['risk'],..._0x40010a?{'subject':_0x40010a}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0xb43170}};}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a134_0x3cc5(){const _0x425a61=['confirm','risk','1208wFmAib','presentation','7qcWsTR','1569849KeIFES','present','result','rawFlags','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','5648586zrhmrk','signal','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','format','definition','reason','execute','dryRun','aborted','8730350gvTflk','dry-run','confirmation','data','args','12OowPAX','16lRwKXQ','86628uTIlwH','2867100zeQXMC','write','message','4532oXusoV','command','high-risk-write','146NTDBHT','isNonInteractive','2541663dCsrkZ'];a134_0x3cc5=function(){return _0x425a61;};return a134_0x3cc5();}(function(_0x5ec158,_0x52caeb){const _0x216d36=a134_0x590e,_0x178328=_0x5ec158();while(!![]){try{const _0x15f8d2=parseInt(_0x216d36(0x180))/0x1*(-parseInt(_0x216d36(0x185))/0x2)+-parseInt(_0x216d36(0x164))/0x3*(-parseInt(_0x216d36(0x177))/0x4)+parseInt(_0x216d36(0x172))/0x5+parseInt(_0x216d36(0x169))/0x6*(parseInt(_0x216d36(0x163))/0x7)+parseInt(_0x216d36(0x178))/0x8*(-parseInt(_0x216d36(0x182))/0x9)+parseInt(_0x216d36(0x17a))/0xa+-parseInt(_0x216d36(0x17d))/0xb*(parseInt(_0x216d36(0x179))/0xc);if(_0x15f8d2===_0x52caeb)break;else _0x178328['push'](_0x178328['shift']());}catch(_0x3bf89e){_0x178328['push'](_0x178328['shift']());}}}(a134_0x3cc5,0xdfd62));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';import{buildLovrabetConfirmationRequest}from'../runtime/confirmation.js';function a134_0x590e(_0x520699,_0x999f67){_0x520699=_0x520699-0x163;const _0x3cc516=a134_0x3cc5();let _0x590eff=_0x3cc516[_0x520699];return _0x590eff;}import{resolveLovrabetInvocation}from'../runtime/resolve.js';import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x404e12,command:_0x5e2c63,risk:_0x1a10aa,dryRun:_0x2a6f82}){const _0x110111=a134_0x590e;return JSON['stringify']({'ok':_0x404e12['ok'],'command':_0x5e2c63,'risk':_0x1a10aa,..._0x2a6f82?{'dryRun':!![]}:{},..._0x404e12[_0x110111(0x175)]!==undefined?{'data':_0x404e12['data']}:{},..._0x404e12[_0x110111(0x17c)]?{'message':_0x404e12[_0x110111(0x17c)]}:{}});}};export async function invokeLovrabet(_0x3ac063,_0x5bab41){const _0x5ebcd6=a134_0x590e;throwIfAborted(_0x5bab41[_0x5ebcd6(0x16a)]);const _0x7f536f=await resolveLovrabetInvocation(_0x3ac063),_0x93f137=canonicalLovrabetOperation(_0x7f536f[_0x5ebcd6(0x16d)]);return await confirmWriteBeforeQueue(_0x7f536f['definition'],_0x7f536f['rawFlags'],_0x93f137,_0x5bab41),runSerialized(async()=>{const _0x16b807=_0x5ebcd6;throwIfAborted(_0x5bab41[_0x16b807(0x16a)]);const _0x2d8e15={},_0x21aae3=buildConfigFromFlags(_0x7f536f[_0x16b807(0x167)]);await initGlobalEnvironment(_0x21aae3);const _0x58cbdb=createPipelineEnv(_0x21aae3,{..._0x7f536f['rawFlags'],'yes':_0x7f536f[_0x16b807(0x16d)][_0x16b807(0x184)]===_0x16b807(0x17f)?!![]:_0x7f536f[_0x16b807(0x167)]['yes'],'nonInteractive':!![]});_0x58cbdb[_0x16b807(0x176)]=_0x7f536f['args'],_0x58cbdb[_0x16b807(0x181)]=!![],_0x58cbdb['riskLevel']=_0x16b807(0x17f);const _0x17433f=withAbortSignal(_0x7f536f[_0x16b807(0x16d)],_0x5bab41['signal']),_0x137d2b=createLovrabetRunnerAdapter({'formatOutput'(_0x42a373,_0x5833a5){const _0x43733e=_0x16b807;_0x2d8e15[_0x43733e(0x166)]=_0x42a373,_0x2d8e15['command']=_0x5833a5['command'],_0x2d8e15['risk']=_0x5833a5[_0x43733e(0x184)],_0x2d8e15[_0x43733e(0x16c)]=_0x5833a5[_0x43733e(0x16c)],_0x2d8e15[_0x43733e(0x170)]=_0x5833a5[_0x43733e(0x170)]===!![];},async 'confirmHighRisk'(){const _0x451e7d=_0x16b807;throw new Error(_0x451e7d(0x168));}});try{await runCommand(_0x17433f,_0x58cbdb,_0x137d2b);if(!_0x2d8e15[_0x16b807(0x166)]||!_0x2d8e15[_0x16b807(0x17e)]||!_0x2d8e15['risk']||!_0x2d8e15[_0x16b807(0x16c)])throw new Error(_0x16b807(0x16b));const _0x3395a5=_0x5bab41[_0x16b807(0x186)]??defaultPresentation,_0x184779=_0x2d8e15['dryRun']===!![],_0x433e03={'result':_0x2d8e15[_0x16b807(0x166)],'command':_0x2d8e15[_0x16b807(0x17e)],'operation':_0x93f137,'risk':_0x2d8e15[_0x16b807(0x184)],'format':_0x2d8e15[_0x16b807(0x16c)],'dryRun':_0x184779},_0x2ee5b4=createLovrabetWriteMetadata(_0x7f536f['definition'],_0x93f137,_0x2d8e15[_0x16b807(0x166)],_0x184779);let _0x33f85e;try{_0x33f85e=await _0x3395a5[_0x16b807(0x165)](_0x433e03);}catch(_0x3735b1){if(!_0x2ee5b4||_0x3395a5===defaultPresentation)throw _0x3735b1;_0x33f85e=await defaultPresentation[_0x16b807(0x165)](_0x433e03);}return{'operation':_0x93f137,'risk':_0x2d8e15[_0x16b807(0x184)],'mode':_0x184779?_0x16b807(0x173):_0x16b807(0x16f),'result':_0x2d8e15[_0x16b807(0x166)],'output':_0x33f85e,..._0x2ee5b4?{'metadata':_0x2ee5b4}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x18eb68,_0x442cf3,_0x4150c7,_0x24cc89){const _0x5e8680=a134_0x590e;if(_0x442cf3['dryRun']===!![]||_0x18eb68[_0x5e8680(0x184)]!==_0x5e8680(0x17b)&&_0x18eb68[_0x5e8680(0x184)]!==_0x5e8680(0x17f))return;await _0x24cc89[_0x5e8680(0x174)][_0x5e8680(0x183)](buildLovrabetConfirmationRequest(_0x18eb68,_0x4150c7,_0x24cc89[_0x5e8680(0x16a)]));}function withAbortSignal(_0x310c88,_0x295d89){return{..._0x310c88,async 'execute'(_0x36a21c){const _0x4547b8=a134_0x590e;return throwIfAborted(_0x295d89),_0x310c88[_0x4547b8(0x16f)]({..._0x36a21c,'signal':_0x295d89});}};}function throwIfAborted(_0x5a00c6){const _0x48a7d0=a134_0x590e;if(_0x5a00c6?.[_0x48a7d0(0x171)])throw _0x5a00c6[_0x48a7d0(0x16e)]instanceof Error?_0x5a00c6[_0x48a7d0(0x16e)]:new DOMException('Lovrabet\x20invocation\x20aborted.','AbortError');}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a135_0x2296fc=a135_0x5542;function a135_0xabe2(){const _0x10c22e=['25130dIYAuv','1097160sDdLRR','359466VlZlMa','catch','28daKKdw','454628uJmRdB','8OPQeNi','5BWwSKa','resolve','2233iLbRpd','676575NgcuNg','4853UardeJ','489048foEGjc'];a135_0xabe2=function(){return _0x10c22e;};return a135_0xabe2();}(function(_0x5570e9,_0x26856f){const _0x38bfee=a135_0x5542,_0xe1e6dd=_0x5570e9();while(!![]){try{const _0x36498a=parseInt(_0x38bfee(0xd5))/0x1+-parseInt(_0x38bfee(0xd6))/0x2+-parseInt(_0x38bfee(0xd8))/0x3+-parseInt(_0x38bfee(0xcf))/0x4*(-parseInt(_0x38bfee(0xd1))/0x5)+-parseInt(_0x38bfee(0xd9))/0x6*(-parseInt(_0x38bfee(0xdb))/0x7)+-parseInt(_0x38bfee(0xd0))/0x8*(parseInt(_0x38bfee(0xd4))/0x9)+-parseInt(_0x38bfee(0xd7))/0xa*(-parseInt(_0x38bfee(0xd3))/0xb);if(_0x36498a===_0x26856f)break;else _0xe1e6dd['push'](_0xe1e6dd['shift']());}catch(_0x2ee60a){_0xe1e6dd['push'](_0xe1e6dd['shift']());}}}(a135_0xabe2,0x2ca5a));let tail=Promise[a135_0x2296fc(0xd2)]();function a135_0x5542(_0x189e3d,_0x36a10b){_0x189e3d=_0x189e3d-0xcf;const _0xabe20=a135_0xabe2();let _0x5542e1=_0xabe20[_0x189e3d];return _0x5542e1;}export async function runSerialized(_0x553c0f){const _0xe8267=a135_0x2296fc,_0xa36394=tail;let _0x422147;tail=new Promise(_0xa0521d=>{_0x422147=_0xa0521d;}),await _0xa36394[_0xe8267(0xda)](()=>undefined);try{return await _0x553c0f();}finally{_0x422147();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2ecb21,_0x38d938){const _0x991b7e=a136_0x2a83,_0xdbfa2b=_0x2ecb21();while(!![]){try{const _0xfc67d6=parseInt(_0x991b7e(0x110))/0x1*(-parseInt(_0x991b7e(0x117))/0x2)+parseInt(_0x991b7e(0x11f))/0x3+-parseInt(_0x991b7e(0x10d))/0x4*(-parseInt(_0x991b7e(0x115))/0x5)+-parseInt(_0x991b7e(0x10b))/0x6+-parseInt(_0x991b7e(0x114))/0x7*(-parseInt(_0x991b7e(0x10a))/0x8)+parseInt(_0x991b7e(0x11d))/0x9*(parseInt(_0x991b7e(0x120))/0xa)+-parseInt(_0x991b7e(0x11a))/0xb;if(_0xfc67d6===_0x38d938)break;else _0xdbfa2b['push'](_0xdbfa2b['shift']());}catch(_0x227dbf){_0xdbfa2b['push'](_0xdbfa2b['shift']());}}}(a136_0xf404,0x8354a));function a136_0xf404(){const _0x8d8250=['1080765vDDMwr','join','3044835zXJPIx','30caELqw','../commands/registry.js','../framework/preparse.js','flags','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','820648jPivet','1211526fyLwVf','flatMap','13844GDbWNp','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','message','144972ktsykY','args','validation','unknownCommand','21gxEJKP','1405XTPjEN','definition','12NDOmss','hint','input','11503811NGdXjW','assign','defaultCommand'];a136_0xf404=function(){return _0x8d8250;};return a136_0xf404();}import a136_0x579eff from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a136_0x2a83(_0x27f599,_0x2a525e){_0x27f599=_0x27f599-0x106;const _0xf40473=a136_0xf404();let _0x2a8360=_0xf40473[_0x27f599];return _0x2a8360;}export async function resolveLovrabetInvocation(_0x22d1ae){const _0x56c154=a136_0x2a83,_0x578969=a136_0x579eff('',{'importMeta':import.meta,'argv':_0x22d1ae,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0xfa3ff4=[..._0x578969[_0x56c154(0x119)]],_0x1bba92=_0x578969[_0x56c154(0x108)];await correctFlags(_0x1bba92);const _0x264585=_0xfa3ff4[0x0];if(!_0x264585)throw CliErrors[_0x56c154(0x112)](_0x56c154(0x109));const _0x1be30a=resolveRemovedCommand(_0x264585,_0xfa3ff4[0x1]);if(_0x1be30a)throw CliErrors['validation'](_0x1be30a[_0x56c154(0x10f)],_0x1be30a[_0x56c154(0x118)]);if(!isKnownService(_0x264585)){const _0x5ddd59=resolveDynamicServiceCommand(_0xfa3ff4,_0x1bba92);if(!_0x5ddd59)throw CliErrors[_0x56c154(0x113)](_0xfa3ff4[_0x56c154(0x11e)]('\x20'));return Object[_0x56c154(0x11b)](_0x1bba92,_0x5ddd59[_0x56c154(0x108)]),{'definition':_0x5ddd59[_0x56c154(0x116)],'rawFlags':_0x1bba92,'args':_0x5ddd59[_0x56c154(0x111)]};}const _0x36a165=getServiceEntry(_0x264585),_0x4d92a4=_0xfa3ff4[0x1]||_0x36a165[_0x56c154(0x11c)];if(!_0x4d92a4)throw CliErrors[_0x56c154(0x112)](_0x56c154(0x10e)+_0x264585+'\x22.');const _0x5e18f7=findDefinition(_0x264585,_0x4d92a4);if(!_0x5e18f7)throw CliErrors['unknownCommand'](_0x264585+'\x20'+_0x4d92a4);return{'definition':_0x5e18f7,'rawFlags':_0x1bba92,'args':_0xfa3ff4['slice'](0x2)};}async function correctFlags(_0x169303){const _0x5e220f=a136_0x2a83;try{const {correctFlags:_0x23bf18}=await import(_0x5e220f(0x107)),{getAllDefinitions:_0x376fee}=await import(_0x5e220f(0x106)),_0x19a4c4=_0x376fee()[_0x5e220f(0x10c)](_0x2ed70d=>_0x2ed70d[_0x5e220f(0x108)]??[]),_0x10ab25=_0x23bf18(_0x169303,_0x19a4c4);Object[_0x5e220f(0x11b)](_0x169303,_0x10ab25[_0x5e220f(0x108)]);}catch{}}
|