@lovrabet/lovrabet-cli 2.1.9-beta.2 → 2.1.9-beta.4
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/NOTICE +5 -0
- package/README.md +156 -0
- 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/app-config/shared.js +1 -1
- package/lib/commands/artifact/index.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/shared.js +1 -1
- 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/ocr/index.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.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/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/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/workspace/index.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/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- 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/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- 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.js +1 -1
- package/lib/help.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/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/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.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 +18 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
const a11_0x2b1959=a11_0x3eba;(function(_0x5e4c0c,_0x5ae293){const _0x4b761e=a11_0x3eba,_0x3d2a24=_0x5e4c0c();while(!![]){try{const _0x11644b=-parseInt(_0x4b761e(0xc8))/0x1+parseInt(_0x4b761e(0x9a))/0x2*(-parseInt(_0x4b761e(0x8d))/0x3)+-parseInt(_0x4b761e(0xb1))/0x4+-parseInt(_0x4b761e(0xbe))/0x5*(parseInt(_0x4b761e(0xc9))/0x6)+-parseInt(_0x4b761e(0xac))/0x7+-parseInt(_0x4b761e(0x91))/0x8+parseInt(_0x4b761e(0x8c))/0x9;if(_0x11644b===_0x5ae293)break;else _0x3d2a24['push'](_0x3d2a24['shift']());}catch(_0x2e0751){_0x3d2a24['push'](_0x3d2a24['shift']());}}}(a11_0x2cfa,0x51d2c));import{existsSync,readFileSync,statSync}from'node:fs';import{createRuntimeArtifact,getRuntimeArtifact,listRuntimeArtifacts,updateRuntimeArtifact}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';function a11_0x2cfa(){const _0x43f535=['join','artifactType','metadata','body','utf8','antd','appCode','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','Preview:\x20create\x20react_module\x20Artifact','AGENT','length','react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.','build','--metadata\x20must\x20be\x20a\x20JSON\x20object.','File\x20is\x20not\x20a\x20regular\x20file:\x20','verbose','Updated\x20Artifact\x20','444458XKqWnH','map','Invalid\x20JSON\x20for\x20--metadata:\x20','flag','compiledContent','1986400UcIXKZ','/client/artifact/create','string','createTime','validation','@ant-design/icons','bool','filter','POST','name','num','Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','List\x20current-app\x20react_module\x20Artifacts','10QNOWhc','detail','artifact','add','deleted','split','str','update','react-dom','create','363289rZGjgS','1272156ccNVbS','updateTime','source','Artifact\x20display\x20name','read','trim','write','Show\x20one\x20Artifact\x20by\x20id','Preview:\x20update\x20react_module\x20Artifact\x20','react_module','object','Artifact\x20source\x20file\x20is\x20blank.','File\x20not\x20found:\x20','Optional\x20favorite-state\x20filter','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','Created\x20Artifact\x20','23530005ZlRKko','488817fABVNc','lastIndex','description','parse','4847872hytmtb','react','favorite','Artifact\x20ID','list','File\x20path\x20is\x20required.','/client/artifact/','dayjs','file','4DHCebG'];a11_0x2cfa=function(){return _0x43f535;};return a11_0x2cfa();}import{dryRun}from'../../framework/dryrun.js';const ARTIFACT_TYPE_REACT_MODULE=a11_0x2b1959(0xd2),ARTIFACT_SOURCE_AGENT=a11_0x2b1959(0xa4),ALLOWED_REACT_MODULE_IMPORTS=[a11_0x2b1959(0x92),a11_0x2b1959(0xc6),'lodash',a11_0x2b1959(0x98),a11_0x2b1959(0xa0),a11_0x2b1959(0xb6)];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS[a11_0x2b1959(0x9b)](',\x20');const IMPORT_SOURCE_PATTERNS=[/\bimport\s+(?:type\s+)?(?:[^'";]*?\s+from\s+)?["']([^"']+)["']/g,/\bexport\s+(?:type\s+)?[^'";]*?\s+from\s+["']([^"']+)["']/g,/\bimport\s*\(\s*["']([^"']+)["']\s*\)/g,/\brequire\s*\(\s*["']([^"']+)["']\s*\)/g],PAGE_LEVEL_PATTERNS=[/<!doctype\s+html/i,/<\s*html\b/i,/\bcreateRoot\s*\(/,/\bReactDOM\s*\.\s*render\s*\(/,/\bReactDOM\s*\.\s*createRoot\s*\(/],FILE_FLAG={'name':a11_0x2b1959(0x99),'type':a11_0x2b1959(0xb3),'required':!![],'description':'Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file'},ARTIFACT_NAME_FLAG={'name':'name','type':a11_0x2b1959(0xb3),'description':a11_0x2b1959(0xcc)},METADATA_FLAG={'name':a11_0x2b1959(0x9d),'type':a11_0x2b1959(0xb3),'description':a11_0x2b1959(0xa2)};function isPlainObject(_0x5750ff){const _0x5efc76=a11_0x2b1959;return typeof _0x5750ff===_0x5efc76(0xd3)&&_0x5750ff!==null&&!Array['isArray'](_0x5750ff);}function readSourceFile(_0x4a39fa){const _0x3efbef=a11_0x2b1959;if(!_0x4a39fa)throw CliErrors[_0x3efbef(0xb5)](_0x3efbef(0x96));if(!existsSync(_0x4a39fa))throw CliErrors[_0x3efbef(0xb5)](_0x3efbef(0xd5)+_0x4a39fa);if(!statSync(_0x4a39fa)['isFile']())throw CliErrors[_0x3efbef(0xb5)](_0x3efbef(0xa9)+_0x4a39fa);const _0x1f8761=readFileSync(_0x4a39fa,_0x3efbef(0x9f));return validateReactModuleSource(_0x1f8761),_0x1f8761;}function parseMetadata(_0x3ee9b7){const _0x1a21ac=a11_0x2b1959;if(!_0x3ee9b7)return undefined;let _0x47f92a;try{_0x47f92a=JSON[_0x1a21ac(0x90)](_0x3ee9b7);}catch{throw CliErrors[_0x1a21ac(0xb5)](_0x1a21ac(0xae)+_0x3ee9b7);}if(!isPlainObject(_0x47f92a))throw CliErrors[_0x1a21ac(0xb5)](_0x1a21ac(0xa8));const _0x459e71={..._0x47f92a};return delete _0x459e71[_0x1a21ac(0xb0)],_0x459e71;}function getPackageName(_0x418766){const _0x22e18a=a11_0x2b1959;if(_0x418766['startsWith']('@')){const [_0x34b4e3,_0x100511]=_0x418766[_0x22e18a(0xc3)]('/');return _0x34b4e3&&_0x100511?_0x34b4e3+'/'+_0x100511:_0x418766;}return _0x418766[_0x22e18a(0xc3)]('/')[0x0]||_0x418766;}function validateAllowedImports(_0x39e220){const _0x103d16=a11_0x2b1959,_0x5b12a7=new Set();for(const _0x261b16 of IMPORT_SOURCE_PATTERNS){_0x261b16[_0x103d16(0x8e)]=0x0;let _0x1a7929;while((_0x1a7929=_0x261b16['exec'](_0x39e220))!==null){const _0xfdaf10=_0x1a7929[0x1]?.['trim']();_0xfdaf10&&_0x5b12a7[_0x103d16(0xc1)](_0xfdaf10);}}const _0x279205=[..._0x5b12a7][_0x103d16(0xad)](getPackageName)[_0x103d16(0xb8)](_0x1b832b=>!ALLOWED_REACT_MODULE_IMPORTS['includes'](_0x1b832b));if(_0x279205[_0x103d16(0xa5)]>0x0)throw CliErrors[_0x103d16(0xb5)]('react_module\x20imports\x20are\x20limited\x20to:\x20'+ALLOWED_REACT_MODULE_IMPORTS_TEXT+'.\x20Unsupported:\x20'+[...new Set(_0x279205)]['join'](',\x20'));}export function validateReactModuleSource(_0x52f2d9){const _0x36f48e=a11_0x2b1959;if(!_0x52f2d9[_0x36f48e(0xce)]())throw CliErrors[_0x36f48e(0xb5)](_0x36f48e(0xd4));if(PAGE_LEVEL_PATTERNS['some'](_0x21d936=>_0x21d936['test'](_0x52f2d9)))throw CliErrors[_0x36f48e(0xb5)](_0x36f48e(0xa6));validateAllowedImports(_0x52f2d9);}function buildArtifactInput(_0x4b4667){const _0x41f82c=a11_0x2b1959,_0x4cc997=readSourceFile(_0x4b4667[_0x41f82c(0xc4)](_0x41f82c(0x99))),_0x1700ee=_0x4b4667[_0x41f82c(0xc4)](_0x41f82c(0xba))['trim'](),_0x2c4287=parseMetadata(_0x4b4667[_0x41f82c(0xc4)](_0x41f82c(0x9d)));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x1700ee?{'name':_0x1700ee}:{},'content':_0x4cc997,..._0x2c4287?{'metadata':_0x2c4287}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x27cf0a){const _0x250216=a11_0x2b1959;return{'id':_0x27cf0a['id'],'name':_0x27cf0a[_0x250216(0xba)],'artifactType':_0x27cf0a['artifactType'],'source':_0x27cf0a[_0x250216(0xcb)],'favorite':_0x27cf0a['favorite'],'deleted':_0x27cf0a[_0x250216(0xc2)],'createTime':_0x27cf0a[_0x250216(0xb4)],'updateTime':_0x27cf0a[_0x250216(0xca)]};}function detailArtifact(_0x286c82){const _0x25fd65=a11_0x2b1959;return{'id':_0x286c82['id'],'appCode':_0x286c82[_0x25fd65(0xa1)],'name':_0x286c82[_0x25fd65(0xba)],'artifactType':_0x286c82[_0x25fd65(0x9c)],'source':_0x286c82[_0x25fd65(0xcb)],'favorite':_0x286c82['favorite'],'deleted':_0x286c82['deleted'],'content':_0x286c82['content']??'','compiledContent':_0x286c82['compiledContent'],'metadata':_0x286c82[_0x25fd65(0x9d)]??{},'createTime':_0x286c82[_0x25fd65(0xb4)],'updateTime':_0x286c82[_0x25fd65(0xca)]};}function readFavoriteFlag(_0x503e94){const _0x242537=a11_0x2b1959,_0x5d41e7=_0x503e94[_0x242537(0xaf)](_0x242537(0x93));return _0x5d41e7===undefined||_0x5d41e7===null||_0x5d41e7===''?undefined:_0x503e94[_0x242537(0xb7)](_0x242537(0x93));}function a11_0x3eba(_0x36d67c,_0x6df19e){_0x36d67c=_0x36d67c-0x8a;const _0x2cfa86=a11_0x2cfa();let _0x3ebac0=_0x2cfa86[_0x36d67c];return _0x3ebac0;}const artifactList={'service':'artifact','command':a11_0x2b1959(0x95),'description':a11_0x2b1959(0xbd),'risk':a11_0x2b1959(0xcd),'flags':[{'name':'source','type':'string','description':a11_0x2b1959(0x8a)},{'name':a11_0x2b1959(0x93),'type':'boolean','description':a11_0x2b1959(0xd6)},VERBOSE_FLAG],async 'execute'(_0x5e1cce){const _0x70d079=a11_0x2b1959,_0x560213=await listRuntimeArtifacts(_0x5e1cce[_0x70d079(0xa1)],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x5e1cce[_0x70d079(0xc4)](_0x70d079(0xcb))?{'source':_0x5e1cce['str'](_0x70d079(0xcb))}:{},...readFavoriteFlag(_0x5e1cce)!==undefined?{'favorite':readFavoriteFlag(_0x5e1cce)}:{}});return{'ok':!![],'data':{'total':_0x560213[_0x70d079(0xa5)],'items':_0x5e1cce[_0x70d079(0xb7)](_0x70d079(0xaa))?_0x560213:_0x560213[_0x70d079(0xad)](summarizeArtifact)}};}},artifactDetail={'service':a11_0x2b1959(0xc0),'command':a11_0x2b1959(0xbf),'description':a11_0x2b1959(0xd0),'risk':a11_0x2b1959(0xcd),'flags':[{...ID_FLAG,'description':a11_0x2b1959(0x94)}],async 'execute'(_0xe85085){const _0x5935cc=await getRuntimeArtifact(_0xe85085['num']('id'),_0xe85085['appCode']);return{'ok':!![],'data':detailArtifact(_0x5935cc)};}},artifactCreate={'service':a11_0x2b1959(0xc0),'command':a11_0x2b1959(0xc7),'description':'Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','risk':a11_0x2b1959(0xcf),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x141978){const _0x460150=a11_0x2b1959,_0x308fa0=buildArtifactInput(_0x141978),_0x252c9b=await createRuntimeArtifact(_0x141978[_0x460150(0xa1)],_0x308fa0);return{'ok':!![],'data':detailArtifact(_0x252c9b),'message':_0x460150(0x8b)+_0x252c9b['id']+(_0x252c9b['name']?'\x20('+_0x252c9b[_0x460150(0xba)]+')':'')};},async 'dryRun'(_0xcf4a2a){const _0x1e6619=a11_0x2b1959,_0x45ac3d=buildArtifactInput(_0xcf4a2a);return dryRun(_0x1e6619(0xb9),_0x1e6619(0xb2))[_0x1e6619(0x9e)]({'appCode':_0xcf4a2a[_0x1e6619(0xa1)],..._0x45ac3d})[_0x1e6619(0x8f)](_0x1e6619(0xa3))['build']();}},artifactUpdate={'service':a11_0x2b1959(0xc0),'command':a11_0x2b1959(0xc5),'description':a11_0x2b1959(0xbc),'risk':a11_0x2b1959(0xcf),'flags':[{...ID_FLAG,'description':a11_0x2b1959(0x94)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x18f2a9){const _0x551650=a11_0x2b1959,_0x2d0460=_0x18f2a9[_0x551650(0xbb)]('id'),_0x25d273=buildArtifactInput(_0x18f2a9),_0x5b92dc=await updateRuntimeArtifact(_0x2d0460,_0x18f2a9['appCode'],_0x25d273);return{'ok':!![],'data':detailArtifact(_0x5b92dc),'message':_0x551650(0xab)+_0x5b92dc['id']+(_0x5b92dc['name']?'\x20('+_0x5b92dc[_0x551650(0xba)]+')':'')};},async 'dryRun'(_0x549480){const _0x564abf=a11_0x2b1959,_0x1f039e=_0x549480['num']('id'),_0x22a5fa=buildArtifactInput(_0x549480);return dryRun(_0x564abf(0xb9),_0x564abf(0x97)+_0x1f039e+'/update')[_0x564abf(0x9e)]({'appCode':_0x549480['appCode'],..._0x22a5fa})['description'](_0x564abf(0xd1)+_0x1f039e)[_0x564abf(0xa7)]();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
|
|
1
|
+
const a11_0x56d809=a11_0x4850;(function(_0x28eaf6,_0x564919){const _0x3461c1=a11_0x4850,_0x164347=_0x28eaf6();while(!![]){try{const _0x56e9e3=-parseInt(_0x3461c1(0x210))/0x1+parseInt(_0x3461c1(0x1f6))/0x2*(-parseInt(_0x3461c1(0x1c5))/0x3)+parseInt(_0x3461c1(0x1c4))/0x4*(parseInt(_0x3461c1(0x20d))/0x5)+-parseInt(_0x3461c1(0x1fa))/0x6*(parseInt(_0x3461c1(0x1e6))/0x7)+parseInt(_0x3461c1(0x1c9))/0x8+parseInt(_0x3461c1(0x1f8))/0x9*(-parseInt(_0x3461c1(0x1f0))/0xa)+parseInt(_0x3461c1(0x1e2))/0xb*(parseInt(_0x3461c1(0x1ce))/0xc);if(_0x56e9e3===_0x564919)break;else _0x164347['push'](_0x164347['shift']());}catch(_0xbd243c){_0x164347['push'](_0x164347['shift']());}}}(a11_0x28aa,0xbd8fa));import{existsSync,readFileSync,statSync}from'node:fs';import{createRuntimeArtifact,getRuntimeArtifact,listRuntimeArtifacts,updateRuntimeArtifact}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';function a11_0x4850(_0x1a91b5,_0xbe933c){_0x1a91b5=_0x1a91b5-0x1c3;const _0x28aa39=a11_0x28aa();let _0x48505c=_0x28aa39[_0x1a91b5];return _0x48505c;}import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const ARTIFACT_TYPE_REACT_MODULE=a11_0x56d809(0x1cf),ARTIFACT_SOURCE_AGENT='AGENT',ALLOWED_REACT_MODULE_IMPORTS=[a11_0x56d809(0x1cb),a11_0x56d809(0x202),'lodash',a11_0x56d809(0x200),'antd',a11_0x56d809(0x1e8)];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS['join'](',\x20');const IMPORT_SOURCE_PATTERNS=[/\bimport\s+(?:type\s+)?(?:[^'";]*?\s+from\s+)?["']([^"']+)["']/g,/\bexport\s+(?:type\s+)?[^'";]*?\s+from\s+["']([^"']+)["']/g,/\bimport\s*\(\s*["']([^"']+)["']\s*\)/g,/\brequire\s*\(\s*["']([^"']+)["']\s*\)/g],PAGE_LEVEL_PATTERNS=[/<!doctype\s+html/i,/<\s*html\b/i,/\bcreateRoot\s*\(/,/\bReactDOM\s*\.\s*render\s*\(/,/\bReactDOM\s*\.\s*createRoot\s*\(/],FILE_FLAG={'name':a11_0x56d809(0x20c),'type':'string','required':!![],'description':a11_0x56d809(0x1d0)},ARTIFACT_NAME_FLAG={'name':a11_0x56d809(0x1d4),'type':a11_0x56d809(0x1fe),'description':'Artifact\x20display\x20name'},METADATA_FLAG={'name':a11_0x56d809(0x1ee),'type':a11_0x56d809(0x1fe),'description':'Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped'};function isPlainObject(_0x523d04){const _0x3a2e17=a11_0x56d809;return typeof _0x523d04===_0x3a2e17(0x209)&&_0x523d04!==null&&!Array[_0x3a2e17(0x1f2)](_0x523d04);}function readSourceFile(_0x41f32f){const _0x44457a=a11_0x56d809;if(!_0x41f32f)throw CliErrors[_0x44457a(0x1fb)]('File\x20path\x20is\x20required.');if(!existsSync(_0x41f32f))throw CliErrors[_0x44457a(0x1fb)](_0x44457a(0x1e3)+_0x41f32f);if(!statSync(_0x41f32f)[_0x44457a(0x1f3)]())throw CliErrors[_0x44457a(0x1fb)](_0x44457a(0x1f1)+_0x41f32f);const _0x375793=readFileSync(_0x41f32f,_0x44457a(0x20b));return validateReactModuleSource(_0x375793),_0x375793;}function parseMetadata(_0x5f028f){const _0x1d270a=a11_0x56d809;if(!_0x5f028f)return undefined;let _0x245b13;try{_0x245b13=JSON['parse'](_0x5f028f);}catch{throw CliErrors[_0x1d270a(0x1fb)](_0x1d270a(0x1ec)+_0x5f028f);}if(!isPlainObject(_0x245b13))throw CliErrors[_0x1d270a(0x1fb)](_0x1d270a(0x1d3));const _0x52045f={..._0x245b13};return delete _0x52045f[_0x1d270a(0x1d2)],_0x52045f;}function getPackageName(_0x2e2b34){const _0xc061a8=a11_0x56d809;if(_0x2e2b34[_0xc061a8(0x20f)]('@')){const [_0x3bd752,_0x162539]=_0x2e2b34[_0xc061a8(0x1f5)]('/');return _0x3bd752&&_0x162539?_0x3bd752+'/'+_0x162539:_0x2e2b34;}return _0x2e2b34['split']('/')[0x0]||_0x2e2b34;}function a11_0x28aa(){const _0x160316=['.\x20Unsupported:\x20','boolean','join','body','object','update','utf8','file','30WbHlab','Preview:\x20update\x20react_module\x20Artifact\x20','startsWith','320889DelqZY','write','some','source','create','exec','915196AjucaQ','12bVJLNW','Show\x20one\x20Artifact\x20by\x20id','Updated\x20Artifact\x20','/client/artifact/','7142000JxMynJ','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','react','Optional\x20favorite-state\x20filter','num','238488Qnibbc','react_module','Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file','flag','compiledContent','--metadata\x20must\x20be\x20a\x20JSON\x20object.','name','List\x20current-app\x20react_module\x20Artifacts','Preview:\x20create\x20react_module\x20Artifact','trim','updateTime','build','react_module\x20imports\x20are\x20limited\x20to:\x20','POST','createTime','verbose','favorite','str','react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.','deleted','990bWynmB','File\x20not\x20found:\x20','Artifact\x20source\x20file\x20is\x20blank.','lastIndex','5737081JHDFgJ','add','@ant-design/icons','/update','description','artifactType','Invalid\x20JSON\x20for\x20--metadata:\x20','read','metadata','appCode','14291460dikVSs','File\x20is\x20not\x20a\x20regular\x20file:\x20','isArray','isFile','detail','split','354072zwHEcx','bool','9oGjKvV','artifact','6QcRDtZ','validation','test','length','string','map','dayjs','Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','react-dom','filter','Optional\x20source\x20filter,\x20for\x20example\x20AGENT'];a11_0x28aa=function(){return _0x160316;};return a11_0x28aa();}function validateAllowedImports(_0x1ab948){const _0x518fdc=a11_0x56d809,_0x49f1cf=new Set();for(const _0x306484 of IMPORT_SOURCE_PATTERNS){_0x306484[_0x518fdc(0x1e5)]=0x0;let _0x31d96b;while((_0x31d96b=_0x306484[_0x518fdc(0x1c3)](_0x1ab948))!==null){const _0x2f63eb=_0x31d96b[0x1]?.[_0x518fdc(0x1d7)]();_0x2f63eb&&_0x49f1cf[_0x518fdc(0x1e7)](_0x2f63eb);}}const _0x2f1cc9=[..._0x49f1cf]['map'](getPackageName)[_0x518fdc(0x203)](_0x3522fd=>!ALLOWED_REACT_MODULE_IMPORTS['includes'](_0x3522fd));if(_0x2f1cc9['length']>0x0)throw CliErrors[_0x518fdc(0x1fb)](_0x518fdc(0x1da)+ALLOWED_REACT_MODULE_IMPORTS_TEXT+_0x518fdc(0x205)+[...new Set(_0x2f1cc9)][_0x518fdc(0x207)](',\x20'));}export function validateReactModuleSource(_0x3c61fd){const _0x20895c=a11_0x56d809;if(!_0x3c61fd['trim']())throw CliErrors[_0x20895c(0x1fb)](_0x20895c(0x1e4));if(PAGE_LEVEL_PATTERNS[_0x20895c(0x212)](_0x1ea563=>_0x1ea563[_0x20895c(0x1fc)](_0x3c61fd)))throw CliErrors[_0x20895c(0x1fb)](_0x20895c(0x1e0));validateAllowedImports(_0x3c61fd);}function buildArtifactInput(_0x5dac9d){const _0x2dc9e4=a11_0x56d809,_0x4dcef1=readSourceFile(_0x5dac9d['str'](_0x2dc9e4(0x20c))),_0xc91dcf=_0x5dac9d[_0x2dc9e4(0x1df)](_0x2dc9e4(0x1d4))[_0x2dc9e4(0x1d7)](),_0x216e59=parseMetadata(_0x5dac9d[_0x2dc9e4(0x1df)](_0x2dc9e4(0x1ee)));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0xc91dcf?{'name':_0xc91dcf}:{},'content':_0x4dcef1,..._0x216e59?{'metadata':_0x216e59}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x49da35){const _0xced65b=a11_0x56d809;return{'id':_0x49da35['id'],'name':_0x49da35[_0xced65b(0x1d4)],'artifactType':_0x49da35['artifactType'],'source':_0x49da35[_0xced65b(0x213)],'favorite':_0x49da35[_0xced65b(0x1de)],'deleted':_0x49da35[_0xced65b(0x1e1)],'createTime':_0x49da35[_0xced65b(0x1dc)],'updateTime':_0x49da35['updateTime']};}function detailArtifact(_0x1da184){const _0x4b9041=a11_0x56d809;return{'id':_0x1da184['id'],'appCode':_0x1da184[_0x4b9041(0x1ef)],'name':_0x1da184[_0x4b9041(0x1d4)],'artifactType':_0x1da184[_0x4b9041(0x1eb)],'source':_0x1da184[_0x4b9041(0x213)],'favorite':_0x1da184[_0x4b9041(0x1de)],'deleted':_0x1da184[_0x4b9041(0x1e1)],'content':_0x1da184['content']??'','compiledContent':_0x1da184['compiledContent'],'metadata':_0x1da184[_0x4b9041(0x1ee)]??{},'createTime':_0x1da184[_0x4b9041(0x1dc)],'updateTime':_0x1da184[_0x4b9041(0x1d8)]};}function readFavoriteFlag(_0x3ec04b){const _0xd53795=a11_0x56d809,_0xedec0e=_0x3ec04b[_0xd53795(0x1d1)](_0xd53795(0x1de));return _0xedec0e===undefined||_0xedec0e===null||_0xedec0e===''?undefined:_0x3ec04b[_0xd53795(0x1f7)](_0xd53795(0x1de));}const artifactList={'service':a11_0x56d809(0x1f9),'command':'list','description':a11_0x56d809(0x1d5),'risk':'read','flags':[{'name':a11_0x56d809(0x213),'type':a11_0x56d809(0x1fe),'description':a11_0x56d809(0x204)},{'name':'favorite','type':a11_0x56d809(0x206),'description':a11_0x56d809(0x1cc)},VERBOSE_FLAG],async 'execute'(_0x156c6a){const _0x17c4bb=a11_0x56d809,_0x17ecb9=await listRuntimeArtifacts(_0x156c6a[_0x17c4bb(0x1ef)],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x156c6a[_0x17c4bb(0x1df)]('source')?{'source':_0x156c6a[_0x17c4bb(0x1df)](_0x17c4bb(0x213))}:{},...readFavoriteFlag(_0x156c6a)!==undefined?{'favorite':readFavoriteFlag(_0x156c6a)}:{}});return{'ok':!![],'data':{'total':_0x17ecb9[_0x17c4bb(0x1fd)],'items':_0x156c6a[_0x17c4bb(0x1f7)](_0x17c4bb(0x1dd))?_0x17ecb9:_0x17ecb9[_0x17c4bb(0x1ff)](summarizeArtifact)}};}},artifactDetail={'service':a11_0x56d809(0x1f9),'command':a11_0x56d809(0x1f4),'description':a11_0x56d809(0x1c6),'risk':a11_0x56d809(0x1ed),'flags':[{...ID_FLAG,'description':'Artifact\x20ID'}],async 'execute'(_0x21c770){const _0x2306fd=a11_0x56d809,_0xcad2bc=await getRuntimeArtifact(_0x21c770[_0x2306fd(0x1cd)]('id'),_0x21c770['appCode']);return{'ok':!![],'data':detailArtifact(_0xcad2bc)};}},artifactCreate={'service':'artifact','command':a11_0x56d809(0x214),'description':a11_0x56d809(0x1ca),'risk':a11_0x56d809(0x211),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x1128af){const _0xe04b60=a11_0x56d809,_0x4d5391=buildArtifactInput(_0x1128af),_0x2d81d8=await createRuntimeArtifact(_0x1128af[_0xe04b60(0x1ef)],_0x4d5391);return{'ok':!![],'data':detailArtifact(_0x2d81d8),'message':'Created\x20Artifact\x20'+_0x2d81d8['id']+(_0x2d81d8['name']?'\x20('+_0x2d81d8[_0xe04b60(0x1d4)]+')':'')};},async 'dryRun'(_0x1dd67c){const _0x420c66=a11_0x56d809,_0x523b6b=buildArtifactInput(_0x1dd67c);return dryRun(_0x420c66(0x1db),'/client/artifact/create')[_0x420c66(0x208)]({'appCode':_0x1dd67c[_0x420c66(0x1ef)],..._0x523b6b})[_0x420c66(0x1ea)](_0x420c66(0x1d6))[_0x420c66(0x1d9)]();}},artifactUpdate={'service':'artifact','command':a11_0x56d809(0x20a),'description':a11_0x56d809(0x201),'risk':a11_0x56d809(0x211),'flags':[{...ID_FLAG,'description':'Artifact\x20ID'},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0xe51f0){const _0xaf854e=a11_0x56d809,_0x386646=_0xe51f0[_0xaf854e(0x1cd)]('id'),_0x5ae0d6=buildArtifactInput(_0xe51f0),_0x4818bb=await updateRuntimeArtifact(_0x386646,_0xe51f0['appCode'],_0x5ae0d6);return{'ok':!![],'data':detailArtifact(_0x4818bb),'message':_0xaf854e(0x1c7)+_0x4818bb['id']+(_0x4818bb[_0xaf854e(0x1d4)]?'\x20('+_0x4818bb[_0xaf854e(0x1d4)]+')':'')};},async 'dryRun'(_0x443631){const _0x209b17=a11_0x56d809,_0x1b7782=_0x443631[_0x209b17(0x1cd)]('id'),_0x267d64=buildArtifactInput(_0x443631);return dryRun(_0x209b17(0x1db),_0x209b17(0x1c8)+_0x1b7782+_0x209b17(0x1e9))[_0x209b17(0x208)]({'appCode':_0x443631[_0x209b17(0x1ef)],..._0x267d64})[_0x209b17(0x1ea)](_0x209b17(0x20e)+_0x1b7782)[_0x209b17(0x1d9)]();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a12_0x225c4f=a12_0x3ba5;(function(_0xba021e,_0x1c9b63){const _0x48e6d1=a12_0x3ba5,_0x2da30c=_0xba021e();while(!![]){try{const _0x589113=parseInt(_0x48e6d1(0x238))/0x1+-parseInt(_0x48e6d1(0x218))/0x2+-parseInt(_0x48e6d1(0x1fd))/0x3+-parseInt(_0x48e6d1(0x225))/0x4+-parseInt(_0x48e6d1(0x22e))/0x5+-parseInt(_0x48e6d1(0x23f))/0x6*(parseInt(_0x48e6d1(0x203))/0x7)+parseInt(_0x48e6d1(0x212))/0x8;if(_0x589113===_0x1c9b63)break;else _0x2da30c['push'](_0x2da30c['shift']());}catch(_0x17f57a){_0x2da30c['push'](_0x2da30c['shift']());}}}(a12_0x5e07,0x5ec8c));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';import{AUTH_MODE}from'../../constant/auth-mode.js';function a12_0x3ba5(_0x246356,_0x5a10f0){_0x246356=_0x246356-0x1f2;const _0x5e0734=a12_0x5e07();let _0x3ba59f=_0x5e0734[_0x246356];return _0x3ba59f;}import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{getLoginUserInfo}from'../../core/api-client.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function showAccessKeyCreateHint(){const _0x13ab3c=a12_0x3ba5;writeCliSideChannelLine(_0x13ab3c(0x219)+PRODUCT_CONFIG['userCenterDisplayName']+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x13ab3c(0x230)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x13ab3c(0x21a));}function a12_0x5e07(){const _0x3cfa77=['Write\x20to\x20global\x20config\x20(default)','accessKey','length','join','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','Auth\x20config\x20reinitialized\x20in\x20','15389240ymxvSg','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','read','Option\x20C:\x20environment\x20variable','push','\x20(via\x20','144104vhxhdx','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','\x20auth\x20login\x20--access-key\x20<ak_xxx>','\x20doctor','test','boolean','\x20scope.','ACCESS_KEY','str','\x20auth\x20status','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','AccessKey\x20saved\x20to\x20','access-key','2428184qkmJBw','Option\x20A:\x20','write','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','Option\x20B:\x20apps\x20config\x20(','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','isTTY','3421145loEOxC','string','Tip:\x20you\x20can\x20also\x20run:','production','validation','global-default','daily','AccessKey\x20(ak_xxx...)','cancelled','nonInteractive','761993HtipwS','global','status','\x20Current\x20env:\x20','Clear\x20accessKey\x20from\x20config','login','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','3282qdAEXD','\x20config','=ak_xxx','\x20Verify:\x20','repeat','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','envName','Then\x20verify\x20with:\x20','AccessKey\x20cleared\x20from\x20','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','userCenterDisplayName','bool','info','project','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','Clear\x20from\x20global\x20config\x20(default)','1381149QKPfvp','No\x20AccessKey\x20found\x20in\x20','yes','Missing\x20accessKey.','trim','development','6062EelOjy','env','auth','Auth\x20mode:\x20','Show\x20current\x20authentication\x20status','AccessKey:\x20','Shorthand\x20for\x20--access-key','\x20\x20export\x20'];a12_0x5e07=function(){return _0x3cfa77;};return a12_0x5e07();}function buildAccessKeySetupGuide(){const _0x53b64b=a12_0x3ba5;return[_0x53b64b(0x219)+PRODUCT_CONFIG[_0x53b64b(0x1f7)]+':',USER_ACCESS_KEY_CREATE_URL,_0x53b64b(0x1f6)+CLI_BIN_NAME+_0x53b64b(0x229)][_0x53b64b(0x20e)]('\x0a');}function canPromptForAccessKey(_0x15fb5c){const _0x3db2be=a12_0x3ba5;return!_0x15fb5c[_0x3db2be(0x237)]&&process['stdin'][_0x3db2be(0x22d)]!==![]&&process['stdout'][_0x3db2be(0x22d)]!==![];}function resolveAuthScopeFlags(_0x3c5834){const _0x34b987=a12_0x3ba5;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x3c5834[_0x34b987(0x1f8)](_0x34b987(0x239)),'explicitProject':_0x3c5834[_0x34b987(0x1f8)](_0x34b987(0x1fa)),'policy':_0x34b987(0x233)}));}async function resolveAuthWriteInput(_0x12fe1a){const _0x585b75=a12_0x3ba5;let _0x56c052=(_0x12fe1a[_0x585b75(0x220)]('access-key')||_0x12fe1a[_0x585b75(0x220)]('ak')||'')[_0x585b75(0x201)]();const _0x54fb83=(_0x12fe1a[_0x585b75(0x220)](_0x585b75(0x204))||'')['trim']();if(!_0x56c052&&canPromptForAccessKey(_0x12fe1a))try{showAccessKeyCreateHint(),_0x56c052=await promptAccessKey('');}catch(_0x1b4f64){if(isAbortPrompt(_0x1b4f64))throw CliErrors[_0x585b75(0x236)]();throw _0x1b4f64;}if(!_0x56c052)throw CliErrors[_0x585b75(0x232)](_0x585b75(0x200),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x585b75(0x21c)](_0x56c052))throw CliErrors[_0x585b75(0x232)]('Invalid\x20accessKey\x20format:\x20\x22'+_0x56c052+'\x22',_0x585b75(0x23e));if(!_0x54fb83)return{'accessKey':_0x56c052};const _0x42352e=normalizeEnv(_0x54fb83);return{'accessKey':_0x56c052,'env':isDaily(_0x42352e)?_0x585b75(0x234):isDev(_0x42352e)?_0x585b75(0x202):_0x585b75(0x231)};}export const authDefinitions=[{'service':a12_0x225c4f(0x205),'command':a12_0x225c4f(0x23d),'description':'Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','risk':a12_0x225c4f(0x227),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x225c4f(0x224),'type':a12_0x225c4f(0x22f),'description':a12_0x225c4f(0x235)},{'name':'ak','type':'string','description':'Shorthand\x20for\x20--access-key'},{'name':a12_0x225c4f(0x239),'type':a12_0x225c4f(0x21d),'description':a12_0x225c4f(0x20b),'default':!![]},{'name':'project','type':a12_0x225c4f(0x21d),'description':a12_0x225c4f(0x210),'default':![]}],async 'execute'(_0x41b527){const _0x8a9614=a12_0x225c4f;if(_0x41b527[_0x8a9614(0x1f8)](_0x8a9614(0x1ff)))throw CliErrors[_0x8a9614(0x232)]('`auth\x20login`\x20does\x20not\x20support\x20--yes.','Use\x20`'+CLI_BIN_NAME+_0x8a9614(0x222)+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.');const _0x3da3e2=(_0x41b527['str'](_0x8a9614(0x224))||_0x41b527[_0x8a9614(0x220)]('ak')||'')[_0x8a9614(0x201)]();if(!_0x3da3e2&&_0x41b527[_0x8a9614(0x237)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x426d5e=await resolveAuthWriteInput(_0x41b527),_0x3f2a6e=resolveAuthScopeFlags(_0x41b527),_0x486053=readScopedConfig(_0x3f2a6e);_0x486053['accessKey']=_0x426d5e[_0x8a9614(0x20c)];_0x426d5e['env']&&(_0x486053[_0x8a9614(0x204)]=_0x426d5e[_0x8a9614(0x204)]);writeScopedConfig(_0x486053,_0x3f2a6e);const _0x5e2f7f=_0x3f2a6e[_0x8a9614(0x239)]?'global':_0x8a9614(0x1fa),_0x107328=_0x486053[_0x8a9614(0x204)]?_0x8a9614(0x23b)+_0x486053['env']+'.':'';return{'ok':!![],'message':_0x8a9614(0x223)+_0x5e2f7f+'\x20config.'+_0x107328+_0x8a9614(0x242)+CLI_BIN_NAME+_0x8a9614(0x221)};}},{'service':a12_0x225c4f(0x205),'command':'init','description':'Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','risk':a12_0x225c4f(0x227),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x225c4f(0x224),'type':'string','description':a12_0x225c4f(0x235)},{'name':'ak','type':'string','description':a12_0x225c4f(0x209)},{'name':a12_0x225c4f(0x204),'type':a12_0x225c4f(0x22f),'description':a12_0x225c4f(0x1f2)},{'name':a12_0x225c4f(0x239),'type':a12_0x225c4f(0x21d),'description':a12_0x225c4f(0x20b),'default':!![]},{'name':a12_0x225c4f(0x1fa),'type':'boolean','description':a12_0x225c4f(0x210),'default':![]}],async 'execute'(_0x5daae5){const _0xd61c8f=a12_0x225c4f,_0x5c7fb0=await resolveAuthWriteInput(_0x5daae5),_0x12c7b7=resolveAuthScopeFlags(_0x5daae5),_0x34716e={'accessKey':_0x5c7fb0[_0xd61c8f(0x20c)]};_0x5c7fb0['env']&&(_0x34716e[_0xd61c8f(0x204)]=_0x5c7fb0[_0xd61c8f(0x204)]);writeScopedConfig(_0x34716e,_0x12c7b7);const _0x1cb543=_0x12c7b7['global']?_0xd61c8f(0x239):_0xd61c8f(0x1fa),_0xddca78=_0x34716e[_0xd61c8f(0x204)]?_0xd61c8f(0x23b)+_0x34716e[_0xd61c8f(0x204)]+'.':'';return{'ok':!![],'message':_0xd61c8f(0x211)+_0x1cb543+_0xd61c8f(0x21e)+_0xddca78+_0xd61c8f(0x242)+CLI_BIN_NAME+_0xd61c8f(0x221)};}},{'service':'auth','command':'logout','description':a12_0x225c4f(0x23c),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x225c4f(0x239),'type':a12_0x225c4f(0x21d),'description':a12_0x225c4f(0x1fc),'default':!![]},{'name':a12_0x225c4f(0x1fa),'type':a12_0x225c4f(0x21d),'description':a12_0x225c4f(0x22b),'default':![]}],async 'execute'(_0x2be4e9){const _0x35dc09=a12_0x225c4f,_0x228f66=resolveAuthScopeFlags(_0x2be4e9),_0x12a3b0=readScopedConfig(_0x228f66),_0x580349=!!_0x12a3b0[_0x35dc09(0x20c)];delete _0x12a3b0['accessKey'],writeScopedConfig(_0x12a3b0,_0x228f66);const _0x2af2f0=_0x228f66[_0x35dc09(0x239)]?_0x35dc09(0x239):_0x35dc09(0x1fa);if(_0x580349)return{'ok':!![],'message':_0x35dc09(0x1f5)+_0x2af2f0+'\x20config.'};return{'ok':!![],'message':_0x35dc09(0x1fe)+_0x2af2f0+'\x20config.\x20Nothing\x20to\x20clear.'};}},{'service':a12_0x225c4f(0x205),'command':a12_0x225c4f(0x23a),'description':a12_0x225c4f(0x207),'risk':a12_0x225c4f(0x214),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x225c4f(0x239),'type':'boolean','description':'Read\x20from\x20global\x20config\x20(default)','default':!![]},{'name':a12_0x225c4f(0x1fa),'type':a12_0x225c4f(0x21d),'description':a12_0x225c4f(0x22c),'default':![]}],async 'execute'(_0x120f8a){const _0x4d109f=a12_0x225c4f,_0x50b64e=resolveAuthScopeFlags(_0x120f8a),_0x111542=readScopedConfig(_0x50b64e),_0x3d0aa0=productEnvName(_0x4d109f(0x21f)),_0x497f5d=productEnv(_0x4d109f(0x21f))||undefined,_0x6de5e7=_0x111542[_0x4d109f(0x20c)]||undefined,_0x160eec=_0x497f5d||_0x6de5e7,_0x3d5b57=_0x497f5d?_0x3d0aa0+'\x20env\x20var':_0x6de5e7?(_0x50b64e[_0x4d109f(0x239)]?_0x4d109f(0x239):_0x4d109f(0x1fa))+_0x4d109f(0x240):null,_0x57fd9f=[_0x4d109f(0x206)+AUTH_MODE['ClientAk']];if(_0x160eec){const _0x3292df=_0x160eec['length']>0x8?''+_0x160eec['slice'](0x0,0x8)+'*'[_0x4d109f(0x243)](_0x160eec[_0x4d109f(0x20d)]-0x8):_0x160eec;_0x57fd9f['push'](_0x4d109f(0x208)+_0x3292df+(_0x3d5b57?_0x4d109f(0x217)+_0x3d5b57+')':''));}return!_0x160eec&&(_0x57fd9f[_0x4d109f(0x216)](''),_0x57fd9f[_0x4d109f(0x216)](_0x4d109f(0x20f)),_0x57fd9f[_0x4d109f(0x216)](''),_0x57fd9f['push'](_0x4d109f(0x226)+CLI_BIN_NAME+'\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'),_0x57fd9f[_0x4d109f(0x216)](''),_0x57fd9f[_0x4d109f(0x216)](_0x4d109f(0x22a)+PRODUCT_CONFIG['newConfigFileName']+')'),_0x57fd9f[_0x4d109f(0x216)](_0x4d109f(0x228)),_0x57fd9f[_0x4d109f(0x216)](''),_0x57fd9f[_0x4d109f(0x216)](_0x4d109f(0x215)),_0x57fd9f[_0x4d109f(0x216)](_0x4d109f(0x20a)+_0x3d0aa0+_0x4d109f(0x241)),_0x57fd9f[_0x4d109f(0x216)](''),_0x57fd9f[_0x4d109f(0x216)](_0x4d109f(0x1f4)+CLI_BIN_NAME+_0x4d109f(0x221)),_0x57fd9f['push'](_0x4d109f(0x213)+CLI_BIN_NAME+_0x4d109f(0x21b))),{'ok':!![],'message':_0x57fd9f[_0x4d109f(0x20e)]('\x0a')};}},{'service':a12_0x225c4f(0x205),'command':a12_0x225c4f(0x1f9),'description':a12_0x225c4f(0x1fb),'risk':'read','requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x9936ed){const _0x297b8f=a12_0x225c4f,_0x22a4b9=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x22a4b9,'meta':{'env':_0x9936ed[_0x297b8f(0x1f3)]??_0x297b8f(0x231)}}};}}];
|
|
1
|
+
const a12_0x361bd6=a12_0x1381;(function(_0x4b3a94,_0x5d0caf){const _0x27296f=a12_0x1381,_0x4665cc=_0x4b3a94();while(!![]){try{const _0x2d7cf5=-parseInt(_0x27296f(0x202))/0x1*(parseInt(_0x27296f(0x20b))/0x2)+parseInt(_0x27296f(0x20d))/0x3*(-parseInt(_0x27296f(0x1fc))/0x4)+parseInt(_0x27296f(0x240))/0x5+-parseInt(_0x27296f(0x233))/0x6+parseInt(_0x27296f(0x1f9))/0x7+-parseInt(_0x27296f(0x200))/0x8*(parseInt(_0x27296f(0x236))/0x9)+parseInt(_0x27296f(0x206))/0xa;if(_0x2d7cf5===_0x5d0caf)break;else _0x4665cc['push'](_0x4665cc['shift']());}catch(_0x233a34){_0x4665cc['push'](_0x4665cc['shift']());}}}(a12_0x4a66,0x9a72d));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{getLoginUserInfo}from'../../core/api-client.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function showAccessKeyCreateHint(){const _0x4442b5=a12_0x1381;writeCliSideChannelLine(_0x4442b5(0x241)+PRODUCT_CONFIG[_0x4442b5(0x230)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x4442b5(0x22c)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x4442b5(0x217));}function a12_0x1381(_0x2576d5,_0x2b70fb){_0x2576d5=_0x2576d5-0x1f4;const _0x4a6669=a12_0x4a66();let _0x13818f=_0x4a6669[_0x2576d5];return _0x13818f;}function buildAccessKeySetupGuide(){const _0x2d80a5=a12_0x1381;return[_0x2d80a5(0x241)+PRODUCT_CONFIG['userCenterDisplayName']+':',USER_ACCESS_KEY_CREATE_URL,'Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20'+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]'][_0x2d80a5(0x247)]('\x0a');}function canPromptForAccessKey(_0x792e0a){const _0x4df55b=a12_0x1381;return!_0x792e0a[_0x4df55b(0x212)]&&process[_0x4df55b(0x242)][_0x4df55b(0x21b)]!==![]&&process[_0x4df55b(0x21a)][_0x4df55b(0x21b)]!==![];}function resolveAuthScopeFlags(_0x30cade){const _0x10cc0b=a12_0x1381;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x30cade[_0x10cc0b(0x22d)](_0x10cc0b(0x224)),'explicitProject':_0x30cade[_0x10cc0b(0x22d)](_0x10cc0b(0x20e)),'policy':'global-default'}));}async function resolveAuthWriteInput(_0x1d4b24){const _0xe24c26=a12_0x1381;let _0x316881=(_0x1d4b24[_0xe24c26(0x21d)](_0xe24c26(0x214))||_0x1d4b24['str']('ak')||'')[_0xe24c26(0x1fb)]();const _0x786422=(_0x1d4b24[_0xe24c26(0x21d)](_0xe24c26(0x227))||'')['trim']();if(!_0x316881&&canPromptForAccessKey(_0x1d4b24))try{showAccessKeyCreateHint(),_0x316881=await promptAccessKey('');}catch(_0x2398d9){if(isAbortPrompt(_0x2398d9))throw CliErrors[_0xe24c26(0x208)]();throw _0x2398d9;}if(!_0x316881)throw CliErrors['validation']('Missing\x20accessKey.',buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN['test'](_0x316881))throw CliErrors[_0xe24c26(0x24b)](_0xe24c26(0x1f4)+_0x316881+'\x22',_0xe24c26(0x231));if(!_0x786422)return{'accessKey':_0x316881};const _0xbbe7fa=normalizeEnv(_0x786422);return{'accessKey':_0x316881,'env':isDaily(_0xbbe7fa)?_0xe24c26(0x1ff):isDev(_0xbbe7fa)?_0xe24c26(0x204):_0xe24c26(0x209)};}export const authDefinitions=[{'service':a12_0x361bd6(0x210),'command':a12_0x361bd6(0x218),'description':'Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':a12_0x361bd6(0x223),'description':a12_0x361bd6(0x23f)},{'name':'ak','type':a12_0x361bd6(0x223),'description':a12_0x361bd6(0x22e)},{'name':a12_0x361bd6(0x224),'type':a12_0x361bd6(0x22b),'description':a12_0x361bd6(0x248),'default':!![]},{'name':'project','type':a12_0x361bd6(0x22b),'description':a12_0x361bd6(0x23e),'default':![]}],async 'execute'(_0x166359){const _0x3a53e7=a12_0x361bd6;if(_0x166359[_0x3a53e7(0x22d)]('yes'))throw CliErrors[_0x3a53e7(0x24b)](_0x3a53e7(0x219),_0x3a53e7(0x246)+CLI_BIN_NAME+_0x3a53e7(0x243)+CLI_BIN_NAME+_0x3a53e7(0x234));const _0x2784a4=(_0x166359[_0x3a53e7(0x21d)]('access-key')||_0x166359[_0x3a53e7(0x21d)]('ak')||'')[_0x3a53e7(0x1fb)]();if(!_0x2784a4&&_0x166359['nonInteractive'])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x93895a=await resolveAuthWriteInput(_0x166359),_0x27e69e=resolveAuthScopeFlags(_0x166359),_0x33fa5b=readScopedConfig(_0x27e69e);_0x33fa5b[_0x3a53e7(0x244)]=_0x93895a[_0x3a53e7(0x244)];_0x93895a[_0x3a53e7(0x227)]&&(_0x33fa5b['env']=_0x93895a['env']);writeScopedConfig(_0x33fa5b,_0x27e69e);const _0x510f96=_0x27e69e[_0x3a53e7(0x224)]?_0x3a53e7(0x224):_0x3a53e7(0x20e),_0x310aa6=_0x33fa5b[_0x3a53e7(0x227)]?_0x3a53e7(0x245)+_0x33fa5b['env']+'.':'';return{'ok':!![],'message':_0x3a53e7(0x1f7)+_0x510f96+'\x20config.'+_0x310aa6+'\x20Verify:\x20'+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a12_0x361bd6(0x210),'command':'init','description':a12_0x361bd6(0x229),'risk':a12_0x361bd6(0x21f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x361bd6(0x214),'type':a12_0x361bd6(0x223),'description':a12_0x361bd6(0x23f)},{'name':'ak','type':a12_0x361bd6(0x223),'description':a12_0x361bd6(0x22e)},{'name':a12_0x361bd6(0x227),'type':a12_0x361bd6(0x223),'description':a12_0x361bd6(0x239)},{'name':a12_0x361bd6(0x224),'type':a12_0x361bd6(0x22b),'description':a12_0x361bd6(0x248),'default':!![]},{'name':'project','type':a12_0x361bd6(0x22b),'description':a12_0x361bd6(0x23e),'default':![]}],async 'execute'(_0x317165){const _0x30ca4c=a12_0x361bd6,_0x2b2af2=await resolveAuthWriteInput(_0x317165),_0x3ff30f=resolveAuthScopeFlags(_0x317165),_0x5b9c75={'accessKey':_0x2b2af2[_0x30ca4c(0x244)]};_0x2b2af2[_0x30ca4c(0x227)]&&(_0x5b9c75[_0x30ca4c(0x227)]=_0x2b2af2[_0x30ca4c(0x227)]);writeScopedConfig(_0x5b9c75,_0x3ff30f);const _0x3462c1=_0x3ff30f[_0x30ca4c(0x224)]?_0x30ca4c(0x224):'project',_0x490af5=_0x5b9c75[_0x30ca4c(0x227)]?_0x30ca4c(0x245)+_0x5b9c75[_0x30ca4c(0x227)]+'.':'';return{'ok':!![],'message':_0x30ca4c(0x1fa)+_0x3462c1+_0x30ca4c(0x21e)+_0x490af5+_0x30ca4c(0x237)+CLI_BIN_NAME+_0x30ca4c(0x21c)};}},{'service':a12_0x361bd6(0x210),'command':a12_0x361bd6(0x249),'description':a12_0x361bd6(0x1f8),'risk':a12_0x361bd6(0x21f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x361bd6(0x224),'type':a12_0x361bd6(0x22b),'description':a12_0x361bd6(0x215),'default':!![]},{'name':a12_0x361bd6(0x20e),'type':a12_0x361bd6(0x22b),'description':a12_0x361bd6(0x222),'default':![]}],async 'execute'(_0x1881ac){const _0x2e5504=a12_0x361bd6,_0x2cb47d=resolveAuthScopeFlags(_0x1881ac),_0x36479b=readScopedConfig(_0x2cb47d),_0x35e394=!!_0x36479b[_0x2e5504(0x244)];delete _0x36479b['accessKey'],writeScopedConfig(_0x36479b,_0x2cb47d);const _0x53f6ec=_0x2cb47d[_0x2e5504(0x224)]?_0x2e5504(0x224):'project';if(_0x35e394)return{'ok':!![],'message':_0x2e5504(0x24c)+_0x53f6ec+_0x2e5504(0x235)};return{'ok':!![],'message':_0x2e5504(0x24a)+_0x53f6ec+_0x2e5504(0x20a)};}},{'service':a12_0x361bd6(0x210),'command':a12_0x361bd6(0x20c),'description':a12_0x361bd6(0x232),'risk':a12_0x361bd6(0x220),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x361bd6(0x224),'type':'boolean','description':a12_0x361bd6(0x207),'default':!![]},{'name':a12_0x361bd6(0x20e),'type':'boolean','description':a12_0x361bd6(0x1fe),'default':![]}],async 'execute'(_0x56b68e){const _0x14075b=a12_0x361bd6,_0x23e31f=resolveAuthScopeFlags(_0x56b68e),_0xe3a00e=readScopedConfig(_0x23e31f),_0x40dfd3=productEnvName(_0x14075b(0x225)),_0x27cc1e=productEnv(_0x14075b(0x225))||undefined,_0x37456f=_0xe3a00e[_0x14075b(0x244)]||undefined,_0x13db34=_0x27cc1e||_0x37456f,_0x464d4d=_0x27cc1e?_0x40dfd3+_0x14075b(0x228):_0x37456f?(_0x23e31f[_0x14075b(0x224)]?'global':_0x14075b(0x20e))+_0x14075b(0x22a):null,_0x4388c8=[_0x14075b(0x23d)+AUTH_MODE[_0x14075b(0x213)]];if(_0x13db34){const _0x209ebb=_0x13db34[_0x14075b(0x201)]>0x8?''+_0x13db34[_0x14075b(0x23a)](0x0,0x8)+'*'['repeat'](_0x13db34[_0x14075b(0x201)]-0x8):_0x13db34;_0x4388c8[_0x14075b(0x226)](_0x14075b(0x22f)+_0x209ebb+(_0x464d4d?_0x14075b(0x23b)+_0x464d4d+')':''));}return!_0x13db34&&(_0x4388c8[_0x14075b(0x226)](''),_0x4388c8['push']('No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:'),_0x4388c8[_0x14075b(0x226)](''),_0x4388c8[_0x14075b(0x226)](_0x14075b(0x203)+CLI_BIN_NAME+_0x14075b(0x211)),_0x4388c8[_0x14075b(0x226)](''),_0x4388c8[_0x14075b(0x226)](_0x14075b(0x1f5)+PRODUCT_CONFIG[_0x14075b(0x1fd)]+')'),_0x4388c8[_0x14075b(0x226)]('{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}'),_0x4388c8[_0x14075b(0x226)](''),_0x4388c8[_0x14075b(0x226)](_0x14075b(0x205)),_0x4388c8[_0x14075b(0x226)](_0x14075b(0x216)+_0x40dfd3+_0x14075b(0x23c)),_0x4388c8[_0x14075b(0x226)](''),_0x4388c8['push'](_0x14075b(0x1f6)+CLI_BIN_NAME+'\x20auth\x20status'),_0x4388c8[_0x14075b(0x226)]('If\x20command\x20execution\x20still\x20fails,\x20run:\x20'+CLI_BIN_NAME+_0x14075b(0x221))),{'ok':!![],'message':_0x4388c8[_0x14075b(0x247)]('\x0a')};}},{'service':a12_0x361bd6(0x210),'command':a12_0x361bd6(0x20f),'description':'Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','risk':a12_0x361bd6(0x220),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x445b0c){const _0xeb86cd=a12_0x361bd6,_0x567bd1=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x567bd1,'meta':{'env':_0x445b0c[_0xeb86cd(0x238)]??_0xeb86cd(0x209)}}};}}];function a12_0x4a66(){const _0x1ed731=['ClientAk','access-key','Clear\x20from\x20global\x20config\x20(default)','\x20\x20export\x20','\x20auth\x20login\x20--access-key\x20<ak_xxx>','login','`auth\x20login`\x20does\x20not\x20support\x20--yes.','stdout','isTTY','\x20auth\x20status','str','\x20scope.','write','read','\x20doctor','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','string','global','ACCESS_KEY','push','env','\x20env\x20var','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','\x20config','boolean','Tip:\x20you\x20can\x20also\x20run:','bool','Shorthand\x20for\x20--access-key','AccessKey:\x20','userCenterDisplayName','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','Show\x20current\x20authentication\x20status','7244280hLYpHa','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','\x20config.','29313DzPGkJ','\x20Verify:\x20','envName','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','slice','\x20(via\x20','=ak_xxx','Auth\x20mode:\x20','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','AccessKey\x20(ak_xxx...)','5278675euwzdP','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','stdin','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','accessKey','\x20Current\x20env:\x20','Use\x20`','join','Write\x20to\x20global\x20config\x20(default)','logout','No\x20AccessKey\x20found\x20in\x20','validation','AccessKey\x20cleared\x20from\x20','Invalid\x20accessKey\x20format:\x20\x22','Option\x20B:\x20apps\x20config\x20(','Then\x20verify\x20with:\x20','AccessKey\x20saved\x20to\x20','Clear\x20accessKey\x20from\x20config','8340346suGWjL','Auth\x20config\x20reinitialized\x20in\x20','trim','18164YzwFxJ','newConfigFileName','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','daily','1096BZSiPJ','length','680687RSgmDH','Option\x20A:\x20','development','Option\x20C:\x20environment\x20variable','13009320JTkYMM','Read\x20from\x20global\x20config\x20(default)','cancelled','production','\x20config.\x20Nothing\x20to\x20clear.','2lspRhw','status','384rdIJew','project','info','auth','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','nonInteractive'];a12_0x4a66=function(){return _0x1ed731;};return a12_0x4a66();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a13_0x1059(_0x5e7b56,_0x44a368){_0x5e7b56=_0x5e7b56-0xe7;const _0x1fb09f=a13_0x1fb0();let _0x10590f=_0x1fb09f[_0x5e7b56];return _0x10590f;}(function(_0x492d1c,_0x35783c){const _0x52663c=a13_0x1059,_0xff31be=_0x492d1c();while(!![]){try{const _0x14cc5b=parseInt(_0x52663c(0xf8))/0x1*(-parseInt(_0x52663c(0xeb))/0x2)+parseInt(_0x52663c(0xea))/0x3+parseInt(_0x52663c(0xfb))/0x4*(-parseInt(_0x52663c(0xfd))/0x5)+-parseInt(_0x52663c(0xf4))/0x6+parseInt(_0x52663c(0xf3))/0x7*(parseInt(_0x52663c(0xee))/0x8)+parseInt(_0x52663c(0xe8))/0x9+parseInt(_0x52663c(0xf1))/0xa;if(_0x14cc5b===_0x35783c)break;else _0xff31be['push'](_0xff31be['shift']());}catch(_0x28c73d){_0xff31be['push'](_0xff31be['shift']());}}}(a13_0x1fb0,0xe8385));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x4b7269=a13_0x1059;super(_0x4b7269(0xfc)),this[_0x4b7269(0xf0)]='AbortPrompt';}}function a13_0x1fb0(){const _0x305a3d=['20SndjMT','User\x20aborted\x20prompt','1314385szZufJ','SIGINT','5487138FAupFO','question','4138869FqZVbd','3608054SNGmFk','close','):\x20','8QkkKLk','once','name','35280970IeXJei','AccessKey\x20(','1931867VvOpcO','10342788DvpLPO','removeListener','stdout','AbortPrompt','1rihHlb','stdin','AccessKey\x20(paste\x20ak_...):\x20'];a13_0x1fb0=function(){return _0x305a3d;};return a13_0x1fb0();}function createSafeRl(){const _0x296565=a13_0x1059,_0x196ef4=createInterface({'input':process[_0x296565(0xf9)],'output':process[_0x296565(0xf6)]});let _0x272e1d;const _0x4de1ad=new Promise((_0x27121b,_0x3a7ee0)=>{const _0x1297a1=_0x296565;_0x272e1d=()=>{const _0x3502b7=a13_0x1059;_0x272e1d&&(_0x196ef4[_0x3502b7(0xf5)](_0x3502b7(0xe7),_0x272e1d),_0x272e1d=undefined);try{_0x196ef4[_0x3502b7(0xec)]();}catch{}_0x3a7ee0(new AbortPrompt());},_0x196ef4[_0x1297a1(0xef)](_0x1297a1(0xe7),_0x272e1d);}),_0x201de1=()=>{const _0x2b5cfe=_0x296565;_0x272e1d&&(_0x196ef4['removeListener'](_0x2b5cfe(0xe7),_0x272e1d),_0x272e1d=undefined);try{_0x196ef4[_0x2b5cfe(0xec)]();}catch{}};return{'rl':_0x196ef4,'abortPromise':_0x4de1ad,'disposeSuccess':_0x201de1};}export async function promptAccessKey(_0x5ab1b7=''){const {rl:_0x126d99,abortPromise:_0x6019e7,disposeSuccess:_0x5e1b63}=createSafeRl(),_0x52143a=new Promise(_0x4b70bd=>{const _0x2bf69b=a13_0x1059,_0x255576=_0x5ab1b7?_0x2bf69b(0xf2)+_0x5ab1b7+_0x2bf69b(0xed):_0x2bf69b(0xfa);_0x126d99[_0x2bf69b(0xe9)](_0x255576,_0x1d3c8a=>{_0x5e1b63(),_0x4b70bd(_0x1d3c8a['trim']()||_0x5ab1b7);});});return Promise['race']([_0x52143a,_0x6019e7]);}export function isAbortPrompt(_0x3352fd){const _0x1e46ef=a13_0x1059;return _0x3352fd instanceof Error&&_0x3352fd['name']===_0x1e46ef(0xf7);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a14_0x4e6b(){const _0x50f422=['description','234747geMZlf','2saoxZW','327885qXSeJL','(none)','appCode','473kUbxyT','verbose','functionName','60joWmJb','Get\x20BFF\x20script\x20details\x20by\x20ID','updatedTime','99732OubOMq','1882926TWpKXO','96gpgRmO','Script\x20ID','bool','2027770ghWCRo','28OvTLaK','scriptType','110194yMAsZZ','createdTime','read','229652kPhTLg','detail','bff','num'];a14_0x4e6b=function(){return _0x50f422;};return a14_0x4e6b();}const a14_0x3e4948=a14_0x1fc2;function a14_0x1fc2(_0x4ada87,_0x160649){_0x4ada87=_0x4ada87-0x158;const _0x4e6b72=a14_0x4e6b();let _0x1fc2da=_0x4e6b72[_0x4ada87];return _0x1fc2da;}(function(_0x48908c,_0x16a1f4){const _0x4a6ee6=a14_0x1fc2,_0x41d0bb=_0x48908c();while(!![]){try{const _0x4aec39=parseInt(_0x4a6ee6(0x15a))/0x1*(parseInt(_0x4a6ee6(0x160))/0x2)+parseInt(_0x4a6ee6(0x16b))/0x3+-parseInt(_0x4a6ee6(0x170))/0x4*(parseInt(_0x4a6ee6(0x161))/0x5)+-parseInt(_0x4a6ee6(0x167))/0x6*(parseInt(_0x4a6ee6(0x172))/0x7)+-parseInt(_0x4a6ee6(0x16c))/0x8*(-parseInt(_0x4a6ee6(0x15f))/0x9)+parseInt(_0x4a6ee6(0x16f))/0xa+parseInt(_0x4a6ee6(0x164))/0xb*(-parseInt(_0x4a6ee6(0x16a))/0xc);if(_0x4aec39===_0x16a1f4)break;else _0x41d0bb['push'](_0x41d0bb['shift']());}catch(_0x30f69e){_0x41d0bb['push'](_0x41d0bb['shift']());}}}(a14_0x4e6b,0x61783));import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a14_0x3e4948(0x15c),'command':a14_0x3e4948(0x15b),'description':a14_0x3e4948(0x168),'risk':a14_0x3e4948(0x159),'flags':[{...ID_FLAG,'description':a14_0x3e4948(0x16d)},VERBOSE_FLAG],async 'execute'(_0xfafce4){const _0x523253=a14_0x3e4948,_0x356798=await getBffScriptInfo(_0xfafce4[_0x523253(0x15d)]('id')),_0x5033a6=_0xfafce4[_0x523253(0x16e)](_0x523253(0x165));if(_0x5033a6)return{'ok':!![],'data':_0x356798};return{'ok':!![],'data':{'id':_0x356798['id'],'appCode':_0x356798[_0x523253(0x163)],'functionName':_0x356798[_0x523253(0x166)]??'','scriptType':_0x356798[_0x523253(0x171)],'description':_0x356798[_0x523253(0x15e)]||_0x523253(0x162),'createdTime':_0x356798[_0x523253(0x158)]??'','updatedTime':_0x356798[_0x523253(0x169)]??''}};}};
|
package/lib/commands/bff/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15_0x571d69=a15_0x59ba;(function(_0x5aa7c8,_0xd9fe20){const _0x128567=a15_0x59ba,_0x334aa7=_0x5aa7c8();while(!![]){try{const _0x42f126=-parseInt(_0x128567(0xe7))/0x1+-parseInt(_0x128567(0xe8))/0x2*(parseInt(_0x128567(0xea))/0x3)+parseInt(_0x128567(0xe1))/0x4*(parseInt(_0x128567(0xe9))/0x5)+parseInt(_0x128567(0xdc))/0x6+-parseInt(_0x128567(0xdb))/0x7*(parseInt(_0x128567(0xdf))/0x8)+parseInt(_0x128567(0xe4))/0x9+-parseInt(_0x128567(0xde))/0xa;if(_0x42f126===_0xd9fe20)break;else _0x334aa7['push'](_0x334aa7['shift']());}catch(_0x2ddd82){_0x334aa7['push'](_0x334aa7['shift']());}}}(a15_0x21f3,0xb88ef));function a15_0x59ba(_0x24e7da,_0x10da6f){_0x24e7da=_0x24e7da-0xdb;const _0x21f371=a15_0x21f3();let _0x59ba21=_0x21f371[_0x24e7da];return _0x59ba21;}function a15_0x21f3(){const _0x53fd42=['196KbIAEr','7126950IhGrwQ','bff','4839450QYFSqf','8656ikUDzX','exec','4mRcUsf','BFF\x20function\x20name\x20to\x20execute','str','6295374atZVHA','BFF\x20executed\x20in\x20','read','420961xeRLuu','2rNfiZt','3838745DzprLM','2891721jtwdyN'];a15_0x21f3=function(){return _0x53fd42;};return a15_0x21f3();}import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a15_0x571d69(0xdd),'command':a15_0x571d69(0xe0),'description':'Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','risk':a15_0x571d69(0xe6),'flags':[{...NAME_FLAG,'required':!![],'description':a15_0x571d69(0xe2)},PARAMS_FLAG],async 'execute'(_0xea4730){const _0xf45c34=a15_0x571d69,_0x30cefa=parseJsonParams(_0xea4730[_0xf45c34(0xe3)]('params')),_0x225ab8=Date['now'](),_0x4f72a9=await executeSdkBff(_0xea4730[_0xf45c34(0xe3)]('name'),_0x30cefa),_0x49f09b=Date['now']()-_0x225ab8;return{'ok':!![],'data':{'result':_0x4f72a9,'elapsed':_0x49f09b},'message':_0xf45c34(0xe5)+_0x49f09b+'ms'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a16_0x1745(){const _0x58248b=['3bYnMlC','981ETDJuA','48jWPlJc','695611MBziUd','11990SxnOxH','323620kyLVKY','140312tMXYzY','68742pxJyKL','1195856IdVoIb','371560Wfipyw'];a16_0x1745=function(){return _0x58248b;};return a16_0x1745();}(function(_0x2c6084,_0x1c9b20){const _0x579eb7=a16_0x25e4,_0x3debfb=_0x2c6084();while(!![]){try{const _0x85bd61=parseInt(_0x579eb7(0x1d4))/0x1+-parseInt(_0x579eb7(0x1cd))/0x2*(parseInt(_0x579eb7(0x1d1))/0x3)+parseInt(_0x579eb7(0x1cf))/0x4+-parseInt(_0x579eb7(0x1d6))/0x5+parseInt(_0x579eb7(0x1ce))/0x6+-parseInt(_0x579eb7(0x1d0))/0x7*(parseInt(_0x579eb7(0x1d3))/0x8)+-parseInt(_0x579eb7(0x1d2))/0x9*(parseInt(_0x579eb7(0x1d5))/0xa);if(_0x85bd61===_0x1c9b20)break;else _0x3debfb['push'](_0x3debfb['shift']());}catch(_0xe20abc){_0x3debfb['push'](_0x3debfb['shift']());}}}(a16_0x1745,0x6705d));function a16_0x25e4(_0x5d5ed4,_0x544941){_0x5d5ed4=_0x5d5ed4-0x1cd;const _0x174549=a16_0x1745();let _0x25e416=_0x174549[_0x5d5ed4];return _0x25e416;}import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a17_0x3811(){const _0x49c50a=['../../skills/npx-skills-add.js','log','1350167HrFZdL','41729530ddyHUC','367350UPkbxv','102CadgeR','CLI\x20Built-in\x20Skill\x20installed','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','Skipped\x20npx\x20(','install','cwd','801702ocLUPq','skipped','8JFJDtu','740336twZVGr','error','461153DmOKwp','\x20-g\x20-y)...','245eJBGCA','107420ygKgPs','\x20-g\x20-y','info','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.'];a17_0x3811=function(){return _0x49c50a;};return a17_0x3811();}function a17_0x146a(_0x263d50,_0x551e94){_0x263d50=_0x263d50-0x165;const _0x3811df=a17_0x3811();let _0x146a5e=_0x3811df[_0x263d50];return _0x146a5e;}const a17_0x47f265=a17_0x146a;(function(_0x25210a,_0x44689d){const _0x2bfa5f=a17_0x146a,_0x2f9c9c=_0x25210a();while(!![]){try{const _0x3858cc=-parseInt(_0x2bfa5f(0x16c))/0x1+parseInt(_0x2bfa5f(0x177))/0x2*(parseInt(_0x2bfa5f(0x16e))/0x3)+parseInt(_0x2bfa5f(0x166))/0x4*(-parseInt(_0x2bfa5f(0x165))/0x5)+-parseInt(_0x2bfa5f(0x16f))/0x6*(parseInt(_0x2bfa5f(0x17a))/0x7)+-parseInt(_0x2bfa5f(0x178))/0x8+-parseInt(_0x2bfa5f(0x175))/0x9+parseInt(_0x2bfa5f(0x16d))/0xa;if(_0x3858cc===_0x44689d)break;else _0x2f9c9c['push'](_0x2f9c9c['shift']());}catch(_0x1766df){_0x2f9c9c['push'](_0x2f9c9c['shift']());}}}(a17_0x3811,0xa9b58));import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':'cli-skill','command':a17_0x47f265(0x173),'description':'Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x3f9d01){const _0x248374=a17_0x47f265;logger['setLogPath'](process[_0x248374(0x174)]()),logger[_0x248374(0x168)]('cli-skill-install',_0x248374(0x169));const {LOVRABET_SKILL_SOURCE:_0xc54f52,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x186e64,runNpxSkillsAddGlobal:_0x3d4f6e}=await import(_0x248374(0x16a)),_0x11b399=_0x3f9d01['nonInteractive']?'pipe':'inherit';console['log']('Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20'+_0xc54f52+_0x248374(0x17b));const _0x5ee321=_0x3d4f6e(process[_0x248374(0x174)](),_0xc54f52,{'stdio':_0x11b399});if(_0x5ee321[_0x248374(0x176)])console[_0x248374(0x16b)](_0x248374(0x172)+_0x186e64+'=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.');else{if(_0x5ee321['ok'])console[_0x248374(0x16b)](_0x248374(0x170));else throw CliErrors['apiError']('npx\x20skills\x20add\x20failed:\x20'+(_0x5ee321[_0x248374(0x179)]||'unknown'),_0x248374(0x171)+_0xc54f52+_0x248374(0x167));}return{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1daf5c,_0x368ce3){const _0x577b98=a18_0x4b57,_0xd7e89e=_0x1daf5c();while(!![]){try{const _0x1b25a3=-parseInt(_0x577b98(0x172))/0x1+parseInt(_0x577b98(0x166))/0x2+parseInt(_0x577b98(0x15e))/0x3*(-parseInt(_0x577b98(0x162))/0x4)+-parseInt(_0x577b98(0x16c))/0x5*(-parseInt(_0x577b98(0x16a))/0x6)+parseInt(_0x577b98(0x173))/0x7*(parseInt(_0x577b98(0x168))/0x8)+parseInt(_0x577b98(0x15a))/0x9*(parseInt(_0x577b98(0x164))/0xa)+-parseInt(_0x577b98(0x15d))/0xb;if(_0x1b25a3===_0x368ce3)break;else _0xd7e89e['push'](_0xd7e89e['shift']());}catch(_0x5df612){_0xd7e89e['push'](_0xd7e89e['shift']());}}}(a18_0x392d,0x320ed));import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';function a18_0x392d(){const _0xc6d0a4=['726436gJnIVl','newConfigFileName','12560sZHoCy','inProject','1344534fQigsj','\x20(global)','5kAzwZx','global','project','project-or-global-explicit','Add\x20--global\x20to\x20write\x20to\x20~/','global-default','295364UctnRh','854HnRznQ','5931WRlTTX','Use\x20only\x20one\x20config\x20scope\x20flag.','validation','2581216mzqoAL','27hyqhVA','Not\x20inside\x20a\x20project\x20(no\x20','project-default',',\x20or\x20run\x20`','122852AnFZuh','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','3530ACFrdM','\x20found).'];a18_0x392d=function(){return _0xc6d0a4;};return a18_0x392d();}export{RUNTIME_ENV_VALUES}from'../../constant/env.js';function a18_0x4b57(_0x15ce5d,_0x1c69b7){_0x15ce5d=_0x15ce5d-0x15a;const _0x392d88=a18_0x392d();let _0x4b5716=_0x392d88[_0x15ce5d];return _0x4b5716;}export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';export function resolveConfigScope(_0x456113){const _0x389cfa=a18_0x4b57,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x36b656}=_0x456113;if(explicitGlobal&&explicitProject)throw CliErrors[_0x389cfa(0x15c)](_0x389cfa(0x163),_0x389cfa(0x15b));if(explicitGlobal)return _0x389cfa(0x16d);if(explicitProject)return _0x389cfa(0x16e);switch(_0x36b656){case _0x389cfa(0x171):return _0x389cfa(0x16d);case _0x389cfa(0x160):return _0x456113[_0x389cfa(0x169)]??isInProject()?_0x389cfa(0x16e):_0x389cfa(0x16d);case _0x389cfa(0x16f):if(!(_0x456113['inProject']??isInProject()))throw CliErrors[_0x389cfa(0x15c)](_0x389cfa(0x15f)+PRODUCT_CONFIG[_0x389cfa(0x167)]+_0x389cfa(0x165),_0x389cfa(0x170)+PRODUCT_CONFIG[_0x389cfa(0x167)]+_0x389cfa(0x161)+CLI_BIN_NAME+'\x20init`\x20first.');return _0x389cfa(0x16e);}}export function toScopeFlags(_0x4d8865){const _0x313d37=a18_0x4b57;return{'global':_0x4d8865===_0x313d37(0x16d)};}export function formatScopeLabel(_0x4daf43){const _0x5c51e2=a18_0x4b57;return _0x4daf43===_0x5c51e2(0x16d)?_0x5c51e2(0x16b):'';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x14cb4d,_0x499d87){const _0x4b6966=a19_0x2503,_0xe61dc9=_0x14cb4d();while(!![]){try{const _0x1ec055=parseInt(_0x4b6966(0x179))/0x1*(-parseInt(_0x4b6966(0x18b))/0x2)+parseInt(_0x4b6966(0x17f))/0x3*(-parseInt(_0x4b6966(0x188))/0x4)+parseInt(_0x4b6966(0x183))/0x5+parseInt(_0x4b6966(0x17e))/0x6+-parseInt(_0x4b6966(0x180))/0x7*(-parseInt(_0x4b6966(0x176))/0x8)+parseInt(_0x4b6966(0x18c))/0x9+-parseInt(_0x4b6966(0x17b))/0xa*(parseInt(_0x4b6966(0x178))/0xb);if(_0x1ec055===_0x499d87)break;else _0xe61dc9['push'](_0xe61dc9['shift']());}catch(_0x4b44eb){_0xe61dc9['push'](_0xe61dc9['shift']());}}}(a19_0x4738,0xf31e2));import{CliErrors}from'../../errors.js';function isSet(_0x47c2db,_0x4c0592){const _0x2e611b=a19_0x2503,_0x232fd0=_0x47c2db[_0x2e611b(0x18e)](_0x4c0592);return _0x232fd0!==undefined&&_0x232fd0!==''&&_0x232fd0!==![]&&_0x232fd0!==0x0;}function fmtNames(_0xf2e7d0){const _0x5ede1d=a19_0x2503;return _0xf2e7d0[_0x5ede1d(0x181)](_0x362d91=>'--'+_0x362d91)['join'](',\x20');}function a19_0x4738(){const _0x1e6e6b=[',\x20got\x20\x22','\x20are\x20mutually\x20exclusive\x20for\x20`','length','Remove\x20all\x20but\x20one.','892256GKwFdh','At\x20least\x20one\x20of\x20','3289RQXuTH','3rwAQaw','Invalid\x20--','15790oUBWvC',':\x20expected\x20','\x20is\x20required\x20for\x20`','6340620OAQxbg','3YdPkuD','28LCbxIz','map','\x20is\x20allowed,\x20found:\x20','8698550XyDRRq','Use\x20only\x20one\x20of:\x20','validation','Exactly\x20one\x20of\x20','Provide\x20one\x20of:\x20','3066784XGRyYv','filter','Flags\x20','874576FgLGKa','2734947AaCDdQ','some','flag'];a19_0x4738=function(){return _0x1e6e6b;};return a19_0x4738();}export function requireOneOf(_0x24ad84,_0x5b67c1,_0x512bdc){const _0x10ce83=a19_0x2503,_0x27b708=_0x5b67c1['filter'](_0x4db802=>isSet(_0x24ad84,_0x4db802));if(_0x27b708[_0x10ce83(0x174)]!==0x1)throw CliErrors[_0x10ce83(0x185)](_0x27b708[_0x10ce83(0x174)]===0x0?_0x10ce83(0x186)+fmtNames(_0x5b67c1)+_0x10ce83(0x17d)+_0x512bdc+'`.':'Only\x20one\x20of\x20'+fmtNames(_0x5b67c1)+_0x10ce83(0x182)+fmtNames(_0x27b708)+'.',_0x27b708['length']===0x0?_0x10ce83(0x187)+fmtNames(_0x5b67c1):_0x10ce83(0x175));}function a19_0x2503(_0x14d2e9,_0x468fd4){_0x14d2e9=_0x14d2e9-0x174;const _0x4738fa=a19_0x4738();let _0x25033b=_0x4738fa[_0x14d2e9];return _0x25033b;}export function requireAnyOf(_0x5cad0a,_0x58acac,_0x1e39cd){const _0x41347e=a19_0x2503;if(!_0x58acac[_0x41347e(0x18d)](_0x49bdce=>isSet(_0x5cad0a,_0x49bdce)))throw CliErrors['validation'](_0x41347e(0x177)+fmtNames(_0x58acac)+_0x41347e(0x17d)+_0x1e39cd+'`.',_0x41347e(0x187)+fmtNames(_0x58acac));}export function mutuallyExclusive(_0xc4f27f,_0x22ce60,_0x21cd55){const _0x3f8aed=a19_0x2503,_0x4c562d=_0x22ce60[_0x3f8aed(0x189)](_0x26fe27=>isSet(_0xc4f27f,_0x26fe27));if(_0x4c562d[_0x3f8aed(0x174)]>0x1)throw CliErrors['validation'](_0x3f8aed(0x18a)+fmtNames(_0x4c562d)+_0x3f8aed(0x190)+_0x21cd55+'`.',_0x3f8aed(0x184)+fmtNames(_0x22ce60));}export function validatePattern(_0x54ccb1,_0x25a342,_0x3707ed,_0x300924){const _0x30ee31=a19_0x2503,_0x5b253b=_0x54ccb1['str'](_0x25a342);if(_0x5b253b&&!_0x3707ed['test'](_0x5b253b))throw CliErrors[_0x30ee31(0x185)](_0x30ee31(0x17a)+_0x25a342+_0x30ee31(0x17c)+_0x300924+_0x30ee31(0x18f)+_0x5b253b+'\x22.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a20_0x58a97f=a20_0x13ff;(function(_0xbae001,_0x361d74){const _0x40c932=a20_0x13ff,_0x3258b6=_0xbae001();while(!![]){try{const _0x1670a2=-parseInt(_0x40c932(0xac))/0x1*(-parseInt(_0x40c932(0x98))/0x2)+-parseInt(_0x40c932(0xad))/0x3*(-parseInt(_0x40c932(0x97))/0x4)+parseInt(_0x40c932(0xab))/0x5*(-parseInt(_0x40c932(0xa3))/0x6)+parseInt(_0x40c932(0xa6))/0x7+parseInt(_0x40c932(0xa0))/0x8*(parseInt(_0x40c932(0xaa))/0x9)+-parseInt(_0x40c932(0xa8))/0xa+-parseInt(_0x40c932(0x9a))/0xb*(-parseInt(_0x40c932(0xa5))/0xc);if(_0x1670a2===_0x361d74)break;else _0x3258b6['push'](_0x3258b6['shift']());}catch(_0x5e73f7){_0x3258b6['push'](_0x3258b6['shift']());}}}(a20_0x3fe2,0xb774b));export const CODE_FLAG={'name':a20_0x58a97f(0xa1),'type':a20_0x58a97f(0x9b),'required':!![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':{'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)'}};export const SQLCODE_FLAG={'name':a20_0x58a97f(0xa9),'type':a20_0x58a97f(0x9b),'required':!![],'description':a20_0x58a97f(0x9f),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};function a20_0x13ff(_0x3c6d78,_0x5b8435){_0x3c6d78=_0x3c6d78-0x97;const _0x3fe254=a20_0x3fe2();let _0x13ff18=_0x3fe254[_0x3c6d78];return _0x13ff18;}export const VERBOSE_FLAG={'name':a20_0x58a97f(0x9c),'type':a20_0x58a97f(0xa4),'description':a20_0x58a97f(0xa7)};function a20_0x3fe2(){const _0x28bede=['2zrTscC','138SeQtwM','72328nrqLIO','1088516XOqOMR','name','55RLHIcb','string','verbose','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','Resource\x20ID','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','8aUQhtW','code','params','75306VTlIAC','boolean','621048eeMEwp','3137470zCraOu','Return\x20full\x20raw\x20response\x20object','12682640rlojAI','sqlcode','1083501dcfLYH','290sXvIzi'];a20_0x3fe2=function(){return _0x28bede;};return a20_0x3fe2();}export const PARAMS_FLAG={'name':a20_0x58a97f(0xa2),'type':a20_0x58a97f(0x9b),'description':a20_0x58a97f(0x9d)};export const NAME_FLAG={'name':a20_0x58a97f(0x99),'type':'string','description':'Resource\x20name\x20for\x20lookup'};export const ID_FLAG={'name':'id','type':'number','required':!![],'description':a20_0x58a97f(0x9e)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a21_0x4c1a(_0x5568b9,_0x5195d9){_0x5568b9=_0x5568b9-0x1eb;const _0x2952a6=a21_0x2952();let _0x4c1a43=_0x2952a6[_0x5568b9];return _0x4c1a43;}(function(_0x326a47,_0x27eb9b){const _0x4b4069=a21_0x4c1a,_0x1a500b=_0x326a47();while(!![]){try{const _0x593822=parseInt(_0x4b4069(0x1ef))/0x1*(-parseInt(_0x4b4069(0x1fb))/0x2)+-parseInt(_0x4b4069(0x1fa))/0x3*(parseInt(_0x4b4069(0x1ed))/0x4)+-parseInt(_0x4b4069(0x1f7))/0x5+-parseInt(_0x4b4069(0x1fc))/0x6*(-parseInt(_0x4b4069(0x1f8))/0x7)+-parseInt(_0x4b4069(0x1ff))/0x8*(-parseInt(_0x4b4069(0x1f2))/0x9)+parseInt(_0x4b4069(0x1fd))/0xa+-parseInt(_0x4b4069(0x1ee))/0xb*(-parseInt(_0x4b4069(0x1f1))/0xc);if(_0x593822===_0x27eb9b)break;else _0x1a500b['push'](_0x1a500b['shift']());}catch(_0x4a63f0){_0x1a500b['push'](_0x1a500b['shift']());}}}(a21_0x2952,0x77e0e));import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;function a21_0x2952(){const _0x4084c2=['ceil','File\x20is\x20not\x20a\x20regular\x20file:\x20','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','\x20path\x20is\x20required.','4876560zXMslv','2410961xmJmRF','trim','342201TfJglF','1010hsnlPC','12axKdIy','303070EnftUm','size','176YOrtiV','\x20MB','validation','8wWZnyx','5467mEduZZ','577hVSjqA','toFixed','23928vUfWcq','112779lCTaoP'];a21_0x2952=function(){return _0x4084c2;};return a21_0x2952();}export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x3943a0){const _0xd3712a=a21_0x4c1a;if(_0x3943a0>=BYTES_PER_MB){const _0x5027a5=Math[_0xd3712a(0x1f3)](_0x3943a0/BYTES_PER_MB*0x64)/0x64;return _0x5027a5[_0xd3712a(0x1f0)](0x2)+_0xd3712a(0x1eb);}return _0x3943a0+'\x20B';}export function requireRuntimeUploadFile(_0x553fa1,_0x2c7ef7){const _0xf40bea=a21_0x4c1a,_0x6f52af=_0x553fa1[_0xf40bea(0x1f9)]();if(!_0x6f52af)throw CliErrors['validation'](_0x2c7ef7+_0xf40bea(0x1f6));if(!existsSync(_0x6f52af))throw CliErrors[_0xf40bea(0x1ec)]('File\x20not\x20found:\x20'+_0x6f52af);const _0x108f95=statSync(_0x6f52af);if(!_0x108f95['isFile']())throw CliErrors[_0xf40bea(0x1ec)](_0xf40bea(0x1f4)+_0x6f52af);if(_0x108f95[_0xf40bea(0x1fe)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0xf40bea(0x1ec)](_0xf40bea(0x1f5)+_0x6f52af+'\x20('+formatBytes(_0x108f95[_0xf40bea(0x1fe)])+')');return{'path':_0x6f52af,'size':_0x108f95[_0xf40bea(0x1fe)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a22_0x3d2dd9=a22_0x25b5;(function(_0x26492c,_0x58e21a){const _0x5d2a70=a22_0x25b5,_0xaa648f=_0x26492c();while(!![]){try{const _0x53e370=parseInt(_0x5d2a70(0x1be))/0x1*(parseInt(_0x5d2a70(0x1a7))/0x2)+parseInt(_0x5d2a70(0x1ba))/0x3+-parseInt(_0x5d2a70(0x1b2))/0x4*(-parseInt(_0x5d2a70(0x199))/0x5)+-parseInt(_0x5d2a70(0x1c2))/0x6+-parseInt(_0x5d2a70(0x18f))/0x7*(-parseInt(_0x5d2a70(0x1d0))/0x8)+parseInt(_0x5d2a70(0x1d2))/0x9+-parseInt(_0x5d2a70(0x194))/0xa;if(_0x53e370===_0x58e21a)break;else _0xaa648f['push'](_0xaa648f['shift']());}catch(_0x51aaea){_0xaa648f['push'](_0xaa648f['shift']());}}}(a22_0x4de8,0xf2143));function a22_0x25b5(_0x112810,_0xf38630){_0x112810=_0x112810-0x18c;const _0x4de834=a22_0x4de8();let _0x25b515=_0x4de834[_0x112810];return _0x25b515;}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':a22_0x3d2dd9(0x1ca),'type':a22_0x3d2dd9(0x18e),'description':a22_0x3d2dd9(0x1b7),'default':![]};function parseAliasAppcodeSetKey(_0x1db43d){const _0x115054=a22_0x3d2dd9,_0x525807=_0x1db43d[_0x115054(0x1d1)]('.');if(_0x525807[_0x115054(0x1b9)]!==0x3||_0x525807[0x0]!==_0x115054(0x1c9)||_0x525807[0x2]!==_0x115054(0x191))return undefined;const _0x1e581a=_0x525807[0x1]?.[_0x115054(0x1c6)]();return _0x1e581a?_0x1e581a:undefined;}function parseAliasDeleteKey(_0x285cf7){const _0x272751=a22_0x3d2dd9,_0x196288=_0x285cf7['split']('.');if(_0x196288[_0x272751(0x1b9)]===0x2&&_0x196288[0x0]===_0x272751(0x1c9)){const _0x3712e7=_0x196288[0x1]?.[_0x272751(0x1c6)]();return _0x3712e7?{'alias':_0x3712e7}:undefined;}if(_0x196288[_0x272751(0x1b9)]===0x3&&_0x196288[0x0]===_0x272751(0x1c9)&&_0x196288[0x2]==='appcode'){const _0x4a0990=_0x196288[0x1]?.[_0x272751(0x1c6)]();return _0x4a0990?{'alias':_0x4a0990,'field':_0x272751(0x191)}:undefined;}return undefined;}function setLocalAppAlias(_0x48d09a,_0x53d4b2,_0x2cd6a6){const _0x4125c4=a22_0x3d2dd9,_0x316010=_0x48d09a[_0x4125c4(0x1c9)]&&typeof _0x48d09a[_0x4125c4(0x1c9)]==='object'&&!Array[_0x4125c4(0x1a3)](_0x48d09a[_0x4125c4(0x1c9)])?_0x48d09a[_0x4125c4(0x1c9)]:{},_0x291b7d=_0x316010[_0x53d4b2]&&typeof _0x316010[_0x53d4b2]==='object'&&!Array['isArray'](_0x316010[_0x53d4b2])?_0x316010[_0x53d4b2]:{};_0x291b7d['appcode']=_0x2cd6a6,_0x316010[_0x53d4b2]=_0x291b7d,_0x48d09a[_0x4125c4(0x1c9)]=_0x316010;}function deleteLocalAppAlias(_0x58cd28,_0x499e65){const _0x233349=a22_0x3d2dd9;if(!_0x58cd28[_0x233349(0x1c9)]||typeof _0x58cd28[_0x233349(0x1c9)]!==_0x233349(0x1ad)||Array[_0x233349(0x1a3)](_0x58cd28[_0x233349(0x1c9)]))return![];const _0x5723d4=_0x58cd28[_0x233349(0x1c9)],_0x2d0693=_0x5723d4[_0x499e65[_0x233349(0x1a2)]];if(!_0x2d0693||typeof _0x2d0693!==_0x233349(0x1ad)||Array['isArray'](_0x2d0693))return![];if(!_0x499e65[_0x233349(0x1ac)])return delete _0x5723d4[_0x499e65[_0x233349(0x1a2)]],!![];if(!(_0x499e65[_0x233349(0x1ac)]in _0x2d0693))return![];return delete _0x2d0693[_0x499e65[_0x233349(0x1ac)]],Object[_0x233349(0x1b5)](_0x2d0693)[_0x233349(0x1b9)]===0x0&&delete _0x5723d4[_0x499e65['alias']],!![];}const listDef={'service':a22_0x3d2dd9(0x1bb),'command':a22_0x3d2dd9(0x192),'description':a22_0x3d2dd9(0x1a5),'risk':a22_0x3d2dd9(0x1cf),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x3b62d2){const _0x5d9633=a22_0x3d2dd9,{buildConfigFromFlags:_0x3ac9fc}=await import('../../context.js'),_0x53c5d6=_0x3ac9fc({}),_0x2b5b63=getProjectConfigPath(),_0x244094=resolveWriteConfigPath(_0x5d9633(0x1ca));if(_0x3b62d2['format']===_0x5d9633(0x19a))return{'ok':!![],'message':_0x5d9633(0x1b0)+(JSON['stringify'](_0x53c5d6[_0x5d9633(0x1bf)],null,0x2)+'\x0a\x0a')+_0x5d9633(0x1bd)+(_0x5d9633(0x19f)+(_0x2b5b63??_0x5d9633(0x19c))+'\x0a')+(_0x5d9633(0x1a8)+_0x244094)};return{'ok':!![],'data':{'effective':_0x53c5d6[_0x5d9633(0x1bf)],'configFiles':{'project':_0x2b5b63??null,'global':_0x244094}}};}},getDef={'service':a22_0x3d2dd9(0x1bb),'command':'get','description':a22_0x3d2dd9(0x193),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':'Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','required':!![]}],'flags':[],async 'execute'(_0x416c1b){const _0x3d76c4=a22_0x3d2dd9,_0x4b15aa=_0x416c1b[_0x3d76c4(0x196)][0x0];if(!_0x4b15aa)throw CliErrors[_0x3d76c4(0x190)](_0x3d76c4(0x195),_0x3d76c4(0x1b3)+CLI_BIN_NAME+'\x20config\x20get\x20<key>');const {buildConfigFromFlags:_0x1da213}=await import(_0x3d76c4(0x1b8)),{raw:_0x30248b}=_0x1da213({});if(_0x4b15aa[_0x3d76c4(0x1b4)]('.')){const _0x3e658f=_0x4b15aa[_0x3d76c4(0x1d1)]('.');let _0x1af02c=_0x30248b;for(const _0x2bd123 of _0x3e658f){if(_0x1af02c==null||typeof _0x1af02c!==_0x3d76c4(0x1ad))throw CliErrors['validation'](_0x3d76c4(0x1ce)+_0x4b15aa);_0x1af02c=_0x1af02c[_0x2bd123];}if(_0x1af02c===undefined)throw CliErrors[_0x3d76c4(0x190)]('Key\x20not\x20found:\x20'+_0x4b15aa);return console[_0x3d76c4(0x18c)](typeof _0x1af02c===_0x3d76c4(0x1ad)?JSON[_0x3d76c4(0x1a1)](_0x1af02c,null,0x2):String(_0x1af02c)),{'ok':!![]};}const _0x14350d=_0x30248b[_0x4b15aa];if(_0x14350d===undefined)throw CliErrors['validation'](_0x3d76c4(0x1ce)+_0x4b15aa);return console[_0x3d76c4(0x18c)](typeof _0x14350d===_0x3d76c4(0x1ad)?JSON[_0x3d76c4(0x1a1)](_0x14350d,null,0x2):String(_0x14350d)),{'ok':!![]};}},setDef={'service':a22_0x3d2dd9(0x1bb),'command':a22_0x3d2dd9(0x1cc),'description':a22_0x3d2dd9(0x19d),'risk':a22_0x3d2dd9(0x1c7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x3d2dd9(0x1aa),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x3d2dd9(0x1c0),'description':a22_0x3d2dd9(0x1c5),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x48a13a){const _0x335830=a22_0x3d2dd9,_0x3e19d2=_0x48a13a['args'][0x0],_0x46bcf7=_0x48a13a[_0x335830(0x196)][0x1];if(!_0x3e19d2||_0x46bcf7===undefined)throw CliErrors[_0x335830(0x190)](_0x335830(0x1c8),_0x335830(0x1b3)+CLI_BIN_NAME+_0x335830(0x18d));if(ENUM_KEYS[_0x3e19d2]&&!ENUM_KEYS[_0x3e19d2][_0x335830(0x1b4)](_0x46bcf7))throw CliErrors[_0x335830(0x190)](_0x335830(0x1a4)+_0x3e19d2+_0x335830(0x1a0)+ENUM_KEYS[_0x3e19d2][_0x335830(0x1a9)](',\x20'));if(_0x3e19d2===_0x335830(0x1ae))throw CliErrors[_0x335830(0x190)](_0x335830(0x1c1));if(_0x3e19d2==='pageSize'){const _0xfc5f33=Number(_0x46bcf7);if(isNaN(_0xfc5f33)||_0xfc5f33<=0x0)throw CliErrors[_0x335830(0x190)](_0x335830(0x1c3));}const _0x394d04=resolveWriteScope({'explicitGlobal':_0x48a13a[_0x335830(0x1a6)](_0x335830(0x1ca)),'policy':_0x335830(0x197)}),_0x2444f5=toScopeFlags(_0x394d04),_0x3ff3ed=readScopedConfig(_0x2444f5),_0x4cf655=parseAliasAppcodeSetKey(_0x3e19d2);if(!_0x4cf655&&!isTopLevelConfigKey(_0x3e19d2))throw CliErrors[_0x335830(0x190)]('Top-level\x20key\x20\x22'+_0x3e19d2+_0x335830(0x198),_0x335830(0x1b1)+getTopLevelConfigKeySummary()+_0x335830(0x1cd));return _0x4cf655?setLocalAppAlias(_0x3ff3ed,_0x4cf655,_0x46bcf7):_0x3ff3ed[_0x3e19d2]=_0x3e19d2===_0x335830(0x19e)?Number(_0x46bcf7):_0x46bcf7,console[_0x335830(0x18c)](_0x335830(0x1bc)+_0x3e19d2+'`\x20=\x20\x22'+_0x46bcf7+'\x22'+(_0x394d04==='global'?_0x335830(0x1af):'')),writeScopedConfig(_0x3ff3ed,_0x2444f5),{'ok':!![]};}},deleteDef={'service':a22_0x3d2dd9(0x1bb),'command':a22_0x3d2dd9(0x1cb),'description':a22_0x3d2dd9(0x19b),'risk':a22_0x3d2dd9(0x1c7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x38459d){const _0x54cce6=a22_0x3d2dd9,_0x3865ee=_0x38459d[_0x54cce6(0x196)][0x0];if(!_0x3865ee)throw CliErrors['validation'](_0x54cce6(0x195),'Usage:\x20'+CLI_BIN_NAME+_0x54cce6(0x1b6));const _0x3f18ea=resolveWriteScope({'explicitGlobal':_0x38459d[_0x54cce6(0x1a6)](_0x54cce6(0x1ca)),'policy':_0x54cce6(0x197)}),_0x2a85e8=toScopeFlags(_0x3f18ea),_0x36dad9=readScopedConfig(_0x2a85e8),_0x466b24=parseAliasDeleteKey(_0x3865ee);if(_0x466b24){if(!deleteLocalAppAlias(_0x36dad9,_0x466b24))throw CliErrors['validation']('Key\x20not\x20found:\x20'+_0x3865ee);return console[_0x54cce6(0x18c)]('Deleted\x20`'+_0x3865ee+'`'+(_0x3f18ea===_0x54cce6(0x1ca)?_0x54cce6(0x1af):'')),writeScopedConfig(_0x36dad9,_0x2a85e8),{'ok':!![]};}if(_0x36dad9[_0x3865ee]===undefined)throw CliErrors[_0x54cce6(0x190)](_0x54cce6(0x1ab)+_0x3865ee+_0x54cce6(0x1c4));return delete _0x36dad9[_0x3865ee],console[_0x54cce6(0x18c)]('Deleted\x20`'+_0x3865ee+'`'+(_0x3f18ea===_0x54cce6(0x1ca)?_0x54cce6(0x1af):'')),writeScopedConfig(_0x36dad9,_0x2a85e8),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];function a22_0x4de8(){const _0x151e92=['join','key','Key\x20\x22','field','object','riskLevel','\x20(global)','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','Settable\x20keys:\x20','4IuVSxN','Usage:\x20','includes','keys','\x20config\x20delete\x20<key>\x20[--global]','Write\x20to\x20global\x20config','../../context.js','length','2775315WDvsQY','config','Set\x20`','Config\x20files:\x0a','27005QLUXLr','raw','value','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','9958302UFOhfp','pageSize\x20must\x20be\x20a\x20positive\x20number','\x22\x20not\x20found\x20at\x20top\x20level.','Value\x20to\x20assign','trim','write','Missing\x20key\x20or\x20value.','apps','global','delete','set',';\x20apps.<alias>.appcode','Key\x20not\x20found:\x20','read','9496oZoonr','split','16197237aIMaFo','log','\x20config\x20set\x20<key>\x20<value>\x20[--global]','boolean','315DcmNad','validation','appcode','list','Get\x20a\x20config\x20value','30613520iJoGEi','Missing\x20key\x20argument.','args','project-or-global-explicit','\x22\x20is\x20not\x20settable.','8055830HPzhQU','pretty','Delete\x20a\x20config\x20value','(none)','Set\x20a\x20config\x20value','pageSize','\x20\x20project:\x20','\x22.\x20Allowed:\x20','stringify','alias','isArray','Invalid\x20value\x20for\x20\x22','List\x20current\x20config','bool','98HXRjHp','\x20\x20global:\x20\x20'];a22_0x4de8=function(){return _0x151e92;};return a22_0x4de8();}
|
|
1
|
+
const a22_0x28a628=a22_0xd65f;(function(_0x7aa8c3,_0x4bca52){const _0x4d066c=a22_0xd65f,_0x580020=_0x7aa8c3();while(!![]){try{const _0x4b6d1a=-parseInt(_0x4d066c(0x19a))/0x1*(-parseInt(_0x4d066c(0x1a0))/0x2)+parseInt(_0x4d066c(0x199))/0x3+parseInt(_0x4d066c(0x176))/0x4+parseInt(_0x4d066c(0x18a))/0x5*(parseInt(_0x4d066c(0x173))/0x6)+-parseInt(_0x4d066c(0x19c))/0x7*(-parseInt(_0x4d066c(0x18b))/0x8)+parseInt(_0x4d066c(0x193))/0x9+-parseInt(_0x4d066c(0x1a5))/0xa;if(_0x4b6d1a===_0x4bca52)break;else _0x580020['push'](_0x580020['shift']());}catch(_0x1bf2c0){_0x580020['push'](_0x580020['shift']());}}}(a22_0x1dab,0xe3bcf));import{CliErrors}from'../../errors.js';function a22_0xd65f(_0x3b8741,_0x33082b){_0x3b8741=_0x3b8741-0x163;const _0x1dab6c=a22_0x1dab();let _0xd65f38=_0x1dab6c[_0x3b8741];return _0xd65f38;}import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';function a22_0x1dab(){const _0x18dab3=['list',';\x20apps.<alias>.appcode','set','List\x20current\x20config','appcode','\x22\x20is\x20not\x20settable.','args','length','`\x20=\x20\x22','\x20config\x20delete\x20<key>\x20[--global]','write','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','\x20\x20project:\x20','trim','pageSize\x20must\x20be\x20a\x20positive\x20number','log','bool','stringify','205195pbuvoM','1144hJQDnS','boolean','keys','value','raw','\x20(global)','config','pageSize','7963866rtTofp','apps','Config\x20files:\x0a','validation','includes','isArray','3706857SvvQzl','1617143lWpUAH','field','6783ietvzz','split','\x20\x20global:\x20\x20','Settable\x20keys:\x20','2zBAxqS','object','project-or-global-explicit','(none)','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','37748180zeHqCj','Top-level\x20key\x20\x22','\x22.\x20Allowed:\x20','alias','key','Delete\x20a\x20config\x20value','global','Invalid\x20value\x20for\x20\x22','Write\x20to\x20global\x20config','Key\x20\x22','riskLevel','get','Set\x20`','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','Missing\x20key\x20or\x20value.','Deleted\x20`','Get\x20a\x20config\x20value','read','6NyWKGd','Missing\x20key\x20argument.','Key\x20not\x20found:\x20','3161564MkjVEv','Usage:\x20'];a22_0x1dab=function(){return _0x18dab3;};return a22_0x1dab();}const GLOBAL_FLAG={'name':a22_0x28a628(0x167),'type':a22_0x28a628(0x18c),'description':a22_0x28a628(0x169),'default':![]};function parseAliasAppcodeSetKey(_0x1efe40){const _0xce064c=a22_0x28a628,_0x42203f=_0x1efe40[_0xce064c(0x19d)]('.');if(_0x42203f[_0xce064c(0x17f)]!==0x3||_0x42203f[0x0]!==_0xce064c(0x194)||_0x42203f[0x2]!==_0xce064c(0x17c))return undefined;const _0x1ab8b5=_0x42203f[0x1]?.['trim']();return _0x1ab8b5?_0x1ab8b5:undefined;}function parseAliasDeleteKey(_0x38fc93){const _0x54affe=a22_0x28a628,_0x131f04=_0x38fc93['split']('.');if(_0x131f04[_0x54affe(0x17f)]===0x2&&_0x131f04[0x0]===_0x54affe(0x194)){const _0x5bff27=_0x131f04[0x1]?.[_0x54affe(0x185)]();return _0x5bff27?{'alias':_0x5bff27}:undefined;}if(_0x131f04[_0x54affe(0x17f)]===0x3&&_0x131f04[0x0]===_0x54affe(0x194)&&_0x131f04[0x2]===_0x54affe(0x17c)){const _0x2d44a0=_0x131f04[0x1]?.[_0x54affe(0x185)]();return _0x2d44a0?{'alias':_0x2d44a0,'field':'appcode'}:undefined;}return undefined;}function setLocalAppAlias(_0x22c55d,_0x4dbf61,_0x2d62dc){const _0x2daca1=a22_0x28a628,_0x37c5dc=_0x22c55d[_0x2daca1(0x194)]&&typeof _0x22c55d[_0x2daca1(0x194)]===_0x2daca1(0x1a1)&&!Array[_0x2daca1(0x198)](_0x22c55d['apps'])?_0x22c55d['apps']:{},_0x38a7ba=_0x37c5dc[_0x4dbf61]&&typeof _0x37c5dc[_0x4dbf61]===_0x2daca1(0x1a1)&&!Array['isArray'](_0x37c5dc[_0x4dbf61])?_0x37c5dc[_0x4dbf61]:{};_0x38a7ba[_0x2daca1(0x17c)]=_0x2d62dc,_0x37c5dc[_0x4dbf61]=_0x38a7ba,_0x22c55d[_0x2daca1(0x194)]=_0x37c5dc;}function deleteLocalAppAlias(_0x4cd2ba,_0x5b6f3d){const _0x2f7582=a22_0x28a628;if(!_0x4cd2ba['apps']||typeof _0x4cd2ba[_0x2f7582(0x194)]!==_0x2f7582(0x1a1)||Array[_0x2f7582(0x198)](_0x4cd2ba['apps']))return![];const _0x22729f=_0x4cd2ba['apps'],_0x3b102b=_0x22729f[_0x5b6f3d[_0x2f7582(0x164)]];if(!_0x3b102b||typeof _0x3b102b!=='object'||Array[_0x2f7582(0x198)](_0x3b102b))return![];if(!_0x5b6f3d['field'])return delete _0x22729f[_0x5b6f3d[_0x2f7582(0x164)]],!![];if(!(_0x5b6f3d['field']in _0x3b102b))return![];return delete _0x3b102b[_0x5b6f3d[_0x2f7582(0x19b)]],Object[_0x2f7582(0x18d)](_0x3b102b)[_0x2f7582(0x17f)]===0x0&&delete _0x22729f[_0x5b6f3d[_0x2f7582(0x164)]],!![];}const listDef={'service':'config','command':a22_0x28a628(0x178),'description':a22_0x28a628(0x17b),'risk':a22_0x28a628(0x172),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x299760){const _0x2d6b9b=a22_0x28a628,{buildConfigFromFlags:_0x248e4d}=await import('../../context.js'),_0x483503=_0x248e4d({}),_0x579906=getProjectConfigPath(),_0x38a1b5=resolveWriteConfigPath(_0x2d6b9b(0x167));if(_0x299760['format']==='pretty')return{'ok':!![],'message':_0x2d6b9b(0x16e)+(JSON[_0x2d6b9b(0x189)](_0x483503[_0x2d6b9b(0x18f)],null,0x2)+'\x0a\x0a')+_0x2d6b9b(0x195)+(_0x2d6b9b(0x184)+(_0x579906??_0x2d6b9b(0x1a3))+'\x0a')+(_0x2d6b9b(0x19e)+_0x38a1b5)};return{'ok':!![],'data':{'effective':_0x483503[_0x2d6b9b(0x18f)],'configFiles':{'project':_0x579906??null,'global':_0x38a1b5}}};}},getDef={'service':a22_0x28a628(0x191),'command':a22_0x28a628(0x16c),'description':a22_0x28a628(0x171),'risk':a22_0x28a628(0x172),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x28a628(0x165),'description':a22_0x28a628(0x1a4),'required':!![]}],'flags':[],async 'execute'(_0x457216){const _0x4198d7=a22_0x28a628,_0x52522e=_0x457216['args'][0x0];if(!_0x52522e)throw CliErrors['validation'](_0x4198d7(0x174),_0x4198d7(0x177)+CLI_BIN_NAME+'\x20config\x20get\x20<key>');const {buildConfigFromFlags:_0x14636e}=await import('../../context.js'),{raw:_0x412d86}=_0x14636e({});if(_0x52522e[_0x4198d7(0x197)]('.')){const _0x59594d=_0x52522e[_0x4198d7(0x19d)]('.');let _0x45a4db=_0x412d86;for(const _0xf706ca of _0x59594d){if(_0x45a4db==null||typeof _0x45a4db!==_0x4198d7(0x1a1))throw CliErrors[_0x4198d7(0x196)]('Key\x20not\x20found:\x20'+_0x52522e);_0x45a4db=_0x45a4db[_0xf706ca];}if(_0x45a4db===undefined)throw CliErrors[_0x4198d7(0x196)](_0x4198d7(0x175)+_0x52522e);return console[_0x4198d7(0x187)](typeof _0x45a4db===_0x4198d7(0x1a1)?JSON[_0x4198d7(0x189)](_0x45a4db,null,0x2):String(_0x45a4db)),{'ok':!![]};}const _0x12573d=_0x412d86[_0x52522e];if(_0x12573d===undefined)throw CliErrors[_0x4198d7(0x196)](_0x4198d7(0x175)+_0x52522e);return console[_0x4198d7(0x187)](typeof _0x12573d===_0x4198d7(0x1a1)?JSON['stringify'](_0x12573d,null,0x2):String(_0x12573d)),{'ok':!![]};}},setDef={'service':a22_0x28a628(0x191),'command':a22_0x28a628(0x17a),'description':'Set\x20a\x20config\x20value','risk':a22_0x28a628(0x182),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x28a628(0x165),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x28a628(0x18e),'description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x180b30){const _0x1992b6=a22_0x28a628,_0x5a0a69=_0x180b30['args'][0x0],_0x515e6a=_0x180b30[_0x1992b6(0x17e)][0x1];if(!_0x5a0a69||_0x515e6a===undefined)throw CliErrors[_0x1992b6(0x196)](_0x1992b6(0x16f),_0x1992b6(0x177)+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x5a0a69]&&!ENUM_KEYS[_0x5a0a69][_0x1992b6(0x197)](_0x515e6a))throw CliErrors['validation'](_0x1992b6(0x168)+_0x5a0a69+_0x1992b6(0x163)+ENUM_KEYS[_0x5a0a69]['join'](',\x20'));if(_0x5a0a69===_0x1992b6(0x16b))throw CliErrors[_0x1992b6(0x196)](_0x1992b6(0x183));if(_0x5a0a69==='pageSize'){const _0x1a9058=Number(_0x515e6a);if(isNaN(_0x1a9058)||_0x1a9058<=0x0)throw CliErrors[_0x1992b6(0x196)](_0x1992b6(0x186));}const _0x4cebd8=resolveWriteScope({'explicitGlobal':_0x180b30[_0x1992b6(0x188)](_0x1992b6(0x167)),'policy':_0x1992b6(0x1a2)}),_0x2b2713=toScopeFlags(_0x4cebd8),_0x5b1e54=readScopedConfig(_0x2b2713),_0x1d3abe=parseAliasAppcodeSetKey(_0x5a0a69);if(!_0x1d3abe&&!isTopLevelConfigKey(_0x5a0a69))throw CliErrors[_0x1992b6(0x196)](_0x1992b6(0x1a6)+_0x5a0a69+_0x1992b6(0x17d),_0x1992b6(0x19f)+getTopLevelConfigKeySummary()+_0x1992b6(0x179));return _0x1d3abe?setLocalAppAlias(_0x5b1e54,_0x1d3abe,_0x515e6a):_0x5b1e54[_0x5a0a69]=_0x5a0a69===_0x1992b6(0x192)?Number(_0x515e6a):_0x515e6a,console[_0x1992b6(0x187)](_0x1992b6(0x16d)+_0x5a0a69+_0x1992b6(0x180)+_0x515e6a+'\x22'+(_0x4cebd8===_0x1992b6(0x167)?_0x1992b6(0x190):'')),writeScopedConfig(_0x5b1e54,_0x2b2713),{'ok':!![]};}},deleteDef={'service':'config','command':'delete','description':a22_0x28a628(0x166),'risk':a22_0x28a628(0x182),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x28a628(0x165),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x3f226f){const _0x38cefe=a22_0x28a628,_0x62f3ae=_0x3f226f[_0x38cefe(0x17e)][0x0];if(!_0x62f3ae)throw CliErrors[_0x38cefe(0x196)](_0x38cefe(0x174),_0x38cefe(0x177)+CLI_BIN_NAME+_0x38cefe(0x181));const _0x238733=resolveWriteScope({'explicitGlobal':_0x3f226f[_0x38cefe(0x188)]('global'),'policy':'project-or-global-explicit'}),_0x5571a3=toScopeFlags(_0x238733),_0x12470f=readScopedConfig(_0x5571a3),_0x3895d4=parseAliasDeleteKey(_0x62f3ae);if(_0x3895d4){if(!deleteLocalAppAlias(_0x12470f,_0x3895d4))throw CliErrors[_0x38cefe(0x196)](_0x38cefe(0x175)+_0x62f3ae);return console[_0x38cefe(0x187)](_0x38cefe(0x170)+_0x62f3ae+'`'+(_0x238733===_0x38cefe(0x167)?_0x38cefe(0x190):'')),writeScopedConfig(_0x12470f,_0x5571a3),{'ok':!![]};}if(_0x12470f[_0x62f3ae]===undefined)throw CliErrors[_0x38cefe(0x196)](_0x38cefe(0x16a)+_0x62f3ae+'\x22\x20not\x20found\x20at\x20top\x20level.');return delete _0x12470f[_0x62f3ae],console[_0x38cefe(0x187)](_0x38cefe(0x170)+_0x62f3ae+'`'+(_0x238733==='global'?_0x38cefe(0x190):'')),writeScopedConfig(_0x12470f,_0x5571a3),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a23_0x30da(_0x991a70,_0x249256){_0x991a70=_0x991a70-0x173;var _0x53a0af=a23_0x53a0();var _0x30daa4=_0x53a0af[_0x991a70];return _0x30daa4;}(function(_0x5991fa,_0x755c2d){var _0x5254db=a23_0x30da,_0x49a979=_0x5991fa();while(!![]){try{var _0x2b978c=-parseInt(_0x5254db(0x177))/0x1+-parseInt(_0x5254db(0x175))/0x2+parseInt(_0x5254db(0x179))/0x3+parseInt(_0x5254db(0x17c))/0x4*(parseInt(_0x5254db(0x17b))/0x5)+-parseInt(_0x5254db(0x174))/0x6*(parseInt(_0x5254db(0x176))/0x7)+-parseInt(_0x5254db(0x173))/0x8+parseInt(_0x5254db(0x178))/0x9*(parseInt(_0x5254db(0x17a))/0xa);if(_0x2b978c===_0x755c2d)break;else _0x49a979['push'](_0x49a979['shift']());}catch(_0x3da7a3){_0x49a979['push'](_0x49a979['shift']());}}}(a23_0x53a0,0xc3ea1));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';function a23_0x53a0(){var _0x2acbd6=['488490IEjrCc','10820uLeUHi','2570eiWvbT','7156FPOmYM','2523352hWZPKD','5922OZIemW','2183348lNftlk','2555WuhbAt','556461mAfMOz','17001ZNbdLl'];a23_0x53a0=function(){return _0x2acbd6;};return a23_0x53a0();}export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a24_0x3477e2=a24_0x2b94;(function(_0x35997a,_0x3b06cb){const _0x528320=a24_0x2b94,_0x4d4296=_0x35997a();while(!![]){try{const _0x4462ac=-parseInt(_0x528320(0x1ef))/0x1+parseInt(_0x528320(0x20c))/0x2+parseInt(_0x528320(0x1ea))/0x3+-parseInt(_0x528320(0x1fa))/0x4+parseInt(_0x528320(0x1f8))/0x5*(-parseInt(_0x528320(0x212))/0x6)+parseInt(_0x528320(0x21f))/0x7+-parseInt(_0x528320(0x1e4))/0x8*(-parseInt(_0x528320(0x1e0))/0x9);if(_0x4462ac===_0x3b06cb)break;else _0x4d4296['push'](_0x4d4296['shift']());}catch(_0x510bba){_0x4d4296['push'](_0x4d4296['shift']());}}}(a24_0x50c4,0x43062));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';function a24_0x2b94(_0x359586,_0xc96156){_0x359586=_0x359586-0x1df;const _0x50c416=a24_0x50c4();let _0x2b940b=_0x50c416[_0x359586];return _0x2b940b;}function a24_0x50c4(){const _0x34c0d2=['update','filter','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','aggregate','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','Filter\x20dataset\x20records\x20with\x20query\x20conditions','write','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Post-aggregation\x20filters,\x20e.g.\x20[{\x22columnName\x22:\x22total\x22,\x22condition\x22:{\x22$gt\x22:1000}}]','536606TtBdTV','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','command','risk','join','description','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','data\x20','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','\x20\x20PAGINATION','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','Get\x20a\x20single\x20record\x20by\x20ID','\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','helpExtra','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','str','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','94617rIRlHE','dryRun','delete','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','408gbLVbW','length','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','operation','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','25884eBDqxx','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','create','166351UeiNvU','read','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20PARAMS\x20STRUCTURE','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\x20\x20LOGICAL\x20COMBINATORS','10IyEdFZ','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','746828VNfKgn','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','code','\x20\x20AGGREGATE\x20TYPES','build','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','\x20\x20WHERE\x20OPERATORS','batchCreate','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','\x20\x20EXAMPLES','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','body','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','now','410818TQTKJj','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','params','getOne','Preview:\x20data\x20','597810LAPynN','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.'];a24_0x50c4=function(){return _0x34c0d2;};return a24_0x50c4();}const specs=[{'command':'filter','operation':a24_0x3477e2(0x216),'risk':a24_0x3477e2(0x1f0),'paramsRequired':![],'description':a24_0x3477e2(0x21b),'paramsHint':a24_0x3477e2(0x1ec)+a24_0x3477e2(0x22f),'helpExtra':[a24_0x3477e2(0x202),'\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}',a24_0x3477e2(0x1ed),a24_0x3477e2(0x1e9),'\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}',a24_0x3477e2(0x1e6),a24_0x3477e2(0x1fc),a24_0x3477e2(0x228),a24_0x3477e2(0x1f2),'\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}',a24_0x3477e2(0x1eb),'',a24_0x3477e2(0x1f7),a24_0x3477e2(0x1f1),a24_0x3477e2(0x204),'',a24_0x3477e2(0x1f3),a24_0x3477e2(0x227),'\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]',a24_0x3477e2(0x21d),a24_0x3477e2(0x225),a24_0x3477e2(0x220),'',a24_0x3477e2(0x229),'\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.',a24_0x3477e2(0x1f6),'\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)'][a24_0x3477e2(0x223)]('\x0a')},{'command':'getOne','operation':a24_0x3477e2(0x210),'risk':'read','paramsRequired':!![],'description':a24_0x3477e2(0x22b),'paramsHint':a24_0x3477e2(0x1f5)},{'command':a24_0x3477e2(0x1ee),'operation':'create','risk':a24_0x3477e2(0x21c),'paramsRequired':!![],'description':a24_0x3477e2(0x201),'paramsHint':a24_0x3477e2(0x206)},{'command':'batchCreate','operation':a24_0x3477e2(0x203),'risk':a24_0x3477e2(0x21c),'paramsRequired':!![],'description':a24_0x3477e2(0x21a),'paramsHint':a24_0x3477e2(0x213)},{'command':a24_0x3477e2(0x215),'operation':a24_0x3477e2(0x215),'risk':a24_0x3477e2(0x21c),'paramsRequired':!![],'description':'Update\x20an\x20existing\x20record','paramsHint':'JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20'+'Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27'},{'command':a24_0x3477e2(0x1e2),'operation':a24_0x3477e2(0x1e2),'risk':'high-risk-write','paramsRequired':!![],'description':a24_0x3477e2(0x1e3),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a24_0x3477e2(0x219),'operation':a24_0x3477e2(0x219),'risk':'read','paramsRequired':![],'description':'Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','paramsHint':'JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20'+a24_0x3477e2(0x1e8),'helpExtra':[a24_0x3477e2(0x1ff),a24_0x3477e2(0x20a),a24_0x3477e2(0x1df),a24_0x3477e2(0x207),a24_0x3477e2(0x22e),a24_0x3477e2(0x22a),a24_0x3477e2(0x217),a24_0x3477e2(0x22c),'',a24_0x3477e2(0x1f4),a24_0x3477e2(0x208),a24_0x3477e2(0x1f9),a24_0x3477e2(0x20d),a24_0x3477e2(0x218),a24_0x3477e2(0x21e),a24_0x3477e2(0x20e),'',a24_0x3477e2(0x205),'\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status',a24_0x3477e2(0x1fd),'','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter',a24_0x3477e2(0x1fb),'',a24_0x3477e2(0x214)]['join']('\x0a')}];function makeDataCommand(_0xe27be8){const _0x14b797=a24_0x3477e2,_0x78b990='data\x20'+_0xe27be8[_0x14b797(0x221)],_0x1afd7f={'service':'data','command':_0xe27be8[_0x14b797(0x221)],'description':_0xe27be8[_0x14b797(0x224)],'risk':_0xe27be8[_0x14b797(0x222)],'helpExtra':_0xe27be8[_0x14b797(0x22d)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0xe27be8['paramsHint']}],'validate':async _0x27e9ee=>{const _0x50957a=_0x14b797;_0xe27be8['paramsRequired']&&requireAnyOf(_0x27e9ee,[_0x50957a(0x20f)],_0x78b990),_0xe27be8[_0x50957a(0x1e7)]===_0x50957a(0x203)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x27e9ee[_0x50957a(0x230)](_0x50957a(0x20f)))),_0xe27be8['operation']===_0x50957a(0x215)&&parseUpdateIdsFromParams(parseJsonParams(_0x27e9ee[_0x50957a(0x230)](_0x50957a(0x20f)))??{});},async 'execute'(_0x7f8a34){const _0xdb0d26=_0x14b797,_0x38da96=_0x7f8a34['str'](_0xdb0d26(0x1fe)),_0x399223=_0xe27be8[_0xdb0d26(0x1e7)]===_0xdb0d26(0x203)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x7f8a34[_0xdb0d26(0x230)](_0xdb0d26(0x20f)))):parseJsonParams(_0x7f8a34[_0xdb0d26(0x230)](_0xdb0d26(0x20f)))??{},_0x2037f7=_0xe27be8[_0xdb0d26(0x1e7)]==='update'?parseUpdateIdsFromParams(_0x399223):undefined,_0x446c74=_0x2037f7?normalizeUpdateParamsForRuntime(_0x399223,_0x2037f7):_0x399223,_0x34742c=Date[_0xdb0d26(0x20b)](),_0x4059f2=await executeData(_0x38da96,_0xe27be8['operation'],_0x446c74),_0x34d9fc=Date[_0xdb0d26(0x20b)]()-_0x34742c,_0x48acac=_0x2037f7&&_0x2037f7['length']>0x1?buildBatchUpdateResult(_0x2037f7,_0x4059f2):_0x4059f2;return{'ok':!![],'data':{'result':_0x48acac,'elapsed':_0x34d9fc},'message':_0xdb0d26(0x226)+_0xe27be8[_0xdb0d26(0x221)]+'\x20completed\x20in\x20'+_0x34d9fc+'ms'};}};return _0xe27be8[_0x14b797(0x222)]!==_0x14b797(0x1f0)&&(_0x1afd7f[_0x14b797(0x1e1)]=async _0x590dcd=>{const _0x543630=_0x14b797,_0x541f70=_0x590dcd[_0x543630(0x230)](_0x543630(0x1fe)),_0x72a99a=_0xe27be8[_0x543630(0x1e7)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x590dcd['str']('params'))):parseJsonParams(_0x590dcd[_0x543630(0x230)](_0x543630(0x20f)))??{};let _0x418b61=_0x72a99a;if(_0xe27be8[_0x543630(0x1e7)]===_0x543630(0x215)){const _0x422d82=parseUpdateIdsFromParams(_0x72a99a);_0x418b61=normalizeUpdateParamsForRuntime(_0x72a99a,_0x422d82);}return dryRun('POST','/api/{appCode}/'+_0x541f70+'/'+_0xe27be8[_0x543630(0x1e7)])[_0x543630(0x209)](_0x418b61)[_0x543630(0x224)](_0x543630(0x211)+_0xe27be8[_0x543630(0x221)]+'\x20on\x20dataset\x20'+_0x541f70)[_0x543630(0x200)]();}),_0x1afd7f;}export const dataDefinitions=specs['map'](makeDataCommand);function buildBatchUpdateResult(_0xf30a3d,_0x16001f){const _0x4a0607=a24_0x3477e2;return{'operation':_0x4a0607(0x215),'mode':'batch','ids':_0xf30a3d,'total':_0xf30a3d[_0x4a0607(0x1e5)],'result':_0x16001f};}
|
|
1
|
+
const a24_0x45dfc9=a24_0x4dcc;(function(_0x355cab,_0x29b681){const _0x29539c=a24_0x4dcc,_0x3d313d=_0x355cab();while(!![]){try{const _0x2937cb=parseInt(_0x29539c(0x86))/0x1*(-parseInt(_0x29539c(0x8a))/0x2)+-parseInt(_0x29539c(0x74))/0x3+-parseInt(_0x29539c(0x65))/0x4*(parseInt(_0x29539c(0x9f))/0x5)+parseInt(_0x29539c(0xb7))/0x6+-parseInt(_0x29539c(0x71))/0x7+-parseInt(_0x29539c(0x97))/0x8*(-parseInt(_0x29539c(0x9b))/0x9)+parseInt(_0x29539c(0x6a))/0xa;if(_0x2937cb===_0x29b681)break;else _0x3d313d['push'](_0x3d313d['shift']());}catch(_0x36bfcd){_0x3d313d['push'](_0x3d313d['shift']());}}}(a24_0x2d8e,0x70cec));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';function a24_0x4dcc(_0x1a0e20,_0x1c88ee){_0x1a0e20=_0x1a0e20-0x65;const _0x2d8e55=a24_0x2d8e();let _0x4dcc18=_0x2d8e55[_0x1a0e20];return _0x4dcc18;}import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';function a24_0x2d8e(){const _0x2d9611=['\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','description','2775VBRNww','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','Preview:\x20data\x20','write','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','batchCreate','\x20on\x20dataset\x20','high-risk-write','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\x20completed\x20in\x20','update','code','paramsHint','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','\x20\x20AGGREGATE\x20TYPES','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','\x20\x20WHERE\x20OPERATORS','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','data\x20','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','1088106JnQkGu','Filter\x20dataset\x20records\x20with\x20query\x20conditions','command','6036hrPSgM','operation','read','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','16492940XkSKnK','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','build','\x20\x20PARAMS\x20STRUCTURE','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','filter','3000235TTVtlU','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','2078580BAwtBz','length','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','params','Update\x20an\x20existing\x20record','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','data','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','now','risk','getOne','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','1qtEzRy','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','batch','452224zGawop','\x20\x20PAGINATION','\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','map','/api/{appCode}/','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','dryRun','POST','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','aggregate','6531896oGRKIR','body','delete','str','9MWpDsa','create'];a24_0x2d8e=function(){return _0x2d9611;};return a24_0x2d8e();}const specs=[{'command':a24_0x45dfc9(0x70),'operation':a24_0x45dfc9(0x70),'risk':a24_0x45dfc9(0x67),'paramsRequired':![],'description':a24_0x45dfc9(0xb8),'paramsHint':'JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20'+'Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','helpExtra':[a24_0x45dfc9(0xb2),a24_0x45dfc9(0x6e),'\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}',a24_0x45dfc9(0xa8),'\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}',a24_0x45dfc9(0x79),a24_0x45dfc9(0xb6),a24_0x45dfc9(0x72),a24_0x45dfc9(0xaf),a24_0x45dfc9(0x95),a24_0x45dfc9(0xa0),'',a24_0x45dfc9(0xa9),a24_0x45dfc9(0x90),a24_0x45dfc9(0xa3),'',a24_0x45dfc9(0x69),'\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)',a24_0x45dfc9(0x85),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]',a24_0x45dfc9(0x8f),a24_0x45dfc9(0x93),'',a24_0x45dfc9(0x8b),a24_0x45dfc9(0x84),a24_0x45dfc9(0x77),a24_0x45dfc9(0x76)]['join']('\x0a')},{'command':'getOne','operation':a24_0x45dfc9(0x83),'risk':a24_0x45dfc9(0x67),'paramsRequired':!![],'description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsHint':a24_0x45dfc9(0x88)},{'command':a24_0x45dfc9(0x9c),'operation':'create','risk':a24_0x45dfc9(0xa2),'paramsRequired':!![],'description':a24_0x45dfc9(0xb1),'paramsHint':a24_0x45dfc9(0x87)},{'command':a24_0x45dfc9(0xa5),'operation':'batchCreate','risk':'write','paramsRequired':!![],'description':a24_0x45dfc9(0x73),'paramsHint':a24_0x45dfc9(0xb3)},{'command':a24_0x45dfc9(0xac),'operation':a24_0x45dfc9(0xac),'risk':a24_0x45dfc9(0xa2),'paramsRequired':!![],'description':a24_0x45dfc9(0x7c),'paramsHint':'JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20'+'Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27'},{'command':a24_0x45dfc9(0x99),'operation':a24_0x45dfc9(0x99),'risk':a24_0x45dfc9(0xa7),'paramsRequired':!![],'description':a24_0x45dfc9(0x68),'paramsHint':a24_0x45dfc9(0x88)},{'command':a24_0x45dfc9(0x96),'operation':a24_0x45dfc9(0x96),'risk':a24_0x45dfc9(0x67),'paramsRequired':![],'description':'Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','paramsHint':a24_0x45dfc9(0x7a)+a24_0x45dfc9(0x7f),'helpExtra':[a24_0x45dfc9(0xb0),'\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}',a24_0x45dfc9(0xb4),a24_0x45dfc9(0x6f),a24_0x45dfc9(0x94),a24_0x45dfc9(0x6b),a24_0x45dfc9(0xa4),a24_0x45dfc9(0x8c),'',a24_0x45dfc9(0x6d),a24_0x45dfc9(0x9d),a24_0x45dfc9(0xaa),a24_0x45dfc9(0x80),'\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Post-aggregation\x20filters,\x20e.g.\x20[{\x22columnName\x22:\x22total\x22,\x22condition\x22:{\x22$gt\x22:1000}}]','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','','\x20\x20EXAMPLES','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter',a24_0x45dfc9(0x78),'',a24_0x45dfc9(0x7d)]['join']('\x0a')}];function makeDataCommand(_0x473673){const _0x27e6e1=a24_0x45dfc9,_0x35e1df=_0x27e6e1(0xb5)+_0x473673['command'],_0x4b588a={'service':_0x27e6e1(0x7e),'command':_0x473673[_0x27e6e1(0xb9)],'description':_0x473673[_0x27e6e1(0x9e)],'risk':_0x473673[_0x27e6e1(0x82)],'helpExtra':_0x473673['helpExtra'],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x473673[_0x27e6e1(0xae)]}],'validate':async _0x5caa69=>{const _0x345bd=_0x27e6e1;_0x473673['paramsRequired']&&requireAnyOf(_0x5caa69,[_0x345bd(0x7b)],_0x35e1df),_0x473673['operation']===_0x345bd(0xa5)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x5caa69[_0x345bd(0x9a)]('params'))),_0x473673[_0x345bd(0x66)]===_0x345bd(0xac)&&parseUpdateIdsFromParams(parseJsonParams(_0x5caa69['str'](_0x345bd(0x7b)))??{});},async 'execute'(_0x3537d9){const _0x740152=_0x27e6e1,_0x3700f6=_0x3537d9[_0x740152(0x9a)](_0x740152(0xad)),_0x47508f=_0x473673[_0x740152(0x66)]===_0x740152(0xa5)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3537d9['str'](_0x740152(0x7b)))):parseJsonParams(_0x3537d9[_0x740152(0x9a)](_0x740152(0x7b)))??{},_0x35b855=_0x473673['operation']===_0x740152(0xac)?parseUpdateIdsFromParams(_0x47508f):undefined,_0x59e6de=_0x35b855?normalizeUpdateParamsForRuntime(_0x47508f,_0x35b855):_0x47508f,_0x245f5c=Date[_0x740152(0x81)](),_0x47c756=await executeData(_0x3700f6,_0x473673[_0x740152(0x66)],_0x59e6de),_0xd12527=Date[_0x740152(0x81)]()-_0x245f5c,_0x478f18=_0x35b855&&_0x35b855[_0x740152(0x75)]>0x1?buildBatchUpdateResult(_0x35b855,_0x47c756):_0x47c756;return{'ok':!![],'data':{'result':_0x478f18,'elapsed':_0xd12527},'message':_0x740152(0xb5)+_0x473673['command']+_0x740152(0xab)+_0xd12527+'ms'};}};return _0x473673['risk']!==_0x27e6e1(0x67)&&(_0x4b588a[_0x27e6e1(0x91)]=async _0x35a8db=>{const _0x267878=_0x27e6e1,_0x229a72=_0x35a8db['str']('code'),_0x188dfc=_0x473673[_0x267878(0x66)]===_0x267878(0xa5)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x35a8db[_0x267878(0x9a)](_0x267878(0x7b)))):parseJsonParams(_0x35a8db[_0x267878(0x9a)]('params'))??{};let _0x5364c2=_0x188dfc;if(_0x473673[_0x267878(0x66)]===_0x267878(0xac)){const _0x5cd181=parseUpdateIdsFromParams(_0x188dfc);_0x5364c2=normalizeUpdateParamsForRuntime(_0x188dfc,_0x5cd181);}return dryRun(_0x267878(0x92),_0x267878(0x8e)+_0x229a72+'/'+_0x473673[_0x267878(0x66)])[_0x267878(0x98)](_0x5364c2)['description'](_0x267878(0xa1)+_0x473673[_0x267878(0xb9)]+_0x267878(0xa6)+_0x229a72)[_0x267878(0x6c)]();}),_0x4b588a;}export const dataDefinitions=specs[a24_0x45dfc9(0x8d)](makeDataCommand);function buildBatchUpdateResult(_0x8e7d5d,_0x12ca55){const _0x127f06=a24_0x45dfc9;return{'operation':'update','mode':_0x127f06(0x89),'ids':_0x8e7d5d,'total':_0x8e7d5d['length'],'result':_0x12ca55};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a25_0x2a222c=a25_0x4031;function a25_0x4031(_0x25286f,_0x198381){_0x25286f=_0x25286f-0x18e;const _0x13ff40=a25_0x13ff();let _0x40317d=_0x13ff40[_0x25286f];return _0x40317d;}(function(_0x5c861d,_0x2bed1d){const _0x10f159=a25_0x4031,_0x2c677c=_0x5c861d();while(!![]){try{const _0x6b377f=-parseInt(_0x10f159(0x1a9))/0x1*(-parseInt(_0x10f159(0x19e))/0x2)+parseInt(_0x10f159(0x1aa))/0x3+parseInt(_0x10f159(0x1a3))/0x4+-parseInt(_0x10f159(0x1ab))/0x5*(parseInt(_0x10f159(0x190))/0x6)+-parseInt(_0x10f159(0x19c))/0x7+-parseInt(_0x10f159(0x19b))/0x8*(-parseInt(_0x10f159(0x1cb))/0x9)+-parseInt(_0x10f159(0x193))/0xa*(-parseInt(_0x10f159(0x1a1))/0xb);if(_0x6b377f===_0x2bed1d)break;else _0x2c677c['push'](_0x2c677c['shift']());}catch(_0x656a90){_0x2c677c['push'](_0x2c677c['shift']());}}}(a25_0x13ff,0xacbd8));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a25_0x13ff(){const _0x558960=['object','modelId','required','55712ExHrGo','7239407BbxERs','pkField','20bUxpMF','formatRules','requestFields','11eifPxj','code','5030184fxWoRk','description','tableComment','allFieldNames','beforeScriptId','allFields','1291UOxtzv','961137DCMaIk','5ahOWpS','requestBody','dbtableConfig','modelCode','modifierIdField','doVersion','datasetKey','name','dataType','responseBody','method','map','dataset','updateTimeField','operations','dbName','columnCodeListWithDeleted','deleted','isArray','options','type','appCode','tableName','dblinkInfoDTO','doType','string','modifierNameField','filter','sourceType','relations','str','labelField','711OOmxQl','trim','afterScriptId','createTimeField','source','extend','host','length','dbId','4725978AZhctY','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','fields','3884170gjGMce','properties','indexes','responseFields','parse'];a25_0x13ff=function(){return _0x558960;};return a25_0x13ff();}import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x4c14bb){const _0x31d1a3=a25_0x4031;if(_0x4c14bb['deleted'])return null;const _0x25dc74=Boolean(_0x4c14bb['displayName']!==undefined||_0x4c14bb[_0x31d1a3(0x1c3)]!==undefined);let _0x5b72f5={};if(!_0x25dc74&&typeof _0x4c14bb[_0x31d1a3(0x1d0)]==='string')try{_0x5b72f5=JSON[_0x31d1a3(0x197)](_0x4c14bb[_0x31d1a3(0x1d0)]);}catch{}const _0x241ef9=_0x25dc74?_0x4c14bb[_0x31d1a3(0x1b2)]:_0x4c14bb[_0x31d1a3(0x1a2)],_0x220527=_0x25dc74?_0x4c14bb['displayName']:_0x4c14bb[_0x31d1a3(0x1b2)],_0x5bfd3b=_0x25dc74?_0x4c14bb[_0x31d1a3(0x1c3)]:_0x4c14bb[_0x31d1a3(0x1bf)]||_0x4c14bb[_0x31d1a3(0x1b3)],_0x68d6a6=_0x25dc74?_0x4c14bb[_0x31d1a3(0x19d)]===!![]:_0x5b72f5[_0x31d1a3(0x19d)]===!![],_0x22ba5c=_0x25dc74?_0x4c14bb[_0x31d1a3(0x19a)]===!![]:_0x5b72f5['required']===!![],_0x4263df=_0x25dc74?_0x4c14bb['options']??null:_0x5b72f5[_0x31d1a3(0x1be)]??null,_0x21d981={'name':_0x241ef9,'displayName':_0x220527||_0x241ef9,'type':_0x5bfd3b,'dbType':_0x4c14bb['dbType'],'pk':_0x68d6a6,'required':_0x22ba5c,'description':_0x4c14bb[_0x31d1a3(0x1a4)]||undefined};return Array[_0x31d1a3(0x1bd)](_0x4263df)&&_0x4263df['length']>0x0&&(_0x21d981[_0x31d1a3(0x1be)]=_0x4263df),_0x21d981;}function parseJsonMaybe(_0x3f0755){const _0x270fcf=a25_0x4031;if(typeof _0x3f0755!==_0x270fcf(0x1c4))return _0x3f0755;try{return JSON[_0x270fcf(0x197)](_0x3f0755);}catch{return _0x3f0755;}}function normalizeOperationEntry(_0x79c297,_0x562afa){const _0x111608=a25_0x4031;if(!_0x562afa||typeof _0x562afa!==_0x111608(0x198))return null;if(!_0x562afa[_0x111608(0x1b5)]||!_0x562afa['path'])return null;const _0x149c2b={'name':_0x79c297,'method':_0x562afa['method'],'path':_0x562afa['path']};if(_0x562afa[_0x111608(0x1d1)])_0x149c2b[_0x111608(0x1d1)]=_0x562afa[_0x111608(0x1d1)];if(_0x562afa['requestBody']!=null)_0x149c2b[_0x111608(0x1ac)]=parseJsonMaybe(_0x562afa[_0x111608(0x1ac)]);if(_0x562afa['responseBody']!=null)_0x149c2b['responseBody']=parseJsonMaybe(_0x562afa[_0x111608(0x1b4)]);if(_0x562afa['beforeScriptId']!=null)_0x149c2b[_0x111608(0x1a7)]=_0x562afa[_0x111608(0x1a7)];if(_0x562afa[_0x111608(0x1cd)]!=null)_0x149c2b[_0x111608(0x1cd)]=_0x562afa['afterScriptId'];if(Array[_0x111608(0x1bd)](_0x562afa[_0x111608(0x1a0)]))_0x149c2b[_0x111608(0x1a0)]=_0x562afa[_0x111608(0x1a0)];if(Array[_0x111608(0x1bd)](_0x562afa['responseFields']))_0x149c2b['responseFields']=_0x562afa[_0x111608(0x196)];return _0x149c2b;}function summarizeDbtable(_0x50bdbd){const _0x2d5183=a25_0x4031,_0x4f28a5={},_0x39d24a=[_0x2d5183(0x18f),_0x2d5183(0x1ba),_0x2d5183(0x1c1),_0x2d5183(0x1b1),'pkField',_0x2d5183(0x1a8),'logicField',_0x2d5183(0x1ce),_0x2d5183(0x1b8),'creatorIdField','creatorNameField',_0x2d5183(0x1af),_0x2d5183(0x1c5),_0x2d5183(0x1ca),_0x2d5183(0x1c2)];for(const _0x207ed1 of _0x39d24a){if(_0x50bdbd[_0x207ed1]!==undefined)_0x4f28a5[_0x207ed1]=_0x50bdbd[_0x207ed1];}return typeof _0x4f28a5[_0x2d5183(0x1a8)]==='string'&&_0x4f28a5[_0x2d5183(0x1a8)][_0x2d5183(0x18e)]>0x0&&(_0x4f28a5[_0x2d5183(0x1a6)]=_0x4f28a5[_0x2d5183(0x1a8)]['split'](',')['map'](_0x3ba870=>_0x3ba870[_0x2d5183(0x1cc)]())[_0x2d5183(0x1c6)](Boolean)),_0x4f28a5;}function normalizeRelatedPages(_0x5a29a8){const _0x58d04c=a25_0x4031;if(!Array[_0x58d04c(0x1bd)](_0x5a29a8))return[];return _0x5a29a8['filter'](_0x2b9780=>_0x2b9780&&typeof _0x2b9780===_0x58d04c(0x198))[_0x58d04c(0x1b6)](_0xe00be5=>({'id':_0xe00be5['id'],'type':_0xe00be5[_0x58d04c(0x1bf)],'code':_0xe00be5['code'],'title':_0xe00be5['title'],'deleted':_0xe00be5[_0x58d04c(0x1bc)]===!![]}));}function normalizeFallbackFieldName(_0x26c7a2,_0x50129a){const _0x45b2b6=a25_0x4031,_0x4211f1=_0x26c7a2[_0x45b2b6(0x1cc)]();if(!_0x4211f1)return null;return{'name':_0x4211f1,'displayName':_0x4211f1,'type':undefined,'dbType':undefined,'pk':_0x4211f1===_0x50129a,'required':![],'description':undefined};}async function loadListFieldFallback(_0x47f904,_0x9e36d6){const _0x43e883=a25_0x4031;if(!_0x47f904||!_0x9e36d6)return[];try{const _0x3e232e=await listDatasets(_0x47f904,{'code':_0x9e36d6}),_0x4f433c=_0x3e232e['find'](_0x105e81=>_0x105e81['code']===_0x9e36d6)??_0x3e232e[0x0],_0x287a8f=_0x4f433c?.[_0x43e883(0x1ad)]??{},_0x1b20c0=typeof _0x287a8f[_0x43e883(0x1a8)]===_0x43e883(0x1c4)?_0x287a8f[_0x43e883(0x1a8)]['split'](','):[];return _0x1b20c0[_0x43e883(0x1b6)](_0x3b1403=>normalizeFallbackFieldName(_0x3b1403,_0x287a8f[_0x43e883(0x19d)]))[_0x43e883(0x1c6)](_0x43e9ed=>_0x43e9ed!==null);}catch{return[];}}export const datasetDetail={'service':a25_0x2a222c(0x1b7),'command':'detail','description':a25_0x2a222c(0x191),'risk':'read','flags':[CODE_FLAG],async 'execute'(_0x2b546b){const _0x401a7d=a25_0x2a222c,_0x2940c7=await getDatasetDetail(_0x2b546b[_0x401a7d(0x1c9)](_0x401a7d(0x1a2))),_0x43b674=Array['isArray'](_0x2940c7[_0x401a7d(0x192)])?_0x2940c7[_0x401a7d(0x192)]:Array[_0x401a7d(0x1bd)](_0x2940c7[_0x401a7d(0x194)])?_0x2940c7[_0x401a7d(0x194)]:[];let _0x21fe1f=_0x43b674['map'](_0x19c4c4=>normalizeField(_0x19c4c4))[_0x401a7d(0x1c6)](_0x5a7b89=>_0x5a7b89!==null);_0x21fe1f['length']===0x0&&(_0x21fe1f=await loadListFieldFallback(_0x2b546b[_0x401a7d(0x1c0)],_0x2b546b[_0x401a7d(0x1c9)](_0x401a7d(0x1a2))));const _0x3e589b=_0x2940c7[_0x401a7d(0x1b9)]??{},_0x462e1b=[];for(const [_0x197d07,_0x45a237]of Object['entries'](_0x3e589b)){const _0x33b683=normalizeOperationEntry(_0x197d07,_0x45a237);if(_0x33b683)_0x462e1b['push'](_0x33b683);}const _0x3d0213=_0x2940c7[_0x401a7d(0x1ad)]??{},_0x47ad90=_0x2940c7[_0x401a7d(0x1b7)]??{},_0x2df61c=_0x3d0213['dbId']!=null?{'id':_0x3d0213[_0x401a7d(0x18f)],'name':_0x3d0213[_0x401a7d(0x1ba)]??null}:undefined;let _0x3c9579;return typeof _0x2940c7['extend']===_0x401a7d(0x1c4)&&(_0x3c9579=parseJsonMaybe(_0x2940c7['extend'])),{'ok':!![],'data':{'id':_0x2940c7[_0x401a7d(0x199)]??_0x2940c7['id'],'name':_0x2940c7[_0x401a7d(0x1b2)],'code':_0x2940c7[_0x401a7d(0x1ae)]||_0x2940c7[_0x401a7d(0x1a2)],'doVersion':_0x2940c7[_0x401a7d(0x1b0)],'description':_0x2940c7[_0x401a7d(0x1a4)]||_0x47ad90[_0x401a7d(0x1a5)]||undefined,'source':_0x2940c7[_0x401a7d(0x1cf)]||_0x47ad90[_0x401a7d(0x1c7)],'table':_0x3d0213[_0x401a7d(0x1c1)]||_0x47ad90[_0x401a7d(0x1c1)],'datasetKey':_0x3d0213['datasetKey'],'pk':_0x3d0213['pkField'],'db':_0x2df61c,'dbtable':summarizeDbtable(_0x3d0213),'fields':_0x21fe1f,'operations':_0x462e1b,'indexes':Array['isArray'](_0x47ad90[_0x401a7d(0x195)])?_0x47ad90[_0x401a7d(0x195)]:[],'relations':_0x2940c7[_0x401a7d(0x1c8)]??null,'relatedPages':normalizeRelatedPages(_0x2940c7['relatedPageInfoList']),...Array[_0x401a7d(0x1bd)](_0x2940c7['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x2940c7[_0x401a7d(0x1bb)]}:{},'formatRules':Array[_0x401a7d(0x1bd)](_0x2940c7[_0x401a7d(0x19f)])?_0x2940c7[_0x401a7d(0x19f)]:[],'validateRules':Array[_0x401a7d(0x1bd)](_0x2940c7['validateRules'])?_0x2940c7['validateRules']:[],..._0x3c9579!==undefined?{'extend':_0x3c9579}:{},'stats':{'fieldCount':_0x21fe1f[_0x401a7d(0x18e)],'operationCount':_0x462e1b[_0x401a7d(0x18e)]}}};}};
|