@lovrabet/rabetbase-cli 2.3.14 → 2.3.15-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 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-apis-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/init.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/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
|
-
|
|
1
|
+
(function(_0x37a6f7,_0xed389f){var _0x5c979d=a222_0x43a9,_0x122f93=_0x37a6f7();while(!![]){try{var _0x30ccfd=-parseInt(_0x5c979d(0x1df))/0x1+parseInt(_0x5c979d(0x1e2))/0x2*(parseInt(_0x5c979d(0x1dd))/0x3)+-parseInt(_0x5c979d(0x1da))/0x4+-parseInt(_0x5c979d(0x1db))/0x5*(parseInt(_0x5c979d(0x1d9))/0x6)+-parseInt(_0x5c979d(0x1dc))/0x7*(-parseInt(_0x5c979d(0x1de))/0x8)+parseInt(_0x5c979d(0x1e4))/0x9*(-parseInt(_0x5c979d(0x1d8))/0xa)+parseInt(_0x5c979d(0x1e6))/0xb;if(_0x30ccfd===_0xed389f)break;else _0x122f93['push'](_0x122f93['shift']());}catch(_0x4bbfe2){_0x122f93['push'](_0x122f93['shift']());}}}(a222_0x2aa6,0xd9b1d));function a222_0x2aa6(){var _0x48dae3=['6894rFhKrK','3125816NhABmJ','1695asqRqi','791WJhelh','604077OGSUyl','88888wuKSCC','336647TkTYGH','def','structuredErrors','16hXnsjh','format','7389lqxxBe','defaultFormat','9049315FXZQpg','15710ixAwDk'];a222_0x2aa6=function(){return _0x48dae3;};return a222_0x2aa6();}function a222_0x43a9(_0x3d3288,_0x50b85a){_0x3d3288=_0x3d3288-0x1d8;var _0x2aa631=a222_0x2aa6();var _0x43a9a5=_0x2aa631[_0x3d3288];return _0x43a9a5;}import{resolveOutputConfig}from'@lovrabet/cli-framework';export function usesStructuredErrorOutput(_0x30b3c6){var _0x2cfe30=a222_0x43a9;return _0x30b3c6?.[_0x2cfe30(0x1e1)]===!![];}export function resolveErrorOutputFormat(_0x61c11c){var _0x4722fb=a222_0x43a9;if(!_0x61c11c[_0x4722fb(0x1e0)])return _0x61c11c['defaultFormat']??'compress';return resolveOutputConfig({'flags':_0x61c11c['flags']??{},'def':_0x61c11c['def'],'configDefault':_0x61c11c[_0x4722fb(0x1e5)]})[_0x4722fb(0x1e3)];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a223_0x5e0083=a223_0x1bd2;(function(_0x52835b,_0x100086){const _0x3348fb=a223_0x1bd2,_0x243dbf=_0x52835b();while(!![]){try{const _0x584340=-parseInt(_0x3348fb(0x133))/0x1+-parseInt(_0x3348fb(0x137))/0x2*(parseInt(_0x3348fb(0x135))/0x3)+-parseInt(_0x3348fb(0x138))/0x4*(-parseInt(_0x3348fb(0x12a))/0x5)+parseInt(_0x3348fb(0x132))/0x6+-parseInt(_0x3348fb(0x134))/0x7*(-parseInt(_0x3348fb(0x12b))/0x8)+parseInt(_0x3348fb(0x12c))/0x9*(-parseInt(_0x3348fb(0x13c))/0xa)+parseInt(_0x3348fb(0x12e))/0xb*(parseInt(_0x3348fb(0x130))/0xc);if(_0x584340===_0x100086)break;else _0x243dbf['push'](_0x243dbf['shift']());}catch(_0x4eff93){_0x243dbf['push'](_0x243dbf['shift']());}}}(a223_0x1e3e,0x3ceed));const EXPLICIT_YES_COMMANDS=new Set(['menu\x20external-link-update',a223_0x5e0083(0x131),a223_0x5e0083(0x12f),a223_0x5e0083(0x12d),a223_0x5e0083(0x139),a223_0x5e0083(0x136)]);export const EXPLICIT_YES_FLAG_DESCRIPTION=a223_0x5e0083(0x13b);export function requiresExplicitYes(_0x2ea3ea){const _0x4681e1=a223_0x5e0083;return EXPLICIT_YES_COMMANDS[_0x4681e1(0x13a)](_0x2ea3ea['service']+'\x20'+_0x2ea3ea['command']);}function a223_0x1bd2(_0x5ae48b,_0x28fbfe){_0x5ae48b=_0x5ae48b-0x12a;const _0x1e3ee4=a223_0x1e3e();let _0x1bd288=_0x1e3ee4[_0x5ae48b];return _0x1bd288;}function a223_0x1e3e(){const _0x5dbaa7=['1265fUCwpv','969520llqYfy','1486116QxXlVQ','menu\x20group-update','11ncMPZN','menu\x20group-create','7316184SzdibD','menu\x20delete','614190MPzsah','203522DpITwb','14aNCqyt','15mpJfFx','menu\x20regroup-start','134986YXMRsH','20gUJQtk','menu\x20move','has','Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan','10HzXkVX'];a223_0x1e3e=function(){return _0x5dbaa7;};return a223_0x1e3e();}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a224_0x119553=a224_0x2790;(function(_0x4bbc84,_0x2db115){const _0x1b6385=a224_0x2790,_0x155070=_0x4bbc84();while(!![]){try{const _0x4cef31=-parseInt(_0x1b6385(0x1ca))/0x1+-parseInt(_0x1b6385(0x1c1))/0x2*(parseInt(_0x1b6385(0x1c7))/0x3)+parseInt(_0x1b6385(0x1c6))/0x4+parseInt(_0x1b6385(0x1c8))/0x5+parseInt(_0x1b6385(0x1c2))/0x6*(parseInt(_0x1b6385(0x1c0))/0x7)+parseInt(_0x1b6385(0x1c5))/0x8*(parseInt(_0x1b6385(0x1c9))/0x9)+parseInt(_0x1b6385(0x1c3))/0xa;if(_0x4cef31===_0x2db115)break;else _0x155070['push'](_0x155070['shift']());}catch(_0x1b11a4){_0x155070['push'](_0x155070['shift']());}}}(a224_0x50e3,0xbcb24));import{createFlagHelpers}from'@lovrabet/cli-framework';function a224_0x2790(_0x47d492,_0x31bc26){_0x47d492=_0x47d492-0x1c0;const _0x50e3a8=a224_0x50e3();let _0x279067=_0x50e3a8[_0x47d492];return _0x279067;}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a224_0x119553(0x1c4)];export const validateFlags=helpers[a224_0x119553(0x1cb)];function a224_0x50e3(){const _0x512c95=['validateFlags','21CUlnyp','38YBYXAZ','496212cqDwNx','1790740jELNWV','parseFlags','9784aRFmuM','2417248tsLOvR','15363qhaoZp','1718300YKIiDU','1917MewUFw','765452HGbtUz'];a224_0x50e3=function(){return _0x512c95;};return a224_0x50e3();}
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a225_0x4bcdc2=a225_0x324e;(function(_0x45cd62,_0x2571da){const _0x4527f0=a225_0x324e,_0x19d591=_0x45cd62();while(!![]){try{const _0x329923=-parseInt(_0x4527f0(0xc3))/0x1*(-parseInt(_0x4527f0(0xb9))/0x2)+parseInt(_0x4527f0(0xb8))/0x3+parseInt(_0x4527f0(0xc1))/0x4+-parseInt(_0x4527f0(0xc6))/0x5+parseInt(_0x4527f0(0xc5))/0x6*(parseInt(_0x4527f0(0xbf))/0x7)+-parseInt(_0x4527f0(0xc4))/0x8*(parseInt(_0x4527f0(0xc7))/0x9)+parseInt(_0x4527f0(0xbd))/0xa;if(_0x329923===_0x2571da)break;else _0x19d591['push'](_0x19d591['shift']());}catch(_0x341d55){_0x19d591['push'](_0x19d591['shift']());}}}(a225_0x2c6c,0xdcc45));import{createHelpGenerators}from'@lovrabet/cli-framework';function a225_0x324e(_0x1ec47c,_0x375d66){_0x1ec47c=_0x1ec47c-0xb7;const _0x2c6cee=a225_0x2c6c();let _0x324e59=_0x2c6cee[_0x1ec47c];return _0x324e59;}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_0x2c6c(){const _0x559ae6=['generateServiceHelp','generateCommandHelp','\x20[args]\x20[flags]','3642110CLvjWq','\x20workspace\x20init`\x20or\x20--appcode).','11942mKEOtR','Requires\x20appcode\x20(set\x20via\x20`','365624BlYUQq','get','719lZozyH','8928728hbCzMj','5958ZawHue','3323035oFwhmG','9BcRyts','replace','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','1187394kKDcHJ','388mQjFop'];a225_0x2c6c=function(){return _0x559ae6;};return a225_0x2c6c();}const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x30a366=>serviceGroups[a225_0x4bcdc2(0xc2)](_0x30a366),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a225_0x4bcdc2(0xc0)+CLI_BIN_NAME+a225_0x4bcdc2(0xbe),'serviceUsageSuffix':a225_0x4bcdc2(0xbc)});export function generateCommandHelp(_0x1fb836){const _0x3aa70b=a225_0x4bcdc2,_0x14d72a=generators[_0x3aa70b(0xbb)](_0x1fb836);if(!requiresExplicitYes(_0x1fb836))return _0x14d72a;return _0x14d72a[_0x3aa70b(0xc8)](_0x3aa70b(0xb7),'Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.');}export const generateServiceHelp=generators[a225_0x4bcdc2(0xba)];export const generateFullHelp=generators['generateFullHelp'];
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xdfb350,_0x92ab31){var _0x402a3d=a226_0x4219,_0x1a664d=_0xdfb350();while(!![]){try{var _0x557681=-parseInt(_0x402a3d(0x8f))/0x1*(-parseInt(_0x402a3d(0x90))/0x2)+-parseInt(_0x402a3d(0x86))/0x3*(parseInt(_0x402a3d(0x85))/0x4)+parseInt(_0x402a3d(0x87))/0x5*(parseInt(_0x402a3d(0x8c))/0x6)+parseInt(_0x402a3d(0x88))/0x7+parseInt(_0x402a3d(0x8a))/0x8*(parseInt(_0x402a3d(0x8b))/0x9)+-parseInt(_0x402a3d(0x8e))/0xa*(-parseInt(_0x402a3d(0x8d))/0xb)+-parseInt(_0x402a3d(0x89))/0xc;if(_0x557681===_0x92ab31)break;else _0x1a664d['push'](_0x1a664d['shift']());}catch(_0x37e453){_0x1a664d['push'](_0x1a664d['shift']());}}}(a226_0x1e65,0x49f9c));function a226_0x4219(_0x17e0d2,_0x33006a){_0x17e0d2=_0x17e0d2-0x85;var _0x1e6514=a226_0x1e65();var _0x4219d5=_0x1e6514[_0x17e0d2];return _0x4219d5;}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';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';function a226_0x1e65(){var _0x53bcd2=['10HOsoHs','1xIBQXi','275402YDYUJH','436OzkpuY','6153TTZOKS','125yLFjtw','602112CXEFLK','9486228DKEOPy','4298408sgOFgf','9tYOZRu','115716oZaxcu','813054WVueLA'];a226_0x1e65=function(){return _0x53bcd2;};return a226_0x1e65();}
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a227_0x4198(_0x5a6bb3,_0xe67cb8){_0x5a6bb3=_0x5a6bb3-0x1cd;const _0x330786=a227_0x3307();let _0x419858=_0x330786[_0x5a6bb3];return _0x419858;}(function(_0x2b46a8,_0xac0189){const _0x58db26=a227_0x4198,_0x2569e8=_0x2b46a8();while(!![]){try{const _0x59a798=-parseInt(_0x58db26(0x1d5))/0x1+-parseInt(_0x58db26(0x1df))/0x2*(-parseInt(_0x58db26(0x1ce))/0x3)+parseInt(_0x58db26(0x1e1))/0x4+parseInt(_0x58db26(0x1e8))/0x5+-parseInt(_0x58db26(0x1dd))/0x6+-parseInt(_0x58db26(0x1d3))/0x7+parseInt(_0x58db26(0x1cf))/0x8;if(_0x59a798===_0xac0189)break;else _0x2569e8['push'](_0x2569e8['shift']());}catch(_0x7ea2ea){_0x2569e8['push'](_0x2569e8['shift']());}}}(a227_0x3307,0x9d998));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';function a227_0x3307(){const _0x3f6d96=['command','trim','validation','_notice','hint','stringify','jq:\x20','6490368rPMNrO','code','118660CyaJea','write','4835024hEKUMy','error','endsWith','message','jqFilter','json','url','102605KQrQue','stdout','data','6ZJfqxq','9552552fCbXnW','pretty','update','format','1008483yQjKww','risk','670681wOMNrv'];a227_0x3307=function(){return _0x3f6d96;};return a227_0x3307();}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x3924c8,_0x131379){const _0x4d275c=a227_0x4198,_0x334517=_0x3924c8[_0x4d275c(0x1d9)],{_notice:_0x1cbb1a,..._0x225392}=_0x3924c8;void _0x1cbb1a,baseFormatOutput(_0x225392,_0x131379),_0x131379[_0x4d275c(0x1d2)]===_0x4d275c(0x1d0)&&printPrettyNotice(_0x334517);}export function formatCliError(_0x5ed8ff,_0x5369c3){const _0x3f1c4b=a227_0x4198;if(_0x5369c3[_0x3f1c4b(0x1d2)]==='pretty')return![];const _0x443762=_0x5ed8ff[_0x3f1c4b(0x1cd)],_0x34d9cf={'ok':![],'command':_0x5369c3[_0x3f1c4b(0x1d6)],'risk':_0x5369c3[_0x3f1c4b(0x1d4)],'data':_0x443762??null,'error':{'code':_0x5ed8ff[_0x3f1c4b(0x1de)],'message':_0x5ed8ff[_0x3f1c4b(0x1e4)],..._0x5ed8ff[_0x3f1c4b(0x1da)]?{'hint':_0x5ed8ff[_0x3f1c4b(0x1da)]}:{}}},_0x25c77a=_0x5369c3[_0x3f1c4b(0x1d2)]===_0x3f1c4b(0x1e6)?JSON[_0x3f1c4b(0x1db)](_0x34d9cf,null,0x2):JSON['stringify'](_0x34d9cf);let _0x190fcd=_0x25c77a;if(_0x5369c3['jqFilter']?.[_0x3f1c4b(0x1d7)]())try{_0x190fcd=applyJqFilter(_0x25c77a,_0x5369c3[_0x3f1c4b(0x1e5)]);}catch(_0x5cc7ef){const _0x8f1837=_0x5cc7ef instanceof CliError?_0x5cc7ef:CliErrors[_0x3f1c4b(0x1d8)](_0x3f1c4b(0x1dc)+(_0x5cc7ef instanceof Error?_0x5cc7ef[_0x3f1c4b(0x1e4)]:String(_0x5cc7ef))),_0x417783={..._0x34d9cf,'error':{'code':_0x8f1837[_0x3f1c4b(0x1de)],'message':_0x8f1837[_0x3f1c4b(0x1e4)],..._0x8f1837['hint']?{'hint':_0x8f1837[_0x3f1c4b(0x1da)]}:{},'cause':_0x34d9cf[_0x3f1c4b(0x1e2)]}};_0x190fcd=_0x5369c3['format']===_0x3f1c4b(0x1e6)?JSON['stringify'](_0x417783,null,0x2):JSON[_0x3f1c4b(0x1db)](_0x417783);}return process[_0x3f1c4b(0x1e9)][_0x3f1c4b(0x1e0)](_0x190fcd[_0x3f1c4b(0x1e3)]('\x0a')?_0x190fcd:_0x190fcd+'\x0a'),!![];}function printPrettyNotice(_0x27e0e4){const _0x17cb0a=a227_0x4198;if(!_0x27e0e4?.[_0x17cb0a(0x1d1)])return;console[_0x17cb0a(0x1e2)](_0x27e0e4[_0x17cb0a(0x1d1)][_0x17cb0a(0x1e4)]+'\x20('+_0x27e0e4[_0x17cb0a(0x1d1)][_0x17cb0a(0x1e7)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a228_0x4a10(_0x27e31a,_0x432f5e){_0x27e31a=_0x27e31a-0x12d;var _0x24e679=a228_0x24e6();var _0x4a105a=_0x24e679[_0x27e31a];return _0x4a105a;}(function(_0x2df045,_0x307f3c){var _0x289658=a228_0x4a10,_0x548afa=_0x2df045();while(!![]){try{var _0x39970d=-parseInt(_0x289658(0x135))/0x1*(-parseInt(_0x289658(0x12d))/0x2)+-parseInt(_0x289658(0x12f))/0x3+-parseInt(_0x289658(0x132))/0x4*(-parseInt(_0x289658(0x12e))/0x5)+parseInt(_0x289658(0x133))/0x6+parseInt(_0x289658(0x130))/0x7*(-parseInt(_0x289658(0x134))/0x8)+parseInt(_0x289658(0x131))/0x9+-parseInt(_0x289658(0x136))/0xa;if(_0x39970d===_0x307f3c)break;else _0x548afa['push'](_0x548afa['shift']());}catch(_0x4d1185){_0x548afa['push'](_0x548afa['shift']());}}}(a228_0x24e6,0x82d33));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a228_0x24e6(){var _0x4952a2=['8ICxtms','1hFoLtK','7424610MWDBVd','1159374ppZjHJ','865iusQDr','2351379eudHBk','5413737nuUJos','6083064qfUQLK','22828crDMjk','3555660IHhFzJ'];a228_0x24e6=function(){return _0x4952a2;};return a228_0x24e6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a229_0x2103(_0x3ba793,_0x12f6b8){_0x3ba793=_0x3ba793-0x12d;const _0x4431cd=a229_0x4431();let _0x2103fa=_0x4431cd[_0x3ba793];return _0x2103fa;}(function(_0x32b1ee,_0x18f4be){const _0x3a85ef=a229_0x2103,_0x17ce1f=_0x32b1ee();while(!![]){try{const _0x2d8f41=-parseInt(_0x3a85ef(0x12f))/0x1+-parseInt(_0x3a85ef(0x136))/0x2*(parseInt(_0x3a85ef(0x13b))/0x3)+parseInt(_0x3a85ef(0x130))/0x4+parseInt(_0x3a85ef(0x143))/0x5*(-parseInt(_0x3a85ef(0x135))/0x6)+-parseInt(_0x3a85ef(0x134))/0x7+parseInt(_0x3a85ef(0x132))/0x8*(parseInt(_0x3a85ef(0x13f))/0x9)+parseInt(_0x3a85ef(0x12e))/0xa;if(_0x2d8f41===_0x18f4be)break;else _0x17ce1f['push'](_0x17ce1f['shift']());}catch(_0x291876){_0x17ce1f['push'](_0x17ce1f['shift']());}}}(a229_0x4431,0xe054a));import{CliErrors}from'../errors.js';function a229_0x4431(){const _0x15e719=['type','23169720JeZjHJ','948031DLUBxL','3919476zQFYfM','map','3259984GEkakJ','Unknown\x20alias\x20\x22','4647888joxjdf','1038IKSzDg','12802YSQagr','flags','.\x20Run\x20`','Available\x20aliases:\x20','\x22.\x20','633pDAzsb','alias','join','code','27hlxjzw','some','`\x20requires\x20either\x20--code\x20or\x20--alias.','\x20api\x20pull`\x20first.','18435IwJarW','string','name','validation'];a229_0x4431=function(){return _0x15e719;};return a229_0x4431();}import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x9f7f17,_0x2f505d,_0x3aaf40,_0x55c753){const _0x3b6425=a229_0x2103,_0x41779d=_0x9f7f17['flags'][_0x3b6425(0x140)](_0x1e42b3=>_0x1e42b3[_0x3b6425(0x145)]===_0x3b6425(0x13e)&&_0x1e42b3[_0x3b6425(0x12d)]===_0x3b6425(0x144)),_0x2f0587=_0x9f7f17[_0x3b6425(0x137)][_0x3b6425(0x140)](_0x419bde=>_0x419bde[_0x3b6425(0x145)]===_0x3b6425(0x13c)&&_0x419bde['type']===_0x3b6425(0x144));if(!_0x41779d||!_0x2f0587)return;const _0x138a34=_0x2f505d[_0x3b6425(0x13e)]?String(_0x2f505d[_0x3b6425(0x13e)]):'',_0x2a7e0f=_0x2f505d[_0x3b6425(0x13c)]?String(_0x2f505d['alias']):'';if(!_0x138a34&&!_0x2a7e0f)throw CliErrors[_0x3b6425(0x146)]('`'+_0x55c753+_0x3b6425(0x141));if(_0x2a7e0f&&!_0x138a34){const _0xe50e66=resolveAlias(_0x3aaf40,_0x2a7e0f);if(!_0xe50e66){const _0x5770ca=listAliases(_0x3aaf40)[_0x3b6425(0x131)](_0x4f7c08=>_0x4f7c08['alias']),_0x10df54=_0x5770ca['length']?_0x3b6425(0x139)+_0x5770ca[_0x3b6425(0x13d)](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x3aaf40+_0x3b6425(0x138)+CLI_BIN_NAME+_0x3b6425(0x142);throw CliErrors[_0x3b6425(0x146)](_0x3b6425(0x133)+_0x2a7e0f+_0x3b6425(0x13a)+_0x10df54);}_0x2f505d[_0x3b6425(0x13e)]=_0xe50e66;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a230_0x31fbcd=a230_0x224f;(function(_0x2ad44b,_0x30e99f){const _0xd838e3=a230_0x224f,_0x7c1d4=_0x2ad44b();while(!![]){try{const _0xb95b9c=-parseInt(_0xd838e3(0x109))/0x1+parseInt(_0xd838e3(0x12e))/0x2*(-parseInt(_0xd838e3(0x130))/0x3)+-parseInt(_0xd838e3(0x134))/0x4+-parseInt(_0xd838e3(0x113))/0x5*(parseInt(_0xd838e3(0x100))/0x6)+parseInt(_0xd838e3(0x13e))/0x7+-parseInt(_0xd838e3(0x105))/0x8*(-parseInt(_0xd838e3(0x13a))/0x9)+parseInt(_0xd838e3(0x13f))/0xa*(parseInt(_0xd838e3(0x103))/0xb);if(_0xb95b9c===_0x30e99f)break;else _0x7c1d4['push'](_0x7c1d4['shift']());}catch(_0x3c5456){_0x7c1d4['push'](_0x7c1d4['shift']());}}}(a230_0x294f,0xef51d));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';function a230_0x294f(){const _0x5516b2=['currentApp','string','value','filter','../core/api-client.js','validation','appcode','\x20\x20\x20Continue?\x20[y/N]\x20','meowKey','command','object','LOVRABET_APPCODE','Set\x20appcode\x20via\x20`','rawFlags','format','defaultPageSize','RABETBASE_APPCODE','⚠\x20\x20High-risk\x20operation:\x20','some','configMissing','pretty','mergedCli','2NmUGFU','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','4123149aWfqRK','riskLevel','service','selectedAppName','2350920oygiVM','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','doctor','_notice','replace','Current\x20resolved\x20appcode\x20is\x20\x22','63mOtjUg','required','schema','map','11095238peaUmO','6860bXVhnw','hint','isNonInteractive','apps','300aiAyrO','defaultApp','has','19393TYillB','cookie','1841336UDGJot','cancelled','appCode','requiresAppCode','646955lZGVMt','resolveAppCode','defaultVerbose','verbose','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','name','hasFormat','explicitAppName','apiDir','update','81630PcztKx','nonInteractive','trim','resolve','resolveApiDomain'];a230_0x294f=function(){return _0x5516b2;};return a230_0x294f();}import{isNonInteractive as a230_0x17d1ad}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0xfe2b78){const _0x1c9b3d=a230_0x224f;return typeof _0xfe2b78===_0x1c9b3d(0x119)&&_0xfe2b78[_0x1c9b3d(0x115)]()?_0xfe2b78[_0x1c9b3d(0x115)]():undefined;}function a230_0x224f(_0x1bec91,_0x296386){_0x1bec91=_0x1bec91-0x100;const _0x294f24=a230_0x294f();let _0x224f56=_0x294f24[_0x1bec91];return _0x224f56;}function resolveEnvAppCode(){const _0x3b0010=a230_0x224f,_0x14bcfe=stringFlag(process.env.RABETBASE_APPCODE);if(_0x14bcfe)return{'name':_0x3b0010(0x128),'value':_0x14bcfe};const _0x348ee0=stringFlag(process.env.LOVRABET_APPCODE);if(_0x348ee0)return{'name':_0x3b0010(0x123),'value':_0x348ee0};return undefined;}function hasExplicitAppCode(_0x4b32ff,_0xf746cb){const _0x523a8a=a230_0x224f;return!!(stringFlag(_0x4b32ff[_0x523a8a(0x11e)])||stringFlag(_0xf746cb[_0x523a8a(0x11e)]));}function assertEnvAppCodeNotIgnored(_0x379b3d,_0x588088,_0x10aeb4){const _0x29e060=a230_0x224f;if(!_0x588088||_0x10aeb4||_0x379b3d===_0x588088[_0x29e060(0x11a)])return;const _0x2b812c=_0x379b3d?_0x29e060(0x139)+_0x379b3d+'\x22.':_0x29e060(0x12f);throw CliErrors[_0x29e060(0x11d)](_0x588088[_0x29e060(0x10e)]+'='+_0x588088[_0x29e060(0x11a)]+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x2b812c+'\x20'+(_0x29e060(0x10d)+_0x588088[_0x29e060(0x10e)]+'\x22.'));}export function createPipelineEnv(_0x241b55,_0x3674a6,_0x1d6035=[]){const _0x27a716=a230_0x224f;return{'rawFlags':_0x3674a6,'args':_0x1d6035,'resolveAppCode':()=>_0x241b55['appCode'],'resolveCookie':()=>_0x241b55[_0x27a716(0x104)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a230_0x17d1ad(_0x3674a6),'defaultFormat':_0x241b55['format'],'defaultPageSize':_0x241b55['pageSize'],'defaultVerbose':_0x241b55[_0x27a716(0x10c)],'apiDir':_0x241b55['apiDir'],'riskLevel':_0x241b55[_0x27a716(0x131)],'selectedAppName':_0x241b55[_0x27a716(0x110)],'mergedCli':{'defaultApp':_0x241b55[_0x27a716(0x101)],'currentApp':_0x241b55[_0x27a716(0x118)],'appCode':_0x241b55[_0x27a716(0x107)],'apps':_0x241b55[_0x27a716(0x142)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a230_0x31fbcd(0x11b)](_0x439eeb=>PIPELINE_FLAG_NAMES[a230_0x31fbcd(0x102)](_0x439eeb[a230_0x31fbcd(0x10e)]))[a230_0x31fbcd(0x13d)](({name:_0x53fe32,type:_0x23e991,description:_0x5d97ed})=>({'name':_0x53fe32,'type':_0x23e991,'description':_0x5d97ed})),'formatOutput':formatOutput,'getCommandLabel'(_0x40be7f){const _0x40dca9=a230_0x31fbcd;return CLI_BIN_NAME+'\x20'+_0x40be7f[_0x40dca9(0x132)]+'\x20'+_0x40be7f[_0x40dca9(0x121)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x2ce02f){const _0x489d18=a230_0x31fbcd;return CliErrors[_0x489d18(0x11d)](_0x2ce02f);}},async 'prepare'(_0x34c825,_0x409320,_0x5c0514,_0x276921){const _0x22f005=a230_0x31fbcd,_0x24b096=_0x409320[_0x22f005(0x111)]||DEFAULT_API_DIR;resolveAliasToCode(_0x34c825,_0x5c0514,_0x24b096,_0x276921);const _0x10c1a0=resolveCommandAuthMode(_0x34c825);let _0x80453e='';if(_0x10c1a0!=='none'){_0x80453e=_0x409320['resolveCookie']()||'';if(!_0x80453e){if(_0x10c1a0===_0x22f005(0x13b))throw CliErrors['authRequired']();}else{const {setActiveCookie:_0x4229ff}=await import(_0x22f005(0x11c));_0x4229ff(_0x80453e);}}const _0x264081=_0x409320[_0x22f005(0x10a)]()??'';if(_0x34c825[_0x22f005(0x108)]!==![]){assertEnvAppCodeNotIgnored(_0x264081,resolveEnvAppCode(),hasExplicitAppCode(_0x5c0514,_0x409320['rawFlags']));if(!_0x264081)throw CliErrors[_0x22f005(0x12b)](_0x22f005(0x124)+CLI_BIN_NAME+_0x22f005(0x135));}return{'defaults':{'booleans':{'verbose':_0x409320[_0x22f005(0x10b)]},'numbers':{'pagesize':_0x409320[_0x22f005(0x127)]}},'extras':{'appCode':_0x264081,'cookie':_0x80453e,'apiDomain':_0x409320[_0x22f005(0x117)](),'apiDir':_0x24b096,'selectedAppName':_0x409320[_0x22f005(0x133)],'mergedCli':_0x409320[_0x22f005(0x12d)]}};},async 'confirmHighRisk'({env:_0x391d0f,commandLabel:_0x1107a7}){const _0x4acf21=a230_0x31fbcd;if(_0x391d0f[_0x4acf21(0x141)])throw CliErrors[_0x4acf21(0x11d)]('High-risk\x20operation\x20`'+_0x1107a7+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':[_0x4acf21(0x129)+_0x1107a7,_0x4acf21(0x11f)],'createCancelledError':_0x3bffb3=>CliErrors[_0x4acf21(0x106)](_0x3bffb3)});},async 'finalize'(){const _0x4a55ed=a230_0x31fbcd,{clearActiveCookie:_0x4ecf95}=await import(_0x4a55ed(0x11c));_0x4ecf95();}};export async function runCommand(_0x2e0010,_0x2c08dd){const _0x219866=a230_0x31fbcd;assertRejectedFlags(_0x2e0010,_0x2c08dd[_0x219866(0x125)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x2e0010)?withUpdateNotice(_0x2e0010):_0x2e0010,_0x2c08dd,runnerAdapter);}function assertRejectedFlags(_0xa830a9,_0x10a1ae){const _0x1cdd3d=a230_0x31fbcd;for(const _0x5c275b of _0xa830a9['rejectedFlags']??[]){const _0x8d98d7=GLOBAL_FLAGS['find'](_0x34c1a0=>_0x34c1a0[_0x1cdd3d(0x10e)]===_0x5c275b[_0x1cdd3d(0x10e)]),_0x144cb4=new Set([_0x5c275b[_0x1cdd3d(0x10e)],toCamelCase(_0x5c275b[_0x1cdd3d(0x10e)]),_0x8d98d7?.[_0x1cdd3d(0x120)]]),_0x44fe60=[..._0x144cb4][_0x1cdd3d(0x12a)](_0x3565ff=>{if(!_0x3565ff)return![];const _0x4f3b04=_0x10a1ae[_0x3565ff];return _0x4f3b04!==undefined&&_0x4f3b04!==null&&_0x4f3b04!==![];});if(_0x44fe60)throw CliErrors[_0x1cdd3d(0x11d)](_0x5c275b['message'],_0x5c275b[_0x1cdd3d(0x140)]);}}function toCamelCase(_0x147dca){const _0x4b82c0=a230_0x31fbcd;return _0x147dca[_0x4b82c0(0x138)](/-([a-z])/g,(_0x327821,_0x48123a)=>_0x48123a['toUpperCase']());}function shouldAttachUpdateNotice(_0x2ef56f){const _0xa56729=a230_0x31fbcd;if(_0x2ef56f[_0xa56729(0x10f)]===![])return![];return![_0xa56729(0x112),_0xa56729(0x13c),_0xa56729(0x136)]['includes'](_0x2ef56f['service']);}function withUpdateNotice(_0x3401bf){return{..._0x3401bf,async 'execute'(_0x2e4881){const _0x1a2423=a230_0x224f,_0x2bc2fd=shouldResolveUpdateNotice(_0x2e4881)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x1a2423(0x116)](null),_0x54879a=await _0x3401bf['execute'](_0x2e4881);return attachUpdateNotice(_0x54879a,await _0x2bc2fd);}};}function shouldResolveUpdateNotice(_0x35ade6){const _0x109a85=a230_0x31fbcd;return _0x35ade6[_0x109a85(0x126)]===_0x109a85(0x12c)&&!_0x35ade6[_0x109a85(0x114)];}function attachUpdateNotice(_0x53466c,_0x18cdb1){const _0xe63d0e=a230_0x31fbcd;if(!_0x18cdb1||!_0x53466c||typeof _0x53466c!==_0xe63d0e(0x122))return _0x53466c;const _0x13f3b5=_0x53466c,_0x5813c1=typeof _0x13f3b5['_notice']===_0xe63d0e(0x122)&&_0x13f3b5[_0xe63d0e(0x137)]!==null?_0x13f3b5[_0xe63d0e(0x137)]:{};return{..._0x13f3b5,'_notice':{..._0x5813c1,'update':_0x18cdb1}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a231_0x2660(){const _0x278876=['307360oKqLpr','938310iXBngD','3144VNXcmy','3221670kkTcXD','34279aKPOfn','820080agRPBw','1304810wlrOrE','650975FdxdPv'];a231_0x2660=function(){return _0x278876;};return a231_0x2660();}function a231_0x2f7b(_0x1798f1,_0x47f4ba){_0x1798f1=_0x1798f1-0xe7;const _0x266060=a231_0x2660();let _0x2f7bc5=_0x266060[_0x1798f1];return _0x2f7bc5;}(function(_0x14aae7,_0x2fd957){const _0x5ede7f=a231_0x2f7b,_0x1f7646=_0x14aae7();while(!![]){try{const _0x3e1043=-parseInt(_0x5ede7f(0xe9))/0x1+-parseInt(_0x5ede7f(0xea))/0x2+-parseInt(_0x5ede7f(0xeb))/0x3+-parseInt(_0x5ede7f(0xe7))/0x4+parseInt(_0x5ede7f(0xe8))/0x5+-parseInt(_0x5ede7f(0xed))/0x6+parseInt(_0x5ede7f(0xee))/0x7*(parseInt(_0x5ede7f(0xec))/0x8);if(_0x3e1043===_0x2fd957)break;else _0x1f7646['push'](_0x1f7646['shift']());}catch(_0x4ff987){_0x1f7646['push'](_0x1f7646['shift']());}}}(a231_0x2660,0x4f9cd));import{buildSchemaPayload as a231_0x590872}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';export async function buildSchemaPayload(){const {serviceRegistry:_0x512169,findDefinition:_0x26d39e}=await import('../commands/registry.js');return a231_0x590872({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x512169,'buildAllFlags':buildAllFlags,'findDefinition':_0x26d39e});}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a232_0x56e9(_0x1ecaa1,_0x5a2742){_0x1ecaa1=_0x1ecaa1-0x11e;var _0x372391=a232_0x3723();var _0x56e920=_0x372391[_0x1ecaa1];return _0x56e920;}(function(_0x12c205,_0x4d7c00){var _0x346862=a232_0x56e9,_0x4ceb3b=_0x12c205();while(!![]){try{var _0x596ddb=parseInt(_0x346862(0x125))/0x1*(parseInt(_0x346862(0x121))/0x2)+-parseInt(_0x346862(0x128))/0x3+-parseInt(_0x346862(0x122))/0x4+-parseInt(_0x346862(0x124))/0x5+parseInt(_0x346862(0x120))/0x6*(-parseInt(_0x346862(0x11e))/0x7)+parseInt(_0x346862(0x123))/0x8*(parseInt(_0x346862(0x126))/0x9)+-parseInt(_0x346862(0x11f))/0xa*(-parseInt(_0x346862(0x127))/0xb);if(_0x596ddb===_0x4d7c00)break;else _0x4ceb3b['push'](_0x4ceb3b['shift']());}catch(_0x8e3f32){_0x4ceb3b['push'](_0x4ceb3b['shift']());}}}(a232_0x3723,0x238e4));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';function a232_0x3723(){var _0x31dacb=['85842sfHEkJ','42dgmmSj','10jOZjaJ','259746MpJviq','53566VsKEZG','350736AmPPTY','855608HtvLlJ','1293510JVEWyq','10rXEtlh','9rdwCvx','4461611HPaTpG'];a232_0x3723=function(){return _0x31dacb;};return a232_0x3723();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a233_0x2fa068=a233_0x30ba;function a233_0x4ebd(){const _0x23343d=['269274oXisrG','2251512Qriczs','68998YleHSh','1593272bRPjWV','24IRHCQX','2.3.15-beta.1','92692UOMufN','2026-08-07T14:35:54.772Z','7VWgUvS','1334830mxyqlE','47187pPahlu','v2.3.15-beta.1'];a233_0x4ebd=function(){return _0x23343d;};return a233_0x4ebd();}(function(_0x301a3f,_0x2ee904){const _0x333297=a233_0x30ba,_0x5b9401=_0x301a3f();while(!![]){try{const _0x4e77ea=-parseInt(_0x333297(0x1c4))/0x1+parseInt(_0x333297(0x1c8))/0x2+parseInt(_0x333297(0x1be))/0x3*(-parseInt(_0x333297(0x1c0))/0x4)+parseInt(_0x333297(0x1c3))/0x5+-parseInt(_0x333297(0x1c6))/0x6*(-parseInt(_0x333297(0x1c2))/0x7)+-parseInt(_0x333297(0x1bd))/0x8+parseInt(_0x333297(0x1c7))/0x9;if(_0x4e77ea===_0x2ee904)break;else _0x5b9401['push'](_0x5b9401['shift']());}catch(_0x3895a9){_0x5b9401['push'](_0x5b9401['shift']());}}}(a233_0x4ebd,0x283ae));export const VERSION=a233_0x2fa068(0x1bf);export const GIT_TAG=a233_0x2fa068(0x1c5);export const GIT_COMMIT='46bdfeb';function a233_0x30ba(_0x3b840e,_0x328217){_0x3b840e=_0x3b840e-0x1bd;const _0x4ebde4=a233_0x4ebd();let _0x30bae8=_0x4ebde4[_0x3b840e];return _0x30bae8;}export const BUILD_TIME=a233_0x2fa068(0x1c1);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x7b8b9,_0x137915){var _0x5eaae7=a234_0x2d9b,_0x5e6b4a=_0x7b8b9();while(!![]){try{var _0x2c318f=-parseInt(_0x5eaae7(0x1eb))/0x1+parseInt(_0x5eaae7(0x1e8))/0x2*(-parseInt(_0x5eaae7(0x1ee))/0x3)+parseInt(_0x5eaae7(0x1f0))/0x4+-parseInt(_0x5eaae7(0x1ed))/0x5*(parseInt(_0x5eaae7(0x1ec))/0x6)+parseInt(_0x5eaae7(0x1e9))/0x7+-parseInt(_0x5eaae7(0x1f3))/0x8+-parseInt(_0x5eaae7(0x1f2))/0x9*(-parseInt(_0x5eaae7(0x1e5))/0xa);if(_0x2c318f===_0x137915)break;else _0x5e6b4a['push'](_0x5e6b4a['shift']());}catch(_0x2b3820){_0x5e6b4a['push'](_0x5e6b4a['shift']());}}}(a234_0x25f0,0xc3832));function a234_0x2d9b(_0x1a11e1,_0x5d9887){_0x1a11e1=_0x1a11e1-0x1e4;var _0x25f094=a234_0x25f0();var _0x2d9bd4=_0x25f094[_0x1a11e1];return _0x2d9bd4;}import a234_0x468d0b from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a234_0x25f0(){var _0x441fe1=['\x20to\x20view\x20available\x20commands.','3847560tkyhJy','bold','8595qnJVMH','10450640QPDvqr','\x20--help','39310pgYBKv','green','log','6pWilYZ','6286868HWMwTs','\x20\x20Use\x20','1414260WKoWlm','2581770aSWWoi','10ycqynH','1232121hgEZAe'];a234_0x25f0=function(){return _0x441fe1;};return a234_0x25f0();}export function showHelp(){var _0x2cdbcf=a234_0x2d9b;console[_0x2cdbcf(0x1e7)](),console['log'](a234_0x468d0b[_0x2cdbcf(0x1e6)]['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x2cdbcf(0x1e7)](),console['log'](_0x2cdbcf(0x1ea)+a234_0x468d0b[_0x2cdbcf(0x1e6)][_0x2cdbcf(0x1f1)](CLI_BIN_NAME+_0x2cdbcf(0x1e4))+_0x2cdbcf(0x1ef)),console[_0x2cdbcf(0x1e7)]();}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x340819,_0x394ff8){const _0x2c3aed=a235_0x1a9d,_0x4bc148=_0x340819();while(!![]){try{const _0xc4bc19=-parseInt(_0x2c3aed(0xf0))/0x1+-parseInt(_0x2c3aed(0x100))/0x2+parseInt(_0x2c3aed(0xf7))/0x3+parseInt(_0x2c3aed(0xff))/0x4+parseInt(_0x2c3aed(0x102))/0x5+parseInt(_0x2c3aed(0xeb))/0x6+-parseInt(_0x2c3aed(0x104))/0x7;if(_0xc4bc19===_0x394ff8)break;else _0x4bc148['push'](_0x4bc148['shift']());}catch(_0x1094cd){_0x4bc148['push'](_0x4bc148['shift']());}}}(a235_0x1699,0x19f8c));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(_0x1bb0d7){const _0x15c625=a235_0x1a9d,_0x101aa6=[];for(const [_0x21fe06,_0x581cbf]of Object[_0x15c625(0xfe)](_0x1bb0d7)){if(_0x581cbf===!![]){const _0x823668=_0x21fe06[_0x15c625(0x103)](/([A-Z])/g,'-$1')[_0x15c625(0x105)]();_0x101aa6['push'](_0x823668);}}return _0x101aa6;}export function parseDynamicFlags(){const _0x27ffa2=a235_0x1a9d,_0x2d2237=[];for(let _0x5568dc=0x3;_0x5568dc<process[_0x27ffa2(0xfc)]['length'];_0x5568dc++){const _0x532670=process[_0x27ffa2(0xfc)][_0x5568dc];if(_0x532670&&_0x532670[_0x27ffa2(0xf9)]('--')){const _0x425c6c=_0x532670['slice'](0x2);_0x425c6c&&!_0x425c6c[_0x27ffa2(0xea)]('=')&&_0x2d2237[_0x27ffa2(0xec)](_0x425c6c);}}return _0x2d2237;}export function getAllProvidedFlags(_0x4ede1b){const _0x1a1b12=a235_0x1a9d,_0x10e81e=camelCaseFlagsToKebab(_0x4ede1b),_0x252422=parseDynamicFlags(),_0x41adc4=new Set([..._0x10e81e,..._0x252422]);return Array[_0x1a1b12(0xf4)](_0x41adc4);}function a235_0x1a9d(_0x2482a2,_0x18b8d7){_0x2482a2=_0x2482a2-0xe8;const _0x169981=a235_0x1699();let _0x1a9d99=_0x169981[_0x2482a2];return _0x1a9d99;}export function normalizeLegacyBffSaveFlags(_0x86228f){const _0x36e5e8=a235_0x1a9d,_0x355e3a=new Set(_0x86228f);return _0x355e3a['has']('dangerously-bff-save')&&_0x355e3a[_0x36e5e8(0xee)](_0x36e5e8(0xfd)),Array['from'](_0x355e3a);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;function a235_0x1699(){const _0x49d203=['728784lKJnnT','toLowerCase','cwd','help','\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20','includes','392928ZOOtkm','push','Error:\x20Unsupported\x20command:\x20','add','log','106597ycmmjx','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','error','skill','from','不支持的命令:\x20','exit','571596khHJAs','Equivalent\x20command:\x20','startsWith','setLogPath','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','argv','enable-bff-save','entries','88996CFvCfw','161702lOKIcS','--help','598355RjWXvk','replace'];a235_0x1699=function(){return _0x49d203;};return a235_0x1699();}export async function skillsCommand(_0x4a4124,_0x47c962,_0x172c05){const _0x25e444=a235_0x1a9d;logger[_0x25e444(0xfa)](process[_0x25e444(0x106)]());if(_0x172c05?.[_0x25e444(0xe8)]||_0x4a4124===_0x25e444(0x101)){showHelp();return;}console['error'](_0x25e444(0xed)+(_0x4a4124||'(empty)')),console[_0x25e444(0xef)]('\x0aAvailable\x20commands:'),console['log']('\x20\x20'+CLI_BIN_NAME+_0x25e444(0xf1)),console['log'](''),console['log'](_0x25e444(0xf8)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x25e444(0xf2)](_0x25e444(0xf3),_0x25e444(0xf5)+_0x4a4124),process[_0x25e444(0xf6)](0x1);}function showHelp(){const _0x623035=a235_0x1a9d;console[_0x623035(0xef)](_0x623035(0xfb)+CLI_BIN_NAME+_0x623035(0xe9)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a236_0x6e559a=a236_0x1229;(function(_0x59bf4d,_0x5632ba){const _0x3fdf99=a236_0x1229,_0x45e881=_0x59bf4d();while(!![]){try{const _0x56eea8=-parseInt(_0x3fdf99(0x1c9))/0x1*(parseInt(_0x3fdf99(0x1ca))/0x2)+parseInt(_0x3fdf99(0x1c1))/0x3+parseInt(_0x3fdf99(0x1b6))/0x4+-parseInt(_0x3fdf99(0x1cc))/0x5*(parseInt(_0x3fdf99(0x1c7))/0x6)+-parseInt(_0x3fdf99(0x1b8))/0x7+parseInt(_0x3fdf99(0x1bb))/0x8+-parseInt(_0x3fdf99(0x1bd))/0x9*(parseInt(_0x3fdf99(0x1b1))/0xa);if(_0x56eea8===_0x5632ba)break;else _0x45e881['push'](_0x45e881['shift']());}catch(_0x29b156){_0x45e881['push'](_0x45e881['shift']());}}}(a236_0x585e,0x25b10));import{spawnSync}from'node:child_process';function a236_0x585e(){const _0x210614=['inherit','remove','stderr','12ZBzFog','Lovrabet','163gnnRjC','524OUwUkk','stdio','360250VKBGvH','pipe','toString','lovrabet/lovrabet-skill','660140HCVuem','npx','exit\x20','stdout','skills','1037860MHaGnF','skill','761908cnerCY','yes','add','951104bsnlFa','unknown','18GBINLT','status','log','trim','611127bvuqAk','push','join'];a236_0x585e=function(){return _0x210614;};return a236_0x585e();}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_0x6e559a(0x1b5);function a236_0x1229(_0x590df5,_0x42e91a){_0x590df5=_0x590df5-0x1b0;const _0x585efc=a236_0x585e();let _0x1229d3=_0x585efc[_0x590df5];return _0x1229d3;}export const NPX_SKILLS_SUBCOMMAND_ADD=a236_0x6e559a(0x1ba);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE=a236_0x6e559a(0x1b0);export const DEFAULT_RABETBASE_SKILL_NAME=a236_0x6e559a(0x1c8);export function buildNpxSkillsAddArgv(_0xa1c0ba){const _0x3876a3=a236_0x6e559a,_0x2ffa9f=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0xa1c0ba&&_0x2ffa9f[_0x3876a3(0x1c2)](NPX_SKILLS_FLAG_SKILL,_0xa1c0ba),_0x2ffa9f;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a236_0x6e559a(0x1b2),...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a236_0x6e559a(0x1c3)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x5d141a,_0x15eec8){const _0x5f1878=a236_0x6e559a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x20e9ba=_0x15eec8?.[_0x5f1878(0x1cb)]??_0x5f1878(0x1c4),_0x34a0c1=resolveNpmBin(_0x5f1878(0x1b2)),_0xe83f15=buildNpxSkillsAddArgv(_0x15eec8?.[_0x5f1878(0x1b7)]),_0x5a1c6a=[_0x5f1878(0x1b2),..._0xe83f15][_0x5f1878(0x1c3)]('\x20');console[_0x5f1878(0x1bf)]('*\x20'+_0x5a1c6a);const _0x4bc81f=spawnSync(_0x34a0c1,_0xe83f15,{'cwd':_0x5d141a,'stdio':_0x20e9ba,'env':process.env,'shell':![]}),_0x3e3a3c=_0x4bc81f[_0x5f1878(0x1be)];if(_0x3e3a3c===0x0)return{'ok':!![],'status':0x0};let _0x3fc3c4=_0x5f1878(0x1b3)+(_0x3e3a3c??_0x5f1878(0x1bc));if(_0x20e9ba==='pipe'){const _0x5476d8=_0x4bc81f[_0x5f1878(0x1c6)]?_0x4bc81f['stderr']['toString']()[_0x5f1878(0x1c0)]():'',_0x1119af=_0x4bc81f[_0x5f1878(0x1b4)]?_0x4bc81f['stdout'][_0x5f1878(0x1ce)]()[_0x5f1878(0x1c0)]():'';if(_0x5476d8)_0x3fc3c4=_0x5476d8;else{if(_0x1119af)_0x3fc3c4=_0x1119af;}}return{'ok':![],'status':_0x3e3a3c??null,'error':_0x3fc3c4};}export function runNpxSkillsRemove(_0x594abe,_0xd2af,_0x20a330=LEGACY_RABETBASE_SKILL_SOURCE){const _0x5d9758=a236_0x6e559a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xb65ca9=_0xd2af?.[_0x5d9758(0x1cb)]??_0x5d9758(0x1c4),_0x4d12a9=resolveNpmBin('npx'),_0x2592b1=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x5d9758(0x1c5),_0x20a330,NPX_SKILLS_FLAG_SKILL,_0xd2af?.[_0x5d9758(0x1b7)]??DEFAULT_RABETBASE_SKILL_NAME,..._0xd2af?.[_0x5d9758(0x1b9)]?['-y']:[]],_0x48318f=[_0x4d12a9,..._0x2592b1][_0x5d9758(0x1c3)]('\x20');console[_0x5d9758(0x1bf)]('*\x20'+_0x48318f);const _0x227193=spawnSync(_0x4d12a9,_0x2592b1,{'cwd':_0x594abe,'stdio':_0xb65ca9,'env':process.env,'shell':![]}),_0x3e3f24=_0x227193[_0x5d9758(0x1be)];if(_0x3e3f24===0x0)return{'ok':!![],'status':0x0};let _0xc8b7d7=_0x5d9758(0x1b3)+(_0x3e3f24??_0x5d9758(0x1bc));if(_0xb65ca9===_0x5d9758(0x1cd)){const _0x2402c1=_0x227193[_0x5d9758(0x1c6)]?_0x227193[_0x5d9758(0x1c6)][_0x5d9758(0x1ce)]()[_0x5d9758(0x1c0)]():'',_0x37fbac=_0x227193[_0x5d9758(0x1b4)]?_0x227193[_0x5d9758(0x1b4)][_0x5d9758(0x1ce)]()[_0x5d9758(0x1c0)]():'';if(_0x2402c1)_0xc8b7d7=_0x2402c1;else{if(_0x37fbac)_0xc8b7d7=_0x37fbac;}}return{'ok':![],'status':_0x3e3f24??null,'error':_0xc8b7d7};}export function runNpxSkillsAddGlobal(_0x48c0a5,_0x452eb2,_0x573dae){const _0x4e9d86=a236_0x6e559a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1d3d79=_0x573dae?.[_0x4e9d86(0x1cb)]??'inherit',_0x518dd9=resolveNpmBin(_0x4e9d86(0x1b2)),_0x1df8d0=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x452eb2,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x36e2ab=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x452eb2,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console[_0x4e9d86(0x1bf)]('*\x20'+_0x36e2ab);const _0x185a5=spawnSync(_0x518dd9,_0x1df8d0,{'cwd':_0x48c0a5,'stdio':_0x1d3d79,'env':process.env,'shell':![]}),_0x5c2c11=_0x185a5[_0x4e9d86(0x1be)];if(_0x5c2c11===0x0)return{'ok':!![],'status':0x0};let _0x4a4880=_0x4e9d86(0x1b3)+(_0x5c2c11??_0x4e9d86(0x1bc));if(_0x1d3d79===_0x4e9d86(0x1cd)){const _0x2b2f0d=_0x185a5[_0x4e9d86(0x1c6)]?_0x185a5[_0x4e9d86(0x1c6)][_0x4e9d86(0x1ce)]()[_0x4e9d86(0x1c0)]():'',_0x2709f1=_0x185a5[_0x4e9d86(0x1b4)]?_0x185a5['stdout'][_0x4e9d86(0x1ce)]()[_0x4e9d86(0x1c0)]():'';if(_0x2b2f0d)_0x4a4880=_0x2b2f0d;else{if(_0x2709f1)_0x4a4880=_0x2709f1;}}return{'ok':![],'status':_0x5c2c11??null,'error':_0x4a4880};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a237_0x5e8a(){const _0x5243b3=['2384728QKBkAe','message','service','20ZEZeIz','durationMs','985292Qqvcpj','9675927xqOBwx','48252ylRPVX','332133MHmmXb','5SvTYGn','1633758ISVaAr','test','rabetbase.command','159kduVar','2775462HlQHiv','stringify','error'];a237_0x5e8a=function(){return _0x5243b3;};return a237_0x5e8a();}(function(_0x385d26,_0x21ff6e){const _0x4b3c55=a237_0x16ae,_0x5b1203=_0x385d26();while(!![]){try{const _0x4d0c73=parseInt(_0x4b3c55(0x78))/0x1+-parseInt(_0x4b3c55(0x75))/0x2+-parseInt(_0x4b3c55(0x6c))/0x3*(parseInt(_0x4b3c55(0x77))/0x4)+-parseInt(_0x4b3c55(0x79))/0x5*(parseInt(_0x4b3c55(0x6d))/0x6)+-parseInt(_0x4b3c55(0x7a))/0x7+-parseInt(_0x4b3c55(0x70))/0x8+parseInt(_0x4b3c55(0x76))/0x9*(parseInt(_0x4b3c55(0x73))/0xa);if(_0x4d0c73===_0x21ff6e)break;else _0x5b1203['push'](_0x5b1203['shift']());}catch(_0x3d4535){_0x5b1203['push'](_0x5b1203['shift']());}}}(a237_0x5e8a,0x56fc4));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 a237_0x16ae(_0x816994,_0x4f7153){_0x816994=_0x816994-0x6a;const _0x5e8a7d=a237_0x5e8a();let _0x16ae6c=_0x5e8a7d[_0x816994];return _0x16ae6c;}function isSensitiveKey(_0x4f60a9){const _0x5ce5e0=a237_0x16ae;return SENSITIVE_PATTERNS['some'](_0x59dcbd=>_0x59dcbd[_0x5ce5e0(0x6a)](_0x4f60a9));}function sanitizeFlags(_0x585260){const _0x4b1d43={};for(const [_0xeb6141,_0x583629]of Object['entries'](_0x585260)){isSensitiveKey(_0xeb6141)?_0x4b1d43[_0xeb6141]=_0x583629!=null&&_0x583629!==''?'[REDACTED]':_0x583629:_0x4b1d43[_0xeb6141]=_0x583629;}return _0x4b1d43;}export async function reportCommandTrace(_0x23a155){const _0x257970=a237_0x16ae;try{const _0x24b01e=sanitizeFlags(_0x23a155['flags']);await sendCliTraceLog({'spanName':_0x257970(0x6b),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x23a155[_0x257970(0x72)],'command.name':_0x23a155['command'],'command.flags':JSON[_0x257970(0x6e)](_0x24b01e),..._0x23a155[_0x257970(0x74)]!=null?{'command.duration_ms':_0x23a155['durationMs']}:{},..._0x23a155[_0x257970(0x6f)]?{'command.error':_0x23a155[_0x257970(0x6f)]instanceof Error?_0x23a155[_0x257970(0x6f)][_0x257970(0x71)]:String(_0x23a155[_0x257970(0x6f)])}:{}}});}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x28fd0d,_0x12d681){var _0x431b61=a238_0x856c,_0x50dac0=_0x28fd0d();while(!![]){try{var _0x22a0d8=-parseInt(_0x431b61(0x1d0))/0x1*(parseInt(_0x431b61(0x1cb))/0x2)+parseInt(_0x431b61(0x1c9))/0x3*(parseInt(_0x431b61(0x1c5))/0x4)+-parseInt(_0x431b61(0x1d1))/0x5*(-parseInt(_0x431b61(0x1cc))/0x6)+-parseInt(_0x431b61(0x1c7))/0x7*(-parseInt(_0x431b61(0x1cf))/0x8)+-parseInt(_0x431b61(0x1ce))/0x9*(parseInt(_0x431b61(0x1c2))/0xa)+parseInt(_0x431b61(0x1c6))/0xb+parseInt(_0x431b61(0x1ca))/0xc;if(_0x22a0d8===_0x12d681)break;else _0x50dac0['push'](_0x50dac0['shift']());}catch(_0x4e3201){_0x50dac0['push'](_0x50dac0['shift']());}}}(a238_0x2369,0xc7202));function a238_0x856c(_0x24ab2f,_0x3cb6e1){_0x24ab2f=_0x24ab2f-0x1c2;var _0x2369dd=a238_0x2369();var _0x856c0b=_0x2369dd[_0x24ab2f];return _0x856c0b;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a238_0x2369(){var _0x114489=['4509068lKNpgf','8056026XotOxw','5893538tjdaXa','cli.help','3vuQECX','11267628UOgNKU','394906QMMyzg','12228iNjCNp','service','36DEBllR','8ZwAPbl','8UzRAUT','845SwZfTr','3974290aGFjWU','Failed\x20to\x20report\x20CLI\x20help\x20trace:','error'];a238_0x2369=function(){return _0x114489;};return a238_0x2369();}export async function reportCliHelpTrace(_0x35caa3,_0x387f05){var _0x1ab023=a238_0x856c;try{await sendCliTraceLog({'spanName':_0x1ab023(0x1c8),'logData':{'rabetbase.help.kind':_0x35caa3,..._0x387f05?.['service']&&{'rabetbase.help.service':_0x387f05[_0x1ab023(0x1cd)]}}});}catch(_0x2cc44c){console[_0x1ab023(0x1c4)](_0x1ab023(0x1c3),_0x2cc44c);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5f62a6,_0x162d12){const _0x4abf4d=a239_0xf871,_0x1b52a0=_0x5f62a6();while(!![]){try{const _0x52dee6=parseInt(_0x4abf4d(0x1d2))/0x1+parseInt(_0x4abf4d(0x1c4))/0x2+parseInt(_0x4abf4d(0x1c9))/0x3*(-parseInt(_0x4abf4d(0x1d1))/0x4)+parseInt(_0x4abf4d(0x1ce))/0x5*(-parseInt(_0x4abf4d(0x1d0))/0x6)+parseInt(_0x4abf4d(0x1cf))/0x7+-parseInt(_0x4abf4d(0x1cd))/0x8+parseInt(_0x4abf4d(0x1cc))/0x9;if(_0x52dee6===_0x162d12)break;else _0x1b52a0['push'](_0x1b52a0['shift']());}catch(_0x1d2f84){_0x1b52a0['push'](_0x1b52a0['shift']());}}}(a239_0x535e,0x4955b));function a239_0x535e(){const _0x3c3866=['user','production','6mLlNHk','unknown','tenant','3720546iJCWgV','4552816CZWKVV','911040aBwPIG','2175460eBdIEC','6dhrwmc','320924lGaKgs','217555hhKKai','540844KWwvOj','nickname','daily'];a239_0x535e=function(){return _0x3c3866;};return a239_0x535e();}function a239_0xf871(_0x8fa00e,_0x24a957){_0x8fa00e=_0x8fa00e-0x1c4;const _0x535e23=a239_0x535e();let _0xf87118=_0x535e23[_0x8fa00e];return _0xf87118;}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 _0x4f7a2f=a239_0xf871,_0xf3df92=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x2f579d=_0xf3df92?.[_0x4f7a2f(0x1c7)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x4f7a2f(0x1ca)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x4f7a2f(0x1c6):_0x4f7a2f(0x1c8))}),setUserContext({'id':_0x2f579d?.['id'],'username':_0x2f579d?.['username'],'nickname':_0x2f579d?.[_0x4f7a2f(0x1c5)],'email':_0x2f579d?.['email'],'tenantCode':_0x2f579d?.[_0x4f7a2f(0x1cb)]['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0xf3df92;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x132192,_0x2fcaf0){const _0x10ee4b=a240_0x2a2f,_0x56c5eb=_0x132192();while(!![]){try{const _0x54a55a=-parseInt(_0x10ee4b(0x15a))/0x1+-parseInt(_0x10ee4b(0x151))/0x2+-parseInt(_0x10ee4b(0x158))/0x3+-parseInt(_0x10ee4b(0x156))/0x4+-parseInt(_0x10ee4b(0x157))/0x5+parseInt(_0x10ee4b(0x159))/0x6+-parseInt(_0x10ee4b(0x153))/0x7*(-parseInt(_0x10ee4b(0x155))/0x8);if(_0x54a55a===_0x2fcaf0)break;else _0x56c5eb['push'](_0x56c5eb['shift']());}catch(_0x155d8e){_0x56c5eb['push'](_0x56c5eb['shift']());}}}(a240_0x22aa,0x4a0dd));function a240_0x2a2f(_0x1165d0,_0xe4aa68){_0x1165d0=_0x1165d0-0x151;const _0x22aa6c=a240_0x22aa();let _0x2a2fd5=_0x22aa6c[_0x1165d0];return _0x2a2fd5;}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;}function a240_0x22aa(){const _0x95c356=['beforeExit','then','842012aAupTH','once','7dJFYCY','SIGTERM','10543384BteNxg','566940vTJzsa','1808700EItJEh','816390NgLtOs','1812216SwgFWs','120023amgfew','SIGINT'];a240_0x22aa=function(){return _0x95c356;};return a240_0x22aa();}export function registerOtelShutdownOnExit(){const _0x4e5ec3=a240_0x2a2f;process['once'](_0x4e5ec3(0x15c),()=>{void flushOtelNodeIfUsed();});const _0x351255=()=>{const _0x32ddb5=_0x4e5ec3;void flushOtelNodeIfUsed()[_0x32ddb5(0x15d)](()=>process['exit'](0x0));};process['once'](_0x4e5ec3(0x15b),_0x351255),process[_0x4e5ec3(0x152)](_0x4e5ec3(0x154),_0x351255);}export async function exitWithOtelShutdown(_0x3bda29){await flushOtelNodeIfUsed(),process['exit'](_0x3bda29);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a241_0x5611(_0x14afd6,_0x5a2d95){_0x14afd6=_0x14afd6-0xff;const _0x28ca72=a241_0x28ca();let _0x561177=_0x28ca72[_0x14afd6];return _0x561177;}(function(_0x316470,_0x164817){const _0x58fa64=a241_0x5611,_0x4a9a30=_0x316470();while(!![]){try{const _0x400a89=parseInt(_0x58fa64(0x10c))/0x1+-parseInt(_0x58fa64(0x105))/0x2+-parseInt(_0x58fa64(0x107))/0x3*(-parseInt(_0x58fa64(0x10a))/0x4)+-parseInt(_0x58fa64(0x104))/0x5*(parseInt(_0x58fa64(0x106))/0x6)+parseInt(_0x58fa64(0x109))/0x7+-parseInt(_0x58fa64(0x102))/0x8+parseInt(_0x58fa64(0x108))/0x9*(-parseInt(_0x58fa64(0x103))/0xa);if(_0x400a89===_0x164817)break;else _0x4a9a30['push'](_0x4a9a30['shift']());}catch(_0x3ed55d){_0x4a9a30['push'](_0x4a9a30['shift']());}}}(a241_0x28ca,0xc33cb));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a241_0x28ca(){const _0x9c983f=['8997009YhPLOC','52xskEWn','spanName','1256172wobXNs','logData','traceparent','version','manual','1691016oIbDDK','13167910bQlSuO','119645sYUqIJ','462950BxQnhs','312YabRvT','291273lLkaLv','9EgifQR'];a241_0x28ca=function(){return _0x9c983f;};return a241_0x28ca();}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME='rabetbase-cli';export async function sendCliTraceLog(_0x5d7c0c){const _0x5c0f6a=a241_0x5611;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x5d7c0c['traceName']??DEFAULT_TRACE_NAME,'version':_0x5d7c0c[_0x5c0f6a(0x100)]??getCliVersion(),'spanName':_0x5d7c0c[_0x5c0f6a(0x10b)],'eventType':_0x5c0f6a(0x101),'logData':_0x5d7c0c[_0x5c0f6a(0x10d)],..._0x5d7c0c[_0x5c0f6a(0xff)]&&{'traceparent':_0x5d7c0c['traceparent']}});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a242_0x2d44e0=a242_0x4723;(function(_0x1911fd,_0x2c47f2){const _0x22e234=a242_0x4723,_0x137474=_0x1911fd();while(!![]){try{const _0x53dbad=-parseInt(_0x22e234(0x11e))/0x1*(parseInt(_0x22e234(0x110))/0x2)+-parseInt(_0x22e234(0x11c))/0x3+parseInt(_0x22e234(0x11f))/0x4*(parseInt(_0x22e234(0x121))/0x5)+parseInt(_0x22e234(0x118))/0x6+-parseInt(_0x22e234(0x111))/0x7*(parseInt(_0x22e234(0x119))/0x8)+-parseInt(_0x22e234(0x11a))/0x9*(parseInt(_0x22e234(0x120))/0xa)+-parseInt(_0x22e234(0x11b))/0xb*(parseInt(_0x22e234(0x117))/0xc);if(_0x53dbad===_0x2c47f2)break;else _0x137474['push'](_0x137474['shift']());}catch(_0x2ae5ac){_0x137474['push'](_0x137474['shift']());}}}(a242_0x5c92,0xa356c));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a242_0x2d44e0(0x10e);export const PLATFORM_ISSUE_SPAN_NAME=a242_0x2d44e0(0x10f);function a242_0x5c92(){const _0x4ee8c4=['9JcumsK','1723997GlKMaz','1110765FkPeXg','originalBytes','33713GsjjXI','1619964NaXVlK','2632370pmDTSx','10RdUuAK','platform-issue-log-collect','issue.log.collect','4xvJZYQ','56neZBYw','redactionKinds','description','redactionCount','sanitize','join','24MPmZAt','7946748otBHKf','451032ulxnFT'];a242_0x5c92=function(){return _0x4ee8c4;};return a242_0x5c92();}function a242_0x4723(_0x57d070,_0x24dc2d){_0x57d070=_0x57d070-0x10e;const _0x5c92d8=a242_0x5c92();let _0x4723a7=_0x5c92d8[_0x57d070];return _0x4723a7;}export async function sendPlatformIssueCollectLog(_0x492971){const _0x24aaf4=a242_0x2d44e0;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x492971['title'],'issue.description':_0x492971[_0x24aaf4(0x113)],..._0x492971[_0x24aaf4(0x115)]?{'issue.description_original_bytes':_0x492971['sanitize'][_0x24aaf4(0x11d)],'issue.description_truncated':_0x492971[_0x24aaf4(0x115)]['truncated'],'issue.description_redactions':_0x492971[_0x24aaf4(0x115)][_0x24aaf4(0x114)],'issue.description_redaction_kinds':_0x492971[_0x24aaf4(0x115)][_0x24aaf4(0x112)][_0x24aaf4(0x116)](',')}:{}}});}
|
package/lib/utils/ai_config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a244_0x7915ca=a244_0x4d23;(function(_0x4e7616,_0x538a34){const _0x209b3e=a244_0x4d23,_0x57287a=_0x4e7616();while(!![]){try{const _0xd91792=parseInt(_0x209b3e(0x118))/0x1+parseInt(_0x209b3e(0x101))/0x2*(parseInt(_0x209b3e(0x10e))/0x3)+-parseInt(_0x209b3e(0x117))/0x4+parseInt(_0x209b3e(0x110))/0x5+parseInt(_0x209b3e(0x11c))/0x6*(-parseInt(_0x209b3e(0x112))/0x7)+parseInt(_0x209b3e(0xfa))/0x8*(parseInt(_0x209b3e(0x111))/0x9)+-parseInt(_0x209b3e(0xfd))/0xa*(parseInt(_0x209b3e(0x113))/0xb);if(_0xd91792===_0x538a34)break;else _0x57287a['push'](_0x57287a['shift']());}catch(_0x5ae702){_0x57287a['push'](_0x57287a['shift']());}}}(a244_0x9d61,0xa1c1a));export const CORE_IDE_CONFIGS={'cursor':{'name':a244_0x7915ca(0x100),'description':a244_0x7915ca(0xf5),'folders':['.cursorrules',a244_0x7915ca(0x107)],'files':[{'type':a244_0x7915ca(0xff),'path':a244_0x7915ca(0x108),'template':'SKILL.md.tpl'}]},'windsurf':{'name':'Windsurf','description':a244_0x7915ca(0xf7),'folders':['.windsurf'],'files':[{'type':a244_0x7915ca(0xff),'path':a244_0x7915ca(0xf2),'template':a244_0x7915ca(0x10b)}]},'claude':{'name':'Claude\x20Code','description':a244_0x7915ca(0xf3),'folders':['.claude'],'files':[{'type':'file','path':a244_0x7915ca(0xea),'template':a244_0x7915ca(0x10b)}]},'cline':{'name':a244_0x7915ca(0x11a),'description':a244_0x7915ca(0xef),'folders':[a244_0x7915ca(0x10d)],'files':[{'type':'file','path':a244_0x7915ca(0x104),'template':a244_0x7915ca(0x10b)}]},'codex':{'name':a244_0x7915ca(0xf9),'description':a244_0x7915ca(0xf8),'folders':[a244_0x7915ca(0xf6)],'files':[{'type':a244_0x7915ca(0xff),'path':a244_0x7915ca(0x105),'template':a244_0x7915ca(0x10b)}]},'opencode':{'name':'OpenCode','description':'OpenCode\x20IDE','folders':['.opencode'],'files':[{'type':a244_0x7915ca(0xff),'path':a244_0x7915ca(0x109),'template':a244_0x7915ca(0x10b)}]},'qoder':{'name':'Qoder','description':'Qoder\x20IDE','folders':[a244_0x7915ca(0xee)],'files':[{'type':'file','path':a244_0x7915ca(0x11b),'template':a244_0x7915ca(0x10b)},{'type':a244_0x7915ca(0xff),'path':a244_0x7915ca(0xfe),'template':a244_0x7915ca(0x10b)}]},'codebuddy':{'name':'CodeBuddy','description':a244_0x7915ca(0xed),'folders':[a244_0x7915ca(0x11d)],'files':[{'type':a244_0x7915ca(0xff),'path':a244_0x7915ca(0xeb),'template':a244_0x7915ca(0x10b)}]},'trae':{'name':a244_0x7915ca(0x10c),'description':a244_0x7915ca(0xf1),'folders':['.trae'],'files':[{'type':a244_0x7915ca(0xff),'path':'.trae/skills/lovrabet/SKILL.md','template':a244_0x7915ca(0x10b)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'其他\x20(通用模板)','description':'通用模板\x20-\x20兜底方案','folders':[a244_0x7915ca(0x10f)],'files':[{'type':'file','path':'.agent/skills/lovrabet/SKILL.md','template':a244_0x7915ca(0x10b)}]},'antigravity':{'name':a244_0x7915ca(0xec),'description':a244_0x7915ca(0x119),'folders':['.agent'],'files':[{'type':a244_0x7915ca(0xff),'path':a244_0x7915ca(0x10a),'template':a244_0x7915ca(0x10b)}]}};export const CORE_IDE_LIST=['claude',a244_0x7915ca(0xf0),a244_0x7915ca(0x114),a244_0x7915ca(0x116),a244_0x7915ca(0x103),a244_0x7915ca(0xf4),'qoder',a244_0x7915ca(0xfc),'windsurf'];function a244_0x4d23(_0x342b5f,_0x287357){_0x342b5f=_0x342b5f-0xea;const _0x9d61aa=a244_0x9d61();let _0x4d234f=_0x9d61aa[_0x342b5f];return _0x4d234f;}export const IDE_LIST=['antigravity',a244_0x7915ca(0x115),a244_0x7915ca(0xf0),a244_0x7915ca(0x114),a244_0x7915ca(0x116),a244_0x7915ca(0x103),a244_0x7915ca(0xf4),a244_0x7915ca(0x106),a244_0x7915ca(0xfc),a244_0x7915ca(0x102),a244_0x7915ca(0xfb)];export const ALL_CORE_IDES=[a244_0x7915ca(0x103),a244_0x7915ca(0x102),a244_0x7915ca(0x115),a244_0x7915ca(0xf0),a244_0x7915ca(0x116),a244_0x7915ca(0xf4),a244_0x7915ca(0x106),'codebuddy','trae'];function a244_0x9d61(){const _0x418a0f=['10FYcAnH','.qoder/skills/lovrabet/SKILL.md','file','Cursor','38cxQrkB','windsurf','cursor','.cline/skills/lovrabet/SKILL.md','.codex/skills/lovrabet/SKILL.md','qoder','.cursor','.cursor/skills/rabetbase.md','.opencode/skills/lovrabet/SKILL.md','.agent/skills/lovrabet/SKILL.md','SKILL.md.tpl','Trae','.cline','140835taYwWb','.agent','2762430XbKsrE','45ohVEby','6587259BzyRrw','11158774YwisNm','codebuddy','claude','codex','1767776XGDQFO','1128003AhUjCe','Antigravity\x20IDE','Cline','.qoder/rules/rabetbase.md','6AarVlC','.codebuddy','.claude/skills/lovrabet/SKILL.md','.codebuddy/skills/lovrabet/SKILL.md','Antigravity','CodeBuddy\x20IDE','.qoder','Cline\x20IDE','cline','Trae\x20IDE','.windsurf/workflows/rabetbase.md','Claude\x20Code','opencode','Cursor\x20IDE','.codex','Windsurf\x20IDE','Codex\x20IDE','Codex','780040eUwAdK','agent','trae'];a244_0x9d61=function(){return _0x418a0f;};return a244_0x9d61();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x57c5dc,_0x4d2c42){const _0x562a6e=a245_0x2021,_0x367fbb=_0x57c5dc();while(!![]){try{const _0x4ad9c7=-parseInt(_0x562a6e(0x120))/0x1*(parseInt(_0x562a6e(0x125))/0x2)+parseInt(_0x562a6e(0x123))/0x3+parseInt(_0x562a6e(0x124))/0x4+parseInt(_0x562a6e(0x127))/0x5*(parseInt(_0x562a6e(0x122))/0x6)+-parseInt(_0x562a6e(0x121))/0x7*(-parseInt(_0x562a6e(0x128))/0x8)+parseInt(_0x562a6e(0x11e))/0x9*(parseInt(_0x562a6e(0x129))/0xa)+-parseInt(_0x562a6e(0x11f))/0xb*(parseInt(_0x562a6e(0x126))/0xc);if(_0x4ad9c7===_0x4d2c42)break;else _0x367fbb['push'](_0x367fbb['shift']());}catch(_0x3c82b3){_0x367fbb['push'](_0x367fbb['shift']());}}}(a245_0x489f,0xbe8e3));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a245_0x2021(_0x2bc6a4,_0x2e3112){_0x2bc6a4=_0x2bc6a4-0x11e;const _0x489f06=a245_0x489f();let _0x2021db=_0x489f06[_0x2bc6a4];return _0x2021db;}function a245_0x489f(){const _0x633bd8=['32620404bCHBTS','704265HLIbOa','83344WlaaOJ','20TzvEkg','986409PWibBa','11TxsPYX','1208nObulp','413aCaJSb','42CAHVdA','1504692YUiiYb','4961196zBTIiC','104kDubmw'];a245_0x489f=function(){return _0x633bd8;};return a245_0x489f();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
package/lib/utils/cdn-config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4129c5,_0x43f38f){const _0xaa5121=a246_0x25a0,_0x572d2e=_0x4129c5();while(!![]){try{const _0x32b3cc=-parseInt(_0xaa5121(0x145))/0x1*(parseInt(_0xaa5121(0x13c))/0x2)+-parseInt(_0xaa5121(0x149))/0x3+-parseInt(_0xaa5121(0x147))/0x4+-parseInt(_0xaa5121(0x148))/0x5+parseInt(_0xaa5121(0x13f))/0x6+parseInt(_0xaa5121(0x13b))/0x7*(-parseInt(_0xaa5121(0x142))/0x8)+parseInt(_0xaa5121(0x141))/0x9;if(_0x32b3cc===_0x43f38f)break;else _0x572d2e['push'](_0x572d2e['shift']());}catch(_0xfdd9ee){_0x572d2e['push'](_0x572d2e['shift']());}}}(a246_0x380d,0x4c8ac));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x3b06f7=a246_0x25a0,_0x5d2ebb=getTemplateBaseUrl(),_0x562ed0=[_0x5d2ebb+_0x3b06f7(0x143),_0x5d2ebb+_0x3b06f7(0x14a)];for(const _0x5b8b04 of _0x562ed0){try{const _0x23e980=await fetch(_0x5b8b04,{'headers':{'Accept':_0x3b06f7(0x140)}});if(!_0x23e980['ok'])continue;const _0x2a8e1a=await _0x23e980[_0x3b06f7(0x13a)]();if(!_0x2a8e1a[_0x3b06f7(0x13e)]?.[_0x3b06f7(0x13d)]||!_0x2a8e1a[_0x3b06f7(0x14b)]?.[_0x3b06f7(0x144)]?.['stableVersion'])continue;return _0x2a8e1a;}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 _0x28750b=a246_0x25a0,_0x5d6e3d=Date[_0x28750b(0x146)]();if(hasCachedConfig){const _0x21045a=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x5d6e3d-cacheTime<_0x21045a)return cachedConfig;}const _0xa5db11=await fetchCdnConfig();return cachedConfig=_0xa5db11,cacheTime=_0x5d6e3d,hasCachedConfig=!![],_0xa5db11;}function a246_0x380d(){const _0x2be66a=['2IukjRO','stableVersion','cli','3230688oTObGj','application/json','18881505ZzzEMO','315816sOODvk','/config.json','node','539873TIhsPo','now','2165572bePeuw','2899420kmvXje','1156164tLcLXc','/config/index.json','sdk','json','49PLBEHK'];a246_0x380d=function(){return _0x2be66a;};return a246_0x380d();}function a246_0x25a0(_0x5a09ca,_0x132232){_0x5a09ca=_0x5a09ca-0x13a;const _0x380df4=a246_0x380d();let _0x25a0d2=_0x380df4[_0x5a09ca];return _0x25a0d2;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
|