@lovrabet/rabetbase-cli 2.4.6 → 2.4.7-beta.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/business-groups.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-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.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/search.d.ts +2 -0
- package/lib/commands/kb/search.js +1 -0
- 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/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/template.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.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/sync.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/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.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/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.d.ts +16 -0
- 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/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 +4 -4
- package/skills/rabetbase/references/rabetbase-kb.md +13 -3
- package/skills/rabetbase.manifest.json +3 -3
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x3bb691,_0xafde92){const _0x420525=a250_0x21f7,_0x1397dd=_0x3bb691();while(!![]){try{const _0x4e9351=parseInt(_0x420525(0x1be))/0x1+parseInt(_0x420525(0x19e))/0x2+-parseInt(_0x420525(0x1bf))/0x3+parseInt(_0x420525(0x1ab))/0x4*(-parseInt(_0x420525(0x19c))/0x5)+parseInt(_0x420525(0x1a1))/0x6*(-parseInt(_0x420525(0x1d1))/0x7)+-parseInt(_0x420525(0x192))/0x8*(-parseInt(_0x420525(0x1a4))/0x9)+-parseInt(_0x420525(0x1b2))/0xa*(-parseInt(_0x420525(0x198))/0xb);if(_0x4e9351===_0xafde92)break;else _0x1397dd['push'](_0x1397dd['shift']());}catch(_0x305563){_0x1397dd['push'](_0x1397dd['shift']());}}}(a250_0x4173,0xd97c0));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a250_0x34fb29}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x3a7ee8){const _0x3b0ddd=a250_0x21f7;return typeof _0x3a7ee8==='string'&&_0x3a7ee8[_0x3b0ddd(0x191)]()?_0x3a7ee8[_0x3b0ddd(0x191)]():undefined;}function resolveEnvAppCode(){const _0x4610a7=a250_0x21f7,_0x3cb93f=stringFlag(process.env.RABETBASE_APPCODE);if(_0x3cb93f)return{'name':_0x4610a7(0x199),'value':_0x3cb93f};const _0x336dfb=stringFlag(process.env.LOVRABET_APPCODE);if(_0x336dfb)return{'name':'LOVRABET_APPCODE','value':_0x336dfb};return undefined;}function hasExplicitAppCode(_0x7cacdd,_0xe893d4){const _0x5c9a1b=a250_0x21f7;return!!(stringFlag(_0x7cacdd[_0x5c9a1b(0x1c5)])||stringFlag(_0xe893d4['appcode']));}function assertEnvAppCodeNotIgnored(_0x210756,_0x330732,_0x487914){const _0x4dbd9b=a250_0x21f7;if(!_0x330732||_0x487914||_0x210756===_0x330732[_0x4dbd9b(0x1a9)])return;const _0x6d4634=_0x210756?_0x4dbd9b(0x197)+_0x210756+'\x22.':_0x4dbd9b(0x1ba);throw CliErrors[_0x4dbd9b(0x195)](_0x330732['name']+'='+_0x330732[_0x4dbd9b(0x1a9)]+_0x4dbd9b(0x1b8)+_0x6d4634+'\x20'+(_0x4dbd9b(0x1c7)+_0x330732[_0x4dbd9b(0x1cf)]+'\x22.'));}export function createPipelineEnv(_0x2cbeb1,_0x2846ca,_0xb679cf=[]){const _0x4a7eb1=a250_0x21f7;return{'rawFlags':_0x2846ca,'args':_0xb679cf,'resolveAppCode':()=>_0x2cbeb1['appCode'],'resolveCookie':()=>_0x2cbeb1[_0x4a7eb1(0x1c4)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a250_0x34fb29(_0x2846ca),'defaultFormat':_0x2cbeb1[_0x4a7eb1(0x1b7)],'defaultPageSize':_0x2cbeb1['pageSize'],'defaultVerbose':_0x2cbeb1['verbose'],'apiDir':_0x2cbeb1['apiDir'],'riskLevel':_0x2cbeb1[_0x4a7eb1(0x1c9)],'selectedAppName':_0x2cbeb1['explicitAppName'],'mergedCli':{'defaultApp':_0x2cbeb1[_0x4a7eb1(0x1bc)],'currentApp':_0x2cbeb1[_0x4a7eb1(0x1bd)],'appCode':_0x2cbeb1['appCode'],'apps':_0x2cbeb1['apps']}};}export function createRabetbaseRunnerAdapter(_0x23d96d={}){const _0x33155e=a250_0x21f7;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x33155e(0x1dc)](_0x5953e0=>PIPELINE_FLAG_NAMES[_0x33155e(0x19f)](_0x5953e0[_0x33155e(0x1cf)]))[_0x33155e(0x1d3)](({name:_0x287354,type:_0x6f8541,description:_0x51e7a4})=>({'name':_0x287354,'type':_0x6f8541,'description':_0x51e7a4})),'formatOutput':_0x23d96d[_0x33155e(0x1ce)]??formatOutput,'getCommandLabel'(_0x527d58){const _0x17e209=_0x33155e;return CLI_BIN_NAME+'\x20'+_0x527d58[_0x17e209(0x1d6)]+'\x20'+_0x527d58[_0x17e209(0x1b1)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x43a621,{def:_0x482002}){const _0x2de915=_0x33155e,_0x349325=_0x43a621['includes'](_0x2de915(0x1af))?'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.':_0x2de915(0x194)+_0x482002['risk']+_0x2de915(0x1bb)+_0x2de915(0x1b3);return CliErrors[_0x2de915(0x195)](_0x43a621+_0x2de915(0x1c0)+_0x349325);}},async 'prepare'(_0x4b0597,_0x19af01,_0x21d366,_0xfb84f){const _0x55e4a1=_0x33155e,_0x5961c7=_0x19af01[_0x55e4a1(0x1ae)]||DEFAULT_API_DIR;resolveAliasToCode(_0x4b0597,_0x21d366,_0x5961c7,_0xfb84f);const _0x2369e9=resolveCommandAuthMode(_0x4b0597);let _0x196bac='';if(_0x2369e9!==_0x55e4a1(0x1a5)){_0x196bac=_0x19af01[_0x55e4a1(0x1b9)]()||'';if(!_0x196bac){if(_0x2369e9===_0x55e4a1(0x1da))throw CliErrors['authRequired']();}else{const {setActiveCookie:_0x4b8986}=await import(_0x55e4a1(0x1d7));_0x4b8986(_0x196bac);}}const _0x6d6e9e=_0x19af01[_0x55e4a1(0x1cd)]()??'';if(_0x4b0597[_0x55e4a1(0x1ca)]!==![]){assertEnvAppCodeNotIgnored(_0x6d6e9e,resolveEnvAppCode(),hasExplicitAppCode(_0x21d366,_0x19af01[_0x55e4a1(0x1db)]));if(!_0x6d6e9e)throw CliErrors[_0x55e4a1(0x1c2)](_0x55e4a1(0x19d)+CLI_BIN_NAME+_0x55e4a1(0x1ad));}return{'defaults':{'booleans':{'verbose':_0x19af01['defaultVerbose']},'numbers':{'pagesize':_0x19af01[_0x55e4a1(0x19b)]}},'extras':{'appCode':_0x6d6e9e,'cookie':_0x196bac,'apiDomain':_0x19af01[_0x55e4a1(0x1c8)](),'apiDir':_0x5961c7,'selectedAppName':_0x19af01[_0x55e4a1(0x1b0)],'mergedCli':_0x19af01[_0x55e4a1(0x1b5)]}};},'confirmHighRisk':_0x23d96d[_0x33155e(0x1a8)]??(async({env:_0x3fcda5,commandLabel:_0x31d08c})=>{const _0xee7d24=_0x33155e;if(_0x3fcda5['isNonInteractive'])throw CliErrors[_0xee7d24(0x195)](_0xee7d24(0x1a0)+_0x31d08c+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':[_0xee7d24(0x1d9)+_0x31d08c,_0xee7d24(0x1c6)],'createCancelledError':_0x3b0aed=>CliErrors[_0xee7d24(0x1d2)](_0x3b0aed)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x335912=a250_0x21f7,{clearActiveCookie:_0x41493b}=await import(_0x335912(0x1d7));_0x41493b();}export async function finalizeRabetbaseRuntimeState(){const _0x15e757=a250_0x21f7;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x5b71ab},{initEnv:_0x3decba}]=await Promise[_0x15e757(0x1c1)]([import('../constant/domain.js'),import(_0x15e757(0x19a))]);_0x5b71ab(),_0x3decba(_0x15e757(0x1ac));}}export async function runCommand(_0x9c8724,_0x28c238,_0x2dbc9f=terminalRunnerAdapter){const _0x133c24=a250_0x21f7;assertRejectedFlags(_0x9c8724,_0x28c238[_0x133c24(0x1db)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x9c8724)?withUpdateNotice(_0x9c8724):_0x9c8724,_0x28c238,_0x2dbc9f);}function a250_0x4173(){const _0x33f142=['toUpperCase','hint','confirmHighRisk','value','hasFormat','171608PqbLFF','production','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','apiDir','Edit\x20the\x20config\x20file\x20manually','selectedAppName','command','1620680HloVcK','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','find','mergedCli','_notice','format','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','resolveCookie','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','defaultApp','currentApp','529340lVQHjp','163152StqXnN','\x0a\x20\x20','all','configMissing','resolve','cookie','appcode','\x20\x20\x20Continue?\x20[y/N]\x20','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','resolveApiDomain','riskLevel','requiresAppCode','doctor','pretty','resolveAppCode','formatOutput','name','execute','211421DMVAYj','cancelled','map','includes','nonInteractive','service','../core/api-client.js','message','⚠\x20\x20High-risk\x20operation:\x20','required','rawFlags','filter','trim','1328rIWqJQ','rejectedFlags','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','validation','object','Current\x20resolved\x20appcode\x20is\x20\x22','198ujkSQI','RABETBASE_APPCODE','../constant/env.js','defaultPageSize','185JvLKEV','Set\x20appcode\x20via\x20`','296216YdtDuf','has','High-risk\x20operation\x20`','312ZkYBRl','schema','some','27567qVMEiC','none'];a250_0x4173=function(){return _0x33f142;};return a250_0x4173();}function assertRejectedFlags(_0x2afe31,_0x57f05b){const _0x2f2c14=a250_0x21f7;for(const _0x1f08ea of _0x2afe31[_0x2f2c14(0x193)]??[]){const _0x5916f8=GLOBAL_FLAGS[_0x2f2c14(0x1b4)](_0x1cba63=>_0x1cba63['name']===_0x1f08ea[_0x2f2c14(0x1cf)]),_0x3d2bbc=new Set([_0x1f08ea[_0x2f2c14(0x1cf)],toCamelCase(_0x1f08ea[_0x2f2c14(0x1cf)]),_0x5916f8?.['meowKey']]),_0x57e511=[..._0x3d2bbc][_0x2f2c14(0x1a3)](_0x3292f1=>{if(!_0x3292f1)return![];const _0x3b5961=_0x57f05b[_0x3292f1];return _0x3b5961!==undefined&&_0x3b5961!==null&&_0x3b5961!==![];});if(_0x57e511)throw CliErrors[_0x2f2c14(0x195)](_0x1f08ea[_0x2f2c14(0x1d8)],_0x1f08ea[_0x2f2c14(0x1a7)]);}}function a250_0x21f7(_0xb021f3,_0x243a1c){_0xb021f3=_0xb021f3-0x191;const _0x417369=a250_0x4173();let _0x21f74b=_0x417369[_0xb021f3];return _0x21f74b;}function toCamelCase(_0x352d54){const _0xf8ad0c=a250_0x21f7;return _0x352d54['replace'](/-([a-z])/g,(_0x301eda,_0x1de2b1)=>_0x1de2b1[_0xf8ad0c(0x1a6)]());}function shouldAttachUpdateNotice(_0x1b6b01){const _0x345cc8=a250_0x21f7;if(_0x1b6b01[_0x345cc8(0x1aa)]===![])return![];return!['update',_0x345cc8(0x1a2),_0x345cc8(0x1cb)][_0x345cc8(0x1d4)](_0x1b6b01[_0x345cc8(0x1d6)]);}function withUpdateNotice(_0x5ad52e){return{..._0x5ad52e,async 'execute'(_0x12428e){const _0x14fff9=a250_0x21f7,_0x394cd8=shouldResolveUpdateNotice(_0x12428e)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x14fff9(0x1c3)](null),_0x24eb7d=await _0x5ad52e[_0x14fff9(0x1d0)](_0x12428e);return attachUpdateNotice(_0x24eb7d,await _0x394cd8);}};}function shouldResolveUpdateNotice(_0x3f2e47){const _0x226e7f=a250_0x21f7;return _0x3f2e47['format']===_0x226e7f(0x1cc)&&!_0x3f2e47[_0x226e7f(0x1d5)];}function attachUpdateNotice(_0x3a16cc,_0x3d86f1){const _0x4129f1=a250_0x21f7;if(!_0x3d86f1||!_0x3a16cc||typeof _0x3a16cc!=='object')return _0x3a16cc;const _0x26f4cb=_0x3a16cc,_0x1d78bb=typeof _0x26f4cb[_0x4129f1(0x1b6)]===_0x4129f1(0x196)&&_0x26f4cb[_0x4129f1(0x1b6)]!==null?_0x26f4cb[_0x4129f1(0x1b6)]:{};return{..._0x26f4cb,'_notice':{..._0x1d78bb,'update':_0x3d86f1}};}
|
|
1
|
+
(function(_0x2eaa15,_0x224b00){const _0x266b0e=a251_0x3379,_0x2fa4c0=_0x2eaa15();while(!![]){try{const _0x2739dd=parseInt(_0x266b0e(0x160))/0x1*(-parseInt(_0x266b0e(0x199))/0x2)+parseInt(_0x266b0e(0x17d))/0x3+-parseInt(_0x266b0e(0x176))/0x4*(-parseInt(_0x266b0e(0x168))/0x5)+-parseInt(_0x266b0e(0x188))/0x6*(-parseInt(_0x266b0e(0x196))/0x7)+-parseInt(_0x266b0e(0x156))/0x8+parseInt(_0x266b0e(0x174))/0x9+-parseInt(_0x266b0e(0x16a))/0xa*(parseInt(_0x266b0e(0x16c))/0xb);if(_0x2739dd===_0x224b00)break;else _0x2fa4c0['push'](_0x2fa4c0['shift']());}catch(_0x1716aa){_0x2fa4c0['push'](_0x2fa4c0['shift']());}}}(a251_0x59fb,0xa78e8));function a251_0x59fb(){const _0x32cd0a=['appcode','execute','isNonInteractive','2971038ZYWJAp','string','map','RABETBASE_APPCODE','production','defaultVerbose','update','\x0a\x20\x20','find','defaultPageSize','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','30wFHZeJ','pageSize','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','formatOutput','resolveApiDomain','none','name','mergedCli','apps','Edit\x20the\x20config\x20file\x20manually','value','requiresAppCode','nonInteractive','object','639324uuZNov','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','cookie','2281718nyPoQe','format','filter','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','apiDir','verbose','appCode','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','has','10346480IMhhAo','_notice','service','toUpperCase','trim','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','configMissing','risk','authRequired','cancelled','1qUfSRu','catch','includes','resolve','some','command','currentApp','hint','645cgIWOr','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','2466680ZwWtDn','required','22gGmmmd','⚠\x20\x20High-risk\x20operation:\x20','all','validation','\x20\x20\x20Continue?\x20[y/N]\x20','selectedAppName','../core/api-client.js','schema','12088314kMpfWI','High-risk\x20operation\x20`','25540pAqRFg','doctor','rawFlags','pretty'];a251_0x59fb=function(){return _0x32cd0a;};return a251_0x59fb();}import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a251_0x2708d1}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x3e8af9){const _0x57562d=a251_0x3379;return typeof _0x3e8af9===_0x57562d(0x17e)&&_0x3e8af9[_0x57562d(0x15a)]()?_0x3e8af9[_0x57562d(0x15a)]():undefined;}function resolveEnvAppCode(){const _0x371d7b=a251_0x3379,_0x320831=stringFlag(process.env.RABETBASE_APPCODE);if(_0x320831)return{'name':_0x371d7b(0x180),'value':_0x320831};const _0x386f37=stringFlag(process.env.LOVRABET_APPCODE);if(_0x386f37)return{'name':'LOVRABET_APPCODE','value':_0x386f37};return undefined;}function hasExplicitAppCode(_0x227a66,_0x46936c){const _0x1f1d3f=a251_0x3379;return!!(stringFlag(_0x227a66[_0x1f1d3f(0x17a)])||stringFlag(_0x46936c[_0x1f1d3f(0x17a)]));}function a251_0x3379(_0x453202,_0x1fc71b){_0x453202=_0x453202-0x155;const _0x59fbbf=a251_0x59fb();let _0x337954=_0x59fbbf[_0x453202];return _0x337954;}function assertEnvAppCodeNotIgnored(_0x493cbb,_0x4354f2,_0x2e318e){const _0x413f2d=a251_0x3379;if(!_0x4354f2||_0x2e318e||_0x493cbb===_0x4354f2[_0x413f2d(0x192)])return;const _0x4dbb5c=_0x493cbb?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x493cbb+'\x22.':_0x413f2d(0x18a);throw CliErrors[_0x413f2d(0x16f)](_0x4354f2[_0x413f2d(0x18e)]+'='+_0x4354f2[_0x413f2d(0x192)]+_0x413f2d(0x197)+_0x4dbb5c+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0x4354f2[_0x413f2d(0x18e)]+'\x22.'));}export function createPipelineEnv(_0x531053,_0xa0a576,_0x49ef33=[]){const _0x3a9f4c=a251_0x3379;return{'rawFlags':_0xa0a576,'args':_0x49ef33,'resolveAppCode':()=>_0x531053[_0x3a9f4c(0x19f)],'resolveCookie':()=>_0x531053[_0x3a9f4c(0x198)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a251_0x2708d1(_0xa0a576),'defaultFormat':_0x531053['format'],'defaultPageSize':_0x531053[_0x3a9f4c(0x189)],'defaultVerbose':_0x531053[_0x3a9f4c(0x19e)],'apiDir':_0x531053[_0x3a9f4c(0x19d)],'riskLevel':_0x531053['riskLevel'],'selectedAppName':_0x531053['explicitAppName'],'mergedCli':{'defaultApp':_0x531053['defaultApp'],'currentApp':_0x531053[_0x3a9f4c(0x166)],'appCode':_0x531053[_0x3a9f4c(0x19f)],'apps':_0x531053[_0x3a9f4c(0x190)]}};}export function createRabetbaseRunnerAdapter(_0x30ccb5={}){const _0x130fe2=a251_0x3379;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x130fe2(0x19b)](_0x5af834=>PIPELINE_FLAG_NAMES[_0x130fe2(0x155)](_0x5af834['name']))[_0x130fe2(0x17f)](({name:_0x1aa5c6,type:_0x44ed2f,description:_0x118a42})=>({'name':_0x1aa5c6,'type':_0x44ed2f,'description':_0x118a42})),'formatOutput':_0x30ccb5[_0x130fe2(0x18b)]??formatOutput,'getCommandLabel'(_0x1fc1f1){const _0x43abe1=_0x130fe2;return CLI_BIN_NAME+'\x20'+_0x1fc1f1[_0x43abe1(0x158)]+'\x20'+_0x1fc1f1[_0x43abe1(0x165)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x1b8d31,{def:_0x5b5b3b}){const _0x448dab=_0x130fe2,_0xee4199=_0x1b8d31['includes'](_0x448dab(0x191))?_0x448dab(0x15b):_0x448dab(0x1a0)+_0x5b5b3b[_0x448dab(0x15d)]+_0x448dab(0x187)+_0x448dab(0x15b);return CliErrors[_0x448dab(0x16f)](_0x1b8d31+_0x448dab(0x184)+_0xee4199);}},async 'prepare'(_0x10a3e9,_0x5a5872,_0x187552,_0x765147){const _0x3b444c=_0x130fe2,_0x454e1f=_0x5a5872['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x10a3e9,_0x187552,_0x454e1f,_0x765147);const _0x1ac669=resolveCommandAuthMode(_0x10a3e9);let _0x17c681='';if(_0x1ac669!==_0x3b444c(0x18d)){_0x17c681=_0x5a5872['resolveCookie']()||'';if(!_0x17c681){if(_0x1ac669===_0x3b444c(0x16b))throw CliErrors[_0x3b444c(0x15e)]();}else{const {setActiveCookie:_0x49df3f}=await import('../core/api-client.js');_0x49df3f(_0x17c681);}}const _0x4513c4=_0x5a5872['resolveAppCode']()??'';if(_0x10a3e9[_0x3b444c(0x193)]!==![]){assertEnvAppCodeNotIgnored(_0x4513c4,resolveEnvAppCode(),hasExplicitAppCode(_0x187552,_0x5a5872[_0x3b444c(0x178)]));if(!_0x4513c4)throw CliErrors[_0x3b444c(0x15c)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+_0x3b444c(0x19c));}return{'defaults':{'booleans':{'verbose':_0x5a5872[_0x3b444c(0x182)]},'numbers':{'pagesize':_0x5a5872[_0x3b444c(0x186)]}},'extras':{'appCode':_0x4513c4,'cookie':_0x17c681,'apiDomain':_0x5a5872[_0x3b444c(0x18c)](),'apiDir':_0x454e1f,'selectedAppName':_0x5a5872[_0x3b444c(0x171)],'mergedCli':_0x5a5872[_0x3b444c(0x18f)]}};},'confirmHighRisk':_0x30ccb5['confirmHighRisk']??(async({env:_0x26d091,commandLabel:_0x178e36})=>{const _0x53384d=_0x130fe2;if(_0x26d091[_0x53384d(0x17c)])throw CliErrors[_0x53384d(0x16f)](_0x53384d(0x175)+_0x178e36+_0x53384d(0x169));await requireConfirmationPrompt({'lines':[_0x53384d(0x16d)+_0x178e36,_0x53384d(0x170)],'createCancelledError':_0x351fee=>CliErrors[_0x53384d(0x15f)](_0x351fee)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x1732d2=a251_0x3379,{clearActiveCookie:_0x58f3be}=await import(_0x1732d2(0x172));_0x58f3be();}export async function finalizeRabetbaseRuntimeState(){const _0x345aaa=a251_0x3379;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x3402c2},{initEnv:_0x164276}]=await Promise[_0x345aaa(0x16e)]([import('../constant/domain.js'),import('../constant/env.js')]);_0x3402c2(),_0x164276(_0x345aaa(0x181));}}export async function runCommand(_0x292101,_0x44c115,_0x33af69=terminalRunnerAdapter){const _0x42ebee=a251_0x3379;assertRejectedFlags(_0x292101,_0x44c115[_0x42ebee(0x178)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x292101)?withUpdateNotice(_0x292101):_0x292101,_0x44c115,_0x33af69);}function assertRejectedFlags(_0x8983ec,_0x4f1ea2){const _0x4ce81e=a251_0x3379;for(const _0x3abf93 of _0x8983ec['rejectedFlags']??[]){const _0x136f54=GLOBAL_FLAGS[_0x4ce81e(0x185)](_0x55b88c=>_0x55b88c[_0x4ce81e(0x18e)]===_0x3abf93[_0x4ce81e(0x18e)]),_0x46d8af=new Set([_0x3abf93['name'],toCamelCase(_0x3abf93[_0x4ce81e(0x18e)]),_0x136f54?.['meowKey']]),_0x8789d0=[..._0x46d8af][_0x4ce81e(0x164)](_0x4d8fbc=>{if(!_0x4d8fbc)return![];const _0x56a713=_0x4f1ea2[_0x4d8fbc];return _0x56a713!==undefined&&_0x56a713!==null&&_0x56a713!==![];});if(_0x8789d0)throw CliErrors['validation'](_0x3abf93['message'],_0x3abf93[_0x4ce81e(0x167)]);}}function toCamelCase(_0x3d755e){const _0x55d3d0=a251_0x3379;return _0x3d755e['replace'](/-([a-z])/g,(_0x2f28e0,_0x404d2a)=>_0x404d2a[_0x55d3d0(0x159)]());}function shouldAttachUpdateNotice(_0x338133){const _0x5c938a=a251_0x3379;if(_0x338133['hasFormat']===![])return![];return![_0x5c938a(0x183),_0x5c938a(0x173),_0x5c938a(0x177)][_0x5c938a(0x162)](_0x338133[_0x5c938a(0x158)]);}function withUpdateNotice(_0x13cced){return{..._0x13cced,async 'execute'(_0x15d1a2){const _0x273f13=a251_0x3379,_0x42cf1a=shouldResolveUpdateNotice(_0x15d1a2)?resolveLatestUpdateNotice()[_0x273f13(0x161)](()=>null):Promise[_0x273f13(0x163)](null),_0x4e0862=await _0x13cced[_0x273f13(0x17b)](_0x15d1a2);return attachUpdateNotice(_0x4e0862,await _0x42cf1a);}};}function shouldResolveUpdateNotice(_0x5b38cf){const _0x5db70a=a251_0x3379;return _0x5b38cf[_0x5db70a(0x19a)]===_0x5db70a(0x179)&&!_0x5b38cf[_0x5db70a(0x194)];}function attachUpdateNotice(_0x1f8da7,_0x45cbdd){const _0x5e5ab2=a251_0x3379;if(!_0x45cbdd||!_0x1f8da7||typeof _0x1f8da7!==_0x5e5ab2(0x195))return _0x1f8da7;const _0x4b087f=_0x1f8da7,_0x516747=typeof _0x4b087f[_0x5e5ab2(0x157)]===_0x5e5ab2(0x195)&&_0x4b087f[_0x5e5ab2(0x157)]!==null?_0x4b087f[_0x5e5ab2(0x157)]:{};return{..._0x4b087f,'_notice':{..._0x516747,'update':_0x45cbdd}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x350a86,_0x2b4a80){const _0x33ae91=a252_0xcb40,_0x4330a2=_0x350a86();while(!![]){try{const _0x43dae7=parseInt(_0x33ae91(0x1b2))/0x1*(-parseInt(_0x33ae91(0x1b3))/0x2)+parseInt(_0x33ae91(0x1ae))/0x3+-parseInt(_0x33ae91(0x1b6))/0x4*(parseInt(_0x33ae91(0x1b5))/0x5)+-parseInt(_0x33ae91(0x1af))/0x6+-parseInt(_0x33ae91(0x1b0))/0x7+parseInt(_0x33ae91(0x1b7))/0x8*(parseInt(_0x33ae91(0x1b8))/0x9)+parseInt(_0x33ae91(0x1b4))/0xa*(parseInt(_0x33ae91(0x1b1))/0xb);if(_0x43dae7===_0x2b4a80)break;else _0x4330a2['push'](_0x4330a2['shift']());}catch(_0x5c9392){_0x4330a2['push'](_0x4330a2['shift']());}}}(a252_0x10ec,0xaed6a));import{buildSchemaPayload as a252_0x5a2084}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a252_0xcb40(_0x525240,_0x4e5ce8){_0x525240=_0x525240-0x1ae;const _0x10ecdb=a252_0x10ec();let _0xcb40be=_0x10ecdb[_0x525240];return _0xcb40be;}function a252_0x10ec(){const _0x3b08fd=['2585904FALFhe','3378291nNaFXU','724779jdKmrq','37298Efyqid','74MQaZQT','480LCwNsI','37355JuMhLj','244apGbtb','2292152tZEzMK','9zcfNwr','48903kzgyXN'];a252_0x10ec=function(){return _0x3b08fd;};return a252_0x10ec();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const {serviceRegistry:_0x8a8653,findDefinition:_0x15b103}=await import('../commands/registry.js');return a252_0x5a2084({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x8a8653,'buildAllFlags':buildAllFlags,'findDefinition':_0x15b103});}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xef996a,_0x41c5c0){var _0x1ad4dc=a253_0x2e24,_0x101f70=_0xef996a();while(!![]){try{var _0x26ea57=-parseInt(_0x1ad4dc(0x1a9))/0x1+-parseInt(_0x1ad4dc(0x1a2))/0x2*(parseInt(_0x1ad4dc(0x1ac))/0x3)+parseInt(_0x1ad4dc(0x1a8))/0x4*(-parseInt(_0x1ad4dc(0x1a5))/0x5)+-parseInt(_0x1ad4dc(0x1a7))/0x6+-parseInt(_0x1ad4dc(0x1a6))/0x7*(-parseInt(_0x1ad4dc(0x1aa))/0x8)+-parseInt(_0x1ad4dc(0x1a4))/0x9+parseInt(_0x1ad4dc(0x1a3))/0xa*(parseInt(_0x1ad4dc(0x1ab))/0xb);if(_0x26ea57===_0x41c5c0)break;else _0x101f70['push'](_0x101f70['shift']());}catch(_0x235092){_0x101f70['push'](_0x101f70['shift']());}}}(a253_0x2b65,0x4de48));function a253_0x2e24(_0x3be92b,_0x3fe818){_0x3be92b=_0x3be92b-0x1a2;var _0x2b65cc=a253_0x2b65();var _0x2e24e6=_0x2b65cc[_0x3be92b];return _0x2e24e6;}function a253_0x2b65(){var _0x19b381=['12640aKQYQq','33ipBsGa','1136568spquqs','2QFLTTU','3203020BrFeKS','4374621QbHMnV','465WMQxWn','2611HGwQuq','1138818lGhebn','3140WxXzwt','103465xrpYxu'];a253_0x2b65=function(){return _0x19b381;};return a253_0x2b65();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.4.
|
|
2
|
-
export declare const GIT_TAG = "v2.4.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-08-
|
|
1
|
+
export declare const VERSION = "2.4.7-beta.1";
|
|
2
|
+
export declare const GIT_TAG = "v2.4.7-beta.1";
|
|
3
|
+
export declare const GIT_COMMIT = "1ad7f63";
|
|
4
|
+
export declare const BUILD_TIME = "2026-08-19T12:37:17.641Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a254_0xc6aa6=a254_0x2558;function a254_0x2558(_0x547bb8,_0x5bfb6a){_0x547bb8=_0x547bb8-0x1a5;const _0x9415e=a254_0x9415();let _0x255899=_0x9415e[_0x547bb8];return _0x255899;}(function(_0x337105,_0xdd5d44){const _0x456835=a254_0x2558,_0x4c0206=_0x337105();while(!![]){try{const _0x3e2d96=-parseInt(_0x456835(0x1ac))/0x1*(-parseInt(_0x456835(0x1ab))/0x2)+-parseInt(_0x456835(0x1b1))/0x3+-parseInt(_0x456835(0x1b2))/0x4*(-parseInt(_0x456835(0x1a9))/0x5)+parseInt(_0x456835(0x1ae))/0x6+-parseInt(_0x456835(0x1ad))/0x7*(-parseInt(_0x456835(0x1a7))/0x8)+parseInt(_0x456835(0x1a5))/0x9*(-parseInt(_0x456835(0x1af))/0xa)+-parseInt(_0x456835(0x1a8))/0xb;if(_0x3e2d96===_0xdd5d44)break;else _0x4c0206['push'](_0x4c0206['shift']());}catch(_0x47b010){_0x4c0206['push'](_0x4c0206['shift']());}}}(a254_0x9415,0xc9ce0));export const VERSION=a254_0xc6aa6(0x1aa);function a254_0x9415(){const _0x3a8244=['4aUxnjN','9Gncsff','2026-08-19T12:37:17.641Z','10696IUgIuY','39500527bvbXkM','1880540oEqnen','2.4.7-beta.1','5852XSPdwz','467HDnnPO','8554pUaEJN','8803140STdDel','3551140JvhTgo','1ad7f63','212673sQlQCR'];a254_0x9415=function(){return _0x3a8244;};return a254_0x9415();}export const GIT_TAG='v2.4.7-beta.1';export const GIT_COMMIT=a254_0xc6aa6(0x1b0);export const BUILD_TIME=a254_0xc6aa6(0x1a6);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5ed5b5,_0x5ba0d0){var _0x248419=a255_0x2310,_0x4f2015=_0x5ed5b5();while(!![]){try{var _0x2406b1=parseInt(_0x248419(0x173))/0x1*(-parseInt(_0x248419(0x176))/0x2)+parseInt(_0x248419(0x177))/0x3+-parseInt(_0x248419(0x17d))/0x4*(-parseInt(_0x248419(0x171))/0x5)+parseInt(_0x248419(0x179))/0x6*(-parseInt(_0x248419(0x172))/0x7)+parseInt(_0x248419(0x17c))/0x8+parseInt(_0x248419(0x17a))/0x9*(parseInt(_0x248419(0x175))/0xa)+parseInt(_0x248419(0x178))/0xb;if(_0x2406b1===_0x5ba0d0)break;else _0x4f2015['push'](_0x4f2015['shift']());}catch(_0x441d58){_0x4f2015['push'](_0x4f2015['shift']());}}}(a255_0x14a2,0x24a21));import a255_0x37bc08 from'chalk';function a255_0x2310(_0x2f61bd,_0x4bb093){_0x2f61bd=_0x2f61bd-0x170;var _0x14a278=a255_0x14a2();var _0x2310af=_0x14a278[_0x2f61bd];return _0x2310af;}function a255_0x14a2(){var _0x52cd05=['3502334yCLBxJ','6VJYhbT','58311JrnjEt','\x20\x20Use\x20','308880cgsdow','4DDduGY','\x20to\x20view\x20available\x20commands.','log','green','1067775uChaNm','1877575OhYBjU','282466poEpNo','bold','200AmaqSu','2jaNHzk','1803sJlMPs'];a255_0x14a2=function(){return _0x52cd05;};return a255_0x14a2();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x39373d=a255_0x2310;console[_0x39373d(0x17f)](),console[_0x39373d(0x17f)](a255_0x37bc08[_0x39373d(0x170)][_0x39373d(0x174)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x39373d(0x17f)](),console[_0x39373d(0x17f)](_0x39373d(0x17b)+a255_0x37bc08[_0x39373d(0x170)][_0x39373d(0x174)](CLI_BIN_NAME+'\x20--help')+_0x39373d(0x17e)),console[_0x39373d(0x17f)]();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5bf812,_0x140594){const _0xfb0b97=a256_0x2db7,_0x2671ba=_0x5bf812();while(!![]){try{const _0x2c2b10=parseInt(_0xfb0b97(0xb3))/0x1*(-parseInt(_0xfb0b97(0xbe))/0x2)+parseInt(_0xfb0b97(0xb6))/0x3+parseInt(_0xfb0b97(0xbd))/0x4*(parseInt(_0xfb0b97(0xaa))/0x5)+parseInt(_0xfb0b97(0xa9))/0x6+-parseInt(_0xfb0b97(0xb2))/0x7*(parseInt(_0xfb0b97(0xb5))/0x8)+-parseInt(_0xfb0b97(0xbc))/0x9*(-parseInt(_0xfb0b97(0xbb))/0xa)+-parseInt(_0xfb0b97(0xb4))/0xb*(parseInt(_0xfb0b97(0xba))/0xc);if(_0x2c2b10===_0x140594)break;else _0x2671ba['push'](_0x2671ba['shift']());}catch(_0x4227b1){_0x2671ba['push'](_0x2671ba['shift']());}}}(a256_0xf1cf,0xc4f05));function a256_0x2db7(_0x2bc4,_0x112c55){_0x2bc4=_0x2bc4-0xa6;const _0xf1cf7c=a256_0xf1cf();let _0x2db7d6=_0xf1cf7c[_0x2bc4];return _0x2db7d6;}function a256_0xf1cf(){const _0x1b404d=['already\x20current','Installation\x20failed','installedPath','849540gNhnpN','9890hcklaD','6525OViJJU','796tGnAMC','1073690rYYIdA','installed','code','warn','4238040CDEtCX','14015pUaHYM','\x20via\x20skills@latest','\x20at\x20','Rabetbase\x20Built-in\x20Skill\x20','skillVersion','FAILED','[BUILTIN_SKILL_INSTALL_','SOURCE_INVALID','91ubpdxu','2OpZpEK','110pFXTxv','133688KvtKxM','2473146ACRBbg'];a256_0xf1cf=function(){return _0x1b404d;};return a256_0xf1cf();}import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x54113d={}){const _0x26b026=a256_0x2db7,_0x4aaf98=installBuiltinSkill(_0x54113d);if(_0x4aaf98['ok']){const _0x76d627=_0x4aaf98['changed']?_0x26b026(0xa6):_0x26b026(0xb7),_0xd70505=_0x4aaf98['installedPath']?_0x26b026(0xac)+_0x4aaf98[_0x26b026(0xb9)]:_0x26b026(0xab);return console['log'](_0x26b026(0xad)+_0x4aaf98[_0x26b026(0xae)]+'\x20'+_0x76d627+_0xd70505),_0x4aaf98;}const _0x51dfcd=_0x26b026(0xb0)+(_0x4aaf98[_0x26b026(0xa7)]??_0x26b026(0xaf))+']\x20'+(_0x4aaf98['error']??_0x26b026(0xb8))+'.\x20'+('Repair\x20with:\x20'+_0x4aaf98['repairCommand']);if(_0x4aaf98['code']===_0x26b026(0xb1))throw new Error(_0x51dfcd);return console[_0x26b026(0xa8)](_0x51dfcd),_0x4aaf98;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x37f498,_0x1bb56e){const _0x2ac629=a257_0x5645,_0x38230f=_0x37f498();while(!![]){try{const _0x59872b=-parseInt(_0x2ac629(0x1e5))/0x1+parseInt(_0x2ac629(0x1e6))/0x2*(parseInt(_0x2ac629(0x1e0))/0x3)+parseInt(_0x2ac629(0x1e1))/0x4*(-parseInt(_0x2ac629(0x1ec))/0x5)+-parseInt(_0x2ac629(0x1ed))/0x6+parseInt(_0x2ac629(0x1de))/0x7*(-parseInt(_0x2ac629(0x1e2))/0x8)+parseInt(_0x2ac629(0x1ea))/0x9+parseInt(_0x2ac629(0x1e4))/0xa*(parseInt(_0x2ac629(0x1ee))/0xb);if(_0x59872b===_0x1bb56e)break;else _0x38230f['push'](_0x38230f['shift']());}catch(_0x4dac0c){_0x38230f['push'](_0x38230f['shift']());}}}(a257_0x1c0f,0xaace3));const DESCRIPTION_MAX_LENGTH=0x1f4;function a257_0x5645(_0x91f2c2,_0x49494a){_0x91f2c2=_0x91f2c2-0x1db;const _0x1c0f85=a257_0x1c0f();let _0x56456c=_0x1c0f85[_0x91f2c2];return _0x56456c;}export function buildRabetbaseConfirmationRequest(_0x30915d,_0x43b67c,_0x24941a){const _0x498527=a257_0x5645,_0x520d1b=normalizeText(_0x30915d[_0x498527(0x1e9)],DESCRIPTION_MAX_LENGTH),_0xbb05c0=_0x520d1b||normalizeText(defaultDescription(requireWriteRisk(_0x30915d),_0x43b67c),DESCRIPTION_MAX_LENGTH);return{'operation':_0x43b67c,'risk':requireWriteRisk(_0x30915d),'description':_0xbb05c0,..._0x24941a?{'signal':_0x24941a}:{}};}function requireWriteRisk(_0x15ae26){const _0x481bc9=a257_0x5645;if(_0x15ae26[_0x481bc9(0x1e8)]===_0x481bc9(0x1dc)||_0x15ae26['risk']==='high-risk-write')return _0x15ae26[_0x481bc9(0x1e8)];throw new Error(_0x481bc9(0x1e7));}function defaultDescription(_0x4ac26f,_0x3fa353){const _0x3447a6=a257_0x5645;if(_0x4ac26f==='high-risk-write')return _0x3447a6(0x1dd)+_0x3fa353+_0x3447a6(0x1eb);return _0x3447a6(0x1e3)+_0x3fa353+';该操作可能创建或修改业务数据或本地配置。';}function a257_0x1c0f(){const _0x2714a8=['2876902EthqCS','string','54Dfrjit','4iYEAuL','24WTLUtQ','将执行写入操作\x20','290ImsLpM','373074wBZDZh','24232OCjJyy','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','risk','confirmationDescription','5470857OFEeKc',';该操作可能覆盖、删除或明显影响线上运行行为。','5965295CPtqwT','19008PegqVc','1015003eTDBWx','replace','write','将执行高风险写入操作\x20'];a257_0x1c0f=function(){return _0x2714a8;};return a257_0x1c0f();}function normalizeText(_0x5a4566,_0xaff36c){const _0x5f3139=a257_0x5645;if(typeof _0x5a4566!==_0x5f3139(0x1df))return'';return _0x5a4566[_0x5f3139(0x1db)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x5f3139(0x1db)](/\s+/g,'\x20')['trim']()['slice'](0x0,_0xaff36c);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a258_0x1ee5(_0x3fad2f,_0x1d702c){_0x3fad2f=_0x3fad2f-0x1af;var _0x48fa56=a258_0x48fa();var _0x1ee58d=_0x48fa56[_0x3fad2f];return _0x1ee58d;}(function(_0xaf02c8,_0x5097fd){var _0x13ee3a=a258_0x1ee5,_0x2b2242=_0xaf02c8();while(!![]){try{var _0x5ec7a7=-parseInt(_0x13ee3a(0x1b0))/0x1*(parseInt(_0x13ee3a(0x1bf))/0x2)+-parseInt(_0x13ee3a(0x1b2))/0x3+parseInt(_0x13ee3a(0x1bc))/0x4+-parseInt(_0x13ee3a(0x1b1))/0x5+-parseInt(_0x13ee3a(0x1b5))/0x6*(-parseInt(_0x13ee3a(0x1b4))/0x7)+-parseInt(_0x13ee3a(0x1ba))/0x8*(-parseInt(_0x13ee3a(0x1b8))/0x9)+parseInt(_0x13ee3a(0x1b3))/0xa*(parseInt(_0x13ee3a(0x1c1))/0xb);if(_0x5ec7a7===_0x5097fd)break;else _0x2b2242['push'](_0x2b2242['shift']());}catch(_0x20afa1){_0x2b2242['push'](_0x2b2242['shift']());}}}(a258_0x48fa,0x5da10));export function canonicalRabetbaseOperation(_0x3ae380){var _0x4b1027=a258_0x1ee5;return[_0x3ae380[_0x4b1027(0x1b9)],..._0x3ae380[_0x4b1027(0x1be)][_0x4b1027(0x1c0)]()[_0x4b1027(0x1b7)](/\s+/)][_0x4b1027(0x1bb)](Boolean)[_0x4b1027(0x1bd)]('.');}export function createRabetbaseWriteMetadata(_0xdde8d7,_0x4f901d,_0x2e2797,_0x2399d0){var _0x302e57=a258_0x1ee5;if(_0x2399d0||_0x2e2797['ok']!==!![]||_0xdde8d7['risk']!=='write'&&_0xdde8d7['risk']!==_0x302e57(0x1b6))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x302e57(0x1af),'operation':_0x4f901d,'risk':_0xdde8d7['risk']}}};}function a258_0x48fa(){var _0x33ce15=['6kWCeWn','high-risk-write','split','18XJTJCY','service','1696624WWXPPe','filter','2456680zZOyjE','join','command','106844VVsEAd','trim','740377QGFzZz','rabetbase.write.completed','11yxqWQf','1647595qUtTpD','1079247ZrcRAS','70GjVEij','1056573wRREfu'];a258_0x48fa=function(){return _0x33ce15;};return a258_0x48fa();}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x19deee,_0x3755a3){const _0x1bbe36=a259_0x23b1,_0x21e140=_0x19deee();while(!![]){try{const _0x55ba98=-parseInt(_0x1bbe36(0xa8))/0x1*(parseInt(_0x1bbe36(0xa7))/0x2)+parseInt(_0x1bbe36(0xc0))/0x3+parseInt(_0x1bbe36(0xb3))/0x4*(parseInt(_0x1bbe36(0xac))/0x5)+parseInt(_0x1bbe36(0xb5))/0x6+parseInt(_0x1bbe36(0xaf))/0x7*(-parseInt(_0x1bbe36(0xa5))/0x8)+-parseInt(_0x1bbe36(0xbb))/0x9+parseInt(_0x1bbe36(0xa6))/0xa;if(_0x55ba98===_0x3755a3)break;else _0x21e140['push'](_0x21e140['shift']());}catch(_0x1b85bb){_0x21e140['push'](_0x21e140['shift']());}}}(a259_0x13c7,0xd67a0));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';function a259_0x13c7(){const _0x3ccdf4=['Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','dry-run','result','668776ZuUAFX','20393620amvLcH','1877878zbAcfk','1pZYjRb','command','aborted','riskLevel','795bMToco','Rabetbase\x20invocation\x20aborted.','format','91HwWDLI','reason','dryRun','data','11764GESLKG','rawFlags','3300348OtKLLj','args','high-risk-write','yes','definition','signal','1945323MQHros','write','isNonInteractive','message','execute','189912QbGgyS','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','risk'];a259_0x13c7=function(){return _0x3ccdf4;};return a259_0x13c7();}import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x159572,command:_0x4b10f8,risk:_0x4e4351,dryRun:_0xd4120f}){const _0xf563f7=a259_0x23b1;return JSON['stringify']({'ok':_0x159572['ok'],'command':_0x4b10f8,'risk':_0x4e4351,..._0xd4120f?{'dryRun':!![]}:{},..._0x159572[_0xf563f7(0xb2)]!==undefined?{'data':_0x159572[_0xf563f7(0xb2)]}:{},..._0x159572[_0xf563f7(0xbe)]?{'message':_0x159572['message']}:{}});}};export async function invokeRabetbase(_0x1ce45b,_0x265fc6){const _0x501332=a259_0x23b1;throwIfAborted(_0x265fc6[_0x501332(0xba)]);const _0x4e7ae8=await resolveRabetbaseInvocation(_0x1ce45b),_0x4374de=canonicalRabetbaseOperation(_0x4e7ae8['definition']);return await confirmWriteBeforeQueue(_0x4e7ae8[_0x501332(0xb9)],_0x4e7ae8[_0x501332(0xb4)],_0x4374de,_0x265fc6),runSerialized(async()=>{const _0x13686e=_0x501332,_0x292866={};try{throwIfAborted(_0x265fc6['signal']);const _0x284fab=buildConfigFromFlags(_0x4e7ae8['rawFlags']);await initGlobalEnvironment(_0x284fab);const _0x3a56a6=createPipelineEnv(_0x284fab,{..._0x4e7ae8[_0x13686e(0xb4)],'yes':_0x4e7ae8['definition']['risk']===_0x13686e(0xb7)?!![]:_0x4e7ae8[_0x13686e(0xb4)][_0x13686e(0xb8)],'nonInteractive':!![]},_0x4e7ae8[_0x13686e(0xb6)]);_0x3a56a6[_0x13686e(0xbd)]=!![],_0x3a56a6[_0x13686e(0xab)]=_0x13686e(0xb7);const _0x1640f7=withAbortSignal(_0x4e7ae8['definition'],_0x265fc6['signal']),_0x3d13e0=createRabetbaseRunnerAdapter({'formatOutput'(_0x202c52,_0x169ef2){const _0x2df610=_0x13686e;_0x292866[_0x2df610(0xa4)]=_0x202c52,_0x292866['command']=_0x169ef2[_0x2df610(0xa9)],_0x292866[_0x2df610(0xa1)]=_0x169ef2[_0x2df610(0xa1)],_0x292866[_0x2df610(0xae)]=_0x169ef2[_0x2df610(0xae)],_0x292866['dryRun']=_0x169ef2[_0x2df610(0xb1)]===!![];},async 'confirmHighRisk'(){const _0x476fd3=_0x13686e;throw new Error(_0x476fd3(0xa2));}});await runCommand(_0x1640f7,_0x3a56a6,_0x3d13e0);if(!_0x292866[_0x13686e(0xa4)]||!_0x292866[_0x13686e(0xa9)]||!_0x292866['risk']||!_0x292866[_0x13686e(0xae)])throw new Error(_0x13686e(0xc1));const _0x3364b2=_0x292866[_0x13686e(0xb1)]===!![],_0x1ce5fc=_0x265fc6['presentation']??defaultPresentation,_0x37ab88={'result':_0x292866[_0x13686e(0xa4)],'command':_0x292866[_0x13686e(0xa9)],'operation':_0x4374de,'risk':_0x292866[_0x13686e(0xa1)],'format':_0x292866[_0x13686e(0xae)],'dryRun':_0x3364b2},_0x45e77b=createRabetbaseWriteMetadata(_0x4e7ae8[_0x13686e(0xb9)],_0x4374de,_0x292866[_0x13686e(0xa4)],_0x3364b2);let _0x34eb14;try{_0x34eb14=await _0x1ce5fc['present'](_0x37ab88);}catch(_0x1bf9ba){if(!_0x45e77b||_0x1ce5fc===defaultPresentation)throw _0x1bf9ba;_0x34eb14=await defaultPresentation['present'](_0x37ab88);}return{'operation':_0x4374de,'risk':_0x292866[_0x13686e(0xa1)],'mode':_0x3364b2?_0x13686e(0xa3):_0x13686e(0xbf),'result':_0x292866[_0x13686e(0xa4)],'output':_0x34eb14,..._0x45e77b?{'metadata':_0x45e77b}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}function a259_0x23b1(_0x54fd7f,_0x1033a8){_0x54fd7f=_0x54fd7f-0xa1;const _0x13c78e=a259_0x13c7();let _0x23b1f6=_0x13c78e[_0x54fd7f];return _0x23b1f6;}async function confirmWriteBeforeQueue(_0x335bce,_0x23680d,_0x2a1443,_0x4cb199){const _0x5ce3f2=a259_0x23b1;if(_0x23680d[_0x5ce3f2(0xb1)]===!![]||_0x335bce[_0x5ce3f2(0xa1)]!==_0x5ce3f2(0xbc)&&_0x335bce[_0x5ce3f2(0xa1)]!==_0x5ce3f2(0xb7))return;await _0x4cb199['confirmation']['confirm'](buildRabetbaseConfirmationRequest(_0x335bce,_0x2a1443,_0x4cb199['signal']));}function withAbortSignal(_0x2de2c6,_0x64a889){return{..._0x2de2c6,async 'execute'(_0x446d68){const _0x2bf32e=a259_0x23b1;return throwIfAborted(_0x64a889),_0x2de2c6[_0x2bf32e(0xbf)](_0x446d68);}};}function throwIfAborted(_0x50d212){const _0x4793da=a259_0x23b1;if(_0x50d212?.[_0x4793da(0xaa)])throw _0x50d212[_0x4793da(0xb0)]instanceof Error?_0x50d212['reason']:new DOMException(_0x4793da(0xad),'AbortError');}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a260_0x59e2(_0x4b7c7a,_0x49f128){_0x4b7c7a=_0x4b7c7a-0x151;const _0x3b5068=a260_0x3b50();let _0x59e264=_0x3b5068[_0x4b7c7a];return _0x59e264;}function a260_0x3b50(){const _0x4e74a6=['14oaartV','56RSncdy','1416984iecFyM','992164ySgCgz','5qisGqd','catch','12sOlmdT','10vpTwrl','130697HRojpp','5703529oZUNkM','193653culsaf','331373VmJKBZ','resolve','3087073CfUMCS','2MLSRcn','3jKAftQ'];a260_0x3b50=function(){return _0x4e74a6;};return a260_0x3b50();}const a260_0x381024=a260_0x59e2;(function(_0x50b9ec,_0xffa604){const _0x4d74e5=a260_0x59e2,_0x262166=_0x50b9ec();while(!![]){try{const _0xe2c905=parseInt(_0x4d74e5(0x156))/0x1*(parseInt(_0x4d74e5(0x159))/0x2)+-parseInt(_0x4d74e5(0x15a))/0x3*(-parseInt(_0x4d74e5(0x15e))/0x4)+-parseInt(_0x4d74e5(0x15f))/0x5*(-parseInt(_0x4d74e5(0x15d))/0x6)+-parseInt(_0x4d74e5(0x153))/0x7*(-parseInt(_0x4d74e5(0x15c))/0x8)+-parseInt(_0x4d74e5(0x155))/0x9*(parseInt(_0x4d74e5(0x152))/0xa)+-parseInt(_0x4d74e5(0x158))/0xb*(parseInt(_0x4d74e5(0x151))/0xc)+-parseInt(_0x4d74e5(0x154))/0xd*(parseInt(_0x4d74e5(0x15b))/0xe);if(_0xe2c905===_0xffa604)break;else _0x262166['push'](_0x262166['shift']());}catch(_0x7d06ca){_0x262166['push'](_0x262166['shift']());}}}(a260_0x3b50,0x32246));let tail=Promise[a260_0x381024(0x157)]();export async function runSerialized(_0x18dc48){const _0x538e0b=a260_0x381024,_0x2be536=tail;let _0x6fcaf0;tail=new Promise(_0x252296=>{_0x6fcaf0=_0x252296;}),await _0x2be536[_0x538e0b(0x160)](()=>undefined);try{return await _0x18dc48();}finally{_0x6fcaf0();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x318287,_0x4778e0){const _0x30843d=a261_0x4be3,_0x36bb16=_0x318287();while(!![]){try{const _0x5e723d=-parseInt(_0x30843d(0x11b))/0x1*(parseInt(_0x30843d(0x117))/0x2)+parseInt(_0x30843d(0x119))/0x3+-parseInt(_0x30843d(0x126))/0x4*(-parseInt(_0x30843d(0x11d))/0x5)+parseInt(_0x30843d(0x11c))/0x6*(-parseInt(_0x30843d(0x121))/0x7)+-parseInt(_0x30843d(0x128))/0x8+parseInt(_0x30843d(0x12a))/0x9+-parseInt(_0x30843d(0x123))/0xa*(parseInt(_0x30843d(0x125))/0xb);if(_0x5e723d===_0x4778e0)break;else _0x36bb16['push'](_0x36bb16['shift']());}catch(_0x19b9d1){_0x36bb16['push'](_0x36bb16['shift']());}}}(a261_0x4b93,0x4b684));import a261_0x40aba3 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a261_0x4be3(_0x4bcb4f,_0x14a994){_0x4bcb4f=_0x4bcb4f-0x114;const _0x4b93fc=a261_0x4b93();let _0x4be308=_0x4b93fc[_0x4bcb4f];return _0x4be308;}function a261_0x4b93(){const _0x59d5d6=['hint','772211gWVpRf','8hZoPOV','unknownCommand','2936992FNzVqd','run','1956582AyVWlD','join','slice','wildcardDef','146162WHfwRW','flags','1519983jqqvEq','input','1vXvBMm','47298lnKjzX','1436465bsYBZy','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','validation','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','301PmEZjR','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','30XCfNom'];a261_0x4b93=function(){return _0x59d5d6;};return a261_0x4b93();}export async function resolveRabetbaseInvocation(_0x600229){const _0x327a88=a261_0x4be3,_0x5153cd=a261_0x40aba3('',{'importMeta':import.meta,'argv':[..._0x600229],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x37c5c1=[..._0x5153cd[_0x327a88(0x11a)]],_0x125fe4=_0x5153cd[_0x327a88(0x118)],_0x3677d4=_0x37c5c1[0x0];if(!_0x3677d4)throw CliErrors[_0x327a88(0x11f)](_0x327a88(0x11e));const _0x299a62=resolveRemovedCommand(_0x3677d4,_0x37c5c1[0x1]);if(_0x299a62)throw CliErrors[_0x327a88(0x11f)](_0x299a62['message'],_0x299a62[_0x327a88(0x124)]);if(_0x3677d4===_0x327a88(0x129))throw CliErrors[_0x327a88(0x11f)](_0x327a88(0x122),'Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.');if(!isKnownService(_0x3677d4))throw CliErrors[_0x327a88(0x127)](_0x37c5c1[_0x327a88(0x114)]('\x20'));const _0x4a40e4=getServiceEntry(_0x3677d4),_0x2b9400=_0x37c5c1[0x1],_0x3fcf30=_0x2b9400||_0x4a40e4['defaultCommand'];if(!_0x3fcf30){if(_0x4a40e4[_0x327a88(0x116)])return{'definition':_0x4a40e4['wildcardDef'],'rawFlags':_0x125fe4,'args':[]};throw CliErrors[_0x327a88(0x11f)](_0x327a88(0x120)+_0x3677d4+'\x22.');}const _0x121a59=findDefinition(_0x3677d4,_0x3fcf30);if(_0x121a59)return{'definition':_0x121a59,'rawFlags':_0x125fe4,'args':_0x37c5c1['slice'](0x2)};if(_0x4a40e4[_0x327a88(0x116)])return{'definition':_0x4a40e4[_0x327a88(0x116)],'rawFlags':_0x125fe4,'args':[_0x3fcf30,..._0x37c5c1[_0x327a88(0x115)](0x2)]};throw CliErrors[_0x327a88(0x127)](_0x3677d4+'\x20'+_0x3fcf30);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x193e02,_0x410b9c){const _0x1cd31e=a263_0x5306,_0x14d21e=_0x193e02();while(!![]){try{const _0x3ba60e=parseInt(_0x1cd31e(0x180))/0x1*(parseInt(_0x1cd31e(0x1b2))/0x2)+-parseInt(_0x1cd31e(0x1b7))/0x3+-parseInt(_0x1cd31e(0x17b))/0x4+-parseInt(_0x1cd31e(0x189))/0x5+parseInt(_0x1cd31e(0x19c))/0x6*(parseInt(_0x1cd31e(0x181))/0x7)+-parseInt(_0x1cd31e(0x1ab))/0x8*(-parseInt(_0x1cd31e(0x186))/0x9)+-parseInt(_0x1cd31e(0x17e))/0xa*(-parseInt(_0x1cd31e(0x1ae))/0xb);if(_0x3ba60e===_0x410b9c)break;else _0x14d21e['push'](_0x14d21e['shift']());}catch(_0x234ced){_0x14d21e['push'](_0x14d21e['shift']());}}}(a263_0x1ff6,0xc8280));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND='rabetbase\x20cli-skill\x20install',SKILL_NAME='rabetbase';function frontmatterValue(_0x2818f8,_0x4cd396){const _0x5e5350=a263_0x5306;return _0x2818f8['match'](new RegExp('^'+_0x4cd396+_0x5e5350(0x182),'m'))?.[0x1]?.[_0x5e5350(0x193)]()??'';}function listFiles(_0x48940c,_0x232c93=_0x48940c){const _0x19758f=a263_0x5306;return readdirSync(_0x232c93,{'withFileTypes':!![]})['flatMap'](_0x1a7237=>{const _0x47d98c=a263_0x5306,_0x5011a0=join(_0x232c93,_0x1a7237['name']),_0x3f8d21=lstatSync(_0x5011a0);if(_0x3f8d21[_0x47d98c(0x191)]())throw new Error('Symbolic\x20link\x20is\x20not\x20allowed:\x20'+_0x5011a0);if(_0x3f8d21['isDirectory']())return listFiles(_0x48940c,_0x5011a0);if(!_0x3f8d21[_0x47d98c(0x185)]())throw new Error(_0x47d98c(0x1a9)+_0x5011a0);return[relative(_0x48940c,_0x5011a0)[_0x47d98c(0x187)](sep)[_0x47d98c(0x183)]('/')];})[_0x19758f(0x195)]((_0x2c52c5,_0x56ae22)=>_0x2c52c5<_0x56ae22?-0x1:_0x2c52c5>_0x56ae22?0x1:0x0);}function digestFiles(_0x3d6669,_0xbac51a){const _0x4fa9ac=a263_0x5306,_0x466ddc=createHash(_0x4fa9ac(0x19d));for(const _0x1aab92 of _0xbac51a){if(_0x1aab92[_0x4fa9ac(0x17c)]('/')||_0x1aab92[_0x4fa9ac(0x187)]('/')[_0x4fa9ac(0x1a2)]('..')||_0x1aab92[_0x4fa9ac(0x1a2)]('\x5c'))throw new Error(_0x4fa9ac(0x17f)+_0x1aab92);_0x466ddc[_0x4fa9ac(0x19e)](_0x1aab92),_0x466ddc[_0x4fa9ac(0x19e)]('\x00'),_0x466ddc[_0x4fa9ac(0x19e)](readFileSync(join(_0x3d6669,..._0x1aab92[_0x4fa9ac(0x187)]('/')))),_0x466ddc[_0x4fa9ac(0x19e)]('\x00');}return _0x466ddc['digest'](_0x4fa9ac(0x194));}function a263_0x1ff6(){const _0x35324d=['files','rabetbase.manifest.json','length','skills','missing','Unsupported\x20Skill\x20entry:\x20','current','61264pMrOml','Installed\x20Skill\x20state\x20is\x20','unknown','2075667QHwsZN','reason','INSTALL_FAILED','skillVersion','254396hOMxqX','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','message','skills@latest\x20exited\x20','manifest','3112215wcgWlv','home','state','3703460GsVdmn','startsWith','version_mismatch','90jSLARY','Unsafe\x20manifest\x20path:\x20','12eSfAGv','63BrxRgk',':\x5cs*(.+)$','join','version','isFile','1251dfoUtF','split','path','7720985AlCSwI','error','present','every','package.json','packageVersion','packageRoot','skipped','isSymbolicLink','digest','trim','hex','sort','parse','unverifiable','SKILL.md','installedPath','SOURCE_INVALID','stdio','25464hIHDIE','sha256','update','absent','VERIFY_FAILED','utf8','includes','name'];a263_0x1ff6=function(){return _0x35324d;};return a263_0x1ff6();}function a263_0x5306(_0x51b636,_0x13cffe){_0x51b636=_0x51b636-0x17a;const _0x1ff6c0=a263_0x1ff6();let _0x5306ab=_0x1ff6c0[_0x51b636];return _0x5306ab;}function sameFiles(_0x50ade4,_0x21067d){const _0x379fba=a263_0x5306;return _0x50ade4[_0x379fba(0x1a6)]===_0x21067d[_0x379fba(0x1a6)]&&_0x50ade4[_0x379fba(0x18c)]((_0x8ce91a,_0x41eb3f)=>_0x8ce91a===_0x21067d[_0x41eb3f]);}function readSource(_0x282d67){const _0x3c55ea=a263_0x5306,_0x145e37=JSON[_0x3c55ea(0x196)](readFileSync(join(_0x282d67,_0x3c55ea(0x18d)),'utf8')),_0x332bb8=JSON['parse'](readFileSync(join(_0x282d67,_0x3c55ea(0x1a7),_0x3c55ea(0x1a5)),_0x3c55ea(0x1a1))),_0x4bb265=join(_0x282d67,'skills',SKILL_NAME),_0x1b915c=frontmatterValue(readFileSync(join(_0x4bb265,_0x3c55ea(0x198)),_0x3c55ea(0x1a1)),_0x3c55ea(0x184)),_0xa0fb27=listFiles(_0x4bb265);if(_0x332bb8['schemaVersion']!==0x1||_0x332bb8[_0x3c55ea(0x1a3)]!==SKILL_NAME||!_0x145e37['version']||_0x332bb8['packageVersion']!==_0x145e37[_0x3c55ea(0x184)]||_0x332bb8[_0x3c55ea(0x1b1)]!==_0x145e37[_0x3c55ea(0x184)]||_0x1b915c!==_0x145e37['version']||!sameFiles(_0xa0fb27,_0x332bb8[_0x3c55ea(0x1a4)])||digestFiles(_0x4bb265,_0xa0fb27)!==_0x332bb8['digest'])throw new Error(_0x3c55ea(0x1b3));return{'packageVersion':_0x145e37[_0x3c55ea(0x184)],'skillVersion':_0x1b915c,'root':_0x4bb265,'manifest':_0x332bb8};}function installedSkillPath(_0x543e11){const _0x1ce166=a263_0x5306,_0xe47eb3=resolveInstalledSkill(SKILL_NAME,{'home':_0x543e11});if(_0xe47eb3[_0x1ce166(0x17a)]===_0x1ce166(0x18b))return{'state':'present','path':dirname(_0xe47eb3['path'])};if(_0xe47eb3[_0x1ce166(0x17a)]===_0x1ce166(0x19f))return{'state':_0x1ce166(0x1a8)};return{'state':_0x1ce166(0x197),'reason':_0xe47eb3[_0x1ce166(0x1af)]};}export function inspectInstalledBuiltinSkillVersion(_0x480cef,_0x18ecd4={}){const _0x3fec34=a263_0x5306,_0x4a4870=installedSkillPath(_0x18ecd4[_0x3fec34(0x1b8)]??homedir());if(_0x4a4870['state']===_0x3fec34(0x1a8))return{'state':_0x3fec34(0x1a8),'expectedVersion':_0x480cef,'repairCommand':REPAIR_COMMAND};if(_0x4a4870['state']===_0x3fec34(0x197))return{'state':_0x3fec34(0x197),'expectedVersion':_0x480cef,'reason':_0x4a4870[_0x3fec34(0x1af)],'repairCommand':REPAIR_COMMAND};try{const _0x2d4752=frontmatterValue(readFileSync(join(_0x4a4870[_0x3fec34(0x188)],_0x3fec34(0x198)),_0x3fec34(0x1a1)),'version');return{'state':_0x2d4752===_0x480cef?_0x3fec34(0x1aa):_0x3fec34(0x17d),'expectedVersion':_0x480cef,'skillVersion':_0x2d4752,'installedPath':_0x4a4870[_0x3fec34(0x188)],'repairCommand':REPAIR_COMMAND};}catch(_0x5bf7ea){return{'state':_0x3fec34(0x197),'expectedVersion':_0x480cef,'installedPath':_0x4a4870[_0x3fec34(0x188)],'reason':_0x5bf7ea instanceof Error?_0x5bf7ea[_0x3fec34(0x1b4)]:String(_0x5bf7ea),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x14e278={}){const _0x4b2674=a263_0x5306,_0x3d3fbc=_0x14e278['packageRoot']??DEFAULT_PACKAGE_ROOT;let _0x3430a1;try{_0x3430a1=readSource(_0x3d3fbc);}catch(_0x4e4399){return{'state':_0x4b2674(0x197),'packageVersion':_0x4b2674(0x1ad),'reason':_0x4e4399 instanceof Error?_0x4e4399['message']:String(_0x4e4399),'repairCommand':REPAIR_COMMAND};}const _0xffd720=installedSkillPath(_0x14e278[_0x4b2674(0x1b8)]??homedir());if(_0xffd720[_0x4b2674(0x17a)]===_0x4b2674(0x1a8))return{'state':_0x4b2674(0x1a8),'packageVersion':_0x3430a1['packageVersion'],'repairCommand':REPAIR_COMMAND};if(_0xffd720[_0x4b2674(0x17a)]===_0x4b2674(0x197))return{'state':_0x4b2674(0x197),'packageVersion':_0x3430a1['packageVersion'],'reason':_0xffd720[_0x4b2674(0x1af)],'repairCommand':REPAIR_COMMAND};try{const _0x11e4b5=frontmatterValue(readFileSync(join(_0xffd720[_0x4b2674(0x188)],_0x4b2674(0x198)),_0x4b2674(0x1a1)),_0x4b2674(0x184));if(_0x11e4b5!==_0x3430a1[_0x4b2674(0x1b1)])return{'state':_0x4b2674(0x17d),'packageVersion':_0x3430a1[_0x4b2674(0x18e)],'skillVersion':_0x11e4b5,'installedPath':_0xffd720['path'],'repairCommand':REPAIR_COMMAND};const _0x74dcd5=listFiles(_0xffd720['path']),_0x3824d1=digestFiles(_0xffd720[_0x4b2674(0x188)],_0x74dcd5);return{'state':sameFiles(_0x74dcd5,_0x3430a1[_0x4b2674(0x1b6)]['files'])&&_0x3824d1===_0x3430a1[_0x4b2674(0x1b6)][_0x4b2674(0x192)]?'current':'content_mismatch','packageVersion':_0x3430a1['packageVersion'],'skillVersion':_0x11e4b5,'installedPath':_0xffd720['path'],'digest':_0x3824d1,'repairCommand':REPAIR_COMMAND};}catch(_0x2ece66){return{'state':_0x4b2674(0x197),'packageVersion':_0x3430a1[_0x4b2674(0x18e)],'installedPath':_0xffd720[_0x4b2674(0x188)],'reason':_0x2ece66 instanceof Error?_0x2ece66[_0x4b2674(0x1b4)]:String(_0x2ece66),'repairCommand':REPAIR_COMMAND};}}function failure(_0x1ff699,_0x3eab19,_0x8e1a9a,_0x2d2849){const _0x585195=a263_0x5306;return{'ok':![],'code':_0x1ff699,'packageVersion':_0x3eab19[_0x585195(0x18e)],'skillVersion':_0x3eab19[_0x585195(0x1b1)],'installedPath':_0x2d2849,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x8e1a9a instanceof Error?_0x8e1a9a['message']:String(_0x8e1a9a)};}export function installBuiltinSkill(_0xa4744c={}){const _0x2ac99f=a263_0x5306,_0xabc4=_0xa4744c[_0x2ac99f(0x18f)]??DEFAULT_PACKAGE_ROOT,_0x2c3377=_0xa4744c['home']??homedir();let _0x3fe711;try{_0x3fe711=readSource(_0xabc4);}catch(_0x580262){return failure(_0x2ac99f(0x19a),{'packageVersion':_0x2ac99f(0x1ad),'skillVersion':_0x2ac99f(0x1ad)},_0x580262);}const _0x46a5f5=inspectBuiltinSkill({'packageRoot':_0xabc4,'home':_0x2c3377}),_0xc7764=runNpxSkillsAddGlobal(_0xabc4,_0x3fe711['root'],{'stdio':_0xa4744c[_0x2ac99f(0x19b)]??'pipe','expectedSkillName':SKILL_NAME,'presence':{'home':_0x2c3377}});if(_0xc7764[_0x2ac99f(0x190)])return{'ok':!![],'packageVersion':_0x3fe711[_0x2ac99f(0x18e)],'skillVersion':_0x3fe711[_0x2ac99f(0x1b1)],'installedPath':_0x46a5f5['installedPath'],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0xc7764['ok'])return failure(_0x2ac99f(0x1b0),_0x3fe711,_0xc7764[_0x2ac99f(0x18a)]??_0x2ac99f(0x1b5)+_0xc7764['status']);const _0x4a45c9=inspectBuiltinSkill({'packageRoot':_0xabc4,'home':_0x2c3377});if(_0x4a45c9['state']!=='current')return failure(_0x2ac99f(0x1a0),_0x3fe711,_0x4a45c9[_0x2ac99f(0x1af)]??_0x2ac99f(0x1ac)+_0x4a45c9['state'],_0x4a45c9[_0x2ac99f(0x199)]);return{'ok':!![],'packageVersion':_0x3fe711[_0x2ac99f(0x18e)],'skillVersion':_0x3fe711[_0x2ac99f(0x1b1)],'installedPath':_0x4a45c9['installedPath'],'changed':_0x46a5f5[_0x2ac99f(0x17a)]!==_0x2ac99f(0x1aa),'repairCommand':REPAIR_COMMAND};}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x536efc,_0x252a0f){const _0x3bc0e6=a264_0x8e69,_0x43240a=_0x536efc();while(!![]){try{const _0x29bf3b=parseInt(_0x3bc0e6(0xa8))/0x1+parseInt(_0x3bc0e6(0xac))/0x2*(parseInt(_0x3bc0e6(0x93))/0x3)+parseInt(_0x3bc0e6(0x9a))/0x4*(-parseInt(_0x3bc0e6(0xaf))/0x5)+parseInt(_0x3bc0e6(0xa7))/0x6+-parseInt(_0x3bc0e6(0x99))/0x7+parseInt(_0x3bc0e6(0xb0))/0x8+-parseInt(_0x3bc0e6(0xa2))/0x9;if(_0x29bf3b===_0x252a0f)break;else _0x43240a['push'](_0x43240a['shift']());}catch(_0x580528){_0x43240a['push'](_0x43240a['shift']());}}}(a264_0x5c9f,0x5568c));import{logger}from'../utils/logger.js';function a264_0x5c9f(){const _0x170107=['toLowerCase','10EKKAGg','help','startsWith','10WiEAyX','628928oWmwDZ','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','slice','add','(empty)','entries','337476YCJwPV','argv','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','Public\x20Open\x20Skill\x20source:\x20','includes','push','1300579QUlPVM','241720ljdddG','skill','has','不支持的命令:\x20','setLogPath','\x0aAvailable\x20commands:','log','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','6877800oxiPxc','--help','from','enable-bff-save','dangerously-bff-save','551418KWxKWY','687714Ezqthr','error','replace'];a264_0x5c9f=function(){return _0x170107;};return a264_0x5c9f();}import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x44ad75){const _0x654490=a264_0x8e69,_0x2d8634=[];for(const [_0x98094e,_0x2b7c18]of Object[_0x654490(0xb5)](_0x44ad75)){if(_0x2b7c18===!![]){const _0x251abd=_0x98094e[_0x654490(0xaa)](/([A-Z])/g,'-$1')[_0x654490(0xab)]();_0x2d8634[_0x654490(0x98)](_0x251abd);}}return _0x2d8634;}export function parseDynamicFlags(){const _0x579f60=a264_0x8e69,_0x1b7b1d=[];for(let _0x298ae0=0x3;_0x298ae0<process[_0x579f60(0x94)]['length'];_0x298ae0++){const _0x581bab=process[_0x579f60(0x94)][_0x298ae0];if(_0x581bab&&_0x581bab[_0x579f60(0xae)]('--')){const _0x1bcbe4=_0x581bab[_0x579f60(0xb2)](0x2);_0x1bcbe4&&!_0x1bcbe4[_0x579f60(0x97)]('=')&&_0x1b7b1d['push'](_0x1bcbe4);}}return _0x1b7b1d;}export function getAllProvidedFlags(_0x397aa5){const _0x220f0b=a264_0x8e69,_0x373c9=camelCaseFlagsToKebab(_0x397aa5),_0xbb7d9e=parseDynamicFlags(),_0x214b71=new Set([..._0x373c9,..._0xbb7d9e]);return Array[_0x220f0b(0xa4)](_0x214b71);}export function normalizeLegacyBffSaveFlags(_0x242c87){const _0x442924=a264_0x8e69,_0x3667e4=new Set(_0x242c87);return _0x3667e4[_0x442924(0x9c)](_0x442924(0xa6))&&_0x3667e4[_0x442924(0xb3)](_0x442924(0xa5)),Array[_0x442924(0xa4)](_0x3667e4);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;function a264_0x8e69(_0x2cbf50,_0x581d09){_0x2cbf50=_0x2cbf50-0x93;const _0x5c9f73=a264_0x5c9f();let _0x8e696c=_0x5c9f73[_0x2cbf50];return _0x8e696c;}export async function skillsCommand(_0x28dd31,_0x406c91,_0x2d69a7){const _0x1d6410=a264_0x8e69;logger[_0x1d6410(0x9e)](process['cwd']());if(_0x2d69a7?.[_0x1d6410(0xad)]||_0x28dd31===_0x1d6410(0xa3)){showHelp();return;}console[_0x1d6410(0xa9)]('Error:\x20Unsupported\x20command:\x20'+(_0x28dd31||_0x1d6410(0xb4))),console['log'](_0x1d6410(0x9f)),console[_0x1d6410(0xa0)]('\x20\x20'+CLI_BIN_NAME+_0x1d6410(0x95)),console['log'](''),console[_0x1d6410(0xa0)](_0x1d6410(0x96)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x1d6410(0xa9)](_0x1d6410(0x9b),_0x1d6410(0x9d)+_0x28dd31),process['exit'](0x1);}function showHelp(){const _0x16f2e9=a264_0x8e69;console[_0x16f2e9(0xa0)](_0x16f2e9(0xb1)+CLI_BIN_NAME+_0x16f2e9(0xa1)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a265_0x43f7ce=a265_0x3281;(function(_0x52a0d9,_0x195c17){const _0x207b04=a265_0x3281,_0x41842f=_0x52a0d9();while(!![]){try{const _0x340a3b=-parseInt(_0x207b04(0x1f3))/0x1*(-parseInt(_0x207b04(0x1fa))/0x2)+-parseInt(_0x207b04(0x1f0))/0x3+-parseInt(_0x207b04(0x200))/0x4*(parseInt(_0x207b04(0x211))/0x5)+-parseInt(_0x207b04(0x21a))/0x6*(-parseInt(_0x207b04(0x216))/0x7)+-parseInt(_0x207b04(0x1eb))/0x8+-parseInt(_0x207b04(0x20e))/0x9+parseInt(_0x207b04(0x218))/0xa*(parseInt(_0x207b04(0x20d))/0xb);if(_0x340a3b===_0x195c17)break;else _0x41842f['push'](_0x41842f['shift']());}catch(_0x3f83b0){_0x41842f['push'](_0x41842f['shift']());}}}(a265_0x4b70,0xa6552));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills@latest';export const NPX_SKILLS_SUBCOMMAND_ADD=a265_0x43f7ce(0x1e4);export const NPX_SKILLS_FLAG_SKILL=a265_0x43f7ce(0x1f7);export const RABETBASE_SKILL_SOURCE=a265_0x43f7ce(0x1e3);export const LEGACY_RABETBASE_SKILL_SOURCE=a265_0x43f7ce(0x217);function a265_0x4b70(){const _0x19cc0b=['toString','join','message','EACCES','push','log','PERMISSION_DENIED','4420438xHgcCt','365904rbMICj','error','CHILD_EXIT_NONZERO','11995iYWNMz','trim','remove','pipe','status','28532nulXbX','lovrabet/lovrabet-skill','50RRRNZb','NPX_NOT_FOUND','1818IsvaFQ','state','lovrabet/rabetbase','add','checked','filter','CHILD_TERMINATED','present','warn','\x20failed\x20target(s)','7783872yhcNee','absent','stdout','SKILL_NOT_INSTALLED','code','2291964xrEpwL','stdio','unknown','39uFhlCd','inherit','npx','signal','--skill','expectedSkillName','Installer\x20reported\x20','14962BdjSja','presence','match','npm_config_global','ENOENT','skill','1796kdLSOr','EPERM','INSTALL_PARTIAL','reason','npx\x20terminated\x20by\x20signal\x20','\x22\x20install\x20state:\x20'];a265_0x4b70=function(){return _0x19cc0b;};return a265_0x4b70();}export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export const RABETBASE_GLOBAL_SKILL_NAME='rabetbase';export const RABETBASE_SKILL_GIT_SOURCE='git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git';export function resolveGlobalSkillName(_0x153451){const _0xf7809b=a265_0x43f7ce;switch(_0x153451[_0xf7809b(0x212)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x565737){const _0x16815c=a265_0x43f7ce,_0x4451b9=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x565737&&_0x4451b9[_0x16815c(0x20a)](NPX_SKILLS_FLAG_SKILL,_0x565737),_0x4451b9;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a265_0x43f7ce(0x1f5),...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a265_0x43f7ce(0x1f5),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x2e230c,_0x471ec0,_0x54e0b3){return{'ok':![],'status':_0x471ec0,'code':_0x2e230c,'error':'['+_0x2e230c+']\x20'+_0x54e0b3};}function a265_0x3281(_0x476d91,_0x59206c){_0x476d91=_0x476d91-0x1e3;const _0x4b705d=a265_0x4b70();let _0x3281be=_0x4b705d[_0x476d91];return _0x3281be;}function spawnOptions(_0x411fe9,_0x4072ec){const _0x53f153=a265_0x43f7ce,_0x4e119e={...process.env};return delete _0x4e119e[_0x53f153(0x1fd)],delete _0x4e119e['NPM_CONFIG_GLOBAL'],{'cwd':_0x411fe9,'stdio':_0x4072ec,'env':_0x4e119e,'shell':![],..._0x4072ec==='pipe'?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0xe4eb79,_0x311741,_0x34304e,_0x1b9830){const _0x440b5b=a265_0x43f7ce,_0x249b99=[_0xe4eb79[_0x440b5b(0x1ed)]?_0xe4eb79['stdout']['toString']():'',_0xe4eb79['stderr']?_0xe4eb79['stderr'][_0x440b5b(0x206)]():''][_0x440b5b(0x1e6)](Boolean)[_0x440b5b(0x207)]('\x0a')[_0x440b5b(0x212)]();_0x1b9830!=='pipe'&&_0x249b99&&console[_0x440b5b(0x20b)](_0x249b99);if(_0xe4eb79['error']){const _0x5c7c75=_0xe4eb79[_0x440b5b(0x20f)],_0x59b432=_0x5c7c75[_0x440b5b(0x1ef)]===_0x440b5b(0x1fe)?_0x440b5b(0x219):_0x5c7c75[_0x440b5b(0x1ef)]===_0x440b5b(0x201)||_0x5c7c75[_0x440b5b(0x1ef)]===_0x440b5b(0x209)?_0x440b5b(0x20c):'SPAWN_FAILED';return failure(_0x59b432,_0xe4eb79[_0x440b5b(0x215)],_0x5c7c75[_0x440b5b(0x208)]);}if(_0xe4eb79[_0x440b5b(0x1f6)])return failure(_0x440b5b(0x1e7),_0xe4eb79['status'],_0x440b5b(0x204)+_0xe4eb79[_0x440b5b(0x1f6)]);if(_0xe4eb79[_0x440b5b(0x215)]!==0x0)return failure(_0x440b5b(0x210),_0xe4eb79[_0x440b5b(0x215)],_0x249b99||'exit\x20'+(_0xe4eb79[_0x440b5b(0x215)]??_0x440b5b(0x1f2)));const _0x36f7df=_0x311741?resolveInstalledSkill(_0x311741,_0x34304e):undefined,_0x33f58b=_0x249b99[_0x440b5b(0x1fc)](/Failed to install\s+(\d+)/i);if(_0x33f58b&&Number(_0x33f58b[0x1])>0x0){const _0x2a8951=_0x440b5b(0x1f9)+_0x33f58b[0x1]+_0x440b5b(0x1ea)+(_0x249b99?':\x0a'+_0x249b99:'');if(_0x36f7df?.[_0x440b5b(0x21b)]===_0x440b5b(0x1e8))return console[_0x440b5b(0x1e9)]('!\x20'+_0x2a8951),{'ok':!![],'status':0x0};return failure(_0x440b5b(0x202),0x0,_0x2a8951);}if(_0x36f7df){if(_0x36f7df[_0x440b5b(0x21b)]===_0x440b5b(0x1ec))return failure(_0x440b5b(0x1ee),0x0,'Skill\x20\x22'+_0x311741+'\x22\x20not\x20found\x20after\x20install\x20(checked\x20'+_0x36f7df[_0x440b5b(0x1e5)][_0x440b5b(0x207)](',\x20')+')');_0x36f7df[_0x440b5b(0x21b)]==='unverifiable'&&console[_0x440b5b(0x1e9)]('!\x20Could\x20not\x20verify\x20\x22'+_0x311741+_0x440b5b(0x205)+_0x36f7df[_0x440b5b(0x203)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x2194da,_0x120927){const _0x474626=a265_0x43f7ce;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x554915=_0x120927?.[_0x474626(0x1f1)]??_0x474626(0x1f4),_0x41cabe=resolveNpmBin(_0x474626(0x1f5)),_0x2af77d=buildNpxSkillsAddArgv(_0x120927?.['skill']),_0x25a7e8=[_0x474626(0x1f5),..._0x2af77d][_0x474626(0x207)]('\x20');console[_0x474626(0x20b)]('*\x20'+_0x25a7e8);const _0x386e60=spawnSync(_0x41cabe,_0x2af77d,spawnOptions(_0x2194da,_0x554915));return normalizeSpawnResult(_0x386e60,undefined,undefined,_0x554915);}export function runNpxSkillsRemove(_0x26a3f9,_0x23c680,_0x1e8948=LEGACY_RABETBASE_SKILL_SOURCE){const _0x165c15=a265_0x43f7ce;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1bc6ac=_0x23c680?.[_0x165c15(0x1f1)]??_0x165c15(0x1f4),_0x24b377=resolveNpmBin('npx'),_0x3ae2ed=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x165c15(0x213),_0x1e8948,NPX_SKILLS_FLAG_SKILL,_0x23c680?.[_0x165c15(0x1ff)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x23c680?.['yes']?['-y']:[]],_0x16f78c=[_0x24b377,..._0x3ae2ed][_0x165c15(0x207)]('\x20');console[_0x165c15(0x20b)]('*\x20'+_0x16f78c);const _0x3dcc49=spawnSync(_0x24b377,_0x3ae2ed,spawnOptions(_0x26a3f9,_0x1bc6ac));return normalizeSpawnResult(_0x3dcc49,undefined,undefined,_0x1bc6ac);}export function runNpxSkillsAddGlobal(_0x1e63f5,_0x1b580f,_0x1bac8e){const _0x3da6b9=a265_0x43f7ce;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1b5f7f=resolveNpmBin(_0x3da6b9(0x1f5)),_0x4a64ae=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x1b580f,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x18009e=[_0x3da6b9(0x1f5),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x1b580f,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console[_0x3da6b9(0x20b)]('*\x20'+_0x18009e);const _0x40b291=spawnSync(_0x1b5f7f,_0x4a64ae,spawnOptions(_0x1e63f5,_0x3da6b9(0x214)));return normalizeSpawnResult(_0x40b291,_0x1bac8e?.[_0x3da6b9(0x1f8)]??resolveGlobalSkillName(_0x1b580f),_0x1bac8e?.[_0x3da6b9(0x1fb)],_0x1bac8e?.[_0x3da6b9(0x1f1)]);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a266_0x475e46=a266_0x584f;(function(_0x14d8ef,_0x3fe375){const _0x3b6d96=a266_0x584f,_0x498bee=_0x14d8ef();while(!![]){try{const _0x448e58=-parseInt(_0x3b6d96(0x1e7))/0x1*(-parseInt(_0x3b6d96(0x1f7))/0x2)+-parseInt(_0x3b6d96(0x1f3))/0x3*(-parseInt(_0x3b6d96(0x1e8))/0x4)+parseInt(_0x3b6d96(0x1d5))/0x5+-parseInt(_0x3b6d96(0x1d6))/0x6+parseInt(_0x3b6d96(0x1e4))/0x7*(-parseInt(_0x3b6d96(0x1d8))/0x8)+parseInt(_0x3b6d96(0x1f0))/0x9+parseInt(_0x3b6d96(0x1e9))/0xa*(parseInt(_0x3b6d96(0x1e6))/0xb);if(_0x448e58===_0x3fe375)break;else _0x498bee['push'](_0x498bee['shift']());}catch(_0x4daf0d){_0x498bee['push'](_0x498bee['shift']());}}}(a266_0x264a,0xb1445));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';function a266_0x584f(_0x3e955b,_0x31da54){_0x3e955b=_0x3e955b-0x1d5;const _0x264a85=a266_0x264a();let _0x584f28=_0x264a85[_0x3e955b];return _0x584f28;}import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join('.agents',a266_0x475e46(0x1dc));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents',a266_0x475e46(0x1ea)),join(a266_0x475e46(0x1f9),a266_0x475e46(0x1ea))];const SUPPORTED_LOCK_VERSIONS=[0x3];function a266_0x264a(){const _0x403cb7=['553GgBicV','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','118151utUyyJ','1459buRVKn','184ainupv','430JftFwn','skills','absent','parse','object','kind','reason','3255165bpxVkq','join','unverifiable','74262cOkVzf','version','present','map','282chQMrz','\x20has\x20no\x20skills\x20map','.claude','SKILL.md','2902145OPwYuS','7102260xSwBNS','\x20records\x20\x22','84920afHBVS','includes','message','globalSkillsDirs','.skill-lock.json','home','unusable','not-recorded','find','lockFile','\x20uses\x20unsupported\x20version\x20','recorded'];a266_0x264a=function(){return _0x403cb7;};return a266_0x264a();}function readLockLookup(_0xba745c,_0x21c6d4){const _0x5e49f5=a266_0x475e46;if(!existsSync(_0xba745c))return{'kind':_0x5e49f5(0x1df)};let _0x29654a;try{_0x29654a=JSON[_0x5e49f5(0x1ec)](readFileSync(_0xba745c,'utf8'));}catch(_0x23eb01){return{'kind':'unusable','reason':_0xba745c+'\x20is\x20unreadable:\x20'+_0x23eb01[_0x5e49f5(0x1da)]};}const _0x384988=_0x29654a;if(typeof _0x384988?.[_0x5e49f5(0x1f4)]!=='number'||!SUPPORTED_LOCK_VERSIONS[_0x5e49f5(0x1d9)](_0x384988[_0x5e49f5(0x1f4)]))return{'kind':'unusable','reason':_0xba745c+_0x5e49f5(0x1e2)+String(_0x384988?.['version'])};if(!_0x384988['skills']||typeof _0x384988[_0x5e49f5(0x1ea)]!==_0x5e49f5(0x1ed))return{'kind':'unusable','reason':_0xba745c+_0x5e49f5(0x1f8)};return _0x384988[_0x5e49f5(0x1ea)][_0x21c6d4]?{'kind':_0x5e49f5(0x1e3)}:{'kind':_0x5e49f5(0x1df)};}export function resolveInstalledSkill(_0x7be954,_0x25ac52){const _0x5eab48=a266_0x475e46,_0x47a014=_0x25ac52?.[_0x5eab48(0x1dd)]??homedir(),_0x19f04c=_0x25ac52?.[_0x5eab48(0x1db)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS['map'](_0x4d81e6=>join(_0x47a014,_0x4d81e6)),_0x14b937=_0x25ac52?.[_0x5eab48(0x1e1)]??join(_0x47a014,SKILL_LOCK_RELATIVE_PATH),_0xf38e2d=_0x19f04c[_0x5eab48(0x1f6)](_0x42a211=>join(_0x42a211,_0x7be954,_0x5eab48(0x1fa))),_0x3dccf5=_0xf38e2d[_0x5eab48(0x1e0)](_0x41a9cc=>existsSync(_0x41a9cc));if(_0x3dccf5)return{'state':_0x5eab48(0x1f5),'path':_0x3dccf5};const _0x55195f=readLockLookup(_0x14b937,_0x7be954);if(_0x55195f[_0x5eab48(0x1ee)]===_0x5eab48(0x1de))return{'state':_0x5eab48(0x1f2),'reason':_0x55195f[_0x5eab48(0x1ef)]};if(_0x55195f['kind']===_0x5eab48(0x1e3))return{'state':_0x5eab48(0x1f2),'reason':_0x14b937+_0x5eab48(0x1d7)+_0x7be954+_0x5eab48(0x1e5)+('('+_0xf38e2d[_0x5eab48(0x1f1)](',\x20')+')')};return{'state':_0x5eab48(0x1eb),'checked':_0xf38e2d};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a267_0x3598(){const _0x324c57=['3273699MbASfc','2957572TcbYJE','60ZhcQDg','[REDACTED]','error','message','entries','303105sUyQWg','service','durationMs','flags','80KuQRwF','3cAsefQ','9oSTlWF','rabetbase.command','34sQbhHo','5523590hJgyOl','test','5bNKTJt','821052hTgPOF','311878NcRzuH','23803RJZktu'];a267_0x3598=function(){return _0x324c57;};return a267_0x3598();}(function(_0xed63a8,_0x7c9a69){const _0x1c7d4e=a267_0x13a4,_0x5e643d=_0xed63a8();while(!![]){try{const _0x1e5988=-parseInt(_0x1c7d4e(0x16e))/0x1*(-parseInt(_0x1c7d4e(0x168))/0x2)+-parseInt(_0x1c7d4e(0x165))/0x3*(-parseInt(_0x1c7d4e(0x170))/0x4)+parseInt(_0x1c7d4e(0x16b))/0x5*(-parseInt(_0x1c7d4e(0x16c))/0x6)+-parseInt(_0x1c7d4e(0x16d))/0x7*(parseInt(_0x1c7d4e(0x164))/0x8)+parseInt(_0x1c7d4e(0x166))/0x9*(-parseInt(_0x1c7d4e(0x169))/0xa)+parseInt(_0x1c7d4e(0x176))/0xb*(parseInt(_0x1c7d4e(0x171))/0xc)+parseInt(_0x1c7d4e(0x16f))/0xd;if(_0x1e5988===_0x7c9a69)break;else _0x5e643d['push'](_0x5e643d['shift']());}catch(_0x32c459){_0x5e643d['push'](_0x5e643d['shift']());}}}(a267_0x3598,0x61635));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x513a67){const _0x3e299a=a267_0x13a4;return SENSITIVE_PATTERNS['some'](_0x550111=>_0x550111[_0x3e299a(0x16a)](_0x513a67));}function a267_0x13a4(_0x2a995c,_0xabdd9){_0x2a995c=_0x2a995c-0x163;const _0x3598b1=a267_0x3598();let _0x13a40b=_0x3598b1[_0x2a995c];return _0x13a40b;}function sanitizeFlags(_0x547f70){const _0x4ab140=a267_0x13a4,_0x4d1b0d={};for(const [_0x76d1bf,_0x59b1c2]of Object[_0x4ab140(0x175)](_0x547f70)){isSensitiveKey(_0x76d1bf)?_0x4d1b0d[_0x76d1bf]=_0x59b1c2!=null&&_0x59b1c2!==''?_0x4ab140(0x172):_0x59b1c2:_0x4d1b0d[_0x76d1bf]=_0x59b1c2;}return _0x4d1b0d;}export async function reportCommandTrace(_0x548fe4){const _0x50002a=a267_0x13a4;try{const _0xd8f1c=sanitizeFlags(_0x548fe4[_0x50002a(0x163)]);await sendCliTraceLog({'spanName':_0x50002a(0x167),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x548fe4[_0x50002a(0x177)],'command.name':_0x548fe4['command'],'command.flags':JSON['stringify'](_0xd8f1c),..._0x548fe4[_0x50002a(0x178)]!=null?{'command.duration_ms':_0x548fe4[_0x50002a(0x178)]}:{},..._0x548fe4[_0x50002a(0x173)]?{'command.error':_0x548fe4[_0x50002a(0x173)]instanceof Error?_0x548fe4['error'][_0x50002a(0x174)]:String(_0x548fe4[_0x50002a(0x173)])}:{}}});}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a268_0x45e6(){var _0x48c829=['Failed\x20to\x20report\x20CLI\x20help\x20trace:','503888DNDAAO','368FtWiRS','83755zrFHax','7208874mTnNhm','1564835eiyIbs','56754OyDXDs','787426wOUvqg','6TnvEQG','2573770THqmDr','service','124hTniui','cli.help'];a268_0x45e6=function(){return _0x48c829;};return a268_0x45e6();}function a268_0x3350(_0x4dd2cd,_0x5eb974){_0x4dd2cd=_0x4dd2cd-0x82;var _0x45e6bb=a268_0x45e6();var _0x335062=_0x45e6bb[_0x4dd2cd];return _0x335062;}(function(_0x349361,_0x14263f){var _0x1fe33a=a268_0x3350,_0x3d2968=_0x349361();while(!![]){try{var _0x73617f=-parseInt(_0x1fe33a(0x85))/0x1+-parseInt(_0x1fe33a(0x89))/0x2*(-parseInt(_0x1fe33a(0x84))/0x3)+parseInt(_0x1fe33a(0x8c))/0x4+parseInt(_0x1fe33a(0x83))/0x5*(-parseInt(_0x1fe33a(0x86))/0x6)+-parseInt(_0x1fe33a(0x8e))/0x7*(parseInt(_0x1fe33a(0x8d))/0x8)+parseInt(_0x1fe33a(0x82))/0x9+parseInt(_0x1fe33a(0x87))/0xa;if(_0x73617f===_0x14263f)break;else _0x3d2968['push'](_0x3d2968['shift']());}catch(_0x3a14e8){_0x3d2968['push'](_0x3d2968['shift']());}}}(a268_0x45e6,0xac7a4));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x17df0b,_0x2f0c45){var _0x41b0f9=a268_0x3350;try{await sendCliTraceLog({'spanName':_0x41b0f9(0x8a),'logData':{'rabetbase.help.kind':_0x17df0b,..._0x2f0c45?.[_0x41b0f9(0x88)]&&{'rabetbase.help.service':_0x2f0c45['service']}}});}catch(_0x50a5d3){console['error'](_0x41b0f9(0x8b),_0x50a5d3);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a269_0xe80b(_0x5cc3c6,_0x5e53dc){_0x5cc3c6=_0x5cc3c6-0x1a9;const _0x57ea76=a269_0x57ea();let _0xe80b3a=_0x57ea76[_0x5cc3c6];return _0xe80b3a;}(function(_0x14ea85,_0x3e7688){const _0x20ea88=a269_0xe80b,_0x283363=_0x14ea85();while(!![]){try{const _0x5a0800=-parseInt(_0x20ea88(0x1af))/0x1*(-parseInt(_0x20ea88(0x1b7))/0x2)+-parseInt(_0x20ea88(0x1b3))/0x3+-parseInt(_0x20ea88(0x1ad))/0x4*(-parseInt(_0x20ea88(0x1a9))/0x5)+-parseInt(_0x20ea88(0x1aa))/0x6*(-parseInt(_0x20ea88(0x1b4))/0x7)+-parseInt(_0x20ea88(0x1b0))/0x8+parseInt(_0x20ea88(0x1b2))/0x9+-parseInt(_0x20ea88(0x1ab))/0xa;if(_0x5a0800===_0x3e7688)break;else _0x283363['push'](_0x283363['shift']());}catch(_0x65d37){_0x283363['push'](_0x283363['shift']());}}}(a269_0x57ea,0x7ee3c));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];function a269_0x57ea(){const _0x151291=['tenant','7064KliHmS','production','13iCciem','1276104skjVOj','nickname','2677779nLLedR','1223526MxttuC','7AlMsWx','tenant_code','username','143482KbETVY','290wFIbFS','6077538HtdqoH','12584200neOYXW'];a269_0x57ea=function(){return _0x151291;};return a269_0x57ea();}export async function ensureCliOtelTraceConfig(){const _0x57fab3=a269_0xe80b,_0x3851b9=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x7c4ff7=_0x3851b9?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':_0x57fab3(0x1ae))}),setUserContext({'id':_0x7c4ff7?.['id'],'username':_0x7c4ff7?.[_0x57fab3(0x1b6)],'nickname':_0x7c4ff7?.[_0x57fab3(0x1b1)],'email':_0x7c4ff7?.['email'],'tenantCode':_0x7c4ff7?.[_0x57fab3(0x1ac)]?.[_0x57fab3(0x1b5)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x3851b9;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4b849c,_0x5eb95b){const _0x4f9560=a270_0x266d,_0x5c8fb6=_0x4b849c();while(!![]){try{const _0x5e1530=parseInt(_0x4f9560(0x184))/0x1*(-parseInt(_0x4f9560(0x188))/0x2)+parseInt(_0x4f9560(0x18d))/0x3*(parseInt(_0x4f9560(0x183))/0x4)+-parseInt(_0x4f9560(0x18b))/0x5+parseInt(_0x4f9560(0x191))/0x6+parseInt(_0x4f9560(0x186))/0x7*(parseInt(_0x4f9560(0x189))/0x8)+-parseInt(_0x4f9560(0x192))/0x9*(parseInt(_0x4f9560(0x18a))/0xa)+parseInt(_0x4f9560(0x182))/0xb*(parseInt(_0x4f9560(0x18e))/0xc);if(_0x5e1530===_0x5eb95b)break;else _0x5c8fb6['push'](_0x5c8fb6['shift']());}catch(_0x5a2540){_0x5c8fb6['push'](_0x5c8fb6['shift']());}}}(a270_0x134b,0x791f9));function a270_0x266d(_0x4384b2,_0x426e5a){_0x4384b2=_0x4384b2-0x182;const _0x134bd1=a270_0x134b();let _0x266d12=_0x134bd1[_0x4384b2];return _0x266d12;}import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x504b8d=a270_0x266d;process['once']('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x568319=()=>{const _0x4d1608=a270_0x266d;void flushOtelNodeIfUsed()[_0x4d1608(0x185)](()=>process[_0x4d1608(0x190)](0x0));};process[_0x504b8d(0x187)](_0x504b8d(0x18c),_0x568319),process['once'](_0x504b8d(0x18f),_0x568319);}export async function exitWithOtelShutdown(_0x2d61fa){const _0x3376c5=a270_0x266d;await flushOtelNodeIfUsed(),process[_0x3376c5(0x190)](_0x2d61fa);}function a270_0x134b(){const _0x2fb61a=['20paMOvz','2875870UQCkvR','SIGINT','44391ZHxNCi','927528mKUYxd','SIGTERM','exit','1562910BazyTX','417492ymlNnP','154STdQeS','8CeXLmo','4631wpnpWD','then','322OPzMmW','once','212WGWCMF','49176nIdGGN'];a270_0x134b=function(){return _0x2fb61a;};return a270_0x134b();}
|