@lovrabet/rabetbase-cli 2.3.16-beta.1 → 2.3.16-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -0
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.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/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.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-apis-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/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/init.js +1 -1
- package/lib/commands/project/upgrade.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/role/user-resolve.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.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/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -0
- package/lib/commands/tenant/members-list.js +1 -0
- package/lib/commands/tenant/shared.js +1 -0
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.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/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.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/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.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/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.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/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +2 -2
- package/lib/commands/app/add.js +0 -1
- package/lib/commands/app/remove.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a91_0x474218=a91_0x50b8;(function(_0x2c607a,_0x57fbdd){const _0x563c27=a91_0x50b8,_0x1475a5=_0x2c607a();while(!![]){try{const _0x28e439=-parseInt(_0x563c27(0x117))/0x1*(-parseInt(_0x563c27(0xef))/0x2)+parseInt(_0x563c27(0x107))/0x3*(-parseInt(_0x563c27(0x106))/0x4)+-parseInt(_0x563c27(0x10e))/0x5*(-parseInt(_0x563c27(0xf3))/0x6)+parseInt(_0x563c27(0x101))/0x7*(-parseInt(_0x563c27(0xf6))/0x8)+parseInt(_0x563c27(0xfb))/0x9*(parseInt(_0x563c27(0x113))/0xa)+-parseInt(_0x563c27(0xff))/0xb+parseInt(_0x563c27(0x111))/0xc*(parseInt(_0x563c27(0x10d))/0xd);if(_0x28e439===_0x57fbdd)break;else _0x1475a5['push'](_0x1475a5['shift']());}catch(_0x2e78fc){_0x1475a5['push'](_0x1475a5['shift']());}}}(a91_0x3c92,0xcf412));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a91_0x50b8(_0x56991e,_0x4b01ad){_0x56991e=_0x56991e-0xef;const _0x3c92a3=a91_0x3c92();let _0x50b894=_0x3c92a3[_0x56991e];return _0x50b894;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';function a91_0x3c92(){const _0x3317c4=['New\x20host:port','dburl','str','6YDJMad','dbname','POST','328CpJlrp','New\x20connection\x20parameter\x20string','write','New\x20description','has','27nDsfAw','string','/smartapi/dblink/update','******','2355056cdxBbo','dbUrl','147434SgmpjT','num','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','dbparam','dbParam','80oqEvhm','174129FWnxwG','username','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','dbdesc','New\x20username','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20server\x20returns\x20a\x20masked\x20password','713011MIOuDk','5264765WRaKNQ','New\x20database\x20name','password','180eJBMqk','[redacted]','1085790eobIfe','validation','Updated\x20db\x20link\x20','trim','295339BJNqkf','update','6fnEgQh'];a91_0x3c92=function(){return _0x3317c4;};return a91_0x3c92();}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a91_0x474218(0xfe),a91_0x474218(0x112)]);function mergeDbLinkUpdate(_0x47665c,_0x83c13d){const _0x257f6b=a91_0x474218,_0x4978f4={..._0x47665c},_0xe031da=_0x83c13d[_0x257f6b(0xf2)](_0x257f6b(0x110));if(_0xe031da&&MASKED_PASSWORD_VALUES[_0x257f6b(0xfa)](_0xe031da))throw CliErrors[_0x257f6b(0x114)](_0x257f6b(0x103));if(!_0xe031da&&MASKED_PASSWORD_VALUES[_0x257f6b(0xfa)](String(_0x47665c[_0x257f6b(0x110)]??'')))throw CliErrors[_0x257f6b(0x114)](_0x257f6b(0x109));const _0x22eb4b=_0x83c13d[_0x257f6b(0xf2)](_0x257f6b(0xf4));if(_0x22eb4b)_0x4978f4['dbName']=_0x22eb4b;const _0x3c463d=_0x83c13d['str']('dburl');if(_0x3c463d)_0x4978f4[_0x257f6b(0x100)]=_0x3c463d[_0x257f6b(0x116)]();const _0x48e7f8=_0x83c13d['str'](_0x257f6b(0x108));if(_0x48e7f8)_0x4978f4['username']=_0x48e7f8;if(_0xe031da)_0x4978f4[_0x257f6b(0x110)]=_0xe031da;const _0x1c4218=_0x83c13d[_0x257f6b(0xf2)](_0x257f6b(0x104));if(_0x1c4218)_0x4978f4[_0x257f6b(0x105)]=_0x1c4218;const _0x55b882=_0x83c13d[_0x257f6b(0xf2)](_0x257f6b(0x10a));if(_0x55b882)_0x4978f4['dbDesc']=_0x55b882;return _0x4978f4;}export const dbUpdate={'service':'db','command':a91_0x474218(0x118),'description':'Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','risk':a91_0x474218(0xf8),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a91_0x474218(0xf4),'type':a91_0x474218(0xfc),'description':a91_0x474218(0x10f)},{'name':a91_0x474218(0xf1),'type':a91_0x474218(0xfc),'description':a91_0x474218(0xf0)},{'name':a91_0x474218(0x108),'type':a91_0x474218(0xfc),'description':a91_0x474218(0x10b)},{'name':a91_0x474218(0x110),'type':a91_0x474218(0xfc),'description':a91_0x474218(0x10c)},{'name':a91_0x474218(0x104),'type':a91_0x474218(0xfc),'description':a91_0x474218(0xf7)},{'name':'dbdesc','type':a91_0x474218(0xfc),'description':a91_0x474218(0xf9)}],async 'validate'(_0xb7e9ce){const _0x2deb43=a91_0x474218,_0x7c8116=_0xb7e9ce[_0x2deb43(0xf2)](_0x2deb43(0xf1));if(_0x7c8116&&!validateDbUrl(_0x7c8116['trim']()))throw CliErrors[_0x2deb43(0x114)]('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x7c8116+'\x22');},async 'dryRun'(_0x28c676){const _0x9a66e4=a91_0x474218,_0xebd4e0=_0x28c676[_0x9a66e4(0x102)]('id'),_0x1666d9=await getDbLinkInfo(_0xebd4e0),_0x27f4f9=mergeDbLinkUpdate(_0x1666d9,_0x28c676),_0x1d2052=sanitizeDbLinkForOutput(_0x27f4f9);return{'method':_0x9a66e4(0xf5),'url':_0x9a66e4(0xfd),'body':_0x1d2052,'description':'Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview'};},async 'execute'(_0x780d3b){const _0x2fd442=a91_0x474218,_0x1c47ac=_0x780d3b[_0x2fd442(0x102)]('id'),_0x33a9f1=await getDbLinkInfo(_0x1c47ac),_0x2938d9=mergeDbLinkUpdate(_0x33a9f1,_0x780d3b),{id:_0x369ea6,entity:_0x4e9027}=normalizeEntityWithIdResponse(await updateDbLink(_0x2938d9));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x4e9027),'message':_0x2fd442(0x115)+(_0x369ea6??_0x1c47ac)};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a93_0x1f1174=a93_0x5e5b;function a93_0x1288(){const _0x7743c2=['\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','doctor','\x20\x20Config\x20JSON','\x20\x20API\x20Endpoints','cookie','riskLevel','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','(missing)','✗\x20Expired','10nKoAGq','\x20doctor','Project','Global','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','695048VlbFnn','keys','apiDir','18215zRYKeb','empty','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','pageSize','3447189NAZzOi','appCode','gray','accessKey','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','value','(default)','903304IgYFYB','✓\x20Valid','\x20\x20Auth','locale','padEnd','apps','red','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','env','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','green','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','check','yellow','✓\x20Valid\x20JSON','\x20\x20explicitAppName:\x20','version','appcode','1552002IAuEJZ','length','✗\x20Invalid\x20JSON','558098quTKBJ','1233594HgMXOk','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','204kFhycI','(not\x20set)','bold','\x20\x20\x20\x20accessKey:\x20\x20','read','defaultApp','(none)','format','unknown','\x20\x20Apps','source','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','(set,\x20length=','status','(default:\x20','repeat','⚠\x20Empty\x20(treated\x20as\x20{})','✗\x20Not\x20logged\x20in','log','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','14dhgSlc'];a93_0x1288=function(){return _0x7743c2;};return a93_0x1288();}(function(_0x47fb64,_0x455b9a){const _0x4a9828=a93_0x5e5b,_0x5b5357=_0x47fb64();while(!![]){try{const _0x378ef5=-parseInt(_0x4a9828(0xdc))/0x1+parseInt(_0x4a9828(0xb1))/0x2+-parseInt(_0x4a9828(0xd9))/0x3+parseInt(_0x4a9828(0xdf))/0x4*(parseInt(_0x4a9828(0xb4))/0x5)+parseInt(_0x4a9828(0xdd))/0x6*(parseInt(_0x4a9828(0xf3))/0x7)+parseInt(_0x4a9828(0xc3))/0x8+parseInt(_0x4a9828(0xbb))/0x9*(parseInt(_0x4a9828(0xac))/0xa);if(_0x378ef5===_0x455b9a)break;else _0x5b5357['push'](_0x5b5357['shift']());}catch(_0x546f34){_0x5b5357['push'](_0x5b5357['shift']());}}}(a93_0x1288,0x591d9));import a93_0x15e3ae from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';function a93_0x5e5b(_0x249d6a,_0x446d06){_0x249d6a=_0x249d6a-0xaa;const _0x128822=a93_0x1288();let _0x5e5b70=_0x128822[_0x249d6a];return _0x5e5b70;}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x217811){const _0x31d5b8=a93_0x5e5b,_0x20d556=GIT_COMMIT!==_0x31d5b8(0xe7)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x3d612f=buildConfigFromFlags({}),_0x5e655e=getCookie();console['log'](),console['log'](a93_0x15e3ae['bold'](CLI_BIN_NAME+_0x31d5b8(0xad))),console[_0x31d5b8(0xf1)](a93_0x15e3ae['gray']('─'[_0x31d5b8(0xee)](0x32))),console[_0x31d5b8(0xf1)](_0x31d5b8(0xea)+_0x20d556),console[_0x31d5b8(0xf1)](_0x31d5b8(0xce)+process[_0x31d5b8(0xd7)]),console['log']('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process['platform']+'\x20'+process['arch']),console['log'](),console[_0x31d5b8(0xf1)](a93_0x15e3ae[_0x31d5b8(0xe1)]('\x20\x20Config\x20Files')),console[_0x31d5b8(0xf1)](a93_0x15e3ae[_0x31d5b8(0xbd)](_0x31d5b8(0xb8)[_0x31d5b8(0xee)](0x1e)));const _0x4d1d8d=getGlobalConfigPath(),_0x44bf6f=getProjectConfigPath();console[_0x31d5b8(0xf1)](_0x31d5b8(0xc0)+(_0x4d1d8d||a93_0x15e3ae[_0x31d5b8(0xbd)](_0x31d5b8(0xfb)))),console['log'](_0x31d5b8(0xca)+(_0x44bf6f||a93_0x15e3ae['gray'](_0x31d5b8(0xfb)))),console[_0x31d5b8(0xf1)](),console[_0x31d5b8(0xf1)](a93_0x15e3ae[_0x31d5b8(0xe1)](_0x31d5b8(0xf6))),console[_0x31d5b8(0xf1)](a93_0x15e3ae[_0x31d5b8(0xbd)](_0x31d5b8(0xb8)[_0x31d5b8(0xee)](0x1e)));const _0x40e240=(_0x3d959e,_0x3cf2ab)=>{const _0x3b015c=_0x31d5b8;if(!_0x3cf2ab){console[_0x3b015c(0xf1)]('\x20\x20'+_0x3d959e[_0x3b015c(0xc7)](0x11)+'\x20'+a93_0x15e3ae['gray']('(no\x20file)'));return;}const _0x5cdf01=inspectCliConfigJsonFile(_0x3cf2ab);if(_0x5cdf01[_0x3b015c(0xec)]==='ok')console[_0x3b015c(0xf1)]('\x20\x20'+_0x3d959e[_0x3b015c(0xc7)](0x11)+'\x20'+a93_0x15e3ae[_0x3b015c(0xcf)](_0x3b015c(0xd5)));else{if(_0x5cdf01[_0x3b015c(0xec)]===_0x3b015c(0xb5))console[_0x3b015c(0xf1)]('\x20\x20'+_0x3d959e[_0x3b015c(0xc7)](0x11)+'\x20'+a93_0x15e3ae[_0x3b015c(0xd4)](_0x3b015c(0xef)));else _0x5cdf01['status']==='missing'?console[_0x3b015c(0xf1)]('\x20\x20'+_0x3d959e[_0x3b015c(0xc7)](0x11)+'\x20'+a93_0x15e3ae['gray'](_0x3b015c(0xaa))):(console[_0x3b015c(0xf1)]('\x20\x20'+_0x3d959e['padEnd'](0x11)+'\x20'+a93_0x15e3ae[_0x3b015c(0xc9)](_0x3b015c(0xdb))),console[_0x3b015c(0xf1)]('\x20\x20'+''[_0x3b015c(0xc7)](0x11)+'\x20'+a93_0x15e3ae[_0x3b015c(0xc9)](_0x5cdf01['message'])));}};_0x40e240(_0x31d5b8(0xaf),_0x4d1d8d),_0x40e240(_0x31d5b8(0xae),_0x44bf6f),console['log'](),console[_0x31d5b8(0xf1)](a93_0x15e3ae[_0x31d5b8(0xe1)]('\x20\x20Merged\x20Config')),console[_0x31d5b8(0xf1)](a93_0x15e3ae[_0x31d5b8(0xbd)]('\x20\x20─'[_0x31d5b8(0xee)](0x1e))),console[_0x31d5b8(0xf1)](_0x31d5b8(0xb7)+(_0x3d612f[_0x31d5b8(0xbc)]||a93_0x15e3ae['red'](_0x31d5b8(0xe0)))),console[_0x31d5b8(0xf1)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3d612f[_0x31d5b8(0xcd)]),console[_0x31d5b8(0xf1)](_0x31d5b8(0xd0)+_0x3d612f[_0x31d5b8(0xc6)]),console['log']('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3d612f[_0x31d5b8(0xb3)]),console[_0x31d5b8(0xf1)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x3d612f[_0x31d5b8(0xe4)]||a93_0x15e3ae[_0x31d5b8(0xbd)](_0x31d5b8(0xe5)))),console['log']('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x3d612f['currentApp']||a93_0x15e3ae[_0x31d5b8(0xbd)](_0x31d5b8(0xe5)))),console[_0x31d5b8(0xf1)](_0x31d5b8(0xd6)+(_0x3d612f['explicitAppName']||a93_0x15e3ae[_0x31d5b8(0xbd)](_0x31d5b8(0xe5)))),console[_0x31d5b8(0xf1)](_0x31d5b8(0xfa)+(_0x3d612f[_0x31d5b8(0xe6)]||a93_0x15e3ae[_0x31d5b8(0xbd)](_0x31d5b8(0xed)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x31d5b8(0xf1)](_0x31d5b8(0xbf)+(_0x3d612f[_0x31d5b8(0xba)]??a93_0x15e3ae[_0x31d5b8(0xbd)](_0x31d5b8(0xc2)))),console[_0x31d5b8(0xf1)](_0x31d5b8(0xde)+_0x3d612f[_0x31d5b8(0xf9)]),console['log']('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3d612f['verbose']),console[_0x31d5b8(0xf1)](_0x31d5b8(0xf4)+(_0x3d612f[_0x31d5b8(0xf8)]?a93_0x15e3ae[_0x31d5b8(0xcf)](_0x31d5b8(0xeb)+_0x3d612f[_0x31d5b8(0xf8)][_0x31d5b8(0xda)]+')'):_0x5e655e?a93_0x15e3ae[_0x31d5b8(0xcf)]('(set\x20via\x20file,\x20length='+_0x5e655e[_0x31d5b8(0xda)]+')'):a93_0x15e3ae[_0x31d5b8(0xbd)](_0x31d5b8(0xe5))));const _0x3bc063=Object[_0x31d5b8(0xb2)](_0x3d612f[_0x31d5b8(0xc8)]);if(_0x3bc063[_0x31d5b8(0xda)]>0x0){console[_0x31d5b8(0xf1)](),console[_0x31d5b8(0xf1)](a93_0x15e3ae[_0x31d5b8(0xe1)](_0x31d5b8(0xe8))),console[_0x31d5b8(0xf1)](a93_0x15e3ae['gray']('\x20\x20─'[_0x31d5b8(0xee)](0x1e)));for(const _0x328ed6 of _0x3bc063){const _0x1bc2e4=_0x3d612f['apps'][_0x328ed6],_0xf627b5=_0x328ed6===_0x3d612f[_0x31d5b8(0xe4)],_0xafefc2=_0x328ed6===_0x3d612f['currentApp'],_0x2a0234=_0xafefc2?a93_0x15e3ae[_0x31d5b8(0xcf)](_0x31d5b8(0xcc)):'',_0xfb230e=_0xf627b5?'\x20(default)':'';console[_0x31d5b8(0xf1)]('\x20\x20'+_0x328ed6+_0xfb230e+_0x2a0234),console[_0x31d5b8(0xf1)](_0x31d5b8(0xb9)+_0x1bc2e4[_0x31d5b8(0xd8)]);const _0x25133a=buildAppDoctorFields(_0x1bc2e4,{'env':_0x3d612f[_0x31d5b8(0xcd)],'apiDir':_0x3d612f['raw'][_0x31d5b8(0xb3)]||DEFAULT_CONFIG_VALUES[_0x31d5b8(0xb3)],'cookie':_0x3d612f[_0x31d5b8(0xf8)]||_0x5e655e||undefined,'accessKey':_0x3d612f[_0x31d5b8(0xbe)]});console['log'](_0x31d5b8(0xb6)+_0x25133a[_0x31d5b8(0xcd)][_0x31d5b8(0xc1)]+'\x20\x20'+a93_0x15e3ae['gray']('('+_0x25133a[_0x31d5b8(0xcd)]['source']+')')),console['log'](_0x31d5b8(0xf2)+_0x25133a[_0x31d5b8(0xb3)][_0x31d5b8(0xc1)]+'\x20\x20'+a93_0x15e3ae[_0x31d5b8(0xbd)]('('+_0x25133a[_0x31d5b8(0xb3)][_0x31d5b8(0xe9)]+')'));const _0x19dfc8=_0x25133a[_0x31d5b8(0xf8)][_0x31d5b8(0xc1)]?a93_0x15e3ae[_0x31d5b8(0xcf)](_0x31d5b8(0xeb)+_0x25133a[_0x31d5b8(0xf8)][_0x31d5b8(0xc1)]['length']+')'):a93_0x15e3ae[_0x31d5b8(0xbd)](_0x31d5b8(0xe5));console['log'](_0x31d5b8(0xd1)+_0x19dfc8+'\x20\x20'+a93_0x15e3ae[_0x31d5b8(0xbd)]('('+_0x25133a[_0x31d5b8(0xf8)][_0x31d5b8(0xe9)]+')'));const _0x519f24=_0x25133a[_0x31d5b8(0xbe)][_0x31d5b8(0xc1)]?a93_0x15e3ae[_0x31d5b8(0xcf)](_0x31d5b8(0xeb)+_0x25133a[_0x31d5b8(0xbe)][_0x31d5b8(0xc1)][_0x31d5b8(0xda)]+')'):a93_0x15e3ae['gray'](_0x31d5b8(0xe5));console[_0x31d5b8(0xf1)](_0x31d5b8(0xe2)+_0x519f24+'\x20\x20'+a93_0x15e3ae[_0x31d5b8(0xbd)]('('+_0x25133a[_0x31d5b8(0xbe)]['source']+')'));}}console[_0x31d5b8(0xf1)](),console['log'](a93_0x15e3ae[_0x31d5b8(0xe1)](_0x31d5b8(0xf7))),console[_0x31d5b8(0xf1)](a93_0x15e3ae[_0x31d5b8(0xbd)]('\x20\x20─'[_0x31d5b8(0xee)](0x1e))),console[_0x31d5b8(0xf1)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console['log'](_0x31d5b8(0xb0)+getUserDomain()),console[_0x31d5b8(0xf1)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console['log'](),console['log'](a93_0x15e3ae['bold'](_0x31d5b8(0xc5))),console[_0x31d5b8(0xf1)](a93_0x15e3ae[_0x31d5b8(0xbd)](_0x31d5b8(0xb8)['repeat'](0x1e)));if(_0x5e655e){const _0x1f7329=await getIsSessionValid();console[_0x31d5b8(0xf1)](_0x31d5b8(0xcb)+(_0x1f7329?a93_0x15e3ae['green'](_0x31d5b8(0xc4)):a93_0x15e3ae[_0x31d5b8(0xc9)](_0x31d5b8(0xab))));}else console[_0x31d5b8(0xf1)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a93_0x15e3ae[_0x31d5b8(0xc9)](_0x31d5b8(0xf0)));return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a93_0x1f1174(0xf5),'command':a93_0x1f1174(0xd3),'description':a93_0x1f1174(0xd2),'risk':a93_0x1f1174(0xe3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a92_0x221142=a92_0x53cc;(function(_0x27ebd5,_0x5649e4){const _0x1a1204=a92_0x53cc,_0x265bb6=_0x27ebd5();while(!![]){try{const _0x1e12f7=parseInt(_0x1a1204(0x99))/0x1*(parseInt(_0x1a1204(0x9c))/0x2)+parseInt(_0x1a1204(0x9b))/0x3*(-parseInt(_0x1a1204(0xaf))/0x4)+parseInt(_0x1a1204(0x91))/0x5+parseInt(_0x1a1204(0x81))/0x6+parseInt(_0x1a1204(0x89))/0x7+-parseInt(_0x1a1204(0xce))/0x8*(-parseInt(_0x1a1204(0xcc))/0x9)+parseInt(_0x1a1204(0x97))/0xa*(-parseInt(_0x1a1204(0x9f))/0xb);if(_0x1e12f7===_0x5649e4)break;else _0x265bb6['push'](_0x265bb6['shift']());}catch(_0x10ca58){_0x265bb6['push'](_0x265bb6['shift']());}}}(a92_0x37d0,0xabf73));import a92_0x4daab from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';function a92_0x53cc(_0x574d56,_0xea4629){_0x574d56=_0x574d56-0x7d;const _0x37d065=a92_0x37d0();let _0x53cc91=_0x37d065[_0x574d56];return _0x53cc91;}async function execute(_0x29b518){const _0x3977de=a92_0x53cc,_0x17100c=GIT_COMMIT!==_0x3977de(0x7e)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x3977de(0x87)](0x0,0xa)+')':VERSION,_0x4c1719=buildConfigFromFlags({}),_0x46c900=getCookie();console[_0x3977de(0xcb)](),console['log'](a92_0x4daab[_0x3977de(0xb1)](CLI_BIN_NAME+_0x3977de(0xc2))),console[_0x3977de(0xcb)](a92_0x4daab[_0x3977de(0xd1)]('─'['repeat'](0x32))),console[_0x3977de(0xcb)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x17100c),console[_0x3977de(0xcb)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process['version']),console['log'](_0x3977de(0x86)+process[_0x3977de(0xa5)]+'\x20'+process[_0x3977de(0x8a)]),console[_0x3977de(0xcb)](),console['log'](a92_0x4daab[_0x3977de(0xb1)]('\x20\x20Config\x20Files')),console[_0x3977de(0xcb)](a92_0x4daab['gray'](_0x3977de(0xa6)[_0x3977de(0x93)](0x1e)));const _0x468ea6=getGlobalConfigPath(),_0x7872d6=getProjectConfigPath();console['log'](_0x3977de(0x9d)+(_0x468ea6||a92_0x4daab['gray'](_0x3977de(0xaa)))),console[_0x3977de(0xcb)](_0x3977de(0xb5)+(_0x7872d6||a92_0x4daab['gray']('(not\x20found)'))),console[_0x3977de(0xcb)](),console[_0x3977de(0xcb)](a92_0x4daab[_0x3977de(0xb1)](_0x3977de(0xca))),console[_0x3977de(0xcb)](a92_0x4daab[_0x3977de(0xd1)]('\x20\x20─'[_0x3977de(0x93)](0x1e)));const _0x584893=(_0x44c269,_0x439a26)=>{const _0x394b09=_0x3977de;if(!_0x439a26){console[_0x394b09(0xcb)]('\x20\x20'+_0x44c269[_0x394b09(0x96)](0x11)+'\x20'+a92_0x4daab['gray'](_0x394b09(0xbf)));return;}const _0x537a3a=inspectCliConfigJsonFile(_0x439a26);if(_0x537a3a[_0x394b09(0x8f)]==='ok')console['log']('\x20\x20'+_0x44c269[_0x394b09(0x96)](0x11)+'\x20'+a92_0x4daab[_0x394b09(0xc9)](_0x394b09(0x8d)));else{if(_0x537a3a['status']===_0x394b09(0xc5))console[_0x394b09(0xcb)]('\x20\x20'+_0x44c269[_0x394b09(0x96)](0x11)+'\x20'+a92_0x4daab[_0x394b09(0x98)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x537a3a[_0x394b09(0x8f)]===_0x394b09(0xae)?console[_0x394b09(0xcb)]('\x20\x20'+_0x44c269[_0x394b09(0x96)](0x11)+'\x20'+a92_0x4daab[_0x394b09(0xd1)](_0x394b09(0xb0))):(console[_0x394b09(0xcb)]('\x20\x20'+_0x44c269['padEnd'](0x11)+'\x20'+a92_0x4daab[_0x394b09(0xb3)](_0x394b09(0xcd))),console[_0x394b09(0xcb)]('\x20\x20'+''[_0x394b09(0x96)](0x11)+'\x20'+a92_0x4daab['red'](_0x537a3a['message'])));}};_0x584893(_0x3977de(0xc3),_0x468ea6),_0x584893(_0x3977de(0xc8),_0x7872d6),console[_0x3977de(0xcb)](),console[_0x3977de(0xcb)](a92_0x4daab['bold'](_0x3977de(0xb6))),console[_0x3977de(0xcb)](a92_0x4daab[_0x3977de(0xd1)](_0x3977de(0xa6)['repeat'](0x1e))),console['log'](_0x3977de(0xb8)+(_0x4c1719[_0x3977de(0xa2)]||a92_0x4daab[_0x3977de(0xb3)](_0x3977de(0xa3)))),console[_0x3977de(0xcb)](_0x3977de(0x7d)+_0x4c1719[_0x3977de(0xbd)]),console['log'](_0x3977de(0x83)+_0x4c1719[_0x3977de(0xb9)]),console['log'](_0x3977de(0x84)+_0x4c1719['apiDir']),console[_0x3977de(0xcb)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x4c1719['defaultApp']||a92_0x4daab['gray'](_0x3977de(0xd0)))),console[_0x3977de(0xcb)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x4c1719[_0x3977de(0x9e)]||a92_0x4daab[_0x3977de(0xd1)]('(none)'))),console[_0x3977de(0xcb)](_0x3977de(0xc4)+(_0x4c1719['explicitAppName']||a92_0x4daab[_0x3977de(0xd1)](_0x3977de(0xd0)))),console[_0x3977de(0xcb)](_0x3977de(0x8e)+(_0x4c1719['format']||a92_0x4daab[_0x3977de(0xd1)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x3977de(0xa4)]+')'))),console[_0x3977de(0xcb)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4c1719['pageSize']??a92_0x4daab[_0x3977de(0xd1)](_0x3977de(0xac)))),console['log'](_0x3977de(0x95)+_0x4c1719['riskLevel']),console[_0x3977de(0xcb)](_0x3977de(0xba)+_0x4c1719['verbose']),console[_0x3977de(0xcb)](_0x3977de(0xb2)+(_0x4c1719[_0x3977de(0xbb)]?a92_0x4daab[_0x3977de(0xc9)](_0x3977de(0xa1)+_0x4c1719['cookie'][_0x3977de(0xa8)]+')'):_0x46c900?a92_0x4daab[_0x3977de(0xc9)](_0x3977de(0x88)+_0x46c900['length']+')'):a92_0x4daab[_0x3977de(0xd1)](_0x3977de(0xd0))));const _0x5d277b=Object['keys'](_0x4c1719[_0x3977de(0xcf)]);if(_0x5d277b[_0x3977de(0xa8)]>0x0){console[_0x3977de(0xcb)](),console[_0x3977de(0xcb)](a92_0x4daab['bold']('\x20\x20Apps')),console['log'](a92_0x4daab[_0x3977de(0xd1)]('\x20\x20─'[_0x3977de(0x93)](0x1e)));for(const _0xf77b87 of _0x5d277b){const _0x5d8d25=_0x4c1719[_0x3977de(0xcf)][_0xf77b87],_0x2022aa=_0xf77b87===_0x4c1719[_0x3977de(0xc7)],_0xca19f3=_0xf77b87===_0x4c1719[_0x3977de(0x9e)],_0x57a4b7=_0xca19f3?a92_0x4daab['green'](_0x3977de(0x85)):'',_0x176f48=_0x2022aa?_0x3977de(0xc6):'';console[_0x3977de(0xcb)]('\x20\x20'+_0xf77b87+_0x176f48+_0x57a4b7),console['log'](_0x3977de(0xad)+_0x5d8d25[_0x3977de(0xbc)]);const _0x1c4d17=buildAppDoctorFields(_0x5d8d25,{'env':_0x4c1719[_0x3977de(0xbd)],'apiDir':_0x4c1719[_0x3977de(0xa9)][_0x3977de(0xc1)]||DEFAULT_CONFIG_VALUES[_0x3977de(0xc1)],'cookie':_0x4c1719[_0x3977de(0xbb)]||_0x46c900||undefined,'accessKey':_0x4c1719[_0x3977de(0x8c)]});console['log'](_0x3977de(0xab)+_0x1c4d17[_0x3977de(0xbd)][_0x3977de(0x8b)]+'\x20\x20'+a92_0x4daab[_0x3977de(0xd1)]('('+_0x1c4d17[_0x3977de(0xbd)]['source']+')')),console[_0x3977de(0xcb)](_0x3977de(0x92)+_0x1c4d17['apiDir'][_0x3977de(0x8b)]+'\x20\x20'+a92_0x4daab[_0x3977de(0xd1)]('('+_0x1c4d17[_0x3977de(0xc1)][_0x3977de(0x90)]+')'));const _0x586a8a=_0x1c4d17[_0x3977de(0xbb)][_0x3977de(0x8b)]?a92_0x4daab['green'](_0x3977de(0xa1)+_0x1c4d17[_0x3977de(0xbb)][_0x3977de(0x8b)][_0x3977de(0xa8)]+')'):a92_0x4daab['gray']('(none)');console[_0x3977de(0xcb)](_0x3977de(0xa0)+_0x586a8a+'\x20\x20'+a92_0x4daab[_0x3977de(0xd1)]('('+_0x1c4d17[_0x3977de(0xbb)]['source']+')'));const _0x2d49ba=_0x1c4d17[_0x3977de(0x8c)][_0x3977de(0x8b)]?a92_0x4daab[_0x3977de(0xc9)](_0x3977de(0xa1)+_0x1c4d17[_0x3977de(0x8c)][_0x3977de(0x8b)][_0x3977de(0xa8)]+')'):a92_0x4daab[_0x3977de(0xd1)](_0x3977de(0xd0));console[_0x3977de(0xcb)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x2d49ba+'\x20\x20'+a92_0x4daab[_0x3977de(0xd1)]('('+_0x1c4d17[_0x3977de(0x8c)]['source']+')'));}}console[_0x3977de(0xcb)](),console[_0x3977de(0xcb)](a92_0x4daab[_0x3977de(0xb1)](_0x3977de(0xc0))),console['log'](a92_0x4daab[_0x3977de(0xd1)](_0x3977de(0xa6)['repeat'](0x1e))),console['log']('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console['log'](_0x3977de(0xb4)+getUserDomain()),console[_0x3977de(0xcb)](_0x3977de(0xbe)+getRuntimeDomain()),console['log'](),console[_0x3977de(0xcb)](a92_0x4daab[_0x3977de(0xb1)](_0x3977de(0x7f))),console[_0x3977de(0xcb)](a92_0x4daab[_0x3977de(0xd1)](_0x3977de(0xa6)[_0x3977de(0x93)](0x1e)));if(_0x46c900){const _0x3f7c04=await getIsSessionValid();console[_0x3977de(0xcb)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3f7c04?a92_0x4daab[_0x3977de(0xc9)](_0x3977de(0xa7)):a92_0x4daab[_0x3977de(0xb3)](_0x3977de(0x80))));}else console[_0x3977de(0xcb)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a92_0x4daab['red'](_0x3977de(0x82)));return console['log'](),{'ok':!![]};}function a92_0x37d0(){const _0x125c6d=['(default)','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','missing','137704WVWVAZ','(missing)','bold','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','red','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','doctor','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','locale','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','cookie','appcode','env','\x20\x20runtimeDomain:\x20\x20\x20','(no\x20file)','\x20\x20API\x20Endpoints','apiDir','\x20doctor','Global','\x20\x20explicitAppName:\x20','empty','\x20(default)','defaultApp','Project','green','\x20\x20Config\x20JSON','log','2846115lloZxP','✗\x20Invalid\x20JSON','8fEArTB','apps','(none)','gray','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','unknown','\x20\x20Auth','✗\x20Expired','3222810iwUHTE','✗\x20Not\x20logged\x20in','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','slice','(set\x20via\x20file,\x20length=','4686892DLUxaI','arch','value','accessKey','✓\x20Valid\x20JSON','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','status','source','1231165xWVlCh','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','repeat','read','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','padEnd','1070XzzddB','yellow','2193OEYuDj','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','24SvePbe','378EqslWq','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','currentApp','123761LBkDPS','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','(set,\x20length=','appCode','(not\x20set)','format','platform','\x20\x20─','✓\x20Valid','length','raw','(not\x20found)','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'];a92_0x37d0=function(){return _0x125c6d;};return a92_0x37d0();}export const doctorDefinition={'service':a92_0x221142(0xb7),'command':'check','description':a92_0x221142(0x9a),'risk':a92_0x221142(0x94),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a93_0x4667(){const _0xa09372=['\x20to\x20development\x20app\x20','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','Preview:\x20upload\x20','1662xWUUYW','string','2413050JAxCrH','2CFazZv','query-url','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','Uploaded\x20file:\x20','validation','filePath','str','path','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','282633XudMNl','/smartapi/common/uploadFile','48nheZrA','1972400uaSeFN','filePath\x20is\x20required.','POST','long-term','11683xdBOws','53639421uwznMP','appCode','read','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','boolean','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','download','File','23643kczALt','file','Path\x20to\x20the\x20local\x20file\x20to\x20upload','trim','upload','714694sdQWIB','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','4610tuzDNR'];a93_0x4667=function(){return _0xa09372;};return a93_0x4667();}const a93_0x2df10b=a93_0x21eb;(function(_0x57a7d9,_0x4b28ba){const _0x2cb4b8=a93_0x21eb,_0xcc837f=_0x57a7d9();while(!![]){try{const _0x5e7911=-parseInt(_0x2cb4b8(0x1cb))/0x1*(parseInt(_0x2cb4b8(0x1d5))/0x2)+parseInt(_0x2cb4b8(0x1b6))/0x3*(-parseInt(_0x2cb4b8(0x1b8))/0x4)+-parseInt(_0x2cb4b8(0x1d4))/0x5+-parseInt(_0x2cb4b8(0x1d2))/0x6*(parseInt(_0x2cb4b8(0x1bd))/0x7)+-parseInt(_0x2cb4b8(0x1b9))/0x8+parseInt(_0x2cb4b8(0x1c6))/0x9*(-parseInt(_0x2cb4b8(0x1ce))/0xa)+parseInt(_0x2cb4b8(0x1be))/0xb;if(_0x5e7911===_0x4b28ba)break;else _0xcc837f['push'](_0xcc837f['shift']());}catch(_0xd87390){_0xcc837f['push'](_0xcc837f['shift']());}}}(a93_0x4667,0x99755));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':'file','type':a93_0x2df10b(0x1d3),'required':!![],'description':a93_0x2df10b(0x1c8)},FILEPATH_FLAG={'name':'filepath','type':'string','required':!![],'description':a93_0x2df10b(0x1c1)},DOWNLOAD_FLAG={'name':'download','type':'boolean','description':a93_0x2df10b(0x1b5)},LONG_TERM_FLAG={'name':a93_0x2df10b(0x1bc),'type':a93_0x2df10b(0x1c2),'description':a93_0x2df10b(0x1d7)};function a93_0x21eb(_0x27e217,_0x3b0794){_0x27e217=_0x27e217-0x1b1;const _0x46671c=a93_0x4667();let _0x21eb60=_0x46671c[_0x27e217];return _0x21eb60;}function requireFilePath(_0x7eac24){const _0x256f0d=a93_0x2df10b,_0x2e5a96=_0x7eac24[_0x256f0d(0x1c9)]();if(!_0x2e5a96)throw CliErrors[_0x256f0d(0x1b1)](_0x256f0d(0x1ba));return _0x2e5a96;}const fileUpload={'service':a93_0x2df10b(0x1c7),'command':a93_0x2df10b(0x1ca),'description':a93_0x2df10b(0x1c3),'risk':a93_0x2df10b(0x1c0),'flags':[FILE_FLAG],async 'dryRun'(_0x1f64bc){const _0x561afb=a93_0x2df10b,_0x416011=requireDevelopmentUploadFile(_0x1f64bc[_0x561afb(0x1b3)](_0x561afb(0x1c7)),_0x561afb(0x1c5));return{'method':_0x561afb(0x1bb),'url':_0x561afb(0x1b7),'body':{'appCode':_0x1f64bc[_0x561afb(0x1bf)],'multipart':{'file':_0x416011}},'description':_0x561afb(0x1d1)+_0x416011['path']+_0x561afb(0x1cf)+_0x1f64bc[_0x561afb(0x1bf)]};},async 'execute'(_0xe7fd3a){const _0x223a38=a93_0x2df10b,_0x506704=requireDevelopmentUploadFile(_0xe7fd3a[_0x223a38(0x1b3)]('file'),_0x223a38(0x1c5)),_0x217ced=await uploadDevelopmentFile(_0xe7fd3a[_0x223a38(0x1bf)],_0x506704[_0x223a38(0x1b4)]);return{'ok':!![],'data':_0x217ced,'message':_0x217ced[_0x223a38(0x1b2)]?_0x223a38(0x1d8)+_0x217ced['filePath']+_0x223a38(0x1d0):_0x223a38(0x1cc)};}},fileQueryUrl={'service':a93_0x2df10b(0x1c7),'command':a93_0x2df10b(0x1d6),'description':a93_0x2df10b(0x1cd),'risk':a93_0x2df10b(0x1c0),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x47672b){const _0x4e876d=a93_0x2df10b,_0x4dc9ff=requireFilePath(_0x47672b[_0x4e876d(0x1b3)]('filepath')),_0x42a2c1=await queryDevelopmentFileUrl(_0x4dc9ff,{'download':_0x47672b['bool'](_0x4e876d(0x1c4)),'longTerm':_0x47672b['bool'](_0x4e876d(0x1bc))});return{'ok':!![],'data':_0x42a2c1};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a94_0x128c67=a94_0x5aec;(function(_0x1840f5,_0xda856a){const _0x4966ff=a94_0x5aec,_0x5c395f=_0x1840f5();while(!![]){try{const _0x8ee346=-parseInt(_0x4966ff(0xa8))/0x1+-parseInt(_0x4966ff(0x9f))/0x2*(parseInt(_0x4966ff(0xb1))/0x3)+-parseInt(_0x4966ff(0xb7))/0x4*(-parseInt(_0x4966ff(0xa2))/0x5)+parseInt(_0x4966ff(0xc6))/0x6+parseInt(_0x4966ff(0xae))/0x7*(parseInt(_0x4966ff(0xb8))/0x8)+-parseInt(_0x4966ff(0xba))/0x9*(parseInt(_0x4966ff(0xa3))/0xa)+parseInt(_0x4966ff(0xa0))/0xb;if(_0x8ee346===_0xda856a)break;else _0x5c395f['push'](_0x5c395f['shift']());}catch(_0x3b68d5){_0x5c395f['push'](_0x5c395f['shift']());}}}(a94_0x356a,0x787f5));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';function a94_0x5aec(_0x452093,_0x2442c9){_0x452093=_0x452093-0x9b;const _0x356a68=a94_0x356a();let _0x5aecc9=_0x356a68[_0x452093];return _0x5aecc9;}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x18f775){return{'appCode':_0x18f775,'appName':_0x18f775};}function a94_0x356a(){const _0x3cc824=['Target\x20environment','boolean','6iOCSif','5635861KCGKHt','Usage:\x20','70YcVvGD','775210tKxoOr','../../commands/project/init.js','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','map','defaultApp','604795cwPzMs','run','validation','\x0a✓\x20Successfully\x20initialized\x20','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','2287859HAytAM','production','nonInteractive','279975ErXFZZ','env','\x20\x20Default:\x20','App\x20code\x20to\x20initialize\x20with','global','custom','5756heYECv','24QAIUWQ','\x20\x20Apps:\x20','18jjOfVn','appcode','string','write','bool','message','yes','join','\x20config','log','project','\x20\x20Env:\x20','122166OhUzXW','\x20\x20Config:\x20','Use\x20`','flagMissing','Write\x20to\x20global\x20config\x20instead\x20of\x20project','valid','appCode'];a94_0x356a=function(){return _0x3cc824;};return a94_0x356a();}function writeInitConfig(_0x1b61aa,_0x38ade8,_0xef248a){const _0x402368=a94_0x5aec,_0xc758d5=resolveWriteConfigPath(_0x1b61aa),_0x2167db=buildCanonicalProjectConfig({},{'appCodes':_0x38ade8[_0x402368(0xa6)](_0x19465d=>_0x19465d[_0x402368(0x9c)]),'env':_0xef248a,'metadata':{'version':getCliVersion(),'createdAt':new Date()['toLocaleString']()}});writeConfigFile(_0xc758d5,_0x2167db);const _0x483c78=_0x1b61aa===_0x402368(0xb5)?_0x402368(0xb5):_0x402368(0xc4);console['log'](_0x402368(0xab)+_0x483c78+_0x402368(0xc2)),console['log'](_0x402368(0xb9)+_0x38ade8[_0x402368(0xa6)](_0x1bb6c7=>_0x1bb6c7['appCode'])[_0x402368(0xc1)](',\x20')),console['log'](_0x402368(0xb3)+_0x2167db[_0x402368(0xa7)]),console[_0x402368(0xc3)](_0x402368(0xc5)+_0x2167db[_0x402368(0xb2)]),console['log'](_0x402368(0xc7)+_0xc758d5);}async function runSmartInit(_0x4ea9c3){const _0x1c1e78=a94_0x5aec,_0x482efb=process['cwd'](),_0xa6198a=_0x4ea9c3[_0x1c1e78(0xbe)](_0x1c1e78(0xb5))?_0x1c1e78(0xb5):_0x1c1e78(0xc4),_0x416dfa=_0x4ea9c3['str'](_0x1c1e78(0xb2))||'production',_0x3abc38=_0x4ea9c3['str'](_0x1c1e78(0xbb))||undefined,_0x12b3c5=_0x4ea9c3[_0x1c1e78(0xbe)](_0x1c1e78(0xc4));if(_0x12b3c5){const {initConfig:_0x56aee8}=await import(_0x1c1e78(0xa4));return _0x56aee8({'appcode':_0x3abc38,'env':_0x416dfa,'autoYes':_0x4ea9c3[_0x1c1e78(0xbe)](_0x1c1e78(0xc0))});}if(_0xa6198a===_0x1c1e78(0xc4)){const _0x1d2d2f=existsSync(resolve(_0x482efb,NEW_CONFIG_NAME)),_0x4c286b=LEGACY_CONFIG_NAMES['some'](_0x3ddd31=>existsSync(resolve(_0x482efb,_0x3ddd31)));if(_0x4c286b&&!_0x1d2d2f)return console['log']('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x4ea9c3[_0x1c1e78(0xb0)],{'yes':_0x4ea9c3[_0x1c1e78(0xbe)](_0x1c1e78(0xc0))});if(_0x1d2d2f)throw CliErrors[_0x1c1e78(0xaa)](_0x1c1e78(0xa5),_0x1c1e78(0xc8)+CLI_BIN_NAME+'\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.');}if(_0x3abc38){const _0x2558b7=validateAppcode(_0x3abc38);if(!_0x2558b7[_0x1c1e78(0x9b)])throw CliErrors['validation'](_0x2558b7[_0x1c1e78(0xbf)]);writeInitConfig(_0xa6198a,[syntheticApp(_0x3abc38)],_0x416dfa);return;}if(_0x4ea9c3[_0x1c1e78(0xb0)])throw CliErrors[_0x1c1e78(0xc9)]('appcode',_0x1c1e78(0xa1)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]');const _0x71620c=getCookie(),_0x1b8b4d=await selectMultipleApps(_0x71620c),_0x41cc71=_0x1b8b4d===_0x1c1e78(0xb6)?[syntheticApp(await promptCustomAppcode())]:_0x1b8b4d;writeInitConfig(_0xa6198a,_0x41cc71,_0x416dfa);}const initFlags=[{'name':a94_0x128c67(0xb5),'type':a94_0x128c67(0x9e),'description':a94_0x128c67(0xca),'default':![]},{'name':a94_0x128c67(0xb2),'type':a94_0x128c67(0xbc),'description':a94_0x128c67(0x9d),'default':a94_0x128c67(0xaf),'enum':[...RABETBASE_ENV_VALUES]},{'name':a94_0x128c67(0xbb),'type':'string','description':a94_0x128c67(0xb4)},{'name':'project','type':'boolean','description':a94_0x128c67(0xac),'default':![]},{'name':a94_0x128c67(0xc0),'type':a94_0x128c67(0x9e),'description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':'init','command':a94_0x128c67(0xa9),'description':a94_0x128c67(0xad),'risk':a94_0x128c67(0xbd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x1d78c3){return await runSmartInit(_0x1d78c3),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a95_0x2463(){const _0x5ca56f=['34156TgqzmS','1351458VAigmU','304ELERmD','203690SDIiKG','722532RwvtDX','129766iJTbWD','49xaLdyL','309sMJnqI','27NeRuMg','33278LtUqub','247uPWmYp','9028316LVezwC','5zAdFfl'];a95_0x2463=function(){return _0x5ca56f;};return a95_0x2463();}function a95_0x12e1(_0x54aa82,_0x2ac83a){_0x54aa82=_0x54aa82-0xc3;const _0x246351=a95_0x2463();let _0x12e181=_0x246351[_0x54aa82];return _0x12e181;}(function(_0x31a041,_0x5246d3){const _0x5ace1d=a95_0x12e1,_0x3fc48e=_0x31a041();while(!![]){try{const _0x55a90a=parseInt(_0x5ace1d(0xc3))/0x1*(parseInt(_0x5ace1d(0xc6))/0x2)+parseInt(_0x5ace1d(0xc4))/0x3*(parseInt(_0x5ace1d(0xca))/0x4)+-parseInt(_0x5ace1d(0xc9))/0x5*(parseInt(_0x5ace1d(0xcb))/0x6)+parseInt(_0x5ace1d(0xcf))/0x7*(-parseInt(_0x5ace1d(0xcc))/0x8)+-parseInt(_0x5ace1d(0xc5))/0x9*(-parseInt(_0x5ace1d(0xcd))/0xa)+parseInt(_0x5ace1d(0xc8))/0xb+parseInt(_0x5ace1d(0xce))/0xc*(-parseInt(_0x5ace1d(0xc7))/0xd);if(_0x55a90a===_0x5246d3)break;else _0x3fc48e['push'](_0x3fc48e['shift']());}catch(_0x445741){_0x3fc48e['push'](_0x3fc48e['shift']());}}}(a95_0x2463,0x7acd3));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a96_0x463cb3=a96_0x51e4;(function(_0x126d29,_0x137afe){const _0x779843=a96_0x51e4,_0x45ae87=_0x126d29();while(!![]){try{const _0x34da24=parseInt(_0x779843(0xd2))/0x1*(-parseInt(_0x779843(0xdc))/0x2)+-parseInt(_0x779843(0xf0))/0x3*(-parseInt(_0x779843(0xe8))/0x4)+parseInt(_0x779843(0xe0))/0x5+parseInt(_0x779843(0xde))/0x6+-parseInt(_0x779843(0xe2))/0x7*(parseInt(_0x779843(0xed))/0x8)+parseInt(_0x779843(0xea))/0x9*(parseInt(_0x779843(0xdd))/0xa)+-parseInt(_0x779843(0xd8))/0xb*(-parseInt(_0x779843(0xf1))/0xc);if(_0x34da24===_0x137afe)break;else _0x45ae87['push'](_0x45ae87['shift']());}catch(_0x387fa5){_0x45ae87['push'](_0x45ae87['shift']());}}}(a96_0x10d7,0x1bdab));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a96_0x463cb3(0xd3);const NUDGE_SUPPRESSED_CODES=new Set([a96_0x463cb3(0xce),a96_0x463cb3(0xe1),'config_missing',a96_0x463cb3(0xdf),a96_0x463cb3(0xec),a96_0x463cb3(0xeb),a96_0x463cb3(0xd6),a96_0x463cb3(0xcf)]),defaultWriter=_0x2bbcd1=>{const _0x12f540=a96_0x463cb3;process[_0x12f540(0xe4)][_0x12f540(0xe3)](_0x2bbcd1);};export function shouldNudgeForError(_0xf6a879,_0x39d004){const _0x252ad3=a96_0x463cb3;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x39d004['service']===_0x252ad3(0xd7)&&_0x39d004[_0x252ad3(0xe6)]===_0x252ad3(0xd9))return![];if(_0xf6a879 instanceof CliError)return!NUDGE_SUPPRESSED_CODES['has'](_0xf6a879[_0x252ad3(0xef)]);return!![];}export function printIssueReportNudgeForError(_0x45799c,_0x1403ce,_0x1daa6d=defaultWriter){if(!shouldNudgeForError(_0x45799c,_0x1403ce))return;const _0xc7b6e1=buildSuggestedTitle(_0x45799c,_0x1403ce);_0x1daa6d(formatNudge(_0xc7b6e1));}function buildSuggestedTitle(_0x431b22,_0x203a36){const _0x1abbb9=a96_0x463cb3,_0x5d7323=_0x431b22 instanceof Error?_0x431b22[_0x1abbb9(0xd5)]:String(_0x431b22),_0x258bf4=_0x5d7323['replace'](/[\r\n]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x1abbb9(0xf2)]()[_0x1abbb9(0xd1)](0x0,0x78)[_0x1abbb9(0xe9)](/"/g,'\x5c\x22'),_0x2ba306=CLI_BIN_NAME+'\x20'+_0x203a36[_0x1abbb9(0xdb)]+'\x20'+_0x203a36['command'];return _0x258bf4[_0x1abbb9(0xe5)]>0x0?_0x2ba306+':\x20'+_0x258bf4:_0x2ba306;}function a96_0x51e4(_0x53fbe7,_0x4879d0){_0x53fbe7=_0x53fbe7-0xce;const _0x10d70b=a96_0x10d7();let _0x51e4f5=_0x10d70b[_0x53fbe7];return _0x51e4f5;}function a96_0x10d7(){const _0x31b132=['write','stderr','length','command','join','20584LzGPhT','replace','9iPzOYX','flag_missing','unknown_command','136NqMLul','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','code','27cYvaLu','2238708BBfQVU','trim','cancelled','network_error','\x20\x20Set\x20','slice','171956TGXyqT','RABETBASE_DISABLE_ISSUE_NUDGE','Hit\x20a\x20','message','validation_error','issue','11JxNeQs','report','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','service','2ivBPvi','500700YYXJUa','191478irhUhX','not_in_project','543350ZqXyLz','auth_required','56609RhiSqe'];a96_0x10d7=function(){return _0x31b132;};return a96_0x10d7();}function formatNudge(_0x5ac53a){const _0x3b3558=a96_0x463cb3;return['',_0x3b3558(0xd4)+CLI_BIN_NAME+'\x20bug?\x20Help\x20us\x20fix\x20it:','\x20\x20'+CLI_BIN_NAME+'\x20issue\x20report\x20\x5c','\x20\x20\x20\x20--title\x20\x22'+_0x5ac53a+'\x22\x20\x5c',_0x3b3558(0xda),_0x3b3558(0xee),_0x3b3558(0xd0)+NUDGE_OPT_OUT_ENV+'=1\x20to\x20silence\x20this\x20hint.',''][_0x3b3558(0xe7)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a97_0x4125c5=a97_0x171f;(function(_0x48e05f,_0x541a59){const _0x3b13c4=a97_0x171f,_0x1b1382=_0x48e05f();while(!![]){try{const _0x117531=-parseInt(_0x3b13c4(0x1f1))/0x1+-parseInt(_0x3b13c4(0x1c0))/0x2+parseInt(_0x3b13c4(0x1c1))/0x3+-parseInt(_0x3b13c4(0x1f4))/0x4+-parseInt(_0x3b13c4(0x1e8))/0x5*(-parseInt(_0x3b13c4(0x1e4))/0x6)+parseInt(_0x3b13c4(0x1c9))/0x7*(parseInt(_0x3b13c4(0x1ee))/0x8)+parseInt(_0x3b13c4(0x1cd))/0x9;if(_0x117531===_0x541a59)break;else _0x1b1382['push'](_0x1b1382['shift']());}catch(_0x4f89bd){_0x1b1382['push'](_0x1b1382['shift']());}}}(a97_0x10e5,0xb97ec));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';function a97_0x10e5(){const _0x42e0e8=['217vPjWsn','sanitize','issue.description_redactions','Platform\x20issue\x20reported','7535871vCkfSC','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','Issue\x20description\x20file\x20is\x20empty:\x20','report','One-line\x20issue\x20summary','issue.description_redaction_kinds','descriptionFilePath','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','string','Issue\x20description\x20cannot\x20be\x20empty.','push','description','issue.description_original_bytes','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','trim','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','length','compress','flagMissing','message','truncated\x20from\x20','originalBytes','issue.description','30OvaiAx','redactionCount','title','redacted\x20','1454305JAzzWq','join','File\x20not\x20found:\x20','str','redactions:\x20','redactionKinds','183472TYNhjP','descriptionFile:\x20','\x20bytes','1324312qIPLNR','descriptionSource','issue.description_truncated','5787924PtvUli','descriptionSource:\x20','truncated','\x20secret(s):\x20','cwd','inline','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','1227072NfIkTM','3426117SOWlhG','validation','otel://','Platform\x20issue\x20reported\x20(','utf8','write','POST','filter'];a97_0x10e5=function(){return _0x42e0e8;};return a97_0x10e5();}import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG='description-file';export const issueReport={'service':'issue','command':a97_0x4125c5(0x1d0),'description':a97_0x4125c5(0x1ce),'risk':a97_0x4125c5(0x1c6),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a97_0x4125c5(0x1de),'flags':[{'name':a97_0x4125c5(0x1e6),'type':a97_0x4125c5(0x1d5),'required':!![],'description':a97_0x4125c5(0x1d1)},{'name':a97_0x4125c5(0x1d8),'type':'string','description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a97_0x4125c5(0x1d5),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x50b34e){const _0x204388=a97_0x4125c5,_0x4ea076=_0x50b34e[_0x204388(0x1eb)](_0x204388(0x1e6))[_0x204388(0x1db)](),_0x3a7e50=_0x50b34e[_0x204388(0x1eb)]('description')[_0x204388(0x1db)](),_0x105962=_0x50b34e['str'](DESCRIPTION_FILE_FLAG)[_0x204388(0x1db)]();if(!_0x4ea076)throw CliErrors[_0x204388(0x1df)](_0x204388(0x1e6),'Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.');const _0xd36730=_0x3a7e50[_0x204388(0x1dd)]>0x0,_0x18106b=_0x105962[_0x204388(0x1dd)]>0x0;if(_0xd36730===_0x18106b)throw CliErrors['validation'](_0x204388(0x1d4),_0x204388(0x1dc));if(_0x18106b){const _0x33afe6=resolve(process[_0x204388(0x1f8)](),_0x105962);if(!existsSync(_0x33afe6))throw CliErrors[_0x204388(0x1c2)](_0x204388(0x1ea)+_0x33afe6);}},async 'dryRun'(_0x438609){const _0xc5b67b=a97_0x4125c5,_0x27029c=await prepareIssueReport(_0x438609);return{'method':_0xc5b67b(0x1c7),'url':_0xc5b67b(0x1c3)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x27029c[_0xc5b67b(0x1e6)],'issue.description':_0x27029c['description'],'issue.description_original_bytes':_0x27029c[_0xc5b67b(0x1ca)][_0xc5b67b(0x1e2)],'issue.description_truncated':_0x27029c[_0xc5b67b(0x1ca)]['truncated'],'issue.description_redactions':_0x27029c['sanitize'][_0xc5b67b(0x1e5)],'issue.description_redaction_kinds':_0x27029c[_0xc5b67b(0x1ca)]['redactionKinds'][_0xc5b67b(0x1e9)](',')}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter',_0xc5b67b(0x1f5)+_0x27029c[_0xc5b67b(0x1f2)],_0x27029c[_0xc5b67b(0x1d3)]?_0xc5b67b(0x1ef)+_0x27029c['descriptionFilePath']:null,_0x27029c[_0xc5b67b(0x1ca)][_0xc5b67b(0x1f6)]?'truncated:\x20original\x20'+_0x27029c[_0xc5b67b(0x1ca)]['originalBytes']+_0xc5b67b(0x1f0):null,_0x27029c[_0xc5b67b(0x1ca)]['redactionCount']>0x0?_0xc5b67b(0x1ec)+_0x27029c[_0xc5b67b(0x1ca)][_0xc5b67b(0x1e5)]+'\x20('+_0x27029c[_0xc5b67b(0x1ca)]['redactionKinds'][_0xc5b67b(0x1e9)](',\x20')+')':null][_0xc5b67b(0x1c8)](Boolean)['join']('\x0a')};},async 'execute'(_0x36e795){const _0x557723=a97_0x4125c5,_0x5d5e24=await prepareIssueReport(_0x36e795);try{await sendPlatformIssueCollectLog({'title':_0x5d5e24['title'],'description':_0x5d5e24['description'],'sanitize':{'originalBytes':_0x5d5e24[_0x557723(0x1ca)][_0x557723(0x1e2)],'truncated':_0x5d5e24[_0x557723(0x1ca)][_0x557723(0x1f6)],'redactionCount':_0x5d5e24['sanitize'][_0x557723(0x1e5)],'redactionKinds':_0x5d5e24[_0x557723(0x1ca)]['redactionKinds']}});}catch(_0x396465){throw CliErrors['apiError']('Failed\x20to\x20report\x20platform\x20issue:\x20'+(_0x396465 instanceof Error?_0x396465[_0x557723(0x1e0)]:String(_0x396465)),_0x557723(0x1da));}return{'ok':!![],'message':buildResultMessage(_0x5d5e24[_0x557723(0x1ca)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':['issue.title',_0x557723(0x1e3),_0x557723(0x1d9),_0x557723(0x1f3),_0x557723(0x1cb),_0x557723(0x1d2)],'issue':{'title':_0x5d5e24[_0x557723(0x1e6)],'descriptionLength':_0x5d5e24[_0x557723(0x1d8)][_0x557723(0x1dd)],'descriptionSource':_0x5d5e24[_0x557723(0x1f2)],..._0x5d5e24['descriptionFilePath']?{'descriptionFile':_0x5d5e24[_0x557723(0x1d3)]}:{},'sanitize':{'originalBytes':_0x5d5e24[_0x557723(0x1ca)][_0x557723(0x1e2)],'truncated':_0x5d5e24['sanitize'][_0x557723(0x1f6)],'redactions':_0x5d5e24['sanitize']['redactionCount'],'redactionKinds':_0x5d5e24[_0x557723(0x1ca)]['redactionKinds']}}}};}};function a97_0x171f(_0x1c1e47,_0x1bbc3c){_0x1c1e47=_0x1c1e47-0x1bf;const _0x10e507=a97_0x10e5();let _0x171f40=_0x10e507[_0x1c1e47];return _0x171f40;}function buildResultMessage(_0x1b9d6b){const _0x2905fc=a97_0x4125c5,_0x8f187d=[];return _0x1b9d6b[_0x2905fc(0x1f6)]&&_0x8f187d[_0x2905fc(0x1d7)](_0x2905fc(0x1e1)+_0x1b9d6b['originalBytes']+_0x2905fc(0x1f0)),_0x1b9d6b[_0x2905fc(0x1e5)]>0x0&&_0x8f187d[_0x2905fc(0x1d7)](_0x2905fc(0x1e7)+_0x1b9d6b['redactionCount']+_0x2905fc(0x1f7)+_0x1b9d6b[_0x2905fc(0x1ed)][_0x2905fc(0x1e9)](',\x20')),_0x8f187d[_0x2905fc(0x1dd)]===0x0?_0x2905fc(0x1cc):_0x2905fc(0x1c4)+_0x8f187d[_0x2905fc(0x1e9)](';\x20')+')';}async function prepareIssueReport(_0xddc462){const _0x29bb57=a97_0x4125c5,_0x4e608c=_0xddc462['str']('title')[_0x29bb57(0x1db)](),_0xd0fbaf=_0xddc462[_0x29bb57(0x1eb)](_0x29bb57(0x1d8)),_0x1a6bc9=_0xddc462[_0x29bb57(0x1eb)](DESCRIPTION_FILE_FLAG)[_0x29bb57(0x1db)]();if(!_0x1a6bc9){const _0x11da55=_0xd0fbaf;if(!_0x11da55['trim']())throw CliErrors['validation'](_0x29bb57(0x1d6),'Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.');const _0x12efc5=sanitizeIssueDescription(_0x11da55);return{'title':_0x4e608c,'description':_0x12efc5['description'],'descriptionSource':_0x29bb57(0x1f9),'sanitize':_0x12efc5};}const _0x352f24=resolve(process[_0x29bb57(0x1f8)](),_0x1a6bc9),_0x57dde0=await readFile(_0x352f24,_0x29bb57(0x1c5));if(!_0x57dde0[_0x29bb57(0x1db)]())throw CliErrors[_0x29bb57(0x1c2)](_0x29bb57(0x1cf)+_0x352f24,_0x29bb57(0x1bf));const _0x5afc91=sanitizeIssueDescription(_0x57dde0);return{'title':_0x4e608c,'description':_0x5afc91[_0x29bb57(0x1d8)],'descriptionSource':'file','descriptionFilePath':_0x352f24,'sanitize':_0x5afc91};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a98_0x14e7a3=a98_0x4799;(function(_0x2cbdbb,_0x34f442){const _0x34fbe4=a98_0x4799,_0x227c30=_0x2cbdbb();while(!![]){try{const _0x5cbe0b=-parseInt(_0x34fbe4(0x141))/0x1*(-parseInt(_0x34fbe4(0x142))/0x2)+-parseInt(_0x34fbe4(0x143))/0x3*(parseInt(_0x34fbe4(0x145))/0x4)+parseInt(_0x34fbe4(0x138))/0x5+parseInt(_0x34fbe4(0x13e))/0x6+parseInt(_0x34fbe4(0x13b))/0x7+-parseInt(_0x34fbe4(0x154))/0x8+parseInt(_0x34fbe4(0x156))/0x9;if(_0x5cbe0b===_0x34f442)break;else _0x227c30['push'](_0x227c30['shift']());}catch(_0x37968b){_0x227c30['push'](_0x227c30['shift']());}}}(a98_0x544b,0x60dbd));function a98_0x544b(){const _0x503941=['description','byteLength','__RB_OSS_ID_','REDACTED:access-key','utf8','replace','REDACTED:password','push','length','max','includes','6029784VNuMxJ','authorization','1195218SJYKIT','from','kind','1503115bGOTYt','pattern','cookie','3965528QUpahu','slice','bearer-jwt','3561126CcUSLB','REDACTED:bearer-jwt','password','63239kbLpap','10vFexqh','3VwDeLK','REDACTED:private-key','3036756oMEToE','private-key','toString','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]'];a98_0x544b=function(){return _0x503941;};return a98_0x544b();}export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a98_0x14e7a3(0x148),REDACTION_RULES=[{'kind':a98_0x14e7a3(0x13a),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':'REDACTED:cookie'},{'kind':a98_0x14e7a3(0x155),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':a98_0x14e7a3(0x146),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a98_0x14e7a3(0x144)},{'kind':'access-key','pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a98_0x14e7a3(0x14c)},{'kind':a98_0x14e7a3(0x140),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a98_0x14e7a3(0x14f)},{'kind':a98_0x14e7a3(0x13d),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a98_0x14e7a3(0x13f)}];export function sanitizeIssueDescription(_0x97a4bd){const _0x2b45e8=a98_0x14e7a3,_0x231189=Buffer['byteLength'](_0x97a4bd,_0x2b45e8(0x14d)),_0x36e135=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x3f2465=_0x97a4bd,_0x822c81=0x0;const _0x4e12d3=[];if(!_0x36e135){const _0x264cad=protectOssAccessKeyIds(_0x3f2465);_0x3f2465=_0x264cad[_0x2b45e8(0x149)];for(const _0x1ba82a of REDACTION_RULES){let _0x74ac1c=0x0;_0x3f2465=_0x3f2465[_0x2b45e8(0x14e)](_0x1ba82a[_0x2b45e8(0x139)],(_0x2d5f35,_0x25a842)=>{_0x74ac1c+=0x1;const _0x13d669=typeof _0x25a842==='string'?_0x25a842:'';return _0x13d669+'['+_0x1ba82a['label']+']';}),_0x74ac1c>0x0&&(_0x822c81+=_0x74ac1c,!_0x4e12d3[_0x2b45e8(0x153)](_0x1ba82a[_0x2b45e8(0x137)])&&_0x4e12d3[_0x2b45e8(0x150)](_0x1ba82a[_0x2b45e8(0x137)]));}_0x3f2465=_0x264cad['restore'](_0x3f2465);}let _0x186649=![];if(Buffer[_0x2b45e8(0x14a)](_0x3f2465,_0x2b45e8(0x14d))>ISSUE_DESCRIPTION_MAX_BYTES){_0x186649=!![];const _0x228582=Buffer['byteLength'](TRUNCATION_NOTICE,_0x2b45e8(0x14d)),_0x5b3780=Math[_0x2b45e8(0x152)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x228582);_0x3f2465=sliceUtf8Bytes(_0x3f2465,_0x5b3780)+TRUNCATION_NOTICE;}return{'description':_0x3f2465,'originalBytes':_0x231189,'truncated':_0x186649,'redactionCount':_0x822c81,'redactionKinds':_0x4e12d3};}function a98_0x4799(_0x29ad6d,_0x10e576){_0x29ad6d=_0x29ad6d-0x137;const _0x544b8d=a98_0x544b();let _0x47998c=_0x544b8d[_0x29ad6d];return _0x47998c;}function protectOssAccessKeyIds(_0x3720bc){const _0x3b3c7b=a98_0x14e7a3,_0x2a5840=[],_0x8eb589=_0x3720bc[_0x3b3c7b(0x14e)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x1f346f,_0x5129bb)=>{const _0x5a28a5=_0x3b3c7b,_0x1c8037=_0x2a5840[_0x5a28a5(0x150)](_0x1f346f[_0x5a28a5(0x13c)](_0x5129bb[_0x5a28a5(0x151)]))-0x1;return _0x5129bb+_0x5a28a5(0x14b)+_0x1c8037+'__';});return{'description':_0x8eb589,'restore':_0x24dcb0=>_0x24dcb0[_0x3b3c7b(0x14e)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x1ace73,_0x512372,_0x1b6e24)=>{const _0x4a2474=_0x2a5840[Number(_0x1b6e24)];return _0x4a2474===undefined?_0x1ace73:''+_0x512372+_0x4a2474;})};}function sliceUtf8Bytes(_0x415a2f,_0x485b8a){const _0x109e93=a98_0x14e7a3;if(_0x485b8a<=0x0)return'';const _0x14f3be=Buffer[_0x109e93(0x157)](_0x415a2f,_0x109e93(0x14d));if(_0x14f3be[_0x109e93(0x14a)]<=_0x485b8a)return _0x415a2f;let _0x5272eb=_0x485b8a;while(_0x5272eb>0x0){const _0x1d30cc=_0x14f3be[_0x5272eb];if(_0x1d30cc===undefined||(_0x1d30cc&0xc0)!==0x80)break;_0x5272eb-=0x1;}return _0x14f3be['subarray'](0x0,_0x5272eb)[_0x109e93(0x147)](_0x109e93(0x14d));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a99_0x2be4cd=a99_0x9ba3;(function(_0x3e059f,_0x2f27ca){const _0x1f0891=a99_0x9ba3,_0x2cf21c=_0x3e059f();while(!![]){try{const _0x38041d=-parseInt(_0x1f0891(0x1fc))/0x1+-parseInt(_0x1f0891(0x1fa))/0x2*(-parseInt(_0x1f0891(0x1e2))/0x3)+-parseInt(_0x1f0891(0x1de))/0x4*(parseInt(_0x1f0891(0x1d9))/0x5)+-parseInt(_0x1f0891(0x1ce))/0x6*(-parseInt(_0x1f0891(0x202))/0x7)+-parseInt(_0x1f0891(0x1e8))/0x8+-parseInt(_0x1f0891(0x1fd))/0x9*(-parseInt(_0x1f0891(0x1d0))/0xa)+-parseInt(_0x1f0891(0x1ff))/0xb*(parseInt(_0x1f0891(0x1ef))/0xc);if(_0x38041d===_0x2f27ca)break;else _0x2cf21c['push'](_0x2cf21c['shift']());}catch(_0xc9c772){_0x2cf21c['push'](_0x2cf21c['shift']());}}}(a99_0x5c7b,0x2a840));import{createEnterpriseKnowledgeBase,isPlatformTransportFailure}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertCompanyKnowledgeBase,fetchAllCompanyKnowledgeBases,findExactCompanyKnowledgeBases,inspectKbContent,kbError,projectKb,readKbFile,requireKb,requireKbExplicitYes,verifyKbMutationReadback}from'../../commands/kb/shared.js';function a99_0x9ba3(_0x104d4a,_0x268c17){_0x104d4a=_0x104d4a-0x1ce;const _0x5c7b16=a99_0x5c7b();let _0x9ba3=_0x5c7b16[_0x104d4a];return _0x9ba3;}function a99_0x5c7b(){const _0x5c84e4=['Create\x20a\x20company\x20knowledge\x20base\x20from\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file','Do\x20not\x20resubmit.\x20Inspect\x20the\x20resolved\x20app\x20and\x20determine\x20the\x20outcome\x20manually.','Knowledge-base\x20title','\x20for\x20','539052djrDsh','rabetbase\x20kb\x20detail\x20--id\x20','65809HLemFP','1893285KyzPOp','high-risk-write','583IOwAeS','length','appCode','1015pTgnCX','13740pRwwDJ','UTF-8\x20text\x20or\x20Markdown\x20content\x20file','10BpUEtF','kb_verification_failed','POST','title','Run\x20`rabetbase\x20kb\x20detail\x20--id\x20','Created\x20company\x20knowledge\x20base\x20','\x20does\x20not\x20match\x20the\x20requested\x20create\x20state.','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','kb_title_required','55atRNJr','Create\x20response\x20was\x20unavailable;\x20recovered\x20one\x20exact\x20company/app/title\x20record\x20without\x20resubmitting.','rabetbase\x20kb\x20list\x20--title\x20','Company\x20knowledge\x20base\x20','company','125640fdmmkD','kb_create_outcome_unknown','/admin/knowledge-base/create','Expected\x20one\x20exact\x20company\x20knowledge\x20base\x20after\x20uncertain\x20create;\x20found\x20','3ezqwDZ','--file\x20is\x20required.','create','file','string','cookie','1709640nAbQBa','str','stringify','contentHash','byteSize','\x20--format\x20compress','Company\x20knowledge\x20base\x20already\x20exists\x20for\x20app\x20','2892hbJsSv','Pass\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file.','\x20--format\x20compress`\x20before\x20choosing\x20update.','kb_file_required','content','\x20with\x20title\x20','trim'];a99_0x5c7b=function(){return _0x5c84e4;};return a99_0x5c7b();}const CREATE_PATH=a99_0x2be4cd(0x1e0);function readCreateInput(_0x220402){const _0x3cd64e=a99_0x2be4cd,_0x3d68d2=_0x220402[_0x3cd64e(0x1e9)](_0x3cd64e(0x1d3))[_0x3cd64e(0x1f5)]();if(!_0x3d68d2)throw kbError(_0x3cd64e(0x1d8),'--title\x20is\x20required.');const _0x13e596=_0x220402[_0x3cd64e(0x1e9)](_0x3cd64e(0x1e5))['trim']();if(!_0x13e596)throw kbError(_0x3cd64e(0x1f2),_0x3cd64e(0x1e3),_0x3cd64e(0x1f0));return{'title':_0x3d68d2,'file':_0x13e596};}async function prepareCreate(_0xd2811b){const _0x27dd1f=a99_0x2be4cd,_0x2f4822=readCreateInput(_0xd2811b),_0x2bb81a=await readKbFile(_0x2f4822['file']),_0x3cf990=await fetchAllCompanyKnowledgeBases(_0xd2811b,{'title':_0x2f4822[_0x27dd1f(0x1d3)]}),_0x145c70=findExactCompanyKnowledgeBases(_0x3cf990,_0xd2811b[_0x27dd1f(0x201)],_0x2f4822[_0x27dd1f(0x1d3)]);if(_0x145c70[_0x27dd1f(0x200)]>0x0)throw kbError('kb_already_exists',_0x27dd1f(0x1ee)+_0xd2811b['appCode']+_0x27dd1f(0x1f4)+_0x2f4822[_0x27dd1f(0x1d3)]+'.',_0x27dd1f(0x1d4)+_0x145c70[0x0]['id']+_0x27dd1f(0x1f1));return{..._0x2f4822,'content':_0x2bb81a};}function plannedAfter(_0x41c78e,_0x4d7406){const _0x1d5db5=a99_0x2be4cd;return{'scope':'company','appCode':_0x41c78e[_0x1d5db5(0x201)],'title':_0x4d7406[_0x1d5db5(0x1d3)],'contentByteSize':_0x4d7406[_0x1d5db5(0x1f3)][_0x1d5db5(0x1ec)],'contentHash':_0x4d7406[_0x1d5db5(0x1f3)]['contentHash']};}function verifyCreatedState(_0x49ef14,_0x2dfd2a,_0x39e984){const _0x45727d=a99_0x2be4cd;assertCompanyKnowledgeBase(_0x39e984,_0x49ef14[_0x45727d(0x201)],_0x39e984['id']);const _0x2c1226=inspectKbContent(_0x39e984[_0x45727d(0x1f3)]);if(_0x39e984[_0x45727d(0x1d3)]!==_0x2dfd2a['title']||_0x2c1226['contentHash']!==_0x2dfd2a['content'][_0x45727d(0x1eb)])throw kbError(_0x45727d(0x1d1),_0x45727d(0x1dc)+_0x39e984['id']+_0x45727d(0x1d6),_0x45727d(0x1d7)+_0x39e984['id']+'\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.');return projectKb(_0x39e984);}export const kbCreate={'service':'kb','command':'create','description':a99_0x2be4cd(0x1f6),'risk':a99_0x2be4cd(0x1fe),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a99_0x2be4cd(0x1d3),'type':a99_0x2be4cd(0x1e6),'required':!![],'description':a99_0x2be4cd(0x1f8)},{'name':'file','type':a99_0x2be4cd(0x1e6),'required':!![],'description':a99_0x2be4cd(0x1cf)}],async 'validate'(_0x1b7228){readCreateInput(_0x1b7228),requireKbExplicitYes(_0x1b7228);},async 'dryRun'(_0x11b197){const _0x3de373=a99_0x2be4cd,_0x4e347f=await prepareCreate(_0x11b197);return asDryRunResult({'operation':'create','selector':{'scope':_0x3de373(0x1dd),'appCode':_0x11b197[_0x3de373(0x201)],'title':_0x4e347f['title']},'before':null,'after':plannedAfter(_0x11b197,_0x4e347f),'dryRun':!![],'backend':{'method':_0x3de373(0x1d2),'path':CREATE_PATH},'warnings':[],'verification':{'lookupCommand':_0x3de373(0x1db)+JSON[_0x3de373(0x1ea)](_0x4e347f[_0x3de373(0x1d3)])+_0x3de373(0x1ed)}},{'method':_0x3de373(0x1d2),'url':CREATE_PATH});},async 'execute'(_0x40ec86){const _0x3133ae=a99_0x2be4cd;requireKbExplicitYes(_0x40ec86);const _0x34046e=await prepareCreate(_0x40ec86);let _0x5d49e0,_0x4359bf=![];try{const _0x54492e=await createEnterpriseKnowledgeBase(_0x40ec86[_0x3133ae(0x1e7)],{'appCode':_0x40ec86[_0x3133ae(0x201)],'title':_0x34046e[_0x3133ae(0x1d3)],'content':_0x34046e[_0x3133ae(0x1f3)]['content']});assertCompanyKnowledgeBase(_0x54492e,_0x40ec86[_0x3133ae(0x201)],_0x54492e['id']),_0x5d49e0=_0x54492e['id'];}catch(_0x410030){if(!isPlatformTransportFailure(_0x410030))throw _0x410030;_0x4359bf=!![];}if(_0x5d49e0===undefined){const _0x337178=await verifyKbMutationReadback(_0x3133ae(0x1e4),!![],()=>fetchAllCompanyKnowledgeBases(_0x40ec86,{'title':_0x34046e[_0x3133ae(0x1d3)]})),_0x65ebf8=findExactCompanyKnowledgeBases(_0x337178,_0x40ec86[_0x3133ae(0x201)],_0x34046e[_0x3133ae(0x1d3)]);if(_0x65ebf8[_0x3133ae(0x200)]!==0x1)throw kbError(_0x3133ae(0x1df),_0x3133ae(0x1e1)+_0x65ebf8[_0x3133ae(0x200)]+'.',_0x3133ae(0x1f7));_0x5d49e0=_0x65ebf8[0x0]['id'];}const _0x4df8f5=await verifyKbMutationReadback(_0x3133ae(0x1e4),_0x4359bf,()=>requireKb(_0x40ec86,_0x5d49e0)),_0x15adb4=verifyCreatedState(_0x40ec86,_0x34046e,_0x4df8f5),_0x28cfe0=_0x4359bf?[_0x3133ae(0x1da)]:[];return{'ok':!![],'data':{'operation':'create','selector':{'id':_0x15adb4['id'],'scope':_0x3133ae(0x1dd),'appCode':_0x15adb4['appCode']},'before':null,'after':_0x15adb4,'dryRun':![],'backend':{'method':_0x3133ae(0x1d2),'path':CREATE_PATH},'warnings':_0x28cfe0,'verification':{'status':'verified','recoveredAfterUnknownResponse':_0x4359bf,'lookupCommand':_0x3133ae(0x1fb)+_0x15adb4['id']+_0x3133ae(0x1ed)}},'message':_0x3133ae(0x1d5)+_0x15adb4['id']+_0x3133ae(0x1f9)+_0x15adb4[_0x3133ae(0x201)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a100_0x5c07ba=a100_0x1e06;(function(_0x1cddbb,_0x2b49e3){const _0x2908a9=a100_0x1e06,_0x4aa903=_0x1cddbb();while(!![]){try{const _0x30b219=parseInt(_0x2908a9(0x106))/0x1*(parseInt(_0x2908a9(0x10d))/0x2)+-parseInt(_0x2908a9(0xfb))/0x3*(parseInt(_0x2908a9(0x103))/0x4)+parseInt(_0x2908a9(0x10f))/0x5+parseInt(_0x2908a9(0x10c))/0x6*(-parseInt(_0x2908a9(0xfe))/0x7)+-parseInt(_0x2908a9(0x116))/0x8*(-parseInt(_0x2908a9(0xf7))/0x9)+-parseInt(_0x2908a9(0x117))/0xa+parseInt(_0x2908a9(0x114))/0xb;if(_0x30b219===_0x2b49e3)break;else _0x4aa903['push'](_0x4aa903['shift']());}catch(_0x59fe4c){_0x4aa903['push'](_0x4aa903['shift']());}}}(a100_0xb9bb,0xe2eeb));function a100_0xb9bb(){const _0x279384=['no_op','delete','high-risk-write','\x20--format\x20compress','1893753AMJAsT','Database\x20soft\x20deletion\x20was\x20verified;\x20asynchronous\x20RAG\x20cleanup\x20was\x20not\x20verified\x20by\x20the\x20CLI.','rabetbase\x20kb\x20detail\x20--id\x20','unshift','489qyAgMq','Soft-deleted\x20company\x20knowledge\x20base\x20','isSafeInteger','602RfXRnO','kb_expected_version_invalid','snapshotHash','\x20is\x20already\x20absent;\x20no\x20delete\x20request\x20was\x20made','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','21404hiDQxK','POST','\x20remains\x20readable\x20after\x20delete.','792iifgfe','already_absent','cookie','company','Company\x20knowledge-base\x20id','--expected-version\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.','83766XYvqvr','1212uqtTCf','flag','4366615hrRZBn','appCode','Company\x20knowledge\x20base\x20','kb_delete_outcome_unknown','expected-version','15266383dNgeJB','number','48fFAJrJ','10012560hWRYjD'];a100_0xb9bb=function(){return _0x279384;};return a100_0xb9bb();}import{deleteEnterpriseKnowledgeBase,isPlatformTransportFailure}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertExpectedKbVersion,getKbOrNull,kbError,projectKb,readKbId,requireKbExplicitYes,verifyKbMutationReadback}from'../../commands/kb/shared.js';function a100_0x1e06(_0xfb4275,_0x4468b1){_0xfb4275=_0xfb4275-0xf4;const _0xb9bbcc=a100_0xb9bb();let _0x1e0668=_0xb9bbcc[_0xfb4275];return _0x1e0668;}const DELETE_PATH='/admin/knowledge-base/delete',RAG_WARNING=a100_0x5c07ba(0xf8),NON_ATOMIC_WARNING='--expected-version\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20delete\x20contract\x20has\x20no\x20version\x20predicate.';function readExpectedVersion(_0x4e4e0f){const _0x44d47a=a100_0x5c07ba,_0x298b85=_0x4e4e0f[_0x44d47a(0x10e)](_0x44d47a(0x113));if(_0x298b85===undefined)return undefined;const _0x1f4f34=Number(_0x298b85);if(!Number[_0x44d47a(0xfd)](_0x1f4f34)||_0x1f4f34<0x0)throw kbError(_0x44d47a(0xff),_0x44d47a(0x10b));return _0x1f4f34;}function noOpData(_0x5772b3,_0x4a3108,_0x2d60f7){const _0xf92ef2=a100_0x5c07ba;return{'operation':_0xf92ef2(0x118),'selector':{'id':_0x4a3108,'scope':'company','appCode':_0x5772b3[_0xf92ef2(0x110)]},'before':null,'after':null,'dryRun':_0x2d60f7,'deleteCalled':![],'backend':{'method':'POST','path':DELETE_PATH},'warnings':[],'verification':{'status':_0xf92ef2(0x107),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]}}};}export const kbDelete={'service':'kb','command':a100_0x5c07ba(0xf4),'description':'Soft-delete\x20a\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app','risk':a100_0x5c07ba(0xf5),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':a100_0x5c07ba(0x115),'required':!![],'description':a100_0x5c07ba(0x10a)},{'name':'expected-version','type':a100_0x5c07ba(0x115),'required':![],'description':'Non-atomic\x20preflight\x20assertion\x20for\x20the\x20current\x20version'}],async 'validate'(_0x1a6908){readKbId(_0x1a6908),readExpectedVersion(_0x1a6908),requireKbExplicitYes(_0x1a6908);},async 'dryRun'(_0x558945){const _0xe47630=a100_0x5c07ba,_0x27116d=readKbId(_0x558945),_0x6e32e4=readExpectedVersion(_0x558945),_0x4e8825=await getKbOrNull(_0x558945,_0x27116d);if(!_0x4e8825)return asDryRunResult(noOpData(_0x558945,_0x27116d,!![]),{'method':_0xe47630(0x104),'url':DELETE_PATH});assertExpectedKbVersion(_0x4e8825,_0x6e32e4);const _0x1b91cd=projectKb(_0x4e8825),_0x4a3093=[RAG_WARNING];if(_0x6e32e4!==undefined)_0x4a3093['unshift'](NON_ATOMIC_WARNING);return asDryRunResult({'operation':_0xe47630(0xf4),'selector':{'id':_0x1b91cd['id'],'scope':_0xe47630(0x109),'appCode':_0x1b91cd[_0xe47630(0x110)]},'before':_0x1b91cd,'after':null,'dryRun':!![],'deleteCalled':![],'backend':{'method':_0xe47630(0x104),'path':DELETE_PATH},'warnings':_0x4a3093,'verification':{'expectedVersion':_0x6e32e4??null,'atomicCompareAndSet':![],'snapshotHash':_0x1b91cd[_0xe47630(0x100)],'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'lookupCommand':_0xe47630(0xf9)+_0x1b91cd['id']+_0xe47630(0xf6)}},{'method':_0xe47630(0x104),'url':DELETE_PATH});},async 'execute'(_0x15d0ef){const _0x230de8=a100_0x5c07ba;requireKbExplicitYes(_0x15d0ef);const _0x26750f=readKbId(_0x15d0ef),_0x10f4bd=readExpectedVersion(_0x15d0ef),_0x13b504=await getKbOrNull(_0x15d0ef,_0x26750f);if(!_0x13b504)return{'ok':!![],'data':noOpData(_0x15d0ef,_0x26750f,![]),'message':_0x230de8(0x111)+_0x26750f+_0x230de8(0x101)};assertExpectedKbVersion(_0x13b504,_0x10f4bd);const _0x14c377=projectKb(_0x13b504);let _0x4ee86a=![];try{await deleteEnterpriseKnowledgeBase(_0x15d0ef[_0x230de8(0x108)],_0x26750f);}catch(_0x4e3766){if(!isPlatformTransportFailure(_0x4e3766))throw _0x4e3766;_0x4ee86a=!![];}const _0x13cf72=await verifyKbMutationReadback('delete',_0x4ee86a,()=>getKbOrNull(_0x15d0ef,_0x26750f));if(_0x13cf72)throw kbError(_0x4ee86a?_0x230de8(0x112):'kb_verification_failed',_0x230de8(0x111)+_0x26750f+_0x230de8(0x105),_0x230de8(0x102)+_0x26750f+'\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.');const _0x14c10e=[RAG_WARNING];if(_0x10f4bd!==undefined)_0x14c10e[_0x230de8(0xfa)](NON_ATOMIC_WARNING);return _0x4ee86a&&_0x14c10e[_0x230de8(0xfa)]('Delete\x20response\x20was\x20unavailable;\x20exact-ID\x20not-found\x20readback\x20verified\x20database\x20soft\x20deletion\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':_0x230de8(0xf4),'selector':{'id':_0x14c377['id'],'scope':_0x230de8(0x109),'appCode':_0x14c377['appCode']},'before':_0x14c377,'after':null,'dryRun':![],'deleteCalled':!![],'backend':{'method':_0x230de8(0x104),'path':DELETE_PATH},'warnings':_0x14c10e,'verification':{'status':'verified','databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'recoveredAfterUnknownResponse':_0x4ee86a,'lookupCommand':_0x230de8(0xf9)+_0x14c377['id']+'\x20--format\x20compress'}},'message':_0x230de8(0xfc)+_0x14c377['id']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a101_0x22ccba=a101_0x580c;(function(_0xc48907,_0xfd8c50){const _0x27dcaa=a101_0x580c,_0x128038=_0xc48907();while(!![]){try{const _0x20e9ab=-parseInt(_0x27dcaa(0x1fa))/0x1*(-parseInt(_0x27dcaa(0x1f2))/0x2)+-parseInt(_0x27dcaa(0x1f5))/0x3*(-parseInt(_0x27dcaa(0x1f0))/0x4)+-parseInt(_0x27dcaa(0x1f6))/0x5+parseInt(_0x27dcaa(0x1f4))/0x6+-parseInt(_0x27dcaa(0x1f1))/0x7*(parseInt(_0x27dcaa(0x1f3))/0x8)+-parseInt(_0x27dcaa(0x1f9))/0x9+parseInt(_0x27dcaa(0x1ef))/0xa;if(_0x20e9ab===_0xfd8c50)break;else _0x128038['push'](_0x128038['shift']());}catch(_0x4c9a71){_0x128038['push'](_0x128038['shift']());}}}(a101_0xfb71,0x20e77));import{projectKb,readKbId,requireKb}from'../../commands/kb/shared.js';function a101_0x580c(_0x5b9cbe,_0x4f0bd1){_0x5b9cbe=_0x5b9cbe-0x1ee;const _0xfb7178=a101_0xfb71();let _0x580cd2=_0xfb7178[_0x5b9cbe];return _0x580cd2;}function a101_0xfb71(){const _0x2fc4b2=['Show\x20one\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app','2003346lPoCVE','3343BMhuBt','Loaded\x20company\x20knowledge\x20base\x20','6516530yyrFrQ','16pFhqmO','1560629BHcCqq','2HZaDhI','8fudhHj','202824kKoJyf','14559DOlFiF','639480wiTqEQ','detail'];a101_0xfb71=function(){return _0x2fc4b2;};return a101_0xfb71();}export const kbDetail={'service':'kb','command':a101_0x22ccba(0x1f7),'description':a101_0x22ccba(0x1f8),'risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':'number','required':!![],'description':'Company\x20knowledge-base\x20id'}],async 'validate'(_0x2e65cd){readKbId(_0x2e65cd);},async 'execute'(_0x18fec9){const _0x54c84f=a101_0x22ccba,_0x3aabf4=readKbId(_0x18fec9),_0xeb09e2=await requireKb(_0x18fec9,_0x3aabf4);return{'ok':!![],'data':{'knowledgeBase':projectKb(_0xeb09e2)},'message':_0x54c84f(0x1ee)+_0x3aabf4};}};
|
package/lib/commands/kb/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4ed561,_0x5c4ff5){const _0x254d18=a102_0xe031,_0x1a1e1d=_0x4ed561();while(!![]){try{const _0x577814=-parseInt(_0x254d18(0x6b))/0x1*(parseInt(_0x254d18(0x6c))/0x2)+parseInt(_0x254d18(0x68))/0x3*(-parseInt(_0x254d18(0x70))/0x4)+parseInt(_0x254d18(0x6f))/0x5*(-parseInt(_0x254d18(0x72))/0x6)+-parseInt(_0x254d18(0x6d))/0x7*(parseInt(_0x254d18(0x6a))/0x8)+-parseInt(_0x254d18(0x6e))/0x9+-parseInt(_0x254d18(0x69))/0xa+-parseInt(_0x254d18(0x67))/0xb*(-parseInt(_0x254d18(0x71))/0xc);if(_0x577814===_0x5c4ff5)break;else _0x1a1e1d['push'](_0x1a1e1d['shift']());}catch(_0x570126){_0x1a1e1d['push'](_0x1a1e1d['shift']());}}}(a102_0x579e,0x90eb5));import{kbList}from'../../commands/kb/list.js';function a102_0x579e(){const _0xc86484=['231WsmdBc','9850TqPKiU','7AOBRAt','6523416xwuBvQ','1313505buUrJr','1083404mIcYMR','26543568nDdcjR','6svPlrK','22WhDedV','6JTUNDW','7948580zGRRLF','2948632lFLQJq'];a102_0x579e=function(){return _0xc86484;};return a102_0x579e();}import{kbDetail}from'../../commands/kb/detail.js';import{kbCreate}from'../../commands/kb/create.js';import{kbUpdate}from'../../commands/kb/update.js';function a102_0xe031(_0x501ced,_0x51afd7){_0x501ced=_0x501ced-0x67;const _0x579e78=a102_0x579e();let _0xe03195=_0x579e78[_0x501ced];return _0xe03195;}import{kbDelete}from'../../commands/kb/delete.js';export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbDelete];
|
package/lib/commands/kb/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a103_0x4e9f(){const _0x1a2210=['2670EOMcVl','49890TeVIvw','list','trim','4743lDCbjI','read','3LkVyda','string','286834iCfCZr','Filter\x20by\x20knowledge-base\x20title','6353226lLtboG','687472JxZDqG','6624PtfWwI','161YZYJkO','title','90490XECXTj','str','605WIHxPt','map','Found\x20','List\x20company\x20knowledge\x20bases\x20for\x20the\x20resolved\x20app'];a103_0x4e9f=function(){return _0x1a2210;};return a103_0x4e9f();}const a103_0x31361b=a103_0x2c44;(function(_0xda7620,_0x1ffa98){const _0x2781ba=a103_0x2c44,_0x3047af=_0xda7620();while(!![]){try{const _0x9b3892=-parseInt(_0x2781ba(0x15b))/0x1+parseInt(_0x2781ba(0x154))/0x2*(-parseInt(_0x2781ba(0x152))/0x3)+parseInt(_0x2781ba(0x158))/0x4*(-parseInt(_0x2781ba(0x15d))/0x5)+-parseInt(_0x2781ba(0x162))/0x6*(-parseInt(_0x2781ba(0x159))/0x7)+-parseInt(_0x2781ba(0x157))/0x8+parseInt(_0x2781ba(0x150))/0x9*(-parseInt(_0x2781ba(0x161))/0xa)+parseInt(_0x2781ba(0x156))/0xb;if(_0x9b3892===_0x1ffa98)break;else _0x3047af['push'](_0x3047af['shift']());}catch(_0x1b7371){_0x3047af['push'](_0x3047af['shift']());}}}(a103_0x4e9f,0x1a56d));function a103_0x2c44(_0xf3b742,_0x45bc3a){_0xf3b742=_0xf3b742-0x14e;const _0x4e9f96=a103_0x4e9f();let _0x2c448a=_0x4e9f96[_0xf3b742];return _0x2c448a;}import{fetchAllCompanyKnowledgeBases,projectKb}from'../../commands/kb/shared.js';export const kbList={'service':'kb','command':a103_0x31361b(0x14e),'description':a103_0x31361b(0x160),'risk':a103_0x31361b(0x151),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'title','type':a103_0x31361b(0x153),'required':![],'description':a103_0x31361b(0x155)}],async 'execute'(_0x4a64ec){const _0x3fe682=a103_0x31361b,_0x5db6b7=_0x4a64ec[_0x3fe682(0x15c)](_0x3fe682(0x15a))[_0x3fe682(0x14f)](),_0x5b762e=await fetchAllCompanyKnowledgeBases(_0x4a64ec,{..._0x5db6b7?{'title':_0x5db6b7}:{}}),_0x46eabf=_0x5b762e[_0x3fe682(0x15e)](projectKb);return{'ok':!![],'data':{'total':_0x46eabf['length'],'knowledgeBases':_0x46eabf},'message':_0x3fe682(0x15f)+_0x46eabf['length']+'\x20company\x20knowledge\x20base(s)\x20for\x20'+_0x4a64ec['appCode']};}};
|