@lovrabet/rabetbase-cli 2.3.12-beta.1 → 2.3.12
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/add.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/remove.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/logs/index.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/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/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/update.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-apis-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/init.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/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/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a222_0x24a9(_0x3f661b,_0x4abec9){_0x3f661b=_0x3f661b-0x194;const _0x318e62=a222_0x318e();let _0x24a9e4=_0x318e62[_0x3f661b];return _0x24a9e4;}const a222_0x115ac1=a222_0x24a9;function a222_0x318e(){const _0x3aaeab=['3PPoEZA','2676302rQQLtT','\x20[args]\x20[flags]','5dyjcqL','get','264eGvWNh','2327672JzWuQZ','Requires\x20appcode\x20(set\x20via\x20`','8446401nsJGmL','7kbTrUn','6428418HGBeSU','generateCommandHelp','892760LQSBMg','2678360emTFDl','replace','generateFullHelp','Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.','generateServiceHelp','725423wzUxWL'];a222_0x318e=function(){return _0x3aaeab;};return a222_0x318e();}(function(_0x213674,_0x424f05){const _0x29d5bc=a222_0x24a9,_0x70796e=_0x213674();while(!![]){try{const _0x1b208b=-parseInt(_0x29d5bc(0x19c))/0x1+parseInt(_0x29d5bc(0x19e))/0x2*(parseInt(_0x29d5bc(0x19d))/0x3)+parseInt(_0x29d5bc(0x1a3))/0x4+parseInt(_0x29d5bc(0x1a0))/0x5*(parseInt(_0x29d5bc(0x194))/0x6)+-parseInt(_0x29d5bc(0x1a6))/0x7*(parseInt(_0x29d5bc(0x197))/0x8)+parseInt(_0x29d5bc(0x1a5))/0x9+parseInt(_0x29d5bc(0x196))/0xa*(-parseInt(_0x29d5bc(0x1a2))/0xb);if(_0x1b208b===_0x424f05)break;else _0x70796e['push'](_0x70796e['shift']());}catch(_0x446005){_0x70796e['push'](_0x70796e['shift']());}}}(a222_0x318e,0xb184f));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{requiresExplicitYes}from'../framework/explicit-yes.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x510af5=>serviceGroups[a222_0x115ac1(0x1a1)](_0x510af5),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a222_0x115ac1(0x1a4)+CLI_BIN_NAME+'\x20workspace\x20init`\x20or\x20--appcode).','serviceUsageSuffix':a222_0x115ac1(0x19f)});export function generateCommandHelp(_0x150f00){const _0x15c346=a222_0x115ac1,_0x350f1a=generators[_0x15c346(0x195)](_0x150f00);if(!requiresExplicitYes(_0x150f00))return _0x350f1a;return _0x350f1a[_0x15c346(0x198)]('Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.',_0x15c346(0x19a));}export const generateServiceHelp=generators[a222_0x115ac1(0x19b)];export const generateFullHelp=generators[a222_0x115ac1(0x199)];
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xe6717e,_0x26a98f){var _0x5984b9=a223_0x10b1,_0xda3ee1=_0xe6717e();while(!![]){try{var _0x37a3e3=parseInt(_0x5984b9(0x13e))/0x1+-parseInt(_0x5984b9(0x138))/0x2+-parseInt(_0x5984b9(0x13d))/0x3+parseInt(_0x5984b9(0x139))/0x4+-parseInt(_0x5984b9(0x137))/0x5+parseInt(_0x5984b9(0x13c))/0x6*(-parseInt(_0x5984b9(0x13b))/0x7)+parseInt(_0x5984b9(0x13a))/0x8;if(_0x37a3e3===_0x26a98f)break;else _0xda3ee1['push'](_0xda3ee1['shift']());}catch(_0x5450da){_0xda3ee1['push'](_0xda3ee1['shift']());}}}(a223_0x5d6e,0x37ce2));function a223_0x10b1(_0x46bf83,_0x4e5804){_0x46bf83=_0x46bf83-0x137;var _0x5d6e7b=a223_0x5d6e();var _0x10b1b1=_0x5d6e7b[_0x46bf83];return _0x10b1b1;}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a223_0x5d6e(){var _0x2a9ade=['8315712gXIlnf','7ggHdoo','936594IsfElt','899397cTtyah','244185qviIbv','2049985CBCIkA','382768fOUDMM','8832ixKACb'];a223_0x5d6e=function(){return _0x2a9ade;};return a223_0x5d6e();}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3ae2f7,_0x3569d6){const _0xfe15ed=a224_0x533b,_0x8a8e8f=_0x3ae2f7();while(!![]){try{const _0x4a8f7e=-parseInt(_0xfe15ed(0x19b))/0x1+parseInt(_0xfe15ed(0x1a5))/0x2+-parseInt(_0xfe15ed(0x1ae))/0x3+-parseInt(_0xfe15ed(0x19e))/0x4*(parseInt(_0xfe15ed(0x1a9))/0x5)+-parseInt(_0xfe15ed(0x1a0))/0x6*(-parseInt(_0xfe15ed(0x1aa))/0x7)+-parseInt(_0xfe15ed(0x1a6))/0x8*(-parseInt(_0xfe15ed(0x19c))/0x9)+-parseInt(_0xfe15ed(0x193))/0xa;if(_0x4a8f7e===_0x3569d6)break;else _0x8a8e8f['push'](_0x8a8e8f['shift']());}catch(_0xc35306){_0x8a8e8f['push'](_0x8a8e8f['shift']());}}}(a224_0x5b8a,0xbe526));function a224_0x533b(_0x2a244f,_0x2b885d){_0x2a244f=_0x2a244f-0x193;const _0x5b8a16=a224_0x5b8a();let _0x533b8b=_0x5b8a16[_0x2a244f];return _0x533b8b;}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';function a224_0x5b8a(){const _0x506cb7=['5NMxihe','1407525Ouyrrv','jqFilter','trim','message','1990461lceLUh','313630hUBWuW','code','json','_notice','validation','jq:\x20','stdout','write','738319iwBkcD','334683vZbLQe','update','1885216eOslhD','endsWith','36ydkIro','command','format','error','data','128950OoyfiY','304JdlDgT','stringify','hint'];a224_0x5b8a=function(){return _0x506cb7;};return a224_0x5b8a();}import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x4827d2,_0x4c9a2f){const _0x3b5b47=a224_0x533b,_0x493c0d=_0x4827d2[_0x3b5b47(0x196)],{_notice:_0x2c8b8d,..._0x2d6611}=_0x4827d2;void _0x2c8b8d,baseFormatOutput(_0x2d6611,_0x4c9a2f),_0x4c9a2f[_0x3b5b47(0x1a2)]==='pretty'&&printPrettyNotice(_0x493c0d);}export function formatCliError(_0x65a8b5,_0x17b099){const _0x3195ae=a224_0x533b;if(_0x17b099[_0x3195ae(0x1a2)]==='pretty')return![];const _0x575665=_0x65a8b5[_0x3195ae(0x1a4)],_0x31e1c6={'ok':![],'command':_0x17b099[_0x3195ae(0x1a1)],'risk':_0x17b099['risk'],'data':_0x575665??null,'error':{'code':_0x65a8b5[_0x3195ae(0x194)],'message':_0x65a8b5[_0x3195ae(0x1ad)],..._0x65a8b5[_0x3195ae(0x1a8)]?{'hint':_0x65a8b5['hint']}:{}}},_0x419082=_0x17b099[_0x3195ae(0x1a2)]===_0x3195ae(0x195)?JSON[_0x3195ae(0x1a7)](_0x31e1c6,null,0x2):JSON[_0x3195ae(0x1a7)](_0x31e1c6);let _0x4c747b=_0x419082;if(_0x17b099[_0x3195ae(0x1ab)]?.[_0x3195ae(0x1ac)]())try{_0x4c747b=applyJqFilter(_0x419082,_0x17b099[_0x3195ae(0x1ab)]);}catch(_0xb2d083){const _0x429523=_0xb2d083 instanceof CliError?_0xb2d083:CliErrors[_0x3195ae(0x197)](_0x3195ae(0x198)+(_0xb2d083 instanceof Error?_0xb2d083[_0x3195ae(0x1ad)]:String(_0xb2d083))),_0x1710e8={..._0x31e1c6,'error':{'code':_0x429523['code'],'message':_0x429523[_0x3195ae(0x1ad)],..._0x429523[_0x3195ae(0x1a8)]?{'hint':_0x429523[_0x3195ae(0x1a8)]}:{},'cause':_0x31e1c6[_0x3195ae(0x1a3)]}};_0x4c747b=_0x17b099[_0x3195ae(0x1a2)]===_0x3195ae(0x195)?JSON[_0x3195ae(0x1a7)](_0x1710e8,null,0x2):JSON[_0x3195ae(0x1a7)](_0x1710e8);}return process[_0x3195ae(0x199)][_0x3195ae(0x19a)](_0x4c747b[_0x3195ae(0x19f)]('\x0a')?_0x4c747b:_0x4c747b+'\x0a'),!![];}function printPrettyNotice(_0x57b03e){const _0x12a8a5=a224_0x533b;if(!_0x57b03e?.[_0x12a8a5(0x19d)])return;console[_0x12a8a5(0x1a3)](_0x57b03e[_0x12a8a5(0x19d)][_0x12a8a5(0x1ad)]+'\x20('+_0x57b03e[_0x12a8a5(0x19d)]['url']+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a225_0x562e(_0x2e20d2,_0x41c13f){_0x2e20d2=_0x2e20d2-0x1d5;var _0xdb7924=a225_0xdb79();var _0x562ee8=_0xdb7924[_0x2e20d2];return _0x562ee8;}(function(_0x3a7a7b,_0x46e500){var _0x4e52eb=a225_0x562e,_0x200410=_0x3a7a7b();while(!![]){try{var _0x3fd559=-parseInt(_0x4e52eb(0x1d8))/0x1+-parseInt(_0x4e52eb(0x1d9))/0x2+-parseInt(_0x4e52eb(0x1d5))/0x3*(parseInt(_0x4e52eb(0x1d6))/0x4)+parseInt(_0x4e52eb(0x1da))/0x5*(parseInt(_0x4e52eb(0x1de))/0x6)+-parseInt(_0x4e52eb(0x1db))/0x7*(parseInt(_0x4e52eb(0x1dd))/0x8)+-parseInt(_0x4e52eb(0x1d7))/0x9+parseInt(_0x4e52eb(0x1dc))/0xa;if(_0x3fd559===_0x46e500)break;else _0x200410['push'](_0x200410['shift']());}catch(_0x1566c3){_0x200410['push'](_0x200410['shift']());}}}(a225_0xdb79,0xc875b));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a225_0xdb79(){var _0x5405a9=['39111Krzhyg','20TtOpwI','367776AhjUty','369559EENDci','1715916fflPla','19080iTgNwO','5047mdkBvl','18586900Gbqyls','1416UjrmOZ','666KAdAcn'];a225_0xdb79=function(){return _0x5405a9;};return a225_0xdb79();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a226_0x3c96(_0x367ced,_0x23b20d){_0x367ced=_0x367ced-0x8f;const _0x40b4af=a226_0x40b4();let _0x3c96ee=_0x40b4af[_0x367ced];return _0x3c96ee;}(function(_0x525b85,_0x521ae3){const _0x1825c7=a226_0x3c96,_0x221b0d=_0x525b85();while(!![]){try{const _0x3b08cf=-parseInt(_0x1825c7(0xa5))/0x1*(parseInt(_0x1825c7(0x9b))/0x2)+parseInt(_0x1825c7(0xa2))/0x3+parseInt(_0x1825c7(0x92))/0x4*(parseInt(_0x1825c7(0x93))/0x5)+-parseInt(_0x1825c7(0x9e))/0x6+-parseInt(_0x1825c7(0xa4))/0x7+-parseInt(_0x1825c7(0x91))/0x8+parseInt(_0x1825c7(0x90))/0x9;if(_0x3b08cf===_0x521ae3)break;else _0x221b0d['push'](_0x221b0d['shift']());}catch(_0xeae3b6){_0x221b0d['push'](_0x221b0d['shift']());}}}(a226_0x40b4,0xadac0));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x2f3ce5,_0x1410f2,_0x4e015d,_0x244931){const _0x3217a3=a226_0x3c96,_0x22cbee=_0x2f3ce5[_0x3217a3(0x95)][_0x3217a3(0x94)](_0x373e1b=>_0x373e1b['name']===_0x3217a3(0x9f)&&_0x373e1b[_0x3217a3(0x97)]==='string'),_0x2a6296=_0x2f3ce5[_0x3217a3(0x95)]['some'](_0x1bcd9c=>_0x1bcd9c[_0x3217a3(0x99)]===_0x3217a3(0xa1)&&_0x1bcd9c['type']==='string');if(!_0x22cbee||!_0x2a6296)return;const _0x1f8b77=_0x1410f2[_0x3217a3(0x9f)]?String(_0x1410f2[_0x3217a3(0x9f)]):'',_0x484a15=_0x1410f2[_0x3217a3(0xa1)]?String(_0x1410f2[_0x3217a3(0xa1)]):'';if(!_0x1f8b77&&!_0x484a15)throw CliErrors['validation']('`'+_0x244931+_0x3217a3(0x9c));if(_0x484a15&&!_0x1f8b77){const _0x5a7afe=resolveAlias(_0x4e015d,_0x484a15);if(!_0x5a7afe){const _0x381ea9=listAliases(_0x4e015d)[_0x3217a3(0x9d)](_0xfc60c7=>_0xfc60c7[_0x3217a3(0xa1)]),_0x6384c7=_0x381ea9['length']?_0x3217a3(0x98)+_0x381ea9[_0x3217a3(0xa3)](',\x20'):_0x3217a3(0xa0)+_0x4e015d+_0x3217a3(0x8f)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x3217a3(0x9a)](_0x3217a3(0x96)+_0x484a15+'\x22.\x20'+_0x6384c7);}_0x1410f2['code']=_0x5a7afe;}}function a226_0x40b4(){const _0xb127d9=['name','validation','172hvvYDx','`\x20requires\x20either\x20--code\x20or\x20--alias.','map','551640VIjgyK','code','No\x20api.ts\x20found\x20in\x20','alias','4197591ORasfu','join','3848383MfRIPl','3550JsXpKc','.\x20Run\x20`','951633NicpPC','2802568soHaQH','4708fDLttJ','2140VYVLGS','some','flags','Unknown\x20alias\x20\x22','type','Available\x20aliases:\x20'];a226_0x40b4=function(){return _0xb127d9;};return a226_0x40b4();}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a227_0x4bf3f4=a227_0x161b;(function(_0x244ac5,_0x107616){const _0xa54dbb=a227_0x161b,_0x4294c1=_0x244ac5();while(!![]){try{const _0x2a7b79=parseInt(_0xa54dbb(0x195))/0x1*(parseInt(_0xa54dbb(0x1b9))/0x2)+-parseInt(_0xa54dbb(0x1ba))/0x3+-parseInt(_0xa54dbb(0x1ac))/0x4+-parseInt(_0xa54dbb(0x1a3))/0x5+parseInt(_0xa54dbb(0x190))/0x6+-parseInt(_0xa54dbb(0x18d))/0x7+parseInt(_0xa54dbb(0x19a))/0x8;if(_0x2a7b79===_0x107616)break;else _0x4294c1['push'](_0x4294c1['shift']());}catch(_0x29f0f4){_0x4294c1['push'](_0x4294c1['shift']());}}}(a227_0x4f59,0x61f83));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 a227_0x13bdeb}from'../utils/is-non-interactive.js';function a227_0x4f59(){const _0x10b813=['appcode','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','verbose','toUpperCase','6661800eMUCUB','doctor','hint','catch','mergedCli','some','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','update','object','188505foYWpk','⚠\x20\x20High-risk\x20operation:\x20','isNonInteractive','hasFormat','includes','defaultPageSize','explicitAppName','apiDir','Current\x20resolved\x20appcode\x20is\x20\x22','933544BZOYBI','_notice','required','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','appCode','message','../core/api-client.js','Set\x20appcode\x20via\x20`','pretty','resolveAppCode','filter','apps','currentApp','10mILpQN','1937520wJzzoZ','configMissing','defaultApp','validation','rawFlags','\x20\x20\x20Continue?\x20[y/N]\x20','selectedAppName','nonInteractive','meowKey','map','has','High-risk\x20operation\x20`','cancelled','requiresAppCode','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','RABETBASE_APPCODE','cookie','pageSize','name','value','service','none','3738224oazrHR','resolve','string','4487532KwpuQF','authRequired','riskLevel','LOVRABET_APPCODE','resolveCookie','54319jCWfHw'];a227_0x4f59=function(){return _0x10b813;};return a227_0x4f59();}import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x4b9606){const _0x41adb4=a227_0x161b;return typeof _0x4b9606===_0x41adb4(0x18f)&&_0x4b9606['trim']()?_0x4b9606['trim']():undefined;}function a227_0x161b(_0x7cd606,_0x3898dd){_0x7cd606=_0x7cd606-0x18a;const _0x4f5997=a227_0x4f59();let _0x161b9c=_0x4f5997[_0x7cd606];return _0x161b9c;}function resolveEnvAppCode(){const _0x3ed9aa=a227_0x161b,_0x2a6687=stringFlag(process.env.RABETBASE_APPCODE);if(_0x2a6687)return{'name':_0x3ed9aa(0x1c9),'value':_0x2a6687};const _0x3f4f5f=stringFlag(process.env.LOVRABET_APPCODE);if(_0x3f4f5f)return{'name':_0x3ed9aa(0x193),'value':_0x3f4f5f};return undefined;}function hasExplicitAppCode(_0x477c13,_0x2c558f){const _0x3e9192=a227_0x161b;return!!(stringFlag(_0x477c13[_0x3e9192(0x196)])||stringFlag(_0x2c558f[_0x3e9192(0x196)]));}function assertEnvAppCodeNotIgnored(_0xf500b6,_0x1bad2f,_0x235533){const _0x23c117=a227_0x161b;if(!_0x1bad2f||_0x235533||_0xf500b6===_0x1bad2f[_0x23c117(0x18a)])return;const _0x16dea1=_0xf500b6?_0x23c117(0x1ab)+_0xf500b6+'\x22.':_0x23c117(0x1a0);throw CliErrors[_0x23c117(0x1bd)](_0x1bad2f[_0x23c117(0x1cc)]+'='+_0x1bad2f[_0x23c117(0x18a)]+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x16dea1+'\x20'+(_0x23c117(0x1af)+_0x1bad2f[_0x23c117(0x1cc)]+'\x22.'));}export function createPipelineEnv(_0x2c35de,_0x35d42d,_0x555e3c=[]){const _0x374751=a227_0x161b;return{'rawFlags':_0x35d42d,'args':_0x555e3c,'resolveAppCode':()=>_0x2c35de[_0x374751(0x1b0)],'resolveCookie':()=>_0x2c35de[_0x374751(0x1ca)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a227_0x13bdeb(_0x35d42d),'defaultFormat':_0x2c35de['format'],'defaultPageSize':_0x2c35de[_0x374751(0x1cb)],'defaultVerbose':_0x2c35de[_0x374751(0x198)],'apiDir':_0x2c35de[_0x374751(0x1aa)],'riskLevel':_0x2c35de[_0x374751(0x192)],'selectedAppName':_0x2c35de[_0x374751(0x1a9)],'mergedCli':{'defaultApp':_0x2c35de[_0x374751(0x1bc)],'currentApp':_0x2c35de[_0x374751(0x1b8)],'appCode':_0x2c35de[_0x374751(0x1b0)],'apps':_0x2c35de[_0x374751(0x1b7)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a227_0x4bf3f4(0x1b6)](_0x2e97d6=>PIPELINE_FLAG_NAMES[a227_0x4bf3f4(0x1c4)](_0x2e97d6[a227_0x4bf3f4(0x1cc)]))[a227_0x4bf3f4(0x1c3)](({name:_0x5088e7,type:_0x36507c,description:_0x865cb0})=>({'name':_0x5088e7,'type':_0x36507c,'description':_0x865cb0})),'formatOutput':formatOutput,'getCommandLabel'(_0x3f9bbc){return CLI_BIN_NAME+'\x20'+_0x3f9bbc['service']+'\x20'+_0x3f9bbc['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x19f593){const _0x491396=a227_0x4bf3f4;return CliErrors[_0x491396(0x1bd)](_0x19f593);}},async 'prepare'(_0x5bb55e,_0x2689a1,_0x68c8,_0x3cfd1f){const _0x1c5702=a227_0x4bf3f4,_0x1d90bc=_0x2689a1[_0x1c5702(0x1aa)]||DEFAULT_API_DIR;resolveAliasToCode(_0x5bb55e,_0x68c8,_0x1d90bc,_0x3cfd1f);const _0xe4dfd2=resolveCommandAuthMode(_0x5bb55e);let _0x2ff1ac='';if(_0xe4dfd2!==_0x1c5702(0x18c)){_0x2ff1ac=_0x2689a1[_0x1c5702(0x194)]()||'';if(!_0x2ff1ac){if(_0xe4dfd2===_0x1c5702(0x1ae))throw CliErrors[_0x1c5702(0x191)]();}else{const {setActiveCookie:_0x2b86b6}=await import(_0x1c5702(0x1b2));_0x2b86b6(_0x2ff1ac);}}const _0x3abf79=_0x2689a1[_0x1c5702(0x1b5)]()??'';if(_0x5bb55e[_0x1c5702(0x1c7)]!==![]){assertEnvAppCodeNotIgnored(_0x3abf79,resolveEnvAppCode(),hasExplicitAppCode(_0x68c8,_0x2689a1[_0x1c5702(0x1be)]));if(!_0x3abf79)throw CliErrors[_0x1c5702(0x1bb)](_0x1c5702(0x1b3)+CLI_BIN_NAME+_0x1c5702(0x1c8));}return{'defaults':{'booleans':{'verbose':_0x2689a1['defaultVerbose']},'numbers':{'pagesize':_0x2689a1[_0x1c5702(0x1a8)]}},'extras':{'appCode':_0x3abf79,'cookie':_0x2ff1ac,'apiDomain':_0x2689a1['resolveApiDomain'](),'apiDir':_0x1d90bc,'selectedAppName':_0x2689a1[_0x1c5702(0x1c0)],'mergedCli':_0x2689a1[_0x1c5702(0x19e)]}};},async 'confirmHighRisk'({env:_0x40b33b,commandLabel:_0xae3dbc}){const _0x50e2b1=a227_0x4bf3f4;if(_0x40b33b[_0x50e2b1(0x1a5)])throw CliErrors[_0x50e2b1(0x1bd)](_0x50e2b1(0x1c5)+_0xae3dbc+_0x50e2b1(0x197));await requireConfirmationPrompt({'lines':[_0x50e2b1(0x1a4)+_0xae3dbc,_0x50e2b1(0x1bf)],'createCancelledError':_0x44c4ae=>CliErrors[_0x50e2b1(0x1c6)](_0x44c4ae)});},async 'finalize'(){const {clearActiveCookie:_0x20b2e5}=await import('../core/api-client.js');_0x20b2e5();}};export async function runCommand(_0x41ce13,_0x4e4253){assertRejectedFlags(_0x41ce13,_0x4e4253['rawFlags']),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x41ce13)?withUpdateNotice(_0x41ce13):_0x41ce13,_0x4e4253,runnerAdapter);}function assertRejectedFlags(_0xb9e9de,_0x3374aa){const _0x70fb95=a227_0x4bf3f4;for(const _0x455837 of _0xb9e9de['rejectedFlags']??[]){const _0xb177b1=GLOBAL_FLAGS['find'](_0xf0de3c=>_0xf0de3c[_0x70fb95(0x1cc)]===_0x455837['name']),_0x17848d=new Set([_0x455837[_0x70fb95(0x1cc)],toCamelCase(_0x455837[_0x70fb95(0x1cc)]),_0xb177b1?.[_0x70fb95(0x1c2)]]),_0x2b5cb2=[..._0x17848d][_0x70fb95(0x19f)](_0x1436a0=>{if(!_0x1436a0)return![];const _0x197eb4=_0x3374aa[_0x1436a0];return _0x197eb4!==undefined&&_0x197eb4!==null&&_0x197eb4!==![];});if(_0x2b5cb2)throw CliErrors[_0x70fb95(0x1bd)](_0x455837[_0x70fb95(0x1b1)],_0x455837[_0x70fb95(0x19c)]);}}function toCamelCase(_0x49c95c){const _0x2d01d0=a227_0x4bf3f4;return _0x49c95c['replace'](/-([a-z])/g,(_0x58664a,_0x5c1c0d)=>_0x5c1c0d[_0x2d01d0(0x199)]());}function shouldAttachUpdateNotice(_0x4ae8a4){const _0x4f0a2c=a227_0x4bf3f4;if(_0x4ae8a4[_0x4f0a2c(0x1a6)]===![])return![];return![_0x4f0a2c(0x1a1),'schema',_0x4f0a2c(0x19b)][_0x4f0a2c(0x1a7)](_0x4ae8a4[_0x4f0a2c(0x18b)]);}function withUpdateNotice(_0xe446d9){return{..._0xe446d9,async 'execute'(_0x2ba785){const _0x22bb3d=a227_0x161b,_0x129b8b=shouldResolveUpdateNotice(_0x2ba785)?resolveLatestUpdateNotice()[_0x22bb3d(0x19d)](()=>null):Promise[_0x22bb3d(0x18e)](null),_0x1a1707=await _0xe446d9['execute'](_0x2ba785);return attachUpdateNotice(_0x1a1707,await _0x129b8b);}};}function shouldResolveUpdateNotice(_0x3b70ee){const _0xb3a615=a227_0x4bf3f4;return _0x3b70ee['format']===_0xb3a615(0x1b4)&&!_0x3b70ee[_0xb3a615(0x1c1)];}function attachUpdateNotice(_0x1045b9,_0x2a87af){const _0x47cc2d=a227_0x4bf3f4;if(!_0x2a87af||!_0x1045b9||typeof _0x1045b9!==_0x47cc2d(0x1a2))return _0x1045b9;const _0x45d147=_0x1045b9,_0x42197b=typeof _0x45d147[_0x47cc2d(0x1ad)]===_0x47cc2d(0x1a2)&&_0x45d147['_notice']!==null?_0x45d147[_0x47cc2d(0x1ad)]:{};return{..._0x45d147,'_notice':{..._0x42197b,'update':_0x2a87af}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x204143,_0x41f4d5){const _0x18c2cb=a228_0x48c2,_0x21d818=_0x204143();while(!![]){try{const _0x4ec687=parseInt(_0x18c2cb(0x127))/0x1*(-parseInt(_0x18c2cb(0x125))/0x2)+-parseInt(_0x18c2cb(0x12b))/0x3+parseInt(_0x18c2cb(0x129))/0x4+-parseInt(_0x18c2cb(0x128))/0x5*(-parseInt(_0x18c2cb(0x126))/0x6)+parseInt(_0x18c2cb(0x124))/0x7+-parseInt(_0x18c2cb(0x12a))/0x8+parseInt(_0x18c2cb(0x123))/0x9;if(_0x4ec687===_0x41f4d5)break;else _0x21d818['push'](_0x21d818['shift']());}catch(_0x30a3ae){_0x21d818['push'](_0x21d818['shift']());}}}(a228_0x27c6,0xb841c));function a228_0x48c2(_0x13a2a3,_0x5119b1){_0x13a2a3=_0x13a2a3-0x122;const _0x27c688=a228_0x27c6();let _0x48c2f3=_0x27c688[_0x13a2a3];return _0x48c2f3;}import{buildSchemaPayload as a228_0x5b975b}from'@lovrabet/cli-framework';function a228_0x27c6(){const _0x478faa=['1890930IWbMDj','16883MkAXUO','15bhkEjX','2683296Krkskj','11803520lZZuHD','3670521mkShZW','../commands/registry.js','11536884tYJOnp','7552097DkWtIZ','62BuvIzL'];a228_0x27c6=function(){return _0x478faa;};return a228_0x27c6();}import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0xbf2507=a228_0x48c2,{serviceRegistry:_0x3e4bd4,findDefinition:_0x159811}=await import(_0xbf2507(0x122));return a228_0x5b975b({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x3e4bd4,'buildAllFlags':buildAllFlags,'findDefinition':_0x159811});}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a229_0x31f5(){var _0x5dfd76=['168616XAFgKp','3982865mambkY','21fnNFhh','1353044QXOkff','1645604whLJUD','11tUjVhH','10538890rFIFgQ','90DoWtYx','230968cjfgbR','34244mXqWMP','174SFinsN'];a229_0x31f5=function(){return _0x5dfd76;};return a229_0x31f5();}function a229_0x3558(_0x16185e,_0x14bbac){_0x16185e=_0x16185e-0x1d1;var _0x31f5df=a229_0x31f5();var _0x3558f4=_0x31f5df[_0x16185e];return _0x3558f4;}(function(_0x425db3,_0x46c46d){var _0xb36f12=a229_0x3558,_0x1c4769=_0x425db3();while(!![]){try{var _0x551aca=-parseInt(_0xb36f12(0x1da))/0x1+parseInt(_0xb36f12(0x1db))/0x2+parseInt(_0xb36f12(0x1d9))/0x3*(parseInt(_0xb36f12(0x1d5))/0x4)+-parseInt(_0xb36f12(0x1d8))/0x5+parseInt(_0xb36f12(0x1d6))/0x6*(parseInt(_0xb36f12(0x1d7))/0x7)+parseInt(_0xb36f12(0x1d4))/0x8*(parseInt(_0xb36f12(0x1d3))/0x9)+parseInt(_0xb36f12(0x1d2))/0xa*(parseInt(_0xb36f12(0x1d1))/0xb);if(_0x551aca===_0x46c46d)break;else _0x1c4769['push'](_0x1c4769['shift']());}catch(_0x2dcc87){_0x1c4769['push'](_0x1c4769['shift']());}}}(a229_0x31f5,0xbd077));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a230_0x104ae5=a230_0x336c;function a230_0x22de(){const _0x104f55=['698xiCDHo','feb8d38','v2.3.12-beta.1','8250816BNqFpK','2026-08-04T08:14:29.635Z','2522795EQcRaR','48984720thpeYy','27853KUobEF','8802162TwpScr','2.3.12','2817LXSxtV','348omwfAK','1101588vyJgal','4zkzpdd'];a230_0x22de=function(){return _0x104f55;};return a230_0x22de();}(function(_0xd9feb0,_0x2e2dfe){const _0x1ffbe8=a230_0x336c,_0x3e9c91=_0xd9feb0();while(!![]){try{const _0x4566d5=-parseInt(_0x1ffbe8(0x128))/0x1+-parseInt(_0x1ffbe8(0x12a))/0x2*(parseInt(_0x1ffbe8(0x126))/0x3)+-parseInt(_0x1ffbe8(0x129))/0x4*(parseInt(_0x1ffbe8(0x121))/0x5)+parseInt(_0x1ffbe8(0x127))/0x6*(-parseInt(_0x1ffbe8(0x123))/0x7)+-parseInt(_0x1ffbe8(0x11f))/0x8+-parseInt(_0x1ffbe8(0x124))/0x9+parseInt(_0x1ffbe8(0x122))/0xa;if(_0x4566d5===_0x2e2dfe)break;else _0x3e9c91['push'](_0x3e9c91['shift']());}catch(_0x1f5209){_0x3e9c91['push'](_0x3e9c91['shift']());}}}(a230_0x22de,0xb0dee));export const VERSION=a230_0x104ae5(0x125);export const GIT_TAG=a230_0x104ae5(0x11e);function a230_0x336c(_0x110d27,_0xd2c0c2){_0x110d27=_0x110d27-0x11d;const _0x22de42=a230_0x22de();let _0x336c67=_0x22de42[_0x110d27];return _0x336c67;}export const GIT_COMMIT=a230_0x104ae5(0x11d);export const BUILD_TIME=a230_0x104ae5(0x120);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x412680,_0xa31050){var _0x2354fb=a231_0x4d2c,_0x14ed98=_0x412680();while(!![]){try{var _0x1586ee=parseInt(_0x2354fb(0x188))/0x1*(-parseInt(_0x2354fb(0x18c))/0x2)+parseInt(_0x2354fb(0x18b))/0x3*(-parseInt(_0x2354fb(0x18e))/0x4)+parseInt(_0x2354fb(0x187))/0x5*(parseInt(_0x2354fb(0x189))/0x6)+parseInt(_0x2354fb(0x184))/0x7+parseInt(_0x2354fb(0x18f))/0x8+-parseInt(_0x2354fb(0x191))/0x9+parseInt(_0x2354fb(0x190))/0xa*(parseInt(_0x2354fb(0x183))/0xb);if(_0x1586ee===_0xa31050)break;else _0x14ed98['push'](_0x14ed98['shift']());}catch(_0x17efe3){_0x14ed98['push'](_0x14ed98['shift']());}}}(a231_0x2e9b,0x6461c));import a231_0x2d1d49 from'chalk';function a231_0x4d2c(_0x167e8c,_0x39e159){_0x167e8c=_0x167e8c-0x183;var _0x2e9bef=a231_0x2e9b();var _0x4d2c60=_0x2e9bef[_0x167e8c];return _0x4d2c60;}function a231_0x2e9b(){var _0x45fc8a=['green','4187546DRwgCc','933534pfzOcE','\x20to\x20view\x20available\x20commands.','log','20UEMkXO','470ZDeECf','400608rWVdxT','bold','17418AmZmWV','3394DFmswD','\x20--help','236vfdFHW','404408ZFnyJh','30KQnawX','375615aqSwlx'];a231_0x2e9b=function(){return _0x45fc8a;};return a231_0x2e9b();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x529fef=a231_0x4d2c;console['log'](),console[_0x529fef(0x186)](a231_0x2d1d49[_0x529fef(0x192)][_0x529fef(0x18a)]('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console[_0x529fef(0x186)]('\x20\x20Use\x20'+a231_0x2d1d49['green'][_0x529fef(0x18a)](CLI_BIN_NAME+_0x529fef(0x18d))+_0x529fef(0x185)),console[_0x529fef(0x186)]();}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a232_0x39b1(){const _0x3a306b=['error','dangerously-bff-save','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','slice','11277657ZAQTpP','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a','6091430asVkaY','push','entries','Equivalent\x20command:\x20','Error:\x20Unsupported\x20command:\x20','\x0aAvailable\x20commands:','7262913wvIZop','has','toLowerCase','1070025cCremZ','includes','cwd','setLogPath','exit','8WJvNbZ','log','542qVqeYz','add','startsWith','7941XeVmsq','不支持的命令:\x20','7626180ucExdc','argv','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','-$1','enable-bff-save','911628ufkuSs','10yROwci'];a232_0x39b1=function(){return _0x3a306b;};return a232_0x39b1();}(function(_0x49e74e,_0x5c31ba){const _0x660956=a232_0x1a9d,_0x9337b=_0x49e74e();while(!![]){try{const _0xe745fe=-parseInt(_0x660956(0x1fc))/0x1+parseInt(_0x660956(0x203))/0x2*(-parseInt(_0x660956(0x206))/0x3)+parseInt(_0x660956(0x1eb))/0x4+-parseInt(_0x660956(0x1f3))/0x5+parseInt(_0x660956(0x208))/0x6+parseInt(_0x660956(0x1f9))/0x7*(parseInt(_0x660956(0x201))/0x8)+-parseInt(_0x660956(0x1f1))/0x9*(-parseInt(_0x660956(0x1ec))/0xa);if(_0xe745fe===_0x5c31ba)break;else _0x9337b['push'](_0x9337b['shift']());}catch(_0x112271){_0x9337b['push'](_0x9337b['shift']());}}}(a232_0x39b1,0xbf631));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x3dd17c){const _0x3cb43d=a232_0x1a9d,_0x26cd40=[];for(const [_0x5d2a14,_0x40dd86]of Object[_0x3cb43d(0x1f5)](_0x3dd17c)){if(_0x40dd86===!![]){const _0x24babb=_0x5d2a14['replace'](/([A-Z])/g,_0x3cb43d(0x20b))[_0x3cb43d(0x1fb)]();_0x26cd40[_0x3cb43d(0x1f4)](_0x24babb);}}return _0x26cd40;}export function parseDynamicFlags(){const _0x59882a=a232_0x1a9d,_0x39c427=[];for(let _0x3b8908=0x3;_0x3b8908<process[_0x59882a(0x209)]['length'];_0x3b8908++){const _0x2f0448=process[_0x59882a(0x209)][_0x3b8908];if(_0x2f0448&&_0x2f0448[_0x59882a(0x205)]('--')){const _0x39dab5=_0x2f0448[_0x59882a(0x1f0)](0x2);_0x39dab5&&!_0x39dab5[_0x59882a(0x1fd)]('=')&&_0x39c427[_0x59882a(0x1f4)](_0x39dab5);}}return _0x39c427;}export function getAllProvidedFlags(_0x537342){const _0xf8fc1d=camelCaseFlagsToKebab(_0x537342),_0x423236=parseDynamicFlags(),_0x1585a4=new Set([..._0xf8fc1d,..._0x423236]);return Array['from'](_0x1585a4);}export function normalizeLegacyBffSaveFlags(_0x56d4ad){const _0x213a82=a232_0x1a9d,_0x3c2a9b=new Set(_0x56d4ad);return _0x3c2a9b[_0x213a82(0x1fa)](_0x213a82(0x1ee))&&_0x3c2a9b[_0x213a82(0x204)](_0x213a82(0x1ea)),Array['from'](_0x3c2a9b);}function a232_0x1a9d(_0x4666fd,_0x1026ce){_0x4666fd=_0x4666fd-0x1ea;const _0x39b1dd=a232_0x39b1();let _0x1a9da0=_0x39b1dd[_0x4666fd];return _0x1a9da0;}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x278fd8,_0x35397c,_0x224fab){const _0xe3e103=a232_0x1a9d;logger[_0xe3e103(0x1ff)](process[_0xe3e103(0x1fe)]());if(_0x224fab?.['help']||_0x278fd8==='--help'){showHelp();return;}console[_0xe3e103(0x1ed)](_0xe3e103(0x1f7)+(_0x278fd8||'(empty)')),console[_0xe3e103(0x202)](_0xe3e103(0x1f8)),console['log']('\x20\x20'+CLI_BIN_NAME+_0xe3e103(0x1ef)),console[_0xe3e103(0x202)](''),console[_0xe3e103(0x202)](_0xe3e103(0x1f6)+SKILLS_INSTALL_COMMAND_LINE),logger[_0xe3e103(0x1ed)]('skill',_0xe3e103(0x207)+_0x278fd8),process[_0xe3e103(0x200)](0x1);}function showHelp(){const _0x4e1744=a232_0x1a9d;console[_0x4e1744(0x202)](_0x4e1744(0x20a)+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x4e1744(0x1f2));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a233_0x4cecf8=a233_0x1526;(function(_0x319bd5,_0x34c029){const _0x2d6020=a233_0x1526,_0x22b546=_0x319bd5();while(!![]){try{const _0x1a6979=-parseInt(_0x2d6020(0x152))/0x1*(parseInt(_0x2d6020(0x168))/0x2)+-parseInt(_0x2d6020(0x15a))/0x3*(parseInt(_0x2d6020(0x14a))/0x4)+-parseInt(_0x2d6020(0x160))/0x5*(parseInt(_0x2d6020(0x15f))/0x6)+-parseInt(_0x2d6020(0x154))/0x7+-parseInt(_0x2d6020(0x14d))/0x8*(-parseInt(_0x2d6020(0x153))/0x9)+parseInt(_0x2d6020(0x14c))/0xa+parseInt(_0x2d6020(0x14b))/0xb;if(_0x1a6979===_0x34c029)break;else _0x22b546['push'](_0x22b546['shift']());}catch(_0x4baebb){_0x22b546['push'](_0x22b546['shift']());}}}(a233_0x2354,0xb4a48));function a233_0x2354(){const _0x284dab=['add','log','3MBzQRC','567369ZtQtZz','1654989PyVUvJ','pipe','unknown','join','yes','stderr','882027qvQYed','npx','stdout','push','stdio','246MVAvkC','77845rMAvPB','toString','inherit','exit\x20','Lovrabet','trim','skills','status','914738vmZDhg','skill','4albWSf','28313582kYfEIu','5176990hSUdxO','24njXHXf','--skill','lovrabet/lovrabet-skill'];a233_0x2354=function(){return _0x284dab;};return a233_0x2354();}import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a233_0x4cecf8(0x166);export const NPX_SKILLS_SUBCOMMAND_ADD=a233_0x4cecf8(0x150);export const NPX_SKILLS_FLAG_SKILL=a233_0x4cecf8(0x14e);export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE=a233_0x4cecf8(0x14f);export const DEFAULT_RABETBASE_SKILL_NAME=a233_0x4cecf8(0x164);export function buildNpxSkillsAddArgv(_0x1025a0){const _0x12bcc6=a233_0x4cecf8,_0x1d5d64=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x1025a0&&_0x1d5d64[_0x12bcc6(0x15d)](NPX_SKILLS_FLAG_SKILL,_0x1025a0),_0x1d5d64;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()]['join']('\x20');function a233_0x1526(_0x3a6fc9,_0x1bba1a){_0x3a6fc9=_0x3a6fc9-0x149;const _0x23540b=a233_0x2354();let _0x15260d=_0x23540b[_0x3a6fc9];return _0x15260d;}export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a233_0x4cecf8(0x15b),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x1aaef8,_0x1abb0e){const _0x1ad590=a233_0x4cecf8;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x29e893=_0x1abb0e?.[_0x1ad590(0x15e)]??_0x1ad590(0x162),_0x463ddc=resolveNpmBin(_0x1ad590(0x15b)),_0x52a0a4=buildNpxSkillsAddArgv(_0x1abb0e?.[_0x1ad590(0x149)]),_0x4eb39e=['npx',..._0x52a0a4]['join']('\x20');console['log']('*\x20'+_0x4eb39e);const _0x2f0885=spawnSync(_0x463ddc,_0x52a0a4,{'cwd':_0x1aaef8,'stdio':_0x29e893,'env':process.env,'shell':![]}),_0x3ec704=_0x2f0885[_0x1ad590(0x167)];if(_0x3ec704===0x0)return{'ok':!![],'status':0x0};let _0x526a96=_0x1ad590(0x163)+(_0x3ec704??'unknown');if(_0x29e893==='pipe'){const _0x569bc4=_0x2f0885[_0x1ad590(0x159)]?_0x2f0885['stderr'][_0x1ad590(0x161)]()[_0x1ad590(0x165)]():'',_0x1ada78=_0x2f0885[_0x1ad590(0x15c)]?_0x2f0885['stdout']['toString']()[_0x1ad590(0x165)]():'';if(_0x569bc4)_0x526a96=_0x569bc4;else{if(_0x1ada78)_0x526a96=_0x1ada78;}}return{'ok':![],'status':_0x3ec704??null,'error':_0x526a96};}export function runNpxSkillsRemove(_0x3cc0ee,_0x5d4640,_0x1e2524=LEGACY_RABETBASE_SKILL_SOURCE){const _0x2ba654=a233_0x4cecf8;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x34af1f=_0x5d4640?.[_0x2ba654(0x15e)]??'inherit',_0x195630=resolveNpmBin('npx'),_0x164b80=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',_0x1e2524,NPX_SKILLS_FLAG_SKILL,_0x5d4640?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0x5d4640?.[_0x2ba654(0x158)]?['-y']:[]],_0x35bb5d=[_0x195630,..._0x164b80][_0x2ba654(0x157)]('\x20');console[_0x2ba654(0x151)]('*\x20'+_0x35bb5d);const _0x1a90fd=spawnSync(_0x195630,_0x164b80,{'cwd':_0x3cc0ee,'stdio':_0x34af1f,'env':process.env,'shell':![]}),_0x17254f=_0x1a90fd[_0x2ba654(0x167)];if(_0x17254f===0x0)return{'ok':!![],'status':0x0};let _0x4e7c81='exit\x20'+(_0x17254f??_0x2ba654(0x156));if(_0x34af1f==='pipe'){const _0xe44e0b=_0x1a90fd['stderr']?_0x1a90fd['stderr'][_0x2ba654(0x161)]()[_0x2ba654(0x165)]():'',_0x31fa63=_0x1a90fd[_0x2ba654(0x15c)]?_0x1a90fd[_0x2ba654(0x15c)][_0x2ba654(0x161)]()[_0x2ba654(0x165)]():'';if(_0xe44e0b)_0x4e7c81=_0xe44e0b;else{if(_0x31fa63)_0x4e7c81=_0x31fa63;}}return{'ok':![],'status':_0x17254f??null,'error':_0x4e7c81};}export function runNpxSkillsAddGlobal(_0x4258ad,_0x55aee8,_0x39529a){const _0x2de6b9=a233_0x4cecf8;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x422dea=_0x39529a?.['stdio']??_0x2de6b9(0x162),_0x35841c=resolveNpmBin('npx'),_0x17968f=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x55aee8,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x4dbbbb=[_0x2de6b9(0x15b),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x55aee8,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console[_0x2de6b9(0x151)]('*\x20'+_0x4dbbbb);const _0x157ec5=spawnSync(_0x35841c,_0x17968f,{'cwd':_0x4258ad,'stdio':_0x422dea,'env':process.env,'shell':![]}),_0x5aaef0=_0x157ec5[_0x2de6b9(0x167)];if(_0x5aaef0===0x0)return{'ok':!![],'status':0x0};let _0x24889d=_0x2de6b9(0x163)+(_0x5aaef0??_0x2de6b9(0x156));if(_0x422dea===_0x2de6b9(0x155)){const _0x2ae604=_0x157ec5['stderr']?_0x157ec5[_0x2de6b9(0x159)]['toString']()['trim']():'',_0x4b54e4=_0x157ec5[_0x2de6b9(0x15c)]?_0x157ec5['stdout'][_0x2de6b9(0x161)]()[_0x2de6b9(0x165)]():'';if(_0x2ae604)_0x24889d=_0x2ae604;else{if(_0x4b54e4)_0x24889d=_0x4b54e4;}}return{'ok':![],'status':_0x5aaef0??null,'error':_0x24889d};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a234_0x29a2(_0x5b453b,_0x43d2d6){_0x5b453b=_0x5b453b-0xb1;const _0xa9528e=a234_0xa952();let _0x29a21a=_0xa9528e[_0x5b453b];return _0x29a21a;}(function(_0x2d8dfc,_0x246329){const _0x135fc6=a234_0x29a2,_0x70cfbb=_0x2d8dfc();while(!![]){try{const _0x332f73=-parseInt(_0x135fc6(0xb4))/0x1*(parseInt(_0x135fc6(0xb1))/0x2)+-parseInt(_0x135fc6(0xb7))/0x3+parseInt(_0x135fc6(0xb2))/0x4+-parseInt(_0x135fc6(0xbf))/0x5+-parseInt(_0x135fc6(0xba))/0x6*(parseInt(_0x135fc6(0xc0))/0x7)+-parseInt(_0x135fc6(0xb3))/0x8+parseInt(_0x135fc6(0xc1))/0x9;if(_0x332f73===_0x246329)break;else _0x70cfbb['push'](_0x70cfbb['shift']());}catch(_0x3e5fe6){_0x70cfbb['push'](_0x70cfbb['shift']());}}}(a234_0xa952,0xd7678));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 a234_0xa952(){const _0x304f38=['durationMs','command','7914KTUaKd','message','service','entries','error','113930pPEZVt','8596pMdzOt','23999751zGTPeb','6866HtkTOt','5819224pufwpZ','4792120WmXpFi','201zYhECg','stringify','flags','922749fxywYQ'];a234_0xa952=function(){return _0x304f38;};return a234_0xa952();}function isSensitiveKey(_0x542cec){return SENSITIVE_PATTERNS['some'](_0x2cd8d9=>_0x2cd8d9['test'](_0x542cec));}function sanitizeFlags(_0x3ed40c){const _0x2a9799=a234_0x29a2,_0x392521={};for(const [_0x17b7cd,_0x2c153f]of Object[_0x2a9799(0xbd)](_0x3ed40c)){isSensitiveKey(_0x17b7cd)?_0x392521[_0x17b7cd]=_0x2c153f!=null&&_0x2c153f!==''?'[REDACTED]':_0x2c153f:_0x392521[_0x17b7cd]=_0x2c153f;}return _0x392521;}export async function reportCommandTrace(_0x40438b){const _0x2a0660=a234_0x29a2;try{const _0x3a6eb9=sanitizeFlags(_0x40438b[_0x2a0660(0xb6)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x40438b[_0x2a0660(0xbc)],'command.name':_0x40438b[_0x2a0660(0xb9)],'command.flags':JSON[_0x2a0660(0xb5)](_0x3a6eb9),..._0x40438b[_0x2a0660(0xb8)]!=null?{'command.duration_ms':_0x40438b['durationMs']}:{},..._0x40438b[_0x2a0660(0xbe)]?{'command.error':_0x40438b[_0x2a0660(0xbe)]instanceof Error?_0x40438b[_0x2a0660(0xbe)][_0x2a0660(0xbb)]:String(_0x40438b[_0x2a0660(0xbe)])}:{}}});}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xe56a3f,_0x20521d){var _0x2681c8=a235_0x1266,_0xda097e=_0xe56a3f();while(!![]){try{var _0x242f93=parseInt(_0x2681c8(0x179))/0x1+-parseInt(_0x2681c8(0x17c))/0x2+parseInt(_0x2681c8(0x174))/0x3+-parseInt(_0x2681c8(0x17a))/0x4*(parseInt(_0x2681c8(0x178))/0x5)+-parseInt(_0x2681c8(0x175))/0x6*(-parseInt(_0x2681c8(0x172))/0x7)+parseInt(_0x2681c8(0x17b))/0x8+-parseInt(_0x2681c8(0x176))/0x9;if(_0x242f93===_0x20521d)break;else _0xda097e['push'](_0xda097e['shift']());}catch(_0x162a34){_0xda097e['push'](_0xda097e['shift']());}}}(a235_0x34f9,0x1be00));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a235_0x1266(_0x402204,_0x4d4f3a){_0x402204=_0x402204-0x172;var _0x34f91f=a235_0x34f9();var _0x1266f3=_0x34f91f[_0x402204];return _0x1266f3;}function a235_0x34f9(){var _0x3c8508=['1374992vDgXIG','323756WcUdHD','service','71155ZhVGnW','cli.help','460473gvMXoP','84cNWtNh','2431017eDMqyr','error','15965IyhwpG','81685dpKSWa','4EzJcaN'];a235_0x34f9=function(){return _0x3c8508;};return a235_0x34f9();}export async function reportCliHelpTrace(_0x32d057,_0x30c16c){var _0x3b2bec=a235_0x1266;try{await sendCliTraceLog({'spanName':_0x3b2bec(0x173),'logData':{'rabetbase.help.kind':_0x32d057,..._0x30c16c?.[_0x3b2bec(0x17d)]&&{'rabetbase.help.service':_0x30c16c[_0x3b2bec(0x17d)]}}});}catch(_0x44ce4b){console[_0x3b2bec(0x177)]('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0x44ce4b);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2e04dc,_0x453cff){const _0x1173c9=a236_0x5b53,_0x1cedfa=_0x2e04dc();while(!![]){try{const _0x5c4558=parseInt(_0x1173c9(0x98))/0x1*(parseInt(_0x1173c9(0x9f))/0x2)+-parseInt(_0x1173c9(0xa5))/0x3*(parseInt(_0x1173c9(0x9d))/0x4)+-parseInt(_0x1173c9(0xa4))/0x5+-parseInt(_0x1173c9(0xa2))/0x6*(parseInt(_0x1173c9(0x9b))/0x7)+-parseInt(_0x1173c9(0xa3))/0x8+parseInt(_0x1173c9(0x97))/0x9*(parseInt(_0x1173c9(0x9c))/0xa)+parseInt(_0x1173c9(0xa0))/0xb;if(_0x5c4558===_0x453cff)break;else _0x1cedfa['push'](_0x1cedfa['shift']());}catch(_0x28f264){_0x1cedfa['push'](_0x1cedfa['shift']());}}}(a236_0x1bc9,0x47795));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a236_0x5b53(_0x492e4d,_0x32c2d5){_0x492e4d=_0x492e4d-0x96;const _0x1bc9cd=a236_0x1bc9();let _0x5b53db=_0x1bc9cd[_0x492e4d];return _0x5b53db;}import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';function a236_0x1bc9(){const _0x2a961d=['4278224vexzpU','1449675WvvEtx','6wqTkUx','user','9ThqelG','41odIYRv','tenant_code','username','84zitAEj','3302470KzlJDs','389304dkKllm','production','9850EbIxaS','14841002GrNRoC','nickname','284616pXGazG'];a236_0x1bc9=function(){return _0x2a961d;};return a236_0x1bc9();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x3135f5=a236_0x5b53,_0x3551d9=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x480775=_0x3551d9?.[_0x3135f5(0x96)];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':_0x3135f5(0x9e))}),setUserContext({'id':_0x480775?.['id'],'username':_0x480775?.[_0x3135f5(0x9a)],'nickname':_0x480775?.[_0x3135f5(0xa1)],'email':_0x480775?.['email'],'tenantCode':_0x480775?.['tenant'][_0x3135f5(0x99)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x3551d9;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a237_0x2a0e(_0x48be2b,_0x1a3ce6){_0x48be2b=_0x48be2b-0xcd;const _0xb15908=a237_0xb159();let _0x2a0eb2=_0xb15908[_0x48be2b];return _0x2a0eb2;}(function(_0x232c1a,_0x3485dd){const _0x505e1f=a237_0x2a0e,_0x1cd1cc=_0x232c1a();while(!![]){try{const _0x42b768=parseInt(_0x505e1f(0xd7))/0x1*(parseInt(_0x505e1f(0xd8))/0x2)+-parseInt(_0x505e1f(0xd2))/0x3+-parseInt(_0x505e1f(0xd0))/0x4+-parseInt(_0x505e1f(0xd9))/0x5*(-parseInt(_0x505e1f(0xd5))/0x6)+-parseInt(_0x505e1f(0xcf))/0x7*(-parseInt(_0x505e1f(0xdb))/0x8)+parseInt(_0x505e1f(0xd6))/0x9*(parseInt(_0x505e1f(0xdc))/0xa)+-parseInt(_0x505e1f(0xce))/0xb;if(_0x42b768===_0x3485dd)break;else _0x1cd1cc['push'](_0x1cd1cc['shift']());}catch(_0x2929a7){_0x1cd1cc['push'](_0x1cd1cc['shift']());}}}(a237_0xb159,0xee4e5));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a237_0xb159(){const _0x359cd6=['23346JNElsz','120573FUhvBi','269AeNdVU','12910NlrPul','585gzoFYe','SIGINT','9168184uMXCvx','550zcVGJW','SIGTERM','exit','369490ALBtRM','7xHFtYL','6511416Dsrmdy','once','4310865fTLPGn','then','beforeExit'];a237_0xb159=function(){return _0x359cd6;};return a237_0xb159();}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x1cf38e=a237_0x2a0e;process[_0x1cf38e(0xd1)](_0x1cf38e(0xd4),()=>{void flushOtelNodeIfUsed();});const _0x4562f6=()=>{const _0x5e5d71=_0x1cf38e;void flushOtelNodeIfUsed()[_0x5e5d71(0xd3)](()=>process[_0x5e5d71(0xcd)](0x0));};process[_0x1cf38e(0xd1)](_0x1cf38e(0xda),_0x4562f6),process['once'](_0x1cf38e(0xdd),_0x4562f6);}export async function exitWithOtelShutdown(_0x1bc5ae){const _0x57f23a=a237_0x2a0e;await flushOtelNodeIfUsed(),process[_0x57f23a(0xcd)](_0x1bc5ae);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a238_0x11efc7=a238_0x512d;(function(_0x23fb4b,_0x2c23c9){const _0x50f932=a238_0x512d,_0x59acd6=_0x23fb4b();while(!![]){try{const _0x3eb087=parseInt(_0x50f932(0x86))/0x1+parseInt(_0x50f932(0x83))/0x2+parseInt(_0x50f932(0x85))/0x3+-parseInt(_0x50f932(0x92))/0x4*(parseInt(_0x50f932(0x91))/0x5)+parseInt(_0x50f932(0x8b))/0x6*(-parseInt(_0x50f932(0x8d))/0x7)+parseInt(_0x50f932(0x8a))/0x8+-parseInt(_0x50f932(0x82))/0x9*(parseInt(_0x50f932(0x8c))/0xa);if(_0x3eb087===_0x2c23c9)break;else _0x59acd6['push'](_0x59acd6['shift']());}catch(_0xacebdb){_0x59acd6['push'](_0x59acd6['shift']());}}}(a238_0x520a,0x4f501));import{sendTraceLog}from'@lovrabet/otel-logger';function a238_0x512d(_0x1810ee,_0x280b19){_0x1810ee=_0x1810ee-0x82;const _0x520a67=a238_0x520a();let _0x512d01=_0x520a67[_0x1810ee];return _0x512d01;}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a238_0x11efc7(0x88);export async function sendCliTraceLog(_0x3c6f15){const _0x107f7f=a238_0x11efc7;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x3c6f15[_0x107f7f(0x84)]??DEFAULT_TRACE_NAME,'version':_0x3c6f15[_0x107f7f(0x90)]??getCliVersion(),'spanName':_0x3c6f15[_0x107f7f(0x87)],'eventType':_0x107f7f(0x8e),'logData':_0x3c6f15[_0x107f7f(0x8f)],..._0x3c6f15[_0x107f7f(0x89)]&&{'traceparent':_0x3c6f15[_0x107f7f(0x89)]}});}function a238_0x520a(){const _0x57d72e=['18531icLvoz','1125036aaMxpq','traceName','1124859tJCRxX','588699MefNqY','spanName','rabetbase-cli','traceparent','2522392XMTRsP','102GIjFbV','4610boLLdB','63077YESyma','manual','logData','version','70PphqDH','118348lXfyKz'];a238_0x520a=function(){return _0x57d72e;};return a238_0x520a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a239_0x4681(_0x445e07,_0x9336f8){_0x445e07=_0x445e07-0x93;const _0x2c79ab=a239_0x2c79();let _0x4681fc=_0x2c79ab[_0x445e07];return _0x4681fc;}const a239_0x58da73=a239_0x4681;function a239_0x2c79(){const _0x279a67=['20347063jBezNP','7HmvRZn','1022884UtJskk','issue.log.collect','description','platform-issue-log-collect','5710480ycyJic','12crysSJ','45svZQeN','originalBytes','2594664gRmOQT','title','185466PXrdZn','180zvoXIM','redactionCount','1449170SwWDMC','19015seZxGP','sanitize','join','2FnGFhZ'];a239_0x2c79=function(){return _0x279a67;};return a239_0x2c79();}(function(_0x4185ba,_0x360d93){const _0x33c34a=a239_0x4681,_0xc56d21=_0x4185ba();while(!![]){try{const _0x5bb6bd=-parseInt(_0x33c34a(0xa5))/0x1+-parseInt(_0x33c34a(0xa2))/0x2*(-parseInt(_0x33c34a(0x9b))/0x3)+-parseInt(_0x33c34a(0x9c))/0x4*(-parseInt(_0x33c34a(0x9f))/0x5)+-parseInt(_0x33c34a(0x99))/0x6+parseInt(_0x33c34a(0xa4))/0x7*(parseInt(_0x33c34a(0x95))/0x8)+-parseInt(_0x33c34a(0x97))/0x9*(parseInt(_0x33c34a(0x9e))/0xa)+parseInt(_0x33c34a(0xa3))/0xb*(parseInt(_0x33c34a(0x96))/0xc);if(_0x5bb6bd===_0x360d93)break;else _0xc56d21['push'](_0xc56d21['shift']());}catch(_0x5aebc7){_0xc56d21['push'](_0xc56d21['shift']());}}}(a239_0x2c79,0x9688b));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a239_0x58da73(0x94);export const PLATFORM_ISSUE_SPAN_NAME=a239_0x58da73(0xa6);export async function sendPlatformIssueCollectLog(_0x5acf95){const _0x1f1bb2=a239_0x58da73;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x5acf95[_0x1f1bb2(0x9a)],'issue.description':_0x5acf95[_0x1f1bb2(0x93)],..._0x5acf95[_0x1f1bb2(0xa0)]?{'issue.description_original_bytes':_0x5acf95[_0x1f1bb2(0xa0)][_0x1f1bb2(0x98)],'issue.description_truncated':_0x5acf95[_0x1f1bb2(0xa0)]['truncated'],'issue.description_redactions':_0x5acf95['sanitize'][_0x1f1bb2(0x9d)],'issue.description_redaction_kinds':_0x5acf95[_0x1f1bb2(0xa0)]['redactionKinds'][_0x1f1bb2(0xa1)](',')}:{}}});}
|
package/lib/utils/ai_config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a241_0xe36df8=a241_0x1a15;(function(_0x288747,_0x157055){const _0x2bb0a5=a241_0x1a15,_0x31cdc3=_0x288747();while(!![]){try{const _0x321f9d=parseInt(_0x2bb0a5(0x148))/0x1*(-parseInt(_0x2bb0a5(0x133))/0x2)+-parseInt(_0x2bb0a5(0x156))/0x3+parseInt(_0x2bb0a5(0x12b))/0x4+parseInt(_0x2bb0a5(0x14e))/0x5*(-parseInt(_0x2bb0a5(0x13a))/0x6)+-parseInt(_0x2bb0a5(0x142))/0x7+parseInt(_0x2bb0a5(0x132))/0x8*(-parseInt(_0x2bb0a5(0x130))/0x9)+-parseInt(_0x2bb0a5(0x129))/0xa*(-parseInt(_0x2bb0a5(0x145))/0xb);if(_0x321f9d===_0x157055)break;else _0x31cdc3['push'](_0x31cdc3['shift']());}catch(_0x4063de){_0x31cdc3['push'](_0x31cdc3['shift']());}}}(a241_0xf47d,0x78161));export const CORE_IDE_CONFIGS={'cursor':{'name':a241_0xe36df8(0x144),'description':a241_0xe36df8(0x14c),'folders':[a241_0xe36df8(0x140),a241_0xe36df8(0x14d)],'files':[{'type':a241_0xe36df8(0x124),'path':'.cursor/skills/rabetbase.md','template':a241_0xe36df8(0x12f)}]},'windsurf':{'name':'Windsurf','description':a241_0xe36df8(0x14a),'folders':[a241_0xe36df8(0x12d)],'files':[{'type':a241_0xe36df8(0x124),'path':'.windsurf/workflows/rabetbase.md','template':a241_0xe36df8(0x12f)}]},'claude':{'name':a241_0xe36df8(0x13d),'description':'Claude\x20Code','folders':['.claude'],'files':[{'type':a241_0xe36df8(0x124),'path':a241_0xe36df8(0x151),'template':'SKILL.md.tpl'}]},'cline':{'name':a241_0xe36df8(0x134),'description':a241_0xe36df8(0x14f),'folders':[a241_0xe36df8(0x125)],'files':[{'type':a241_0xe36df8(0x124),'path':'.cline/skills/lovrabet/SKILL.md','template':a241_0xe36df8(0x12f)}]},'codex':{'name':a241_0xe36df8(0x158),'description':a241_0xe36df8(0x141),'folders':['.codex'],'files':[{'type':a241_0xe36df8(0x124),'path':'.codex/skills/lovrabet/SKILL.md','template':a241_0xe36df8(0x12f)}]},'opencode':{'name':a241_0xe36df8(0x131),'description':a241_0xe36df8(0x126),'folders':[a241_0xe36df8(0x128)],'files':[{'type':'file','path':'.opencode/skills/lovrabet/SKILL.md','template':a241_0xe36df8(0x12f)}]},'qoder':{'name':a241_0xe36df8(0x12c),'description':'Qoder\x20IDE','folders':['.qoder'],'files':[{'type':'file','path':a241_0xe36df8(0x153),'template':a241_0xe36df8(0x12f)},{'type':a241_0xe36df8(0x124),'path':a241_0xe36df8(0x12e),'template':a241_0xe36df8(0x12f)}]},'codebuddy':{'name':a241_0xe36df8(0x152),'description':'CodeBuddy\x20IDE','folders':[a241_0xe36df8(0x13f)],'files':[{'type':a241_0xe36df8(0x124),'path':a241_0xe36df8(0x127),'template':a241_0xe36df8(0x12f)}]},'trae':{'name':'Trae','description':a241_0xe36df8(0x155),'folders':[a241_0xe36df8(0x157)],'files':[{'type':'file','path':a241_0xe36df8(0x147),'template':a241_0xe36df8(0x12f)}]}};function a241_0x1a15(_0x248266,_0x1de14f){_0x248266=_0x248266-0x124;const _0xf47d9b=a241_0xf47d();let _0x1a159d=_0xf47d9b[_0x248266];return _0x1a159d;}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'其他\x20(通用模板)','description':a241_0xe36df8(0x13b),'folders':[a241_0xe36df8(0x136)],'files':[{'type':a241_0xe36df8(0x124),'path':a241_0xe36df8(0x139),'template':a241_0xe36df8(0x12f)}]},'antigravity':{'name':a241_0xe36df8(0x135),'description':a241_0xe36df8(0x149),'folders':[a241_0xe36df8(0x136)],'files':[{'type':a241_0xe36df8(0x124),'path':a241_0xe36df8(0x139),'template':a241_0xe36df8(0x12f)}]}};function a241_0xf47d(){const _0x2b5b6=['7231obAONU','Antigravity\x20IDE','Windsurf\x20IDE','qoder','Cursor\x20IDE','.cursor','5YxaNAj','Cline\x20IDE','codex','.claude/skills/lovrabet/SKILL.md','CodeBuddy','.qoder/rules/rabetbase.md','cline','Trae\x20IDE','2645865XbUhym','.trae','Codex','file','.cline','OpenCode\x20IDE','.codebuddy/skills/lovrabet/SKILL.md','.opencode','6980tleGHH','trae','1492800gvsBsu','Qoder','.windsurf','.qoder/skills/lovrabet/SKILL.md','SKILL.md.tpl','4295061yKnpZN','OpenCode','8bORWcK','98fzWAYF','Cline','Antigravity','.agent','opencode','claude','.agent/skills/lovrabet/SKILL.md','2313546NofsXr','通用模板\x20-\x20兜底方案','antigravity','Claude\x20Code','cursor','.codebuddy','.cursorrules','Codex\x20IDE','4786733vhUjRy','windsurf','Cursor','45727AsjFic','codebuddy','.trae/skills/lovrabet/SKILL.md'];a241_0xf47d=function(){return _0x2b5b6;};return a241_0xf47d();}export const CORE_IDE_LIST=[a241_0xe36df8(0x138),a241_0xe36df8(0x154),'codebuddy',a241_0xe36df8(0x150),a241_0xe36df8(0x13e),a241_0xe36df8(0x137),'qoder',a241_0xe36df8(0x12a),'windsurf'];export const IDE_LIST=[a241_0xe36df8(0x13c),a241_0xe36df8(0x138),a241_0xe36df8(0x154),'codebuddy',a241_0xe36df8(0x150),'cursor','opencode',a241_0xe36df8(0x14b),'trae',a241_0xe36df8(0x143),'agent'];export const ALL_CORE_IDES=[a241_0xe36df8(0x13e),a241_0xe36df8(0x143),a241_0xe36df8(0x138),'cline',a241_0xe36df8(0x150),a241_0xe36df8(0x137),a241_0xe36df8(0x14b),a241_0xe36df8(0x146),a241_0xe36df8(0x12a)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x27243e,_0x5e6b95){const _0x44691a=a242_0x3652,_0x33386b=_0x27243e();while(!![]){try{const _0x491cdc=-parseInt(_0x44691a(0xca))/0x1+parseInt(_0x44691a(0xd0))/0x2+parseInt(_0x44691a(0xcf))/0x3+-parseInt(_0x44691a(0xd2))/0x4*(parseInt(_0x44691a(0xd3))/0x5)+-parseInt(_0x44691a(0xcc))/0x6+-parseInt(_0x44691a(0xcb))/0x7*(parseInt(_0x44691a(0xcd))/0x8)+parseInt(_0x44691a(0xd1))/0x9*(parseInt(_0x44691a(0xce))/0xa);if(_0x491cdc===_0x5e6b95)break;else _0x33386b['push'](_0x33386b['shift']());}catch(_0x54cac0){_0x33386b['push'](_0x33386b['shift']());}}}(a242_0x21f4,0x9b40e));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a242_0x21f4(){const _0x42d8ae=['3142290jGhuOL','3234591boCuyw','935550GlXuPx','18JiEHoG','315592NMFFAY','30rfWgKa','333987hwWpNI','1819811dnZmlh','1267146UgWNii','16HlCAwj'];a242_0x21f4=function(){return _0x42d8ae;};return a242_0x21f4();}function a242_0x3652(_0x568cfa,_0x56cb36){_0x568cfa=_0x568cfa-0xca;const _0x21f4b8=a242_0x21f4();let _0x365292=_0x21f4b8[_0x568cfa];return _0x365292;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
package/lib/utils/cdn-config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a243_0x4a07(_0x27e9d8,_0x13197a){_0x27e9d8=_0x27e9d8-0xe9;const _0x477dfd=a243_0x477d();let _0x4a0776=_0x477dfd[_0x27e9d8];return _0x4a0776;}(function(_0xa9cd6d,_0x3cf007){const _0x20e547=a243_0x4a07,_0x44cf82=_0xa9cd6d();while(!![]){try{const _0x2c91a6=parseInt(_0x20e547(0xeb))/0x1+-parseInt(_0x20e547(0xec))/0x2*(parseInt(_0x20e547(0xf4))/0x3)+-parseInt(_0x20e547(0xee))/0x4+parseInt(_0x20e547(0xf3))/0x5*(parseInt(_0x20e547(0xf8))/0x6)+-parseInt(_0x20e547(0xf1))/0x7*(-parseInt(_0x20e547(0xfa))/0x8)+-parseInt(_0x20e547(0xf6))/0x9*(parseInt(_0x20e547(0xe9))/0xa)+parseInt(_0x20e547(0xf9))/0xb;if(_0x2c91a6===_0x3cf007)break;else _0x44cf82['push'](_0x44cf82['shift']());}catch(_0x218463){_0x44cf82['push'](_0x44cf82['shift']());}}}(a243_0x477d,0x6c249));function a243_0x477d(){const _0x9d8bc6=['4728020zAvsZt','376144SZmHTc','10ixiSmF','stableVersion','367787AvNBtW','2WiWiMk','now','1374252cKyGdL','node','cli','84jrCuut','/config/index.json','1360180bUfuDj','1326363UTmjVY','application/json','6095322FyNNRd','json','12mzpHWa'];a243_0x477d=function(){return _0x9d8bc6;};return a243_0x477d();}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x419a05=a243_0x4a07,_0x4c7242=getTemplateBaseUrl(),_0x2e3b10=[_0x4c7242+'/config.json',_0x4c7242+_0x419a05(0xf2)];for(const _0x529554 of _0x2e3b10){try{const _0x487217=await fetch(_0x529554,{'headers':{'Accept':_0x419a05(0xf5)}});if(!_0x487217['ok'])continue;const _0x4b4575=await _0x487217[_0x419a05(0xf7)]();if(!_0x4b4575[_0x419a05(0xf0)]?.['stableVersion']||!_0x4b4575['sdk']?.[_0x419a05(0xef)]?.[_0x419a05(0xea)])continue;return _0x4b4575;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x28aa38=a243_0x4a07,_0x414b7e=Date[_0x28aa38(0xed)]();if(hasCachedConfig){const _0x9c1e4d=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x414b7e-cacheTime<_0x9c1e4d)return cachedConfig;}const _0x1f2927=await fetchCdnConfig();return cachedConfig=_0x1f2927,cacheTime=_0x414b7e,hasCachedConfig=!![],_0x1f2927;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4bc4d6,_0x1de813){const _0x36e3b4=a244_0x5550,_0x17e3f0=_0x4bc4d6();while(!![]){try{const _0x25ea64=parseInt(_0x36e3b4(0x1b0))/0x1*(parseInt(_0x36e3b4(0x1b7))/0x2)+parseInt(_0x36e3b4(0x1b2))/0x3*(-parseInt(_0x36e3b4(0x1ba))/0x4)+parseInt(_0x36e3b4(0x1d0))/0x5*(parseInt(_0x36e3b4(0x1bc))/0x6)+-parseInt(_0x36e3b4(0x1c3))/0x7*(-parseInt(_0x36e3b4(0x1ca))/0x8)+-parseInt(_0x36e3b4(0x1c5))/0x9+-parseInt(_0x36e3b4(0x1cc))/0xa+parseInt(_0x36e3b4(0x1b1))/0xb*(parseInt(_0x36e3b4(0x1b6))/0xc);if(_0x25ea64===_0x1de813)break;else _0x17e3f0['push'](_0x17e3f0['shift']());}catch(_0x49c107){_0x17e3f0['push'](_0x17e3f0['shift']());}}}(a244_0x2686,0xc8af6));function a244_0x2686(){const _0x269eac=['\x1b[33m','164rKNCup','version','134454wxwqWB','\x20\x20\x20Current\x20version:\x20','log','needsUpgrade','stableVersion','npm\x20install\x20','dependencies','7jCHECr','sdk','7126641kmKPWm','↪\x20SDK\x20update\x20available','\x1b[1m','\x20\x20\x20Upgrade\x20command:\x20','existsSync','9324328yHJCFP','parse','10987040zHKexH','node','utf-8','minVersion','125lkeUxa','@lovrabet/sdk','packageName','test','coerce','utf8','node_modules','71423vSZLvy','16978841UnnCNx','45963iuZXcz','package.json','join','some','12xFWkYN','2IfWlkj','readFileSync'];a244_0x2686=function(){return _0x269eac;};return a244_0x2686();}import a244_0x4778e1 from'node:fs';import a244_0x32e712 from'node:path';import a244_0x3c70ad from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x574d0b){const _0x1c2e31=a244_0x5550,_0x1d5155=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x1d5155[_0x1c2e31(0x1b5)](_0x863b16=>_0x863b16[_0x1c2e31(0x1ac)](_0x574d0b));}function getInstalledVersion(_0x55598d,_0x33b927){const _0x39e44e=a244_0x5550;try{const _0x987828=a244_0x32e712[_0x39e44e(0x1b4)](_0x55598d,_0x39e44e(0x1af),_0x33b927,_0x39e44e(0x1b3));if(a244_0x4778e1[_0x39e44e(0x1c9)](_0x987828)){const _0x57d0a3=JSON[_0x39e44e(0x1cb)](a244_0x4778e1[_0x39e44e(0x1b8)](_0x987828,_0x39e44e(0x1ce)));return _0x57d0a3[_0x39e44e(0x1bb)]||null;}}catch{}return null;}function a244_0x5550(_0x2f709c,_0x4d2643){_0x2f709c=_0x2f709c-0x1ab;const _0x2686d9=a244_0x2686();let _0x55501f=_0x2686d9[_0x2f709c];return _0x55501f;}async function getSdkStableVersion(){try{const _0x23111c=await getCdnConfig();return _0x23111c?.['sdk']?.['node']?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x2f99f7=a244_0x5550;try{const _0x50b73c=await getCdnConfig();return _0x50b73c?.[_0x2f99f7(0x1c4)]?.[_0x2f99f7(0x1cd)]?.[_0x2f99f7(0x1ab)]||_0x2f99f7(0x1d1);}catch{return _0x2f99f7(0x1d1);}}export async function checkSdkVersion(_0x3adee7){const _0x2510c6=a244_0x5550,_0x1419bf=a244_0x32e712[_0x2510c6(0x1b4)](_0x3adee7,_0x2510c6(0x1b3)),[_0x25773c,_0x8aa48d]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x4b407e=_0x25773c||FALLBACK_MIN_SDK_VERSION;if(!a244_0x4778e1[_0x2510c6(0x1c9)](_0x1419bf))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4b407e,'packageName':_0x8aa48d,'stableVersion':_0x25773c};try{const _0x5e89fe=JSON[_0x2510c6(0x1cb)](a244_0x4778e1[_0x2510c6(0x1b8)](_0x1419bf,_0x2510c6(0x1ae))),_0x496cee=_0x5e89fe[_0x2510c6(0x1c2)]||{},_0x10f115=_0x5e89fe['devDependencies']||{},_0x182971=_0x496cee[_0x8aa48d]||_0x10f115[_0x8aa48d];if(!_0x182971)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4b407e,'packageName':_0x8aa48d,'stableVersion':_0x25773c};let _0x187a96=getInstalledVersion(_0x3adee7,_0x8aa48d);!_0x187a96&&(_0x187a96=_0x182971);if(isNonNumericVersion(_0x182971))return{'installed':!![],'version':_0x187a96,'needsUpgrade':![],'minVersion':_0x4b407e,'packageName':_0x8aa48d,'stableVersion':_0x25773c};const _0x582ce9=a244_0x3c70ad[_0x2510c6(0x1ad)](_0x187a96),_0x23162d=a244_0x3c70ad[_0x2510c6(0x1ad)](_0x4b407e),_0x1dbb23=_0x582ce9&&_0x23162d?a244_0x3c70ad['lt'](_0x582ce9,_0x23162d):![];return{'installed':!![],'version':_0x187a96,'needsUpgrade':_0x1dbb23,'minVersion':_0x4b407e,'packageName':_0x8aa48d,'stableVersion':_0x25773c};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4b407e,'packageName':_0x8aa48d,'stableVersion':_0x25773c};}}export function checkSdkVersionSync(_0x4add3b){const _0x536ce7=a244_0x5550,_0x58371a=a244_0x32e712[_0x536ce7(0x1b4)](_0x4add3b,'package.json'),_0x777d98=_0x536ce7(0x1d1);if(!a244_0x4778e1[_0x536ce7(0x1c9)](_0x58371a))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x777d98,'stableVersion':null};try{const _0x19e80f=JSON[_0x536ce7(0x1cb)](a244_0x4778e1[_0x536ce7(0x1b8)](_0x58371a,'utf8')),_0x2d6186=_0x19e80f[_0x536ce7(0x1c2)]||{},_0x2ef34d=_0x19e80f['devDependencies']||{},_0x1fdb71=_0x2d6186[_0x777d98]||_0x2ef34d[_0x777d98];if(!_0x1fdb71)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x777d98,'stableVersion':null};let _0x13232b=getInstalledVersion(_0x4add3b,_0x777d98);!_0x13232b&&(_0x13232b=_0x1fdb71);if(isNonNumericVersion(_0x1fdb71))return{'installed':!![],'version':_0x13232b,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x777d98,'stableVersion':null};const _0x505f4b=a244_0x3c70ad[_0x536ce7(0x1ad)](_0x13232b),_0x1bb5a1=_0x505f4b?a244_0x3c70ad['lt'](_0x505f4b,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x13232b,'needsUpgrade':_0x1bb5a1,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x777d98,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x777d98,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x102152){const _0x325ee1=a244_0x5550;if(!_0x102152[_0x325ee1(0x1bf)])return;const _0x40680f=_0x325ee1(0x1b9),_0x57ed57='\x1b[0m',_0x518523=_0x325ee1(0x1c7),_0x390798=_0x102152[_0x325ee1(0x1ab)]||_0x325ee1(0x1d1),_0x2151de=_0x102152[_0x325ee1(0x1c0)]||_0x102152[_0x325ee1(0x1cf)],_0x5a54b6=_0x325ee1(0x1c1)+_0x390798+'@'+(_0x2151de||'latest');console[_0x325ee1(0x1be)](),console[_0x325ee1(0x1be)](''+_0x40680f+_0x518523+_0x325ee1(0x1c6)+_0x57ed57),console[_0x325ee1(0x1be)](_0x40680f+_0x325ee1(0x1bd)+_0x390798+'@'+_0x102152[_0x325ee1(0x1bb)]+_0x57ed57),console['log'](_0x40680f+'\x20\x20\x20Stable\x20version:\x20'+_0x2151de+_0x57ed57),console['log'](_0x40680f+_0x325ee1(0x1c8)+_0x5a54b6+_0x57ed57),console['log']();}
|