@lovrabet/rabetbase-cli 2.5.5-beta.3 → 2.5.6-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/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.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/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.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/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.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/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.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-restore.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/dataset/user-deleted-field-list.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/cross-db-analysis-shared.d.ts +40 -0
- package/lib/commands/db/cross-db-analysis-shared.js +1 -0
- package/lib/commands/db/cross-db-analyze-latest.d.ts +2 -0
- package/lib/commands/db/cross-db-analyze-latest.js +1 -0
- package/lib/commands/db/cross-db-analyze-start.d.ts +2 -0
- package/lib/commands/db/cross-db-analyze-start.js +1 -0
- package/lib/commands/db/cross-db-analyze-status.d.ts +2 -0
- package/lib/commands/db/cross-db-analyze-status.js +1 -0
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-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/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.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/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.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/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +7 -0
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-analysis.d.ts +17 -0
- package/lib/core/cross-db-analysis.js +1 -0
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.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/page/lr-smart-jsx.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/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +6 -4
- package/skills/rabetbase/guides/database-connection-workflow.md +12 -3
- package/skills/rabetbase/guides/independent-deployment.md +10 -2
- package/skills/rabetbase/references/rabetbase-dataset-cross-relations.md +2 -0
- package/skills/rabetbase/references/rabetbase-db-analyze.md +2 -0
- package/skills/rabetbase/references/rabetbase-db-cross-analyze.md +78 -0
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a336_0x4b52b8=a336_0x24a9;(function(_0x97d43c,_0x1f9a58){const _0x24c85c=a336_0x24a9,_0x1dbb8d=_0x97d43c();while(!![]){try{const _0x5ab299=parseInt(_0x24c85c(0xa4))/0x1+parseInt(_0x24c85c(0xa3))/0x2*(-parseInt(_0x24c85c(0x99))/0x3)+-parseInt(_0x24c85c(0xaa))/0x4*(parseInt(_0x24c85c(0x95))/0x5)+-parseInt(_0x24c85c(0x97))/0x6*(parseInt(_0x24c85c(0xad))/0x7)+-parseInt(_0x24c85c(0x90))/0x8*(-parseInt(_0x24c85c(0x98))/0x9)+parseInt(_0x24c85c(0x8f))/0xa+parseInt(_0x24c85c(0xa9))/0xb;if(_0x5ab299===_0x1f9a58)break;else _0x1dbb8d['push'](_0x1dbb8d['shift']());}catch(_0x8bc3a3){_0x1dbb8d['push'](_0x1dbb8d['shift']());}}}(a336_0x194e,0x233a9));function a336_0x24a9(_0xed47e,_0xc79705){_0xed47e=_0xed47e-0x8e;const _0x194ed2=a336_0x194e();let _0x24a9a6=_0x194ed2[_0xed47e];return _0x24a9a6;}import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a336_0x4b52b8(0xa2),a336_0x4b52b8(0x9c));function a336_0x194e(){const _0x21ca27=['252681BOcYzg','kind','recorded','parse','not-recorded','2144890gvylsZ','279944vBGeBw','lockFile','map','28gWHsIW','utf8','number','unusable','2023880roSccW','2043056gcLjlf','\x20records\x20\x22','unverifiable','absent','present','20ydqQOn','.claude','390066XVgWAd','9ntzyzo','39DrZxwA','find','\x20has\x20no\x20skills\x20map','.skill-lock.json','SKILL.md','skills','globalSkillsDirs','version','object','.agents','34024yjaiAT'];a336_0x194e=function(){return _0x21ca27;};return a336_0x194e();}export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents',a336_0x4b52b8(0x9e)),join(a336_0x4b52b8(0x96),a336_0x4b52b8(0x9e))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x46cc16,_0x82602c){const _0xaa3a9a=a336_0x4b52b8;if(!existsSync(_0x46cc16))return{'kind':_0xaa3a9a(0xa8)};let _0x334a24;try{_0x334a24=JSON[_0xaa3a9a(0xa7)](readFileSync(_0x46cc16,_0xaa3a9a(0xae)));}catch(_0xf7cb85){return{'kind':_0xaa3a9a(0x8e),'reason':_0x46cc16+'\x20is\x20unreadable:\x20'+_0xf7cb85['message']};}const _0x3908c4=_0x334a24;if(typeof _0x3908c4?.[_0xaa3a9a(0xa0)]!==_0xaa3a9a(0xaf)||!SUPPORTED_LOCK_VERSIONS['includes'](_0x3908c4['version']))return{'kind':'unusable','reason':_0x46cc16+'\x20uses\x20unsupported\x20version\x20'+String(_0x3908c4?.[_0xaa3a9a(0xa0)])};if(!_0x3908c4[_0xaa3a9a(0x9e)]||typeof _0x3908c4['skills']!==_0xaa3a9a(0xa1))return{'kind':_0xaa3a9a(0x8e),'reason':_0x46cc16+_0xaa3a9a(0x9b)};return _0x3908c4[_0xaa3a9a(0x9e)][_0x82602c]?{'kind':_0xaa3a9a(0xa6)}:{'kind':_0xaa3a9a(0xa8)};}export function resolveInstalledSkill(_0x57f9b2,_0x475da9){const _0x1f229d=a336_0x4b52b8,_0x2b569b=_0x475da9?.['home']??homedir(),_0x26255c=_0x475da9?.[_0x1f229d(0x9f)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS['map'](_0x1f127a=>join(_0x2b569b,_0x1f127a)),_0x461ef1=_0x475da9?.[_0x1f229d(0xab)]??join(_0x2b569b,SKILL_LOCK_RELATIVE_PATH),_0x4bdb20=_0x26255c[_0x1f229d(0xac)](_0xb8694=>join(_0xb8694,_0x57f9b2,_0x1f229d(0x9d))),_0x1d1388=_0x4bdb20[_0x1f229d(0x9a)](_0x363b94=>existsSync(_0x363b94));if(_0x1d1388)return{'state':_0x1f229d(0x94),'path':_0x1d1388};const _0x214ce5=readLockLookup(_0x461ef1,_0x57f9b2);if(_0x214ce5[_0x1f229d(0xa5)]===_0x1f229d(0x8e))return{'state':'unverifiable','reason':_0x214ce5['reason']};if(_0x214ce5['kind']===_0x1f229d(0xa6))return{'state':_0x1f229d(0x92),'reason':_0x461ef1+_0x1f229d(0x91)+_0x57f9b2+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0x4bdb20['join'](',\x20')+')')};return{'state':_0x1f229d(0x93),'checked':_0x4bdb20};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xc12d3a,_0x46a90b){const _0x7b24a=a337_0x46b5,_0x938572=_0xc12d3a();while(!![]){try{const _0x49b97f=-parseInt(_0x7b24a(0x1a0))/0x1+parseInt(_0x7b24a(0x19c))/0x2+-parseInt(_0x7b24a(0x1ab))/0x3*(-parseInt(_0x7b24a(0x1a4))/0x4)+-parseInt(_0x7b24a(0x1aa))/0x5*(-parseInt(_0x7b24a(0x19d))/0x6)+parseInt(_0x7b24a(0x1ac))/0x7*(parseInt(_0x7b24a(0x1a2))/0x8)+parseInt(_0x7b24a(0x19a))/0x9*(parseInt(_0x7b24a(0x1a8))/0xa)+-parseInt(_0x7b24a(0x1ae))/0xb*(parseInt(_0x7b24a(0x1a9))/0xc);if(_0x49b97f===_0x46a90b)break;else _0x938572['push'](_0x938572['shift']());}catch(_0x2aa1c5){_0x938572['push'](_0x938572['shift']());}}}(a337_0x3abc,0x94b23));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a337_0x46b5(_0x480226,_0x2ce749){_0x480226=_0x480226-0x19a;const _0x3abc74=a337_0x3abc();let _0x46b537=_0x3abc74[_0x480226];return _0x46b537;}function a337_0x3abc(){const _0x1d34c6=['2189rkBTsn','1089fEwpmM','durationMs','2085048FRvnTf','3595458oJKTXO','some','command','786589zlRvje','[REDACTED]','536OaAXQn','message','2890136iFIzee','error','test','flags','32670cuEeFb','123600DFcZaG','10olQpiB','3epjwEc','9037IhPpwe','entries'];a337_0x3abc=function(){return _0x1d34c6;};return a337_0x3abc();}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x2ff79e){const _0x1972e6=a337_0x46b5;return SENSITIVE_PATTERNS[_0x1972e6(0x19e)](_0x14aa5c=>_0x14aa5c[_0x1972e6(0x1a6)](_0x2ff79e));}function sanitizeFlags(_0x141051){const _0x12e157=a337_0x46b5,_0x586572={};for(const [_0x2b4e15,_0x3e454b]of Object[_0x12e157(0x1ad)](_0x141051)){isSensitiveKey(_0x2b4e15)?_0x586572[_0x2b4e15]=_0x3e454b!=null&&_0x3e454b!==''?_0x12e157(0x1a1):_0x3e454b:_0x586572[_0x2b4e15]=_0x3e454b;}return _0x586572;}export async function reportCommandTrace(_0x31d24d){const _0x4df94d=a337_0x46b5;try{const _0x51edbb=sanitizeFlags(_0x31d24d[_0x4df94d(0x1a7)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x31d24d['service'],'command.name':_0x31d24d[_0x4df94d(0x19f)],'command.flags':JSON['stringify'](_0x51edbb),..._0x31d24d['durationMs']!=null?{'command.duration_ms':_0x31d24d[_0x4df94d(0x19b)]}:{},..._0x31d24d[_0x4df94d(0x1a5)]?{'command.error':_0x31d24d['error']instanceof Error?_0x31d24d['error'][_0x4df94d(0x1a3)]:String(_0x31d24d['error'])}:{}}});}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a338_0x3539(_0xc56dd0,_0x36adb9){_0xc56dd0=_0xc56dd0-0x14e;var _0x446201=a338_0x4462();var _0x35397c=_0x446201[_0xc56dd0];return _0x35397c;}(function(_0x2cfff6,_0x93e74){var _0x1aba81=a338_0x3539,_0x24c753=_0x2cfff6();while(!![]){try{var _0x445ecf=parseInt(_0x1aba81(0x154))/0x1*(-parseInt(_0x1aba81(0x153))/0x2)+-parseInt(_0x1aba81(0x151))/0x3+parseInt(_0x1aba81(0x15a))/0x4*(-parseInt(_0x1aba81(0x14e))/0x5)+-parseInt(_0x1aba81(0x157))/0x6*(-parseInt(_0x1aba81(0x152))/0x7)+parseInt(_0x1aba81(0x158))/0x8*(-parseInt(_0x1aba81(0x155))/0x9)+parseInt(_0x1aba81(0x150))/0xa+parseInt(_0x1aba81(0x156))/0xb;if(_0x445ecf===_0x93e74)break;else _0x24c753['push'](_0x24c753['shift']());}catch(_0x4994c0){_0x24c753['push'](_0x24c753['shift']());}}}(a338_0x4462,0xc2cc6));function a338_0x4462(){var _0x44b6b7=['41430LuYRxp','288gCSBbB','service','175204iPJJmo','cli.help','130uPyCEr','Failed\x20to\x20report\x20CLI\x20help\x20trace:','13110650ojEQFR','2056731JAmIZy','161buybAa','7846AHzfML','347jtVfcL','42417YWyMmG','29517026tKcEcx'];a338_0x4462=function(){return _0x44b6b7;};return a338_0x4462();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x266ab3,_0x3988cd){var _0x482f4f=a338_0x3539;try{await sendCliTraceLog({'spanName':_0x482f4f(0x15b),'logData':{'rabetbase.help.kind':_0x266ab3,..._0x3988cd?.[_0x482f4f(0x159)]&&{'rabetbase.help.service':_0x3988cd[_0x482f4f(0x159)]}}});}catch(_0x29cfa7){console['error'](_0x482f4f(0x14f),_0x29cfa7);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x402cc7,_0x2ea83d){const _0x38bda2=a339_0x1f93,_0x57ea86=_0x402cc7();while(!![]){try{const _0xfdb0f4=-parseInt(_0x38bda2(0x1cc))/0x1*(-parseInt(_0x38bda2(0x1d0))/0x2)+parseInt(_0x38bda2(0x1dd))/0x3+parseInt(_0x38bda2(0x1da))/0x4*(-parseInt(_0x38bda2(0x1cf))/0x5)+parseInt(_0x38bda2(0x1d7))/0x6+parseInt(_0x38bda2(0x1dc))/0x7+-parseInt(_0x38bda2(0x1ce))/0x8+-parseInt(_0x38bda2(0x1d6))/0x9;if(_0xfdb0f4===_0x2ea83d)break;else _0x57ea86['push'](_0x57ea86['shift']());}catch(_0x32b5d3){_0x57ea86['push'](_0x57ea86['shift']());}}}(a339_0x14ad,0xf2709));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';function a339_0x1f93(_0x924826,_0x492cc9){_0x924826=_0x924826-0x1cc;const _0x14adbd=a339_0x14ad();let _0x1f93e5=_0x14adbd[_0x924826];return _0x1f93e5;}function a339_0x14ad(){const _0x13b529=['801283bdXThn','production','7605872LMtWhn','65YLnYdO','2DHQKOq','nickname','tenant_code','daily','username','tenant','23097177zcnMHY','11605254yMsfXr','user','unknown','170988iIchoh','email','9343187yBvZUK','2986794cvfxBP'];a339_0x14ad=function(){return _0x13b529;};return a339_0x14ad();}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x421ad7=a339_0x1f93,_0x71f3eb=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x5b5d7f=_0x71f3eb?.[_0x421ad7(0x1d8)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x421ad7(0x1d9)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x421ad7(0x1d3):_0x421ad7(0x1cd))}),setUserContext({'id':_0x5b5d7f?.['id'],'username':_0x5b5d7f?.[_0x421ad7(0x1d4)],'nickname':_0x5b5d7f?.[_0x421ad7(0x1d1)],'email':_0x5b5d7f?.[_0x421ad7(0x1db)],'tenantCode':_0x5b5d7f?.[_0x421ad7(0x1d5)]?.[_0x421ad7(0x1d2)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x71f3eb;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4b5bf3,_0x1d6f86){const _0x123455=a340_0x1756,_0x461aaf=_0x4b5bf3();while(!![]){try{const _0x899c15=-parseInt(_0x123455(0x71))/0x1*(parseInt(_0x123455(0x75))/0x2)+-parseInt(_0x123455(0x6f))/0x3*(parseInt(_0x123455(0x77))/0x4)+-parseInt(_0x123455(0x79))/0x5+-parseInt(_0x123455(0x72))/0x6+parseInt(_0x123455(0x6d))/0x7+-parseInt(_0x123455(0x76))/0x8+-parseInt(_0x123455(0x7a))/0x9*(-parseInt(_0x123455(0x70))/0xa);if(_0x899c15===_0x1d6f86)break;else _0x461aaf['push'](_0x461aaf['shift']());}catch(_0x5c61d9){_0x461aaf['push'](_0x461aaf['shift']());}}}(a340_0x9d66,0x4b0a6));function a340_0x1756(_0x1665ce,_0x277505){_0x1665ce=_0x1665ce-0x6d;const _0x9d66ec=a340_0x9d66();let _0x175671=_0x9d66ec[_0x1665ce];return _0x175671;}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 _0x24b725=a340_0x1756;process['once']('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x446554=()=>{const _0x352eea=a340_0x1756;void flushOtelNodeIfUsed()[_0x352eea(0x78)](()=>process[_0x352eea(0x6e)](0x0));};process['once'](_0x24b725(0x74),_0x446554),process['once'](_0x24b725(0x73),_0x446554);}export async function exitWithOtelShutdown(_0x3ce3c1){const _0xf7811c=a340_0x1756;await flushOtelNodeIfUsed(),process[_0xf7811c(0x6e)](_0x3ce3c1);}function a340_0x9d66(){const _0x395af0=['2337405mWwpTi','215793tjafBn','1572200YPDTOD','exit','44535rXvrIH','730BIRFNG','5797phSmHJ','1697694UPXyJE','SIGTERM','SIGINT','94agGFGe','2425848rCVnVK','92vrpQLB','then'];a340_0x9d66=function(){return _0x395af0;};return a340_0x9d66();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a341_0x5f1ece=a341_0x473f;(function(_0x238b64,_0x49bd66){const _0x472afe=a341_0x473f,_0x3b835c=_0x238b64();while(!![]){try{const _0x573f15=-parseInt(_0x472afe(0x128))/0x1*(parseInt(_0x472afe(0x125))/0x2)+-parseInt(_0x472afe(0x11c))/0x3*(-parseInt(_0x472afe(0x123))/0x4)+-parseInt(_0x472afe(0x129))/0x5*(parseInt(_0x472afe(0x126))/0x6)+-parseInt(_0x472afe(0x122))/0x7*(-parseInt(_0x472afe(0x11f))/0x8)+-parseInt(_0x472afe(0x12d))/0x9+-parseInt(_0x472afe(0x12b))/0xa+-parseInt(_0x472afe(0x127))/0xb*(-parseInt(_0x472afe(0x120))/0xc);if(_0x573f15===_0x49bd66)break;else _0x3b835c['push'](_0x3b835c['shift']());}catch(_0x448572){_0x3b835c['push'](_0x3b835c['shift']());}}}(a341_0x2d82,0x3023c));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a341_0x2d82(){const _0x1fe56b=['traceparent','1471140vZmLlm','logData','1892844JRCHzW','978SHwaNX','manual','spanName','6616wTJfhc','156HBsPcT','version','917nEvPhc','1440GINoWN','rabetbase-cli','146nLSIRx','164526UlALuH','625603ObseQT','2993Vikqwi','35crTUNo'];a341_0x2d82=function(){return _0x1fe56b;};return a341_0x2d82();}const DEFAULT_TRACE_NAME=a341_0x5f1ece(0x124);function a341_0x473f(_0x2665a4,_0x158be2){_0x2665a4=_0x2665a4-0x11c;const _0x2d8236=a341_0x2d82();let _0x473fee=_0x2d8236[_0x2665a4];return _0x473fee;}export async function sendCliTraceLog(_0x3d4045){const _0x47083b=a341_0x5f1ece;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x3d4045['traceName']??DEFAULT_TRACE_NAME,'version':_0x3d4045[_0x47083b(0x121)]??getCliVersion(),'spanName':_0x3d4045[_0x47083b(0x11e)],'eventType':_0x47083b(0x11d),'logData':_0x3d4045[_0x47083b(0x12c)],..._0x3d4045[_0x47083b(0x12a)]&&{'traceparent':_0x3d4045['traceparent']}});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a342_0x3cf4cc=a342_0x4260;(function(_0x10c24f,_0x4d37e3){const _0x3c8d95=a342_0x4260,_0x550fbc=_0x10c24f();while(!![]){try{const _0x5c625a=-parseInt(_0x3c8d95(0x1d3))/0x1*(parseInt(_0x3c8d95(0x1d5))/0x2)+parseInt(_0x3c8d95(0x1de))/0x3*(parseInt(_0x3c8d95(0x1df))/0x4)+-parseInt(_0x3c8d95(0x1cf))/0x5+-parseInt(_0x3c8d95(0x1d4))/0x6+parseInt(_0x3c8d95(0x1d1))/0x7*(-parseInt(_0x3c8d95(0x1dd))/0x8)+parseInt(_0x3c8d95(0x1d2))/0x9+parseInt(_0x3c8d95(0x1db))/0xa*(parseInt(_0x3c8d95(0x1cd))/0xb);if(_0x5c625a===_0x4d37e3)break;else _0x550fbc['push'](_0x550fbc['shift']());}catch(_0x400fe8){_0x550fbc['push'](_0x550fbc['shift']());}}}(a342_0x4664,0xf33be));function a342_0x4260(_0x5b9bd0,_0x51dee2){_0x5b9bd0=_0x5b9bd0-0x1cd;const _0x4664aa=a342_0x4664();let _0x426001=_0x4664aa[_0x5b9bd0];return _0x426001;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a342_0x3cf4cc(0x1d6);export const PLATFORM_ISSUE_SPAN_NAME=a342_0x3cf4cc(0x1d0);function a342_0x4664(){const _0x1d2579=['title','56AzyLuj','659388CpMnpC','12GBnTAY','5658070rcgxFD','originalBytes','7072585BFrYLE','issue.log.collect','1269863RzajHj','12943233SwmGCQ','1LhXjxC','8940096yXRlRp','3112346ocIsGv','platform-issue-log-collect','redactionKinds','description','sanitize','join','90DqgYwK'];a342_0x4664=function(){return _0x1d2579;};return a342_0x4664();}export async function sendPlatformIssueCollectLog(_0x4e2ac1){const _0x4047b8=a342_0x3cf4cc;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x4e2ac1[_0x4047b8(0x1dc)],'issue.description':_0x4e2ac1[_0x4047b8(0x1d8)],..._0x4e2ac1[_0x4047b8(0x1d9)]?{'issue.description_original_bytes':_0x4e2ac1[_0x4047b8(0x1d9)][_0x4047b8(0x1ce)],'issue.description_truncated':_0x4e2ac1[_0x4047b8(0x1d9)]['truncated'],'issue.description_redactions':_0x4e2ac1[_0x4047b8(0x1d9)]['redactionCount'],'issue.description_redaction_kinds':_0x4e2ac1['sanitize'][_0x4047b8(0x1d7)][_0x4047b8(0x1da)](',')}:{}}});}
|
package/lib/utils/ai_config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a344_0x2678da=a344_0x7641;(function(_0x3ec9b5,_0x183969){const _0x30d4ef=a344_0x7641,_0x9dccd1=_0x3ec9b5();while(!![]){try{const _0x5bcecd=parseInt(_0x30d4ef(0x182))/0x1*(parseInt(_0x30d4ef(0x163))/0x2)+-parseInt(_0x30d4ef(0x165))/0x3+-parseInt(_0x30d4ef(0x16a))/0x4+parseInt(_0x30d4ef(0x16e))/0x5+-parseInt(_0x30d4ef(0x178))/0x6+-parseInt(_0x30d4ef(0x161))/0x7*(-parseInt(_0x30d4ef(0x183))/0x8)+-parseInt(_0x30d4ef(0x180))/0x9*(-parseInt(_0x30d4ef(0x171))/0xa);if(_0x5bcecd===_0x183969)break;else _0x9dccd1['push'](_0x9dccd1['shift']());}catch(_0x16ea13){_0x9dccd1['push'](_0x9dccd1['shift']());}}}(a344_0x2938,0xd075a));export const CORE_IDE_CONFIGS={'cursor':{'name':'Cursor','description':a344_0x2678da(0x184),'folders':[a344_0x2678da(0x162),'.cursor'],'files':[{'type':a344_0x2678da(0x176),'path':'.cursor/skills/rabetbase.md'}]},'windsurf':{'name':a344_0x2678da(0x164),'description':a344_0x2678da(0x17c),'folders':[a344_0x2678da(0x17e)],'files':[{'type':a344_0x2678da(0x176),'path':'.windsurf/workflows/rabetbase.md'}]},'claude':{'name':a344_0x2678da(0x18d),'description':a344_0x2678da(0x18d),'folders':['.claude'],'files':[{'type':a344_0x2678da(0x176),'path':a344_0x2678da(0x18b)}]},'cline':{'name':a344_0x2678da(0x15d),'description':a344_0x2678da(0x170),'folders':['.cline'],'files':[{'type':a344_0x2678da(0x176),'path':a344_0x2678da(0x15f)}]},'codex':{'name':a344_0x2678da(0x17a),'description':a344_0x2678da(0x17d),'folders':[a344_0x2678da(0x189)],'files':[{'type':'file','path':a344_0x2678da(0x179)}]},'opencode':{'name':a344_0x2678da(0x15e),'description':a344_0x2678da(0x172),'folders':[a344_0x2678da(0x173)],'files':[{'type':a344_0x2678da(0x176),'path':a344_0x2678da(0x159)}]},'qoder':{'name':a344_0x2678da(0x174),'description':a344_0x2678da(0x18c),'folders':[a344_0x2678da(0x186)],'files':[{'type':a344_0x2678da(0x176),'path':a344_0x2678da(0x16b)},{'type':a344_0x2678da(0x176),'path':'.qoder/skills/lovrabet/SKILL.md'}]},'codebuddy':{'name':'CodeBuddy','description':a344_0x2678da(0x16c),'folders':[a344_0x2678da(0x188)],'files':[{'type':a344_0x2678da(0x176),'path':a344_0x2678da(0x16d)}]},'trae':{'name':'Trae','description':a344_0x2678da(0x15b),'folders':[a344_0x2678da(0x167)],'files':[{'type':a344_0x2678da(0x176),'path':'.trae/skills/lovrabet/SKILL.md'}]}};function a344_0x7641(_0x3ef6aa,_0x126a2a){_0x3ef6aa=_0x3ef6aa-0x159;const _0x293819=a344_0x2938();let _0x7641bc=_0x293819[_0x3ef6aa];return _0x7641bc;}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'Other\x20(generic\x20template)','description':a344_0x2678da(0x168),'folders':['.agent'],'files':[{'type':a344_0x2678da(0x176),'path':a344_0x2678da(0x177)}]},'antigravity':{'name':a344_0x2678da(0x17f),'description':a344_0x2678da(0x15a),'folders':['.agent'],'files':[{'type':'file','path':a344_0x2678da(0x177)}]}};function a344_0x2938(){const _0x37d63c=['Windsurf','3591144Havgfa','windsurf','.trae','Generic\x20template\x20fallback','cursor','5573612ocBfKZ','.qoder/rules/rabetbase.md','CodeBuddy\x20IDE','.codebuddy/skills/lovrabet/SKILL.md','3218100aDKdQP','agent','Cline\x20IDE','12558010QKnqEN','OpenCode\x20IDE','.opencode','Qoder','trae','file','.agent/skills/lovrabet/SKILL.md','9535548mPBkca','.codex/skills/lovrabet/SKILL.md','Codex','claude','Windsurf\x20IDE','Codex\x20IDE','.windsurf','Antigravity','9EgQBME','antigravity','75hOTAxg','16552ccBunc','Cursor\x20IDE','cline','.qoder','codex','.codebuddy','.codex','codebuddy','.claude/skills/lovrabet/SKILL.md','Qoder\x20IDE','Claude\x20Code','.opencode/skills/lovrabet/SKILL.md','Antigravity\x20IDE','Trae\x20IDE','opencode','Cline','OpenCode','.cline/skills/lovrabet/SKILL.md','qoder','5089zbRXhb','.cursorrules','43466FJsAYu'];a344_0x2938=function(){return _0x37d63c;};return a344_0x2938();}export const CORE_IDE_LIST=[a344_0x2678da(0x17b),a344_0x2678da(0x185),a344_0x2678da(0x18a),'codex',a344_0x2678da(0x169),'opencode',a344_0x2678da(0x160),'trae','windsurf'];export const IDE_LIST=[a344_0x2678da(0x181),a344_0x2678da(0x17b),a344_0x2678da(0x185),a344_0x2678da(0x18a),a344_0x2678da(0x187),'cursor',a344_0x2678da(0x15c),a344_0x2678da(0x160),a344_0x2678da(0x175),a344_0x2678da(0x166),a344_0x2678da(0x16f)];export const ALL_CORE_IDES=[a344_0x2678da(0x169),a344_0x2678da(0x166),a344_0x2678da(0x17b),'cline',a344_0x2678da(0x187),a344_0x2678da(0x15c),a344_0x2678da(0x160),a344_0x2678da(0x18a),a344_0x2678da(0x175)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5d579d,_0x468090){const _0x4a3bd5=a345_0x2377,_0x174b7c=_0x5d579d();while(!![]){try{const _0x34a07c=-parseInt(_0x4a3bd5(0x19c))/0x1+parseInt(_0x4a3bd5(0x1a3))/0x2+parseInt(_0x4a3bd5(0x1a0))/0x3+-parseInt(_0x4a3bd5(0x19f))/0x4*(-parseInt(_0x4a3bd5(0x1a2))/0x5)+parseInt(_0x4a3bd5(0x19e))/0x6*(-parseInt(_0x4a3bd5(0x19d))/0x7)+-parseInt(_0x4a3bd5(0x1a4))/0x8*(parseInt(_0x4a3bd5(0x1a1))/0x9)+parseInt(_0x4a3bd5(0x1a5))/0xa;if(_0x34a07c===_0x468090)break;else _0x174b7c['push'](_0x174b7c['shift']());}catch(_0x4725ab){_0x174b7c['push'](_0x174b7c['shift']());}}}(a345_0x3b4e,0x43a1f));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a345_0x2377(_0x48ee2e,_0x2cf0d2){_0x48ee2e=_0x48ee2e-0x19c;const _0x3b4e6a=a345_0x3b4e();let _0x237758=_0x3b4e6a[_0x48ee2e];return _0x237758;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a345_0x3b4e(){const _0x5742df=['984ocrokz','1813868ZReYZt','399060HLGbdx','9vTtnPF','5zvCFGY','242050BqNJcp','3275944DVUfQd','5226160zIuMyA','38656ClpgiU','21553fzYKrB'];a345_0x3b4e=function(){return _0x5742df;};return a345_0x3b4e();}
|
package/lib/utils/cdn-config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a346_0x1b3b(_0x545a54,_0x21c8e6){_0x545a54=_0x545a54-0x199;const _0x51187a=a346_0x5118();let _0x1b3bad=_0x51187a[_0x545a54];return _0x1b3bad;}(function(_0x46d9ba,_0x26717e){const _0x5c74f6=a346_0x1b3b,_0x1934f1=_0x46d9ba();while(!![]){try{const _0x41e1f0=parseInt(_0x5c74f6(0x19b))/0x1*(parseInt(_0x5c74f6(0x1a1))/0x2)+parseInt(_0x5c74f6(0x19d))/0x3+-parseInt(_0x5c74f6(0x19f))/0x4+-parseInt(_0x5c74f6(0x19c))/0x5*(parseInt(_0x5c74f6(0x1a3))/0x6)+-parseInt(_0x5c74f6(0x1a4))/0x7+-parseInt(_0x5c74f6(0x1a2))/0x8*(parseInt(_0x5c74f6(0x19e))/0x9)+parseInt(_0x5c74f6(0x19a))/0xa*(parseInt(_0x5c74f6(0x199))/0xb);if(_0x41e1f0===_0x26717e)break;else _0x1934f1['push'](_0x1934f1['shift']());}catch(_0x2996a3){_0x1934f1['push'](_0x1934f1['shift']());}}}(a346_0x5118,0x79adb));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x148a2a=a346_0x1b3b,_0x1242da=getTemplateBaseUrl(),_0x297aff=[_0x1242da+_0x148a2a(0x1a5),_0x1242da+_0x148a2a(0x1a7)];for(const _0x242ddd of _0x297aff){try{const _0xc39e4c=await fetch(_0x242ddd,{'headers':{'Accept':_0x148a2a(0x1a9)}});if(!_0xc39e4c['ok'])continue;const _0x3e2ed4=await _0xc39e4c[_0x148a2a(0x1a6)]();if(!_0x3e2ed4['cli']?.[_0x148a2a(0x1a0)]||!_0x3e2ed4['sdk']?.['node']?.[_0x148a2a(0x1a0)])continue;return _0x3e2ed4;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a346_0x5118(){const _0x173e55=['json','/config/index.json','now','application/json','22KeAbrn','282690pQDQSn','67nAICck','5JaSDuZ','1825722HeCWoA','198WfMABr','589112iwfywg','stableVersion','25672BIEXcx','70744hhUFUV','3458022nWeJXV','759976RiLaJv','/config.json'];a346_0x5118=function(){return _0x173e55;};return a346_0x5118();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x416e8e=a346_0x1b3b,_0x3ea93c=Date[_0x416e8e(0x1a8)]();if(hasCachedConfig){const _0x25272f=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x3ea93c-cacheTime<_0x25272f)return cachedConfig;}const _0x223d7c=await fetchCdnConfig();return cachedConfig=_0x223d7c,cacheTime=_0x3ea93c,hasCachedConfig=!![],_0x223d7c;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x17839b,_0x5d4552){const _0x595787=a347_0x566a,_0x58a4e2=_0x17839b();while(!![]){try{const _0x32be93=parseInt(_0x595787(0x79))/0x1*(parseInt(_0x595787(0x90))/0x2)+parseInt(_0x595787(0x87))/0x3*(parseInt(_0x595787(0x7c))/0x4)+-parseInt(_0x595787(0x73))/0x5*(-parseInt(_0x595787(0x75))/0x6)+-parseInt(_0x595787(0x82))/0x7*(parseInt(_0x595787(0x88))/0x8)+-parseInt(_0x595787(0x7a))/0x9+parseInt(_0x595787(0x97))/0xa*(parseInt(_0x595787(0x8b))/0xb)+-parseInt(_0x595787(0x7d))/0xc;if(_0x32be93===_0x5d4552)break;else _0x58a4e2['push'](_0x58a4e2['shift']());}catch(_0x2926bc){_0x58a4e2['push'](_0x58a4e2['shift']());}}}(a347_0x3a19,0xd88dc));import a347_0x5406dc from'node:fs';function a347_0x566a(_0x413f38,_0x541d9c){_0x413f38=_0x413f38-0x71;const _0x3a19a0=a347_0x3a19();let _0x566af1=_0x3a19a0[_0x413f38];return _0x566af1;}import a347_0x56bb72 from'node:path';import a347_0x5404a7 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function a347_0x3a19(){const _0x196ee8=['needsUpgrade','\x20\x20\x20Stable\x20version:\x20','stableVersion','parse','6RSfeaI','8nVAQgP','\x1b[0m','log','11mgDZDh','readFileSync','npm\x20install\x20','@lovrabet/sdk','\x1b[33m','2DMcrYu','version','utf8','\x20\x20\x20Current\x20version:\x20','dependencies','sdk','coerce','971110clxmKN','packageName','node','474675gSjrIk','existsSync','108DUbEkT','package.json','join','minVersion','1226683hGCqRK','9921231vRrWuw','latest','2956472TVgEbJ','22616016wLVOnI','test','some','\x1b[1m','devDependencies','4457803HKFEcA'];a347_0x3a19=function(){return _0x196ee8;};return a347_0x3a19();}function isNonNumericVersion(_0x531629){const _0x4f419f=a347_0x566a,_0x5539c4=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x5539c4[_0x4f419f(0x7f)](_0xac069b=>_0xac069b[_0x4f419f(0x7e)](_0x531629));}function getInstalledVersion(_0x2a700c,_0x4463e9){const _0x47d563=a347_0x566a;try{const _0x1da608=a347_0x56bb72['join'](_0x2a700c,'node_modules',_0x4463e9,_0x47d563(0x76));if(a347_0x5406dc[_0x47d563(0x74)](_0x1da608)){const _0x4c0dd8=JSON[_0x47d563(0x86)](a347_0x5406dc[_0x47d563(0x8c)](_0x1da608,'utf-8'));return _0x4c0dd8['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x27702e=a347_0x566a;try{const _0x3243e8=await getCdnConfig();return _0x3243e8?.[_0x27702e(0x95)]?.[_0x27702e(0x72)]?.[_0x27702e(0x85)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x3c51b5=a347_0x566a;try{const _0x1b027a=await getCdnConfig();return _0x1b027a?.['sdk']?.[_0x3c51b5(0x72)]?.[_0x3c51b5(0x71)]||_0x3c51b5(0x8e);}catch{return _0x3c51b5(0x8e);}}export async function checkSdkVersion(_0x51d849){const _0x3174c2=a347_0x566a,_0x3a6002=a347_0x56bb72[_0x3174c2(0x77)](_0x51d849,_0x3174c2(0x76)),[_0x39cce0,_0x166b61]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x3aa850=_0x39cce0||FALLBACK_MIN_SDK_VERSION;if(!a347_0x5406dc[_0x3174c2(0x74)](_0x3a6002))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3aa850,'packageName':_0x166b61,'stableVersion':_0x39cce0};try{const _0x1a4d90=JSON['parse'](a347_0x5406dc[_0x3174c2(0x8c)](_0x3a6002,'utf8')),_0x32e1e3=_0x1a4d90['dependencies']||{},_0x34cf55=_0x1a4d90[_0x3174c2(0x81)]||{},_0x112463=_0x32e1e3[_0x166b61]||_0x34cf55[_0x166b61];if(!_0x112463)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3aa850,'packageName':_0x166b61,'stableVersion':_0x39cce0};let _0x1d8a46=getInstalledVersion(_0x51d849,_0x166b61);!_0x1d8a46&&(_0x1d8a46=_0x112463);if(isNonNumericVersion(_0x112463))return{'installed':!![],'version':_0x1d8a46,'needsUpgrade':![],'minVersion':_0x3aa850,'packageName':_0x166b61,'stableVersion':_0x39cce0};const _0x343fe5=a347_0x5404a7[_0x3174c2(0x96)](_0x1d8a46),_0xcf780e=a347_0x5404a7[_0x3174c2(0x96)](_0x3aa850),_0x3fef63=_0x343fe5&&_0xcf780e?a347_0x5404a7['lt'](_0x343fe5,_0xcf780e):![];return{'installed':!![],'version':_0x1d8a46,'needsUpgrade':_0x3fef63,'minVersion':_0x3aa850,'packageName':_0x166b61,'stableVersion':_0x39cce0};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3aa850,'packageName':_0x166b61,'stableVersion':_0x39cce0};}}export function checkSdkVersionSync(_0x2c43bf){const _0x36d26e=a347_0x566a,_0x212f98=a347_0x56bb72[_0x36d26e(0x77)](_0x2c43bf,_0x36d26e(0x76)),_0x371e4c=_0x36d26e(0x8e);if(!a347_0x5406dc['existsSync'](_0x212f98))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x371e4c,'stableVersion':null};try{const _0x57354a=JSON[_0x36d26e(0x86)](a347_0x5406dc[_0x36d26e(0x8c)](_0x212f98,_0x36d26e(0x92))),_0x5b8d3b=_0x57354a[_0x36d26e(0x94)]||{},_0x322dfe=_0x57354a[_0x36d26e(0x81)]||{},_0x5950bc=_0x5b8d3b[_0x371e4c]||_0x322dfe[_0x371e4c];if(!_0x5950bc)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x371e4c,'stableVersion':null};let _0x467303=getInstalledVersion(_0x2c43bf,_0x371e4c);!_0x467303&&(_0x467303=_0x5950bc);if(isNonNumericVersion(_0x5950bc))return{'installed':!![],'version':_0x467303,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x371e4c,'stableVersion':null};const _0x3cb88e=a347_0x5404a7['coerce'](_0x467303),_0x2f3b07=_0x3cb88e?a347_0x5404a7['lt'](_0x3cb88e,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x467303,'needsUpgrade':_0x2f3b07,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x371e4c,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x371e4c,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x4f8ff2){const _0x35ae06=a347_0x566a;if(!_0x4f8ff2[_0x35ae06(0x83)])return;const _0x4ff904=_0x35ae06(0x8f),_0x1d33b7=_0x35ae06(0x89),_0x67240d=_0x35ae06(0x80),_0x2737bb=_0x4f8ff2['packageName']||_0x35ae06(0x8e),_0x2d88f4=_0x4f8ff2[_0x35ae06(0x85)]||_0x4f8ff2[_0x35ae06(0x78)],_0x4aa836=_0x35ae06(0x8d)+_0x2737bb+'@'+(_0x2d88f4||_0x35ae06(0x7b));console[_0x35ae06(0x8a)](),console[_0x35ae06(0x8a)](''+_0x4ff904+_0x67240d+'↪\x20SDK\x20update\x20available'+_0x1d33b7),console['log'](_0x4ff904+_0x35ae06(0x93)+_0x2737bb+'@'+_0x4f8ff2[_0x35ae06(0x91)]+_0x1d33b7),console[_0x35ae06(0x8a)](_0x4ff904+_0x35ae06(0x84)+_0x2d88f4+_0x1d33b7),console[_0x35ae06(0x8a)](_0x4ff904+'\x20\x20\x20Upgrade\x20command:\x20'+_0x4aa836+_0x1d33b7),console[_0x35ae06(0x8a)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a348_0x7716(_0x5e55c4,_0x174ffa){_0x5e55c4=_0x5e55c4-0x118;const _0x15b89f=a348_0x15b8();let _0x771610=_0x15b89f[_0x5e55c4];return _0x771610;}function a348_0x15b8(){const _0x1d2d96=['parse','\x20\x20\x20Minimum\x20supported:\x20','minimumVersion','coerce','log','\x1b[1m','3176616aOlpHe','latest','stableVersion','belowMinimum','join','576558ZLGLjp','806320EFwrTJ','205944RRKCJe','3615642mAeJff','\x20\x20\x20Current\x20CLI\x20version:\x20','454741wEtqEU','\x20\x20\x20Recommended\x20stable:\x20','1HClWsV','minimumVersionMessage','\x20\x20\x20Stable\x20version:\x20','909738lXkzSq','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','8UewbVs','\x20\x20\x20','npm\x20install\x20-g\x20','needsUpgrade','↪\x20Critical\x20CLI\x20upgrade\x20required','Current\x20version:\x20','\x20\x20\x20Upgrade\x20command:\x20','\x1b[33m','\x1b[0m','utf-8','1.0.0','filter','../..','upgradeMessage','currentVersion'];a348_0x15b8=function(){return _0x1d2d96;};return a348_0x15b8();}(function(_0x12899d,_0x16d112){const _0x479a98=a348_0x7716,_0x1a947f=_0x12899d();while(!![]){try{const _0x10d292=-parseInt(_0x479a98(0x124))/0x1*(parseInt(_0x479a98(0x11d))/0x2)+-parseInt(_0x479a98(0x11f))/0x3*(-parseInt(_0x479a98(0x129))/0x4)+parseInt(_0x479a98(0x11e))/0x5+parseInt(_0x479a98(0x127))/0x6+parseInt(_0x479a98(0x122))/0x7+parseInt(_0x479a98(0x118))/0x8+-parseInt(_0x479a98(0x120))/0x9;if(_0x10d292===_0x16d112)break;else _0x1a947f['push'](_0x1a947f['shift']());}catch(_0x2b4aec){_0x1a947f['push'](_0x1a947f['shift']());}}}(a348_0x15b8,0x363fe));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a348_0x375c30 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x2f91f7){const _0x48b71c=a348_0x7716,_0x24774d=_0x2f91f7[_0x48b71c(0x11a)]||_0x48b71c(0x119);return _0x48b71c(0x12b)+NPM_PACKAGE_NAME+'@'+_0x24774d;}function getCurrentCliVersion(){const _0x267f78=a348_0x7716;try{const _0x54199b=fileURLToPath(import.meta.url),_0x540dd2=resolve(dirname(_0x54199b),_0x267f78(0x135)),_0x1d012c=resolve(_0x540dd2,'package.json'),_0x4b020c=JSON[_0x267f78(0x138)](readFileSync(_0x1d012c,_0x267f78(0x132)));return _0x4b020c['version']||_0x267f78(0x133);}catch{return'1.0.0';}}export async function checkCliVersion(){const _0x12b614=a348_0x7716,_0x10c0ee=getCurrentCliVersion(),_0x3c3637=await getCliVersionPolicy(),_0x1d0cd3=_0x3c3637?.['stableVersion']||null,_0xf62126=_0x3c3637?.['minimumVersion']||null;let _0x30d2fe=![],_0x5753fe=![];const _0x1937bc=a348_0x375c30['coerce'](_0x10c0ee);if(_0x1937bc&&_0x1d0cd3)try{const _0x33baa3=a348_0x375c30[_0x12b614(0x13b)](_0x1d0cd3);if(_0x33baa3)_0x30d2fe=a348_0x375c30['lt'](_0x1937bc,_0x33baa3);}catch{}if(_0x1937bc&&_0xf62126)try{const _0x464105=a348_0x375c30[_0x12b614(0x13b)](_0xf62126);if(_0x464105)_0x5753fe=a348_0x375c30['lt'](_0x1937bc,_0x464105);}catch{}return _0x5753fe&&(_0x30d2fe=!![]),{'currentVersion':_0x10c0ee,'stableVersion':_0x1d0cd3,'minimumVersion':_0xf62126,'needsUpgrade':_0x30d2fe,'belowMinimum':_0x5753fe,'isPreRelease':![],'upgradeMessage':_0x3c3637?.['upgradeMessage'],'minimumVersionMessage':_0x3c3637?.[_0x12b614(0x125)]};}export function printCliUpgradeWarning(_0x5cb583){const _0x29bfb6=a348_0x7716;if(!_0x5cb583[_0x29bfb6(0x12c)]&&!_0x5cb583[_0x29bfb6(0x11b)])return;const _0x10a327='\x1b[31m',_0x101e0d=_0x29bfb6(0x130),_0x51f90b=_0x29bfb6(0x131),_0x266a05=_0x29bfb6(0x13d),_0xf99328=getCliUpgradeCommand(_0x5cb583);console[_0x29bfb6(0x13c)](),_0x5cb583[_0x29bfb6(0x11b)]?(console[_0x29bfb6(0x13c)](''+_0x10a327+_0x266a05+_0x29bfb6(0x12d)+_0x51f90b),console[_0x29bfb6(0x13c)](_0x10a327+_0x29bfb6(0x121)+_0x5cb583[_0x29bfb6(0x137)]+_0x51f90b),_0x5cb583[_0x29bfb6(0x13a)]&&console[_0x29bfb6(0x13c)](_0x10a327+_0x29bfb6(0x139)+_0x5cb583[_0x29bfb6(0x13a)]+_0x51f90b),_0x5cb583[_0x29bfb6(0x11a)]&&_0x5cb583[_0x29bfb6(0x11a)]!==_0x5cb583[_0x29bfb6(0x13a)]&&console[_0x29bfb6(0x13c)](_0x10a327+_0x29bfb6(0x123)+_0x5cb583[_0x29bfb6(0x11a)]+_0x51f90b),_0x5cb583[_0x29bfb6(0x125)]&&console[_0x29bfb6(0x13c)](_0x10a327+_0x29bfb6(0x12a)+_0x5cb583[_0x29bfb6(0x125)]+_0x51f90b),console[_0x29bfb6(0x13c)](_0x10a327+'\x20\x20\x20Upgrade\x20command:\x20'+_0xf99328+_0x51f90b)):(console[_0x29bfb6(0x13c)](''+_0x101e0d+_0x266a05+'↪\x20New\x20version\x20available'+_0x51f90b),console[_0x29bfb6(0x13c)](_0x101e0d+_0x29bfb6(0x121)+_0x5cb583[_0x29bfb6(0x137)]+_0x51f90b),console['log'](_0x101e0d+_0x29bfb6(0x126)+_0x5cb583['stableVersion']+_0x51f90b),_0x5cb583[_0x29bfb6(0x136)]&&console[_0x29bfb6(0x13c)](_0x101e0d+_0x29bfb6(0x12a)+_0x5cb583[_0x29bfb6(0x136)]+_0x51f90b),console[_0x29bfb6(0x13c)](_0x101e0d+_0x29bfb6(0x12f)+_0xf99328+_0x51f90b)),console[_0x29bfb6(0x13c)]();}export function assertCliVersionSupported(_0x39cb70){const _0x331310=a348_0x7716;if(!_0x39cb70[_0x331310(0x11b)])return;const _0x3ee66e=[_0x39cb70[_0x331310(0x125)],_0x331310(0x12e)+_0x39cb70[_0x331310(0x137)],_0x39cb70[_0x331310(0x13a)]?'Minimum\x20supported:\x20'+_0x39cb70[_0x331310(0x13a)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x39cb70)][_0x331310(0x134)](Boolean)[_0x331310(0x11c)]('\x0a');throw CliErrors['validation'](_0x331310(0x128),_0x3ee66e);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xdacb55,_0x471c78){const _0x32097c=a349_0x26aa,_0x3e53a9=_0xdacb55();while(!![]){try{const _0x41b421=parseInt(_0x32097c(0x112))/0x1*(-parseInt(_0x32097c(0x103))/0x2)+parseInt(_0x32097c(0xff))/0x3*(-parseInt(_0x32097c(0x105))/0x4)+parseInt(_0x32097c(0x10e))/0x5*(-parseInt(_0x32097c(0x109))/0x6)+-parseInt(_0x32097c(0x10b))/0x7*(-parseInt(_0x32097c(0x101))/0x8)+-parseInt(_0x32097c(0xfa))/0x9+parseInt(_0x32097c(0x108))/0xa+parseInt(_0x32097c(0x102))/0xb;if(_0x41b421===_0x471c78)break;else _0x3e53a9['push'](_0x3e53a9['shift']());}catch(_0x55b03d){_0x3e53a9['push'](_0x3e53a9['shift']());}}}(a349_0x1906,0x74474));import{getCliVersionPolicyUrl,getProjectTemplateAssetBaseUrl,getProjectTemplateLegacyAssetBaseUrl}from'../constant/cdn.js';import a349_0x2e9e9c from'semver';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;export function isBetaCliVersion(_0x2d2ae){const _0x13043d=a349_0x26aa,_0x29a2c1=a349_0x2e9e9c[_0x13043d(0xf9)](_0x2d2ae);return _0x29a2c1?a349_0x2e9e9c[_0x13043d(0x111)](_0x29a2c1)?.[0x0]===_0x13043d(0x107):![];}export function resolveProjectTemplateDescriptor(_0x317386,_0x35267f){const _0x21ba89=a349_0x26aa;if(isBetaCliVersion(_0x35267f))return _0x317386[_0x21ba89(0x107)]?.[_0x21ba89(0x100)]??_0x317386[_0x21ba89(0x100)];return _0x317386[_0x21ba89(0x100)];}function pickString(_0x1aa8a3){const _0x4c8fa1=a349_0x26aa;return typeof _0x1aa8a3==='string'&&_0x1aa8a3[_0x4c8fa1(0x10d)]()['length']>0x0?_0x1aa8a3['trim']():null;}function normalizeCliVersionPolicy(_0x3f99e1){const _0xb77c5e=a349_0x26aa;if(!_0x3f99e1||typeof _0x3f99e1!==_0xb77c5e(0x10c))return null;const _0x1a72ed=_0x3f99e1,_0x2a7b65=_0x1a72ed['cli']&&typeof _0x1a72ed['cli']==='object'?_0x1a72ed['cli']:_0x1a72ed,_0x4cc009=pickString(_0x2a7b65['stableVersion'])||pickString(_0x2a7b65[_0xb77c5e(0x104)])||pickString(_0x2a7b65['recommendedVersion']),_0x5bb3f6=pickString(_0x2a7b65[_0xb77c5e(0x10a)])||pickString(_0x2a7b65[_0xb77c5e(0xfe)]);if(!_0x4cc009&&!_0x5bb3f6)return null;return{'stableVersion':_0x4cc009,'minimumVersion':_0x5bb3f6,'upgradeMessage':pickString(_0x2a7b65[_0xb77c5e(0xfc)])||undefined,'minimumVersionMessage':pickString(_0x2a7b65[_0xb77c5e(0xfd)])||undefined};}async function fetchRabetbaseCdnConfigAt(_0x54cbe4){const _0x486f6a=a349_0x26aa,_0xc95841=new AbortController(),_0x3354c1=setTimeout(()=>_0xc95841[_0x486f6a(0x10f)](),FETCH_TIMEOUT_MS);try{const _0x2922a1=await fetch(_0x54cbe4,{'headers':{'Accept':_0x486f6a(0xfb)},'signal':_0xc95841['signal']});if(!_0x2922a1['ok'])return null;const _0xa16fb9=await _0x2922a1[_0x486f6a(0x106)]();return _0xa16fb9&&typeof _0xa16fb9==='object'?_0xa16fb9:null;}catch{return null;}finally{clearTimeout(_0x3354c1);}}export async function fetchRabetbaseCdnConfig(){return fetchRabetbaseCdnConfigAt(getCliVersionPolicyUrl());}export async function fetchProjectTemplateCdnConfig(){const _0x31a025=await getRabetbaseCdnConfig();return _0x31a025?{'config':_0x31a025,'assetBaseUrl':getProjectTemplateAssetBaseUrl(),'legacyAssetBaseUrl':getProjectTemplateLegacyAssetBaseUrl()}:null;}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x4fd9f6=a349_0x26aa,_0x483693=Date[_0x4fd9f6(0x110)]();if(hasCachedConfig){const _0x9129f3=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x483693-cacheTime<_0x9129f3)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x483693,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}function a349_0x1906(){const _0x148c11=['minimumVersionMessage','minVersion','385611NvcxZR','projectTemplate','48dPJehh','16873406CADTLZ','382nhSSUg','latestVersion','8YEMDFP','json','beta','2020150wdLzOK','3072XMSdie','minimumVersion','32543vOfXmr','object','trim','1850MLKSrE','abort','now','prerelease','2805IXuMDw','valid','2747790myHocc','application/json','upgradeMessage'];a349_0x1906=function(){return _0x148c11;};return a349_0x1906();}function a349_0x26aa(_0x24675f,_0x4ecf98){_0x24675f=_0x24675f-0xf9;const _0x1906ff=a349_0x1906();let _0x26aabe=_0x1906ff[_0x24675f];return _0x26aabe;}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
|
package/lib/utils/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a350_0x152281=a350_0x3f7c;(function(_0x2c773d,_0x18426){const _0x42737d=a350_0x3f7c,_0x3195ab=_0x2c773d();while(!![]){try{const _0xea9915=parseInt(_0x42737d(0x71))/0x1*(parseInt(_0x42737d(0x70))/0x2)+parseInt(_0x42737d(0x74))/0x3+parseInt(_0x42737d(0x73))/0x4*(-parseInt(_0x42737d(0x72))/0x5)+-parseInt(_0x42737d(0x76))/0x6+parseInt(_0x42737d(0x6c))/0x7+-parseInt(_0x42737d(0x6f))/0x8*(parseInt(_0x42737d(0x6d))/0x9)+-parseInt(_0x42737d(0x77))/0xa;if(_0xea9915===_0x18426)break;else _0x3195ab['push'](_0x3195ab['shift']());}catch(_0x1cc0d6){_0x3195ab['push'](_0x3195ab['shift']());}}}(a350_0x2153,0xe8988));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a350_0x2b6320,getMultiAppConfigs as a350_0x50cdec,getTemplateBaseUrl as a350_0x1b8db9}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a350_0x2153(){const _0x3f7f2c=['484617KxybYO','1179925wPISlw','4ITabIE','5696034esgnMb','env','5852010Gusxmi','5966340vTTfzo','7181118iiTciB','9PMESTx','project','12941896cfRwlz','6glToTq'];a350_0x2153=function(){return _0x3f7f2c;};return a350_0x2153();}export{isInProject}from'../context.js';export function readConfig(_0x509ae0){const _0x4c3644=a350_0x3f7c,_0x2d7b5b=readRawConfig(_0x509ae0);return _0x2d7b5b[_0x4c3644(0x75)]&&typeof _0x2d7b5b[_0x4c3644(0x75)]==='string'&&initEnv(_0x2d7b5b[_0x4c3644(0x75)]),_0x2d7b5b;}export function getConfigAppCode(){return a350_0x2b6320();}function a350_0x3f7c(_0x1310c7,_0x542f06){_0x1310c7=_0x1310c7-0x6c;const _0x215396=a350_0x2153();let _0x3f7c1c=_0x215396[_0x1310c7];return _0x3f7c1c;}export function getMultiAppConfigs(_0x3167aa=a350_0x152281(0x6e)){return a350_0x50cdec(_0x3167aa);}export function getTemplateBaseUrl(){return a350_0x1b8db9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x31cdf6,_0x4a3b02){const _0x3821bf=a351_0x2fe3,_0xb9908=_0x31cdf6();while(!![]){try{const _0x17c50c=-parseInt(_0x3821bf(0x1a4))/0x1*(parseInt(_0x3821bf(0x1a1))/0x2)+parseInt(_0x3821bf(0x19e))/0x3*(parseInt(_0x3821bf(0x1a0))/0x4)+parseInt(_0x3821bf(0x199))/0x5+-parseInt(_0x3821bf(0x19a))/0x6*(-parseInt(_0x3821bf(0x197))/0x7)+parseInt(_0x3821bf(0x19d))/0x8*(parseInt(_0x3821bf(0x198))/0x9)+parseInt(_0x3821bf(0x19c))/0xa+-parseInt(_0x3821bf(0x19f))/0xb*(parseInt(_0x3821bf(0x1a5))/0xc);if(_0x17c50c===_0x4a3b02)break;else _0xb9908['push'](_0xb9908['shift']());}catch(_0x1a7784){_0xb9908['push'](_0xb9908['shift']());}}}(a351_0x620d,0x54101));function a351_0x2fe3(_0x227af3,_0x7e43e0){_0x227af3=_0x227af3-0x197;const _0x620d21=a351_0x620d();let _0x2fe3e7=_0x620d21[_0x227af3];return _0x2fe3e7;}function toFiniteNumber(_0x1397c6){const _0xac2c7d=a351_0x2fe3;if(typeof _0x1397c6==='number'&&Number[_0xac2c7d(0x1a3)](_0x1397c6))return _0x1397c6;if(typeof _0x1397c6==='string'){const _0x32e977=_0x1397c6[_0xac2c7d(0x1a2)]();if(!_0x32e977)return undefined;const _0x375d0f=Number(_0x32e977);if(Number[_0xac2c7d(0x1a3)](_0x375d0f))return _0x375d0f;}return undefined;}export function normalizeEntityWithIdResponse(_0x346ec4){const _0x18e379=a351_0x2fe3,_0x57caea=toFiniteNumber(_0x346ec4);if(_0x57caea!==undefined)return{'id':_0x57caea,'entity':{'id':_0x57caea}};if(!_0x346ec4||typeof _0x346ec4!==_0x18e379(0x19b))return{'id':undefined,'entity':{}};const _0x1c048c={..._0x346ec4},_0x3bbab2=toFiniteNumber(_0x1c048c['id']);return _0x3bbab2!==undefined&&(_0x1c048c['id']=_0x3bbab2),{'id':_0x3bbab2,'entity':_0x1c048c};}function a351_0x620d(){const _0xfff1b2=['11378565fsmipX','20mlsFWb','84338XBnXEM','trim','isFinite','5xDXIBW','12TmBBXI','418628uBYTip','9CNTVPn','1660745bNrJcR','18mXJRYa','object','4244240ZgCYOI','5224048GqZkEw','354fhoSzz'];a351_0x620d=function(){return _0xfff1b2;};return a351_0x620d();}
|
package/lib/utils/file-utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a352_0x2838(_0x57366d,_0xd859a8){_0x57366d=_0x57366d-0xeb;const _0x4341e3=a352_0x4341();let _0x28387c=_0x4341e3[_0x57366d];return _0x28387c;}(function(_0x2a187b,_0x1cd0ba){const _0x1c9894=a352_0x2838,_0x339898=_0x2a187b();while(!![]){try{const _0x403f72=-parseInt(_0x1c9894(0xf2))/0x1+parseInt(_0x1c9894(0xf4))/0x2*(parseInt(_0x1c9894(0xef))/0x3)+-parseInt(_0x1c9894(0xee))/0x4+-parseInt(_0x1c9894(0xf5))/0x5*(-parseInt(_0x1c9894(0xec))/0x6)+-parseInt(_0x1c9894(0xf3))/0x7*(-parseInt(_0x1c9894(0xeb))/0x8)+parseInt(_0x1c9894(0xed))/0x9+parseInt(_0x1c9894(0xf0))/0xa*(parseInt(_0x1c9894(0xf1))/0xb);if(_0x403f72===_0x1cd0ba)break;else _0x339898['push'](_0x339898['shift']());}catch(_0x2edbcb){_0x339898['push'](_0x339898['shift']());}}}(a352_0x4341,0x4f35b));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x50c59f,_0x319ecd){const _0x54ab26=statSync(_0x50c59f);if(_0x54ab26['isDirectory']()){!existsSync(_0x319ecd)&&mkdirSync(_0x319ecd,{'recursive':!![]});const _0x29191=readdirSync(_0x50c59f);for(const _0xc372f2 of _0x29191){await copyDir(join(_0x50c59f,_0xc372f2),join(_0x319ecd,_0xc372f2));}}else copyFileSync(_0x50c59f,_0x319ecd);}export function ensureDir(_0x39015e){!existsSync(_0x39015e)&&mkdirSync(_0x39015e,{'recursive':!![]});}export function pathExists(_0x1170fb){return existsSync(_0x1170fb);}function a352_0x4341(){const _0x2803dd=['85080sTDrQq','770824ywJptT','78YVExcm','5276007xzTlWS','1950612VPuAWk','11217beRozb','29170MIiqEX','1144TxpZAQ','577406TzMEBD','14rMBTMk','46mXfwrv'];a352_0x4341=function(){return _0x2803dd;};return a352_0x4341();}
|
package/lib/utils/guides-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a353_0x6ac7c2=a353_0x542e;(function(_0xcf4b8f,_0x1d886b){const _0x3c2fba=a353_0x542e,_0xd1dae1=_0xcf4b8f();while(!![]){try{const _0x2872c9=-parseInt(_0x3c2fba(0xfc))/0x1*(-parseInt(_0x3c2fba(0xf9))/0x2)+-parseInt(_0x3c2fba(0x104))/0x3*(parseInt(_0x3c2fba(0x105))/0x4)+-parseInt(_0x3c2fba(0xee))/0x5+-parseInt(_0x3c2fba(0x107))/0x6+-parseInt(_0x3c2fba(0x10a))/0x7*(-parseInt(_0x3c2fba(0xeb))/0x8)+parseInt(_0x3c2fba(0xf0))/0x9+parseInt(_0x3c2fba(0xfe))/0xa*(-parseInt(_0x3c2fba(0xfd))/0xb);if(_0x2872c9===_0x1d886b)break;else _0xd1dae1['push'](_0xd1dae1['shift']());}catch(_0x490a0c){_0xd1dae1['push'](_0xd1dae1['shift']());}}}(a353_0x11ae,0x58ca0));import{mkdirSync,writeFileSync}from'node:fs';function a353_0x11ae(){const _0x1804e6=['.lovrabet/skill/guides','keys','skillTemplate','join','path','2MrtBcu','length','content','591572NrhxAh','5461599AJGLXw','10XWjPhO','CDN\x20data\x20is\x20missing\x20skillTemplate','trimEnd','CDN\x20request\x20failed:\x20','CDN\x20returned\x20invalid\x20data','cache','5793thsGBz','936BAJlOi','push','1501218CitHGE','title','utf-8','62104kwQmdR','lastUpdated','guides','application/json','\x0a\x0a>更新时间:','560roKcTz','statusText','map','544415PgTnJr','replace','4126653JmECtH','.lovrabet','entries','status'];a353_0x11ae=function(){return _0x1804e6;};return a353_0x11ae();}import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x4c86c6=getTemplateBaseUrl();return _0x4c86c6+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a353_0x6ac7c2(0xf1),a353_0x6ac7c2(0x103));export async function fetchGuidesFromCDN(){const _0xb9e128=a353_0x6ac7c2,_0x1e57c1=getGuidesCdnUrl(),_0x48cb18=await fetch(_0x1e57c1,{'headers':{'Accept':_0xb9e128(0x10d)}});if(!_0x48cb18['ok'])throw new Error(_0xb9e128(0x101)+_0x48cb18[_0xb9e128(0xf3)]+'\x20'+_0x48cb18[_0xb9e128(0xec)]);const _0x1aa2a7=await _0x48cb18['json']();if(!_0x1aa2a7['guides']||typeof _0x1aa2a7[_0xb9e128(0x10c)]!=='object')throw new Error(_0xb9e128(0x102));return _0x1aa2a7;}export function writeGuidesToProject(_0x57af3a,_0x16b400,_0x44cc5d=a353_0x6ac7c2(0xf4),_0x166f59){const _0x30c7a2=a353_0x6ac7c2,_0x3d4ecf=join(_0x16b400,_0x44cc5d);mkdirSync(_0x3d4ecf,{'recursive':!![]});for(const [_0x2a08f9,_0x46d09c]of Object[_0x30c7a2(0xf2)](_0x57af3a['guides'])){let _0x10c432=_0x46d09c[_0x30c7a2(0xfb)];_0x46d09c[_0x30c7a2(0x10b)]&&(_0x10c432=appendUpdateTime(_0x10c432,_0x46d09c[_0x30c7a2(0x10b)])),writeFileSync(join(_0x3d4ecf,_0x2a08f9+'.md'),_0x10c432,_0x30c7a2(0x109));}}export function appendUpdateTime(_0x549c86,_0x54ff50){const _0x77595c=a353_0x6ac7c2;return _0x549c86=_0x549c86[_0x77595c(0xef)](/\n*>更新时间:.*$/m,''),_0x549c86[_0x77595c(0x100)]()+(_0x77595c(0x10e)+_0x54ff50);}export function getSkillTemplate(_0x444dd7){const _0x33c207=a353_0x6ac7c2;return _0x444dd7[_0x33c207(0xf6)]?.['content']||'';}function a353_0x542e(_0x5dc9a1,_0x49b167){_0x5dc9a1=_0x5dc9a1-0xeb;const _0x11aedf=a353_0x11ae();let _0x542ebb=_0x11aedf[_0x5dc9a1];return _0x542ebb;}export function appendExtendContents(_0x1df8fb,_0x511bdf,_0x2f90e7){const _0x2e691a=a353_0x6ac7c2,_0x3a1b67=[];for(const [,_0xc33ce3]of Object[_0x2e691a(0xf2)](_0x511bdf[_0x2e691a(0x10c)])){_0xc33ce3['extendContent']&&_0x3a1b67[_0x2e691a(0x106)](_0xc33ce3['extendContent'][_0x2e691a(0x100)]());}if(_0x3a1b67[_0x2e691a(0xfa)]===0x0)return _0x1df8fb;return _0x1df8fb[_0x2e691a(0x100)]()+'\x0a\x0a'+_0x3a1b67[_0x2e691a(0xf7)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x33fb17,_0x442917,_0x215d9f){const _0x5783e6=a353_0x6ac7c2,_0x37a80e=getSkillTemplate(_0x33fb17);if(!_0x37a80e)throw new Error(_0x5783e6(0xff));const _0x24c973=dirname(_0x442917);mkdirSync(_0x24c973,{'recursive':!![]});let _0x634018=_0x37a80e[_0x5783e6(0xef)](/\{\{IDE_NAME\}\}/g,_0x215d9f);_0x634018=appendExtendContents(_0x634018,_0x33fb17),_0x33fb17[_0x5783e6(0xf6)][_0x5783e6(0x10b)]&&(_0x634018=appendUpdateTime(_0x634018,_0x33fb17[_0x5783e6(0xf6)][_0x5783e6(0x10b)])),writeFileSync(_0x442917,_0x634018,'utf-8');}export async function installGuides(_0xe0d1a2){const _0x29376a=a353_0x6ac7c2,_0x1e01ef=await fetchGuidesFromCDN();return writeGuidesToProject(_0x1e01ef,_0xe0d1a2),Object[_0x29376a(0xf5)](_0x1e01ef[_0x29376a(0x10c)])[_0x29376a(0xfa)];}export function getGuidesSummary(_0x5f0031){const _0x3208f6=a353_0x6ac7c2;return Object[_0x3208f6(0xf2)](_0x5f0031['guides'])[_0x3208f6(0xed)](([_0x3fc1c4,_0x2ec776])=>({'key':_0x3fc1c4,'title':_0x2ec776[_0x3208f6(0x108)],'path':_0x2ec776[_0x3208f6(0xf8)]}));}
|
package/lib/utils/http-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x53a017,_0x3cc871){const _0x497bfe=a354_0x1809,_0x450dad=_0x53a017();while(!![]){try{const _0x27f716=parseInt(_0x497bfe(0x12a))/0x1+parseInt(_0x497bfe(0x130))/0x2+parseInt(_0x497bfe(0x125))/0x3+-parseInt(_0x497bfe(0x119))/0x4*(-parseInt(_0x497bfe(0x134))/0x5)+-parseInt(_0x497bfe(0x11c))/0x6*(parseInt(_0x497bfe(0x127))/0x7)+-parseInt(_0x497bfe(0x124))/0x8*(-parseInt(_0x497bfe(0x12d))/0x9)+parseInt(_0x497bfe(0x129))/0xa*(-parseInt(_0x497bfe(0x11e))/0xb);if(_0x27f716===_0x3cc871)break;else _0x450dad['push'](_0x450dad['shift']());}catch(_0x1d8338){_0x450dad['push'](_0x450dad['shift']());}}}(a354_0x471c,0x9f693));export async function httpRequest(_0x5d4688,_0x4fbcfc={}){const _0x46fae8=a354_0x1809,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x4fbcfc;let _0x136215=null;for(let _0x51064f=0x0;_0x51064f<=retries;_0x51064f++){try{const _0x5a403f=new AbortController(),_0x1e16b9=setTimeout(()=>_0x5a403f[_0x46fae8(0x117)](),timeout),_0x3ba13b=await fetch(_0x5d4688,{'headers':headers,'signal':_0x5a403f[_0x46fae8(0x11a)]});clearTimeout(_0x1e16b9);let _0x5d6392;const _0x1c7e41=_0x3ba13b['headers']['get'](_0x46fae8(0x126));return _0x1c7e41?.['includes']('application/json')?_0x5d6392=await _0x3ba13b[_0x46fae8(0x11d)]():_0x5d6392=await _0x3ba13b['text'](),{'ok':_0x3ba13b['ok'],'status':_0x3ba13b[_0x46fae8(0x11b)],'statusText':_0x3ba13b[_0x46fae8(0x132)],'data':_0x5d6392,'headers':_0x3ba13b[_0x46fae8(0x131)],'url':_0x3ba13b[_0x46fae8(0x116)],'text':()=>_0x3ba13b[_0x46fae8(0x12c)]()};}catch(_0xd2a2ce){_0x136215=_0xd2a2ce instanceof Error?_0xd2a2ce:new Error(String(_0xd2a2ce));if(_0x51064f===retries)break;if(shouldRetry(_0xd2a2ce)){console[_0x46fae8(0x115)](_0x46fae8(0x11f)+(_0x51064f+0x1)+_0x46fae8(0x12b)+retryDelay+_0x46fae8(0x121)),await sleep(retryDelay);continue;}else break;}}throw _0x136215||new Error(_0x46fae8(0x12f));}function a354_0x471c(){const _0x5957bf=['url','abort','includes','23960kzbQRQ','signal','status','3211620sVfWpO','json','22585508ExNBfL','*\x20Request\x20failed;\x20retry\x20','ENOTFOUND','ms...','fetch','ECONNRESET','40eTrsyW','1173768BvdISj','content-type','7FzlNXJ','AbortError','10OGzUCq','1060159hFIuxI','\x20in\x20','text','1087461iIlUYN','message','Request\x20failed','622690uwLfSG','headers','statusText','name','730jzHcCH','log'];a354_0x471c=function(){return _0x5957bf;};return a354_0x471c();}function shouldRetry(_0x18bd11){const _0x38d204=a354_0x1809;if(_0x18bd11 instanceof Error){if(_0x18bd11[_0x38d204(0x133)]===_0x38d204(0x128))return![];if(_0x18bd11[_0x38d204(0x133)]==='TypeError'&&_0x18bd11[_0x38d204(0x12e)][_0x38d204(0x118)](_0x38d204(0x122)))return!![];if(_0x18bd11['message'][_0x38d204(0x118)](_0x38d204(0x123)))return!![];if(_0x18bd11[_0x38d204(0x12e)][_0x38d204(0x118)](_0x38d204(0x120)))return![];}return![];}function a354_0x1809(_0x4490de,_0x1ee8e4){_0x4490de=_0x4490de-0x115;const _0x471ce1=a354_0x471c();let _0x1809e4=_0x471ce1[_0x4490de];return _0x1809e4;}function sleep(_0x3ef138){return new Promise(_0x4eee3b=>setTimeout(_0x4eee3b,_0x3ef138));}export function validateUrl(_0x54653c){try{return new URL(_0x54653c),!![];}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a355_0x413f(){const _0x5e8dcb=['2941896NLzcsA','true','25088OKpoXn','6LkVRPL','stdout','2708838Xpvhzf','30180SfjgjH','isTTY','8ZfcfAK','nonInteractive','16JJZDsW','332380dfqKGC','87xtooMw','2080498FVDMJD','stdin','30570BZHfXX','setRawMode','11TwuFFG'];a355_0x413f=function(){return _0x5e8dcb;};return a355_0x413f();}function a355_0x1e84(_0x34f74f,_0x568dc9){_0x34f74f=_0x34f74f-0xb4;const _0x413f58=a355_0x413f();let _0x1e846f=_0x413f58[_0x34f74f];return _0x1e846f;}(function(_0x1609aa,_0x30a8ac){const _0x27b4ba=a355_0x1e84,_0x3a1eaa=_0x1609aa();while(!![]){try{const _0x333091=-parseInt(_0x27b4ba(0xc1))/0x1*(parseInt(_0x27b4ba(0xb7))/0x2)+parseInt(_0x27b4ba(0xb9))/0x3*(parseInt(_0x27b4ba(0xc5))/0x4)+-parseInt(_0x27b4ba(0xb8))/0x5*(parseInt(_0x27b4ba(0xc2))/0x6)+-parseInt(_0x27b4ba(0xba))/0x7+parseInt(_0x27b4ba(0xb5))/0x8*(parseInt(_0x27b4ba(0xc4))/0x9)+parseInt(_0x27b4ba(0xbc))/0xa*(-parseInt(_0x27b4ba(0xbe))/0xb)+parseInt(_0x27b4ba(0xbf))/0xc;if(_0x333091===_0x30a8ac)break;else _0x3a1eaa['push'](_0x3a1eaa['shift']());}catch(_0x2d88c2){_0x3a1eaa['push'](_0x3a1eaa['shift']());}}}(a355_0x413f,0x30376));function env(_0x1228f3){return process.env[`RABETBASE_${_0x1228f3}`]||process.env[`LOVRABET_${_0x1228f3}`]||undefined;}export function isNonInteractive(_0x254a5e){const _0x204fa9=a355_0x1e84;return!!(_0x254a5e[_0x204fa9(0xb6)]||_0x254a5e['ci']||env('CI')===_0x204fa9(0xc0)||process.env.CI==='true'||!process[_0x204fa9(0xc3)][_0x204fa9(0xb4)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x3f472d=a355_0x1e84;if(!process[_0x3f472d(0xbb)][_0x3f472d(0xb4)])return![];try{const _0x4dbc5b=process['stdin']['isRaw'];return process[_0x3f472d(0xbb)][_0x3f472d(0xbd)](!![]),process[_0x3f472d(0xbb)][_0x3f472d(0xbd)](_0x4dbc5b??![]),!![];}catch{return![];}}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a356_0xbae4fe=a356_0x302a;(function(_0x2a350d,_0x21d1e7){const _0x38e768=a356_0x302a,_0x4c8b91=_0x2a350d();while(!![]){try{const _0x2972db=-parseInt(_0x38e768(0x188))/0x1+parseInt(_0x38e768(0x18b))/0x2+parseInt(_0x38e768(0x193))/0x3*(-parseInt(_0x38e768(0x17a))/0x4)+parseInt(_0x38e768(0x195))/0x5+-parseInt(_0x38e768(0x180))/0x6*(parseInt(_0x38e768(0x17e))/0x7)+-parseInt(_0x38e768(0x18a))/0x8*(-parseInt(_0x38e768(0x164))/0x9)+-parseInt(_0x38e768(0x171))/0xa;if(_0x2972db===_0x21d1e7)break;else _0x4c8b91['push'](_0x4c8b91['shift']());}catch(_0x1b2d83){_0x4c8b91['push'](_0x4c8b91['shift']());}}}(a356_0x1e82,0xd194e));import a356_0x5dd940 from'winston';import a356_0x354a8a from'node:fs';import a356_0x4f5e1e from'node:path';class Logger{[a356_0xbae4fe(0x166)];[a356_0xbae4fe(0x161)];[a356_0xbae4fe(0x18e)]='';constructor(){const _0x54f73b=a356_0xbae4fe;this[_0x54f73b(0x161)]='';}['setRawCommand'](_0x3e8e81){const _0xd973b=a356_0xbae4fe;this[_0xd973b(0x18e)]=_0x3e8e81;}[a356_0xbae4fe(0x17f)](){const _0x50bc3f=a356_0xbae4fe,_0x5dcbc6=a356_0x4f5e1e['dirname'](this[_0x50bc3f(0x161)]);!a356_0x354a8a[_0x50bc3f(0x18c)](_0x5dcbc6)&&a356_0x354a8a[_0x50bc3f(0x183)](_0x5dcbc6,{'recursive':!![]});const _0x4b9c81=a356_0x5dd940[_0x50bc3f(0x196)][_0x50bc3f(0x179)](a356_0x5dd940[_0x50bc3f(0x196)]['timestamp'](),a356_0x5dd940[_0x50bc3f(0x196)][_0x50bc3f(0x169)]({'stack':!![]}),a356_0x5dd940['format'][_0x50bc3f(0x16c)](_0x192413=>{const _0xf0ec12=_0x50bc3f,_0x2b9e78={'timestamp':_0x192413[_0xf0ec12(0x162)]||new Date()[_0xf0ec12(0x187)](),'level':_0x192413[_0xf0ec12(0x167)]||'info','command':_0x192413['command']||_0xf0ec12(0x16a),'rawCommand':_0x192413[_0xf0ec12(0x186)]||this[_0xf0ec12(0x18e)]||undefined,'message':_0x192413['message']||'','duration':_0x192413[_0xf0ec12(0x181)]||undefined,'details':_0x192413[_0xf0ec12(0x177)]||undefined};return JSON[_0xf0ec12(0x185)](_0x2b9e78);}));this['winstonLogger']=a356_0x5dd940[_0x50bc3f(0x165)]({'level':_0x50bc3f(0x197),'format':_0x4b9c81,'transports':[new a356_0x5dd940[(_0x50bc3f(0x16d))][(_0x50bc3f(0x192))]({'filename':this[_0x50bc3f(0x161)],'level':_0x50bc3f(0x197)})],'silent':![]}),a356_0x5dd940[_0x50bc3f(0x19a)]({'success':_0x50bc3f(0x182),'error':_0x50bc3f(0x194),'warn':_0x50bc3f(0x178),'info':_0x50bc3f(0x18d)});}[a356_0xbae4fe(0x16f)](_0x2bfb3a){const _0x3a2df3=a356_0xbae4fe;this[_0x3a2df3(0x161)]=a356_0x4f5e1e[_0x3a2df3(0x190)](_0x2bfb3a,'.lovrabet.log'),this['winstonLogger']&&this['winstonLogger'][_0x3a2df3(0x191)](),this[_0x3a2df3(0x17f)]();}[a356_0xbae4fe(0x197)](_0x5007d6,_0x55ced4,_0x20233e){const _0x37eeb2=a356_0xbae4fe;if(!this[_0x37eeb2(0x161)]||!this[_0x37eeb2(0x166)])return;this[_0x37eeb2(0x166)][_0x37eeb2(0x197)](_0x55ced4,{'command':_0x5007d6,'details':_0x20233e});}[a356_0xbae4fe(0x17c)](_0x4b2394,_0x3d266c,_0x4e5e8a,_0x5f3035){const _0x1a0000=a356_0xbae4fe;if(!this['logFilePath']||!this[_0x1a0000(0x166)])return;this[_0x1a0000(0x166)][_0x1a0000(0x184)](_0x1a0000(0x197),_0x3d266c,{'level':_0x1a0000(0x17c),'command':_0x4b2394,'duration':_0x4e5e8a,'details':_0x5f3035});}['error'](_0x2b3c5b,_0x31e7b1,_0x5a88cd){const _0x17df06=a356_0xbae4fe;if(!this[_0x17df06(0x161)]||!this[_0x17df06(0x166)])return;this['winstonLogger'][_0x17df06(0x168)](_0x31e7b1,{'command':_0x2b3c5b,'details':_0x5a88cd});}[a356_0xbae4fe(0x199)](_0x1a586e,_0x26af84,_0x4b67e8){const _0x58e458=a356_0xbae4fe;if(!this[_0x58e458(0x161)]||!this['winstonLogger'])return;this[_0x58e458(0x166)][_0x58e458(0x199)](_0x26af84,{'command':_0x1a586e,'details':_0x4b67e8});}async[a356_0xbae4fe(0x163)](_0x2cd351,_0x53cb11,_0x5a2077){const _0x315268=a356_0xbae4fe,_0x7859e7=Date['now']();this[_0x315268(0x197)](_0x2cd351,_0x315268(0x172)+_0x53cb11);try{const _0x3f9bf3=await _0x5a2077(),_0x4612bc=Date[_0x315268(0x17d)]()-_0x7859e7;return this[_0x315268(0x17c)](_0x2cd351,_0x315268(0x19b)+_0x53cb11,_0x4612bc),_0x3f9bf3;}catch(_0x1223b1){const _0x57ae0b=Date[_0x315268(0x17d)]()-_0x7859e7;this[_0x315268(0x168)](_0x2cd351,'Failed:\x20'+_0x53cb11,{'error':_0x1223b1 instanceof Error?_0x1223b1[_0x315268(0x170)]:String(_0x1223b1),'duration':_0x57ae0b});throw _0x1223b1;}}[a356_0xbae4fe(0x16e)](){const _0x1f0424=a356_0xbae4fe;try{if(!a356_0x354a8a[_0x1f0424(0x18c)](this[_0x1f0424(0x161)]))return[];const _0x50b87d=a356_0x354a8a['readFileSync'](this[_0x1f0424(0x161)],_0x1f0424(0x176));return _0x50b87d['split']('\x0a')[_0x1f0424(0x16b)](_0x5a14ec=>_0x5a14ec[_0x1f0424(0x198)]())[_0x1f0424(0x189)](_0x7bc3db=>JSON[_0x1f0424(0x18f)](_0x7bc3db));}catch(_0x2a5c29){return console[_0x1f0424(0x199)](_0x1f0424(0x174),_0x2a5c29),[];}}[a356_0xbae4fe(0x17b)](){const _0xd67823=a356_0xbae4fe;try{a356_0x354a8a[_0xd67823(0x18c)](this['logFilePath'])&&a356_0x354a8a['writeFileSync'](this[_0xd67823(0x161)],'',_0xd67823(0x176));}catch(_0x457563){console['warn'](_0xd67823(0x173),_0x457563);}}[a356_0xbae4fe(0x175)](){const _0x5501f6=a356_0xbae4fe;return this[_0x5501f6(0x166)];}}export const logger=new Logger();function a356_0x302a(_0x522fa7,_0x4cdb2e){_0x522fa7=_0x522fa7-0x161;const _0x1e82ff=a356_0x1e82();let _0x302abb=_0x1e82ff[_0x522fa7];return _0x302abb;}function a356_0x1e82(){const _0x3fc7ac=['now','37016QDigei','initWinstonLogger','60SqzmtD','duration','green','mkdirSync','log','stringify','rawCommand','toISOString','501dHsago','map','504wKynDh','3141446WUcWjd','existsSync','blue','currentRawCommand','parse','join','clear','File','1661655mKFFsu','red','3577720iIiUgy','format','info','trim','warn','addColors','Completed:\x20','logFilePath','timestamp','logTask','164241VQHGgG','createLogger','winstonLogger','level','error','errors','unknown','filter','printf','transports','readLogs','setLogPath','message','8624720EYGNth','Starting:\x20','Failed\x20to\x20clear\x20logs:','Failed\x20to\x20read\x20logs:','getWinstonInstance','utf8','details','yellow','combine','12zTGzIe','clearLogs','success'];a356_0x1e82=function(){return _0x3fc7ac;};return a356_0x1e82();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2d137d,_0x1ea961){const _0x5b026c=a357_0x11d4,_0x541353=_0x2d137d();while(!![]){try{const _0x396468=-parseInt(_0x5b026c(0x10c))/0x1*(-parseInt(_0x5b026c(0x105))/0x2)+parseInt(_0x5b026c(0x10b))/0x3+parseInt(_0x5b026c(0x100))/0x4+-parseInt(_0x5b026c(0x103))/0x5+parseInt(_0x5b026c(0x109))/0x6*(parseInt(_0x5b026c(0x107))/0x7)+-parseInt(_0x5b026c(0x10a))/0x8+-parseInt(_0x5b026c(0x108))/0x9*(parseInt(_0x5b026c(0x101))/0xa);if(_0x396468===_0x1ea961)break;else _0x541353['push'](_0x541353['shift']());}catch(_0x4a7d90){_0x541353['push'](_0x541353['shift']());}}}(a357_0x2d4d,0x32a29));function a357_0x11d4(_0x57ebf2,_0x50dba1){_0x57ebf2=_0x57ebf2-0x100;const _0x2d4d60=a357_0x2d4d();let _0x11d4a0=_0x2d4d60[_0x57ebf2];return _0x11d4a0;}function a357_0x2d4d(){const _0x421911=['--params\x20must\x20be\x20a\x20JSON\x20object','object','1062068KFvliY','2458760ByVCms','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','1933835ILJTZW','validation','2yMlucD','Invalid\x20JSON\x20for\x20--params:\x20','35kkZVWW','18wnskqe','472122zWdfYJ','172968pjnddg','797334uUUSPo','182811YrxLjD','parse'];a357_0x2d4d=function(){return _0x421911;};return a357_0x2d4d();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x27f530){const _0x54a34e=a357_0x11d4;if(!_0x27f530)return undefined;let _0xc85047;try{_0xc85047=JSON[_0x54a34e(0x10d)](_0x27f530);}catch{throw CliErrors[_0x54a34e(0x104)](_0x54a34e(0x106)+_0x27f530);}if(!_0xc85047||typeof _0xc85047!==_0x54a34e(0x10f)||Array['isArray'](_0xc85047))throw CliErrors[_0x54a34e(0x104)](_0x54a34e(0x10e),_0x54a34e(0x102));return _0xc85047;}
|