@lovrabet/lovrabet-cli 2.3.0-beta.5 → 2.3.0-beta.6
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/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/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.d.ts +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.d.ts +2 -0
- 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.d.ts +1 -0
- 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/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.d.ts +9 -7
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/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 +1 -1
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x362baa,_0x28af){const _0x2fcf75=a27_0x5694,_0x561270=_0x362baa();while(!![]){try{const _0x263480=-parseInt(_0x2fcf75(0x144))/0x1*(-parseInt(_0x2fcf75(0x141))/0x2)+parseInt(_0x2fcf75(0x143))/0x3+parseInt(_0x2fcf75(0x13e))/0x4+parseInt(_0x2fcf75(0x13c))/0x5*(parseInt(_0x2fcf75(0x142))/0x6)+parseInt(_0x2fcf75(0x13f))/0x7+-parseInt(_0x2fcf75(0x140))/0x8*(parseInt(_0x2fcf75(0x13d))/0x9)+parseInt(_0x2fcf75(0x145))/0xa*(-parseInt(_0x2fcf75(0x146))/0xb);if(_0x263480===_0x28af)break;else _0x561270['push'](_0x561270['shift']());}catch(_0x1f6d5c){_0x561270['push'](_0x561270['shift']());}}}(a27_0x4fb7,0x98f8a));function a27_0x5694(_0x4c6d44,_0x538367){_0x4c6d44=_0x4c6d44-0x13c;const _0x4fb7d8=a27_0x4fb7();let _0x569472=_0x4fb7d8[_0x4c6d44];return _0x569472;}function a27_0x4fb7(){const _0x167364=['1818CvITuy','3386052KToaWT','233579tbKYpu','10780490rcuvkO','22VScDwO','7025mXVVUz','567WDAHeI','3243740PsZlru','6479942wAZVVx','94216khEIJz','2NKHMUV'];a27_0x4fb7=function(){return _0x167364;};return a27_0x4fb7();}import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a28_0x3c167c=a28_0x5218;(function(_0x462b0d,_0x598b58){const _0x265f03=a28_0x5218,_0xd644bc=_0x462b0d();while(!![]){try{const _0x156664=-parseInt(_0x265f03(0xd1))/0x1*(-parseInt(_0x265f03(0xda))/0x2)+-parseInt(_0x265f03(0xd6))/0x3+parseInt(_0x265f03(0xe4))/0x4*(-parseInt(_0x265f03(0xe2))/0x5)+parseInt(_0x265f03(0xcd))/0x6+-parseInt(_0x265f03(0xc9))/0x7+parseInt(_0x265f03(0xdc))/0x8+parseInt(_0x265f03(0xca))/0x9;if(_0x156664===_0x598b58)break;else _0xd644bc['push'](_0xd644bc['shift']());}catch(_0x300fd8){_0xd644bc['push'](_0xd644bc['shift']());}}}(a28_0x2ef7,0x611c9));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a28_0x5218(_0x4fdbc1,_0x5dde79){_0x4fdbc1=_0x4fdbc1-0xc9;const _0x2ef7ac=a28_0x2ef7();let _0x5218b5=_0x2ef7ac[_0x4fdbc1];return _0x5218b5;}function a28_0x2ef7(){const _0x2dcd3b=['pkField','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','list','str','358113sRVbnA','code','tableName','source','63556balQlE','allFields','1483272nnxfGX','string','map','appCode','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','split','95365vJUEws','length','108VwQiNP','read','3144477WPiwBh','980235taSQge','dbtableConfig','trim','3880632qHevxS','name','description','dataset','17CtiTqW'];a28_0x2ef7=function(){return _0x2dcd3b;};return a28_0x2ef7();}export const datasetList={'service':a28_0x3c167c(0xd0),'command':a28_0x3c167c(0xd4),'description':'List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','risk':a28_0x3c167c(0xe5),'flags':[{'name':a28_0x3c167c(0xce),'type':a28_0x3c167c(0xdd),'description':a28_0x3c167c(0xd3)},{...CODE_FLAG,'required':![],'description':a28_0x3c167c(0xe0)}],async 'execute'(_0x3cfd52){const _0x3e85fe=a28_0x3c167c,_0x31b18a=_0x3cfd52['str'](_0x3e85fe(0xce)),_0x3dee54=_0x3cfd52[_0x3e85fe(0xd5)](_0x3e85fe(0xd7)),_0x229857=await listDatasets(_0x3cfd52[_0x3e85fe(0xdf)],{..._0x31b18a&&{'name':_0x31b18a},..._0x3dee54&&{'code':_0x3dee54}});return{'ok':!![],'data':{'total':_0x229857[_0x3e85fe(0xe3)],'datasets':_0x229857['map'](_0x28d68a=>{const _0xcacc2e=_0x3e85fe,_0x82beaa=_0x28d68a[_0xcacc2e(0xcb)]??{};return{'id':_0x28d68a['id'],'code':_0x28d68a[_0xcacc2e(0xd7)],'name':_0x28d68a[_0xcacc2e(0xce)],'source':_0x28d68a[_0xcacc2e(0xd9)],'description':_0x28d68a[_0xcacc2e(0xcf)],'table':_0x82beaa[_0xcacc2e(0xd8)],'datasetKey':_0x82beaa['datasetKey'],'pk':_0x82beaa[_0xcacc2e(0xd2)],'fields':_0x82beaa[_0xcacc2e(0xdb)]?_0x82beaa['allFields'][_0xcacc2e(0xe1)](',')[_0xcacc2e(0xde)](_0x549022=>_0x549022[_0xcacc2e(0xcc)]()):[]};})}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a29_0x5502e2=a29_0x50ab;(function(_0x79ea9f,_0x163dcd){const _0x1b9971=a29_0x50ab,_0x51f0ce=_0x79ea9f();while(!![]){try{const _0x149a46=parseInt(_0x1b9971(0xad))/0x1*(-parseInt(_0x1b9971(0xac))/0x2)+-parseInt(_0x1b9971(0xb7))/0x3*(parseInt(_0x1b9971(0xb5))/0x4)+parseInt(_0x1b9971(0xb4))/0x5+-parseInt(_0x1b9971(0xb1))/0x6*(parseInt(_0x1b9971(0xb3))/0x7)+-parseInt(_0x1b9971(0xb0))/0x8*(-parseInt(_0x1b9971(0xa8))/0x9)+parseInt(_0x1b9971(0xa9))/0xa*(parseInt(_0x1b9971(0xae))/0xb)+-parseInt(_0x1b9971(0xa7))/0xc;if(_0x149a46===_0x163dcd)break;else _0x51f0ce['push'](_0x51f0ce['shift']());}catch(_0x33e8e7){_0x51f0ce['push'](_0x51f0ce['shift']());}}}(a29_0x4ee0,0x80ab9));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a29_0x50ab(_0x4cba92,_0x315dea){_0x4cba92=_0x4cba92-0xa6;const _0x4ee04a=a29_0x4ee0();let _0x50ab64=_0x4ee04a[_0x4cba92];return _0x50ab64;}const DEFAULT_MARKDOWN='#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.';export function formatDatasetSdkMarkdown(_0x5a6920){const _0x18511e=a29_0x50ab,_0x5c7bd0=typeof _0x5a6920==='string'?_0x5a6920[_0x18511e(0xb9)]():'';return _0x5c7bd0||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a29_0x5502e2(0xb2),'command':a29_0x5502e2(0xa6),'description':a29_0x5502e2(0xb8),'risk':a29_0x5502e2(0xaf),'flags':[{...CODE_FLAG,'description':'Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.'}],async 'execute'(_0x4995ab){const _0x22d0c1=a29_0x5502e2,_0x139d63=_0x4995ab[_0x22d0c1(0xab)](_0x22d0c1(0xb6)),_0x34eb32=await getDatasetSdkUsageDoc(_0x139d63,_0x4995ab[_0x22d0c1(0xaa)]);return{'ok':!![],'data':{'code':_0x139d63,'appCode':_0x4995ab[_0x22d0c1(0xaa)],'markdown':formatDatasetSdkMarkdown(_0x34eb32)}};}};function a29_0x4ee0(){const _0x4cee57=['2154750GvJxul','408BcdedE','code','8451pKZnsE','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','trim','sdk-doc','2661204zYUaOo','27oMYJOZ','30QKxEwN','appCode','str','26jDrkEl','4806hKkpvv','2986577RnYtst','read','826720KTLstX','6pYWplf','dataset','3198153HLiekd'];a29_0x4ee0=function(){return _0x4cee57;};return a29_0x4ee0();}
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a30_0x15787d=a30_0x2a44;(function(_0x491e60,_0x25a353){const _0x77bef4=a30_0x2a44,_0x5a7b8e=_0x491e60();while(!![]){try{const _0x21b3e=parseInt(_0x77bef4(0xe4))/0x1*(-parseInt(_0x77bef4(0xd8))/0x2)+parseInt(_0x77bef4(0xe0))/0x3*(parseInt(_0x77bef4(0x8d))/0x4)+-parseInt(_0x77bef4(0x84))/0x5+-parseInt(_0x77bef4(0xb0))/0x6*(parseInt(_0x77bef4(0xbf))/0x7)+-parseInt(_0x77bef4(0xb8))/0x8*(-parseInt(_0x77bef4(0xae))/0x9)+-parseInt(_0x77bef4(0x83))/0xa+parseInt(_0x77bef4(0xd4))/0xb*(parseInt(_0x77bef4(0xbe))/0xc);if(_0x21b3e===_0x25a353)break;else _0x5a7b8e['push'](_0x5a7b8e['shift']());}catch(_0x59dc13){_0x5a7b8e['push'](_0x5a7b8e['shift']());}}}(a30_0x2e43,0x60014));function a30_0x2a44(_0x299f90,_0x2bdfca){_0x299f90=_0x299f90-0x7f;const _0x2e4302=a30_0x2e43();let _0x2a44b6=_0x2e4302[_0x299f90];return _0x2a44b6;}import a30_0x315dd0 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getKbDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';function a30_0x2e43(){const _0x1150c8=['\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','region','\x20\x20Repair\x20project:\x20\x20\x20','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','missing','(not\x20set)','\x20\x20skillDomain:\x20\x20\x20\x20\x20','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','repairCommand','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','locale','project','\x20\x20─','red','skillVersion','\x20\x20Installed\x20Path:\x20\x20','⚠\x20Empty','repeat','call','join','\x20config\x20delete\x20inherit','accessKey','(default:\x20','(unnamed)','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','globalConfig','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','state','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20\x20','padEnd','read','9HlpTFG','currentApp','6YtpPMu','(no\x20file)','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','installedPath','✗\x20Invalid\x20JSON','gray','\x20\x20Service\x20Tree','2855608IJpKse','inherit','\x20\x20Session\x20check:\x20\x20\x20','\x20(accessKey)','verbose','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','24VYPYvW','3642877urlvpb','registryPath','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','global','(set,\x20length=','✗\x20Invalid','\x20\x20Legacy\x20inherit:\x20\x20\x20','serviceCode','pageSize','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','ignored\x20in\x20','\x20doctor','arch','(not\x20found)','includes','filter','defaultApp','\x20\x20auth\x20(effective):\x20','platform','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','9706037ZmQVIq','\x20Imported\x20from:\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','2CgrtZm','(default)','Global','riskLevel','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','hasOwnProperty','\x20\x20runtimeDomain:\x20\x20\x20','commandCount','57MAiXJy','prototype','\x20\x20Auth','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','629611fanarC','green','(none)','Project','current','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','message','\x20config','packageVersion','✓\x20Valid\x20JSON','empty','raw','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20current','bold','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20inherit\x20--global','\x20+\x20','name','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Skill\x20Version:\x20\x20\x20','services','status','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','3632460bgxGRo','2571110slKkwd','log','ClientAk','\x20commands)','yellow','length','(missing)','\x20\x20Package\x20Version:\x20','\x20\x20Merged\x20Config','62956pOUFmF'];a30_0x2e43=function(){return _0x1150c8;};return a30_0x2e43();}import{normalizeLovrabetRegion}from'../constant/region.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{inspectServiceRegistry}from'../commands/service/registry.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x264a4a){const _0x313667=a30_0x2a44,_0x257e7a=getCliVersion(),_0x34b69d=buildConfigFromFlags({});await initGlobalEnvironment(_0x34b69d),console[_0x313667(0x85)](),console[_0x313667(0x85)](a30_0x315dd0[_0x313667(0xf2)](CLI_BIN_NAME+_0x313667(0xcb))),console[_0x313667(0x85)](a30_0x315dd0['gray']('─'[_0x313667(0x9f)](0x32))),console[_0x313667(0x85)](_0x313667(0xbd)+_0x257e7a),console['log'](_0x313667(0xa8)+process['version']),console[_0x313667(0x85)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x313667(0xd2)]+'\x20'+process[_0x313667(0xcc)]);const _0x3a0c1f=inspectBuiltinSkill();console['log'](),console['log'](a30_0x315dd0['bold']('\x20\x20Built-in\x20Skill')),console['log'](a30_0x315dd0['gray'](_0x313667(0x9a)['repeat'](0x1e))),console[_0x313667(0x85)](_0x313667(0x82)+(_0x3a0c1f[_0x313667(0xa9)]==='current'?a30_0x315dd0[_0x313667(0xe5)](_0x313667(0xf1)):a30_0x315dd0[_0x313667(0x9b)]('✗\x20'+_0x3a0c1f['state']))),console[_0x313667(0x85)](_0x313667(0x8b)+_0x3a0c1f[_0x313667(0xec)]),console[_0x313667(0x85)](_0x313667(0x7f)+(_0x3a0c1f[_0x313667(0x9c)]||a30_0x315dd0[_0x313667(0xb6)](_0x313667(0x8a)))),console[_0x313667(0x85)](_0x313667(0x9d)+(_0x3a0c1f[_0x313667(0xb4)]||a30_0x315dd0['gray'](_0x313667(0xcd))));_0x3a0c1f[_0x313667(0xa9)]!==_0x313667(0xe8)&&console[_0x313667(0x85)](_0x313667(0xe9)+_0x3a0c1f[_0x313667(0x96)]);_0x3a0c1f['reason']&&console['log'](_0x313667(0xd6)+_0x3a0c1f['reason']);console[_0x313667(0x85)](),console['log'](a30_0x315dd0[_0x313667(0xf2)]('\x20\x20Config\x20Files')),console['log'](a30_0x315dd0[_0x313667(0xb6)]('\x20\x20─'[_0x313667(0x9f)](0x1e)));const _0x4344e8=getGlobalConfigPath(),_0x2d3cbb=getProjectConfigPath();console[_0x313667(0x85)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4344e8||a30_0x315dd0[_0x313667(0xb6)]('(not\x20found)'))),console[_0x313667(0x85)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2d3cbb||a30_0x315dd0[_0x313667(0xb6)](_0x313667(0xcd)))),console[_0x313667(0x85)](),console[_0x313667(0x85)](a30_0x315dd0[_0x313667(0xf2)](_0x313667(0xd7))),console['log'](a30_0x315dd0['gray']('\x20\x20─'['repeat'](0x1e)));const _0x15c1e9=(_0x1c1044,_0x5f0207)=>{const _0x3faf9=_0x313667;if(!_0x5f0207){console['log']('\x20\x20'+_0x1c1044[_0x3faf9(0xac)](0x11)+'\x20'+a30_0x315dd0['gray'](_0x3faf9(0xb1)));return;}const _0x16ebc6=inspectCliConfigJsonFile(_0x5f0207);if(_0x16ebc6[_0x3faf9(0x81)]==='ok')console[_0x3faf9(0x85)]('\x20\x20'+_0x1c1044[_0x3faf9(0xac)](0x11)+'\x20'+a30_0x315dd0['green'](_0x3faf9(0xed)));else{if(_0x16ebc6[_0x3faf9(0x81)]===_0x3faf9(0xee))console[_0x3faf9(0x85)]('\x20\x20'+_0x1c1044[_0x3faf9(0xac)](0x11)+'\x20'+a30_0x315dd0[_0x3faf9(0x88)](_0x3faf9(0xb2)));else _0x16ebc6[_0x3faf9(0x81)]==='missing'?console[_0x3faf9(0x85)]('\x20\x20'+_0x1c1044[_0x3faf9(0xac)](0x11)+'\x20'+a30_0x315dd0[_0x3faf9(0xb6)](_0x3faf9(0x8a))):(console[_0x3faf9(0x85)]('\x20\x20'+_0x1c1044[_0x3faf9(0xac)](0x11)+'\x20'+a30_0x315dd0[_0x3faf9(0x9b)](_0x3faf9(0xb5))),console[_0x3faf9(0x85)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a30_0x315dd0[_0x3faf9(0x9b)](_0x16ebc6['message'])));}};_0x15c1e9(_0x313667(0xda),_0x4344e8),_0x15c1e9(_0x313667(0xe7),_0x2d3cbb);const _0xbce699=loadRawConfigLayers(),_0x3e2b46=[Object['prototype'][_0x313667(0xdd)][_0x313667(0xa0)](_0xbce699[_0x313667(0xa7)],'inherit')?_0x313667(0xc2):null,Object[_0x313667(0xe1)][_0x313667(0xdd)][_0x313667(0xa0)](_0xbce699['projectConfig'],_0x313667(0xb9))?_0x313667(0x99):null][_0x313667(0xcf)](Boolean);_0x3e2b46[_0x313667(0x89)]>0x0&&(console[_0x313667(0x85)](_0x313667(0xc5)+a30_0x315dd0['yellow'](_0x313667(0xca)+_0x3e2b46[_0x313667(0xa1)](_0x313667(0xf5))+_0x313667(0xeb))),_0x3e2b46['includes'](_0x313667(0x99))&&console['log'](_0x313667(0x90)+CLI_BIN_NAME+_0x313667(0xa2)),_0x3e2b46[_0x313667(0xce)](_0x313667(0xc2))&&console[_0x313667(0x85)](_0x313667(0xab)+CLI_BIN_NAME+_0x313667(0xf4)));console[_0x313667(0x85)](),console[_0x313667(0x85)](a30_0x315dd0[_0x313667(0xf2)](_0x313667(0x8c))),console[_0x313667(0x85)](a30_0x315dd0['gray'](_0x313667(0x9a)['repeat'](0x1e))),console[_0x313667(0x85)](_0x313667(0xe3)+(_0x34b69d['appCode']||a30_0x315dd0[_0x313667(0x9b)](_0x313667(0x93)))),console[_0x313667(0x85)](_0x313667(0xc1)+_0x34b69d['env']),console[_0x313667(0x85)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+normalizeLovrabetRegion(_0x34b69d[_0x313667(0xef)][_0x313667(0x8f)])),console[_0x313667(0x85)](_0x313667(0x95)+_0x34b69d[_0x313667(0x98)]),console[_0x313667(0x85)](_0x313667(0xaa)+(_0x34b69d[_0x313667(0xd0)]||a30_0x315dd0['gray'](_0x313667(0xe6)))),console[_0x313667(0x85)](_0x313667(0xdc)+(_0x34b69d[_0x313667(0xaf)]||a30_0x315dd0['gray'](_0x313667(0xe6)))),console[_0x313667(0x85)](_0x313667(0xf7)+(_0x34b69d['format']||a30_0x315dd0[_0x313667(0xb6)](_0x313667(0xa4)+DEFAULT_CONFIG_VALUES['format']+')'))),console['log'](_0x313667(0xf0)+(_0x34b69d[_0x313667(0xc7)]??a30_0x315dd0[_0x313667(0xb6)](_0x313667(0xd9)))),console[_0x313667(0x85)](_0x313667(0xa6)+_0x34b69d[_0x313667(0xdb)]),console[_0x313667(0x85)](_0x313667(0xc9)+_0x34b69d[_0x313667(0xbc)]),console[_0x313667(0x85)](_0x313667(0xd1)+AUTH_MODE[_0x313667(0x86)]),console[_0x313667(0x85)](_0x313667(0x8e)+(_0x34b69d[_0x313667(0xa3)]?a30_0x315dd0[_0x313667(0xe5)](_0x313667(0xc3)+_0x34b69d[_0x313667(0xa3)][_0x313667(0x89)]+')'):a30_0x315dd0[_0x313667(0xb6)](_0x313667(0xe6)))),console[_0x313667(0x85)](),console[_0x313667(0x85)](a30_0x315dd0[_0x313667(0xf2)]('\x20\x20API\x20Endpoints')),console['log'](a30_0x315dd0[_0x313667(0xb6)](_0x313667(0x9a)[_0x313667(0x9f)](0x1e))),console[_0x313667(0x85)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x313667(0x85)](_0x313667(0xb3)+getUserDomain()),console[_0x313667(0x85)](_0x313667(0xde)+getRuntimeDomain()),console[_0x313667(0x85)](_0x313667(0x94)+getSkillDomain()),console[_0x313667(0x85)](_0x313667(0x97)+getKbDomain()),console[_0x313667(0x85)](),console[_0x313667(0x85)](a30_0x315dd0['bold'](_0x313667(0xb7))),console[_0x313667(0x85)](a30_0x315dd0[_0x313667(0xb6)](_0x313667(0x9a)[_0x313667(0x9f)](0x1e)));const _0x4310ff=inspectServiceRegistry();console[_0x313667(0x85)](_0x313667(0xc8)+_0x4310ff[_0x313667(0xc0)]),console[_0x313667(0x85)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+formatServiceRegistryStatus(_0x4310ff)),console[_0x313667(0x85)](_0x313667(0x91)+_0x4310ff['serviceCount']),console[_0x313667(0x85)](_0x313667(0xd3)+_0x4310ff['commandCount']);for(const _0x5f49ee of _0x4310ff[_0x313667(0x80)]){console['log']('\x20\x20'+(_0x5f49ee[_0x313667(0xc6)]+':')['padEnd'](0x11)+'\x20'+(_0x5f49ee[_0x313667(0xf6)]||a30_0x315dd0[_0x313667(0xb6)](_0x313667(0xa5)))+'\x20('+_0x5f49ee[_0x313667(0xdf)]+_0x313667(0x87)),console['log']('\x20\x20'+''[_0x313667(0xac)](0x11)+_0x313667(0xd5)+_0x5f49ee['source']['path']);}return console[_0x313667(0x85)](),console[_0x313667(0x85)](a30_0x315dd0[_0x313667(0xf2)](_0x313667(0xe2))),console[_0x313667(0x85)](a30_0x315dd0[_0x313667(0xb6)](_0x313667(0x9a)[_0x313667(0x9f)](0x1e))),console[_0x313667(0x85)](_0x313667(0xf3)+a30_0x315dd0[_0x313667(0xe5)](AUTH_MODE[_0x313667(0x86)]+_0x313667(0xbb))),console['log'](_0x313667(0xba)+a30_0x315dd0[_0x313667(0xb6)]('(removed\x20—\x20cookie\x20auth\x20disabled)')),console[_0x313667(0x85)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x3d1b2e){const _0x3874ec=a30_0x2a44;if(_0x3d1b2e[_0x3874ec(0x81)]==='ok')return a30_0x315dd0[_0x3874ec(0xe5)]('✓\x20Loaded');if(_0x3d1b2e[_0x3874ec(0x81)]===_0x3874ec(0x92))return a30_0x315dd0['gray'](_0x3874ec(0xcd));if(_0x3d1b2e[_0x3874ec(0x81)]==='empty')return a30_0x315dd0['yellow'](_0x3874ec(0x9e));return a30_0x315dd0['red'](_0x3874ec(0xc4)+(_0x3d1b2e['message']?':\x20'+_0x3d1b2e[_0x3874ec(0xea)]:''));}export const doctorDefinition={'service':'doctor','command':'check','description':'Diagnose\x20CLI\x20configuration\x20and\x20environment','risk':a30_0x15787d(0xad),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a30_0x4687c3=a30_0x5855;(function(_0x14f312,_0x37bcb8){const _0x66ada=a30_0x5855,_0xa99389=_0x14f312();while(!![]){try{const _0x22558e=-parseInt(_0x66ada(0x152))/0x1*(parseInt(_0x66ada(0x1a6))/0x2)+parseInt(_0x66ada(0x17e))/0x3+-parseInt(_0x66ada(0x171))/0x4+-parseInt(_0x66ada(0x198))/0x5+parseInt(_0x66ada(0x150))/0x6+-parseInt(_0x66ada(0x164))/0x7*(-parseInt(_0x66ada(0x182))/0x8)+-parseInt(_0x66ada(0x1a8))/0x9*(-parseInt(_0x66ada(0x15b))/0xa);if(_0x22558e===_0x37bcb8)break;else _0xa99389['push'](_0xa99389['shift']());}catch(_0x48f569){_0xa99389['push'](_0xa99389['shift']());}}}(a30_0x33f9,0x77d92));import a30_0x2f3cc6 from'chalk';function a30_0x5855(_0x4029a5,_0x12ff18){_0x4029a5=_0x4029a5-0x13f;const _0x33f9ba=a30_0x33f9();let _0x58550a=_0x33f9ba[_0x4029a5];return _0x58550a;}import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getKbDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';import{normalizeLovrabetRegion}from'../constant/region.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{inspectServiceRegistry}from'../commands/service/registry.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x1dd44f){const _0x48ce40=a30_0x5855,_0x513fd1=getCliVersion(),_0x20254c=buildConfigFromFlags({});await initGlobalEnvironment(_0x20254c),console[_0x48ce40(0x1a2)](),console[_0x48ce40(0x1a2)](a30_0x2f3cc6['bold'](CLI_BIN_NAME+_0x48ce40(0x15d))),console['log'](a30_0x2f3cc6[_0x48ce40(0x179)]('─'[_0x48ce40(0x151)](0x32))),console[_0x48ce40(0x1a2)](_0x48ce40(0x16c)+_0x513fd1),console[_0x48ce40(0x1a2)](_0x48ce40(0x146)+process[_0x48ce40(0x1a0)]),console[_0x48ce40(0x1a2)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x48ce40(0x181)]+'\x20'+process['arch']);const _0x1a9a3d=inspectBuiltinSkill();console[_0x48ce40(0x1a2)](),console['log'](a30_0x2f3cc6[_0x48ce40(0x155)](_0x48ce40(0x144))),console[_0x48ce40(0x1a2)](a30_0x2f3cc6[_0x48ce40(0x179)](_0x48ce40(0x1b0)[_0x48ce40(0x151)](0x1e))),console[_0x48ce40(0x1a2)](_0x48ce40(0x193)+(_0x1a9a3d[_0x48ce40(0x1a5)]===_0x48ce40(0x145)?a30_0x2f3cc6['green']('✓\x20current'):a30_0x2f3cc6['red']('✗\x20'+_0x1a9a3d[_0x48ce40(0x1a5)]))),console['log'](_0x48ce40(0x15a)+_0x1a9a3d[_0x48ce40(0x162)]),console[_0x48ce40(0x1a2)](_0x48ce40(0x18e)+(_0x1a9a3d['skillVersion']||a30_0x2f3cc6[_0x48ce40(0x179)](_0x48ce40(0x15e)))),console['log'](_0x48ce40(0x166)+(_0x1a9a3d['installedPath']||a30_0x2f3cc6[_0x48ce40(0x179)](_0x48ce40(0x17a))));_0x1a9a3d[_0x48ce40(0x1a5)]!==_0x48ce40(0x145)&&console[_0x48ce40(0x1a2)](_0x48ce40(0x190)+_0x1a9a3d[_0x48ce40(0x13f)]);_0x1a9a3d['reason']&&console[_0x48ce40(0x1a2)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1a9a3d[_0x48ce40(0x199)]);console[_0x48ce40(0x1a2)](),console['log'](a30_0x2f3cc6[_0x48ce40(0x155)](_0x48ce40(0x19c))),console[_0x48ce40(0x1a2)](a30_0x2f3cc6[_0x48ce40(0x179)]('\x20\x20─'[_0x48ce40(0x151)](0x1e)));const _0x4298b6=getGlobalConfigPath(),_0x379f9f=getProjectConfigPath();console[_0x48ce40(0x1a2)](_0x48ce40(0x1a4)+(_0x4298b6||a30_0x2f3cc6[_0x48ce40(0x179)](_0x48ce40(0x17a)))),console['log']('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x379f9f||a30_0x2f3cc6[_0x48ce40(0x179)](_0x48ce40(0x17a)))),console[_0x48ce40(0x1a2)](),console[_0x48ce40(0x1a2)](a30_0x2f3cc6[_0x48ce40(0x155)](_0x48ce40(0x191))),console[_0x48ce40(0x1a2)](a30_0x2f3cc6[_0x48ce40(0x179)](_0x48ce40(0x1b0)[_0x48ce40(0x151)](0x1e)));const _0x579b23=(_0x106e9e,_0x53c93a)=>{const _0x3c6399=_0x48ce40;if(!_0x53c93a){console[_0x3c6399(0x1a2)]('\x20\x20'+_0x106e9e[_0x3c6399(0x140)](0x11)+'\x20'+a30_0x2f3cc6[_0x3c6399(0x179)](_0x3c6399(0x188)));return;}const _0x3259bc=inspectCliConfigJsonFile(_0x53c93a);if(_0x3259bc[_0x3c6399(0x1a9)]==='ok')console[_0x3c6399(0x1a2)]('\x20\x20'+_0x106e9e[_0x3c6399(0x140)](0x11)+'\x20'+a30_0x2f3cc6[_0x3c6399(0x1aa)](_0x3c6399(0x18f)));else{if(_0x3259bc[_0x3c6399(0x1a9)]===_0x3c6399(0x194))console[_0x3c6399(0x1a2)]('\x20\x20'+_0x106e9e[_0x3c6399(0x140)](0x11)+'\x20'+a30_0x2f3cc6[_0x3c6399(0x167)](_0x3c6399(0x15f)));else _0x3259bc[_0x3c6399(0x1a9)]===_0x3c6399(0x19f)?console[_0x3c6399(0x1a2)]('\x20\x20'+_0x106e9e['padEnd'](0x11)+'\x20'+a30_0x2f3cc6[_0x3c6399(0x179)](_0x3c6399(0x15e))):(console[_0x3c6399(0x1a2)]('\x20\x20'+_0x106e9e[_0x3c6399(0x140)](0x11)+'\x20'+a30_0x2f3cc6[_0x3c6399(0x1b1)](_0x3c6399(0x19e))),console[_0x3c6399(0x1a2)]('\x20\x20'+''[_0x3c6399(0x140)](0x11)+'\x20'+a30_0x2f3cc6[_0x3c6399(0x1b1)](_0x3259bc['message'])));}};_0x579b23(_0x48ce40(0x161),_0x4298b6),_0x579b23(_0x48ce40(0x174),_0x379f9f);const _0x3c0805=loadRawConfigLayers(),_0x1b56bc=[Object[_0x48ce40(0x141)][_0x48ce40(0x18a)][_0x48ce40(0x186)](_0x3c0805[_0x48ce40(0x14c)],_0x48ce40(0x16d))?_0x48ce40(0x16a):null,Object[_0x48ce40(0x141)][_0x48ce40(0x18a)][_0x48ce40(0x186)](_0x3c0805[_0x48ce40(0x18b)],_0x48ce40(0x16d))?_0x48ce40(0x16f):null]['filter'](Boolean);_0x1b56bc[_0x48ce40(0x16e)]>0x0&&(console[_0x48ce40(0x1a2)](_0x48ce40(0x142)+a30_0x2f3cc6[_0x48ce40(0x167)](_0x48ce40(0x153)+_0x1b56bc['join']('\x20+\x20')+_0x48ce40(0x17b))),_0x1b56bc['includes']('project')&&console[_0x48ce40(0x1a2)](_0x48ce40(0x15c)+CLI_BIN_NAME+_0x48ce40(0x1b2)),_0x1b56bc[_0x48ce40(0x19a)](_0x48ce40(0x16a))&&console['log'](_0x48ce40(0x1ad)+CLI_BIN_NAME+_0x48ce40(0x173)));console['log'](),console[_0x48ce40(0x1a2)](a30_0x2f3cc6[_0x48ce40(0x155)](_0x48ce40(0x187))),console[_0x48ce40(0x1a2)](a30_0x2f3cc6[_0x48ce40(0x179)](_0x48ce40(0x1b0)[_0x48ce40(0x151)](0x1e))),console[_0x48ce40(0x1a2)](_0x48ce40(0x165)+(_0x20254c[_0x48ce40(0x196)]||a30_0x2f3cc6[_0x48ce40(0x1b1)](_0x48ce40(0x1ac)))),console[_0x48ce40(0x1a2)](_0x48ce40(0x1ae)+_0x20254c['env']),console[_0x48ce40(0x1a2)](_0x48ce40(0x160)+normalizeLovrabetRegion(_0x20254c['raw'][_0x48ce40(0x17c)])),console[_0x48ce40(0x1a2)](_0x48ce40(0x14a)+_0x20254c[_0x48ce40(0x1ab)]),console[_0x48ce40(0x1a2)](_0x48ce40(0x157)+(_0x20254c['defaultApp']||a30_0x2f3cc6[_0x48ce40(0x179)](_0x48ce40(0x149)))),console[_0x48ce40(0x1a2)](_0x48ce40(0x175)+(_0x20254c[_0x48ce40(0x14d)]||a30_0x2f3cc6['gray']('(none)'))),console[_0x48ce40(0x1a2)](_0x48ce40(0x1b4)+(_0x20254c[_0x48ce40(0x14f)]||a30_0x2f3cc6[_0x48ce40(0x179)](_0x48ce40(0x18d)+DEFAULT_CONFIG_VALUES[_0x48ce40(0x14f)]+')'))),console[_0x48ce40(0x1a2)](_0x48ce40(0x184)+(_0x20254c[_0x48ce40(0x158)]??a30_0x2f3cc6['gray'](_0x48ce40(0x17d)))),console[_0x48ce40(0x1a2)](_0x48ce40(0x19d)+_0x20254c[_0x48ce40(0x1a1)]),console[_0x48ce40(0x1a2)](_0x48ce40(0x168)+_0x20254c[_0x48ce40(0x159)]),console[_0x48ce40(0x1a2)](_0x48ce40(0x195)+AUTH_MODE['ClientAk']),console['log']('\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20'+(_0x20254c['accessKey']?a30_0x2f3cc6['green'](_0x48ce40(0x169)+_0x20254c[_0x48ce40(0x176)][_0x48ce40(0x16e)]+')'):a30_0x2f3cc6[_0x48ce40(0x179)](_0x48ce40(0x149)))),console[_0x48ce40(0x1a2)](),console[_0x48ce40(0x1a2)](a30_0x2f3cc6[_0x48ce40(0x155)](_0x48ce40(0x14b))),console['log'](a30_0x2f3cc6[_0x48ce40(0x179)](_0x48ce40(0x1b0)[_0x48ce40(0x151)](0x1e))),console[_0x48ce40(0x1a2)](_0x48ce40(0x156)+getApiDomain()),console[_0x48ce40(0x1a2)](_0x48ce40(0x183)+getUserDomain()),console['log']('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console['log'](_0x48ce40(0x172)+getSkillDomain()),console[_0x48ce40(0x1a2)](_0x48ce40(0x1b3)+getKbDomain()),console[_0x48ce40(0x1a2)](),console['log'](a30_0x2f3cc6[_0x48ce40(0x155)](_0x48ce40(0x148))),console[_0x48ce40(0x1a2)](a30_0x2f3cc6[_0x48ce40(0x179)](_0x48ce40(0x1b0)[_0x48ce40(0x151)](0x1e)));const _0x27e9fb=inspectServiceRegistry();console[_0x48ce40(0x1a2)](_0x48ce40(0x192)+_0x27e9fb['registryPath']),console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+formatServiceRegistryStatus(_0x27e9fb)),console[_0x48ce40(0x1a2)]('\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x27e9fb['serviceCount']),console[_0x48ce40(0x1a2)](_0x48ce40(0x189)+_0x27e9fb[_0x48ce40(0x185)]);for(const _0x3c26ba of _0x27e9fb['services']){console[_0x48ce40(0x1a2)]('\x20\x20'+(_0x3c26ba[_0x48ce40(0x170)]+':')[_0x48ce40(0x140)](0x11)+'\x20'+(_0x3c26ba[_0x48ce40(0x163)]||a30_0x2f3cc6['gray']('(unnamed)'))+'\x20('+_0x3c26ba[_0x48ce40(0x185)]+_0x48ce40(0x178)),console[_0x48ce40(0x1a2)]('\x20\x20'+''[_0x48ce40(0x140)](0x11)+_0x48ce40(0x19b)+_0x3c26ba[_0x48ce40(0x14e)][_0x48ce40(0x17f)]);}return console[_0x48ce40(0x1a2)](),console[_0x48ce40(0x1a2)](a30_0x2f3cc6[_0x48ce40(0x155)](_0x48ce40(0x154))),console[_0x48ce40(0x1a2)](a30_0x2f3cc6['gray'](_0x48ce40(0x1b0)[_0x48ce40(0x151)](0x1e))),console['log'](_0x48ce40(0x180)+a30_0x2f3cc6['green'](AUTH_MODE[_0x48ce40(0x1a7)]+'\x20(accessKey)')),console['log'](_0x48ce40(0x18c)+a30_0x2f3cc6[_0x48ce40(0x179)](_0x48ce40(0x197))),console[_0x48ce40(0x1a2)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x4486f8){const _0x412eba=a30_0x5855;if(_0x4486f8['status']==='ok')return a30_0x2f3cc6['green'](_0x412eba(0x177));if(_0x4486f8['status']===_0x412eba(0x19f))return a30_0x2f3cc6[_0x412eba(0x179)](_0x412eba(0x17a));if(_0x4486f8[_0x412eba(0x1a9)]==='empty')return a30_0x2f3cc6[_0x412eba(0x167)](_0x412eba(0x147));return a30_0x2f3cc6['red']('✗\x20Invalid'+(_0x4486f8[_0x412eba(0x16b)]?':\x20'+_0x4486f8[_0x412eba(0x16b)]:''));}export const doctorDefinition={'service':'doctor','command':a30_0x4687c3(0x1af),'description':a30_0x4687c3(0x1a3),'risk':a30_0x4687c3(0x143),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};function a30_0x33f9(){const _0x596999=['✗\x20Invalid\x20JSON','missing','version','riskLevel','log','Diagnose\x20CLI\x20configuration\x20and\x20environment','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','state','8owQKDu','ClientAk','18RiXHBT','status','green','locale','(not\x20set)','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','check','\x20\x20─','red','\x20config\x20delete\x20inherit','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','repairCommand','padEnd','prototype','\x20\x20Legacy\x20inherit:\x20\x20\x20','read','\x20\x20Built-in\x20Skill','current','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty','\x20\x20Service\x20Tree','(none)','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','globalConfig','currentApp','source','format','784842IeZoha','repeat','19880RttFgJ','ignored\x20in\x20','\x20\x20Auth','bold','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','pageSize','verbose','\x20\x20Package\x20Version:\x20','2297840foplka','\x20\x20Repair\x20project:\x20\x20\x20','\x20doctor','(missing)','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Global','packageVersion','name','7eskmPc','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Installed\x20Path:\x20\x20','yellow','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','global','message','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','inherit','length','project','serviceCode','3682260QiUcYj','\x20\x20skillDomain:\x20\x20\x20\x20\x20','\x20config\x20delete\x20inherit\x20--global','Project','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','accessKey','✓\x20Loaded','\x20commands)','gray','(not\x20found)','\x20config','region','(default)','1842582ietVSb','path','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','platform','2924680ofUokN','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','commandCount','call','\x20\x20Merged\x20Config','(no\x20file)','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','hasOwnProperty','projectConfig','\x20\x20Session\x20check:\x20\x20\x20','(default:\x20','\x20\x20Skill\x20Version:\x20\x20\x20','✓\x20Valid\x20JSON','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','empty','\x20\x20auth\x20(effective):\x20','appCode','(removed\x20—\x20cookie\x20auth\x20disabled)','395855VBuukr','reason','includes','\x20Imported\x20from:\x20','\x20\x20Config\x20Files','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'];a30_0x33f9=function(){return _0x596999;};return a30_0x33f9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a31_0x4588b1=a31_0x1504;(function(_0x27f6a3,_0x2f77ce){const _0x8c986=a31_0x1504,_0x2cc6a3=_0x27f6a3();while(!![]){try{const _0x28469a=-parseInt(_0x8c986(0x7e))/0x1*(-parseInt(_0x8c986(0x75))/0x2)+parseInt(_0x8c986(0x8c))/0x3*(-parseInt(_0x8c986(0x7b))/0x4)+-parseInt(_0x8c986(0x8e))/0x5*(-parseInt(_0x8c986(0x89))/0x6)+-parseInt(_0x8c986(0x73))/0x7+-parseInt(_0x8c986(0x77))/0x8*(-parseInt(_0x8c986(0x91))/0x9)+-parseInt(_0x8c986(0x80))/0xa*(parseInt(_0x8c986(0x83))/0xb)+-parseInt(_0x8c986(0x8a))/0xc;if(_0x28469a===_0x2f77ce)break;else _0x2cc6a3['push'](_0x2cc6a3['shift']());}catch(_0x2bb44b){_0x2cc6a3['push'](_0x2cc6a3['shift']());}}}(a31_0x4081,0x4e335));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';function a31_0x1504(_0x69d993,_0x5743ed){_0x69d993=_0x69d993-0x6d;const _0x4081ee=a31_0x4081();let _0x1504bb=_0x4081ee[_0x69d993];return _0x1504bb;}import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':a31_0x4588b1(0x78),'type':a31_0x4588b1(0x90),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':'filepath','type':a31_0x4588b1(0x90),'required':!![],'description':a31_0x4588b1(0x72)},DOWNLOAD_FLAG={'name':a31_0x4588b1(0x81),'type':a31_0x4588b1(0x7d),'description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':a31_0x4588b1(0x8d),'type':a31_0x4588b1(0x7d),'description':a31_0x4588b1(0x79)};function requireFilePath(_0x15c4a1){const _0xba9a23=a31_0x4588b1,_0x2bdc0b=_0x15c4a1[_0xba9a23(0x70)]();if(!_0x2bdc0b)throw CliErrors[_0xba9a23(0x6e)]('filePath\x20is\x20required.');return _0x2bdc0b;}const fileUpload={'service':a31_0x4588b1(0x78),'command':'upload','description':a31_0x4588b1(0x88),'risk':a31_0x4588b1(0x82),'flags':[FILE_FLAG],async 'dryRun'(_0x3c7b31){const _0x5c3f0d=a31_0x4588b1,_0x185927=requireRuntimeUploadFile(_0x3c7b31[_0x5c3f0d(0x85)](_0x5c3f0d(0x78)),_0x5c3f0d(0x84));return dryRun(_0x5c3f0d(0x6d),'/client/uploadFile')['body']({'appCode':_0x3c7b31[_0x5c3f0d(0x76)],'multipart':{'file':_0x185927}})[_0x5c3f0d(0x8b)](_0x5c3f0d(0x8f)+_0x185927[_0x5c3f0d(0x87)]+_0x5c3f0d(0x7a)+_0x3c7b31[_0x5c3f0d(0x76)])[_0x5c3f0d(0x6f)]();},async 'execute'(_0xea7369){const _0x51da80=a31_0x4588b1,_0x1dc0ad=requireRuntimeUploadFile(_0xea7369[_0x51da80(0x85)]('file'),'File'),_0x54c1fc=await uploadRuntimeFile(_0xea7369['appCode'],_0x1dc0ad[_0x51da80(0x87)]);return{'ok':!![],'data':_0x54c1fc,'message':_0x54c1fc['filePath']?_0x51da80(0x71)+_0x54c1fc['filePath']+_0x51da80(0x86):'Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'};}},fileQueryUrl={'service':a31_0x4588b1(0x78),'command':a31_0x4588b1(0x7c),'description':a31_0x4588b1(0x7f),'risk':'read','flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x56e8f5){const _0x3ff4ec=a31_0x4588b1,_0x5605c0=requireFilePath(_0x56e8f5[_0x3ff4ec(0x85)]('filepath')),_0x2a20e0=await queryRuntimeFileUrl(_0x5605c0,{'download':_0x56e8f5[_0x3ff4ec(0x74)]('download'),'longTerm':_0x56e8f5['bool'](_0x3ff4ec(0x8d))});return{'ok':!![],'data':_0x2a20e0};}};function a31_0x4081(){const _0x1dcc06=['Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','12GYlPhr','1502676irNnGH','description','80274aVuaGd','long-term','866555VwxiII','Preview:\x20upload\x20','string','9kQuvQd','POST','validation','build','trim','Uploaded\x20file:\x20','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','1090166CtBDPA','bool','79682qeBKSE','appCode','4262416qkIxjy','file','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','\x20to\x20runtime\x20app\x20','8KUmKJS','query-url','boolean','7ZYOhjc','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','10xfEMCx','download','read','5538775PGRUlx','File','str','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','path'];a31_0x4081=function(){return _0x1dcc06;};return a31_0x4081();}export const fileDefinitions=[fileUpload,fileQueryUrl];
|
package/lib/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a32_0x1a768e=a32_0x44a4;(function(_0x35a51b,_0xe85dd5){const _0x395d1e=a32_0x44a4,_0x38277d=_0x35a51b();while(!![]){try{const _0x1e147d=parseInt(_0x395d1e(0xab))/0x1+-parseInt(_0x395d1e(0x97))/0x2*(-parseInt(_0x395d1e(0x90))/0x3)+parseInt(_0x395d1e(0x85))/0x4*(parseInt(_0x395d1e(0x87))/0x5)+parseInt(_0x395d1e(0x91))/0x6+parseInt(_0x395d1e(0x8c))/0x7+-parseInt(_0x395d1e(0x88))/0x8*(-parseInt(_0x395d1e(0x8e))/0x9)+parseInt(_0x395d1e(0x9d))/0xa*(-parseInt(_0x395d1e(0x8d))/0xb);if(_0x1e147d===_0xe85dd5)break;else _0x38277d['push'](_0x38277d['shift']());}catch(_0x574171){_0x38277d['push'](_0x38277d['shift']());}}}(a32_0xbd99,0x452a4));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';function a32_0x44a4(_0x301b06,_0x3f2284){_0x301b06=_0x301b06-0x85;const _0xbd9997=a32_0xbd99();let _0x44a404=_0xbd9997[_0x301b06];return _0x44a404;}import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../context.js';import{PRODUCT_CONFIG}from'../constant/product.js';function a32_0xbd99(){const _0x435c29=['log','app','231335pVWVxi','join','string','\x20\x20appcode:\x20','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','entries','global','2062156kfqkqx','Write\x20to\x20global\x20(~/','5QEbAtF','29336jgLgTK','env','utf8','riskLevel','2031463XXeTgV','293249XyBJuv','1206sQOhnx',')\x20instead\x20of\x20project','9jMUMXj','23316BYUfGt','\x20\x20default:\x20','file','boolean','Invalid\x20env\x20\x22','Override\x20imported\x20default\x20appcode','73708OthTti','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','defaultApp','Failed\x20to\x20parse\x20source\x20file:\x20','apps','Skip\x20confirmation\x20when\x20overwriting','510YMmWYH','Imported\x20from\x20','\x22.\x20Allowed:\x20','includes','project','appcode','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','validation','yes','Provide\x20--appcode\x20<code>\x20or\x20use\x20an\x20upgraded\x20.rabetbase.json\x20with\x20top-level\x20appcode.\x20Legacy\x20files\x20must\x20be\x20upgraded\x20first\x20with\x20`rabetbase\x20project\x20upgrade`.','newConfigFileName','message'];a32_0xbd99=function(){return _0x435c29;};return a32_0xbd99();}export const appImportFlagDefs=[{'name':a32_0x1a768e(0x93),'type':a32_0x1a768e(0xad),'description':a32_0x1a768e(0x98),'required':!![]},{'name':a32_0x1a768e(0xa2),'type':'string','description':a32_0x1a768e(0x96)},{'name':a32_0x1a768e(0x89),'type':a32_0x1a768e(0xad),'description':'Override\x20imported\x20default\x20env','enum':[...RUNTIME_ENV_VALUES]},{'name':a32_0x1a768e(0xb1),'type':a32_0x1a768e(0x94),'description':a32_0x1a768e(0x86)+PRODUCT_CONFIG[a32_0x1a768e(0xa7)]+a32_0x1a768e(0x8f),'default':![]},{'name':'yes','type':a32_0x1a768e(0x94),'description':a32_0x1a768e(0x9c),'default':![]}];export async function runAppImport(_0x52f96e){const _0xa143e1=a32_0x1a768e,_0xaa3c2=_0x52f96e['global']?_0xa143e1(0xb1):_0xa143e1(0xa1),_0x5c359e=resolveWriteConfigPath(_0xaa3c2);await runFromImport(_0x52f96e,_0x5c359e);}async function runFromImport(_0x3e5dbb,_0x5be145){const _0x588449=a32_0x1a768e,_0x57f74c=resolveFilePath(_0x3e5dbb[_0x588449(0x93)]);if(!existsSync(_0x57f74c))throw CliErrors[_0x588449(0xa4)]('Source\x20file\x20not\x20found:\x20'+_0x57f74c);const _0x188f6f=readSourceFile(_0x57f74c),_0x42f4ad=convertToRuntimeConfig(_0x188f6f);_0x3e5dbb['appcode']&&(_0x42f4ad['appcode']=String(_0x3e5dbb['appcode']));_0x3e5dbb[_0x588449(0x89)]&&(_0x42f4ad[_0x588449(0x89)]=resolveImportEnv(_0x3e5dbb));if(!_0x42f4ad['appcode'])throw CliErrors[_0x588449(0xa4)](_0x588449(0xa3),_0x588449(0xa6));await writeImportConfig(_0x5be145,_0x42f4ad,_0x3e5dbb),console[_0x588449(0xa9)](_0x588449(0x9e)+_0x57f74c),console[_0x588449(0xa9)]('\x20\x20config:\x20\x20'+_0x5be145),console[_0x588449(0xa9)](_0x588449(0xae)+_0x42f4ad[_0x588449(0xa2)]);if(_0x42f4ad[_0x588449(0x99)])console[_0x588449(0xa9)](_0x588449(0x92)+_0x42f4ad[_0x588449(0x99)]);}function convertToRuntimeConfig(_0x1f305e){const _0x43b243=a32_0x1a768e;if(_0x1f305e[_0x43b243(0x9b)]&&typeof _0x1f305e[_0x43b243(0x9b)]==='object')throw CliErrors['validation'](_0x43b243(0xaf),'Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.');const _0x111e08={};for(const _0xd2aa6b of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x1f305e[_0xd2aa6b]!==undefined&&(_0x111e08[_0xd2aa6b]=_0x1f305e[_0xd2aa6b]);}return!_0x111e08['riskLevel']&&(_0x111e08[_0x43b243(0x8b)]=DEFAULT_CONFIG_VALUES['riskLevel']),_0x111e08;}async function writeImportConfig(_0x1a19a2,_0x9bee0c,_0x40f120){const _0x175ff9=a32_0x1a768e;let _0xf04fff={};existsSync(_0x1a19a2)&&!_0x40f120[_0x175ff9(0xa5)]&&(_0xf04fff=readConfigFile(_0x1a19a2));for(const [_0x372774,_0xe432ee]of Object[_0x175ff9(0xb0)](_0x9bee0c)){_0xe432ee!==undefined&&(_0xf04fff[_0x372774]=_0xe432ee);}if(_0xf04fff['app'])delete _0xf04fff[_0x175ff9(0xaa)];writeConfigFile(_0x1a19a2,_0xf04fff);}function resolveFilePath(_0x239b4f){return isAbsolute(_0x239b4f)?_0x239b4f:resolve(process['cwd'](),_0x239b4f);}function readSourceFile(_0x17f294){const _0x1833d7=a32_0x1a768e;try{const _0x4ee0ad=readFileSync(_0x17f294,{'encoding':_0x1833d7(0x8a)});return JSON['parse'](_0x4ee0ad);}catch(_0x4dbf39){throw CliErrors['validation'](_0x1833d7(0x9a)+_0x4dbf39[_0x1833d7(0xa8)]);}}function resolveImportEnv(_0xd0dd64){const _0x6129a1=a32_0x1a768e,_0x2da72b=_0xd0dd64['env'];if(_0x2da72b===undefined||_0x2da72b==='')return DEFAULT_CONFIG_VALUES[_0x6129a1(0x89)];if(!RUNTIME_ENV_VALUES[_0x6129a1(0xa0)](_0x2da72b))throw CliErrors[_0x6129a1(0xa4)](_0x6129a1(0x95)+_0x2da72b+_0x6129a1(0x9f)+RUNTIME_ENV_VALUES[_0x6129a1(0xac)](',\x20'));return _0x2da72b;}
|
package/lib/commands/kb/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a33_0x17be29=a33_0x586e;(function(_0x128f07,_0x227953){const _0x49d3e9=a33_0x586e,_0x1c318c=_0x128f07();while(!![]){try{const _0x1d889=-parseInt(_0x49d3e9(0x221))/0x1+-parseInt(_0x49d3e9(0x21f))/0x2*(parseInt(_0x49d3e9(0x20d))/0x3)+-parseInt(_0x49d3e9(0x1ff))/0x4+-parseInt(_0x49d3e9(0x226))/0x5+parseInt(_0x49d3e9(0x1f8))/0x6*(parseInt(_0x49d3e9(0x1fc))/0x7)+-parseInt(_0x49d3e9(0x217))/0x8*(parseInt(_0x49d3e9(0x204))/0x9)+-parseInt(_0x49d3e9(0x1e9))/0xa*(-parseInt(_0x49d3e9(0x1fe))/0xb);if(_0x1d889===_0x227953)break;else _0x1c318c['push'](_0x1c318c['shift']());}catch(_0x1c4233){_0x1c318c['push'](_0x1c318c['shift']());}}}(a33_0x52c3,0xcace6));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,searchKnowledgeBase,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';function a33_0x52c3(){const _0x7c387e=['4288010mKXzfX','map','weightedScore','content','update','string','isFile','flag','File\x20path\x20is\x20required.','POST','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','description','Search\x20query\x20is\x20required.','File\x20is\x20not\x20a\x20regular\x20file:\x20','search','1470zYTeOC','Created\x20KB\x20entry\x20','validation','detail','21665fsZROh','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','121voQxCp','1721912UDTVJV','title','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','query','File\x20not\x20found:\x20','54GSKphh','appCode','bool','/update','topk','Search\x20query\x20for\x20visible\x20company\x20and\x20personal\x20knowledge','str','isFinite','ragStatus','39684iajvlo','Personal\x20knowledge-base\x20entry\x20ID','body','num','scope','docId','trim','length','Personal\x20knowledge-base\x20entry\x20title','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','2060600jPHNOh','Updated\x20KB\x20entry\x20','score','build','verbose','read','/client/knowledge-base/personal/create','metadata','122zjFEmH','write','382333BtNuAX','updateTime','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','version','file','7396115VejzGE','create','Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.'];a33_0x52c3=function(){return _0x7c387e;};return a33_0x52c3();}const TITLE_FLAG={'name':a33_0x17be29(0x200),'type':a33_0x17be29(0x1ee),'required':!![],'description':a33_0x17be29(0x215)},FILE_FLAG={'name':a33_0x17be29(0x225),'type':a33_0x17be29(0x1ee),'required':!![],'description':'Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file'},QUERY_FLAG={'name':a33_0x17be29(0x202),'type':a33_0x17be29(0x1ee),'required':!![],'description':a33_0x17be29(0x209)},TOPK_FLAG={'name':'topk','type':'number','description':'Maximum\x20number\x20of\x20search\x20hits\x20to\x20return'};function readKnowledgeFile(_0x5366e6){const _0x38ecf9=a33_0x17be29;if(!_0x5366e6)throw CliErrors['validation'](_0x38ecf9(0x1f1));if(!existsSync(_0x5366e6))throw CliErrors[_0x38ecf9(0x1fa)](_0x38ecf9(0x203)+_0x5366e6);if(!statSync(_0x5366e6)[_0x38ecf9(0x1ef)]())throw CliErrors[_0x38ecf9(0x1fa)](_0x38ecf9(0x1f6)+_0x5366e6);return readFileSync(_0x5366e6,'utf8');}function a33_0x586e(_0x5ce356,_0x1270fe){_0x5ce356=_0x5ce356-0x1e8;const _0x52c3ae=a33_0x52c3();let _0x586e4a=_0x52c3ae[_0x5ce356];return _0x586e4a;}function summarizePersonalItem(_0x5a9afe){const _0x47b7ca=a33_0x17be29;return{'id':_0x5a9afe['id'],'title':_0x5a9afe['title'],'version':_0x5a9afe['version'],'ragStatus':_0x5a9afe[_0x47b7ca(0x20c)],'ragErrorMessage':_0x5a9afe['ragErrorMessage'],'updateTime':_0x5a9afe['updateTime']};}function detailPersonalItem(_0x13a5f1){const _0x2f2bcd=a33_0x17be29;return{'id':_0x13a5f1['id'],'appCode':_0x13a5f1[_0x2f2bcd(0x205)],'scope':_0x13a5f1[_0x2f2bcd(0x211)],'userId':_0x13a5f1['userId'],'title':_0x13a5f1['title'],'content':_0x13a5f1[_0x2f2bcd(0x1ec)]??'','version':_0x13a5f1[_0x2f2bcd(0x224)],'ragStatus':_0x13a5f1[_0x2f2bcd(0x20c)],'ragErrorMessage':_0x13a5f1['ragErrorMessage'],'createTime':_0x13a5f1['createTime'],'updateTime':_0x13a5f1[_0x2f2bcd(0x222)]};}function summarizeSearchHit(_0x1ca2fb){const _0x113970=a33_0x17be29;return{'scope':_0x1ca2fb[_0x113970(0x211)],'title':_0x1ca2fb['title'],'docId':_0x1ca2fb[_0x113970(0x212)],'score':_0x1ca2fb[_0x113970(0x219)],'weightedScore':_0x1ca2fb[_0x113970(0x1eb)],'content':_0x1ca2fb[_0x113970(0x1ec)],'metadata':_0x1ca2fb[_0x113970(0x21e)]};}function readTopK(_0x304a2e){const _0x417ba1=a33_0x17be29,_0x454b8d=_0x304a2e[_0x417ba1(0x1f0)](_0x417ba1(0x208));if(_0x454b8d===undefined||_0x454b8d===null||_0x454b8d==='')return undefined;const _0x481c83=_0x304a2e[_0x417ba1(0x210)](_0x417ba1(0x208));if(!Number[_0x417ba1(0x20b)](_0x481c83)||_0x481c83<0x1)throw CliErrors[_0x417ba1(0x1fa)]('--topk\x20must\x20be\x20a\x20positive\x20number.');return _0x481c83;}const kbList={'service':'kb','command':'list','description':a33_0x17be29(0x216),'risk':a33_0x17be29(0x21c),'flags':[VERBOSE_FLAG],async 'execute'(_0x53e01f){const _0x4eb784=a33_0x17be29,_0x1a095f=await listPersonalKnowledgeBaseItems(_0x53e01f['appCode']);if(_0x53e01f[_0x4eb784(0x206)](_0x4eb784(0x21b)))return{'ok':!![],'data':{'total':_0x1a095f[_0x4eb784(0x214)],'items':_0x1a095f}};return{'ok':!![],'data':{'total':_0x1a095f[_0x4eb784(0x214)],'items':_0x1a095f[_0x4eb784(0x1ea)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a33_0x17be29(0x1fb),'description':a33_0x17be29(0x201),'risk':a33_0x17be29(0x21c),'flags':[{...ID_FLAG,'description':a33_0x17be29(0x20e)}],async 'execute'(_0x5770fb){const _0x3ecd7e=a33_0x17be29,_0x85cc78=await getPersonalKnowledgeBaseItem(_0x5770fb[_0x3ecd7e(0x210)]('id'),_0x5770fb[_0x3ecd7e(0x205)]);return{'ok':!![],'data':detailPersonalItem(_0x85cc78)};}},kbCreate={'service':'kb','command':a33_0x17be29(0x227),'description':a33_0x17be29(0x223),'risk':a33_0x17be29(0x220),'confirmationDescription':'Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0xaf87aa){const _0x321920=a33_0x17be29,_0x397e02=_0xaf87aa[_0x321920(0x20a)](_0x321920(0x200)),_0x79a7b5=readKnowledgeFile(_0xaf87aa['str'](_0x321920(0x225))),_0x1ae731=await createPersonalKnowledgeBaseItem(_0xaf87aa[_0x321920(0x205)],{'title':_0x397e02,'content':_0x79a7b5});return{'ok':!![],'data':summarizePersonalItem(_0x1ae731),'message':_0x321920(0x1f9)+_0x1ae731['id']+'\x20('+_0x1ae731['title']+')'};},async 'dryRun'(_0x596b67){const _0x171d18=a33_0x17be29,_0x46080e=_0x596b67[_0x171d18(0x20a)](_0x171d18(0x200)),_0x294187=readKnowledgeFile(_0x596b67[_0x171d18(0x20a)](_0x171d18(0x225)));return dryRun(_0x171d18(0x1f2),_0x171d18(0x21d))[_0x171d18(0x20f)]({'appCode':_0x596b67[_0x171d18(0x205)],'title':_0x46080e,'content':_0x294187})[_0x171d18(0x1f4)](_0x171d18(0x1fd)+_0x46080e+'\x22')[_0x171d18(0x21a)]();}},kbUpdate={'service':'kb','command':a33_0x17be29(0x1ed),'description':a33_0x17be29(0x1f3),'risk':'write','confirmationDescription':a33_0x17be29(0x1e8),'flags':[{...ID_FLAG,'description':'Personal\x20knowledge-base\x20entry\x20ID'},{...TITLE_FLAG,'required':![],'description':'Override\x20the\x20existing\x20entry\x20title'},FILE_FLAG],async 'execute'(_0x2ff01b){const _0x4dcf97=a33_0x17be29,_0x4a6c44=_0x2ff01b['num']('id'),_0x2c668d=readKnowledgeFile(_0x2ff01b[_0x4dcf97(0x20a)]('file')),_0x454959=_0x2ff01b[_0x4dcf97(0x20a)](_0x4dcf97(0x200))||(await getPersonalKnowledgeBaseItem(_0x4a6c44,_0x2ff01b['appCode']))[_0x4dcf97(0x200)],_0x3b4c55=await updatePersonalKnowledgeBaseItem(_0x4a6c44,_0x2ff01b[_0x4dcf97(0x205)],{'title':_0x454959,'content':_0x2c668d});return{'ok':!![],'data':summarizePersonalItem(_0x3b4c55),'message':_0x4dcf97(0x218)+_0x3b4c55['id']+'\x20('+_0x3b4c55[_0x4dcf97(0x200)]+')'};},async 'dryRun'(_0x2e8251){const _0xd11a44=a33_0x17be29,_0x420e9d=_0x2e8251[_0xd11a44(0x210)]('id'),_0x2a6600=readKnowledgeFile(_0x2e8251['str'](_0xd11a44(0x225))),_0x5c1485=_0x2e8251[_0xd11a44(0x20a)]('title')||(await getPersonalKnowledgeBaseItem(_0x420e9d,_0x2e8251['appCode']))[_0xd11a44(0x200)];return dryRun(_0xd11a44(0x1f2),'/client/knowledge-base/personal/'+_0x420e9d+_0xd11a44(0x207))['body']({'appCode':_0x2e8251[_0xd11a44(0x205)],'title':_0x5c1485,'content':_0x2a6600})[_0xd11a44(0x1f4)]('Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20'+_0x420e9d)[_0xd11a44(0x21a)]();}},kbSearch={'service':'kb','command':a33_0x17be29(0x1f7),'description':'Search\x20visible\x20company\x20and\x20personal\x20knowledge\x20base\x20content','risk':a33_0x17be29(0x21c),'flags':[QUERY_FLAG,TOPK_FLAG],async 'validate'(_0xbc585d){const _0x502540=a33_0x17be29;if(!_0xbc585d[_0x502540(0x20a)](_0x502540(0x202))['trim']())throw CliErrors[_0x502540(0x1fa)](_0x502540(0x1f5));readTopK(_0xbc585d);},async 'execute'(_0x20b08f){const _0x37eb5f=a33_0x17be29,_0x113390=_0x20b08f[_0x37eb5f(0x20a)](_0x37eb5f(0x202))[_0x37eb5f(0x213)](),_0x46e98e=readTopK(_0x20b08f),_0xe7bae5=await searchKnowledgeBase(_0x20b08f[_0x37eb5f(0x205)],{'query':_0x113390,'topK':_0x46e98e});return{'ok':!![],'data':{'total':_0xe7bae5[_0x37eb5f(0x214)],'hits':_0xe7bae5[_0x37eb5f(0x1ea)](summarizeSearchHit)}};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a34_0x11ab(_0x3fc045,_0x46775f){_0x3fc045=_0x3fc045-0x1a1;const _0x262530=a34_0x2625();let _0x11abda=_0x262530[_0x3fc045];return _0x11abda;}function a34_0x2625(){const _0x34603a=['\x20\x20\x20Duration:\x20','81350aRrosk','toLocaleString','timestamp','command','\x20\x20\x20Time:\x20','forEach','548frOsUO','106VSlPMy','level','duration','readLogs','details','length','error','68iqdLxs','4873074sHdhot','stringify','5LIBAUN','891hSTAdo','64416ZYaebd','message','log','\x20logs:\x0a','read','3418263MatXWp','\x20\x20\x20Details:\x20','24yXYKpo','*\x20No\x20logs\x20found','98xpyVek','View\x20command\x20history\x20logs','keys','success','23336tebYEj','2850081reqqrB','warn'];a34_0x2625=function(){return _0x34603a;};return a34_0x2625();}const a34_0x535aeb=a34_0x11ab;(function(_0x3e60d6,_0x26832a){const _0x366662=a34_0x11ab,_0x2dc940=_0x3e60d6();while(!![]){try{const _0xe0b6c5=-parseInt(_0x366662(0x1c2))/0x1*(parseInt(_0x366662(0x1c1))/0x2)+-parseInt(_0x366662(0x1aa))/0x3*(-parseInt(_0x366662(0x1a5))/0x4)+parseInt(_0x366662(0x1a8))/0x5*(parseInt(_0x366662(0x1a6))/0x6)+-parseInt(_0x366662(0x1b3))/0x7*(-parseInt(_0x366662(0x1b7))/0x8)+-parseInt(_0x366662(0x1af))/0x9+-parseInt(_0x366662(0x1bb))/0xa*(parseInt(_0x366662(0x1a9))/0xb)+-parseInt(_0x366662(0x1b1))/0xc*(-parseInt(_0x366662(0x1b8))/0xd);if(_0xe0b6c5===_0x26832a)break;else _0x2dc940['push'](_0x2dc940['shift']());}catch(_0x230907){_0x2dc940['push'](_0x2dc940['shift']());}}}(a34_0x2625,0x8fbb9));import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function printLogs(_0xf77d87){const _0xe646c7=a34_0x11ab;if(_0xf77d87[_0xe646c7(0x1a3)]===0x0){console[_0xe646c7(0x1ac)](_0xe646c7(0x1b2));return;}console['log']('*\x20'+CLI_DISPLAY_NAME+_0xe646c7(0x1ad)),_0xf77d87[_0xe646c7(0x1c0)]((_0x3585ce,_0x27ab70)=>{const _0x5e0227=_0xe646c7,_0x477c9e=new Date(_0x3585ce[_0x5e0227(0x1bd)])[_0x5e0227(0x1bc)]('en-US'),_0x2d6255=_0x3585ce[_0x5e0227(0x1c3)]===_0x5e0227(0x1b6)?'√':_0x3585ce[_0x5e0227(0x1c3)]===_0x5e0227(0x1a4)?'×':_0x3585ce[_0x5e0227(0x1c3)]===_0x5e0227(0x1b9)?'!':'i';console[_0x5e0227(0x1ac)](_0x27ab70+0x1+'.\x20'+_0x2d6255+'\x20['+_0x3585ce[_0x5e0227(0x1be)]+']\x20'+_0x3585ce[_0x5e0227(0x1ab)]),console[_0x5e0227(0x1ac)](_0x5e0227(0x1bf)+_0x477c9e),_0x3585ce[_0x5e0227(0x1c4)]&&console[_0x5e0227(0x1ac)](_0x5e0227(0x1ba)+_0x3585ce['duration']+'ms'),_0x3585ce[_0x5e0227(0x1a2)]&&Object[_0x5e0227(0x1b5)](_0x3585ce[_0x5e0227(0x1a2)])['length']>0x0&&console[_0x5e0227(0x1ac)](_0x5e0227(0x1b0)+JSON[_0x5e0227(0x1a7)](_0x3585ce[_0x5e0227(0x1a2)],null,0x2)),console[_0x5e0227(0x1ac)]('');});}export const logsDefinitions=[{'service':'logs','command':'show','description':a34_0x535aeb(0x1b4),'risk':a34_0x535aeb(0x1ae),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x132cf2){const _0x5559fc=a34_0x535aeb;return printLogs(logger[_0x5559fc(0x1a1)]()),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a35_0x3439(){const _0x5aa122=['map','Notification\x20channel\x20type','6uncHiJ','24435IzfLCA','length','12anIKBB','530076Debbeg','read','7947533vsabWA','Found\x20','5114410TduoBq','9huuKAZ','notification','EMAIL','type','appCode','string','11296ITjQDA','645307ZjaYak','312357wMWCPj','12DQToAo','973avZaLw'];a35_0x3439=function(){return _0x5aa122;};return a35_0x3439();}function a35_0x5862(_0x27bca6,_0x4320db){_0x27bca6=_0x27bca6-0x122;const _0x34392e=a35_0x3439();let _0x586209=_0x34392e[_0x27bca6];return _0x586209;}const a35_0x2342e6=a35_0x5862;(function(_0xd147ff,_0x5712ed){const _0x57bce4=a35_0x5862,_0x30b322=_0xd147ff();while(!![]){try{const _0x2d9a0e=-parseInt(_0x57bce4(0x126))/0x1+parseInt(_0x57bce4(0x130))/0x2+-parseInt(_0x57bce4(0x127))/0x3*(parseInt(_0x57bce4(0x12f))/0x4)+-parseInt(_0x57bce4(0x12d))/0x5*(parseInt(_0x57bce4(0x12c))/0x6)+-parseInt(_0x57bce4(0x129))/0x7*(parseInt(_0x57bce4(0x125))/0x8)+parseInt(_0x57bce4(0x135))/0x9*(parseInt(_0x57bce4(0x134))/0xa)+-parseInt(_0x57bce4(0x132))/0xb*(-parseInt(_0x57bce4(0x128))/0xc);if(_0x2d9a0e===_0x5712ed)break;else _0x30b322['push'](_0x30b322['shift']());}catch(_0x5741a1){_0x30b322['push'](_0x30b322['shift']());}}}(a35_0x3439,0x530c3));import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a35_0x2342e6(0x136),'command':'config-list','description':'List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','risk':a35_0x2342e6(0x131),'flags':[{'name':a35_0x2342e6(0x122),'type':a35_0x2342e6(0x124),'description':a35_0x2342e6(0x12b),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a35_0x2342e6(0x137)}],async 'validate'(_0x468a53){readNotificationChannelType(_0x468a53);},async 'execute'(_0x366008){const _0x59b8e0=a35_0x2342e6,_0x51b4a9=readNotificationChannelType(_0x366008),_0x11b74b=await listNotificationChannelConfigs(_0x366008[_0x59b8e0(0x123)],_0x51b4a9),_0x534b43=_0x11b74b[_0x59b8e0(0x12a)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x366008[_0x59b8e0(0x123)],'channelType':_0x51b4a9,'count':_0x534b43[_0x59b8e0(0x12e)],'configs':_0x534b43},'message':_0x59b8e0(0x133)+_0x534b43[_0x59b8e0(0x12e)]+'\x20'+_0x51b4a9+'\x20notification\x20config(s)'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xf9cf71,_0x1a4f32){const _0x5cee73=a36_0x37a3,_0x4b0a00=_0xf9cf71();while(!![]){try{const _0x1a78f7=-parseInt(_0x5cee73(0x111))/0x1+-parseInt(_0x5cee73(0x11a))/0x2+parseInt(_0x5cee73(0x118))/0x3*(parseInt(_0x5cee73(0x117))/0x4)+-parseInt(_0x5cee73(0x114))/0x5*(-parseInt(_0x5cee73(0x119))/0x6)+-parseInt(_0x5cee73(0x116))/0x7+parseInt(_0x5cee73(0x115))/0x8+parseInt(_0x5cee73(0x112))/0x9*(-parseInt(_0x5cee73(0x113))/0xa);if(_0x1a78f7===_0x1a4f32)break;else _0x4b0a00['push'](_0x4b0a00['shift']());}catch(_0x54e404){_0x4b0a00['push'](_0x4b0a00['shift']());}}}(a36_0x2a02,0x5c1ea));import{notificationConfigList}from'../../commands/notification/config-list.js';function a36_0x37a3(_0x4e2609,_0x146d60){_0x4e2609=_0x4e2609-0x111;const _0x2a027a=a36_0x2a02();let _0x37a3c9=_0x2a027a[_0x4e2609];return _0x37a3c9;}function a36_0x2a02(){const _0x521ed2=['3259985zykXZZ','4887864tUznnd','3622192WDkSIn','8ITIJJX','1044573NOmeoZ','6onGJre','1111104JhSRQn','175083OjIznE','273231mkhCBT','110UHnWaI'];a36_0x2a02=function(){return _0x521ed2;};return a36_0x2a02();}export const notificationDefinitions=[notificationConfigList];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a37_0x5613e4=a37_0x1447;function a37_0x1cd1(){const _0x4e0f0c=['join','Allowed\x20values:\x20','EMAIL','WECOM','trim','1291032HODfZx','1845114ZTHjPi','configCode','1022877iiLenX','35YLHBLW','includes','314qaKKto','Invalid\x20--type:\x20','6znfqtW','1151336jnilGE','string','4233tGvdyb','validation','35504916wOrfak','test','70CjtWlA','str','\x20has\x20invalid\x20field\x20\x22id\x22.','type','Invalid\x20notification\x20config\x20response.','11LkNjlo','3257365FpJRcU','description','number','DINGTALK','Item\x20','apiError','\x20is\x20missing\x20required\x20field\x20\x22','createTime','configName','channelType','\x20must\x20be\x20an\x20object.'];a37_0x1cd1=function(){return _0x4e0f0c;};return a37_0x1cd1();}(function(_0x65b147,_0x265306){const _0x3d9a71=a37_0x1447,_0x3c5d4a=_0x65b147();while(!![]){try{const _0x2bd100=-parseInt(_0x3d9a71(0xa5))/0x1*(parseInt(_0x3d9a71(0xa0))/0x2)+parseInt(_0x3d9a71(0x9b))/0x3+-parseInt(_0x3d9a71(0x9a))/0x4+-parseInt(_0x3d9a71(0xaf))/0x5*(parseInt(_0x3d9a71(0xa2))/0x6)+parseInt(_0x3d9a71(0x9e))/0x7*(-parseInt(_0x3d9a71(0xa3))/0x8)+parseInt(_0x3d9a71(0x9d))/0x9*(-parseInt(_0x3d9a71(0xa9))/0xa)+-parseInt(_0x3d9a71(0xae))/0xb*(-parseInt(_0x3d9a71(0xa7))/0xc);if(_0x2bd100===_0x265306)break;else _0x3c5d4a['push'](_0x3c5d4a['shift']());}catch(_0x477ddc){_0x3c5d4a['push'](_0x3c5d4a['shift']());}}}(a37_0x1cd1,0x667e5));import{CliErrors}from'../../errors.js';function a37_0x1447(_0x26ab7c,_0x245c97){_0x26ab7c=_0x26ab7c-0x94;const _0x1cd14b=a37_0x1cd1();let _0x144762=_0x1cd14b[_0x26ab7c];return _0x144762;}export const NOTIFICATION_CHANNEL_TYPES=[a37_0x5613e4(0x97),'FEISHU',a37_0x5613e4(0xb2),a37_0x5613e4(0x98),'WEBHOOK'];export function readNotificationChannelType(_0xdbc4fd){const _0x9706b3=a37_0x5613e4,_0x4a5a0a=_0xdbc4fd[_0x9706b3(0xaa)](_0x9706b3(0xac))['trim']()||_0x9706b3(0x97);if(!NOTIFICATION_CHANNEL_TYPES[_0x9706b3(0x9f)](_0x4a5a0a))throw CliErrors[_0x9706b3(0xa6)](_0x9706b3(0xa1)+_0x4a5a0a,_0x9706b3(0x96)+NOTIFICATION_CHANNEL_TYPES[_0x9706b3(0x95)](',\x20')+'.');return _0x4a5a0a;}export function projectNotificationListConfig(_0x5438b3,_0x27fa58){const _0x1a663e=a37_0x5613e4,_0x5aff1a=requireResponseObject(_0x5438b3,_0x27fa58);return{'id':normalizeNullableId(_0x5aff1a['id'],_0x27fa58),'configCode':requireResponseString(_0x5aff1a[_0x1a663e(0x9c)],'configCode',_0x27fa58),'configName':requireResponseString(_0x5aff1a[_0x1a663e(0xb7)],_0x1a663e(0xb7),_0x27fa58),'channelType':requireResponseString(_0x5aff1a[_0x1a663e(0xb8)],_0x1a663e(0xb8),_0x27fa58),'description':normalizeNullableString(_0x5aff1a[_0x1a663e(0xb0)]),'createTime':normalizeNullableString(_0x5aff1a[_0x1a663e(0xb6)]),'updateTime':normalizeNullableString(_0x5aff1a['updateTime'])};}function requireResponseObject(_0x45545f,_0x3bd16a){const _0x561edd=a37_0x5613e4;if(typeof _0x45545f!=='object'||_0x45545f===null||Array['isArray'](_0x45545f))throw CliErrors[_0x561edd(0xb4)](_0x561edd(0xad),_0x561edd(0xb3)+(_0x3bd16a+0x1)+_0x561edd(0x94));return _0x45545f;}function requireResponseString(_0x37d3bc,_0x1e0601,_0x3b72a1){const _0x7a7171=a37_0x5613e4;if(typeof _0x37d3bc!==_0x7a7171(0xa4)||!_0x37d3bc['trim']())throw CliErrors['apiError'](_0x7a7171(0xad),_0x7a7171(0xb3)+(_0x3b72a1+0x1)+_0x7a7171(0xb5)+_0x1e0601+'\x22.');return _0x37d3bc[_0x7a7171(0x99)]();}function normalizeNullableString(_0x596e38){const _0x4e9f28=a37_0x5613e4;return typeof _0x596e38===_0x4e9f28(0xa4)&&_0x596e38[_0x4e9f28(0x99)]()?_0x596e38['trim']():null;}function normalizeNullableId(_0x5f3f15,_0x28f5c5){const _0x1b0244=a37_0x5613e4;if(_0x5f3f15===undefined||_0x5f3f15===null)return null;if(typeof _0x5f3f15===_0x1b0244(0xb1)&&Number['isSafeInteger'](_0x5f3f15))return _0x5f3f15;if(typeof _0x5f3f15==='string'&&/^-?\d+$/[_0x1b0244(0xa8)](_0x5f3f15[_0x1b0244(0x99)]()))return _0x5f3f15[_0x1b0244(0x99)]();throw CliErrors['apiError']('Invalid\x20notification\x20config\x20response.',_0x1b0244(0xb3)+(_0x28f5c5+0x1)+_0x1b0244(0xab));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a38_0x40e79c=a38_0x30eb;function a38_0x30eb(_0x2119e3,_0x2ca07e){_0x2119e3=_0x2119e3-0x1ef;const _0x5ace34=a38_0x5ace();let _0x30eb84=_0x5ace34[_0x2119e3];return _0x30eb84;}(function(_0x118770,_0x49c259){const _0x25ddcc=a38_0x30eb,_0x5afeb9=_0x118770();while(!![]){try{const _0x3b99c6=-parseInt(_0x25ddcc(0x20e))/0x1+parseInt(_0x25ddcc(0x207))/0x2+-parseInt(_0x25ddcc(0x201))/0x3+parseInt(_0x25ddcc(0x223))/0x4*(-parseInt(_0x25ddcc(0x21d))/0x5)+-parseInt(_0x25ddcc(0x212))/0x6*(-parseInt(_0x25ddcc(0x205))/0x7)+parseInt(_0x25ddcc(0x204))/0x8+parseInt(_0x25ddcc(0x202))/0x9;if(_0x3b99c6===_0x49c259)break;else _0x5afeb9['push'](_0x5afeb9['shift']());}catch(_0x5ed5f6){_0x5afeb9['push'](_0x5afeb9['shift']());}}}(a38_0x5ace,0x471d6));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,recognizeRuntimeOcr,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const SUPPORTED_SCENES=[a38_0x40e79c(0x216),a38_0x40e79c(0x1fa),'form',a38_0x40e79c(0x1ef)],SCENE_TO_LEGACY_TYPE={'invoice':a38_0x40e79c(0x206),'general':a38_0x40e79c(0x220),'form':a38_0x40e79c(0x1f5),'idCard':a38_0x40e79c(0x20d)},SCENE_FLAG={'name':a38_0x40e79c(0x200),'type':'string','required':!![],'enum':[...SUPPORTED_SCENES],'description':a38_0x40e79c(0x218)},IMAGE_FILE_FLAG={'name':'image-file','type':a38_0x40e79c(0x209),'description':a38_0x40e79c(0x20b)},IMAGE_URL_FLAG={'name':'image-url','type':a38_0x40e79c(0x209),'description':'Publicly\x20accessible\x20image\x20or\x20file\x20URL'};function a38_0x5ace(){const _0x392599=['build','Table','appCode','File\x20upload\x20response\x20missing\x20filePath.','imageFile','/client/ocr','general','description','ocr','count','.\x20Supported\x20scenes:\x20','filePath','scene','1537407SQAcIS','4993254DcIWZv','/client/queryFileUrl','1846888VGtLBF','272244jlnvQa','Invoice','976458wAuzKV','fileName','string','path','Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','<filePath\x20returned\x20by\x20/client/uploadFile>','IdCard','81349BebDpa','join','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','POST','6tvIhjz','str','imageUrl','form','invoice','Preview:\x20recognize\x20','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','File\x20URL\x20response\x20missing\x20fileUrl.','trim','/client/uploadFile','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','20yzqcaT','<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','toLowerCase','General','\x20OCR\x20from\x20URL','\x20OCR','427684sdOSkf','idCard','Unsupported\x20OCR\x20scene:\x20','validation','body','image-file'];a38_0x5ace=function(){return _0x392599;};return a38_0x5ace();}function normalizeScene(_0x283e78){const _0x2d8cdf=a38_0x40e79c,_0x3e9022=_0x283e78['trim']()[_0x2d8cdf(0x21f)]();if(_0x3e9022==='idcard')return _0x2d8cdf(0x1ef);if(_0x3e9022===_0x2d8cdf(0x216)||_0x3e9022===_0x2d8cdf(0x1fa)||_0x3e9022===_0x2d8cdf(0x215))return _0x3e9022;throw CliErrors['validation'](_0x2d8cdf(0x1f0)+_0x283e78+_0x2d8cdf(0x1fe)+SUPPORTED_SCENES[_0x2d8cdf(0x20f)](',\x20'));}function selectedInputs(_0x55c52a){const _0xc42704=a38_0x40e79c,_0x547e05=_0x55c52a[_0xc42704(0x213)](_0xc42704(0x1f3))[_0xc42704(0x21a)](),_0x3e4187=_0x55c52a['str']('image-url')[_0xc42704(0x21a)]();return{'imageFile':_0x547e05,'imageUrl':_0x3e4187,'count':[_0x547e05,_0x3e4187]['filter'](Boolean)['length']};}function validateInputSelection(_0x23d6db){const _0x454010=a38_0x40e79c,_0x434443=selectedInputs(_0x23d6db);if(_0x434443[_0x454010(0x1fd)]!==0x1)throw CliErrors[_0x454010(0x1f1)](_0x454010(0x21c));return _0x434443;}function withScene(_0x5f558a,_0x1172e3,_0x1abf3a){const _0x375ac9=a38_0x40e79c;return{..._0x5f558a,'scene':_0x1172e3,..._0x1abf3a?{'sourceFile':{'fileName':_0x1abf3a[_0x375ac9(0x208)],'filePath':_0x1abf3a[_0x375ac9(0x1ff)]}}:{}};}const ocrRecognize={'service':a38_0x40e79c(0x1fc),'command':'recognize','description':'Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','risk':'read','flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x32dbaa){const _0x3a1188=a38_0x40e79c,_0x2e4770=normalizeScene(_0x32dbaa[_0x3a1188(0x213)](_0x3a1188(0x200))),_0x4acf17=SCENE_TO_LEGACY_TYPE[_0x2e4770],_0x14b1fe=validateInputSelection(_0x32dbaa);if(_0x14b1fe[_0x3a1188(0x214)])return dryRun(_0x3a1188(0x211),_0x3a1188(0x1f9))[_0x3a1188(0x1f2)]({'appCode':_0x32dbaa['appCode'],'url':_0x14b1fe[_0x3a1188(0x214)],'type':_0x4acf17})[_0x3a1188(0x1fb)](_0x3a1188(0x217)+_0x2e4770+_0x3a1188(0x221))[_0x3a1188(0x1f4)]();const _0x3c1579=requireRuntimeUploadFile(_0x14b1fe[_0x3a1188(0x1f8)],_0x3a1188(0x1f3));return dryRun(_0x3a1188(0x211),_0x3a1188(0x21b))[_0x3a1188(0x1f2)]({'steps':[{'method':_0x3a1188(0x211),'url':'/client/uploadFile','body':{'appCode':_0x32dbaa[_0x3a1188(0x1f6)],'multipart':{'file':_0x3c1579}}},{'method':_0x3a1188(0x211),'url':_0x3a1188(0x203),'body':{'filePath':_0x3a1188(0x20c),'downloadFlag':![]}},{'method':_0x3a1188(0x211),'url':_0x3a1188(0x1f9),'body':{'appCode':_0x32dbaa['appCode'],'url':_0x3a1188(0x21e),'type':_0x4acf17}}]})[_0x3a1188(0x1fb)](_0x3a1188(0x210)+_0x2e4770+_0x3a1188(0x222))[_0x3a1188(0x1f4)]();},async 'execute'(_0x569765){const _0x3391f3=a38_0x40e79c,_0x3943b6=normalizeScene(_0x569765[_0x3391f3(0x213)](_0x3391f3(0x200))),_0x20cc27=SCENE_TO_LEGACY_TYPE[_0x3943b6],_0x1d126a=validateInputSelection(_0x569765);if(_0x1d126a[_0x3391f3(0x214)]){const _0x2a57ce=await recognizeRuntimeOcr(_0x569765[_0x3391f3(0x1f6)],{'url':_0x1d126a[_0x3391f3(0x214)],'type':_0x20cc27});return{'ok':!![],'data':withScene(_0x2a57ce,_0x3943b6)};}const _0x566235=requireRuntimeUploadFile(_0x1d126a[_0x3391f3(0x1f8)],_0x3391f3(0x1f3)),_0x5a255a=await uploadRuntimeFile(_0x569765['appCode'],_0x566235[_0x3391f3(0x20a)]);if(!_0x5a255a[_0x3391f3(0x1ff)])throw CliErrors['apiError'](_0x3391f3(0x1f7));const _0x21aeb2=await queryRuntimeFileUrl(_0x5a255a[_0x3391f3(0x1ff)],{'download':![]});if(!_0x21aeb2['fileUrl'])throw CliErrors['apiError'](_0x3391f3(0x219));const _0x4acef7=await recognizeRuntimeOcr(_0x569765['appCode'],{'url':_0x21aeb2['fileUrl'],'type':_0x20cc27});return{'ok':!![],'data':withScene(_0x4acef7,_0x3943b6,_0x5a255a)};}};export const ocrDefinitions=[ocrRecognize];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a39_0x2386e6=a39_0x5d8b;(function(_0xe3b7e0,_0x3ff522){const _0x2099bb=a39_0x5d8b,_0x3faa04=_0xe3b7e0();while(!![]){try{const _0x2a6761=-parseInt(_0x2099bb(0x77))/0x1*(parseInt(_0x2099bb(0x7c))/0x2)+-parseInt(_0x2099bb(0x7b))/0x3*(parseInt(_0x2099bb(0x86))/0x4)+-parseInt(_0x2099bb(0x7a))/0x5+parseInt(_0x2099bb(0x7f))/0x6*(-parseInt(_0x2099bb(0x83))/0x7)+parseInt(_0x2099bb(0x80))/0x8*(parseInt(_0x2099bb(0x76))/0x9)+-parseInt(_0x2099bb(0x87))/0xa*(parseInt(_0x2099bb(0x72))/0xb)+parseInt(_0x2099bb(0x74))/0xc;if(_0x2a6761===_0x3ff522)break;else _0x3faa04['push'](_0x3faa04['shift']());}catch(_0x32e59c){_0x3faa04['push'](_0x3faa04['shift']());}}}(a39_0x1e31,0xe825a));function a39_0x1e31(){const _0x25c808=['read','8127820FFNwdS','3FXNGxa','945300shXyvu','roleName','runtime','6AcKZAM','8XthUeZ','Show\x20runtime\x20dataset\x20permissions,\x20optionally\x20evaluated\x20for\x20one\x20role','role','9717358goJgHB','appCode','dataset-get','6022104wxWwwN','13583370IipOoH','str','Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name','11EscNKU','permit','80565684QBhuML','string','5286042yPjxkN','1rfdYEr','trim'];a39_0x1e31=function(){return _0x25c808;};return a39_0x1e31();}import{listRuntimeDatasetPermits,listRuntimeDatasetRolePermits}from'../../core/api-client.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';function a39_0x5d8b(_0x3538d2,_0xf76375){_0x3538d2=_0x3538d2-0x72;const _0x1e31d4=a39_0x1e31();let _0x5d8b78=_0x1e31d4[_0x3538d2];return _0x5d8b78;}export const permitDatasetGet={'service':a39_0x2386e6(0x73),'command':a39_0x2386e6(0x85),'description':a39_0x2386e6(0x81),'risk':a39_0x2386e6(0x79),'flags':[{'name':a39_0x2386e6(0x82),'type':a39_0x2386e6(0x75),'description':a39_0x2386e6(0x89)}],async 'execute'(_0x12301c){const _0x329bb9=a39_0x2386e6,_0x1fa6ad=_0x12301c[_0x329bb9(0x88)](_0x329bb9(0x82))[_0x329bb9(0x78)]();if(!_0x1fa6ad)return{'ok':!![],'data':{'scope':_0x329bb9(0x7e),'datasets':await listRuntimeDatasetRolePermits(_0x12301c[_0x329bb9(0x84)])}};const _0x3474a4=await resolveRuntimeRoleRef(_0x12301c['appCode'],_0x1fa6ad);return{'ok':!![],'data':{'scope':_0x329bb9(0x7e),'role':{'id':_0x3474a4['id'],'roleName':_0x3474a4[_0x329bb9(0x7d)],'roleType':_0x3474a4['roleType']},'datasets':await listRuntimeDatasetPermits(_0x12301c['appCode'],_0x3474a4['id'])}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a40_0x4e7265=a40_0x16a0;(function(_0x43a38e,_0x38c31a){const _0x2b4181=a40_0x16a0,_0x208512=_0x43a38e();while(!![]){try{const _0x5141b9=parseInt(_0x2b4181(0x1b4))/0x1*(parseInt(_0x2b4181(0x1b0))/0x2)+parseInt(_0x2b4181(0x1ac))/0x3*(-parseInt(_0x2b4181(0x185))/0x4)+-parseInt(_0x2b4181(0x188))/0x5*(parseInt(_0x2b4181(0x17f))/0x6)+parseInt(_0x2b4181(0x1b2))/0x7+parseInt(_0x2b4181(0x1af))/0x8+parseInt(_0x2b4181(0x18f))/0x9*(parseInt(_0x2b4181(0x1a8))/0xa)+-parseInt(_0x2b4181(0x1a9))/0xb;if(_0x5141b9===_0x38c31a)break;else _0x208512['push'](_0x208512['shift']());}catch(_0x5e3fad){_0x208512['push'](_0x208512['shift']());}}}(a40_0x2533,0x79d47));function a40_0x2533(){const _0x180045=['\x20does\x20not\x20expose\x20','map','Comma-separated\x20actions:\x20','Preview:\x20','high-risk-write','permitList','actions','\x20selected\x20runtime\x20dataset\x20actions','--datasets','Comma-separated\x20runtime\x20dataset\x20codes','--actions','220146KYFEMU','role','includes','\x20was\x20not\x20found.','permitId','dataset-','109604XqhyoI','\x20for\x20role\x20','DATA_EXPORT','15znyQiY','length','permit','/client/permit/resource/batch-save-dataset','dataset-set','Grants\x20or\x20revokes\x20the\x20target\x20role\x20permission\x20for\x20the\x20given\x20dataset\x20actions.\x20Data\x20operations\x20for\x20users\x20in\x20that\x20role\x20will\x20change.','Invalid\x20dataset\x20actions:\x20','9RhTIfq','roles','appCode','warnings','join','find','DATA_DETAIL','rolePermit','description','POST','bool','changed','resourceType','dataPermitList','body','push','Runtime\x20dataset\x20','operation','DATA_CREATE','datasetCode','filter','datasets','revoke','build','DATA_DELETE','4376120goWySB','1993354MSCuIJ','before','validation','45jXFkEg','str','\x20already\x20reflects\x20','3375712KeRBrv','2PmthlO','resourceName','1359085LICMEm','Dataset\x20','147586cSSffc'];a40_0x2533=function(){return _0x180045;};return a40_0x2533();}import{listRuntimeDatasetRolePermits,listRuntimePermitRoles,saveRuntimeDatasetRolePermits}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';import{applyRuntimeRolePermission,assertGrantOrRevoke,assertRuntimePermissionManager,assertRuntimePermitRoleConfigurable,GRANT_FLAG,REVOKE_FLAG,ROLE_REF_FLAG,runtimePermitWriteResult,splitRefs}from'../../commands/permit/shared.js';function a40_0x16a0(_0x42b396,_0x522ccb){_0x42b396=_0x42b396-0x17a;const _0x2533d3=a40_0x2533();let _0x16a061=_0x2533d3[_0x42b396];return _0x16a061;}const DATA_ACTIONS=[a40_0x4e7265(0x1a1),'DATA_UPDATE',a40_0x4e7265(0x1a7),a40_0x4e7265(0x195),a40_0x4e7265(0x187),'DATA_ROW'],DATASETS_FLAG={'name':a40_0x4e7265(0x1a4),'type':'string','required':!![],'description':a40_0x4e7265(0x17d)},ACTIONS_FLAG={'name':'actions','type':'string','required':!![],'description':a40_0x4e7265(0x1b7)+DATA_ACTIONS[a40_0x4e7265(0x193)](',\x20')};async function prepare(_0x5cd404){const _0x4526ea=a40_0x4e7265;await assertRuntimePermissionManager(_0x5cd404['appCode']);const _0x3f8107=assertGrantOrRevoke(_0x5cd404[_0x4526ea(0x199)]('grant'),_0x5cd404[_0x4526ea(0x199)](_0x4526ea(0x1a5))),_0x15f154=await resolveRuntimeRoleRef(_0x5cd404[_0x4526ea(0x191)],_0x5cd404['str']('role'));assertRuntimePermitRoleConfigurable(_0x15f154);const _0x2b3f45=splitRefs(_0x5cd404['str'](_0x4526ea(0x1a4)),_0x4526ea(0x17c)),_0xbfa383=[...new Set(splitRefs(_0x5cd404[_0x4526ea(0x1ad)](_0x4526ea(0x17a)),_0x4526ea(0x17e))[_0x4526ea(0x1b6)](_0x3b6356=>_0x3b6356['toUpperCase']()))],_0x2ec99b=_0xbfa383[_0x4526ea(0x1a3)](_0x19feea=>!DATA_ACTIONS[_0x4526ea(0x181)](_0x19feea));if(_0x2ec99b[_0x4526ea(0x189)]>0x0)throw CliErrors[_0x4526ea(0x1ab)](_0x4526ea(0x18e)+_0x2ec99b[_0x4526ea(0x193)](',\x20')+'.');const _0x530045=await listRuntimeDatasetRolePermits(_0x5cd404['appCode']),_0x498da3=await listRuntimePermitRoles(_0x5cd404['appCode']),_0x162b4f=[],_0x2c3276=[],_0x298c6d=[],_0xaf2b81=[];for(const _0x560b58 of _0x2b3f45){const _0x1997ce=_0x530045[_0x4526ea(0x194)](_0x8129f6=>_0x8129f6[_0x4526ea(0x1a2)]===_0x560b58);if(!_0x1997ce)throw CliErrors[_0x4526ea(0x1ab)](_0x4526ea(0x19f)+_0x560b58+_0x4526ea(0x182));for(const _0x659be5 of _0xbfa383){const _0x1b8c25=_0x1997ce[_0x4526ea(0x19c)][_0x4526ea(0x194)](_0x24e444=>_0x24e444[_0x4526ea(0x19b)]===_0x659be5);if(!_0x1b8c25)throw CliErrors[_0x4526ea(0x1ab)](_0x4526ea(0x1b3)+_0x560b58+_0x4526ea(0x1b5)+_0x659be5+'.');const _0x177039=applyRuntimeRolePermission(_0x1b8c25[_0x4526ea(0x196)],_0x15f154,_0x498da3,_0x3f8107);_0x2c3276[_0x4526ea(0x19e)]({'datasetCode':_0x560b58,'resourceType':_0x659be5,'rolePermit':_0x1b8c25[_0x4526ea(0x196)]}),_0x298c6d['push']({'datasetCode':_0x560b58,'resourceType':_0x659be5,'rolePermit':_0x177039[_0x4526ea(0x190)]}),_0x177039[_0x4526ea(0x19a)]?_0x162b4f[_0x4526ea(0x19e)]({..._0x1b8c25[_0x4526ea(0x183)]!=null?{'id':_0x1b8c25['permitId']}:{},'appCode':_0x5cd404[_0x4526ea(0x191)],'resourceCode':_0x560b58,'resourceType':_0x659be5,'resourceName':_0x1b8c25[_0x4526ea(0x1b1)],'rolePermit':_0x177039['roles']}):_0xaf2b81[_0x4526ea(0x19e)](_0x560b58+'/'+_0x659be5+_0x4526ea(0x1ae)+_0x3f8107+_0x4526ea(0x186)+_0x15f154['id']+'.');}}return{'operation':_0x3f8107,'role':_0x15f154,'datasetCodes':_0x2b3f45,'actions':_0xbfa383,'permitList':_0x162b4f,'before':_0x2c3276,'after':_0x298c6d,'warnings':_0xaf2b81};}export const permitDatasetSet={'service':a40_0x4e7265(0x18a),'command':a40_0x4e7265(0x18c),'description':'Grant\x20or\x20revoke\x20selected\x20runtime\x20dataset\x20actions\x20for\x20one\x20role','risk':a40_0x4e7265(0x1b9),'confirmationDescription':a40_0x4e7265(0x18d),'flags':[ROLE_REF_FLAG,GRANT_FLAG,REVOKE_FLAG,DATASETS_FLAG,ACTIONS_FLAG],async 'validate'(_0x513cf1){const _0x2fb388=a40_0x4e7265;assertGrantOrRevoke(_0x513cf1[_0x2fb388(0x199)]('grant'),_0x513cf1['bool'](_0x2fb388(0x1a5)));},async 'dryRun'(_0x31d837){const _0x544fd5=a40_0x4e7265,_0x4cf7ab=await prepare(_0x31d837);return dryRun(_0x544fd5(0x198),_0x544fd5(0x18b))[_0x544fd5(0x19d)]({'appCode':_0x31d837[_0x544fd5(0x191)],'permitList':_0x4cf7ab[_0x544fd5(0x1ba)]})[_0x544fd5(0x197)](_0x544fd5(0x1b8)+_0x4cf7ab['operation']+_0x544fd5(0x17b))[_0x544fd5(0x1a6)]();},async 'execute'(_0x4b4f2c){const _0x593d55=a40_0x4e7265,_0x264a94=await prepare(_0x4b4f2c);return _0x264a94[_0x593d55(0x1ba)][_0x593d55(0x189)]>0x0&&await saveRuntimeDatasetRolePermits(_0x4b4f2c[_0x593d55(0x191)],_0x264a94[_0x593d55(0x1ba)]),{'ok':!![],'data':runtimePermitWriteResult(_0x593d55(0x184)+_0x264a94[_0x593d55(0x1a0)],{'roleId':_0x264a94[_0x593d55(0x180)]['id'],'datasetCodes':_0x264a94['datasetCodes'],'actions':_0x264a94[_0x593d55(0x17a)]},_0x264a94[_0x593d55(0x1aa)],_0x264a94['after'],{'method':_0x593d55(0x198),'path':'/client/permit/resource/batch-save-dataset'},_0x264a94[_0x593d55(0x192)])};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a41_0xbd08(){const _0x36166d=['18OjWAJL','12683170Hhjzqx','4733825EnBwxt','175728CWCLSV','1110571mndvFa','192ieZRQN','24LGPcRM','436912xCimdj','6033948yDRCXa','3814MNRQOr'];a41_0xbd08=function(){return _0x36166d;};return a41_0xbd08();}(function(_0x1de581,_0x3c8b18){const _0x3c0a17=a41_0x5ab4,_0x40487f=_0x1de581();while(!![]){try{const _0x992b66=-parseInt(_0x3c0a17(0x11d))/0x1+parseInt(_0x3c0a17(0x118))/0x2*(parseInt(_0x3c0a17(0x11f))/0x3)+-parseInt(_0x3c0a17(0x116))/0x4+parseInt(_0x3c0a17(0x11b))/0x5+-parseInt(_0x3c0a17(0x117))/0x6+-parseInt(_0x3c0a17(0x11c))/0x7*(parseInt(_0x3c0a17(0x11e))/0x8)+-parseInt(_0x3c0a17(0x119))/0x9*(-parseInt(_0x3c0a17(0x11a))/0xa);if(_0x992b66===_0x3c8b18)break;else _0x40487f['push'](_0x40487f['shift']());}catch(_0x52b74e){_0x40487f['push'](_0x40487f['shift']());}}}(a41_0xbd08,0xa3bee));import{permitPageGet}from'../../commands/permit/page-get.js';import{permitPageSet}from'../../commands/permit/page-set.js';import{permitRoleMenus}from'../../commands/permit/role-menus.js';import{permitRoleMenusSet}from'../../commands/permit/role-menus-set.js';function a41_0x5ab4(_0x20d6bd,_0x179817){_0x20d6bd=_0x20d6bd-0x116;const _0xbd086a=a41_0xbd08();let _0x5ab47a=_0xbd086a[_0x20d6bd];return _0x5ab47a;}import{permitDatasetGet}from'../../commands/permit/dataset-get.js';import{permitDatasetSet}from'../../commands/permit/dataset-set.js';export const permitDefinitions=[permitPageGet,permitPageSet,permitRoleMenus,permitRoleMenusSet,permitDatasetGet,permitDatasetSet];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a42_0x29ebba=a42_0x1a9a;(function(_0x563555,_0x2af78a){const _0x17eac2=a42_0x1a9a,_0x178643=_0x563555();while(!![]){try{const _0x22412f=-parseInt(_0x17eac2(0x19c))/0x1+parseInt(_0x17eac2(0x1aa))/0x2*(-parseInt(_0x17eac2(0x1a8))/0x3)+parseInt(_0x17eac2(0x1ab))/0x4*(-parseInt(_0x17eac2(0x1a6))/0x5)+parseInt(_0x17eac2(0x19a))/0x6*(parseInt(_0x17eac2(0x1a0))/0x7)+parseInt(_0x17eac2(0x1a9))/0x8*(-parseInt(_0x17eac2(0x1a4))/0x9)+parseInt(_0x17eac2(0x19f))/0xa*(parseInt(_0x17eac2(0x19d))/0xb)+parseInt(_0x17eac2(0x19b))/0xc;if(_0x22412f===_0x2af78a)break;else _0x178643['push'](_0x178643['shift']());}catch(_0x112609){_0x178643['push'](_0x178643['shift']());}}}(a42_0x3570,0xa63e7));import{getRuntimePagePermit}from'../../core/api-client.js';function a42_0x3570(){const _0x50bca8=['78407mwUamK','permit','runtime','num','2881242xjxCxK','page-get','1245QSwnha','menu-id','259983CJSuvQ','24SZeCpK','26yFiHec','21132ufjfju','read','498sdMcSD','39667788wegDZP','1190861hhRqMt','22RpcaaC','Get\x20runtime\x20page\x20permission\x20slots\x20by\x20menu\x20ID','5194690mrgfxs'];a42_0x3570=function(){return _0x50bca8;};return a42_0x3570();}function a42_0x1a9a(_0x4a7485,_0x535d7d){_0x4a7485=_0x4a7485-0x199;const _0x357007=a42_0x3570();let _0x1a9a76=_0x357007[_0x4a7485];return _0x1a9a76;}import{MENU_ID_FLAG,projectRuntimePagePermit}from'../../commands/permit/shared.js';export const permitPageGet={'service':a42_0x29ebba(0x1a1),'command':a42_0x29ebba(0x1a5),'description':a42_0x29ebba(0x19e),'risk':a42_0x29ebba(0x199),'flags':[MENU_ID_FLAG],async 'execute'(_0x47e056){const _0x1b880c=a42_0x29ebba,_0xedc789=await getRuntimePagePermit(_0x47e056[_0x1b880c(0x1a3)](_0x1b880c(0x1a7)));return{'ok':!![],'data':{'scope':_0x1b880c(0x1a2),'page':projectRuntimePagePermit(_0xedc789)}};}};
|