@lovrabet/rabetbase-cli 2.4.1-beta.1 → 2.4.1
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/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 -1
- 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/react/create.js +1 -1
- package/lib/commands/page/react/detail.js +1 -1
- package/lib/commands/page/react/list.js +1 -1
- package/lib/commands/page/react/publish.js +1 -1
- package/lib/commands/page/react/shared.js +1 -1
- package/lib/commands/page/react/syntax.js +1 -1
- package/lib/commands/page/react/template.js +1 -1
- package/lib/commands/page/react/update.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/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/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 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- 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.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/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 +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a91_0x1c59bf=a91_0x49e5;function a91_0x183c(){const _0x1d60e8=['password','dbdesc','num','dbparam','Updated\x20db\x20link\x20','string','2579406EfMRNc','251703SYaYbY','136TRKoji','1571134gvGPMz','2043120geslQn','has','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','dbUrl','3OWxGPg','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20server\x20returns\x20a\x20masked\x20password','314372VEvVrU','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','New\x20description','write','dbname','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','validation','New\x20username','9579110WZseue','7rQWFZa','username','45TTnxuA','dburl','808719UeIraw','New\x20connection\x20parameter\x20string','dbDesc','New\x20host:port','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','[redacted]','55owhTgu','dbName','str','/smartapi/dblink/update'];a91_0x183c=function(){return _0x1d60e8;};return a91_0x183c();}(function(_0x5d76c6,_0x114b8c){const _0x4f049d=a91_0x49e5,_0x426fa6=_0x5d76c6();while(!![]){try{const _0x7bff9b=-parseInt(_0x4f049d(0x16e))/0x1+-parseInt(_0x4f049d(0x181))/0x2*(-parseInt(_0x4f049d(0x15f))/0x3)+parseInt(_0x4f049d(0x161))/0x4*(parseInt(_0x4f049d(0x16c))/0x5)+parseInt(_0x4f049d(0x17e))/0x6*(parseInt(_0x4f049d(0x16a))/0x7)+-parseInt(_0x4f049d(0x180))/0x8*(parseInt(_0x4f049d(0x17f))/0x9)+-parseInt(_0x4f049d(0x169))/0xa+parseInt(_0x4f049d(0x174))/0xb*(parseInt(_0x4f049d(0x182))/0xc);if(_0x7bff9b===_0x114b8c)break;else _0x426fa6['push'](_0x426fa6['shift']());}catch(_0x33ff88){_0x426fa6['push'](_0x426fa6['shift']());}}}(a91_0x183c,0x81e44));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';function a91_0x49e5(_0x3a336e,_0xb4d462){_0x3a336e=_0x3a336e-0x15c;const _0x183c99=a91_0x183c();let _0x49e50c=_0x183c99[_0x3a336e];return _0x49e50c;}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set(['******',a91_0x1c59bf(0x173)]);function mergeDbLinkUpdate(_0x567e2e,_0x2bba33){const _0x155c0=a91_0x1c59bf,_0x640248={..._0x567e2e},_0xcd0dd6=_0x2bba33[_0x155c0(0x176)](_0x155c0(0x178));if(_0xcd0dd6&&MASKED_PASSWORD_VALUES[_0x155c0(0x15c)](_0xcd0dd6))throw CliErrors['validation'](_0x155c0(0x166));if(!_0xcd0dd6&&MASKED_PASSWORD_VALUES['has'](String(_0x567e2e['password']??'')))throw CliErrors[_0x155c0(0x167)](_0x155c0(0x162));const _0x17f39d=_0x2bba33[_0x155c0(0x176)]('dbname');if(_0x17f39d)_0x640248[_0x155c0(0x175)]=_0x17f39d;const _0x45b609=_0x2bba33[_0x155c0(0x176)](_0x155c0(0x16d));if(_0x45b609)_0x640248[_0x155c0(0x15e)]=_0x45b609['trim']();const _0x1f8e6b=_0x2bba33['str'](_0x155c0(0x16b));if(_0x1f8e6b)_0x640248[_0x155c0(0x16b)]=_0x1f8e6b;if(_0xcd0dd6)_0x640248['password']=_0xcd0dd6;const _0x21ab76=_0x2bba33[_0x155c0(0x176)](_0x155c0(0x17b));if(_0x21ab76)_0x640248['dbParam']=_0x21ab76;const _0x538fa0=_0x2bba33['str'](_0x155c0(0x179));if(_0x538fa0)_0x640248[_0x155c0(0x170)]=_0x538fa0;return _0x640248;}export const dbUpdate={'service':'db','command':'update','description':'Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','risk':a91_0x1c59bf(0x164),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a91_0x1c59bf(0x165),'type':a91_0x1c59bf(0x17d),'description':'New\x20database\x20name'},{'name':a91_0x1c59bf(0x16d),'type':a91_0x1c59bf(0x17d),'description':a91_0x1c59bf(0x171)},{'name':a91_0x1c59bf(0x16b),'type':a91_0x1c59bf(0x17d),'description':a91_0x1c59bf(0x168)},{'name':a91_0x1c59bf(0x178),'type':'string','description':a91_0x1c59bf(0x160)},{'name':'dbparam','type':'string','description':a91_0x1c59bf(0x16f)},{'name':'dbdesc','type':'string','description':a91_0x1c59bf(0x163)}],async 'validate'(_0x1fa415){const _0x49b256=a91_0x1c59bf,_0x181cde=_0x1fa415['str']('dburl');if(_0x181cde&&!validateDbUrl(_0x181cde['trim']()))throw CliErrors[_0x49b256(0x167)](_0x49b256(0x172)+_0x181cde+'\x22');},async 'dryRun'(_0x4a0324){const _0x470ee9=a91_0x1c59bf,_0x4ec55f=_0x4a0324[_0x470ee9(0x17a)]('id'),_0x48e2fa=await getDbLinkInfo(_0x4ec55f),_0x17cd76=mergeDbLinkUpdate(_0x48e2fa,_0x4a0324),_0x666e0d=sanitizeDbLinkForOutput(_0x17cd76);return{'method':'POST','url':_0x470ee9(0x177),'body':_0x666e0d,'description':_0x470ee9(0x15d)};},async 'execute'(_0x18d2fe){const _0x3dfc48=a91_0x1c59bf,_0x172890=_0x18d2fe[_0x3dfc48(0x17a)]('id'),_0x23f2c6=await getDbLinkInfo(_0x172890),_0x3a4088=mergeDbLinkUpdate(_0x23f2c6,_0x18d2fe),{id:_0x5be957,entity:_0x51fe24}=normalizeEntityWithIdResponse(await updateDbLink(_0x3a4088));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x51fe24),'message':_0x3dfc48(0x17c)+(_0x5be957??_0x172890)};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a92_0x133e14=a92_0x30bb;(function(_0x250db8,_0x2122c6){const _0x591f6a=a92_0x30bb,_0xb2c41b=_0x250db8();while(!![]){try{const _0xe7bdde=parseInt(_0x591f6a(0x159))/0x1*(-parseInt(_0x591f6a(0x15b))/0x2)+parseInt(_0x591f6a(0x15e))/0x3*(parseInt(_0x591f6a(0x12f))/0x4)+parseInt(_0x591f6a(0x150))/0x5*(-parseInt(_0x591f6a(0x180))/0x6)+-parseInt(_0x591f6a(0x13d))/0x7*(parseInt(_0x591f6a(0x17c))/0x8)+-parseInt(_0x591f6a(0x169))/0x9+-parseInt(_0x591f6a(0x14c))/0xa+parseInt(_0x591f6a(0x141))/0xb;if(_0xe7bdde===_0x2122c6)break;else _0xb2c41b['push'](_0xb2c41b['shift']());}catch(_0x5d3f00){_0xb2c41b['push'](_0xb2c41b['shift']());}}}(a92_0x4f0b,0x2c447));import a92_0x23c810 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';function a92_0x4f0b(){const _0x3aa04b=['status','bold','✗\x20Not\x20logged\x20in','check','2506725WBhWAC','env','explicitAppName','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apiDir','locale','\x20\x20Built-in\x20Skill','\x20\x20─','empty','\x20(default)','\x20←\x20current','log','red','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','cookie','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','currentApp','744XbIzYu','packageVersion','(default:\x20','verbose','234AzTDXl','accessKey','appCode','(none)','(default)','✗\x20Invalid\x20JSON','doctor','apps','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','state','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','defaultApp','(set,\x20length=','19556ypBNIP','message','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','value','length','source','gray','repairCommand','(missing)','padEnd','yellow','repeat','23198NsjXBn','skillVersion','(not\x20found)','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','13574088CUllaf','reason','(set\x20via\x20file,\x20length=','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Auth','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20accessKey:\x20\x20','missing','arch','unknown','\x20\x20Installed\x20Path:\x20\x20','2244020bylxoj','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','green','pageSize','31345IJYSXV','✓\x20Valid\x20JSON','(no\x20file)','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','current','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','314854eSgQnT','format','2laUKfq','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','appcode','195weGNft','✓\x20Valid','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','raw','version'];a92_0x4f0b=function(){return _0x3aa04b;};return a92_0x4f0b();}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';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';function a92_0x30bb(_0xec365,_0x35f464){_0xec365=_0xec365-0x129;const _0x4f0bb8=a92_0x4f0b();let _0x30bb40=_0x4f0bb8[_0xec365];return _0x30bb40;}async function execute(_0x411adb){const _0xc116b0=a92_0x30bb,_0xadd8ba=GIT_COMMIT!==_0xc116b0(0x14a)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0xeee2bc=buildConfigFromFlags({}),_0x15b875=getCookie();console[_0xc116b0(0x175)](),console[_0xc116b0(0x175)](a92_0x23c810[_0xc116b0(0x166)](CLI_BIN_NAME+'\x20doctor')),console['log'](a92_0x23c810[_0xc116b0(0x137)]('─'[_0xc116b0(0x13c)](0x32))),console[_0xc116b0(0x175)](_0xc116b0(0x17a)+_0xadd8ba),console[_0xc116b0(0x175)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0xc116b0(0x164)]),console['log']('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process['platform']+'\x20'+process[_0xc116b0(0x149)]);const _0x2db84d=inspectBuiltinSkill();console[_0xc116b0(0x175)](),console[_0xc116b0(0x175)](a92_0x23c810[_0xc116b0(0x166)](_0xc116b0(0x170))),console[_0xc116b0(0x175)](a92_0x23c810[_0xc116b0(0x137)](_0xc116b0(0x171)['repeat'](0x1e)));const _0x514c3f=_0x2db84d['state']===_0xc116b0(0x154)?a92_0x23c810[_0xc116b0(0x14e)]('✓\x20'+_0x2db84d[_0xc116b0(0x12a)]):a92_0x23c810[_0xc116b0(0x176)]('✗\x20'+_0x2db84d['state']);console[_0xc116b0(0x175)](_0xc116b0(0x133)+_0x514c3f),console[_0xc116b0(0x175)]('\x20\x20Package\x20Version:\x20'+_0x2db84d[_0xc116b0(0x17d)]),console[_0xc116b0(0x175)]('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x2db84d[_0xc116b0(0x13e)]||a92_0x23c810[_0xc116b0(0x137)]('(unknown)'))),console['log'](_0xc116b0(0x14b)+(_0x2db84d['installedPath']||a92_0x23c810[_0xc116b0(0x137)](_0xc116b0(0x13f))));if(_0x2db84d[_0xc116b0(0x142)])console['log'](_0xc116b0(0x129)+_0x2db84d['reason']);_0x2db84d[_0xc116b0(0x12a)]!==_0xc116b0(0x154)&&console['log'](_0xc116b0(0x131)+_0x2db84d[_0xc116b0(0x138)]);console[_0xc116b0(0x175)](),console['log'](a92_0x23c810[_0xc116b0(0x166)](_0xc116b0(0x132))),console[_0xc116b0(0x175)](a92_0x23c810[_0xc116b0(0x137)](_0xc116b0(0x171)['repeat'](0x1e)));const _0x196cbd=getGlobalConfigPath(),_0x40766e=getProjectConfigPath();console[_0xc116b0(0x175)](_0xc116b0(0x162)+(_0x196cbd||a92_0x23c810[_0xc116b0(0x137)](_0xc116b0(0x13f)))),console[_0xc116b0(0x175)](_0xc116b0(0x153)+(_0x40766e||a92_0x23c810[_0xc116b0(0x137)](_0xc116b0(0x13f)))),console['log'](),console[_0xc116b0(0x175)](a92_0x23c810[_0xc116b0(0x166)]('\x20\x20Config\x20JSON')),console[_0xc116b0(0x175)](a92_0x23c810[_0xc116b0(0x137)](_0xc116b0(0x171)['repeat'](0x1e)));const _0x30530f=(_0x3e49df,_0x49ee86)=>{const _0x3f66ff=_0xc116b0;if(!_0x49ee86){console['log']('\x20\x20'+_0x3e49df[_0x3f66ff(0x13a)](0x11)+'\x20'+a92_0x23c810['gray'](_0x3f66ff(0x152)));return;}const _0x151a5f=inspectCliConfigJsonFile(_0x49ee86);if(_0x151a5f[_0x3f66ff(0x165)]==='ok')console['log']('\x20\x20'+_0x3e49df[_0x3f66ff(0x13a)](0x11)+'\x20'+a92_0x23c810[_0x3f66ff(0x14e)](_0x3f66ff(0x151)));else{if(_0x151a5f[_0x3f66ff(0x165)]===_0x3f66ff(0x172))console[_0x3f66ff(0x175)]('\x20\x20'+_0x3e49df[_0x3f66ff(0x13a)](0x11)+'\x20'+a92_0x23c810[_0x3f66ff(0x13b)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x151a5f[_0x3f66ff(0x165)]===_0x3f66ff(0x148)?console['log']('\x20\x20'+_0x3e49df[_0x3f66ff(0x13a)](0x11)+'\x20'+a92_0x23c810[_0x3f66ff(0x137)](_0x3f66ff(0x139))):(console[_0x3f66ff(0x175)]('\x20\x20'+_0x3e49df['padEnd'](0x11)+'\x20'+a92_0x23c810[_0x3f66ff(0x176)](_0x3f66ff(0x185))),console[_0x3f66ff(0x175)]('\x20\x20'+''[_0x3f66ff(0x13a)](0x11)+'\x20'+a92_0x23c810[_0x3f66ff(0x176)](_0x151a5f[_0x3f66ff(0x130)])));}};_0x30530f('Global',_0x196cbd),_0x30530f('Project',_0x40766e),console['log'](),console['log'](a92_0x23c810[_0xc116b0(0x166)](_0xc116b0(0x12c))),console[_0xc116b0(0x175)](a92_0x23c810['gray'](_0xc116b0(0x171)[_0xc116b0(0x13c)](0x1e))),console[_0xc116b0(0x175)](_0xc116b0(0x12b)+(_0xeee2bc[_0xc116b0(0x182)]||a92_0x23c810['red']('(not\x20set)'))),console[_0xc116b0(0x175)](_0xc116b0(0x144)+_0xeee2bc[_0xc116b0(0x16a)]),console['log'](_0xc116b0(0x146)+_0xeee2bc[_0xc116b0(0x16f)]),console[_0xc116b0(0x175)](_0xc116b0(0x177)+_0xeee2bc['apiDir']),console['log'](_0xc116b0(0x14d)+(_0xeee2bc[_0xc116b0(0x12d)]||a92_0x23c810[_0xc116b0(0x137)]('(none)'))),console['log'](_0xc116b0(0x156)+(_0xeee2bc[_0xc116b0(0x17b)]||a92_0x23c810['gray']('(none)'))),console[_0xc116b0(0x175)](_0xc116b0(0x161)+(_0xeee2bc[_0xc116b0(0x16b)]||a92_0x23c810[_0xc116b0(0x137)]('(none)'))),console[_0xc116b0(0x175)](_0xc116b0(0x16d)+(_0xeee2bc[_0xc116b0(0x15a)]||a92_0x23c810['gray'](_0xc116b0(0x17e)+DEFAULT_CONFIG_VALUES[_0xc116b0(0x15a)]+')'))),console['log'](_0xc116b0(0x160)+(_0xeee2bc[_0xc116b0(0x14f)]??a92_0x23c810[_0xc116b0(0x137)](_0xc116b0(0x184)))),console[_0xc116b0(0x175)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0xeee2bc['riskLevel']),console[_0xc116b0(0x175)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0xeee2bc[_0xc116b0(0x17f)]),console[_0xc116b0(0x175)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xeee2bc[_0xc116b0(0x179)]?a92_0x23c810['green'](_0xc116b0(0x12e)+_0xeee2bc[_0xc116b0(0x179)][_0xc116b0(0x135)]+')'):_0x15b875?a92_0x23c810['green'](_0xc116b0(0x143)+_0x15b875[_0xc116b0(0x135)]+')'):a92_0x23c810['gray'](_0xc116b0(0x183))));const _0x28ffd2=Object['keys'](_0xeee2bc[_0xc116b0(0x187)]);if(_0x28ffd2[_0xc116b0(0x135)]>0x0){console[_0xc116b0(0x175)](),console[_0xc116b0(0x175)](a92_0x23c810[_0xc116b0(0x166)]('\x20\x20Apps')),console[_0xc116b0(0x175)](a92_0x23c810[_0xc116b0(0x137)](_0xc116b0(0x171)[_0xc116b0(0x13c)](0x1e)));for(const _0x4aa224 of _0x28ffd2){const _0x32a869=_0xeee2bc[_0xc116b0(0x187)][_0x4aa224],_0x3931d4=_0x4aa224===_0xeee2bc[_0xc116b0(0x12d)],_0x4f3f24=_0x4aa224===_0xeee2bc[_0xc116b0(0x17b)],_0x24e06c=_0x4f3f24?a92_0x23c810[_0xc116b0(0x14e)](_0xc116b0(0x174)):'',_0xf3d3bd=_0x3931d4?_0xc116b0(0x173):'';console[_0xc116b0(0x175)]('\x20\x20'+_0x4aa224+_0xf3d3bd+_0x24e06c),console[_0xc116b0(0x175)](_0xc116b0(0x16c)+_0x32a869[_0xc116b0(0x15d)]);const _0x1d66f3=buildAppDoctorFields(_0x32a869,{'env':_0xeee2bc['env'],'apiDir':_0xeee2bc[_0xc116b0(0x163)]['apiDir']||DEFAULT_CONFIG_VALUES[_0xc116b0(0x16e)],'cookie':_0xeee2bc[_0xc116b0(0x179)]||_0x15b875||undefined,'accessKey':_0xeee2bc['accessKey']});console[_0xc116b0(0x175)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1d66f3[_0xc116b0(0x16a)][_0xc116b0(0x134)]+'\x20\x20'+a92_0x23c810[_0xc116b0(0x137)]('('+_0x1d66f3['env'][_0xc116b0(0x136)]+')')),console[_0xc116b0(0x175)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x1d66f3[_0xc116b0(0x16e)][_0xc116b0(0x134)]+'\x20\x20'+a92_0x23c810['gray']('('+_0x1d66f3['apiDir']['source']+')'));const _0x290ced=_0x1d66f3[_0xc116b0(0x179)]['value']?a92_0x23c810['green']('(set,\x20length='+_0x1d66f3[_0xc116b0(0x179)][_0xc116b0(0x134)][_0xc116b0(0x135)]+')'):a92_0x23c810['gray'](_0xc116b0(0x183));console[_0xc116b0(0x175)](_0xc116b0(0x15c)+_0x290ced+'\x20\x20'+a92_0x23c810[_0xc116b0(0x137)]('('+_0x1d66f3['cookie'][_0xc116b0(0x136)]+')'));const _0x3f5281=_0x1d66f3[_0xc116b0(0x181)][_0xc116b0(0x134)]?a92_0x23c810[_0xc116b0(0x14e)]('(set,\x20length='+_0x1d66f3[_0xc116b0(0x181)][_0xc116b0(0x134)][_0xc116b0(0x135)]+')'):a92_0x23c810[_0xc116b0(0x137)](_0xc116b0(0x183));console[_0xc116b0(0x175)](_0xc116b0(0x147)+_0x3f5281+'\x20\x20'+a92_0x23c810[_0xc116b0(0x137)]('('+_0x1d66f3[_0xc116b0(0x181)]['source']+')'));}}console[_0xc116b0(0x175)](),console[_0xc116b0(0x175)](a92_0x23c810[_0xc116b0(0x166)](_0xc116b0(0x178))),console[_0xc116b0(0x175)](a92_0x23c810[_0xc116b0(0x137)]('\x20\x20─'[_0xc116b0(0x13c)](0x1e))),console[_0xc116b0(0x175)](_0xc116b0(0x140)+getApiDomain()),console[_0xc116b0(0x175)](_0xc116b0(0x158)+getUserDomain()),console[_0xc116b0(0x175)](_0xc116b0(0x157)+getRuntimeDomain()),console[_0xc116b0(0x175)](),console[_0xc116b0(0x175)](a92_0x23c810[_0xc116b0(0x166)](_0xc116b0(0x145))),console[_0xc116b0(0x175)](a92_0x23c810[_0xc116b0(0x137)]('\x20\x20─'[_0xc116b0(0x13c)](0x1e)));if(_0x15b875){const _0x180f2b=await getIsSessionValid();console[_0xc116b0(0x175)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x180f2b?a92_0x23c810[_0xc116b0(0x14e)](_0xc116b0(0x15f)):a92_0x23c810[_0xc116b0(0x176)]('✗\x20Expired')));}else console[_0xc116b0(0x175)](_0xc116b0(0x155)+a92_0x23c810[_0xc116b0(0x176)](_0xc116b0(0x167)));return console[_0xc116b0(0x175)](),{'ok':!![]};}export const doctorDefinition={'service':a92_0x133e14(0x186),'command':a92_0x133e14(0x168),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a92_0x14c235=a92_0x27dc;(function(_0x228702,_0x26699a){const _0x295a46=a92_0x27dc,_0x5217ff=_0x228702();while(!![]){try{const _0x299350=-parseInt(_0x295a46(0x154))/0x1+parseInt(_0x295a46(0x189))/0x2+parseInt(_0x295a46(0x159))/0x3*(-parseInt(_0x295a46(0x15c))/0x4)+-parseInt(_0x295a46(0x17d))/0x5+parseInt(_0x295a46(0x174))/0x6+parseInt(_0x295a46(0x167))/0x7*(-parseInt(_0x295a46(0x14d))/0x8)+parseInt(_0x295a46(0x185))/0x9;if(_0x299350===_0x26699a)break;else _0x5217ff['push'](_0x5217ff['shift']());}catch(_0x1ad03f){_0x5217ff['push'](_0x5217ff['shift']());}}}(a92_0x1ba1,0x67d21));function a92_0x1ba1(){const _0x4edef8=['\x20←\x20current','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','reason','Global','\x20\x20\x20\x20accessKey:\x20\x20','unknown','\x20\x20─','(none)','1248700RMWIVr','green','yellow','\x20\x20Built-in\x20Skill','(set,\x20length=','installedPath','doctor','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','16834644cTJdeX','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','raw','packageVersion','317204HqwcUi','status','(set\x20via\x20file,\x20length=','\x20\x20Installed\x20Path:\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','riskLevel','✗\x20Expired','currentApp','repeat','accessKey','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','current','message','value','check','(missing)','bold','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','Project','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','log','version','format','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','source','(no\x20file)','cookie','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','repairCommand','apiDir','✓\x20Valid','(default)','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid\x20JSON','4820872JRjqXC','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','apps','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','env','751099AcJNHl','red','✗\x20Not\x20logged\x20in','state','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','957IPQTwg','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','defaultApp','7052zjmgTQ','read','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','gray','padEnd','✓\x20Valid\x20JSON','empty','\x20\x20Skill\x20Version:\x20\x20\x20','\x20\x20Merged\x20Config','(default:\x20','platform','7tggWGK','\x20\x20API\x20Endpoints','pageSize','missing','length','\x20(default)','(not\x20found)','appcode','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','arch','\x20\x20Apps','keys','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','3371856axObSo'];a92_0x1ba1=function(){return _0x4edef8;};return a92_0x1ba1();}import a92_0x1f13ff 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';function a92_0x27dc(_0x436d62,_0x4e7c12){_0x436d62=_0x436d62-0x12d;const _0x1ba1d0=a92_0x1ba1();let _0x27dcba=_0x1ba1d0[_0x436d62];return _0x27dcba;}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';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x3ffad8){const _0x8cd437=a92_0x27dc,_0x372ad2=GIT_COMMIT!==_0x8cd437(0x17a)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0xb7a017=buildConfigFromFlags({}),_0x4be8e8=getCookie();console[_0x8cd437(0x13e)](),console[_0x8cd437(0x13e)](a92_0x1f13ff['bold'](CLI_BIN_NAME+'\x20doctor')),console['log'](a92_0x1f13ff[_0x8cd437(0x15f)]('─'[_0x8cd437(0x130)](0x32))),console[_0x8cd437(0x13e)](_0x8cd437(0x13d)+_0x372ad2),console[_0x8cd437(0x13e)](_0x8cd437(0x186)+process[_0x8cd437(0x13f)]),console[_0x8cd437(0x13e)](_0x8cd437(0x173)+process[_0x8cd437(0x166)]+'\x20'+process[_0x8cd437(0x170)]);const _0x436469=inspectBuiltinSkill();console[_0x8cd437(0x13e)](),console[_0x8cd437(0x13e)](a92_0x1f13ff[_0x8cd437(0x138)](_0x8cd437(0x180))),console[_0x8cd437(0x13e)](a92_0x1f13ff['gray'](_0x8cd437(0x17b)[_0x8cd437(0x130)](0x1e)));const _0x227277=_0x436469['state']===_0x8cd437(0x133)?a92_0x1f13ff[_0x8cd437(0x17e)]('✓\x20'+_0x436469[_0x8cd437(0x157)]):a92_0x1f13ff[_0x8cd437(0x155)]('✗\x20'+_0x436469['state']);console[_0x8cd437(0x13e)](_0x8cd437(0x15e)+_0x227277),console[_0x8cd437(0x13e)]('\x20\x20Package\x20Version:\x20'+_0x436469[_0x8cd437(0x188)]),console[_0x8cd437(0x13e)](_0x8cd437(0x163)+(_0x436469['skillVersion']||a92_0x1f13ff[_0x8cd437(0x15f)]('(unknown)'))),console[_0x8cd437(0x13e)](_0x8cd437(0x18c)+(_0x436469[_0x8cd437(0x182)]||a92_0x1f13ff[_0x8cd437(0x15f)](_0x8cd437(0x16d))));if(_0x436469[_0x8cd437(0x177)])console[_0x8cd437(0x13e)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x436469['reason']);_0x436469[_0x8cd437(0x157)]!==_0x8cd437(0x133)&&console[_0x8cd437(0x13e)](_0x8cd437(0x14b)+_0x436469[_0x8cd437(0x147)]);console[_0x8cd437(0x13e)](),console[_0x8cd437(0x13e)](a92_0x1f13ff[_0x8cd437(0x138)](_0x8cd437(0x13a))),console[_0x8cd437(0x13e)](a92_0x1f13ff['gray'](_0x8cd437(0x17b)[_0x8cd437(0x130)](0x1e)));const _0x57b4db=getGlobalConfigPath(),_0x16946e=getProjectConfigPath();console[_0x8cd437(0x13e)](_0x8cd437(0x152)+(_0x57b4db||a92_0x1f13ff[_0x8cd437(0x15f)](_0x8cd437(0x16d)))),console[_0x8cd437(0x13e)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x16946e||a92_0x1f13ff[_0x8cd437(0x15f)](_0x8cd437(0x16d)))),console[_0x8cd437(0x13e)](),console[_0x8cd437(0x13e)](a92_0x1f13ff[_0x8cd437(0x138)](_0x8cd437(0x14f))),console['log'](a92_0x1f13ff[_0x8cd437(0x15f)](_0x8cd437(0x17b)[_0x8cd437(0x130)](0x1e)));const _0x42114b=(_0x45dca8,_0x128c55)=>{const _0x171bb1=_0x8cd437;if(!_0x128c55){console[_0x171bb1(0x13e)]('\x20\x20'+_0x45dca8['padEnd'](0x11)+'\x20'+a92_0x1f13ff[_0x171bb1(0x15f)](_0x171bb1(0x143)));return;}const _0x4d708c=inspectCliConfigJsonFile(_0x128c55);if(_0x4d708c[_0x171bb1(0x18a)]==='ok')console[_0x171bb1(0x13e)]('\x20\x20'+_0x45dca8['padEnd'](0x11)+'\x20'+a92_0x1f13ff[_0x171bb1(0x17e)](_0x171bb1(0x161)));else{if(_0x4d708c[_0x171bb1(0x18a)]===_0x171bb1(0x162))console[_0x171bb1(0x13e)]('\x20\x20'+_0x45dca8[_0x171bb1(0x160)](0x11)+'\x20'+a92_0x1f13ff[_0x171bb1(0x17f)](_0x171bb1(0x13c)));else _0x4d708c['status']===_0x171bb1(0x16a)?console[_0x171bb1(0x13e)]('\x20\x20'+_0x45dca8[_0x171bb1(0x160)](0x11)+'\x20'+a92_0x1f13ff['gray'](_0x171bb1(0x137))):(console[_0x171bb1(0x13e)]('\x20\x20'+_0x45dca8[_0x171bb1(0x160)](0x11)+'\x20'+a92_0x1f13ff[_0x171bb1(0x155)](_0x171bb1(0x14c))),console[_0x171bb1(0x13e)]('\x20\x20'+''[_0x171bb1(0x160)](0x11)+'\x20'+a92_0x1f13ff[_0x171bb1(0x155)](_0x4d708c[_0x171bb1(0x134)])));}};_0x42114b(_0x8cd437(0x178),_0x57b4db),_0x42114b(_0x8cd437(0x13b),_0x16946e),console[_0x8cd437(0x13e)](),console[_0x8cd437(0x13e)](a92_0x1f13ff[_0x8cd437(0x138)](_0x8cd437(0x164))),console[_0x8cd437(0x13e)](a92_0x1f13ff[_0x8cd437(0x15f)](_0x8cd437(0x17b)[_0x8cd437(0x130)](0x1e))),console[_0x8cd437(0x13e)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xb7a017['appCode']||a92_0x1f13ff['red']('(not\x20set)'))),console['log'](_0x8cd437(0x145)+_0xb7a017['env']),console[_0x8cd437(0x13e)](_0x8cd437(0x158)+_0xb7a017['locale']),console[_0x8cd437(0x13e)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0xb7a017[_0x8cd437(0x148)]),console[_0x8cd437(0x13e)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0xb7a017[_0x8cd437(0x15b)]||a92_0x1f13ff[_0x8cd437(0x15f)]('(none)'))),console[_0x8cd437(0x13e)](_0x8cd437(0x14e)+(_0xb7a017[_0x8cd437(0x12f)]||a92_0x1f13ff['gray'](_0x8cd437(0x17c)))),console[_0x8cd437(0x13e)]('\x20\x20explicitAppName:\x20'+(_0xb7a017['explicitAppName']||a92_0x1f13ff[_0x8cd437(0x15f)](_0x8cd437(0x17c)))),console[_0x8cd437(0x13e)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xb7a017[_0x8cd437(0x140)]||a92_0x1f13ff['gray'](_0x8cd437(0x165)+DEFAULT_CONFIG_VALUES[_0x8cd437(0x140)]+')'))),console['log'](_0x8cd437(0x151)+(_0xb7a017[_0x8cd437(0x169)]??a92_0x1f13ff[_0x8cd437(0x15f)](_0x8cd437(0x14a)))),console[_0x8cd437(0x13e)](_0x8cd437(0x15a)+_0xb7a017[_0x8cd437(0x12d)]),console[_0x8cd437(0x13e)](_0x8cd437(0x176)+_0xb7a017['verbose']),console[_0x8cd437(0x13e)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xb7a017['cookie']?a92_0x1f13ff['green'](_0x8cd437(0x181)+_0xb7a017['cookie'][_0x8cd437(0x16b)]+')'):_0x4be8e8?a92_0x1f13ff[_0x8cd437(0x17e)](_0x8cd437(0x18b)+_0x4be8e8[_0x8cd437(0x16b)]+')'):a92_0x1f13ff[_0x8cd437(0x15f)](_0x8cd437(0x17c))));const _0x4c1d2c=Object[_0x8cd437(0x172)](_0xb7a017[_0x8cd437(0x150)]);if(_0x4c1d2c[_0x8cd437(0x16b)]>0x0){console['log'](),console['log'](a92_0x1f13ff[_0x8cd437(0x138)](_0x8cd437(0x171))),console[_0x8cd437(0x13e)](a92_0x1f13ff[_0x8cd437(0x15f)]('\x20\x20─'[_0x8cd437(0x130)](0x1e)));for(const _0x214aa7 of _0x4c1d2c){const _0x3ebd4e=_0xb7a017[_0x8cd437(0x150)][_0x214aa7],_0x33e4ce=_0x214aa7===_0xb7a017[_0x8cd437(0x15b)],_0x2af403=_0x214aa7===_0xb7a017[_0x8cd437(0x12f)],_0x167826=_0x2af403?a92_0x1f13ff['green'](_0x8cd437(0x175)):'',_0x342cff=_0x33e4ce?_0x8cd437(0x16c):'';console['log']('\x20\x20'+_0x214aa7+_0x342cff+_0x167826),console[_0x8cd437(0x13e)](_0x8cd437(0x146)+_0x3ebd4e[_0x8cd437(0x16e)]);const _0x16b602=buildAppDoctorFields(_0x3ebd4e,{'env':_0xb7a017[_0x8cd437(0x153)],'apiDir':_0xb7a017[_0x8cd437(0x187)][_0x8cd437(0x148)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0xb7a017[_0x8cd437(0x144)]||_0x4be8e8||undefined,'accessKey':_0xb7a017[_0x8cd437(0x131)]});console[_0x8cd437(0x13e)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x16b602['env']['value']+'\x20\x20'+a92_0x1f13ff[_0x8cd437(0x15f)]('('+_0x16b602[_0x8cd437(0x153)][_0x8cd437(0x142)]+')')),console[_0x8cd437(0x13e)](_0x8cd437(0x18d)+_0x16b602[_0x8cd437(0x148)][_0x8cd437(0x135)]+'\x20\x20'+a92_0x1f13ff[_0x8cd437(0x15f)]('('+_0x16b602[_0x8cd437(0x148)][_0x8cd437(0x142)]+')'));const _0x303a19=_0x16b602['cookie'][_0x8cd437(0x135)]?a92_0x1f13ff[_0x8cd437(0x17e)](_0x8cd437(0x181)+_0x16b602['cookie'][_0x8cd437(0x135)][_0x8cd437(0x16b)]+')'):a92_0x1f13ff[_0x8cd437(0x15f)](_0x8cd437(0x17c));console[_0x8cd437(0x13e)](_0x8cd437(0x16f)+_0x303a19+'\x20\x20'+a92_0x1f13ff['gray']('('+_0x16b602[_0x8cd437(0x144)][_0x8cd437(0x142)]+')'));const _0x4fd821=_0x16b602['accessKey']['value']?a92_0x1f13ff[_0x8cd437(0x17e)](_0x8cd437(0x181)+_0x16b602[_0x8cd437(0x131)]['value']['length']+')'):a92_0x1f13ff[_0x8cd437(0x15f)]('(none)');console[_0x8cd437(0x13e)](_0x8cd437(0x179)+_0x4fd821+'\x20\x20'+a92_0x1f13ff[_0x8cd437(0x15f)]('('+_0x16b602[_0x8cd437(0x131)]['source']+')'));}}console[_0x8cd437(0x13e)](),console[_0x8cd437(0x13e)](a92_0x1f13ff[_0x8cd437(0x138)](_0x8cd437(0x168))),console[_0x8cd437(0x13e)](a92_0x1f13ff['gray'](_0x8cd437(0x17b)[_0x8cd437(0x130)](0x1e))),console[_0x8cd437(0x13e)](_0x8cd437(0x184)+getApiDomain()),console[_0x8cd437(0x13e)](_0x8cd437(0x132)+getUserDomain()),console['log']('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console['log'](),console[_0x8cd437(0x13e)](a92_0x1f13ff['bold']('\x20\x20Auth')),console[_0x8cd437(0x13e)](a92_0x1f13ff[_0x8cd437(0x15f)](_0x8cd437(0x17b)[_0x8cd437(0x130)](0x1e)));if(_0x4be8e8){const _0x518eec=await getIsSessionValid();console[_0x8cd437(0x13e)](_0x8cd437(0x139)+(_0x518eec?a92_0x1f13ff[_0x8cd437(0x17e)](_0x8cd437(0x149)):a92_0x1f13ff['red'](_0x8cd437(0x12e))));}else console['log'](_0x8cd437(0x139)+a92_0x1f13ff[_0x8cd437(0x155)](_0x8cd437(0x156)));return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a92_0x14c235(0x183),'command':a92_0x14c235(0x136),'description':a92_0x14c235(0x141),'risk':a92_0x14c235(0x15d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a93_0x579269=a93_0x2665;(function(_0x26b83e,_0x26e438){const _0x1d579d=a93_0x2665,_0x11dc04=_0x26b83e();while(!![]){try{const _0x5a57c4=-parseInt(_0x1d579d(0xb6))/0x1*(parseInt(_0x1d579d(0xb2))/0x2)+parseInt(_0x1d579d(0x9d))/0x3*(parseInt(_0x1d579d(0xb9))/0x4)+-parseInt(_0x1d579d(0xba))/0x5+-parseInt(_0x1d579d(0xaf))/0x6+parseInt(_0x1d579d(0x9a))/0x7+-parseInt(_0x1d579d(0xbc))/0x8+parseInt(_0x1d579d(0xb4))/0x9;if(_0x5a57c4===_0x26e438)break;else _0x11dc04['push'](_0x11dc04['shift']());}catch(_0x25856b){_0x11dc04['push'](_0x11dc04['shift']());}}}(a93_0x28ef,0xe9022));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';function a93_0x2665(_0x48047b,_0x3323de){_0x48047b=_0x48047b-0x9a;const _0x28ef34=a93_0x28ef();let _0x2665a8=_0x28ef34[_0x48047b];return _0x2665a8;}import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a93_0x579269(0xa7),'type':a93_0x579269(0xad),'required':!![],'description':a93_0x579269(0xac)},FILEPATH_FLAG={'name':a93_0x579269(0xa4),'type':'string','required':!![],'description':a93_0x579269(0xa3)},DOWNLOAD_FLAG={'name':a93_0x579269(0xa0),'type':'boolean','description':a93_0x579269(0x9c)},LONG_TERM_FLAG={'name':a93_0x579269(0xa8),'type':a93_0x579269(0xa5),'description':a93_0x579269(0xa9)};function requireFilePath(_0x3bbab2){const _0x50de15=a93_0x579269,_0x2f7558=_0x3bbab2['trim']();if(!_0x2f7558)throw CliErrors[_0x50de15(0xae)]('filePath\x20is\x20required.');return _0x2f7558;}function a93_0x28ef(){const _0x3414f0=['Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','filePath','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','Path\x20to\x20the\x20local\x20file\x20to\x20upload','string','validation','9856128cPbFDA','appCode','File','749716iIAJFS','Preview:\x20upload\x20','33971580ARkJem','str','3vhPavg','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','/smartapi/common/uploadFile','2016932IbTnsX','6962310CNFgeI','Uploaded\x20file:\x20','8807976psNLYv','10024259SkQvDv','bool','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','6OWLkKy','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','read','download','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','upload','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','filepath','boolean','\x20to\x20development\x20app\x20','file','long-term'];a93_0x28ef=function(){return _0x3414f0;};return a93_0x28ef();}const fileUpload={'service':'file','command':a93_0x579269(0xa2),'description':a93_0x579269(0xb7),'risk':a93_0x579269(0x9f),'flags':[FILE_FLAG],async 'dryRun'(_0x58fdd8){const _0x4872cf=a93_0x579269,_0x322cb2=requireDevelopmentUploadFile(_0x58fdd8[_0x4872cf(0xb5)](_0x4872cf(0xa7)),_0x4872cf(0xb1));return{'method':'POST','url':_0x4872cf(0xb8),'body':{'appCode':_0x58fdd8[_0x4872cf(0xb0)],'multipart':{'file':_0x322cb2}},'description':_0x4872cf(0xb3)+_0x322cb2['path']+_0x4872cf(0xa6)+_0x58fdd8[_0x4872cf(0xb0)]};},async 'execute'(_0x1a82a0){const _0x1011cf=a93_0x579269,_0x8a89b6=requireDevelopmentUploadFile(_0x1a82a0[_0x1011cf(0xb5)]('file'),_0x1011cf(0xb1)),_0x9b75a8=await uploadDevelopmentFile(_0x1a82a0[_0x1011cf(0xb0)],_0x8a89b6['path']);return{'ok':!![],'data':_0x9b75a8,'message':_0x9b75a8[_0x1011cf(0xaa)]?_0x1011cf(0xbb)+_0x9b75a8[_0x1011cf(0xaa)]+_0x1011cf(0xa1):_0x1011cf(0x9e)};}},fileQueryUrl={'service':a93_0x579269(0xa7),'command':'query-url','description':a93_0x579269(0xab),'risk':a93_0x579269(0x9f),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x4629ff){const _0x3cd6c0=a93_0x579269,_0x552bf7=requireFilePath(_0x4629ff[_0x3cd6c0(0xb5)](_0x3cd6c0(0xa4))),_0x26f958=await queryDevelopmentFileUrl(_0x552bf7,{'download':_0x4629ff[_0x3cd6c0(0x9b)](_0x3cd6c0(0xa0)),'longTerm':_0x4629ff[_0x3cd6c0(0x9b)](_0x3cd6c0(0xa8))});return{'ok':!![],'data':_0x26f958};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a94_0x561533=a94_0x57e6;(function(_0x335e7c,_0x3be421){const _0xbbe364=a94_0x57e6,_0xbc3feb=_0x335e7c();while(!![]){try{const _0x1abf0c=-parseInt(_0xbbe364(0x1d2))/0x1+parseInt(_0xbbe364(0x1e6))/0x2*(-parseInt(_0xbbe364(0x1c9))/0x3)+-parseInt(_0xbbe364(0x1c0))/0x4+-parseInt(_0xbbe364(0x1ba))/0x5+parseInt(_0xbbe364(0x1dd))/0x6*(parseInt(_0xbbe364(0x1df))/0x7)+-parseInt(_0xbbe364(0x1d4))/0x8*(-parseInt(_0xbbe364(0x1c3))/0x9)+parseInt(_0xbbe364(0x1c2))/0xa*(parseInt(_0xbbe364(0x1c5))/0xb);if(_0x1abf0c===_0x3be421)break;else _0xbc3feb['push'](_0xbc3feb['shift']());}catch(_0x590030){_0xbc3feb['push'](_0xbc3feb['shift']());}}}(a94_0x22c4,0xdc6cd));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';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';function a94_0x57e6(_0x2f2279,_0x42c0bb){_0x2f2279=_0x2f2279-0x1ba;const _0x22c47d=a94_0x22c4();let _0x57e676=_0x22c47d[_0x2f2279];return _0x57e676;}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';function a94_0x22c4(){const _0x4b0f59=['nonInteractive','boolean','map','global','project','32774zDaxxR','Write\x20to\x20global\x20config\x20instead\x20of\x20project','run','7748220NaEuqI','validation','write','log','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','\x0a✓\x20Successfully\x20initialized\x20','1514080JCDAOY','Target\x20environment','350sUxgaS','915633tRXyfT','\x20config','885742HeMXiN','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','str','3ErltJz','\x20\x20Apps:\x20','join','yes','appCode','bool','valid','init','\x20\x20Env:\x20','1268116FABeWu','string','8uuLDWt','\x20\x20Default:\x20','\x20\x20Config:\x20','toLocaleString','env','Use\x20`','custom','message','production','23214KAKuwC','appcode','2163WnZcQJ','Auto-confirm\x20prompts'];a94_0x22c4=function(){return _0x4b0f59;};return a94_0x22c4();}import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x4f5d55){return{'appCode':_0x4f5d55,'appName':_0x4f5d55};}function writeInitConfig(_0x5bb999,_0x2ef6d7,_0xa201fc){const _0x1d72c1=a94_0x57e6,_0x5a8135=resolveWriteConfigPath(_0x5bb999),_0x1194b2=buildCanonicalProjectConfig({},{'appCodes':_0x2ef6d7[_0x1d72c1(0x1e3)](_0x4e6fa2=>_0x4e6fa2[_0x1d72c1(0x1cd)]),'env':_0xa201fc,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x1d72c1(0x1d7)]()}});writeConfigFile(_0x5a8135,_0x1194b2);const _0x2e500a=_0x5bb999===_0x1d72c1(0x1e4)?_0x1d72c1(0x1e4):'project';console[_0x1d72c1(0x1bd)](_0x1d72c1(0x1bf)+_0x2e500a+_0x1d72c1(0x1c4)),console[_0x1d72c1(0x1bd)](_0x1d72c1(0x1ca)+_0x2ef6d7[_0x1d72c1(0x1e3)](_0x22e26e=>_0x22e26e[_0x1d72c1(0x1cd)])[_0x1d72c1(0x1cb)](',\x20')),console['log'](_0x1d72c1(0x1d5)+_0x1194b2['defaultApp']),console[_0x1d72c1(0x1bd)](_0x1d72c1(0x1d1)+_0x1194b2['env']),console['log'](_0x1d72c1(0x1d6)+_0x5a8135);}async function runSmartInit(_0x1c1f07){const _0x4dda91=a94_0x57e6,_0x990f76=process['cwd'](),_0x437333=_0x1c1f07['bool'](_0x4dda91(0x1e4))?_0x4dda91(0x1e4):_0x4dda91(0x1e5),_0x9aad49=_0x1c1f07['str'](_0x4dda91(0x1d8))||'production',_0x26c897=_0x1c1f07[_0x4dda91(0x1c8)](_0x4dda91(0x1de))||undefined;if(_0x437333===_0x4dda91(0x1e5)){const _0x2853e3=existsSync(resolve(_0x990f76,NEW_CONFIG_NAME)),_0x192521=LEGACY_CONFIG_NAMES['some'](_0x1ece0e=>existsSync(resolve(_0x990f76,_0x1ece0e)));if(_0x192521&&!_0x2853e3)return console['log']('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x1c1f07[_0x4dda91(0x1e1)],{'yes':_0x1c1f07[_0x4dda91(0x1ce)](_0x4dda91(0x1cc))});if(_0x2853e3)throw CliErrors[_0x4dda91(0x1bb)](_0x4dda91(0x1be),_0x4dda91(0x1d9)+CLI_BIN_NAME+_0x4dda91(0x1c6));}if(_0x26c897){const _0x5591eb=validateAppcode(_0x26c897);if(!_0x5591eb[_0x4dda91(0x1cf)])throw CliErrors[_0x4dda91(0x1bb)](_0x5591eb[_0x4dda91(0x1db)]);writeInitConfig(_0x437333,[syntheticApp(_0x26c897)],_0x9aad49);return;}if(_0x1c1f07[_0x4dda91(0x1e1)])throw CliErrors['flagMissing'](_0x4dda91(0x1de),'Usage:\x20'+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]');const _0x1107fa=getCookie(),_0x3509ef=await selectMultipleApps(_0x1107fa),_0x44c19b=_0x3509ef===_0x4dda91(0x1da)?[syntheticApp(await promptCustomAppcode())]:_0x3509ef;writeInitConfig(_0x437333,_0x44c19b,_0x9aad49);}const initFlags=[{'name':a94_0x561533(0x1e4),'type':a94_0x561533(0x1e2),'description':a94_0x561533(0x1e7),'default':![]},{'name':'env','type':'string','description':a94_0x561533(0x1c1),'default':a94_0x561533(0x1dc),'enum':[...RABETBASE_ENV_VALUES]},{'name':a94_0x561533(0x1de),'type':a94_0x561533(0x1d3),'description':'App\x20code\x20to\x20initialize\x20with'},{'name':a94_0x561533(0x1cc),'type':a94_0x561533(0x1e2),'description':a94_0x561533(0x1e0),'default':![]}];export const initDefinitions=[{'service':a94_0x561533(0x1d0),'command':a94_0x561533(0x1e8),'description':a94_0x561533(0x1c7),'risk':a94_0x561533(0x1bc),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x12c5d4){return await runSmartInit(_0x12c5d4),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x46b6bb,_0x4db3ab){const _0x4f5da5=a95_0x4895,_0xc734b3=_0x46b6bb();while(!![]){try{const _0x55ae1d=parseInt(_0x4f5da5(0x117))/0x1+-parseInt(_0x4f5da5(0x11a))/0x2+-parseInt(_0x4f5da5(0x11c))/0x3+-parseInt(_0x4f5da5(0x119))/0x4*(parseInt(_0x4f5da5(0x11d))/0x5)+-parseInt(_0x4f5da5(0x11b))/0x6+-parseInt(_0x4f5da5(0x11e))/0x7+-parseInt(_0x4f5da5(0x118))/0x8*(-parseInt(_0x4f5da5(0x11f))/0x9);if(_0x55ae1d===_0x4db3ab)break;else _0xc734b3['push'](_0xc734b3['shift']());}catch(_0x10f703){_0xc734b3['push'](_0xc734b3['shift']());}}}(a95_0x1380,0x5c13b));function a95_0x1380(){const _0x23387e=['4679253fNvHHC','10330vuZyRI','40AgjcPi','853580zsWwlS','894756pRheiC','1616004YFzkvt','1490748nBvxEm','10HfTbeb','4146450DXqAAx'];a95_0x1380=function(){return _0x23387e;};return a95_0x1380();}function a95_0x4895(_0x598494,_0x10b63e){_0x598494=_0x598494-0x117;const _0x1380bc=a95_0x1380();let _0x4895a9=_0x1380bc[_0x598494];return _0x4895a9;}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a96_0x2f71(){const _0x599838=['\x22\x20\x5c','service','slice','command','186rGRvrx','1241779jwjogk','=1\x20to\x20silence\x20this\x20hint.','245581ksreyl','4metHWH','message','1330iXbiqQ','flag_missing','validation_error','920280YNeXNH','RABETBASE_DISABLE_ISSUE_NUDGE','length','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','join','\x20issue\x20report\x20\x5c','has','auth_required','100tSlTEX','stderr','Hit\x20a\x20','issue','26jbtpGj','code','cancelled','5847uruUJj','\x20\x20\x20\x20--title\x20\x22','report','9qcidPv','write','303364xXNHHR','10453232sUHfhf','replace','4901885Pcvuga'];a96_0x2f71=function(){return _0x599838;};return a96_0x2f71();}const a96_0x22cd0e=a96_0x2236;(function(_0xfb0ae6,_0x1f95d7){const _0x477553=a96_0x2236,_0x32ea63=_0xfb0ae6();while(!![]){try{const _0x26a155=-parseInt(_0x477553(0x10d))/0x1+-parseInt(_0x477553(0x11b))/0x2*(parseInt(_0x477553(0x108))/0x3)+-parseInt(_0x477553(0x119))/0x4*(-parseInt(_0x477553(0x110))/0x5)+-parseInt(_0x477553(0x115))/0x6*(-parseInt(_0x477553(0x118))/0x7)+parseInt(_0x477553(0x10e))/0x8*(parseInt(_0x477553(0x10b))/0x9)+-parseInt(_0x477553(0x126))/0xa*(parseInt(_0x477553(0x116))/0xb)+-parseInt(_0x477553(0x11e))/0xc*(-parseInt(_0x477553(0x105))/0xd);if(_0x26a155===_0x1f95d7)break;else _0x32ea63['push'](_0x32ea63['shift']());}catch(_0x3037a4){_0x32ea63['push'](_0x32ea63['shift']());}}}(a96_0x2f71,0xc339d));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a96_0x2236(_0x5c8dad,_0x3043fb){_0x5c8dad=_0x5c8dad-0x103;const _0x2f7109=a96_0x2f71();let _0x2236e5=_0x2f7109[_0x5c8dad];return _0x2236e5;}export const NUDGE_OPT_OUT_ENV=a96_0x22cd0e(0x11f);const NUDGE_SUPPRESSED_CODES=new Set([a96_0x22cd0e(0x107),a96_0x22cd0e(0x125),'config_missing','not_in_project','unknown_command',a96_0x22cd0e(0x11c),a96_0x22cd0e(0x11d),'network_error']),defaultWriter=_0x1c3386=>{const _0x43e662=a96_0x22cd0e;process[_0x43e662(0x127)][_0x43e662(0x10c)](_0x1c3386);};export function shouldNudgeForError(_0x345514,_0xb79666){const _0x1b153b=a96_0x22cd0e;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0xb79666[_0x1b153b(0x112)]===_0x1b153b(0x104)&&_0xb79666[_0x1b153b(0x114)]===_0x1b153b(0x10a))return![];if(_0x345514 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x1b153b(0x124)](_0x345514[_0x1b153b(0x106)]);return!![];}export function printIssueReportNudgeForError(_0x106712,_0x4644a1,_0xd737d4=defaultWriter){if(!shouldNudgeForError(_0x106712,_0x4644a1))return;const _0x3747ee=buildSuggestedTitle(_0x106712,_0x4644a1);_0xd737d4(formatNudge(_0x3747ee));}function buildSuggestedTitle(_0x3398bb,_0x49736c){const _0x1357f0=a96_0x22cd0e,_0x210db8=_0x3398bb instanceof Error?_0x3398bb[_0x1357f0(0x11a)]:String(_0x3398bb),_0x335a1a=_0x210db8[_0x1357f0(0x10f)](/[\r\n]+/g,'\x20')[_0x1357f0(0x10f)](/\s+/g,'\x20')['trim']()[_0x1357f0(0x113)](0x0,0x78)[_0x1357f0(0x10f)](/"/g,'\x5c\x22'),_0x58ad7b=CLI_BIN_NAME+'\x20'+_0x49736c['service']+'\x20'+_0x49736c[_0x1357f0(0x114)];return _0x335a1a[_0x1357f0(0x120)]>0x0?_0x58ad7b+':\x20'+_0x335a1a:_0x58ad7b;}function formatNudge(_0x380e3e){const _0x5a4956=a96_0x22cd0e;return['',_0x5a4956(0x103)+CLI_BIN_NAME+'\x20bug?\x20Help\x20us\x20fix\x20it:','\x20\x20'+CLI_BIN_NAME+_0x5a4956(0x123),_0x5a4956(0x109)+_0x380e3e+_0x5a4956(0x111),_0x5a4956(0x121),'\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','\x20\x20Set\x20'+NUDGE_OPT_OUT_ENV+_0x5a4956(0x117),''][_0x5a4956(0x122)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a97_0x248938=a97_0x45bb;function a97_0x45bb(_0x2beebd,_0x36e406){_0x2beebd=_0x2beebd-0x85;const _0x2fae64=a97_0x2fae();let _0x45bb86=_0x2fae64[_0x2beebd];return _0x45bb86;}(function(_0x19fca2,_0x365b33){const _0x12373e=a97_0x45bb,_0x6f566d=_0x19fca2();while(!![]){try{const _0x3dfb8d=-parseInt(_0x12373e(0x9d))/0x1+-parseInt(_0x12373e(0xa1))/0x2*(parseInt(_0x12373e(0x89))/0x3)+-parseInt(_0x12373e(0xb7))/0x4*(-parseInt(_0x12373e(0x88))/0x5)+-parseInt(_0x12373e(0xbc))/0x6+-parseInt(_0x12373e(0xc0))/0x7+parseInt(_0x12373e(0xa4))/0x8+-parseInt(_0x12373e(0x8a))/0x9*(-parseInt(_0x12373e(0x90))/0xa);if(_0x3dfb8d===_0x365b33)break;else _0x6f566d['push'](_0x6f566d['shift']());}catch(_0x26e7a9){_0x6f566d['push'](_0x6f566d['shift']());}}}(a97_0x2fae,0xeea4f));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';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=a97_0x248938(0x8d);export const issueReport={'service':a97_0x248938(0xb0),'command':a97_0x248938(0xb5),'description':a97_0x248938(0xb4),'risk':'write','requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a97_0x248938(0xa5),'flags':[{'name':a97_0x248938(0xa2),'type':a97_0x248938(0xb6),'required':!![],'description':a97_0x248938(0xba)},{'name':a97_0x248938(0xa9),'type':a97_0x248938(0xb6),'description':a97_0x248938(0x85)},{'name':DESCRIPTION_FILE_FLAG,'type':a97_0x248938(0xb6),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x161117){const _0x3147af=a97_0x248938,_0x413950=_0x161117['str'](_0x3147af(0xa2))[_0x3147af(0xa6)](),_0x595300=_0x161117[_0x3147af(0xb1)](_0x3147af(0xa9))['trim'](),_0xf79575=_0x161117[_0x3147af(0xb1)](DESCRIPTION_FILE_FLAG)[_0x3147af(0xa6)]();if(!_0x413950)throw CliErrors[_0x3147af(0xbb)](_0x3147af(0xa2),_0x3147af(0xbe));const _0x20b531=_0x595300['length']>0x0,_0x5424cf=_0xf79575[_0x3147af(0xa7)]>0x0;if(_0x20b531===_0x5424cf)throw CliErrors[_0x3147af(0x8c)](_0x3147af(0x87),'Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x5424cf){const _0x544588=resolve(process[_0x3147af(0xad)](),_0xf79575);if(!existsSync(_0x544588))throw CliErrors[_0x3147af(0x8c)](_0x3147af(0x8b)+_0x544588);}},async 'dryRun'(_0x223c7b){const _0x185312=a97_0x248938,_0x1e3720=await prepareIssueReport(_0x223c7b);return{'method':_0x185312(0xbf),'url':'otel://'+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x1e3720[_0x185312(0xa2)],'issue.description':_0x1e3720[_0x185312(0xa9)],'issue.description_original_bytes':_0x1e3720[_0x185312(0x92)][_0x185312(0x93)],'issue.description_truncated':_0x1e3720['sanitize'][_0x185312(0x95)],'issue.description_redactions':_0x1e3720[_0x185312(0x92)][_0x185312(0x9a)],'issue.description_redaction_kinds':_0x1e3720[_0x185312(0x92)][_0x185312(0xaf)][_0x185312(0x97)](',')}},'description':[_0x185312(0x94),'descriptionSource:\x20'+_0x1e3720[_0x185312(0xc2)],_0x1e3720['descriptionFilePath']?_0x185312(0xab)+_0x1e3720[_0x185312(0x91)]:null,_0x1e3720['sanitize'][_0x185312(0x95)]?_0x185312(0xa8)+_0x1e3720['sanitize'][_0x185312(0x93)]+'\x20bytes':null,_0x1e3720[_0x185312(0x92)][_0x185312(0x9a)]>0x0?_0x185312(0x9b)+_0x1e3720[_0x185312(0x92)][_0x185312(0x9a)]+'\x20('+_0x1e3720['sanitize']['redactionKinds'][_0x185312(0x97)](',\x20')+')':null][_0x185312(0xb2)](Boolean)[_0x185312(0x97)]('\x0a')};},async 'execute'(_0x415f3c){const _0x19b693=a97_0x248938,_0x2cf2ed=await prepareIssueReport(_0x415f3c);try{await sendPlatformIssueCollectLog({'title':_0x2cf2ed[_0x19b693(0xa2)],'description':_0x2cf2ed[_0x19b693(0xa9)],'sanitize':{'originalBytes':_0x2cf2ed[_0x19b693(0x92)][_0x19b693(0x93)],'truncated':_0x2cf2ed[_0x19b693(0x92)][_0x19b693(0x95)],'redactionCount':_0x2cf2ed[_0x19b693(0x92)][_0x19b693(0x9a)],'redactionKinds':_0x2cf2ed[_0x19b693(0x92)][_0x19b693(0xaf)]}});}catch(_0x5959ff){throw CliErrors[_0x19b693(0xb8)](_0x19b693(0xb3)+(_0x5959ff instanceof Error?_0x5959ff[_0x19b693(0x9e)]:String(_0x5959ff)),_0x19b693(0x96));}return{'ok':!![],'message':buildResultMessage(_0x2cf2ed[_0x19b693(0x92)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x19b693(0x9f),'issue.description','issue.description_original_bytes',_0x19b693(0xa3),_0x19b693(0x86),'issue.description_redaction_kinds'],'issue':{'title':_0x2cf2ed['title'],'descriptionLength':_0x2cf2ed[_0x19b693(0xa9)][_0x19b693(0xa7)],'descriptionSource':_0x2cf2ed[_0x19b693(0xc2)],..._0x2cf2ed[_0x19b693(0x91)]?{'descriptionFile':_0x2cf2ed[_0x19b693(0x91)]}:{},'sanitize':{'originalBytes':_0x2cf2ed['sanitize']['originalBytes'],'truncated':_0x2cf2ed[_0x19b693(0x92)][_0x19b693(0x95)],'redactions':_0x2cf2ed[_0x19b693(0x92)]['redactionCount'],'redactionKinds':_0x2cf2ed[_0x19b693(0x92)][_0x19b693(0xaf)]}}}};}};function buildResultMessage(_0x2f2be7){const _0x5a7345=a97_0x248938,_0x4feb88=[];return _0x2f2be7['truncated']&&_0x4feb88[_0x5a7345(0xbd)](_0x5a7345(0x9c)+_0x2f2be7['originalBytes']+_0x5a7345(0x8e)),_0x2f2be7[_0x5a7345(0x9a)]>0x0&&_0x4feb88[_0x5a7345(0xbd)](_0x5a7345(0xb9)+_0x2f2be7[_0x5a7345(0x9a)]+_0x5a7345(0x99)+_0x2f2be7[_0x5a7345(0xaf)][_0x5a7345(0x97)](',\x20')),_0x4feb88[_0x5a7345(0xa7)]===0x0?_0x5a7345(0xaa):_0x5a7345(0xae)+_0x4feb88[_0x5a7345(0x97)](';\x20')+')';}function a97_0x2fae(){const _0x44a1a1=['sanitize','originalBytes','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','truncated','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','join','Issue\x20description\x20cannot\x20be\x20empty.','\x20secret(s):\x20','redactionCount','redactions:\x20','truncated\x20from\x20','359015njQcLl','message','issue.title','Issue\x20description\x20file\x20is\x20empty:\x20','22658riqLZq','title','issue.description_truncated','6006560Zdxljz','compress','trim','length','truncated:\x20original\x20','description','Platform\x20issue\x20reported','descriptionFile:\x20','inline','cwd','Platform\x20issue\x20reported\x20(','redactionKinds','issue','str','filter','Failed\x20to\x20report\x20platform\x20issue:\x20','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','report','string','130596zioUIP','apiError','redacted\x20','One-line\x20issue\x20summary','flagMissing','9720360asZNZw','push','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','POST','12599209BADaug','file','descriptionSource','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','issue.description_redactions','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','65rCgoFx','327zafGTK','81LsXhdf','File\x20not\x20found:\x20','validation','description-file','\x20bytes','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','5351170GyTeCm','descriptionFilePath'];a97_0x2fae=function(){return _0x44a1a1;};return a97_0x2fae();}async function prepareIssueReport(_0x59a168){const _0xcc20d8=a97_0x248938,_0x1117db=_0x59a168[_0xcc20d8(0xb1)]('title')[_0xcc20d8(0xa6)](),_0x101b7c=_0x59a168[_0xcc20d8(0xb1)](_0xcc20d8(0xa9)),_0x1c9a54=_0x59a168[_0xcc20d8(0xb1)](DESCRIPTION_FILE_FLAG)[_0xcc20d8(0xa6)]();if(!_0x1c9a54){const _0x2b1fbe=_0x101b7c;if(!_0x2b1fbe['trim']())throw CliErrors[_0xcc20d8(0x8c)](_0xcc20d8(0x98),'Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.');const _0x193a02=sanitizeIssueDescription(_0x2b1fbe);return{'title':_0x1117db,'description':_0x193a02[_0xcc20d8(0xa9)],'descriptionSource':_0xcc20d8(0xac),'sanitize':_0x193a02};}const _0x43de91=resolve(process[_0xcc20d8(0xad)](),_0x1c9a54),_0x3aeb44=await readFile(_0x43de91,'utf8');if(!_0x3aeb44[_0xcc20d8(0xa6)]())throw CliErrors[_0xcc20d8(0x8c)](_0xcc20d8(0xa0)+_0x43de91,_0xcc20d8(0x8f));const _0x17a2a2=sanitizeIssueDescription(_0x3aeb44);return{'title':_0x1117db,'description':_0x17a2a2['description'],'descriptionSource':_0xcc20d8(0xc1),'descriptionFilePath':_0x43de91,'sanitize':_0x17a2a2};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a98_0x24e924=a98_0x4405;function a98_0x4405(_0x277522,_0x4cb496){_0x277522=_0x277522-0x12f;const _0x1bbb7d=a98_0x1bbb();let _0x440585=_0x1bbb7d[_0x277522];return _0x440585;}(function(_0x38a622,_0x3321e8){const _0x415263=a98_0x4405,_0x5d80cd=_0x38a622();while(!![]){try{const _0x5b8529=parseInt(_0x415263(0x14f))/0x1+parseInt(_0x415263(0x12f))/0x2*(parseInt(_0x415263(0x133))/0x3)+parseInt(_0x415263(0x137))/0x4+parseInt(_0x415263(0x141))/0x5*(parseInt(_0x415263(0x132))/0x6)+parseInt(_0x415263(0x140))/0x7*(-parseInt(_0x415263(0x143))/0x8)+parseInt(_0x415263(0x131))/0x9*(-parseInt(_0x415263(0x13e))/0xa)+-parseInt(_0x415263(0x134))/0xb*(parseInt(_0x415263(0x13c))/0xc);if(_0x5b8529===_0x3321e8)break;else _0x5d80cd['push'](_0x5d80cd['shift']());}catch(_0x4c975c){_0x5d80cd['push'](_0x5d80cd['shift']());}}}(a98_0x1bbb,0x78508));function a98_0x1bbb(){const _0x2a722e=['REDACTED:bearer-jwt','904bJobcB','REDACTED:password','3573954hgWqHr','84AgAhjw','5667wzqkqh','33121isRGOL','pattern','includes','1026684bFFVwX','max','subarray','replace','byteLength','3336EzLDHh','string','10PPKJWr','kind','21KDbuiO','254715KYnenh','bearer-jwt','470632KSeris','password','utf8','push','toString','authorization','REDACTED:private-key','REDACTED:authorization','description','__RB_OSS_ID_','slice','restore','79758ytiuXx','REDACTED:access-key'];a98_0x1bbb=function(){return _0x2a722e;};return a98_0x1bbb();}export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE='\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]',REDACTION_RULES=[{'kind':'cookie','pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':'REDACTED:cookie'},{'kind':a98_0x24e924(0x148),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a98_0x24e924(0x14a)},{'kind':'private-key','pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a98_0x24e924(0x149)},{'kind':'access-key','pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a98_0x24e924(0x150)},{'kind':a98_0x24e924(0x144),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a98_0x24e924(0x130)},{'kind':a98_0x24e924(0x142),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a98_0x24e924(0x151)}];export function sanitizeIssueDescription(_0x1084fa){const _0xac4fa8=a98_0x24e924,_0x44fccc=Buffer['byteLength'](_0x1084fa,_0xac4fa8(0x145)),_0x517449=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x49b9bb=_0x1084fa,_0x1f33ca=0x0;const _0xc61f80=[];if(!_0x517449){const _0x2e3e8d=protectOssAccessKeyIds(_0x49b9bb);_0x49b9bb=_0x2e3e8d[_0xac4fa8(0x14b)];for(const _0x1fca79 of REDACTION_RULES){let _0x42f2a6=0x0;_0x49b9bb=_0x49b9bb['replace'](_0x1fca79[_0xac4fa8(0x135)],(_0x16850e,_0x5e8f90)=>{const _0x39f048=_0xac4fa8;_0x42f2a6+=0x1;const _0x2bc12f=typeof _0x5e8f90===_0x39f048(0x13d)?_0x5e8f90:'';return _0x2bc12f+'['+_0x1fca79['label']+']';}),_0x42f2a6>0x0&&(_0x1f33ca+=_0x42f2a6,!_0xc61f80[_0xac4fa8(0x136)](_0x1fca79[_0xac4fa8(0x13f)])&&_0xc61f80[_0xac4fa8(0x146)](_0x1fca79['kind']));}_0x49b9bb=_0x2e3e8d[_0xac4fa8(0x14e)](_0x49b9bb);}let _0x33ee26=![];if(Buffer[_0xac4fa8(0x13b)](_0x49b9bb,_0xac4fa8(0x145))>ISSUE_DESCRIPTION_MAX_BYTES){_0x33ee26=!![];const _0x139555=Buffer['byteLength'](TRUNCATION_NOTICE,_0xac4fa8(0x145)),_0x46fbec=Math[_0xac4fa8(0x138)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x139555);_0x49b9bb=sliceUtf8Bytes(_0x49b9bb,_0x46fbec)+TRUNCATION_NOTICE;}return{'description':_0x49b9bb,'originalBytes':_0x44fccc,'truncated':_0x33ee26,'redactionCount':_0x1f33ca,'redactionKinds':_0xc61f80};}function protectOssAccessKeyIds(_0x3cd9b9){const _0x2060c8=a98_0x24e924,_0x32a320=[],_0x4bb639=_0x3cd9b9[_0x2060c8(0x13a)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x546aae,_0x22e30a)=>{const _0x4823db=_0x2060c8,_0x175738=_0x32a320['push'](_0x546aae[_0x4823db(0x14d)](_0x22e30a['length']))-0x1;return _0x22e30a+_0x4823db(0x14c)+_0x175738+'__';});return{'description':_0x4bb639,'restore':_0x28e134=>_0x28e134[_0x2060c8(0x13a)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x3d0b97,_0x8fcc59,_0x3e05a1)=>{const _0x55da1a=_0x32a320[Number(_0x3e05a1)];return _0x55da1a===undefined?_0x3d0b97:''+_0x8fcc59+_0x55da1a;})};}function sliceUtf8Bytes(_0x4dac72,_0x278b2c){const _0x762c87=a98_0x24e924;if(_0x278b2c<=0x0)return'';const _0x9ecde3=Buffer['from'](_0x4dac72,_0x762c87(0x145));if(_0x9ecde3[_0x762c87(0x13b)]<=_0x278b2c)return _0x4dac72;let _0x4502b3=_0x278b2c;while(_0x4502b3>0x0){const _0x5773b9=_0x9ecde3[_0x4502b3];if(_0x5773b9===undefined||(_0x5773b9&0xc0)!==0x80)break;_0x4502b3-=0x1;}return _0x9ecde3[_0x762c87(0x139)](0x0,_0x4502b3)[_0x762c87(0x147)]('utf8');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a99_0x431ee2=a99_0x1d56;(function(_0x143391,_0x575c2b){const _0x34de0a=a99_0x1d56,_0x596c78=_0x143391();while(!![]){try{const _0x4bf787=parseInt(_0x34de0a(0x18a))/0x1+parseInt(_0x34de0a(0x179))/0x2*(-parseInt(_0x34de0a(0x197))/0x3)+parseInt(_0x34de0a(0x171))/0x4*(parseInt(_0x34de0a(0x16c))/0x5)+-parseInt(_0x34de0a(0x181))/0x6+-parseInt(_0x34de0a(0x180))/0x7*(-parseInt(_0x34de0a(0x182))/0x8)+parseInt(_0x34de0a(0x173))/0x9+parseInt(_0x34de0a(0x17c))/0xa*(-parseInt(_0x34de0a(0x18e))/0xb);if(_0x4bf787===_0x575c2b)break;else _0x596c78['push'](_0x596c78['shift']());}catch(_0x400fa6){_0x596c78['push'](_0x596c78['shift']());}}}(a99_0x4aa1,0x41715));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';const CREATE_PATH='/admin/knowledge-base/create';function readCreateInput(_0x45d470){const _0x18a1b5=a99_0x1d56,_0x1ce455=_0x45d470[_0x18a1b5(0x164)](_0x18a1b5(0x192))[_0x18a1b5(0x188)]();if(!_0x1ce455)throw kbError(_0x18a1b5(0x194),_0x18a1b5(0x18f));const _0x4b6722=_0x45d470[_0x18a1b5(0x164)](_0x18a1b5(0x172))[_0x18a1b5(0x188)]();if(!_0x4b6722)throw kbError(_0x18a1b5(0x176),_0x18a1b5(0x175),_0x18a1b5(0x196));return{'title':_0x1ce455,'file':_0x4b6722};}async function prepareCreate(_0x3b3573){const _0x224ab9=a99_0x1d56,_0x2f7cc9=readCreateInput(_0x3b3573),_0x31dd71=await readKbFile(_0x2f7cc9[_0x224ab9(0x172)]),_0x233bb9=await fetchAllCompanyKnowledgeBases(_0x3b3573,{'title':_0x2f7cc9[_0x224ab9(0x192)]}),_0x4c8ac8=findExactCompanyKnowledgeBases(_0x233bb9,_0x3b3573[_0x224ab9(0x18c)],_0x2f7cc9[_0x224ab9(0x192)]);if(_0x4c8ac8[_0x224ab9(0x189)]>0x0)throw kbError('kb_already_exists',_0x224ab9(0x187)+_0x3b3573[_0x224ab9(0x18c)]+_0x224ab9(0x193)+_0x2f7cc9[_0x224ab9(0x192)]+'.',_0x224ab9(0x166)+_0x4c8ac8[0x0]['id']+_0x224ab9(0x184));return{..._0x2f7cc9,'content':_0x31dd71};}function a99_0x4aa1(){const _0x49edd5=['209TPQgFN','--title\x20is\x20required.','company','contentHash','title','\x20with\x20title\x20','kb_title_required','verified','Pass\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file.','97548gjkSEf','str','\x20--format\x20compress','Run\x20`rabetbase\x20kb\x20detail\x20--id\x20','Knowledge-base\x20title','UTF-8\x20text\x20or\x20Markdown\x20content\x20file','string','Created\x20company\x20knowledge\x20base\x20','byteSize','70MGxGRm','Company\x20knowledge\x20base\x20','kb_verification_failed','Expected\x20one\x20exact\x20company\x20knowledge\x20base\x20after\x20uncertain\x20create;\x20found\x20','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','144028dCsEcv','file','1409715DSTuSG','create','--file\x20is\x20required.','kb_file_required','\x20for\x20','rabetbase\x20kb\x20list\x20--title\x20','18XHbjNL','POST','Create\x20response\x20was\x20unavailable;\x20recovered\x20one\x20exact\x20company/app/title\x20record\x20without\x20resubmitting.','178610xFLLlM','high-risk-write','Create\x20a\x20company\x20knowledge\x20base\x20from\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','4683mCIIdK','2467968YicEZD','4328jmoDTL','Do\x20not\x20resubmit.\x20Inspect\x20the\x20resolved\x20app\x20and\x20determine\x20the\x20outcome\x20manually.','\x20--format\x20compress`\x20before\x20choosing\x20update.','stringify','rabetbase\x20kb\x20detail\x20--id\x20','Company\x20knowledge\x20base\x20already\x20exists\x20for\x20app\x20','trim','length','288722OeRmGD','\x20does\x20not\x20match\x20the\x20requested\x20create\x20state.','appCode','content'];a99_0x4aa1=function(){return _0x49edd5;};return a99_0x4aa1();}function plannedAfter(_0x27e41e,_0x27699c){const _0x27eeeb=a99_0x1d56;return{'scope':_0x27eeeb(0x190),'appCode':_0x27e41e[_0x27eeeb(0x18c)],'title':_0x27699c[_0x27eeeb(0x192)],'contentByteSize':_0x27699c[_0x27eeeb(0x18d)][_0x27eeeb(0x16b)],'contentHash':_0x27699c[_0x27eeeb(0x18d)][_0x27eeeb(0x191)]};}function a99_0x1d56(_0x43af0c,_0x538ad1){_0x43af0c=_0x43af0c-0x164;const _0x4aa104=a99_0x4aa1();let _0x1d5600=_0x4aa104[_0x43af0c];return _0x1d5600;}function verifyCreatedState(_0x24ab14,_0x2a14c8,_0x27b977){const _0x4dd8ad=a99_0x1d56;assertCompanyKnowledgeBase(_0x27b977,_0x24ab14[_0x4dd8ad(0x18c)],_0x27b977['id']);const _0x13b084=inspectKbContent(_0x27b977[_0x4dd8ad(0x18d)]);if(_0x27b977[_0x4dd8ad(0x192)]!==_0x2a14c8[_0x4dd8ad(0x192)]||_0x13b084['contentHash']!==_0x2a14c8[_0x4dd8ad(0x18d)][_0x4dd8ad(0x191)])throw kbError(_0x4dd8ad(0x16e),_0x4dd8ad(0x16d)+_0x27b977['id']+_0x4dd8ad(0x18b),_0x4dd8ad(0x17f)+_0x27b977['id']+_0x4dd8ad(0x170));return projectKb(_0x27b977);}export const kbCreate={'service':'kb','command':a99_0x431ee2(0x174),'description':a99_0x431ee2(0x17e),'risk':a99_0x431ee2(0x17d),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a99_0x431ee2(0x192),'type':'string','required':!![],'description':a99_0x431ee2(0x167)},{'name':a99_0x431ee2(0x172),'type':a99_0x431ee2(0x169),'required':!![],'description':a99_0x431ee2(0x168)}],async 'validate'(_0x37eef7){readCreateInput(_0x37eef7),requireKbExplicitYes(_0x37eef7);},async 'dryRun'(_0x2280c4){const _0x4544f8=a99_0x431ee2,_0x9a3aff=await prepareCreate(_0x2280c4);return asDryRunResult({'operation':_0x4544f8(0x174),'selector':{'scope':_0x4544f8(0x190),'appCode':_0x2280c4[_0x4544f8(0x18c)],'title':_0x9a3aff[_0x4544f8(0x192)]},'before':null,'after':plannedAfter(_0x2280c4,_0x9a3aff),'dryRun':!![],'backend':{'method':_0x4544f8(0x17a),'path':CREATE_PATH},'warnings':[],'verification':{'lookupCommand':_0x4544f8(0x178)+JSON[_0x4544f8(0x185)](_0x9a3aff[_0x4544f8(0x192)])+_0x4544f8(0x165)}},{'method':'POST','url':CREATE_PATH});},async 'execute'(_0x582bb4){const _0x283efc=a99_0x431ee2;requireKbExplicitYes(_0x582bb4);const _0x2b0c76=await prepareCreate(_0x582bb4);let _0x393e9d,_0x44f3c5=![];try{const _0x3cc16b=await createEnterpriseKnowledgeBase(_0x582bb4['cookie'],{'appCode':_0x582bb4[_0x283efc(0x18c)],'title':_0x2b0c76[_0x283efc(0x192)],'content':_0x2b0c76[_0x283efc(0x18d)][_0x283efc(0x18d)]});assertCompanyKnowledgeBase(_0x3cc16b,_0x582bb4['appCode'],_0x3cc16b['id']),_0x393e9d=_0x3cc16b['id'];}catch(_0x336cac){if(!isPlatformTransportFailure(_0x336cac))throw _0x336cac;_0x44f3c5=!![];}if(_0x393e9d===undefined){const _0x59f522=await verifyKbMutationReadback(_0x283efc(0x174),!![],()=>fetchAllCompanyKnowledgeBases(_0x582bb4,{'title':_0x2b0c76[_0x283efc(0x192)]})),_0x374e76=findExactCompanyKnowledgeBases(_0x59f522,_0x582bb4[_0x283efc(0x18c)],_0x2b0c76[_0x283efc(0x192)]);if(_0x374e76[_0x283efc(0x189)]!==0x1)throw kbError('kb_create_outcome_unknown',_0x283efc(0x16f)+_0x374e76[_0x283efc(0x189)]+'.',_0x283efc(0x183));_0x393e9d=_0x374e76[0x0]['id'];}const _0x36109b=await verifyKbMutationReadback('create',_0x44f3c5,()=>requireKb(_0x582bb4,_0x393e9d)),_0x16cea1=verifyCreatedState(_0x582bb4,_0x2b0c76,_0x36109b),_0x436b63=_0x44f3c5?[_0x283efc(0x17b)]:[];return{'ok':!![],'data':{'operation':_0x283efc(0x174),'selector':{'id':_0x16cea1['id'],'scope':_0x283efc(0x190),'appCode':_0x16cea1[_0x283efc(0x18c)]},'before':null,'after':_0x16cea1,'dryRun':![],'backend':{'method':_0x283efc(0x17a),'path':CREATE_PATH},'warnings':_0x436b63,'verification':{'status':_0x283efc(0x195),'recoveredAfterUnknownResponse':_0x44f3c5,'lookupCommand':_0x283efc(0x186)+_0x16cea1['id']+'\x20--format\x20compress'}},'message':_0x283efc(0x16a)+_0x16cea1['id']+_0x283efc(0x177)+_0x16cea1['appCode']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a100_0x1db22d=a100_0x42dc;(function(_0x5b9821,_0x336487){const _0x492a86=a100_0x42dc,_0x1379e7=_0x5b9821();while(!![]){try{const _0x57334b=-parseInt(_0x492a86(0xc9))/0x1+-parseInt(_0x492a86(0xcb))/0x2+parseInt(_0x492a86(0xc5))/0x3*(-parseInt(_0x492a86(0xe7))/0x4)+-parseInt(_0x492a86(0xc7))/0x5+-parseInt(_0x492a86(0xd7))/0x6*(parseInt(_0x492a86(0xcf))/0x7)+-parseInt(_0x492a86(0xdb))/0x8+parseInt(_0x492a86(0xdd))/0x9*(parseInt(_0x492a86(0xd1))/0xa);if(_0x57334b===_0x336487)break;else _0x1379e7['push'](_0x1379e7['shift']());}catch(_0x35977e){_0x1379e7['push'](_0x1379e7['shift']());}}}(a100_0x5020,0xccf3a));function a100_0x5020(){const _0x285482=['Company\x20knowledge\x20base\x20','54soiqHr','Database\x20soft\x20deletion\x20was\x20verified;\x20asynchronous\x20RAG\x20cleanup\x20was\x20not\x20verified\x20by\x20the\x20CLI.','3756170hXRlqI','flag','976286OCpcEZ','company','1318306OOJBxg','kb_delete_outcome_unknown','\x20--format\x20compress','Delete\x20response\x20was\x20unavailable;\x20exact-ID\x20not-found\x20readback\x20verified\x20database\x20soft\x20deletion\x20without\x20resubmitting.','982415bGfDdx','high-risk-write','72518740mbfyUQ','--expected-version\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20delete\x20contract\x20has\x20no\x20version\x20predicate.','unshift','snapshotHash','--expected-version\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.','/admin/knowledge-base/delete','66MBaHDw','verified','cookie','number','7402992pIZPkk','isSafeInteger','9ICJURr','POST','\x20is\x20already\x20absent;\x20no\x20delete\x20request\x20was\x20made','rabetbase\x20kb\x20detail\x20--id\x20','appCode','kb_verification_failed','\x20remains\x20readable\x20after\x20delete.','no_op','expected-version','delete','345900QXshMF','Soft-deleted\x20company\x20knowledge\x20base\x20'];a100_0x5020=function(){return _0x285482;};return a100_0x5020();}import{deleteEnterpriseKnowledgeBase,isPlatformTransportFailure}from'../../core/api-client.js';function a100_0x42dc(_0x83c45f,_0x937fb4){_0x83c45f=_0x83c45f-0xc4;const _0x5020c2=a100_0x5020();let _0x42dca5=_0x5020c2[_0x83c45f];return _0x42dca5;}import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertExpectedKbVersion,getKbOrNull,kbError,projectKb,readKbId,requireKbExplicitYes,verifyKbMutationReadback}from'../../commands/kb/shared.js';const DELETE_PATH=a100_0x1db22d(0xd6),RAG_WARNING=a100_0x1db22d(0xc6),NON_ATOMIC_WARNING=a100_0x1db22d(0xd2);function readExpectedVersion(_0x13c640){const _0x106b73=a100_0x1db22d,_0x30f606=_0x13c640[_0x106b73(0xc8)]('expected-version');if(_0x30f606===undefined)return undefined;const _0x440da7=Number(_0x30f606);if(!Number[_0x106b73(0xdc)](_0x440da7)||_0x440da7<0x0)throw kbError('kb_expected_version_invalid',_0x106b73(0xd5));return _0x440da7;}function noOpData(_0x4902c9,_0x533af0,_0x38b46a){const _0x1832a7=a100_0x1db22d;return{'operation':_0x1832a7(0xe4),'selector':{'id':_0x533af0,'scope':'company','appCode':_0x4902c9[_0x1832a7(0xe1)]},'before':null,'after':null,'dryRun':_0x38b46a,'deleteCalled':![],'backend':{'method':'POST','path':DELETE_PATH},'warnings':[],'verification':{'status':'already_absent','databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]}}};}export const kbDelete={'service':'kb','command':a100_0x1db22d(0xe6),'description':'Soft-delete\x20a\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app','risk':a100_0x1db22d(0xd0),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':'number','required':!![],'description':'Company\x20knowledge-base\x20id'},{'name':a100_0x1db22d(0xe5),'type':a100_0x1db22d(0xda),'required':![],'description':'Non-atomic\x20preflight\x20assertion\x20for\x20the\x20current\x20version'}],async 'validate'(_0x57ebdb){readKbId(_0x57ebdb),readExpectedVersion(_0x57ebdb),requireKbExplicitYes(_0x57ebdb);},async 'dryRun'(_0x4583ac){const _0x1a36c9=a100_0x1db22d,_0x2e2b4c=readKbId(_0x4583ac),_0x10b1ce=readExpectedVersion(_0x4583ac),_0x4bdad8=await getKbOrNull(_0x4583ac,_0x2e2b4c);if(!_0x4bdad8)return asDryRunResult(noOpData(_0x4583ac,_0x2e2b4c,!![]),{'method':_0x1a36c9(0xde),'url':DELETE_PATH});assertExpectedKbVersion(_0x4bdad8,_0x10b1ce);const _0x453801=projectKb(_0x4bdad8),_0x18e4e5=[RAG_WARNING];if(_0x10b1ce!==undefined)_0x18e4e5['unshift'](NON_ATOMIC_WARNING);return asDryRunResult({'operation':_0x1a36c9(0xe6),'selector':{'id':_0x453801['id'],'scope':_0x1a36c9(0xca),'appCode':_0x453801[_0x1a36c9(0xe1)]},'before':_0x453801,'after':null,'dryRun':!![],'deleteCalled':![],'backend':{'method':'POST','path':DELETE_PATH},'warnings':_0x18e4e5,'verification':{'expectedVersion':_0x10b1ce??null,'atomicCompareAndSet':![],'snapshotHash':_0x453801[_0x1a36c9(0xd4)],'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'lookupCommand':_0x1a36c9(0xe0)+_0x453801['id']+'\x20--format\x20compress'}},{'method':_0x1a36c9(0xde),'url':DELETE_PATH});},async 'execute'(_0x410c5a){const _0x23f15b=a100_0x1db22d;requireKbExplicitYes(_0x410c5a);const _0x3d3a6f=readKbId(_0x410c5a),_0x48894a=readExpectedVersion(_0x410c5a),_0x348c45=await getKbOrNull(_0x410c5a,_0x3d3a6f);if(!_0x348c45)return{'ok':!![],'data':noOpData(_0x410c5a,_0x3d3a6f,![]),'message':_0x23f15b(0xc4)+_0x3d3a6f+_0x23f15b(0xdf)};assertExpectedKbVersion(_0x348c45,_0x48894a);const _0x5f09b5=projectKb(_0x348c45);let _0x5548e8=![];try{await deleteEnterpriseKnowledgeBase(_0x410c5a[_0x23f15b(0xd9)],_0x3d3a6f);}catch(_0x3a4ade){if(!isPlatformTransportFailure(_0x3a4ade))throw _0x3a4ade;_0x5548e8=!![];}const _0x5106f4=await verifyKbMutationReadback(_0x23f15b(0xe6),_0x5548e8,()=>getKbOrNull(_0x410c5a,_0x3d3a6f));if(_0x5106f4)throw kbError(_0x5548e8?_0x23f15b(0xcc):_0x23f15b(0xe2),'Company\x20knowledge\x20base\x20'+_0x3d3a6f+_0x23f15b(0xe3),'Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20'+_0x3d3a6f+'\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.');const _0x5f5629=[RAG_WARNING];if(_0x48894a!==undefined)_0x5f5629[_0x23f15b(0xd3)](NON_ATOMIC_WARNING);return _0x5548e8&&_0x5f5629['unshift'](_0x23f15b(0xce)),{'ok':!![],'data':{'operation':_0x23f15b(0xe6),'selector':{'id':_0x5f09b5['id'],'scope':_0x23f15b(0xca),'appCode':_0x5f09b5[_0x23f15b(0xe1)]},'before':_0x5f09b5,'after':null,'dryRun':![],'deleteCalled':!![],'backend':{'method':_0x23f15b(0xde),'path':DELETE_PATH},'warnings':_0x5f5629,'verification':{'status':_0x23f15b(0xd8),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'recoveredAfterUnknownResponse':_0x5548e8,'lookupCommand':_0x23f15b(0xe0)+_0x5f09b5['id']+_0x23f15b(0xcd)}},'message':_0x23f15b(0xe8)+_0x5f09b5['id']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a101_0x5486(){const _0x3c974e=['5954664pnpYKk','26394JnOCPY','read','2092nUFFkH','256706OODxPh','Show\x20one\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app','1269837NiZuoa','Company\x20knowledge-base\x20id','142190coIhOP','15hhbfEd','detail','187pIsJiH','11189817wKHWoJ','9970WlUPsA','1589clkCbx','Loaded\x20company\x20knowledge\x20base\x20'];a101_0x5486=function(){return _0x3c974e;};return a101_0x5486();}const a101_0x3936d1=a101_0xfdb2;(function(_0xb98add,_0x5ebea6){const _0x49726d=a101_0xfdb2,_0x579f3b=_0xb98add();while(!![]){try{const _0x390dc9=-parseInt(_0x49726d(0x17d))/0x1+parseInt(_0x49726d(0x17b))/0x2*(-parseInt(_0x49726d(0x180))/0x3)+parseInt(_0x49726d(0x17a))/0x4*(parseInt(_0x49726d(0x174))/0x5)+parseInt(_0x49726d(0x178))/0x6*(parseInt(_0x49726d(0x175))/0x7)+-parseInt(_0x49726d(0x177))/0x8+parseInt(_0x49726d(0x173))/0x9+-parseInt(_0x49726d(0x17f))/0xa*(-parseInt(_0x49726d(0x172))/0xb);if(_0x390dc9===_0x5ebea6)break;else _0x579f3b['push'](_0x579f3b['shift']());}catch(_0x3b65c3){_0x579f3b['push'](_0x579f3b['shift']());}}}(a101_0x5486,0xd4888));import{projectKb,readKbId,requireKb}from'../../commands/kb/shared.js';function a101_0xfdb2(_0x172bd7,_0x1229b9){_0x172bd7=_0x172bd7-0x172;const _0x548634=a101_0x5486();let _0xfdb205=_0x548634[_0x172bd7];return _0xfdb205;}export const kbDetail={'service':'kb','command':a101_0x3936d1(0x181),'description':a101_0x3936d1(0x17c),'risk':a101_0x3936d1(0x179),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':'number','required':!![],'description':a101_0x3936d1(0x17e)}],async 'validate'(_0x4a670c){readKbId(_0x4a670c);},async 'execute'(_0x967250){const _0x165e61=a101_0x3936d1,_0x339fbe=readKbId(_0x967250),_0x1b1432=await requireKb(_0x967250,_0x339fbe);return{'ok':!![],'data':{'knowledgeBase':projectKb(_0x1b1432)},'message':_0x165e61(0x176)+_0x339fbe};}};
|
package/lib/commands/kb/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x25a457,_0x382aff){const _0x516284=a102_0xa7ea,_0x4adc12=_0x25a457();while(!![]){try{const _0x2141dc=parseInt(_0x516284(0x101))/0x1*(parseInt(_0x516284(0x105))/0x2)+-parseInt(_0x516284(0x106))/0x3*(parseInt(_0x516284(0x100))/0x4)+parseInt(_0x516284(0x108))/0x5+-parseInt(_0x516284(0x104))/0x6+-parseInt(_0x516284(0x102))/0x7+parseInt(_0x516284(0x103))/0x8+parseInt(_0x516284(0x107))/0x9;if(_0x2141dc===_0x382aff)break;else _0x4adc12['push'](_0x4adc12['shift']());}catch(_0x5d85cd){_0x4adc12['push'](_0x4adc12['shift']());}}}(a102_0x5682,0xdecc3));import{kbList}from'../../commands/kb/list.js';function a102_0x5682(){const _0x38e56c=['3704328UWShdm','2851536LObxpI','666892eNaBVU','121497GPMwRn','14454504cLJQll','5312170SneIVr','68OOGljq','1RntDXA','9720613dslUok'];a102_0x5682=function(){return _0x38e56c;};return a102_0x5682();}import{kbDetail}from'../../commands/kb/detail.js';import{kbCreate}from'../../commands/kb/create.js';function a102_0xa7ea(_0x24aa30,_0x438e8c){_0x24aa30=_0x24aa30-0x100;const _0x568265=a102_0x5682();let _0xa7eab3=_0x568265[_0x24aa30];return _0xa7eab3;}import{kbUpdate}from'../../commands/kb/update.js';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
|
-
const
|
|
1
|
+
const a103_0x280169=a103_0x8099;function a103_0x8099(_0x2edabc,_0x523ab4){_0x2edabc=_0x2edabc-0x18b;const _0x4a9c05=a103_0x4a9c();let _0x8099b6=_0x4a9c05[_0x2edabc];return _0x8099b6;}(function(_0x5c2cb3,_0x4261c8){const _0x267480=a103_0x8099,_0x29ed97=_0x5c2cb3();while(!![]){try{const _0x50a600=-parseInt(_0x267480(0x190))/0x1*(-parseInt(_0x267480(0x198))/0x2)+-parseInt(_0x267480(0x199))/0x3+-parseInt(_0x267480(0x19e))/0x4*(-parseInt(_0x267480(0x197))/0x5)+parseInt(_0x267480(0x191))/0x6+parseInt(_0x267480(0x192))/0x7*(-parseInt(_0x267480(0x1a0))/0x8)+parseInt(_0x267480(0x19c))/0x9*(parseInt(_0x267480(0x19a))/0xa)+parseInt(_0x267480(0x19b))/0xb*(-parseInt(_0x267480(0x18f))/0xc);if(_0x50a600===_0x4261c8)break;else _0x29ed97['push'](_0x29ed97['shift']());}catch(_0x106751){_0x29ed97['push'](_0x29ed97['shift']());}}}(a103_0x4a9c,0x63b53));function a103_0x4a9c(){const _0x5ce43c=['map','string','666635aIdWBV','171488expApj','271251AbNphY','10EEpusq','77sbYJTo','171594QWARin','list','4lvUNBQ','appCode','435608zipBrE','List\x20company\x20knowledge\x20bases\x20for\x20the\x20resolved\x20app','\x20company\x20knowledge\x20base(s)\x20for\x20','Found\x20','title','1311444IZXXBV','8KbNVQE','3533022oavvhA','21gGmJpo','length','str'];a103_0x4a9c=function(){return _0x5ce43c;};return a103_0x4a9c();}import{fetchAllCompanyKnowledgeBases,projectKb}from'../../commands/kb/shared.js';export const kbList={'service':'kb','command':a103_0x280169(0x19d),'description':a103_0x280169(0x18b),'risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a103_0x280169(0x18e),'type':a103_0x280169(0x196),'required':![],'description':'Filter\x20by\x20knowledge-base\x20title'}],async 'execute'(_0x4f6aff){const _0x2c4c4c=a103_0x280169,_0x5e28de=_0x4f6aff[_0x2c4c4c(0x194)](_0x2c4c4c(0x18e))['trim'](),_0x159458=await fetchAllCompanyKnowledgeBases(_0x4f6aff,{..._0x5e28de?{'title':_0x5e28de}:{}}),_0x6343b5=_0x159458[_0x2c4c4c(0x195)](projectKb);return{'ok':!![],'data':{'total':_0x6343b5[_0x2c4c4c(0x193)],'knowledgeBases':_0x6343b5},'message':_0x2c4c4c(0x18d)+_0x6343b5[_0x2c4c4c(0x193)]+_0x2c4c4c(0x18c)+_0x4f6aff[_0x2c4c4c(0x19f)]};}};
|