@lovrabet/rabetbase-cli 2.3.13 → 2.3.14-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/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/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/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/ocr/index.js +1 -0
- 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 -0
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a222_0x24ee(_0x540309,_0x1fbc28){_0x540309=_0x540309-0x1e3;var _0x456231=a222_0x4562();var _0x24ee6a=_0x456231[_0x540309];return _0x24ee6a;}(function(_0x58dc0a,_0x39ac63){var _0x19e495=a222_0x24ee,_0x48fb69=_0x58dc0a();while(!![]){try{var _0x131d0a=-parseInt(_0x19e495(0x1ee))/0x1+parseInt(_0x19e495(0x1e6))/0x2+parseInt(_0x19e495(0x1e7))/0x3*(parseInt(_0x19e495(0x1f2))/0x4)+parseInt(_0x19e495(0x1e3))/0x5*(-parseInt(_0x19e495(0x1e9))/0x6)+parseInt(_0x19e495(0x1f0))/0x7+parseInt(_0x19e495(0x1ef))/0x8*(parseInt(_0x19e495(0x1ed))/0x9)+-parseInt(_0x19e495(0x1f3))/0xa*(parseInt(_0x19e495(0x1e5))/0xb);if(_0x131d0a===_0x39ac63)break;else _0x48fb69['push'](_0x48fb69['shift']());}catch(_0x7aac29){_0x48fb69['push'](_0x48fb69['shift']());}}}(a222_0x4562,0x40bb1));import{resolveOutputConfig}from'@lovrabet/cli-framework';export function usesStructuredErrorOutput(_0x3db977){var _0x47351e=a222_0x24ee;return _0x3db977?.[_0x47351e(0x1ec)]===!![];}export function resolveErrorOutputFormat(_0x4c0fab){var _0x1416a0=a222_0x24ee;if(!_0x4c0fab[_0x1416a0(0x1eb)])return _0x4c0fab[_0x1416a0(0x1e4)]??_0x1416a0(0x1ea);return resolveOutputConfig({'flags':_0x4c0fab[_0x1416a0(0x1f1)]??{},'def':_0x4c0fab[_0x1416a0(0x1eb)],'configDefault':_0x4c0fab[_0x1416a0(0x1e4)]})[_0x1416a0(0x1e8)];}function a222_0x4562(){var _0x57157a=['3199021VPWnbE','flags','4732gYvuOX','60bxrKOC','1202155oremah','defaultFormat','1340306Vcbwrw','628012suXymJ','795zhGnUs','format','6YnEScJ','compress','def','structuredErrors','219051VIzdAs','139928njrVjx','96ODoAbQ'];a222_0x4562=function(){return _0x57157a;};return a222_0x4562();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a223_0x2b13ab=a223_0x1e1f;(function(_0xcbdd59,_0x10e68b){const _0x590b50=a223_0x1e1f,_0x189063=_0xcbdd59();while(!![]){try{const _0x39ff46=-parseInt(_0x590b50(0x197))/0x1*(parseInt(_0x590b50(0x191))/0x2)+-parseInt(_0x590b50(0x193))/0x3+-parseInt(_0x590b50(0x19d))/0x4*(-parseInt(_0x590b50(0x1a0))/0x5)+parseInt(_0x590b50(0x19b))/0x6*(parseInt(_0x590b50(0x1a1))/0x7)+parseInt(_0x590b50(0x190))/0x8*(parseInt(_0x590b50(0x198))/0x9)+parseInt(_0x590b50(0x19c))/0xa*(parseInt(_0x590b50(0x195))/0xb)+parseInt(_0x590b50(0x19a))/0xc*(-parseInt(_0x590b50(0x194))/0xd);if(_0x39ff46===_0x10e68b)break;else _0x189063['push'](_0x189063['shift']());}catch(_0x35e2d8){_0x189063['push'](_0x189063['shift']());}}}(a223_0x588a,0x90ffd));const EXPLICIT_YES_COMMANDS=new Set(['menu\x20external-link-update','menu\x20delete',a223_0x2b13ab(0x196),a223_0x2b13ab(0x19e),'menu\x20move','menu\x20regroup-start']);export const EXPLICIT_YES_FLAG_DESCRIPTION=a223_0x2b13ab(0x18f);function a223_0x1e1f(_0x1a9bb2,_0x4b8436){_0x1a9bb2=_0x1a9bb2-0x18f;const _0x588a83=a223_0x588a();let _0x1e1f3e=_0x588a83[_0x1a9bb2];return _0x1e1f3e;}export function requiresExplicitYes(_0x1fc4f7){const _0x539380=a223_0x2b13ab;return EXPLICIT_YES_COMMANDS[_0x539380(0x192)](_0x1fc4f7[_0x539380(0x199)]+'\x20'+_0x1fc4f7[_0x539380(0x19f)]);}function a223_0x588a(){const _0x590b4c=['has','2920617tLzVmf','13734643FLtGvi','3063412tWRaaD','menu\x20group-create','40096WipeFA','21528inMlTj','service','12gZzfgv','72UtUTYk','40YHBWNt','4413868oSGsFH','menu\x20group-update','command','5HNqTYW','204407BCanIc','Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan','3272aykrjV','46oNWiAj'];a223_0x588a=function(){return _0x590b4c;};return a223_0x588a();}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a224_0x591b(_0x1d6154,_0xf9d1ef){_0x1d6154=_0x1d6154-0x75;const _0x3f5469=a224_0x3f54();let _0x591b5e=_0x3f5469[_0x1d6154];return _0x591b5e;}const a224_0x16ee41=a224_0x591b;function a224_0x3f54(){const _0x28c011=['831740flUyNe','375714tiSjia','1108210tFIVaN','45aiPYca','12XtftnF','20218055LGMhEX','6402PEcChh','12chfnYF','3BZTAuN','623KQqIio','48688aCZegk','812390WCBXir','validateFlags'];a224_0x3f54=function(){return _0x28c011;};return a224_0x3f54();}(function(_0x117d86,_0xcc4f0c){const _0x318b20=a224_0x591b,_0x1593f7=_0x117d86();while(!![]){try{const _0x3d95eb=-parseInt(_0x318b20(0x80))/0x1+parseInt(_0x318b20(0x78))/0x2*(parseInt(_0x318b20(0x7a))/0x3)+parseInt(_0x318b20(0x7f))/0x4+-parseInt(_0x318b20(0x81))/0x5*(parseInt(_0x318b20(0x79))/0x6)+parseInt(_0x318b20(0x7b))/0x7*(-parseInt(_0x318b20(0x7c))/0x8)+-parseInt(_0x318b20(0x75))/0x9*(parseInt(_0x318b20(0x7d))/0xa)+-parseInt(_0x318b20(0x77))/0xb*(-parseInt(_0x318b20(0x76))/0xc);if(_0x3d95eb===_0xcc4f0c)break;else _0x1593f7['push'](_0x1593f7['shift']());}catch(_0x365f0b){_0x1593f7['push'](_0x1593f7['shift']());}}}(a224_0x3f54,0x44eb6));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a224_0x16ee41(0x7e)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a225_0x1767ab=a225_0x2d1e;(function(_0x261235,_0x6aecad){const _0xf7a8b1=a225_0x2d1e,_0x55f470=_0x261235();while(!![]){try{const _0x3c576d=parseInt(_0xf7a8b1(0x18c))/0x1+parseInt(_0xf7a8b1(0x182))/0x2*(parseInt(_0xf7a8b1(0x180))/0x3)+parseInt(_0xf7a8b1(0x18a))/0x4+-parseInt(_0xf7a8b1(0x18f))/0x5+-parseInt(_0xf7a8b1(0x189))/0x6*(parseInt(_0xf7a8b1(0x18e))/0x7)+-parseInt(_0xf7a8b1(0x18d))/0x8*(parseInt(_0xf7a8b1(0x186))/0x9)+parseInt(_0xf7a8b1(0x184))/0xa*(parseInt(_0xf7a8b1(0x188))/0xb);if(_0x3c576d===_0x6aecad)break;else _0x55f470['push'](_0x55f470['shift']());}catch(_0x20f376){_0x55f470['push'](_0x55f470['shift']());}}}(a225_0x3ba1,0x5d54a));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';function a225_0x3ba1(){const _0x26263a=['Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','14323030WUeXiu','\x20[args]\x20[flags]','9iFfWIq','Requires\x20appcode\x20(set\x20via\x20`','11eNhkWn','255972XYVUQb','75380cgPIpB','replace','211865vrYocF','5199896BgBovD','98IqCFoH','1757750sSsyvP','generateServiceHelp','\x20workspace\x20init`\x20or\x20--appcode).','2658jupVYi','generateCommandHelp','718fkacBQ'];a225_0x3ba1=function(){return _0x26263a;};return a225_0x3ba1();}const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x49422d=>serviceGroups['get'](_0x49422d),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a225_0x1767ab(0x187)+CLI_BIN_NAME+a225_0x1767ab(0x17f),'serviceUsageSuffix':a225_0x1767ab(0x185)});function a225_0x2d1e(_0x5cbe35,_0x173f24){_0x5cbe35=_0x5cbe35-0x17f;const _0x3ba1c0=a225_0x3ba1();let _0x2d1e46=_0x3ba1c0[_0x5cbe35];return _0x2d1e46;}export function generateCommandHelp(_0x617a57){const _0x26631c=a225_0x1767ab,_0x2ee10b=generators[_0x26631c(0x181)](_0x617a57);if(!requiresExplicitYes(_0x617a57))return _0x2ee10b;return _0x2ee10b[_0x26631c(0x18b)](_0x26631c(0x183),'Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.');}export const generateServiceHelp=generators[a225_0x1767ab(0x190)];export const generateFullHelp=generators['generateFullHelp'];
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x584830,_0xbdfdcf){var _0x499580=a226_0xa90b,_0x7e996b=_0x584830();while(!![]){try{var _0x937960=parseInt(_0x499580(0x14c))/0x1*(-parseInt(_0x499580(0x145))/0x2)+parseInt(_0x499580(0x147))/0x3+-parseInt(_0x499580(0x14b))/0x4+parseInt(_0x499580(0x144))/0x5+-parseInt(_0x499580(0x14a))/0x6+parseInt(_0x499580(0x146))/0x7+parseInt(_0x499580(0x148))/0x8*(parseInt(_0x499580(0x149))/0x9);if(_0x937960===_0xbdfdcf)break;else _0x7e996b['push'](_0x7e996b['shift']());}catch(_0xb94333){_0x7e996b['push'](_0x7e996b['shift']());}}}(a226_0x3b9a,0x33fd8));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a226_0x3b9a(){var _0x4aaeac=['3087xfsdcu','629268HrVEpt','1490588oEjRSG','38149SHTrUn','972725nVpjIE','2pDtYau','779541cjyYCh','1193037NdeZdL','584IHLWrd'];a226_0x3b9a=function(){return _0x4aaeac;};return a226_0x3b9a();}function a226_0xa90b(_0xff3cbc,_0x5d472a){_0xff3cbc=_0xff3cbc-0x144;var _0x3b9aa5=a226_0x3b9a();var _0xa90b06=_0x3b9aa5[_0xff3cbc];return _0xa90b06;}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(_0x133a7b,_0x11877c){const _0x210506=a227_0x4e17,_0x33d76b=_0x133a7b();while(!![]){try{const _0x4cce7a=parseInt(_0x210506(0x11f))/0x1+parseInt(_0x210506(0x122))/0x2*(parseInt(_0x210506(0x10c))/0x3)+parseInt(_0x210506(0x115))/0x4+parseInt(_0x210506(0x124))/0x5*(-parseInt(_0x210506(0x11d))/0x6)+-parseInt(_0x210506(0x111))/0x7+-parseInt(_0x210506(0x10f))/0x8+-parseInt(_0x210506(0x114))/0x9*(-parseInt(_0x210506(0x121))/0xa);if(_0x4cce7a===_0x11877c)break;else _0x33d76b['push'](_0x33d76b['shift']());}catch(_0x2adb52){_0x33d76b['push'](_0x33d76b['shift']());}}}(a227_0x106c,0x744dc));function a227_0x106c(){const _0x157824=['validation','140949FGvFTM','1072960dcINfb','error','jqFilter','url','write','jq:\x20','trim','format','18MvkFSu','message','505761UrdeTE','data','470HoJcGN','8wxmHKa','json','37090zGTmGW','_notice','549717DuHVVg','stdout','hint','7252424pKZZKy','stringify','5864859neJWBl','pretty'];a227_0x106c=function(){return _0x157824;};return a227_0x106c();}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a227_0x4e17(_0x41d61b,_0x20b7de){_0x41d61b=_0x41d61b-0x10b;const _0x106ccd=a227_0x106c();let _0x4e1719=_0x106ccd[_0x41d61b];return _0x4e1719;}export function formatOutput(_0x35d03a,_0x2e545b){const _0x12b376=a227_0x4e17,_0x17a2a7=_0x35d03a[_0x12b376(0x10b)],{_notice:_0x19d8e3,..._0x48f54c}=_0x35d03a;void _0x19d8e3,baseFormatOutput(_0x48f54c,_0x2e545b),_0x2e545b['format']===_0x12b376(0x112)&&printPrettyNotice(_0x17a2a7);}export function formatCliError(_0x27a83c,_0x4b77e4){const _0x20c498=a227_0x4e17;if(_0x4b77e4['format']==='pretty')return![];const _0x4613b6=_0x27a83c[_0x20c498(0x120)],_0x373fca={'ok':![],'command':_0x4b77e4['command'],'risk':_0x4b77e4['risk'],'data':_0x4613b6??null,'error':{'code':_0x27a83c['code'],'message':_0x27a83c['message'],..._0x27a83c[_0x20c498(0x10e)]?{'hint':_0x27a83c['hint']}:{}}},_0x209549=_0x4b77e4['format']===_0x20c498(0x123)?JSON[_0x20c498(0x110)](_0x373fca,null,0x2):JSON[_0x20c498(0x110)](_0x373fca);let _0x23487a=_0x209549;if(_0x4b77e4[_0x20c498(0x117)]?.[_0x20c498(0x11b)]())try{_0x23487a=applyJqFilter(_0x209549,_0x4b77e4[_0x20c498(0x117)]);}catch(_0x268640){const _0x551929=_0x268640 instanceof CliError?_0x268640:CliErrors[_0x20c498(0x113)](_0x20c498(0x11a)+(_0x268640 instanceof Error?_0x268640[_0x20c498(0x11e)]:String(_0x268640))),_0x56a702={..._0x373fca,'error':{'code':_0x551929['code'],'message':_0x551929['message'],..._0x551929['hint']?{'hint':_0x551929[_0x20c498(0x10e)]}:{},'cause':_0x373fca['error']}};_0x23487a=_0x4b77e4[_0x20c498(0x11c)]==='json'?JSON[_0x20c498(0x110)](_0x56a702,null,0x2):JSON[_0x20c498(0x110)](_0x56a702);}return process[_0x20c498(0x10d)][_0x20c498(0x119)](_0x23487a['endsWith']('\x0a')?_0x23487a:_0x23487a+'\x0a'),!![];}function printPrettyNotice(_0x53280c){const _0x2b8cda=a227_0x4e17;if(!_0x53280c?.['update'])return;console[_0x2b8cda(0x116)](_0x53280c['update'][_0x2b8cda(0x11e)]+'\x20('+_0x53280c['update'][_0x2b8cda(0x118)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a228_0x1675(_0x3986b4,_0x28231c){_0x3986b4=_0x3986b4-0x89;var _0x10c6ff=a228_0x10c6();var _0x16759b=_0x10c6ff[_0x3986b4];return _0x16759b;}(function(_0x460cbd,_0xa111ba){var _0x213cdc=a228_0x1675,_0x2f9fe2=_0x460cbd();while(!![]){try{var _0x3323d4=-parseInt(_0x213cdc(0x8b))/0x1+parseInt(_0x213cdc(0x8a))/0x2*(-parseInt(_0x213cdc(0x8f))/0x3)+-parseInt(_0x213cdc(0x8e))/0x4*(-parseInt(_0x213cdc(0x93))/0x5)+-parseInt(_0x213cdc(0x8d))/0x6+parseInt(_0x213cdc(0x90))/0x7*(parseInt(_0x213cdc(0x92))/0x8)+-parseInt(_0x213cdc(0x89))/0x9+-parseInt(_0x213cdc(0x8c))/0xa*(-parseInt(_0x213cdc(0x91))/0xb);if(_0x3323d4===_0xa111ba)break;else _0x2f9fe2['push'](_0x2f9fe2['shift']());}catch(_0x304f34){_0x2f9fe2['push'](_0x2f9fe2['shift']());}}}(a228_0x10c6,0x1891e));function a228_0x10c6(){var _0x3b93cc=['173727hEZNTB','58690jEAoCz','619506pPoJXO','34388iFGOPF','393765vCkpzK','836276aisDVW','704YRkzpV','8vxBggC','20WLwLdx','185409IWsyxS','2FkhVoC'];a228_0x10c6=function(){return _0x3b93cc;};return a228_0x10c6();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x176c3b,_0x6029db){const _0xd449a5=a229_0x3c40,_0x283603=_0x176c3b();while(!![]){try{const _0x3da1cf=parseInt(_0xd449a5(0x1d0))/0x1+-parseInt(_0xd449a5(0x1d1))/0x2*(parseInt(_0xd449a5(0x1d5))/0x3)+-parseInt(_0xd449a5(0x1cc))/0x4*(-parseInt(_0xd449a5(0x1d2))/0x5)+parseInt(_0xd449a5(0x1c5))/0x6*(parseInt(_0xd449a5(0x1d7))/0x7)+-parseInt(_0xd449a5(0x1c8))/0x8*(-parseInt(_0xd449a5(0x1d8))/0x9)+-parseInt(_0xd449a5(0x1c4))/0xa+-parseInt(_0xd449a5(0x1c3))/0xb;if(_0x3da1cf===_0x6029db)break;else _0x283603['push'](_0x283603['shift']());}catch(_0x449c6d){_0x283603['push'](_0x283603['shift']());}}}(a229_0x557d,0x30f45));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a229_0x557d(){const _0x723ec3=['Unknown\x20alias\x20\x22','3azRRqU','string','564494sJRmvE','252189SEXuGo','validation','.\x20Run\x20`','code','join','4302584UhvYQO','672960yUcUYy','6sZoVhJ','\x22.\x20','some','32mKHUOy','`\x20requires\x20either\x20--code\x20or\x20--alias.','alias','type','42936BYRrJz','flags','name','Available\x20aliases:\x20','365136Uxuuhl','162766sLuKiC','85rdFfhp','\x20api\x20pull`\x20first.'];a229_0x557d=function(){return _0x723ec3;};return a229_0x557d();}import{CLI_BIN_NAME}from'../constant/cli.js';function a229_0x3c40(_0x21bdd5,_0x2d4514){_0x21bdd5=_0x21bdd5-0x1bf;const _0x557dfa=a229_0x557d();let _0x3c4098=_0x557dfa[_0x21bdd5];return _0x3c4098;}export function resolveAliasToCode(_0x147224,_0x53eeaf,_0x54af27,_0x176f34){const _0x3d829e=a229_0x3c40,_0x80f9bb=_0x147224[_0x3d829e(0x1cd)][_0x3d829e(0x1c7)](_0xd09c30=>_0xd09c30['name']===_0x3d829e(0x1c1)&&_0xd09c30[_0x3d829e(0x1cb)]==='string'),_0x197070=_0x147224[_0x3d829e(0x1cd)][_0x3d829e(0x1c7)](_0x52da04=>_0x52da04[_0x3d829e(0x1ce)]===_0x3d829e(0x1ca)&&_0x52da04['type']===_0x3d829e(0x1d6));if(!_0x80f9bb||!_0x197070)return;const _0x42879d=_0x53eeaf['code']?String(_0x53eeaf[_0x3d829e(0x1c1)]):'',_0x5be91c=_0x53eeaf[_0x3d829e(0x1ca)]?String(_0x53eeaf[_0x3d829e(0x1ca)]):'';if(!_0x42879d&&!_0x5be91c)throw CliErrors['validation']('`'+_0x176f34+_0x3d829e(0x1c9));if(_0x5be91c&&!_0x42879d){const _0x220374=resolveAlias(_0x54af27,_0x5be91c);if(!_0x220374){const _0x491c82=listAliases(_0x54af27)['map'](_0x368fc2=>_0x368fc2['alias']),_0x53b4f5=_0x491c82['length']?_0x3d829e(0x1cf)+_0x491c82[_0x3d829e(0x1c2)](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x54af27+_0x3d829e(0x1c0)+CLI_BIN_NAME+_0x3d829e(0x1d3);throw CliErrors[_0x3d829e(0x1bf)](_0x3d829e(0x1d4)+_0x5be91c+_0x3d829e(0x1c6)+_0x53b4f5);}_0x53eeaf[_0x3d829e(0x1c1)]=_0x220374;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a230_0x5a5a66=a230_0x2cb7;(function(_0x34334e,_0x4103c2){const _0x23474c=a230_0x2cb7,_0x9dbd99=_0x34334e();while(!![]){try{const _0x140598=-parseInt(_0x23474c(0x235))/0x1*(-parseInt(_0x23474c(0x225))/0x2)+-parseInt(_0x23474c(0x207))/0x3+parseInt(_0x23474c(0x1f2))/0x4*(parseInt(_0x23474c(0x22f))/0x5)+parseInt(_0x23474c(0x210))/0x6+parseInt(_0x23474c(0x20a))/0x7+parseInt(_0x23474c(0x221))/0x8*(-parseInt(_0x23474c(0x201))/0x9)+-parseInt(_0x23474c(0x230))/0xa;if(_0x140598===_0x4103c2)break;else _0x9dbd99['push'](_0x9dbd99['shift']());}catch(_0x3575a9){_0x9dbd99['push'](_0x9dbd99['shift']());}}}(a230_0x1d17,0xdda20));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 a230_0x30046a}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';function a230_0x1d17(){const _0x24b3c5=['name','filter','RABETBASE_APPCODE','resolveCookie','includes','service','apps','Set\x20appcode\x20via\x20`','appCode','rejectedFlags','resolve','none','hint','\x20\x20\x20Continue?\x20[y/N]\x20','apiDir','requiresAppCode','6184QVEpYC','string','doctor','cancelled','276406cBmhVV','verbose','configMissing','LOVRABET_APPCODE','pretty','replace','schema','execute','hasFormat','command','85eiCIut','20189400GhNMXm','catch','object','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','cookie','11vSxmIh','isNonInteractive','rawFlags','250468nQbWUF','defaultVerbose','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','riskLevel','Current\x20resolved\x20appcode\x20is\x20\x22','_notice','resolveAppCode','nonInteractive','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','validation','trim','required','High-risk\x20operation\x20`','defaultApp','explicitAppName','14031mLYNHR','map','appcode','../core/api-client.js','message','resolveApiDomain','3294567UGtKrx','value','authRequired','12661264QhTFSK','format','has','update','toUpperCase','meowKey','5019420wdKzxU'];a230_0x1d17=function(){return _0x24b3c5;};return a230_0x1d17();}import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0xa97267){const _0x3cb067=a230_0x2cb7;return typeof _0xa97267===_0x3cb067(0x222)&&_0xa97267[_0x3cb067(0x1fc)]()?_0xa97267[_0x3cb067(0x1fc)]():undefined;}function resolveEnvAppCode(){const _0x27edaf=a230_0x2cb7,_0x455c50=stringFlag(process.env.RABETBASE_APPCODE);if(_0x455c50)return{'name':_0x27edaf(0x213),'value':_0x455c50};const _0x377132=stringFlag(process.env.LOVRABET_APPCODE);if(_0x377132)return{'name':_0x27edaf(0x228),'value':_0x377132};return undefined;}function hasExplicitAppCode(_0x554002,_0x12ab27){const _0x56fb5b=a230_0x2cb7;return!!(stringFlag(_0x554002['appcode'])||stringFlag(_0x12ab27[_0x56fb5b(0x203)]));}function assertEnvAppCodeNotIgnored(_0x34708f,_0x43de14,_0x1c63b){const _0x530d96=a230_0x2cb7;if(!_0x43de14||_0x1c63b||_0x34708f===_0x43de14[_0x530d96(0x208)])return;const _0x3d30ac=_0x34708f?_0x530d96(0x1f6)+_0x34708f+'\x22.':_0x530d96(0x1f4);throw CliErrors[_0x530d96(0x1fb)](_0x43de14[_0x530d96(0x211)]+'='+_0x43de14[_0x530d96(0x208)]+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x3d30ac+'\x20'+(_0x530d96(0x1fa)+_0x43de14[_0x530d96(0x211)]+'\x22.'));}export function createPipelineEnv(_0x4fe4c2,_0x23f12e,_0x4181b5=[]){const _0x137c44=a230_0x2cb7;return{'rawFlags':_0x23f12e,'args':_0x4181b5,'resolveAppCode':()=>_0x4fe4c2[_0x137c44(0x219)],'resolveCookie':()=>_0x4fe4c2[_0x137c44(0x234)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a230_0x30046a(_0x23f12e),'defaultFormat':_0x4fe4c2[_0x137c44(0x20b)],'defaultPageSize':_0x4fe4c2['pageSize'],'defaultVerbose':_0x4fe4c2[_0x137c44(0x226)],'apiDir':_0x4fe4c2[_0x137c44(0x21f)],'riskLevel':_0x4fe4c2[_0x137c44(0x1f5)],'selectedAppName':_0x4fe4c2[_0x137c44(0x200)],'mergedCli':{'defaultApp':_0x4fe4c2[_0x137c44(0x1ff)],'currentApp':_0x4fe4c2['currentApp'],'appCode':_0x4fe4c2[_0x137c44(0x219)],'apps':_0x4fe4c2[_0x137c44(0x217)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a230_0x5a5a66(0x212)](_0x1c31f5=>PIPELINE_FLAG_NAMES[a230_0x5a5a66(0x20c)](_0x1c31f5[a230_0x5a5a66(0x211)]))[a230_0x5a5a66(0x202)](({name:_0x37a342,type:_0x5ed1e8,description:_0x5ae0d2})=>({'name':_0x37a342,'type':_0x5ed1e8,'description':_0x5ae0d2})),'formatOutput':formatOutput,'getCommandLabel'(_0x33860b){const _0x3cc163=a230_0x5a5a66;return CLI_BIN_NAME+'\x20'+_0x33860b[_0x3cc163(0x216)]+'\x20'+_0x33860b[_0x3cc163(0x22e)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x1718fc){const _0x4df076=a230_0x5a5a66;return CliErrors[_0x4df076(0x1fb)](_0x1718fc);}},async 'prepare'(_0x41ac13,_0x117a57,_0x5e0c5b,_0x135bdf){const _0x5029db=a230_0x5a5a66,_0xa44526=_0x117a57[_0x5029db(0x21f)]||DEFAULT_API_DIR;resolveAliasToCode(_0x41ac13,_0x5e0c5b,_0xa44526,_0x135bdf);const _0x68ce5b=resolveCommandAuthMode(_0x41ac13);let _0x407781='';if(_0x68ce5b!==_0x5029db(0x21c)){_0x407781=_0x117a57[_0x5029db(0x214)]()||'';if(!_0x407781){if(_0x68ce5b===_0x5029db(0x1fd))throw CliErrors[_0x5029db(0x209)]();}else{const {setActiveCookie:_0x3c3815}=await import(_0x5029db(0x204));_0x3c3815(_0x407781);}}const _0x2340c9=_0x117a57[_0x5029db(0x1f8)]()??'';if(_0x41ac13[_0x5029db(0x220)]!==![]){assertEnvAppCodeNotIgnored(_0x2340c9,resolveEnvAppCode(),hasExplicitAppCode(_0x5e0c5b,_0x117a57[_0x5029db(0x237)]));if(!_0x2340c9)throw CliErrors[_0x5029db(0x227)](_0x5029db(0x218)+CLI_BIN_NAME+_0x5029db(0x233));}return{'defaults':{'booleans':{'verbose':_0x117a57[_0x5029db(0x1f3)]},'numbers':{'pagesize':_0x117a57['defaultPageSize']}},'extras':{'appCode':_0x2340c9,'cookie':_0x407781,'apiDomain':_0x117a57[_0x5029db(0x206)](),'apiDir':_0xa44526,'selectedAppName':_0x117a57['selectedAppName'],'mergedCli':_0x117a57['mergedCli']}};},async 'confirmHighRisk'({env:_0x19ae27,commandLabel:_0x36bb52}){const _0x5c470f=a230_0x5a5a66;if(_0x19ae27[_0x5c470f(0x236)])throw CliErrors[_0x5c470f(0x1fb)](_0x5c470f(0x1fe)+_0x36bb52+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x36bb52,_0x5c470f(0x21e)],'createCancelledError':_0x1b37b2=>CliErrors[_0x5c470f(0x224)](_0x1b37b2)});},async 'finalize'(){const _0x4d64b5=a230_0x5a5a66,{clearActiveCookie:_0x119885}=await import(_0x4d64b5(0x204));_0x119885();}};function a230_0x2cb7(_0x53e070,_0x423afb){_0x53e070=_0x53e070-0x1f2;const _0x1d17f1=a230_0x1d17();let _0x2cb779=_0x1d17f1[_0x53e070];return _0x2cb779;}export async function runCommand(_0x533e64,_0x4a4d8c){const _0xddc3d9=a230_0x5a5a66;assertRejectedFlags(_0x533e64,_0x4a4d8c[_0xddc3d9(0x237)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x533e64)?withUpdateNotice(_0x533e64):_0x533e64,_0x4a4d8c,runnerAdapter);}function assertRejectedFlags(_0x36fa33,_0x1e323f){const _0x4beedc=a230_0x5a5a66;for(const _0x532a4f of _0x36fa33[_0x4beedc(0x21a)]??[]){const _0x43c9da=GLOBAL_FLAGS['find'](_0x1c25ad=>_0x1c25ad[_0x4beedc(0x211)]===_0x532a4f[_0x4beedc(0x211)]),_0x39db08=new Set([_0x532a4f[_0x4beedc(0x211)],toCamelCase(_0x532a4f[_0x4beedc(0x211)]),_0x43c9da?.[_0x4beedc(0x20f)]]),_0x4cb336=[..._0x39db08]['some'](_0x313aa5=>{if(!_0x313aa5)return![];const _0x5a9599=_0x1e323f[_0x313aa5];return _0x5a9599!==undefined&&_0x5a9599!==null&&_0x5a9599!==![];});if(_0x4cb336)throw CliErrors['validation'](_0x532a4f[_0x4beedc(0x205)],_0x532a4f[_0x4beedc(0x21d)]);}}function toCamelCase(_0x1b4c67){const _0x5674ae=a230_0x5a5a66;return _0x1b4c67[_0x5674ae(0x22a)](/-([a-z])/g,(_0x3970c4,_0x5b965a)=>_0x5b965a[_0x5674ae(0x20e)]());}function shouldAttachUpdateNotice(_0x3b4d69){const _0x44d501=a230_0x5a5a66;if(_0x3b4d69[_0x44d501(0x22d)]===![])return![];return![_0x44d501(0x20d),_0x44d501(0x22b),_0x44d501(0x223)][_0x44d501(0x215)](_0x3b4d69[_0x44d501(0x216)]);}function withUpdateNotice(_0x54059c){return{..._0x54059c,async 'execute'(_0x3b11b3){const _0x38cee=a230_0x2cb7,_0x413181=shouldResolveUpdateNotice(_0x3b11b3)?resolveLatestUpdateNotice()[_0x38cee(0x231)](()=>null):Promise[_0x38cee(0x21b)](null),_0x48cb44=await _0x54059c[_0x38cee(0x22c)](_0x3b11b3);return attachUpdateNotice(_0x48cb44,await _0x413181);}};}function shouldResolveUpdateNotice(_0xb54dea){const _0x14f5dd=a230_0x5a5a66;return _0xb54dea[_0x14f5dd(0x20b)]===_0x14f5dd(0x229)&&!_0xb54dea[_0x14f5dd(0x1f9)];}function attachUpdateNotice(_0xf099db,_0x1540d6){const _0x137ec6=a230_0x5a5a66;if(!_0x1540d6||!_0xf099db||typeof _0xf099db!==_0x137ec6(0x232))return _0xf099db;const _0x19eae0=_0xf099db,_0x306dbb=typeof _0x19eae0['_notice']===_0x137ec6(0x232)&&_0x19eae0['_notice']!==null?_0x19eae0[_0x137ec6(0x1f7)]:{};return{..._0x19eae0,'_notice':{..._0x306dbb,'update':_0x1540d6}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x51926d,_0x2d37a5){const _0x170594=a231_0x2545,_0x55c67e=_0x51926d();while(!![]){try{const _0xa877b8=-parseInt(_0x170594(0xfd))/0x1+parseInt(_0x170594(0xf7))/0x2+parseInt(_0x170594(0xfa))/0x3+parseInt(_0x170594(0xfc))/0x4*(-parseInt(_0x170594(0xfe))/0x5)+-parseInt(_0x170594(0xf9))/0x6+-parseInt(_0x170594(0xfb))/0x7*(parseInt(_0x170594(0xf6))/0x8)+parseInt(_0x170594(0xf8))/0x9*(parseInt(_0x170594(0xff))/0xa);if(_0xa877b8===_0x2d37a5)break;else _0x55c67e['push'](_0x55c67e['shift']());}catch(_0x145b40){_0x55c67e['push'](_0x55c67e['shift']());}}}(a231_0x5412,0x3d906));function a231_0x2545(_0x57495f,_0xd1e992){_0x57495f=_0x57495f-0xf6;const _0x54122c=a231_0x5412();let _0x25453f=_0x54122c[_0x57495f];return _0x25453f;}import{buildSchemaPayload as a231_0x17f9da}from'@lovrabet/cli-framework';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';function a231_0x5412(){const _0x584469=['1328550mieGTx','7kDfmkM','1068884OQfzGh','162491xiKDAx','5xusRNd','20CHMIAZ','2338536lKGtex','202138SWEHvl','3129723KHVNtR','1591308dfsVqx'];a231_0x5412=function(){return _0x584469;};return a231_0x5412();}export async function buildSchemaPayload(){const {serviceRegistry:_0x34a1f4,findDefinition:_0x53bd2a}=await import('../commands/registry.js');return a231_0x17f9da({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x34a1f4,'buildAllFlags':buildAllFlags,'findDefinition':_0x53bd2a});}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a232_0x3017(){var _0x3a778d=['4632183kwoGYW','8lynqOL','4FXonaq','14890EGcNJr','701547lMHESI','389643zQgUpl','254775QsROby','934182NmyYkH','40214BKHFtL'];a232_0x3017=function(){return _0x3a778d;};return a232_0x3017();}function a232_0x2fb6(_0xdd2152,_0x238592){_0xdd2152=_0xdd2152-0x168;var _0x3017e0=a232_0x3017();var _0x2fb6ed=_0x3017e0[_0xdd2152];return _0x2fb6ed;}(function(_0x96237c,_0x115a2e){var _0x25ed06=a232_0x2fb6,_0x3c72cb=_0x96237c();while(!![]){try{var _0xb8c41=parseInt(_0x25ed06(0x168))/0x1+-parseInt(_0x25ed06(0x16c))/0x2+-parseInt(_0x25ed06(0x16e))/0x3*(parseInt(_0x25ed06(0x16b))/0x4)+-parseInt(_0x25ed06(0x16f))/0x5+-parseInt(_0x25ed06(0x170))/0x6+-parseInt(_0x25ed06(0x16d))/0x7+-parseInt(_0x25ed06(0x16a))/0x8*(-parseInt(_0x25ed06(0x169))/0x9);if(_0xb8c41===_0x115a2e)break;else _0x3c72cb['push'](_0x3c72cb['shift']());}catch(_0xdda8e8){_0x3c72cb['push'](_0x3c72cb['shift']());}}}(a232_0x3017,0x1b06e));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a233_0x42fe(_0xad4da6,_0x5a3c8e){_0xad4da6=_0xad4da6-0xad;const _0x361851=a233_0x3618();let _0x42fe52=_0x361851[_0xad4da6];return _0x42fe52;}const a233_0x2f35d0=a233_0x42fe;(function(_0x59958c,_0x925600){const _0x2a2a33=a233_0x42fe,_0xf7bc20=_0x59958c();while(!![]){try{const _0x11763f=-parseInt(_0x2a2a33(0xad))/0x1+-parseInt(_0x2a2a33(0xb0))/0x2*(parseInt(_0x2a2a33(0xba))/0x3)+parseInt(_0x2a2a33(0xae))/0x4*(parseInt(_0x2a2a33(0xb8))/0x5)+parseInt(_0x2a2a33(0xb7))/0x6+parseInt(_0x2a2a33(0xaf))/0x7+-parseInt(_0x2a2a33(0xb3))/0x8*(-parseInt(_0x2a2a33(0xb5))/0x9)+parseInt(_0x2a2a33(0xb9))/0xa;if(_0x11763f===_0x925600)break;else _0xf7bc20['push'](_0xf7bc20['shift']());}catch(_0x5b762e){_0xf7bc20['push'](_0xf7bc20['shift']());}}}(a233_0x3618,0xcce56));export const VERSION=a233_0x2f35d0(0xb1);export const GIT_TAG=a233_0x2f35d0(0xb6);export const GIT_COMMIT=a233_0x2f35d0(0xb2);export const BUILD_TIME=a233_0x2f35d0(0xb4);function a233_0x3618(){const _0x5f0ca6=['8GrPmNw','2026-08-06T10:44:44.783Z','2494755Xjluya','v2.3.14-beta.1','2824026ZwQROh','13655JgaxQq','4211140mBjwQb','15018ubCPWG','209060tchgpy','968yWaKys','4901456efzzYi','592EncrWe','2.3.14-beta.1','aeaf5b0'];a233_0x3618=function(){return _0x5f0ca6;};return a233_0x3618();}
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x50bb92,_0xe6364d){var _0x40cc94=a234_0x52d4,_0x1d6e7a=_0x50bb92();while(!![]){try{var _0x246cad=parseInt(_0x40cc94(0x1b5))/0x1*(-parseInt(_0x40cc94(0x1bd))/0x2)+-parseInt(_0x40cc94(0x1b3))/0x3+parseInt(_0x40cc94(0x1b8))/0x4+-parseInt(_0x40cc94(0x1bf))/0x5+-parseInt(_0x40cc94(0x1b2))/0x6*(parseInt(_0x40cc94(0x1b4))/0x7)+parseInt(_0x40cc94(0x1b7))/0x8*(-parseInt(_0x40cc94(0x1b0))/0x9)+parseInt(_0x40cc94(0x1b6))/0xa*(parseInt(_0x40cc94(0x1b1))/0xb);if(_0x246cad===_0xe6364d)break;else _0x1d6e7a['push'](_0x1d6e7a['shift']());}catch(_0x5d1e71){_0x1d6e7a['push'](_0x1d6e7a['shift']());}}}(a234_0x45ea,0xacaf9));function a234_0x45ea(){var _0x26dcfe=['153GntAFt','736373dXEMoO','21192bHBkSG','2790861QpJncl','1645xYisca','1wlGTJe','530psOMHL','251096kVPBHp','982832uzDRGd','bold','\x20to\x20view\x20available\x20commands.','green','log','585418MrXrYW','\x20\x20Use\x20','2498855EIiUvZ','\x20--help'];a234_0x45ea=function(){return _0x26dcfe;};return a234_0x45ea();}import a234_0x2ad8d6 from'chalk';function a234_0x52d4(_0x25de12,_0x5962f1){_0x25de12=_0x25de12-0x1b0;var _0x45eac5=a234_0x45ea();var _0x52d47f=_0x45eac5[_0x25de12];return _0x52d47f;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x25f5ca=a234_0x52d4;console[_0x25f5ca(0x1bc)](),console[_0x25f5ca(0x1bc)](a234_0x2ad8d6[_0x25f5ca(0x1bb)][_0x25f5ca(0x1b9)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x25f5ca(0x1bc)](),console['log'](_0x25f5ca(0x1be)+a234_0x2ad8d6[_0x25f5ca(0x1bb)]['bold'](CLI_BIN_NAME+_0x25f5ca(0x1c0))+_0x25f5ca(0x1ba)),console['log']();}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2bde98,_0x39056f){const _0x3e100c=a235_0x3520,_0x33b73b=_0x2bde98();while(!![]){try{const _0xfcccc1=parseInt(_0x3e100c(0x193))/0x1+-parseInt(_0x3e100c(0x198))/0x2*(-parseInt(_0x3e100c(0x195))/0x3)+-parseInt(_0x3e100c(0x19e))/0x4+-parseInt(_0x3e100c(0x1a7))/0x5*(parseInt(_0x3e100c(0x1aa))/0x6)+-parseInt(_0x3e100c(0x190))/0x7+parseInt(_0x3e100c(0x19d))/0x8+parseInt(_0x3e100c(0x18d))/0x9*(parseInt(_0x3e100c(0x1ab))/0xa);if(_0xfcccc1===_0x39056f)break;else _0x33b73b['push'](_0x33b73b['shift']());}catch(_0x568934){_0x33b73b['push'](_0x33b73b['shift']());}}}(a235_0x2ce7,0x6f1a4));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(_0x2dfeb9){const _0x11cc28=a235_0x3520,_0x21dde0=[];for(const [_0x1403e4,_0x4fdbfd]of Object[_0x11cc28(0x199)](_0x2dfeb9)){if(_0x4fdbfd===!![]){const _0x3dc391=_0x1403e4['replace'](/([A-Z])/g,_0x11cc28(0x18a))['toLowerCase']();_0x21dde0[_0x11cc28(0x1a8)](_0x3dc391);}}return _0x21dde0;}export function parseDynamicFlags(){const _0x2c8ac1=a235_0x3520,_0x76c40f=[];for(let _0x20dd14=0x3;_0x20dd14<process[_0x2c8ac1(0x191)][_0x2c8ac1(0x18e)];_0x20dd14++){const _0x5958bd=process[_0x2c8ac1(0x191)][_0x20dd14];if(_0x5958bd&&_0x5958bd['startsWith']('--')){const _0x55a4e0=_0x5958bd[_0x2c8ac1(0x19a)](0x2);_0x55a4e0&&!_0x55a4e0[_0x2c8ac1(0x189)]('=')&&_0x76c40f[_0x2c8ac1(0x1a8)](_0x55a4e0);}}return _0x76c40f;}function a235_0x3520(_0x5129d6,_0x2539d4){_0x5129d6=_0x5129d6-0x188;const _0x2ce7d5=a235_0x2ce7();let _0x35208d=_0x2ce7d5[_0x5129d6];return _0x35208d;}export function getAllProvidedFlags(_0x59042a){const _0x5b31ef=a235_0x3520,_0x24a410=camelCaseFlagsToKebab(_0x59042a),_0x274881=parseDynamicFlags(),_0x1c6477=new Set([..._0x24a410,..._0x274881]);return Array[_0x5b31ef(0x18b)](_0x1c6477);}export function normalizeLegacyBffSaveFlags(_0x4747db){const _0x3ca616=a235_0x3520,_0x2c71dd=new Set(_0x4747db);return _0x2c71dd[_0x3ca616(0x18f)](_0x3ca616(0x1a2))&&_0x2c71dd[_0x3ca616(0x1a9)]('enable-bff-save'),Array['from'](_0x2c71dd);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x325356,_0xbf4674,_0xeb3ced){const _0x59cfc4=a235_0x3520;logger[_0x59cfc4(0x1a4)](process[_0x59cfc4(0x1a0)]());if(_0xeb3ced?.['help']||_0x325356===_0x59cfc4(0x1a5)){showHelp();return;}console['error'](_0x59cfc4(0x197)+(_0x325356||_0x59cfc4(0x19b))),console[_0x59cfc4(0x1a3)](_0x59cfc4(0x194)),console[_0x59cfc4(0x1a3)]('\x20\x20'+CLI_BIN_NAME+_0x59cfc4(0x196)),console['log'](''),console[_0x59cfc4(0x1a3)](_0x59cfc4(0x19c)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x59cfc4(0x192)](_0x59cfc4(0x188),_0x59cfc4(0x18c)+_0x325356),process['exit'](0x1);}function a235_0x2ce7(){const _0x5ababe=['80MTAMMv','skill','includes','-$1','from','不支持的命令:\x20','358056cGORSq','length','has','2795464aaNcWS','argv','error','256651xZiUQL','\x0aAvailable\x20commands:','18aWYOFV','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','Error:\x20Unsupported\x20command:\x20','188842iQhVMY','entries','slice','(empty)','Equivalent\x20command:\x20','111288mifZNa','468720jhqWBc','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','cwd','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a','dangerously-bff-save','log','setLogPath','--help','\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20','4460hfdWrr','push','add','1236UJQfkC'];a235_0x2ce7=function(){return _0x5ababe;};return a235_0x2ce7();}function showHelp(){const _0xc87d90=a235_0x3520;console[_0xc87d90(0x1a3)](_0xc87d90(0x19f)+CLI_BIN_NAME+_0xc87d90(0x1a6)+SKILLS_INSTALL_COMMAND_LINE+_0xc87d90(0x1a1));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a236_0x177be0=a236_0x2681;function a236_0x2681(_0x2e0ba7,_0xa23c04){_0x2e0ba7=_0x2e0ba7-0x107;const _0x54a539=a236_0x54a5();let _0x2681c2=_0x54a539[_0x2e0ba7];return _0x2681c2;}(function(_0x184c21,_0x3fda00){const _0x431c9d=a236_0x2681,_0x4cad6f=_0x184c21();while(!![]){try{const _0x2826c8=parseInt(_0x431c9d(0x10c))/0x1+-parseInt(_0x431c9d(0x122))/0x2+-parseInt(_0x431c9d(0x11c))/0x3*(-parseInt(_0x431c9d(0x11b))/0x4)+-parseInt(_0x431c9d(0x107))/0x5*(-parseInt(_0x431c9d(0x10f))/0x6)+parseInt(_0x431c9d(0x123))/0x7+parseInt(_0x431c9d(0x108))/0x8*(-parseInt(_0x431c9d(0x10d))/0x9)+-parseInt(_0x431c9d(0x120))/0xa;if(_0x2826c8===_0x3fda00)break;else _0x4cad6f['push'](_0x4cad6f['shift']());}catch(_0x34d97b){_0x4cad6f['push'](_0x4cad6f['shift']());}}}(a236_0x54a5,0x4b53a));function a236_0x54a5(){const _0x2852fc=['pipe','7291420HcsLOs','exit\x20','327998HKaMcn','528360ihwCOG','5EScbal','16IAeJbU','status','stdio','stderr','414022pWNBeY','605817JAmlVS','remove','2369688vPhIaG','join','yes','toString','npx','skills','trim','push','stdout','add','inherit','Lovrabet','4PgntRg','1355565vVnczT','log','unknown'];a236_0x54a5=function(){return _0x2852fc;};return a236_0x54a5();}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=a236_0x177be0(0x114);export const NPX_SKILLS_SUBCOMMAND_ADD=a236_0x177be0(0x118);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME=a236_0x177be0(0x11a);export function buildNpxSkillsAddArgv(_0x3c515f){const _0x239579=a236_0x177be0,_0x80a546=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x3c515f&&_0x80a546[_0x239579(0x116)](NPX_SKILLS_FLAG_SKILL,_0x3c515f),_0x80a546;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a236_0x177be0(0x113),...buildNpxSkillsAddArgv()][a236_0x177be0(0x110)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a236_0x177be0(0x113),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a236_0x177be0(0x110)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x2de670,_0x102dbc){const _0x1ae129=a236_0x177be0;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xc5bdc4=_0x102dbc?.['stdio']??_0x1ae129(0x119),_0x5bf85b=resolveNpmBin('npx'),_0xf07aa7=buildNpxSkillsAddArgv(_0x102dbc?.['skill']),_0xb6432c=[_0x1ae129(0x113),..._0xf07aa7][_0x1ae129(0x110)]('\x20');console[_0x1ae129(0x11d)]('*\x20'+_0xb6432c);const _0x1a84a1=spawnSync(_0x5bf85b,_0xf07aa7,{'cwd':_0x2de670,'stdio':_0xc5bdc4,'env':process.env,'shell':![]}),_0x4150af=_0x1a84a1[_0x1ae129(0x109)];if(_0x4150af===0x0)return{'ok':!![],'status':0x0};let _0x593a1a=_0x1ae129(0x121)+(_0x4150af??_0x1ae129(0x11e));if(_0xc5bdc4===_0x1ae129(0x11f)){const _0x1c2252=_0x1a84a1['stderr']?_0x1a84a1[_0x1ae129(0x10b)][_0x1ae129(0x112)]()[_0x1ae129(0x115)]():'',_0x36273d=_0x1a84a1[_0x1ae129(0x117)]?_0x1a84a1[_0x1ae129(0x117)][_0x1ae129(0x112)]()['trim']():'';if(_0x1c2252)_0x593a1a=_0x1c2252;else{if(_0x36273d)_0x593a1a=_0x36273d;}}return{'ok':![],'status':_0x4150af??null,'error':_0x593a1a};}export function runNpxSkillsRemove(_0x558809,_0x225ef9,_0x52e618=LEGACY_RABETBASE_SKILL_SOURCE){const _0x64fb8b=a236_0x177be0;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x413187=_0x225ef9?.[_0x64fb8b(0x10a)]??_0x64fb8b(0x119),_0x35ec17=resolveNpmBin(_0x64fb8b(0x113)),_0x44047a=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x64fb8b(0x10e),_0x52e618,NPX_SKILLS_FLAG_SKILL,_0x225ef9?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0x225ef9?.[_0x64fb8b(0x111)]?['-y']:[]],_0x117b15=[_0x35ec17,..._0x44047a][_0x64fb8b(0x110)]('\x20');console[_0x64fb8b(0x11d)]('*\x20'+_0x117b15);const _0x1b473b=spawnSync(_0x35ec17,_0x44047a,{'cwd':_0x558809,'stdio':_0x413187,'env':process.env,'shell':![]}),_0x1f1dee=_0x1b473b['status'];if(_0x1f1dee===0x0)return{'ok':!![],'status':0x0};let _0x1200d8=_0x64fb8b(0x121)+(_0x1f1dee??'unknown');if(_0x413187===_0x64fb8b(0x11f)){const _0x24b218=_0x1b473b[_0x64fb8b(0x10b)]?_0x1b473b[_0x64fb8b(0x10b)][_0x64fb8b(0x112)]()['trim']():'',_0x212ffb=_0x1b473b[_0x64fb8b(0x117)]?_0x1b473b[_0x64fb8b(0x117)][_0x64fb8b(0x112)]()[_0x64fb8b(0x115)]():'';if(_0x24b218)_0x1200d8=_0x24b218;else{if(_0x212ffb)_0x1200d8=_0x212ffb;}}return{'ok':![],'status':_0x1f1dee??null,'error':_0x1200d8};}export function runNpxSkillsAddGlobal(_0x1f8026,_0x4eceb4,_0x324298){const _0x1fce15=a236_0x177be0;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5bded5=_0x324298?.[_0x1fce15(0x10a)]??_0x1fce15(0x119),_0x424ac3=resolveNpmBin('npx'),_0x399442=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4eceb4,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x417287=[_0x1fce15(0x113),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4eceb4,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x1fce15(0x110)]('\x20');console[_0x1fce15(0x11d)]('*\x20'+_0x417287);const _0x27f466=spawnSync(_0x424ac3,_0x399442,{'cwd':_0x1f8026,'stdio':_0x5bded5,'env':process.env,'shell':![]}),_0x1bde7e=_0x27f466[_0x1fce15(0x109)];if(_0x1bde7e===0x0)return{'ok':!![],'status':0x0};let _0x183fc3=_0x1fce15(0x121)+(_0x1bde7e??_0x1fce15(0x11e));if(_0x5bded5==='pipe'){const _0x42b06b=_0x27f466[_0x1fce15(0x10b)]?_0x27f466[_0x1fce15(0x10b)][_0x1fce15(0x112)]()[_0x1fce15(0x115)]():'',_0x311b92=_0x27f466[_0x1fce15(0x117)]?_0x27f466[_0x1fce15(0x117)][_0x1fce15(0x112)]()[_0x1fce15(0x115)]():'';if(_0x42b06b)_0x183fc3=_0x42b06b;else{if(_0x311b92)_0x183fc3=_0x311b92;}}return{'ok':![],'status':_0x1bde7e??null,'error':_0x183fc3};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xe64eeb,_0x1d541a){const _0x2287d9=a237_0x5c75,_0x914dd9=_0xe64eeb();while(!![]){try{const _0x343be0=parseInt(_0x2287d9(0x1ae))/0x1+parseInt(_0x2287d9(0x1a9))/0x2*(-parseInt(_0x2287d9(0x1b9))/0x3)+-parseInt(_0x2287d9(0x1aa))/0x4+-parseInt(_0x2287d9(0x1b6))/0x5+parseInt(_0x2287d9(0x1a6))/0x6+parseInt(_0x2287d9(0x1ad))/0x7*(parseInt(_0x2287d9(0x1a7))/0x8)+parseInt(_0x2287d9(0x1b1))/0x9*(-parseInt(_0x2287d9(0x1ac))/0xa);if(_0x343be0===_0x1d541a)break;else _0x914dd9['push'](_0x914dd9['shift']());}catch(_0x33e0dc){_0x914dd9['push'](_0x914dd9['shift']());}}}(a237_0x74ad,0x4608f));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a237_0x5c75(_0x59c4d6,_0x22cd83){_0x59c4d6=_0x59c4d6-0x1a6;const _0x74add3=a237_0x74ad();let _0x5c75e7=_0x74add3[_0x59c4d6];return _0x5c75e7;}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(_0x85e03a){const _0x409ac6=a237_0x5c75;return SENSITIVE_PATTERNS[_0x409ac6(0x1b3)](_0xd0ca9=>_0xd0ca9[_0x409ac6(0x1b2)](_0x85e03a));}function sanitizeFlags(_0x103ab2){const _0xa09269=a237_0x5c75,_0x4adc17={};for(const [_0x8666ff,_0x2f5904]of Object[_0xa09269(0x1b8)](_0x103ab2)){isSensitiveKey(_0x8666ff)?_0x4adc17[_0x8666ff]=_0x2f5904!=null&&_0x2f5904!==''?'[REDACTED]':_0x2f5904:_0x4adc17[_0x8666ff]=_0x2f5904;}return _0x4adc17;}function a237_0x74ad(){const _0x39540a=['stringify','1271740rrXIPL','service','entries','349893hgHUtQ','1386696gefPdo','440AnKAka','command','6MEvUiX','207116CzgyJZ','flags','690eyfjex','61453dZkCMJ','457174WhTYGB','error','rabetbase.command','29772cGRyaP','test','some','durationMs'];a237_0x74ad=function(){return _0x39540a;};return a237_0x74ad();}export async function reportCommandTrace(_0x4818a7){const _0xbf93e1=a237_0x5c75;try{const _0x478639=sanitizeFlags(_0x4818a7[_0xbf93e1(0x1ab)]);await sendCliTraceLog({'spanName':_0xbf93e1(0x1b0),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x4818a7[_0xbf93e1(0x1b7)],'command.name':_0x4818a7[_0xbf93e1(0x1a8)],'command.flags':JSON[_0xbf93e1(0x1b5)](_0x478639),..._0x4818a7['durationMs']!=null?{'command.duration_ms':_0x4818a7[_0xbf93e1(0x1b4)]}:{},..._0x4818a7['error']?{'command.error':_0x4818a7[_0xbf93e1(0x1af)]instanceof Error?_0x4818a7['error']['message']:String(_0x4818a7[_0xbf93e1(0x1af)])}:{}}});}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a238_0x5e9e(){var _0x145c14=['247036WrXBjG','5616900JdOzrm','4946fIVoSp','32943750TCWZAy','24OLlrjy','148295DmLjpC','service','error','7997080SQoeTl','Failed\x20to\x20report\x20CLI\x20help\x20trace:','40pJVSYe','cli.help','97VONELY','2443185fefUBV'];a238_0x5e9e=function(){return _0x145c14;};return a238_0x5e9e();}(function(_0x73c15d,_0x136297){var _0x1b11fd=a238_0xf858,_0x2d1d98=_0x73c15d();while(!![]){try{var _0x5bf98a=parseInt(_0x1b11fd(0x162))/0x1*(parseInt(_0x1b11fd(0x166))/0x2)+-parseInt(_0x1b11fd(0x163))/0x3+parseInt(_0x1b11fd(0x164))/0x4*(-parseInt(_0x1b11fd(0x16e))/0x5)+parseInt(_0x1b11fd(0x168))/0x6*(-parseInt(_0x1b11fd(0x169))/0x7)+-parseInt(_0x1b11fd(0x16c))/0x8+-parseInt(_0x1b11fd(0x165))/0x9+parseInt(_0x1b11fd(0x167))/0xa;if(_0x5bf98a===_0x136297)break;else _0x2d1d98['push'](_0x2d1d98['shift']());}catch(_0x1b3634){_0x2d1d98['push'](_0x2d1d98['shift']());}}}(a238_0x5e9e,0x7e4c2));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a238_0xf858(_0x4521c6,_0x17f451){_0x4521c6=_0x4521c6-0x161;var _0x5e9eea=a238_0x5e9e();var _0xf85813=_0x5e9eea[_0x4521c6];return _0xf85813;}export async function reportCliHelpTrace(_0xaab4e4,_0x33febc){var _0x464f6a=a238_0xf858;try{await sendCliTraceLog({'spanName':_0x464f6a(0x161),'logData':{'rabetbase.help.kind':_0xaab4e4,..._0x33febc?.[_0x464f6a(0x16a)]&&{'rabetbase.help.service':_0x33febc[_0x464f6a(0x16a)]}}});}catch(_0x5890df){console[_0x464f6a(0x16b)](_0x464f6a(0x16d),_0x5890df);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a239_0x32ab(){const _0x421285=['email','daily','2165034BMtLBX','6UoPrbF','nickname','587298zuSiMO','username','32333eKsOxC','unknown','3032GKQzTG','production','383728ELVnAu','10611HSOlJU','793898ymmmNm','5KEjXFX','14738770DfPPsc'];a239_0x32ab=function(){return _0x421285;};return a239_0x32ab();}function a239_0x3d7e(_0x29a7ce,_0x508eed){_0x29a7ce=_0x29a7ce-0x1b7;const _0x32abae=a239_0x32ab();let _0x3d7e95=_0x32abae[_0x29a7ce];return _0x3d7e95;}(function(_0x128894,_0x83f74c){const _0x25134d=a239_0x3d7e,_0x386540=_0x128894();while(!![]){try{const _0xc5b6b7=parseInt(_0x25134d(0x1b8))/0x1+-parseInt(_0x25134d(0x1c6))/0x2*(parseInt(_0x25134d(0x1c4))/0x3)+-parseInt(_0x25134d(0x1bc))/0x4*(parseInt(_0x25134d(0x1bf))/0x5)+parseInt(_0x25134d(0x1c3))/0x6+-parseInt(_0x25134d(0x1be))/0x7+parseInt(_0x25134d(0x1ba))/0x8*(-parseInt(_0x25134d(0x1bd))/0x9)+parseInt(_0x25134d(0x1c0))/0xa;if(_0xc5b6b7===_0x83f74c)break;else _0x386540['push'](_0x386540['shift']());}catch(_0x157e6b){_0x386540['push'](_0x386540['shift']());}}}(a239_0x32ab,0x983cc));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=![];export async function ensureCliOtelTraceConfig(){const _0x4e3fc5=a239_0x3d7e,_0x44f8d0=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x397bb0=_0x44f8d0?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x4e3fc5(0x1b9)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x4e3fc5(0x1c2):_0x4e3fc5(0x1bb))}),setUserContext({'id':_0x397bb0?.['id'],'username':_0x397bb0?.[_0x4e3fc5(0x1b7)],'nickname':_0x397bb0?.[_0x4e3fc5(0x1c5)],'email':_0x397bb0?.[_0x4e3fc5(0x1c1)],'tenantCode':_0x397bb0?.['tenant']['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x44f8d0;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a240_0x5871(_0x4d17f7,_0x1e5fb0){_0x4d17f7=_0x4d17f7-0x11b;const _0x2522ae=a240_0x2522();let _0x5871be=_0x2522ae[_0x4d17f7];return _0x5871be;}(function(_0x29b312,_0x5a135a){const _0x1359d8=a240_0x5871,_0x5c5817=_0x29b312();while(!![]){try{const _0x4703d1=-parseInt(_0x1359d8(0x11c))/0x1+parseInt(_0x1359d8(0x129))/0x2+parseInt(_0x1359d8(0x11b))/0x3*(-parseInt(_0x1359d8(0x11f))/0x4)+-parseInt(_0x1359d8(0x11e))/0x5+-parseInt(_0x1359d8(0x123))/0x6*(parseInt(_0x1359d8(0x124))/0x7)+parseInt(_0x1359d8(0x128))/0x8+parseInt(_0x1359d8(0x122))/0x9*(parseInt(_0x1359d8(0x127))/0xa);if(_0x4703d1===_0x5a135a)break;else _0x5c5817['push'](_0x5c5817['shift']());}catch(_0xccca8b){_0x5c5817['push'](_0x5c5817['shift']());}}}(a240_0x2522,0xec593));function a240_0x2522(){const _0x51480a=['953346nvauvB','577366UWyEQU','once','7976665rklHna','16zzbIAs','exit','SIGINT','549KhDxTN','18JQEwBU','2970338yYscKk','then','beforeExit','648260IWnkPQ','10368120hSkfCB','869022FFCEOJ'];a240_0x2522=function(){return _0x51480a;};return a240_0x2522();}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 _0x50bcfe=a240_0x5871;process[_0x50bcfe(0x11d)](_0x50bcfe(0x126),()=>{void flushOtelNodeIfUsed();});const _0x983e1a=()=>{const _0x3ffca5=_0x50bcfe;void flushOtelNodeIfUsed()[_0x3ffca5(0x125)](()=>process[_0x3ffca5(0x120)](0x0));};process[_0x50bcfe(0x11d)](_0x50bcfe(0x121),_0x983e1a),process[_0x50bcfe(0x11d)]('SIGTERM',_0x983e1a);}export async function exitWithOtelShutdown(_0x1cce68){const _0x330938=a240_0x5871;await flushOtelNodeIfUsed(),process[_0x330938(0x120)](_0x1cce68);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a241_0x10fbf9=a241_0x4e29;function a241_0x4e29(_0x22b154,_0x633017){_0x22b154=_0x22b154-0xcb;const _0x2db131=a241_0x2db1();let _0x4e295b=_0x2db131[_0x22b154];return _0x4e295b;}(function(_0x3b850c,_0x3d70c2){const _0x37db9f=a241_0x4e29,_0xba09c7=_0x3b850c();while(!![]){try{const _0x18b879=-parseInt(_0x37db9f(0xd1))/0x1*(-parseInt(_0x37db9f(0xce))/0x2)+-parseInt(_0x37db9f(0xcf))/0x3*(-parseInt(_0x37db9f(0xdb))/0x4)+parseInt(_0x37db9f(0xd9))/0x5*(parseInt(_0x37db9f(0xd0))/0x6)+parseInt(_0x37db9f(0xda))/0x7*(-parseInt(_0x37db9f(0xd4))/0x8)+parseInt(_0x37db9f(0xd2))/0x9*(parseInt(_0x37db9f(0xcd))/0xa)+-parseInt(_0x37db9f(0xde))/0xb*(parseInt(_0x37db9f(0xcc))/0xc)+-parseInt(_0x37db9f(0xd6))/0xd*(parseInt(_0x37db9f(0xdc))/0xe);if(_0x18b879===_0x3d70c2)break;else _0xba09c7['push'](_0xba09c7['shift']());}catch(_0x4547a6){_0xba09c7['push'](_0xba09c7['shift']());}}}(a241_0x2db1,0x7e2a6));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a241_0x10fbf9(0xcb);export async function sendCliTraceLog(_0x4759c7){const _0x3656fe=a241_0x10fbf9;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x4759c7[_0x3656fe(0xd5)]??DEFAULT_TRACE_NAME,'version':_0x4759c7[_0x3656fe(0xd3)]??getCliVersion(),'spanName':_0x4759c7[_0x3656fe(0xd7)],'eventType':_0x3656fe(0xd8),'logData':_0x4759c7['logData'],..._0x4759c7[_0x3656fe(0xdd)]&&{'traceparent':_0x4759c7['traceparent']}});}function a241_0x2db1(){const _0x2ccdd0=['70314IcRFFs','343sRyhoR','99GTLmuQ','version','1296712HXAagv','traceName','13BAUMgO','spanName','manual','205LFUIXT','7LiQrYI','4pshGwC','23327794EDpmPe','traceparent','887018lThnqT','rabetbase-cli','84btDSxk','645510WuWvwV','4090kdvjFf','3052875fBQrlt'];a241_0x2db1=function(){return _0x2ccdd0;};return a241_0x2db1();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a242_0x586f82=a242_0x357b;(function(_0x1d45cf,_0x59c7dc){const _0x45c19d=a242_0x357b,_0x102aba=_0x1d45cf();while(!![]){try{const _0x31e25f=-parseInt(_0x45c19d(0x111))/0x1*(-parseInt(_0x45c19d(0x109))/0x2)+-parseInt(_0x45c19d(0x112))/0x3*(-parseInt(_0x45c19d(0x104))/0x4)+parseInt(_0x45c19d(0x105))/0x5+-parseInt(_0x45c19d(0x113))/0x6*(parseInt(_0x45c19d(0x108))/0x7)+-parseInt(_0x45c19d(0x10d))/0x8*(parseInt(_0x45c19d(0x106))/0x9)+-parseInt(_0x45c19d(0x10a))/0xa+-parseInt(_0x45c19d(0x115))/0xb;if(_0x31e25f===_0x59c7dc)break;else _0x102aba['push'](_0x102aba['shift']());}catch(_0x4b2c96){_0x102aba['push'](_0x102aba['shift']());}}}(a242_0x2e4f,0x2e784));function a242_0x357b(_0x163f52,_0x428549){_0x163f52=_0x163f52-0x104;const _0x2e4f57=a242_0x2e4f();let _0x357b8d=_0x2e4f57[_0x163f52];return _0x357b8d;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a242_0x586f82(0x107);export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';function a242_0x2e4f(){const _0x2241ae=['692632ARBrwt','300380AwFPOI','truncated','redactionCount','145456SyEzKq','description','join','originalBytes','1DqtCsG','15uPLpDp','1842QXtGqM','redactionKinds','922515cZJCiz','title','sanitize','234524exGEmu','135505wQdAqS','9asbEBg','platform-issue-log-collect','7847TpzZOt'];a242_0x2e4f=function(){return _0x2241ae;};return a242_0x2e4f();}export async function sendPlatformIssueCollectLog(_0x502466){const _0x5405f1=a242_0x586f82;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x502466[_0x5405f1(0x116)],'issue.description':_0x502466[_0x5405f1(0x10e)],..._0x502466[_0x5405f1(0x117)]?{'issue.description_original_bytes':_0x502466[_0x5405f1(0x117)][_0x5405f1(0x110)],'issue.description_truncated':_0x502466['sanitize'][_0x5405f1(0x10b)],'issue.description_redactions':_0x502466[_0x5405f1(0x117)][_0x5405f1(0x10c)],'issue.description_redaction_kinds':_0x502466[_0x5405f1(0x117)][_0x5405f1(0x114)][_0x5405f1(0x10f)](',')}:{}}});}
|
package/lib/utils/ai_config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a244_0x210be9=a244_0x5b7b;function a244_0x5b7b(_0x379b4a,_0x3dba78){_0x379b4a=_0x379b4a-0x19f;const _0x352b0c=a244_0x352b();let _0x5b7bf2=_0x352b0c[_0x379b4a];return _0x5b7bf2;}function a244_0x352b(){const _0x25c6b9=['762816ijPjpn','Qoder\x20IDE','.cline/skills/lovrabet/SKILL.md','3SmiWbc','3174564iwmOmS','Antigravity\x20IDE','codebuddy','qoder','.codex','windsurf','.agent','Windsurf\x20IDE','.opencode/skills/lovrabet/SKILL.md','.cursor/skills/rabetbase.md','.codebuddy/skills/lovrabet/SKILL.md','CodeBuddy','Qoder','Trae','claude','.agent/skills/lovrabet/SKILL.md','其他\x20(通用模板)','cline','Codex','.windsurf','file','1767970PSrdiN','Codex\x20IDE','81URooJl','.trae','opencode','agent','6563221bjGLTw','cursor','2378560Rjxcxq','Cline\x20IDE','antigravity','.cline','SKILL.md.tpl','.trae/skills/lovrabet/SKILL.md','Cursor','OpenCode','CodeBuddy\x20IDE','.claude/skills/lovrabet/SKILL.md','trae','Cursor\x20IDE','20984NBXxgB','通用模板\x20-\x20兜底方案','.qoder/rules/rabetbase.md','.claude','Antigravity','codex','Claude\x20Code','.codex/skills/lovrabet/SKILL.md','.codebuddy','.windsurf/workflows/rabetbase.md','Trae\x20IDE','5167536weMMtX'];a244_0x352b=function(){return _0x25c6b9;};return a244_0x352b();}(function(_0x343488,_0x36816b){const _0xb46c49=a244_0x5b7b,_0x1ff3fe=_0x343488();while(!![]){try{const _0x2682b2=-parseInt(_0xb46c49(0x1a9))/0x1+parseInt(_0xb46c49(0x1c2))/0x2*(parseInt(_0xb46c49(0x1ac))/0x3)+-parseInt(_0xb46c49(0x1a8))/0x4+parseInt(_0xb46c49(0x1ca))/0x5+parseInt(_0xb46c49(0x1ad))/0x6+parseInt(_0xb46c49(0x1c8))/0x7+parseInt(_0xb46c49(0x1d6))/0x8*(-parseInt(_0xb46c49(0x1c4))/0x9);if(_0x2682b2===_0x36816b)break;else _0x1ff3fe['push'](_0x1ff3fe['shift']());}catch(_0x36f74b){_0x1ff3fe['push'](_0x1ff3fe['shift']());}}}(a244_0x352b,0xb6a37));export const CORE_IDE_CONFIGS={'cursor':{'name':a244_0x210be9(0x1d0),'description':a244_0x210be9(0x1d5),'folders':['.cursorrules','.cursor'],'files':[{'type':'file','path':a244_0x210be9(0x1b6),'template':'SKILL.md.tpl'}]},'windsurf':{'name':'Windsurf','description':a244_0x210be9(0x1b4),'folders':[a244_0x210be9(0x1c0)],'files':[{'type':a244_0x210be9(0x1c1),'path':a244_0x210be9(0x1a6),'template':'SKILL.md.tpl'}]},'claude':{'name':'Claude\x20Code','description':a244_0x210be9(0x1a3),'folders':[a244_0x210be9(0x1a0)],'files':[{'type':'file','path':a244_0x210be9(0x1d3),'template':'SKILL.md.tpl'}]},'cline':{'name':'Cline','description':a244_0x210be9(0x1cb),'folders':[a244_0x210be9(0x1cd)],'files':[{'type':'file','path':a244_0x210be9(0x1ab),'template':'SKILL.md.tpl'}]},'codex':{'name':a244_0x210be9(0x1bf),'description':a244_0x210be9(0x1c3),'folders':[a244_0x210be9(0x1b1)],'files':[{'type':'file','path':a244_0x210be9(0x1a4),'template':a244_0x210be9(0x1ce)}]},'opencode':{'name':a244_0x210be9(0x1d1),'description':'OpenCode\x20IDE','folders':['.opencode'],'files':[{'type':'file','path':a244_0x210be9(0x1b5),'template':a244_0x210be9(0x1ce)}]},'qoder':{'name':a244_0x210be9(0x1b9),'description':a244_0x210be9(0x1aa),'folders':['.qoder'],'files':[{'type':'file','path':a244_0x210be9(0x19f),'template':a244_0x210be9(0x1ce)},{'type':a244_0x210be9(0x1c1),'path':'.qoder/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'codebuddy':{'name':a244_0x210be9(0x1b8),'description':a244_0x210be9(0x1d2),'folders':[a244_0x210be9(0x1a5)],'files':[{'type':a244_0x210be9(0x1c1),'path':a244_0x210be9(0x1b7),'template':a244_0x210be9(0x1ce)}]},'trae':{'name':a244_0x210be9(0x1ba),'description':a244_0x210be9(0x1a7),'folders':[a244_0x210be9(0x1c5)],'files':[{'type':'file','path':a244_0x210be9(0x1cf),'template':a244_0x210be9(0x1ce)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a244_0x210be9(0x1bd),'description':a244_0x210be9(0x1d7),'folders':[a244_0x210be9(0x1b3)],'files':[{'type':a244_0x210be9(0x1c1),'path':'.agent/skills/lovrabet/SKILL.md','template':a244_0x210be9(0x1ce)}]},'antigravity':{'name':a244_0x210be9(0x1a1),'description':a244_0x210be9(0x1ae),'folders':['.agent'],'files':[{'type':a244_0x210be9(0x1c1),'path':a244_0x210be9(0x1bc),'template':a244_0x210be9(0x1ce)}]}};export const CORE_IDE_LIST=[a244_0x210be9(0x1bb),a244_0x210be9(0x1be),'codebuddy',a244_0x210be9(0x1a2),a244_0x210be9(0x1c9),a244_0x210be9(0x1c6),a244_0x210be9(0x1b0),a244_0x210be9(0x1d4),a244_0x210be9(0x1b2)];export const IDE_LIST=[a244_0x210be9(0x1cc),a244_0x210be9(0x1bb),a244_0x210be9(0x1be),'codebuddy',a244_0x210be9(0x1a2),a244_0x210be9(0x1c9),a244_0x210be9(0x1c6),a244_0x210be9(0x1b0),a244_0x210be9(0x1d4),a244_0x210be9(0x1b2),a244_0x210be9(0x1c7)];export const ALL_CORE_IDES=[a244_0x210be9(0x1c9),'windsurf',a244_0x210be9(0x1bb),a244_0x210be9(0x1be),a244_0x210be9(0x1a2),a244_0x210be9(0x1c6),'qoder',a244_0x210be9(0x1af),'trae'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x44caab,_0x206467){const _0x18c1e0=a245_0x450a,_0x4e21ce=_0x44caab();while(!![]){try{const _0x40d973=parseInt(_0x18c1e0(0x1c4))/0x1*(-parseInt(_0x18c1e0(0x1c5))/0x2)+-parseInt(_0x18c1e0(0x1c9))/0x3*(-parseInt(_0x18c1e0(0x1cb))/0x4)+parseInt(_0x18c1e0(0x1c3))/0x5*(parseInt(_0x18c1e0(0x1ce))/0x6)+-parseInt(_0x18c1e0(0x1c8))/0x7*(parseInt(_0x18c1e0(0x1cd))/0x8)+-parseInt(_0x18c1e0(0x1c6))/0x9*(parseInt(_0x18c1e0(0x1cc))/0xa)+-parseInt(_0x18c1e0(0x1c7))/0xb+parseInt(_0x18c1e0(0x1ca))/0xc;if(_0x40d973===_0x206467)break;else _0x4e21ce['push'](_0x4e21ce['shift']());}catch(_0x4f5a8e){_0x4e21ce['push'](_0x4e21ce['shift']());}}}(a245_0x2f75,0xb42ed));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a245_0x450a(_0x3ce939,_0x5e77f1){_0x3ce939=_0x3ce939-0x1c3;const _0x2f750e=a245_0x2f75();let _0x450a51=_0x2f750e[_0x3ce939];return _0x450a51;}function a245_0x2f75(){const _0x29f8df=['1813430ocjYlU','905488XLWbZO','6bEgbbX','1647425OoPysv','8tjHeWG','83818zvOPaS','72LUgxpO','5397931vnGYLr','14KpBpDw','51nywdLZ','31315164ChuYCY','71072SNJSWV'];a245_0x2f75=function(){return _0x29f8df;};return a245_0x2f75();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
package/lib/utils/cdn-config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x10a735,_0x4ef834){const _0x24ec38=a246_0x5049,_0x521dfb=_0x10a735();while(!![]){try{const _0x87f7b3=parseInt(_0x24ec38(0x1d7))/0x1+-parseInt(_0x24ec38(0x1d8))/0x2*(-parseInt(_0x24ec38(0x1de))/0x3)+parseInt(_0x24ec38(0x1d9))/0x4+parseInt(_0x24ec38(0x1d1))/0x5*(-parseInt(_0x24ec38(0x1e0))/0x6)+parseInt(_0x24ec38(0x1df))/0x7+-parseInt(_0x24ec38(0x1e1))/0x8*(-parseInt(_0x24ec38(0x1d2))/0x9)+-parseInt(_0x24ec38(0x1dc))/0xa*(parseInt(_0x24ec38(0x1d5))/0xb);if(_0x87f7b3===_0x4ef834)break;else _0x521dfb['push'](_0x521dfb['shift']());}catch(_0x34f047){_0x521dfb['push'](_0x521dfb['shift']());}}}(a246_0x25d3,0x39ae6));function a246_0x5049(_0x4665b4,_0x292378){_0x4665b4=_0x4665b4-0x1d0;const _0x25d3e9=a246_0x25d3();let _0x5049c0=_0x25d3e9[_0x4665b4];return _0x5049c0;}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x360774=a246_0x5049,_0x3cf088=getTemplateBaseUrl(),_0x4a7e3e=[_0x3cf088+_0x360774(0x1da),_0x3cf088+'/config/index.json'];for(const _0x4d91c6 of _0x4a7e3e){try{const _0x48ea42=await fetch(_0x4d91c6,{'headers':{'Accept':_0x360774(0x1db)}});if(!_0x48ea42['ok'])continue;const _0x420a3f=await _0x48ea42[_0x360774(0x1d3)]();if(!_0x420a3f[_0x360774(0x1d6)]?.['stableVersion']||!_0x420a3f[_0x360774(0x1d0)]?.[_0x360774(0x1dd)]?.[_0x360774(0x1d4)])continue;return _0x420a3f;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];function a246_0x25d3(){const _0x119b21=['2096238LQXtku','112rKKLjp','sdk','5kArQqd','104634MPcqaZ','json','stableVersion','24739iyzORQ','cli','297310phdPPc','106ntiPpY','1032212meMmNb','/config.json','application/json','2390SdwvhS','node','6312UYztut','2054549BUHklm'];a246_0x25d3=function(){return _0x119b21;};return a246_0x25d3();}export async function getCdnConfig(){const _0x1313bf=Date['now']();if(hasCachedConfig){const _0x11d55c=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x1313bf-cacheTime<_0x11d55c)return cachedConfig;}const _0x40edb2=await fetchCdnConfig();return cachedConfig=_0x40edb2,cacheTime=_0x1313bf,hasCachedConfig=!![],_0x40edb2;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
|