@lovrabet/rabetbase-cli 2.5.13-beta.1 → 2.5.13
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/design-context.js +1 -1
- package/lib/commands/dataset/design-start.js +1 -1
- package/lib/commands/dataset/design-status.js +1 -1
- package/lib/commands/dataset/design-sync-retry.js +1 -1
- package/lib/commands/dataset/design-sync-status.js +1 -1
- package/lib/commands/dataset/design-validate.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.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/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/page-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/context.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/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.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.js +1 -1
- 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/instant-api-policy/endpoints.js +1 -1
- package/lib/core/kb-management-client.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/services/dataset-design/checkpoint.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.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/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 +1 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x52f446,_0x545762){const _0x381848=a358_0xe330,_0xff799=_0x52f446();while(!![]){try{const _0xec2300=-parseInt(_0x381848(0x105))/0x1+-parseInt(_0x381848(0x103))/0x2*(parseInt(_0x381848(0x10d))/0x3)+-parseInt(_0x381848(0x117))/0x4+parseInt(_0x381848(0x119))/0x5*(-parseInt(_0x381848(0x10b))/0x6)+parseInt(_0x381848(0x113))/0x7+-parseInt(_0x381848(0x114))/0x8+-parseInt(_0x381848(0x111))/0x9*(-parseInt(_0x381848(0x11e))/0xa);if(_0xec2300===_0x545762)break;else _0xff799['push'](_0xff799['shift']());}catch(_0x458539){_0xff799['push'](_0xff799['shift']());}}}(a358_0x169a,0x1e8bd));import a358_0x7edc19 from'node:fs';import a358_0x7b9f90 from'node:path';function a358_0x169a(){const _0x499e83=['join','version','coerce','2043yKndKr','stableVersion','1003730PHpnqI','1540152GjiUtl','existsSync','\x1b[33m','865404MKkvgK','packageName','626915LtVOLb','sdk','test','package.json','↪\x20SDK\x20update\x20available','24610SNvXyj','node_modules','\x1b[1m','dependencies','minVersion','devDependencies','@lovrabet/sdk','3786FhTBKR','readFileSync','21844cYxNyU','utf-8','log','npm\x20install\x20','node','utf8','6uebcmm','\x1b[0m','33GYRhmm'];a358_0x169a=function(){return _0x499e83;};return a358_0x169a();}import a358_0xb241dd from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x43b2a6){const _0x1e8947=a358_0xe330,_0x14f661=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x14f661['some'](_0x42c16b=>_0x42c16b[_0x1e8947(0x11b)](_0x43b2a6));}function getInstalledVersion(_0x5701b6,_0xad35a7){const _0x4aa6ec=a358_0xe330;try{const _0x3cb52f=a358_0x7b9f90[_0x4aa6ec(0x10e)](_0x5701b6,_0x4aa6ec(0x11f),_0xad35a7,_0x4aa6ec(0x11c));if(a358_0x7edc19['existsSync'](_0x3cb52f)){const _0x4596ef=JSON['parse'](a358_0x7edc19[_0x4aa6ec(0x104)](_0x3cb52f,_0x4aa6ec(0x106)));return _0x4596ef[_0x4aa6ec(0x10f)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x4722d3=a358_0xe330;try{const _0x78aa79=await getCdnConfig();return _0x78aa79?.[_0x4722d3(0x11a)]?.['node']?.[_0x4722d3(0x112)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x13c4af=a358_0xe330;try{const _0x46e555=await getCdnConfig();return _0x46e555?.['sdk']?.[_0x13c4af(0x109)]?.[_0x13c4af(0x118)]||_0x13c4af(0x102);}catch{return _0x13c4af(0x102);}}export async function checkSdkVersion(_0x30fb9e){const _0x3750f1=a358_0xe330,_0x3986ae=a358_0x7b9f90[_0x3750f1(0x10e)](_0x30fb9e,_0x3750f1(0x11c)),[_0x19470b,_0xff711]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0xf2dc6c=_0x19470b||FALLBACK_MIN_SDK_VERSION;if(!a358_0x7edc19[_0x3750f1(0x115)](_0x3986ae))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xf2dc6c,'packageName':_0xff711,'stableVersion':_0x19470b};try{const _0x18f442=JSON['parse'](a358_0x7edc19[_0x3750f1(0x104)](_0x3986ae,_0x3750f1(0x10a))),_0xa6f3cc=_0x18f442[_0x3750f1(0x121)]||{},_0x8ecd5f=_0x18f442[_0x3750f1(0x101)]||{},_0x4dbb47=_0xa6f3cc[_0xff711]||_0x8ecd5f[_0xff711];if(!_0x4dbb47)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xf2dc6c,'packageName':_0xff711,'stableVersion':_0x19470b};let _0x40481d=getInstalledVersion(_0x30fb9e,_0xff711);!_0x40481d&&(_0x40481d=_0x4dbb47);if(isNonNumericVersion(_0x4dbb47))return{'installed':!![],'version':_0x40481d,'needsUpgrade':![],'minVersion':_0xf2dc6c,'packageName':_0xff711,'stableVersion':_0x19470b};const _0x555f2e=a358_0xb241dd['coerce'](_0x40481d),_0x2e83ad=a358_0xb241dd[_0x3750f1(0x110)](_0xf2dc6c),_0x4d43f0=_0x555f2e&&_0x2e83ad?a358_0xb241dd['lt'](_0x555f2e,_0x2e83ad):![];return{'installed':!![],'version':_0x40481d,'needsUpgrade':_0x4d43f0,'minVersion':_0xf2dc6c,'packageName':_0xff711,'stableVersion':_0x19470b};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xf2dc6c,'packageName':_0xff711,'stableVersion':_0x19470b};}}export function checkSdkVersionSync(_0x51e0f5){const _0x5e2491=a358_0xe330,_0x34ef38=a358_0x7b9f90['join'](_0x51e0f5,_0x5e2491(0x11c)),_0x2982ba=_0x5e2491(0x102);if(!a358_0x7edc19[_0x5e2491(0x115)](_0x34ef38))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2982ba,'stableVersion':null};try{const _0x1373d5=JSON['parse'](a358_0x7edc19[_0x5e2491(0x104)](_0x34ef38,_0x5e2491(0x10a))),_0x2d3389=_0x1373d5[_0x5e2491(0x121)]||{},_0x507f59=_0x1373d5[_0x5e2491(0x101)]||{},_0x444492=_0x2d3389[_0x2982ba]||_0x507f59[_0x2982ba];if(!_0x444492)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2982ba,'stableVersion':null};let _0x36b98d=getInstalledVersion(_0x51e0f5,_0x2982ba);!_0x36b98d&&(_0x36b98d=_0x444492);if(isNonNumericVersion(_0x444492))return{'installed':!![],'version':_0x36b98d,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2982ba,'stableVersion':null};const _0x4df0df=a358_0xb241dd[_0x5e2491(0x110)](_0x36b98d),_0x16510e=_0x4df0df?a358_0xb241dd['lt'](_0x4df0df,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x36b98d,'needsUpgrade':_0x16510e,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2982ba,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2982ba,'stableVersion':null};}}function a358_0xe330(_0x2284f6,_0x988a13){_0x2284f6=_0x2284f6-0x100;const _0x169a3e=a358_0x169a();let _0xe33091=_0x169a3e[_0x2284f6];return _0xe33091;}export function printSdkUpgradeWarning(_0x46677f){const _0x5c75c9=a358_0xe330;if(!_0x46677f['needsUpgrade'])return;const _0x13f40e=_0x5c75c9(0x116),_0x68fb8c=_0x5c75c9(0x10c),_0x2c88fb=_0x5c75c9(0x120),_0x35470a=_0x46677f['packageName']||'@lovrabet/sdk',_0x372594=_0x46677f['stableVersion']||_0x46677f[_0x5c75c9(0x100)],_0x241b92=_0x5c75c9(0x108)+_0x35470a+'@'+(_0x372594||'latest');console[_0x5c75c9(0x107)](),console[_0x5c75c9(0x107)](''+_0x13f40e+_0x2c88fb+_0x5c75c9(0x11d)+_0x68fb8c),console[_0x5c75c9(0x107)](_0x13f40e+'\x20\x20\x20Current\x20version:\x20'+_0x35470a+'@'+_0x46677f[_0x5c75c9(0x10f)]+_0x68fb8c),console[_0x5c75c9(0x107)](_0x13f40e+'\x20\x20\x20Stable\x20version:\x20'+_0x372594+_0x68fb8c),console[_0x5c75c9(0x107)](_0x13f40e+'\x20\x20\x20Upgrade\x20command:\x20'+_0x241b92+_0x68fb8c),console['log']();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x29ae93,_0x3c2ea0){const _0x5b7c41=a359_0x3507,_0x204a70=_0x29ae93();while(!![]){try{const _0x5879d6=-parseInt(_0x5b7c41(0x98))/0x1*(-parseInt(_0x5b7c41(0x83))/0x2)+parseInt(_0x5b7c41(0x97))/0x3*(parseInt(_0x5b7c41(0x7d))/0x4)+-parseInt(_0x5b7c41(0x99))/0x5+-parseInt(_0x5b7c41(0x80))/0x6*(-parseInt(_0x5b7c41(0x9f))/0x7)+parseInt(_0x5b7c41(0x9b))/0x8+-parseInt(_0x5b7c41(0x8f))/0x9+-parseInt(_0x5b7c41(0x9a))/0xa*(parseInt(_0x5b7c41(0x9d))/0xb);if(_0x5879d6===_0x3c2ea0)break;else _0x204a70['push'](_0x204a70['shift']());}catch(_0x5e5caa){_0x204a70['push'](_0x204a70['shift']());}}}(a359_0x791b,0x34f06));function a359_0x791b(){const _0x517b20=['10fwYiOx','486576xAuUgi','coerce','1843193FPQiPT','utf-8','386183MgpWRB','filter','\x1b[1m','belowMinimum','\x20\x20\x20','\x20\x20\x20Current\x20CLI\x20version:\x20','currentVersion','\x1b[31m','52732jogFJP','↪\x20New\x20version\x20available','↪\x20Critical\x20CLI\x20upgrade\x20required','42DAEdZx','log','minimumVersionMessage','4NAuIRs','latest','\x1b[0m','join','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','../..','stableVersion','Current\x20version:\x20','minimumVersion','1.0.0','upgradeMessage','Minimum\x20supported:\x20','1455120tnfPnY','needsUpgrade','\x1b[33m','Upgrade\x20command:\x20','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Minimum\x20supported:\x20','npm\x20install\x20-g\x20','validation','12aEtTxp','190878xoVpyP','1677060RNXmIv'];a359_0x791b=function(){return _0x517b20;};return a359_0x791b();}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a359_0x5a56c9 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(_0x563a72){const _0x221fc8=a359_0x3507,_0x1c00e8=_0x563a72['stableVersion']||_0x221fc8(0x84);return _0x221fc8(0x95)+NPM_PACKAGE_NAME+'@'+_0x1c00e8;}function a359_0x3507(_0x316ad8,_0x1facde){_0x316ad8=_0x316ad8-0x79;const _0x791bbb=a359_0x791b();let _0x3507e3=_0x791bbb[_0x316ad8];return _0x3507e3;}function getCurrentCliVersion(){const _0x23644d=a359_0x3507;try{const _0x442092=fileURLToPath(import.meta.url),_0x5ef9a1=resolve(dirname(_0x442092),_0x23644d(0x88)),_0x2e5755=resolve(_0x5ef9a1,'package.json'),_0x97c6ce=JSON['parse'](readFileSync(_0x2e5755,_0x23644d(0x9e)));return _0x97c6ce['version']||_0x23644d(0x8c);}catch{return'1.0.0';}}export async function checkCliVersion(){const _0x5b5d93=a359_0x3507,_0x249c0f=getCurrentCliVersion(),_0x29fb3c=await getCliVersionPolicy(),_0x1331d7=_0x29fb3c?.[_0x5b5d93(0x89)]||null,_0x3859ad=_0x29fb3c?.[_0x5b5d93(0x8b)]||null;let _0x20705a=![],_0x5e66f1=![];const _0xb5f6a7=a359_0x5a56c9[_0x5b5d93(0x9c)](_0x249c0f);if(_0xb5f6a7&&_0x1331d7)try{const _0x1cf4bf=a359_0x5a56c9[_0x5b5d93(0x9c)](_0x1331d7);if(_0x1cf4bf)_0x20705a=a359_0x5a56c9['lt'](_0xb5f6a7,_0x1cf4bf);}catch{}if(_0xb5f6a7&&_0x3859ad)try{const _0x36d2fb=a359_0x5a56c9[_0x5b5d93(0x9c)](_0x3859ad);if(_0x36d2fb)_0x5e66f1=a359_0x5a56c9['lt'](_0xb5f6a7,_0x36d2fb);}catch{}return _0x5e66f1&&(_0x20705a=!![]),{'currentVersion':_0x249c0f,'stableVersion':_0x1331d7,'minimumVersion':_0x3859ad,'needsUpgrade':_0x20705a,'belowMinimum':_0x5e66f1,'isPreRelease':![],'upgradeMessage':_0x29fb3c?.[_0x5b5d93(0x8d)],'minimumVersionMessage':_0x29fb3c?.[_0x5b5d93(0x82)]};}export function printCliUpgradeWarning(_0x3b55a5){const _0x5d5dac=a359_0x3507;if(!_0x3b55a5[_0x5d5dac(0x90)]&&!_0x3b55a5[_0x5d5dac(0xa2)])return;const _0x41f1b7=_0x5d5dac(0x7c),_0x4ab974=_0x5d5dac(0x91),_0x233ae8=_0x5d5dac(0x85),_0x226926=_0x5d5dac(0xa1),_0x436a09=getCliUpgradeCommand(_0x3b55a5);console[_0x5d5dac(0x81)](),_0x3b55a5['belowMinimum']?(console['log'](''+_0x41f1b7+_0x226926+_0x5d5dac(0x7f)+_0x233ae8),console['log'](_0x41f1b7+_0x5d5dac(0x7a)+_0x3b55a5[_0x5d5dac(0x7b)]+_0x233ae8),_0x3b55a5[_0x5d5dac(0x8b)]&&console[_0x5d5dac(0x81)](_0x41f1b7+_0x5d5dac(0x94)+_0x3b55a5[_0x5d5dac(0x8b)]+_0x233ae8),_0x3b55a5['stableVersion']&&_0x3b55a5[_0x5d5dac(0x89)]!==_0x3b55a5[_0x5d5dac(0x8b)]&&console['log'](_0x41f1b7+'\x20\x20\x20Recommended\x20stable:\x20'+_0x3b55a5['stableVersion']+_0x233ae8),_0x3b55a5[_0x5d5dac(0x82)]&&console[_0x5d5dac(0x81)](_0x41f1b7+_0x5d5dac(0x79)+_0x3b55a5[_0x5d5dac(0x82)]+_0x233ae8),console['log'](_0x41f1b7+_0x5d5dac(0x93)+_0x436a09+_0x233ae8)):(console[_0x5d5dac(0x81)](''+_0x4ab974+_0x226926+_0x5d5dac(0x7e)+_0x233ae8),console[_0x5d5dac(0x81)](_0x4ab974+_0x5d5dac(0x7a)+_0x3b55a5[_0x5d5dac(0x7b)]+_0x233ae8),console[_0x5d5dac(0x81)](_0x4ab974+'\x20\x20\x20Stable\x20version:\x20'+_0x3b55a5[_0x5d5dac(0x89)]+_0x233ae8),_0x3b55a5[_0x5d5dac(0x8d)]&&console[_0x5d5dac(0x81)](_0x4ab974+'\x20\x20\x20'+_0x3b55a5[_0x5d5dac(0x8d)]+_0x233ae8),console[_0x5d5dac(0x81)](_0x4ab974+_0x5d5dac(0x93)+_0x436a09+_0x233ae8)),console[_0x5d5dac(0x81)]();}export function assertCliVersionSupported(_0x59de76){const _0x45f97e=a359_0x3507;if(!_0x59de76[_0x45f97e(0xa2)])return;const _0x2196a8=[_0x59de76[_0x45f97e(0x82)],_0x45f97e(0x8a)+_0x59de76[_0x45f97e(0x7b)],_0x59de76[_0x45f97e(0x8b)]?_0x45f97e(0x8e)+_0x59de76[_0x45f97e(0x8b)]:null,_0x45f97e(0x92)+getCliUpgradeCommand(_0x59de76)][_0x45f97e(0xa0)](Boolean)[_0x45f97e(0x86)]('\x0a');throw CliErrors[_0x45f97e(0x96)](_0x45f97e(0x87),_0x2196a8);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x34c4eb,_0x40ba4d){const _0x4e485f=a360_0x45b9,_0x309e42=_0x34c4eb();while(!![]){try{const _0x43d719=-parseInt(_0x4e485f(0x108))/0x1+parseInt(_0x4e485f(0x105))/0x2+-parseInt(_0x4e485f(0x102))/0x3*(parseInt(_0x4e485f(0x109))/0x4)+-parseInt(_0x4e485f(0x101))/0x5*(parseInt(_0x4e485f(0xfd))/0x6)+parseInt(_0x4e485f(0xfa))/0x7*(parseInt(_0x4e485f(0x10b))/0x8)+parseInt(_0x4e485f(0xfe))/0x9+-parseInt(_0x4e485f(0xfb))/0xa*(-parseInt(_0x4e485f(0x10a))/0xb);if(_0x43d719===_0x40ba4d)break;else _0x309e42['push'](_0x309e42['shift']());}catch(_0x5c635c){_0x309e42['push'](_0x309e42['shift']());}}}(a360_0x37e2,0xe17f3));import{getCliVersionPolicyUrl,getProjectTemplateAssetBaseUrl,getProjectTemplateLegacyAssetBaseUrl}from'../constant/cdn.js';import a360_0x5ed5a1 from'semver';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;export function isBetaCliVersion(_0x765263){const _0x1afa39=a360_0x45b9,_0xe77f61=a360_0x5ed5a1[_0x1afa39(0x107)](_0x765263);return _0xe77f61?a360_0x5ed5a1['prerelease'](_0xe77f61)?.[0x0]===_0x1afa39(0x10f):![];}export function resolveProjectTemplateDescriptor(_0x8d6871,_0x4fd3fb){const _0x44a380=a360_0x45b9;if(isBetaCliVersion(_0x4fd3fb))return _0x8d6871['beta']?.[_0x44a380(0xf9)]??_0x8d6871[_0x44a380(0xf9)];return _0x8d6871[_0x44a380(0xf9)];}function pickString(_0x47c3c6){const _0x4529f2=a360_0x45b9;return typeof _0x47c3c6===_0x4529f2(0xf7)&&_0x47c3c6['trim']()['length']>0x0?_0x47c3c6[_0x4529f2(0x10e)]():null;}function normalizeCliVersionPolicy(_0x5468c7){const _0x4a0bf3=a360_0x45b9;if(!_0x5468c7||typeof _0x5468c7!==_0x4a0bf3(0x106))return null;const _0x4206f5=_0x5468c7,_0x11b57f=_0x4206f5[_0x4a0bf3(0x10d)]&&typeof _0x4206f5[_0x4a0bf3(0x10d)]===_0x4a0bf3(0x106)?_0x4206f5[_0x4a0bf3(0x10d)]:_0x4206f5,_0x2e901e=pickString(_0x11b57f[_0x4a0bf3(0xff)])||pickString(_0x11b57f[_0x4a0bf3(0x100)])||pickString(_0x11b57f['recommendedVersion']),_0x231858=pickString(_0x11b57f['minimumVersion'])||pickString(_0x11b57f[_0x4a0bf3(0x103)]);if(!_0x2e901e&&!_0x231858)return null;return{'stableVersion':_0x2e901e,'minimumVersion':_0x231858,'upgradeMessage':pickString(_0x11b57f[_0x4a0bf3(0xf8)])||undefined,'minimumVersionMessage':pickString(_0x11b57f[_0x4a0bf3(0xf6)])||undefined};}async function fetchRabetbaseCdnConfigAt(_0x428ae3){const _0x66b0e3=a360_0x45b9,_0x2b6490=new AbortController(),_0x300dc0=setTimeout(()=>_0x2b6490[_0x66b0e3(0xfc)](),FETCH_TIMEOUT_MS);try{const _0x29e8f6=await fetch(_0x428ae3,{'headers':{'Accept':_0x66b0e3(0x104)},'signal':_0x2b6490[_0x66b0e3(0x10c)]});if(!_0x29e8f6['ok'])return null;const _0x1f073c=await _0x29e8f6[_0x66b0e3(0xf5)]();return _0x1f073c&&typeof _0x1f073c===_0x66b0e3(0x106)?_0x1f073c:null;}catch{return null;}finally{clearTimeout(_0x300dc0);}}export async function fetchRabetbaseCdnConfig(){return fetchRabetbaseCdnConfigAt(getCliVersionPolicyUrl());}export async function fetchProjectTemplateCdnConfig(){const _0x2294a8=await getRabetbaseCdnConfig();return _0x2294a8?{'config':_0x2294a8,'assetBaseUrl':getProjectTemplateAssetBaseUrl(),'legacyAssetBaseUrl':getProjectTemplateLegacyAssetBaseUrl()}:null;}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x543371=Date['now']();if(hasCachedConfig){const _0x5d6193=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x543371-cacheTime<_0x5d6193)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x543371,hasCachedConfig=!![],cachedConfig;}function a360_0x45b9(_0x5782dd,_0x125c9f){_0x5782dd=_0x5782dd-0xf5;const _0x37e25c=a360_0x37e2();let _0x45b989=_0x37e25c[_0x5782dd];return _0x45b989;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}function a360_0x37e2(){const _0x4dab2c=['json','minimumVersionMessage','string','upgradeMessage','projectTemplate','574ZnbKYx','1682770wUSLPb','abort','2718KDacyY','5768676sfHhLH','stableVersion','latestVersion','14915ijEPGZ','6ddgKuU','minVersion','application/json','1142894zbqMsY','object','valid','519993fyKvZb','1091796FEJYJj','88HmUFWt','76312ncgfqL','signal','cli','trim','beta'];a360_0x37e2=function(){return _0x4dab2c;};return a360_0x37e2();}
|
package/lib/utils/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a361_0x151661=a361_0x3d74;(function(_0x1a9981,_0x1bec18){const _0x1be9b5=a361_0x3d74,_0x1f1502=_0x1a9981();while(!![]){try{const _0x11c386=-parseInt(_0x1be9b5(0x101))/0x1+-parseInt(_0x1be9b5(0x104))/0x2*(-parseInt(_0x1be9b5(0x102))/0x3)+-parseInt(_0x1be9b5(0x107))/0x4+parseInt(_0x1be9b5(0x105))/0x5*(-parseInt(_0x1be9b5(0x10b))/0x6)+parseInt(_0x1be9b5(0x109))/0x7+-parseInt(_0x1be9b5(0x100))/0x8+-parseInt(_0x1be9b5(0x106))/0x9*(-parseInt(_0x1be9b5(0x10c))/0xa);if(_0x11c386===_0x1bec18)break;else _0x1f1502['push'](_0x1f1502['shift']());}catch(_0x5214e7){_0x1f1502['push'](_0x1f1502['shift']());}}}(a361_0x56ca,0x5afc9));import{initEnv}from'../constant/env.js';function a361_0x3d74(_0x127698,_0x5766ea){_0x127698=_0x127698-0x100;const _0x56ca90=a361_0x56ca();let _0x3d742b=_0x56ca90[_0x127698];return _0x3d742b;}import{readRawConfig,getConfigAppCode as a361_0x1c4cba,getMultiAppConfigs as a361_0x2d1a1b,getTemplateBaseUrl as a361_0x4e8822}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x350875){const _0x345db8=a361_0x3d74,_0xf4ca44=readRawConfig(_0x350875);return _0xf4ca44[_0x345db8(0x108)]&&typeof _0xf4ca44[_0x345db8(0x108)]===_0x345db8(0x10a)&&initEnv(_0xf4ca44[_0x345db8(0x108)]),_0xf4ca44;}export function getConfigAppCode(){return a361_0x1c4cba();}function a361_0x56ca(){const _0x2192ad=['2832616pbfFsQ','env','2746541nvVefp','string','2868jSMUHK','470fveGGe','5575032ylEBEF','302937TSbPSW','12NILxOJ','project','133498hhlVJH','6455eDBqpD','390330bHrpdK'];a361_0x56ca=function(){return _0x2192ad;};return a361_0x56ca();}export function getMultiAppConfigs(_0x37d53e=a361_0x151661(0x103)){return a361_0x2d1a1b(_0x37d53e);}export function getTemplateBaseUrl(){return a361_0x4e8822();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x32f4fd,_0x35c2e4){const _0x62d47c=a362_0x300a,_0x96f49e=_0x32f4fd();while(!![]){try{const _0x602efb=-parseInt(_0x62d47c(0x173))/0x1*(parseInt(_0x62d47c(0x171))/0x2)+parseInt(_0x62d47c(0x176))/0x3+-parseInt(_0x62d47c(0x170))/0x4+parseInt(_0x62d47c(0x16f))/0x5*(-parseInt(_0x62d47c(0x17b))/0x6)+parseInt(_0x62d47c(0x178))/0x7+-parseInt(_0x62d47c(0x179))/0x8*(parseInt(_0x62d47c(0x172))/0x9)+parseInt(_0x62d47c(0x17a))/0xa;if(_0x602efb===_0x35c2e4)break;else _0x96f49e['push'](_0x96f49e['shift']());}catch(_0xfe8029){_0x96f49e['push'](_0x96f49e['shift']());}}}(a362_0x4b09,0x18cf7));function a362_0x4b09(){const _0x2a61e6=['10exJCgP','54uZaOdS','15079gpBWYc','isFinite','number','139341BRzusM','string','688219dWeVpn','107192IXAQcT','3340750mtbvSJ','2700pdumXt','585NSqVot','675108ynEYjA'];a362_0x4b09=function(){return _0x2a61e6;};return a362_0x4b09();}function toFiniteNumber(_0x294768){const _0x53d2a9=a362_0x300a;if(typeof _0x294768===_0x53d2a9(0x175)&&Number['isFinite'](_0x294768))return _0x294768;if(typeof _0x294768===_0x53d2a9(0x177)){const _0x52bd91=_0x294768['trim']();if(!_0x52bd91)return undefined;const _0x441855=Number(_0x52bd91);if(Number[_0x53d2a9(0x174)](_0x441855))return _0x441855;}return undefined;}function a362_0x300a(_0x47f74c,_0x30225c){_0x47f74c=_0x47f74c-0x16f;const _0x4b090b=a362_0x4b09();let _0x300afe=_0x4b090b[_0x47f74c];return _0x300afe;}export function normalizeEntityWithIdResponse(_0x46a08c){const _0x3f603b=toFiniteNumber(_0x46a08c);if(_0x3f603b!==undefined)return{'id':_0x3f603b,'entity':{'id':_0x3f603b}};if(!_0x46a08c||typeof _0x46a08c!=='object')return{'id':undefined,'entity':{}};const _0x5dea89={..._0x46a08c},_0x53b2b0=toFiniteNumber(_0x5dea89['id']);return _0x53b2b0!==undefined&&(_0x5dea89['id']=_0x53b2b0),{'id':_0x53b2b0,'entity':_0x5dea89};}
|
package/lib/utils/file-utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x17c2d4,_0x26de4b){const _0x11592c=a363_0x5d98,_0x37fb2a=_0x17c2d4();while(!![]){try{const _0x40a4af=parseInt(_0x11592c(0x181))/0x1*(-parseInt(_0x11592c(0x183))/0x2)+parseInt(_0x11592c(0x184))/0x3*(parseInt(_0x11592c(0x17e))/0x4)+parseInt(_0x11592c(0x182))/0x5+-parseInt(_0x11592c(0x185))/0x6*(-parseInt(_0x11592c(0x180))/0x7)+-parseInt(_0x11592c(0x17d))/0x8+parseInt(_0x11592c(0x17f))/0x9+-parseInt(_0x11592c(0x17c))/0xa;if(_0x40a4af===_0x26de4b)break;else _0x37fb2a['push'](_0x37fb2a['shift']());}catch(_0x60eeda){_0x37fb2a['push'](_0x37fb2a['shift']());}}}(a363_0x1b1b,0x53eb7));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a363_0x5d98(_0x1c86ba,_0xdee53c){_0x1c86ba=_0x1c86ba-0x17c;const _0x1b1be2=a363_0x1b1b();let _0x5d988b=_0x1b1be2[_0x1c86ba];return _0x5d988b;}import{join}from'node:path';function a363_0x1b1b(){const _0x5a4ad6=['3649368CVHrQi','4qMtpUX','4493340nXjwdF','2429UlhRxN','60RVEdgt','2862945KEmIxq','19452QbYEgi','1093035iLMxrk','642xeFVxh','898570ODrSBt'];a363_0x1b1b=function(){return _0x5a4ad6;};return a363_0x1b1b();}export async function copyDir(_0xcdd85,_0x3d7269){const _0x5b2345=statSync(_0xcdd85);if(_0x5b2345['isDirectory']()){!existsSync(_0x3d7269)&&mkdirSync(_0x3d7269,{'recursive':!![]});const _0x9df4b0=readdirSync(_0xcdd85);for(const _0x383901 of _0x9df4b0){await copyDir(join(_0xcdd85,_0x383901),join(_0x3d7269,_0x383901));}}else copyFileSync(_0xcdd85,_0x3d7269);}export function ensureDir(_0x5472e0){!existsSync(_0x5472e0)&&mkdirSync(_0x5472e0,{'recursive':!![]});}export function pathExists(_0x15a747){return existsSync(_0x15a747);}
|
package/lib/utils/guides-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a364_0x5292e4=a364_0x48d1;(function(_0x51ae5a,_0x497e36){const _0x555b78=a364_0x48d1,_0x52e706=_0x51ae5a();while(!![]){try{const _0x1aae44=-parseInt(_0x555b78(0x1cf))/0x1*(parseInt(_0x555b78(0x1c5))/0x2)+-parseInt(_0x555b78(0x1ce))/0x3+parseInt(_0x555b78(0x1d6))/0x4+-parseInt(_0x555b78(0x1d0))/0x5+parseInt(_0x555b78(0x1c9))/0x6*(-parseInt(_0x555b78(0x1e3))/0x7)+-parseInt(_0x555b78(0x1c4))/0x8+parseInt(_0x555b78(0x1e0))/0x9;if(_0x1aae44===_0x497e36)break;else _0x52e706['push'](_0x52e706['shift']());}catch(_0x3c36f6){_0x52e706['push'](_0x52e706['shift']());}}}(a364_0x3223,0x2e5bd));import{mkdirSync,writeFileSync}from'node:fs';function a364_0x3223(){const _0x5d03df=['1289212BWokEg','replace','push','trimEnd','keys','entries','.md','guides','path','title','3521466nKlLYm','application/json','json','1547pEEhAj','.lovrabet/skill/guides','status','statusText','889720zOByJb','2Rleraf','length','content','extendContent','114LUkETu','\x0a\x0a>更新时间:','CDN\x20data\x20is\x20missing\x20skillTemplate','skillTemplate','join','162507NOWVeL','348379UIKJRX','28650gJFkVq','utf-8','.lovrabet','lastUpdated','CDN\x20request\x20failed:\x20','object'];a364_0x3223=function(){return _0x5d03df;};return a364_0x3223();}import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0xe5cc78=getTemplateBaseUrl();return _0xe5cc78+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a364_0x5292e4(0x1d2),'cache');export async function fetchGuidesFromCDN(){const _0x21a7e6=a364_0x5292e4,_0x3fad3c=getGuidesCdnUrl(),_0xaa0801=await fetch(_0x3fad3c,{'headers':{'Accept':_0x21a7e6(0x1e1)}});if(!_0xaa0801['ok'])throw new Error(_0x21a7e6(0x1d4)+_0xaa0801[_0x21a7e6(0x1c2)]+'\x20'+_0xaa0801[_0x21a7e6(0x1c3)]);const _0x2c8519=await _0xaa0801[_0x21a7e6(0x1e2)]();if(!_0x2c8519[_0x21a7e6(0x1dd)]||typeof _0x2c8519[_0x21a7e6(0x1dd)]!==_0x21a7e6(0x1d5))throw new Error('CDN\x20returned\x20invalid\x20data');return _0x2c8519;}export function writeGuidesToProject(_0x3f7fdd,_0x5176aa,_0x58511e=a364_0x5292e4(0x1e4),_0x1afe3b){const _0x364c94=a364_0x5292e4,_0x4189ed=join(_0x5176aa,_0x58511e);mkdirSync(_0x4189ed,{'recursive':!![]});for(const [_0x6e8442,_0x70c144]of Object[_0x364c94(0x1db)](_0x3f7fdd['guides'])){let _0x4f2f7f=_0x70c144[_0x364c94(0x1c7)];_0x70c144[_0x364c94(0x1d3)]&&(_0x4f2f7f=appendUpdateTime(_0x4f2f7f,_0x70c144[_0x364c94(0x1d3)])),writeFileSync(join(_0x4189ed,_0x6e8442+_0x364c94(0x1dc)),_0x4f2f7f,_0x364c94(0x1d1));}}export function appendUpdateTime(_0x35c865,_0x3b393b){const _0x1654ed=a364_0x5292e4;return _0x35c865=_0x35c865[_0x1654ed(0x1d7)](/\n*>更新时间:.*$/m,''),_0x35c865[_0x1654ed(0x1d9)]()+(_0x1654ed(0x1ca)+_0x3b393b);}export function getSkillTemplate(_0xc46ff2){const _0x20210b=a364_0x5292e4;return _0xc46ff2['skillTemplate']?.[_0x20210b(0x1c7)]||'';}export function appendExtendContents(_0x28ec3e,_0x460258,_0x509efb){const _0x1faf27=a364_0x5292e4,_0x2ff4a2=[];for(const [,_0x316418]of Object['entries'](_0x460258[_0x1faf27(0x1dd)])){_0x316418['extendContent']&&_0x2ff4a2[_0x1faf27(0x1d8)](_0x316418[_0x1faf27(0x1c8)][_0x1faf27(0x1d9)]());}if(_0x2ff4a2[_0x1faf27(0x1c6)]===0x0)return _0x28ec3e;return _0x28ec3e[_0x1faf27(0x1d9)]()+'\x0a\x0a'+_0x2ff4a2[_0x1faf27(0x1cd)]('\x0a\x0a')+'\x0a';}function a364_0x48d1(_0x51cfcd,_0x1a210c){_0x51cfcd=_0x51cfcd-0x1c2;const _0x322334=a364_0x3223();let _0x48d138=_0x322334[_0x51cfcd];return _0x48d138;}export function writeSkillFile(_0x46f1df,_0x4e76ce,_0x84beee){const _0x382ff1=a364_0x5292e4,_0x3e5c08=getSkillTemplate(_0x46f1df);if(!_0x3e5c08)throw new Error(_0x382ff1(0x1cb));const _0x2700e1=dirname(_0x4e76ce);mkdirSync(_0x2700e1,{'recursive':!![]});let _0x1ce264=_0x3e5c08['replace'](/\{\{IDE_NAME\}\}/g,_0x84beee);_0x1ce264=appendExtendContents(_0x1ce264,_0x46f1df),_0x46f1df[_0x382ff1(0x1cc)][_0x382ff1(0x1d3)]&&(_0x1ce264=appendUpdateTime(_0x1ce264,_0x46f1df[_0x382ff1(0x1cc)][_0x382ff1(0x1d3)])),writeFileSync(_0x4e76ce,_0x1ce264,_0x382ff1(0x1d1));}export async function installGuides(_0x589cbf){const _0x3484f0=a364_0x5292e4,_0x473f67=await fetchGuidesFromCDN();return writeGuidesToProject(_0x473f67,_0x589cbf),Object[_0x3484f0(0x1da)](_0x473f67[_0x3484f0(0x1dd)])[_0x3484f0(0x1c6)];}export function getGuidesSummary(_0x13ebea){const _0x5cbdbe=a364_0x5292e4;return Object[_0x5cbdbe(0x1db)](_0x13ebea[_0x5cbdbe(0x1dd)])['map'](([_0x3c09cd,_0x2877ca])=>({'key':_0x3c09cd,'title':_0x2877ca[_0x5cbdbe(0x1df)],'path':_0x2877ca[_0x5cbdbe(0x1de)]}));}
|
package/lib/utils/http-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1a5cd,_0x3d68b4){const _0xaf4cb6=a365_0x3dfd,_0x4217c2=_0x1a5cd();while(!![]){try{const _0x29635e=-parseInt(_0xaf4cb6(0xcf))/0x1+parseInt(_0xaf4cb6(0xd6))/0x2*(-parseInt(_0xaf4cb6(0xda))/0x3)+parseInt(_0xaf4cb6(0xd7))/0x4*(parseInt(_0xaf4cb6(0xc7))/0x5)+parseInt(_0xaf4cb6(0xc8))/0x6+parseInt(_0xaf4cb6(0xce))/0x7+-parseInt(_0xaf4cb6(0xd5))/0x8+-parseInt(_0xaf4cb6(0xc5))/0x9*(-parseInt(_0xaf4cb6(0xcb))/0xa);if(_0x29635e===_0x3d68b4)break;else _0x4217c2['push'](_0x4217c2['shift']());}catch(_0x560d3b){_0x4217c2['push'](_0x4217c2['shift']());}}}(a365_0x226f,0x76910));export async function httpRequest(_0x1d07dd,_0x4d83e9={}){const _0x2de57e=a365_0x3dfd,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x4d83e9;let _0x5067f7=null;for(let _0x113332=0x0;_0x113332<=retries;_0x113332++){try{const _0x2f1869=new AbortController(),_0x4c733f=setTimeout(()=>_0x2f1869['abort'](),timeout),_0xc07e32=await fetch(_0x1d07dd,{'headers':headers,'signal':_0x2f1869[_0x2de57e(0xcd)]});clearTimeout(_0x4c733f);let _0x40c5ff;const _0x54e64e=_0xc07e32['headers']['get'](_0x2de57e(0xc6));return _0x54e64e?.[_0x2de57e(0xc1)]('application/json')?_0x40c5ff=await _0xc07e32[_0x2de57e(0xd9)]():_0x40c5ff=await _0xc07e32['text'](),{'ok':_0xc07e32['ok'],'status':_0xc07e32[_0x2de57e(0xc2)],'statusText':_0xc07e32[_0x2de57e(0xc9)],'data':_0x40c5ff,'headers':_0xc07e32[_0x2de57e(0xd1)],'url':_0xc07e32[_0x2de57e(0xd2)],'text':()=>_0xc07e32[_0x2de57e(0xd3)]()};}catch(_0x5e2bd8){_0x5067f7=_0x5e2bd8 instanceof Error?_0x5e2bd8:new Error(String(_0x5e2bd8));if(_0x113332===retries)break;if(shouldRetry(_0x5e2bd8)){console[_0x2de57e(0xcc)](_0x2de57e(0xd0)+(_0x113332+0x1)+'\x20in\x20'+retryDelay+'ms...'),await sleep(retryDelay);continue;}else break;}}throw _0x5067f7||new Error('Request\x20failed');}function a365_0x226f(){const _0x125e9c=['6812728InVKWp','7354FsmiyF','525732KUkMij','fetch','json','417YyYCWL','includes','status','message','name','9kSbceP','content-type','10PseDFh','931200YVrGBc','statusText','TypeError','15092530KcWLyP','log','signal','3206035HwQQcc','536982xrknDn','*\x20Request\x20failed;\x20retry\x20','headers','url','text','AbortError'];a365_0x226f=function(){return _0x125e9c;};return a365_0x226f();}function shouldRetry(_0x596744){const _0x1b526b=a365_0x3dfd;if(_0x596744 instanceof Error){if(_0x596744[_0x1b526b(0xc4)]===_0x1b526b(0xd4))return![];if(_0x596744[_0x1b526b(0xc4)]===_0x1b526b(0xca)&&_0x596744[_0x1b526b(0xc3)][_0x1b526b(0xc1)](_0x1b526b(0xd8)))return!![];if(_0x596744[_0x1b526b(0xc3)][_0x1b526b(0xc1)]('ECONNRESET'))return!![];if(_0x596744[_0x1b526b(0xc3)][_0x1b526b(0xc1)]('ENOTFOUND'))return![];}return![];}function sleep(_0x36723d){return new Promise(_0x5f02a6=>setTimeout(_0x5f02a6,_0x36723d));}function a365_0x3dfd(_0x2c70de,_0x16cb73){_0x2c70de=_0x2c70de-0xc1;const _0x226f58=a365_0x226f();let _0x3dfd3f=_0x226f58[_0x2c70de];return _0x3dfd3f;}export function validateUrl(_0x6a3e29){try{return new URL(_0x6a3e29),!![];}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x9c286d,_0x23d8f2){const _0x3bd67a=a366_0xdfb1,_0x5b8fd6=_0x9c286d();while(!![]){try{const _0x4ed6be=parseInt(_0x3bd67a(0x9f))/0x1*(-parseInt(_0x3bd67a(0x9d))/0x2)+parseInt(_0x3bd67a(0xa2))/0x3+parseInt(_0x3bd67a(0xa4))/0x4*(-parseInt(_0x3bd67a(0xaa))/0x5)+parseInt(_0x3bd67a(0x9e))/0x6*(parseInt(_0x3bd67a(0x99))/0x7)+-parseInt(_0x3bd67a(0x9c))/0x8*(parseInt(_0x3bd67a(0xa9))/0x9)+-parseInt(_0x3bd67a(0xa5))/0xa*(-parseInt(_0x3bd67a(0xa8))/0xb)+-parseInt(_0x3bd67a(0xa6))/0xc*(-parseInt(_0x3bd67a(0xa0))/0xd);if(_0x4ed6be===_0x23d8f2)break;else _0x5b8fd6['push'](_0x5b8fd6['shift']());}catch(_0xa8cb93){_0x5b8fd6['push'](_0x5b8fd6['shift']());}}}(a366_0x2f66,0xbcb17));function a366_0xdfb1(_0x4f127a,_0x31e63e){_0x4f127a=_0x4f127a-0x99;const _0x2f6639=a366_0x2f66();let _0xdfb16a=_0x2f6639[_0x4f127a];return _0xdfb16a;}function env(_0x57fc6f){return process.env[`RABETBASE_${_0x57fc6f}`]||process.env[`LOVRABET_${_0x57fc6f}`]||undefined;}export function isNonInteractive(_0x51035e){const _0x4ea236=a366_0xdfb1;return!!(_0x51035e['nonInteractive']||_0x51035e['ci']||env('CI')===_0x4ea236(0x9a)||process.env.CI==='true'||!process[_0x4ea236(0xa3)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x4719bf=a366_0xdfb1;if(!process['stdin'][_0x4719bf(0xa7)])return![];try{const _0x408355=process[_0x4719bf(0x9b)]['isRaw'];return process['stdin'][_0x4719bf(0xa1)](!![]),process[_0x4719bf(0x9b)][_0x4719bf(0xa1)](_0x408355??![]),!![];}catch{return![];}}function a366_0x2f66(){const _0xbe4544=['1070470ZcoeqZ','4942692MaAycF','isTTY','33ZYFOpG','24264QHQtYW','22595RsdCQe','1554DugTPy','true','stdin','16HaKHIV','6efiEbH','20520bFLWcW','373859ZRMfQP','26GQejMM','setRawMode','1546134yOZSSO','stdout','460AzytTj'];a366_0x2f66=function(){return _0xbe4544;};return a366_0x2f66();}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a367_0xadc928=a367_0x2931;(function(_0x4b00c8,_0x5f416e){const _0x2f6864=a367_0x2931,_0x498b2a=_0x4b00c8();while(!![]){try{const _0x457818=-parseInt(_0x2f6864(0x16f))/0x1+parseInt(_0x2f6864(0x16e))/0x2*(parseInt(_0x2f6864(0x153))/0x3)+parseInt(_0x2f6864(0x170))/0x4+parseInt(_0x2f6864(0x15b))/0x5*(-parseInt(_0x2f6864(0x16a))/0x6)+parseInt(_0x2f6864(0x163))/0x7*(-parseInt(_0x2f6864(0x15f))/0x8)+parseInt(_0x2f6864(0x151))/0x9+parseInt(_0x2f6864(0x13e))/0xa;if(_0x457818===_0x5f416e)break;else _0x498b2a['push'](_0x498b2a['shift']());}catch(_0x5a6c04){_0x498b2a['push'](_0x498b2a['shift']());}}}(a367_0x2254,0xd40f5));import a367_0x5251d from'winston';import a367_0x347489 from'node:fs';import a367_0x1584fc from'node:path';function a367_0x2931(_0x21276c,_0x11bdf2){_0x21276c=_0x21276c-0x13b;const _0x2254cb=a367_0x2254();let _0x29311c=_0x2254cb[_0x21276c];return _0x29311c;}function a367_0x2254(){const _0x2d8a1d=['7HmqVWW','rawCommand','green','trim','info','combine','details','1578luFJnm','map','existsSync','now','226dNzxyX','361254RHcyKS','3672696NvWFAw','format','currentRawCommand','logFilePath','7215290xhutga','Failed:\x20','writeFileSync','error','blue','initWinstonLogger','readLogs','unknown','mkdirSync','red','yellow','dirname','winstonLogger','addColors','stringify','parse','warn','command','setLogPath','15184890fdqyUC','Failed\x20to\x20read\x20logs:','29832ZXkKyo','createLogger','getWinstonInstance','utf8','clear','readFileSync','setRawCommand','Failed\x20to\x20clear\x20logs:','30815fafXJY','clearLogs','success','timestamp','12798920NFSbaB','toISOString','message','log'];a367_0x2254=function(){return _0x2d8a1d;};return a367_0x2254();}class Logger{[a367_0xadc928(0x14a)];[a367_0xadc928(0x13d)];[a367_0xadc928(0x13c)]='';constructor(){const _0x3d7261=a367_0xadc928;this[_0x3d7261(0x13d)]='';}[a367_0xadc928(0x159)](_0x53bc70){const _0x3bade2=a367_0xadc928;this[_0x3bade2(0x13c)]=_0x53bc70;}['initWinstonLogger'](){const _0xe60e6a=a367_0xadc928,_0x3700c4=a367_0x1584fc[_0xe60e6a(0x149)](this['logFilePath']);!a367_0x347489[_0xe60e6a(0x16c)](_0x3700c4)&&a367_0x347489[_0xe60e6a(0x146)](_0x3700c4,{'recursive':!![]});const _0x283782=a367_0x5251d[_0xe60e6a(0x13b)][_0xe60e6a(0x168)](a367_0x5251d[_0xe60e6a(0x13b)][_0xe60e6a(0x15e)](),a367_0x5251d[_0xe60e6a(0x13b)]['errors']({'stack':!![]}),a367_0x5251d[_0xe60e6a(0x13b)]['printf'](_0x505e5e=>{const _0xbc5b3a=_0xe60e6a,_0x35a383={'timestamp':_0x505e5e[_0xbc5b3a(0x15e)]||new Date()[_0xbc5b3a(0x160)](),'level':_0x505e5e['level']||_0xbc5b3a(0x167),'command':_0x505e5e[_0xbc5b3a(0x14f)]||_0xbc5b3a(0x145),'rawCommand':_0x505e5e[_0xbc5b3a(0x164)]||this['currentRawCommand']||undefined,'message':_0x505e5e[_0xbc5b3a(0x161)]||'','duration':_0x505e5e['duration']||undefined,'details':_0x505e5e[_0xbc5b3a(0x169)]||undefined};return JSON[_0xbc5b3a(0x14c)](_0x35a383);}));this[_0xe60e6a(0x14a)]=a367_0x5251d[_0xe60e6a(0x154)]({'level':_0xe60e6a(0x167),'format':_0x283782,'transports':[new a367_0x5251d['transports']['File']({'filename':this[_0xe60e6a(0x13d)],'level':_0xe60e6a(0x167)})],'silent':![]}),a367_0x5251d[_0xe60e6a(0x14b)]({'success':_0xe60e6a(0x165),'error':_0xe60e6a(0x147),'warn':_0xe60e6a(0x148),'info':_0xe60e6a(0x142)});}[a367_0xadc928(0x150)](_0x17b7d3){const _0x59b00b=a367_0xadc928;this['logFilePath']=a367_0x1584fc['join'](_0x17b7d3,'.lovrabet.log'),this[_0x59b00b(0x14a)]&&this[_0x59b00b(0x14a)][_0x59b00b(0x157)](),this[_0x59b00b(0x143)]();}[a367_0xadc928(0x167)](_0x1e522c,_0x15b0e7,_0x2cdc90){const _0x1ef7fb=a367_0xadc928;if(!this[_0x1ef7fb(0x13d)]||!this['winstonLogger'])return;this[_0x1ef7fb(0x14a)][_0x1ef7fb(0x167)](_0x15b0e7,{'command':_0x1e522c,'details':_0x2cdc90});}[a367_0xadc928(0x15d)](_0x577ea4,_0x4b168d,_0x247de1,_0x2a33d8){const _0x2bf0ed=a367_0xadc928;if(!this[_0x2bf0ed(0x13d)]||!this[_0x2bf0ed(0x14a)])return;this[_0x2bf0ed(0x14a)][_0x2bf0ed(0x162)]('info',_0x4b168d,{'level':_0x2bf0ed(0x15d),'command':_0x577ea4,'duration':_0x247de1,'details':_0x2a33d8});}['error'](_0x32c078,_0x1ed6ad,_0x5ec204){const _0x5564a3=a367_0xadc928;if(!this[_0x5564a3(0x13d)]||!this[_0x5564a3(0x14a)])return;this[_0x5564a3(0x14a)][_0x5564a3(0x141)](_0x1ed6ad,{'command':_0x32c078,'details':_0x5ec204});}[a367_0xadc928(0x14e)](_0x37e4ee,_0x5ceda0,_0x21e590){const _0x21bb0b=a367_0xadc928;if(!this[_0x21bb0b(0x13d)]||!this[_0x21bb0b(0x14a)])return;this[_0x21bb0b(0x14a)]['warn'](_0x5ceda0,{'command':_0x37e4ee,'details':_0x21e590});}async['logTask'](_0x3c5063,_0x3a674f,_0x1914c7){const _0x1560af=a367_0xadc928,_0x5ec234=Date[_0x1560af(0x16d)]();this[_0x1560af(0x167)](_0x3c5063,'Starting:\x20'+_0x3a674f);try{const _0x13ead2=await _0x1914c7(),_0x1abd71=Date[_0x1560af(0x16d)]()-_0x5ec234;return this[_0x1560af(0x15d)](_0x3c5063,'Completed:\x20'+_0x3a674f,_0x1abd71),_0x13ead2;}catch(_0x300c78){const _0x290727=Date[_0x1560af(0x16d)]()-_0x5ec234;this[_0x1560af(0x141)](_0x3c5063,_0x1560af(0x13f)+_0x3a674f,{'error':_0x300c78 instanceof Error?_0x300c78[_0x1560af(0x161)]:String(_0x300c78),'duration':_0x290727});throw _0x300c78;}}[a367_0xadc928(0x144)](){const _0x54418f=a367_0xadc928;try{if(!a367_0x347489[_0x54418f(0x16c)](this['logFilePath']))return[];const _0x17ab3f=a367_0x347489[_0x54418f(0x158)](this[_0x54418f(0x13d)],_0x54418f(0x156));return _0x17ab3f['split']('\x0a')['filter'](_0x12700e=>_0x12700e[_0x54418f(0x166)]())[_0x54418f(0x16b)](_0x257b41=>JSON[_0x54418f(0x14d)](_0x257b41));}catch(_0x3d9d64){return console[_0x54418f(0x14e)](_0x54418f(0x152),_0x3d9d64),[];}}[a367_0xadc928(0x15c)](){const _0x3040ad=a367_0xadc928;try{a367_0x347489['existsSync'](this[_0x3040ad(0x13d)])&&a367_0x347489[_0x3040ad(0x140)](this[_0x3040ad(0x13d)],'','utf8');}catch(_0x5c88ac){console[_0x3040ad(0x14e)](_0x3040ad(0x15a),_0x5c88ac);}}[a367_0xadc928(0x155)](){const _0x40b35a=a367_0xadc928;return this[_0x40b35a(0x14a)];}}export const logger=new Logger();
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x42e663,_0x355d76){const _0x50ba67=a368_0x382a,_0x48d0ae=_0x42e663();while(!![]){try{const _0x3e07af=-parseInt(_0x50ba67(0xe4))/0x1*(-parseInt(_0x50ba67(0xf2))/0x2)+-parseInt(_0x50ba67(0xe3))/0x3*(parseInt(_0x50ba67(0xf3))/0x4)+-parseInt(_0x50ba67(0xf0))/0x5*(parseInt(_0x50ba67(0xeb))/0x6)+-parseInt(_0x50ba67(0xe6))/0x7*(parseInt(_0x50ba67(0xe9))/0x8)+parseInt(_0x50ba67(0xee))/0x9+parseInt(_0x50ba67(0xea))/0xa*(-parseInt(_0x50ba67(0xe5))/0xb)+parseInt(_0x50ba67(0xe2))/0xc;if(_0x3e07af===_0x355d76)break;else _0x48d0ae['push'](_0x48d0ae['shift']());}catch(_0x3258b4){_0x48d0ae['push'](_0x48d0ae['shift']());}}}(a368_0xa88a,0xbef1f));function a368_0x382a(_0x1b36c5,_0x237c13){_0x1b36c5=_0x1b36c5-0xe2;const _0xa88a7c=a368_0xa88a();let _0x382aa0=_0xa88a7c[_0x1b36c5];return _0x382aa0;}import{CliErrors}from'../errors.js';function a368_0xa88a(){const _0x1fb61a=['object','2230504hgOMvM','5005540iIweOu','20442jJEWkh','isArray','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','11626461keyoTO','validation','615cqglid','--params\x20must\x20be\x20a\x20JSON\x20object','6kQxilP','749228eLFief','34157580rrxciw','18fujddh','8089KtYXMV','22jDvunM','21TLefQU','parse'];a368_0xa88a=function(){return _0x1fb61a;};return a368_0xa88a();}export function parseJsonParams(_0x2fa662){const _0xa60fb6=a368_0x382a;if(!_0x2fa662)return undefined;let _0x4033ea;try{_0x4033ea=JSON[_0xa60fb6(0xe7)](_0x2fa662);}catch{throw CliErrors[_0xa60fb6(0xef)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x2fa662);}if(!_0x4033ea||typeof _0x4033ea!==_0xa60fb6(0xe8)||Array[_0xa60fb6(0xec)](_0x4033ea))throw CliErrors[_0xa60fb6(0xef)](_0xa60fb6(0xf1),_0xa60fb6(0xed));return _0x4033ea;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a369_0x4a07(_0x80b114,_0x4ecf80){_0x80b114=_0x80b114-0xdc;const _0x14833a=a369_0x1483();let _0x4a0738=_0x14833a[_0x80b114];return _0x4a0738;}const a369_0xa5491d=a369_0x4a07;(function(_0x19e176,_0x4cf673){const _0x558243=a369_0x4a07,_0x56cdbd=_0x19e176();while(!![]){try{const _0x30f7e2=parseInt(_0x558243(0xde))/0x1+parseInt(_0x558243(0xe5))/0x2+parseInt(_0x558243(0xe6))/0x3*(-parseInt(_0x558243(0xe4))/0x4)+-parseInt(_0x558243(0xdc))/0x5+-parseInt(_0x558243(0xe0))/0x6*(parseInt(_0x558243(0xdd))/0x7)+parseInt(_0x558243(0xe2))/0x8+parseInt(_0x558243(0xe7))/0x9*(parseInt(_0x558243(0xe1))/0xa);if(_0x30f7e2===_0x4cf673)break;else _0x56cdbd['push'](_0x56cdbd['shift']());}catch(_0x217771){_0x56cdbd['push'](_0x56cdbd['shift']());}}}(a369_0x1483,0x825d1));export const isWindows=process['platform']===a369_0xa5491d(0xe3);export function resolveNpmBin(_0x2e3859){const _0x2ec5c1=a369_0xa5491d;return isWindows?_0x2e3859+_0x2ec5c1(0xdf):_0x2e3859;}function a369_0x1483(){const _0xcee2b=['58299mqbDoT','143379ksecPm','1711520oQzxSz','10290OBWUDP','1004194pAYZcj','.cmd','3558iayHxg','220gRpQMp','5530744NMJeZr','win32','136ZFSvXP','725372Mnsnch'];a369_0x1483=function(){return _0xcee2b;};return a369_0x1483();}
|
package/lib/utils/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function sleep(
|
|
1
|
+
export function sleep(_0x39b656){return new Promise(_0x235641=>setTimeout(_0x235641,_0x39b656));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a371_0x35a32a=a371_0x35c1;function a371_0x35c1(_0x44cd8f,_0xb5dfdd){_0x44cd8f=_0x44cd8f-0xa4;const _0x4a0890=a371_0x4a08();let _0x35c1da=_0x4a0890[_0x44cd8f];return _0x35c1da;}(function(_0x408f2e,_0x11784e){const _0x4fa061=a371_0x35c1,_0x342644=_0x408f2e();while(!![]){try{const _0x444acf=-parseInt(_0x4fa061(0xc2))/0x1+parseInt(_0x4fa061(0xd4))/0x2+-parseInt(_0x4fa061(0xc9))/0x3*(parseInt(_0x4fa061(0xdb))/0x4)+parseInt(_0x4fa061(0xd2))/0x5+-parseInt(_0x4fa061(0xb9))/0x6*(-parseInt(_0x4fa061(0xc0))/0x7)+-parseInt(_0x4fa061(0xbc))/0x8+parseInt(_0x4fa061(0xbb))/0x9;if(_0x444acf===_0x11784e)break;else _0x342644['push'](_0x342644['shift']());}catch(_0x3f3f98){_0x342644['push'](_0x342644['shift']());}}}(a371_0x4a08,0xaf344));import a371_0x5d2fd5 from'node:fs';function a371_0x4a08(){const _0x15217c=['name','mkdir','endsWith','.tsx','utf8','pad','.ts','includes','tableName:\x20\x22','getSeconds','info','map','datasetCode:\x20\x22','processTemplate','charAt','success','1686fAZqif','datasetCode','14268195ogdoHt','4438264qAdWUH','replace','getMonth','toDisplayTitle','19740EcnbgF','isFile','1381125PvtHov','alias:\x20\x22','toComponentName','join','getHours','padStart','pop','17547rCCZvn','getDate','tableName','readdir','push','.tpl','processDirectory','.json','replaceContent','5559715snTLUG','.md','936306rNKnxQ','api','LOVRABET','processFile','formatLocalTimestamp','split','.scss','892VLTYmh','\x20},','now','toLowerCase','Starting\x20template\x20content\x20replacement','isDirectory','replaceApiContent','slice','sdk-config','.jsx','\x0a\x20\x20\x20\x20{\x20','template','.js','toUpperCase','copyFile','.css','promises','message','getFullYear','toISOString','extname'];a371_0x4a08=function(){return _0x15217c;};return a371_0x4a08();}import a371_0x32defa from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static['pad'](_0x492a17){const _0x22d766=a371_0x35c1;return String(_0x492a17)[_0x22d766(0xc7)](0x2,'0');}static[a371_0x35a32a(0xd8)](_0x518c00){const _0x4f26d3=a371_0x35a32a,_0x20d150=_0x518c00[_0x4f26d3(0xa6)](),_0x2acb31=this[_0x4f26d3(0xae)](_0x518c00[_0x4f26d3(0xbe)]()+0x1),_0x4cc556=this[_0x4f26d3(0xae)](_0x518c00[_0x4f26d3(0xca)]()),_0xeb4a00=this[_0x4f26d3(0xae)](_0x518c00[_0x4f26d3(0xc6)]()),_0xd51f94=this['pad'](_0x518c00['getMinutes']()),_0x21e583=this[_0x4f26d3(0xae)](_0x518c00[_0x4f26d3(0xb2)]());return{'createdAt':_0x20d150+'-'+_0x2acb31+'-'+_0x4cc556+'\x20'+_0xeb4a00+':'+_0xd51f94+':'+_0x21e583,'createdDate':_0x20d150+'-'+_0x2acb31+'-'+_0x4cc556,'createdTime':_0xeb4a00+':'+_0xd51f94+':'+_0x21e583};}static[a371_0x35a32a(0xc4)](_0x2d80d8){const _0x51117e=a371_0x35a32a,_0x510a9a=_0x2d80d8[_0x51117e(0xd9)]('/')[_0x51117e(0xc8)]()||_0x2d80d8;return _0x510a9a['split']('-')['map'](_0xc7d404=>_0xc7d404[_0x51117e(0xb7)](0x0)['toUpperCase']()+_0xc7d404[_0x51117e(0xe2)](0x1)[_0x51117e(0xde)]())[_0x51117e(0xc5)]('');}static[a371_0x35a32a(0xbf)](_0x4e1a72){const _0x163011=a371_0x35a32a,_0x2dfeca=_0x4e1a72[_0x163011(0xd9)]('/')[_0x163011(0xc8)]()||_0x4e1a72;return _0x2dfeca[_0x163011(0xd9)]('-')['map'](_0x10eaa0=>_0x10eaa0['charAt'](0x0)[_0x163011(0xe8)]()+_0x10eaa0[_0x163011(0xe2)](0x1)[_0x163011(0xde)]())[_0x163011(0xc5)]('\x20');}static[a371_0x35a32a(0xd1)](_0x1321aa,_0x3cb48a,_0x365bf0){const _0x100bf3=a371_0x35a32a,_0x397271=this[_0x100bf3(0xc4)](_0x3cb48a),_0x5b108b=this[_0x100bf3(0xbf)](_0x3cb48a),{createdAt:_0x7f63a4,createdDate:_0x340584,createdTime:_0x3974bb}=this['formatLocalTimestamp'](new Date());let _0x7d5a63=_0x1321aa[_0x100bf3(0xbd)](/\{CliVersion\}/g,CLI_VERSION)[_0x100bf3(0xbd)](/\{ComponentName\}/g,_0x397271)[_0x100bf3(0xbd)](/\{DisplayTitle\}/g,_0x5b108b)[_0x100bf3(0xbd)](/\{PageName\}/g,_0x3cb48a)[_0x100bf3(0xbd)](/\{TemplateName\}/g,_0x365bf0)[_0x100bf3(0xbd)](/\{CreatedAt\}/g,_0x7f63a4)[_0x100bf3(0xbd)](/\{CreatedDate\}/g,_0x340584)[_0x100bf3(0xbd)](/\{CreatedTime\}/g,_0x3974bb);return _0x7d5a63;}static[a371_0x35a32a(0xe1)](_0x3fccda,_0x1987c7,_0x2929b3,_0x43631c,_0x107ad7,_0x362a5d,_0xad5ba9,_0x3d49b3,_0x4d68f1){const _0x4c31f7=a371_0x35a32a,_0x350754=new Date(),_0x225137=_0x350754[_0x4c31f7(0xa7)](),_0x49c2d4=_0x2929b3[_0x4c31f7(0xb4)](_0x363cbf=>{const _0x416d55=_0x4c31f7,_0x546e00=[_0x416d55(0xb5)+_0x363cbf[_0x416d55(0xba)]+'\x22',_0x416d55(0xb1)+_0x363cbf[_0x416d55(0xcb)]+'\x22','name:\x20\x22'+_0x363cbf[_0x416d55(0xa9)]+'\x22'];return _0x363cbf['alias']&&_0x546e00[_0x416d55(0xcd)](_0x416d55(0xc3)+_0x363cbf['alias']+'\x22'),_0x416d55(0xe5)+_0x546e00['join'](',\x20')+_0x416d55(0xdc);})[_0x4c31f7(0xc5)](''),_0x4defbf=_0x43631c||_0x2929b3[0x0]?.['alias']||'YourModel';let _0x175d64=_0x3fccda[_0x4c31f7(0xbd)](/\{AppCode\}/g,_0x1987c7)[_0x4c31f7(0xbd)](/\{ModelConfigs\}/g,_0x49c2d4)[_0x4c31f7(0xbd)](/\{ExampleModelName\}/g,_0x4defbf)[_0x4c31f7(0xbd)](/\{ApiFileName\}/g,_0x107ad7||_0x4c31f7(0xd5))[_0x4c31f7(0xbd)](/\{ConfigName\}/g,_0x362a5d||'default')[_0x4c31f7(0xbd)](/\{ClientConfigParam\}/g,_0xad5ba9||'')[_0x4c31f7(0xbd)](/\{SdkConfigFileName\}/g,_0x4d68f1||_0x4c31f7(0xe3))['replace'](/\{VarPrefix\}/g,_0x3d49b3||_0x4c31f7(0xd6))[_0x4c31f7(0xbd)](/\{CreatedAt\}/g,_0x225137);return _0x175d64;}static async[a371_0x35a32a(0xb6)](_0x42b693,_0x2caee9,_0x2eb1cb,_0x12132a,_0x390fdf=!![]){const _0x1c0a7d=a371_0x35a32a,_0x453cb2=Date[_0x1c0a7d(0xdd)]();try{_0x390fdf&&logger[_0x1c0a7d(0xb3)](_0x1c0a7d(0xe6),_0x1c0a7d(0xdf),{'templatePath':_0x42b693,'targetPath':_0x2caee9,'pageName':_0x2eb1cb,'templateName':_0x12132a});await a371_0x5d2fd5[_0x1c0a7d(0xa4)][_0x1c0a7d(0xaa)](_0x2caee9,{'recursive':!![]}),await this[_0x1c0a7d(0xcf)](_0x42b693,_0x2caee9,_0x2eb1cb,_0x12132a);if(_0x390fdf){const _0x1e90e1=Date[_0x1c0a7d(0xdd)]()-_0x453cb2;logger[_0x1c0a7d(0xb8)](_0x1c0a7d(0xe6),'Template\x20content\x20replacement\x20completed',_0x1e90e1,{'pageName':_0x2eb1cb,'templateName':_0x12132a});}}catch(_0x4d8dfa){if(_0x390fdf){const _0x76ccfd=Date['now']()-_0x453cb2;logger['error'](_0x1c0a7d(0xe6),'Template\x20content\x20replacement\x20failed',{'templatePath':_0x42b693,'targetPath':_0x2caee9,'pageName':_0x2eb1cb,'templateName':_0x12132a,'error':_0x4d8dfa instanceof Error?_0x4d8dfa[_0x1c0a7d(0xa5)]:String(_0x4d8dfa),'duration':_0x76ccfd});}throw _0x4d8dfa;}}static async[a371_0x35a32a(0xcf)](_0x1eff51,_0x36d9a8,_0x2de8ee,_0x2fbdf9){const _0x1b7be3=a371_0x35a32a,_0x49a033=await a371_0x5d2fd5[_0x1b7be3(0xa4)][_0x1b7be3(0xcc)](_0x1eff51,{'withFileTypes':!![]});for(const _0x4cd5a4 of _0x49a033){const _0x557a5a=a371_0x32defa[_0x1b7be3(0xc5)](_0x1eff51,_0x4cd5a4[_0x1b7be3(0xa9)]);let _0x8a4e2e=a371_0x32defa[_0x1b7be3(0xc5)](_0x36d9a8,_0x4cd5a4[_0x1b7be3(0xa9)]);_0x4cd5a4['name'][_0x1b7be3(0xab)](_0x1b7be3(0xce))&&(_0x8a4e2e=a371_0x32defa[_0x1b7be3(0xc5)](_0x36d9a8,_0x4cd5a4['name'][_0x1b7be3(0xbd)](/\.tpl$/,'')));if(_0x4cd5a4[_0x1b7be3(0xe0)]())await a371_0x5d2fd5[_0x1b7be3(0xa4)][_0x1b7be3(0xaa)](_0x8a4e2e,{'recursive':!![]}),await this[_0x1b7be3(0xcf)](_0x557a5a,_0x8a4e2e,_0x2de8ee,_0x2fbdf9);else _0x4cd5a4[_0x1b7be3(0xc1)]()&&await this[_0x1b7be3(0xd7)](_0x557a5a,_0x8a4e2e,_0x2de8ee,_0x2fbdf9);}}static async[a371_0x35a32a(0xd7)](_0x1d90b9,_0x52dd02,_0x9ae7db,_0x4751f0){const _0x5c2da2=a371_0x35a32a,_0x273993=a371_0x32defa[_0x5c2da2(0xa8)](_0x1d90b9)[_0x5c2da2(0xde)]();_0x1d90b9[_0x5c2da2(0xab)](_0x5c2da2(0xce))&&(_0x52dd02=_0x52dd02[_0x5c2da2(0xbd)](/\.tpl$/,''));const _0x1da1b0=[_0x5c2da2(0xac),_0x5c2da2(0xaf),_0x5c2da2(0xe4),_0x5c2da2(0xe7),_0x5c2da2(0xd0),_0x5c2da2(0xd3),_0x5c2da2(0xea),_0x5c2da2(0xda),_0x5c2da2(0xce)];if(_0x1da1b0[_0x5c2da2(0xb0)](_0x273993)||_0x1d90b9[_0x5c2da2(0xab)]('.tpl')){const _0x13d58e=await a371_0x5d2fd5['promises']['readFile'](_0x1d90b9,_0x5c2da2(0xad)),_0x37e03e=this[_0x5c2da2(0xd1)](_0x13d58e,_0x9ae7db,_0x4751f0);await a371_0x5d2fd5[_0x5c2da2(0xa4)]['writeFile'](_0x52dd02,_0x37e03e,_0x5c2da2(0xad));}else await a371_0x5d2fd5[_0x5c2da2(0xa4)][_0x5c2da2(0xe9)](_0x1d90b9,_0x52dd02);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x557302,_0x375a01){const _0x4ad768=a372_0x3fd3,_0x5d1407=_0x557302();while(!![]){try{const _0xc54842=-parseInt(_0x4ad768(0xb3))/0x1+-parseInt(_0x4ad768(0xbb))/0x2*(parseInt(_0x4ad768(0xae))/0x3)+-parseInt(_0x4ad768(0xbd))/0x4*(parseInt(_0x4ad768(0xb9))/0x5)+-parseInt(_0x4ad768(0xb8))/0x6*(parseInt(_0x4ad768(0xc2))/0x7)+parseInt(_0x4ad768(0xb0))/0x8*(-parseInt(_0x4ad768(0xac))/0x9)+-parseInt(_0x4ad768(0xa6))/0xa+parseInt(_0x4ad768(0xb1))/0xb;if(_0xc54842===_0x375a01)break;else _0x5d1407['push'](_0x5d1407['shift']());}catch(_0x7f5ea9){_0x5d1407['push'](_0x5d1407['shift']());}}}(a372_0x4144,0xb1335));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a372_0x460e68 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';function a372_0x4144(){const _0x46fd50=['\x20update','13633650JjYibN','lastNotifiedAt',',\x20run:\x20','trim','stringify','https://www.npmjs.com/package/','432YEhDRO','latest','123JaGjQj','.cache','221816iajCKo','81346034UEcllv','gte','782997TPfbqf','checkedAt','valid','parse','update-check.json','5946756bvEmTN','29450fnRzFi','/v/','39554wZqbko','rabetbase-cli','944obthpF','yes','utf8','number','\x20available,\x20current\x20','7iOsoHL'];a372_0x4144=function(){return _0x46fd50;};return a372_0x4144();}import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x1305b2=a372_0x3fd3,_0x4ad9f0=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x1305b2(0xa9)]()['toLowerCase']();return _0x4ad9f0==='1'||_0x4ad9f0==='true'||_0x4ad9f0===_0x1305b2(0xbe);}function cacheRoot(){const _0x4b65cc=a372_0x3fd3;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x4b65cc(0xaf));}export function getUpdateNoticeCachePath(){const _0x170e13=a372_0x3fd3;return join(cacheRoot(),_0x170e13(0xbc),_0x170e13(0xb7));}async function readUpdateNoticeCache(){const _0x316649=a372_0x3fd3;try{const _0xdba99a=await readFile(getUpdateNoticeCachePath(),_0x316649(0xbf)),_0x595078=JSON[_0x316649(0xb6)](_0xdba99a);if(!_0x595078||typeof _0x595078!=='object')return{};return _0x595078;}catch{return{};}}async function writeUpdateNoticeCache(_0x7edaf6){const _0x2b71e4=a372_0x3fd3;try{const _0x5063c0=getUpdateNoticeCachePath();await mkdir(dirname(_0x5063c0),{'recursive':!![]}),await writeFile(_0x5063c0,JSON[_0x2b71e4(0xaa)](_0x7edaf6,null,0x2)+'\x0a',_0x2b71e4(0xbf));}catch{}}function isFreshCheck(_0x996b03,_0x57a61d){const _0x1c2580=a372_0x3fd3;return typeof _0x996b03[_0x1c2580(0xb4)]===_0x1c2580(0xc0)&&_0x57a61d-_0x996b03[_0x1c2580(0xb4)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x4496e2,_0x4198b1,_0x8996cc){const _0x56cb3e=a372_0x3fd3;return _0x4496e2['lastNotifiedVersion']===_0x4198b1&&typeof _0x4496e2[_0x56cb3e(0xa7)]===_0x56cb3e(0xc0)&&_0x8996cc-_0x4496e2[_0x56cb3e(0xa7)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x42d77b){const _0x5a3cf7=a372_0x3fd3;return _0x5a3cf7(0xab)+NPM_PACKAGE_NAME+_0x5a3cf7(0xba)+_0x42d77b;}function a372_0x3fd3(_0x31392d,_0x15e651){_0x31392d=_0x31392d-0xa5;const _0x414465=a372_0x4144();let _0x3fd3b7=_0x414465[_0x31392d];return _0x3fd3b7;}export async function resolveLatestUpdateNotice(){const _0x393051=a372_0x3fd3;if(isUpdateNoticeDisabled())return null;try{const _0x33cfe1=Date['now'](),_0x598eb6=getCliVersion(),_0x24d586=await readUpdateNoticeCache();let _0x5dc7f1=isFreshCheck(_0x24d586,_0x33cfe1)?_0x24d586[_0x393051(0xad)]?.[_0x393051(0xa9)]():undefined;if(!_0x5dc7f1&&!isFreshCheck(_0x24d586,_0x33cfe1)){const _0x2bb0a0=await getCliVersionPolicy();_0x5dc7f1=_0x2bb0a0?.['stableVersion']?.['trim']()||undefined,await writeUpdateNoticeCache({..._0x24d586,'checkedAt':_0x33cfe1,'latest':_0x5dc7f1,'failed':!_0x5dc7f1});}if(!_0x5dc7f1||!a372_0x460e68[_0x393051(0xb5)](_0x598eb6)||!a372_0x460e68[_0x393051(0xb5)](_0x5dc7f1))return null;if(a372_0x460e68[_0x393051(0xb2)](_0x598eb6,_0x5dc7f1))return null;if(isRecentlyNotified(_0x24d586,_0x5dc7f1,_0x33cfe1))return null;const _0x244776=CLI_BIN_NAME+_0x393051(0xa5);return await writeUpdateNoticeCache({..._0x24d586,'checkedAt':isFreshCheck(_0x24d586,_0x33cfe1)?_0x24d586[_0x393051(0xb4)]:_0x33cfe1,'latest':_0x5dc7f1,'failed':![],'lastNotifiedVersion':_0x5dc7f1,'lastNotifiedAt':_0x33cfe1}),{'command':_0x244776,'current':_0x598eb6,'latest':_0x5dc7f1,'url':buildNpmVersionUrl(_0x5dc7f1),'message':CLI_BIN_NAME+'\x20'+_0x5dc7f1+_0x393051(0xc1)+_0x598eb6+_0x393051(0xa8)+_0x244776};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a373_0x29c0(_0x27d078,_0x13e22c){_0x27d078=_0x27d078-0x9f;var _0x19ef2c=a373_0x19ef();var _0x29c000=_0x19ef2c[_0x27d078];return _0x29c000;}function a373_0x19ef(){var _0xb5901f=['28WyGUYl','2404670tWJYfi','3380755JdaWkJ','10JJIOVy','3785310Pbtjob','1XRlDJB','111NXpjVc','2756808UUwmoN','94828AACkCI','11088913VKcrQz','9038493nOUllS'];a373_0x19ef=function(){return _0xb5901f;};return a373_0x19ef();}(function(_0x2c1b87,_0x2194ae){var _0x1ec5c=a373_0x29c0,_0x5da21a=_0x2c1b87();while(!![]){try{var _0x427d4b=parseInt(_0x1ec5c(0x9f))/0x1*(parseInt(_0x1ec5c(0xa6))/0x2)+parseInt(_0x1ec5c(0xa0))/0x3*(parseInt(_0x1ec5c(0xa2))/0x4)+parseInt(_0x1ec5c(0xa7))/0x5+-parseInt(_0x1ec5c(0xa9))/0x6+parseInt(_0x1ec5c(0xa5))/0x7*(-parseInt(_0x1ec5c(0xa1))/0x8)+-parseInt(_0x1ec5c(0xa4))/0x9*(-parseInt(_0x1ec5c(0xa8))/0xa)+-parseInt(_0x1ec5c(0xa3))/0xb;if(_0x427d4b===_0x2194ae)break;else _0x5da21a['push'](_0x5da21a['shift']());}catch(_0x300aa6){_0x5da21a['push'](_0x5da21a['shift']());}}}(a373_0x19ef,0xb5496));import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a374_0x2ed0(_0x18200c,_0xab5eba){_0x18200c=_0x18200c-0x184;var _0x1fa434=a374_0x1fa4();var _0x2ed035=_0x1fa434[_0x18200c];return _0x2ed035;}(function(_0x5060e0,_0xdee76d){var _0x14f4ef=a374_0x2ed0,_0x520ce6=_0x5060e0();while(!![]){try{var _0x51b8dc=-parseInt(_0x14f4ef(0x188))/0x1+-parseInt(_0x14f4ef(0x18d))/0x2*(parseInt(_0x14f4ef(0x189))/0x3)+-parseInt(_0x14f4ef(0x184))/0x4+-parseInt(_0x14f4ef(0x18c))/0x5*(parseInt(_0x14f4ef(0x186))/0x6)+-parseInt(_0x14f4ef(0x18b))/0x7+-parseInt(_0x14f4ef(0x18a))/0x8*(-parseInt(_0x14f4ef(0x187))/0x9)+parseInt(_0x14f4ef(0x185))/0xa;if(_0x51b8dc===_0xdee76d)break;else _0x520ce6['push'](_0x520ce6['shift']());}catch(_0xd9c6d7){_0x520ce6['push'](_0x520ce6['shift']());}}}(a374_0x1fa4,0x537de));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a374_0x1fa4(){var _0x22544e=['5xtxtgq','2AtRekU','2714040bcVoLY','26861750HehuCt','2375004wedWXV','27tSPFcW','266243wqnfwW','1726803dfPSPa','99096jLSuCQ','3256162BdbANH'];a374_0x1fa4=function(){return _0x22544e;};return a374_0x1fa4();}export async function withActiveCookie(_0x577022,_0x2a12fb){setActiveCookie(_0x577022);try{return await _0x2a12fb();}finally{clearActiveCookie();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a375_0xa0f9(){var _0x5261e7=['stderr','9642TBEnwj','5960200cnlGug','4WFWgqV','32366928vJTkxY','597116NPKgJK','6714960krCOEr','31761IoQQWl','12JncXOt','write','3808jARpHC','3064uwcmhh','137732UEfTxu'];a375_0xa0f9=function(){return _0x5261e7;};return a375_0xa0f9();}(function(_0x208d92,_0x1fbd0d){var _0x10d55a=a375_0x14da,_0x823f93=_0x208d92();while(!![]){try{var _0x45aced=parseInt(_0x10d55a(0x74))/0x1*(parseInt(_0x10d55a(0x78))/0x2)+-parseInt(_0x10d55a(0x70))/0x3*(-parseInt(_0x10d55a(0x7a))/0x4)+parseInt(_0x10d55a(0x77))/0x5+parseInt(_0x10d55a(0x76))/0x6*(parseInt(_0x10d55a(0x72))/0x7)+-parseInt(_0x10d55a(0x73))/0x8*(-parseInt(_0x10d55a(0x6f))/0x9)+-parseInt(_0x10d55a(0x6e))/0xa+-parseInt(_0x10d55a(0x79))/0xb;if(_0x45aced===_0x1fbd0d)break;else _0x823f93['push'](_0x823f93['shift']());}catch(_0x10cbbf){_0x823f93['push'](_0x823f93['shift']());}}}(a375_0xa0f9,0xa528b));function a375_0x14da(_0x3a4ab4,_0x4316d4){_0x3a4ab4=_0x3a4ab4-0x6e;var _0xa0f9ad=a375_0xa0f9();var _0x14dada=_0xa0f9ad[_0x3a4ab4];return _0x14dada;}export function writeCliSideChannelLine(_0x5bbc28){var _0x28bdc1=a375_0x14da;process[_0x28bdc1(0x75)][_0x28bdc1(0x71)](_0x5bbc28+'\x0a');}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/rabetbase-cli",
|
|
3
|
-
"version": "2.5.13
|
|
3
|
+
"version": "2.5.13",
|
|
4
4
|
"description": "Developer CLI for Lovrabet apps, datasets, pages, SQL, Backend Function, database connections, skills, and AI agent workflows.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"keywords": [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: rabetbase
|
|
3
|
-
version: 2.5.13
|
|
3
|
+
version: 2.5.13
|
|
4
4
|
description: "Use for Lovrabet development work through the rabetbase CLI: create or bind projects (including creating an AppCode project in the current folder), pull Dataset/API facts and maintain SDK clients, or manage datasets, Instant API access policies, database connections, pages, host frontend integration, frontend subapp resources, SQL, Backend Functions, approval flows and workflows, menus, notifications, knowledge bases and kb search, Agent Context Rules, roles, files, OCR, deployment metadata, platform issues, and 钉钉沙箱账号绑定. Trigger when the user mentions rabetbase, Lovrabet development, AppCode, Dataset, Instant API allow/deny/route policy, project creation, api pull/codegen, dblink, page, host frontend integration, subapp resource versions, SQL, BFF, creating or designing an approval flow, workflow, business process, or multi-step approval, menu, notification, knowledge base, kb search, Agent Context Rules, RULES.md, DATABASE.md, rule list/get/set, role, file/OCR, or related development workflows."
|
|
5
5
|
metadata:
|
|
6
6
|
requires:
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "rabetbase",
|
|
4
4
|
"packageName": "@lovrabet/rabetbase-cli",
|
|
5
|
-
"packageVersion": "2.5.13
|
|
6
|
-
"skillVersion": "2.5.13
|
|
5
|
+
"packageVersion": "2.5.13",
|
|
6
|
+
"skillVersion": "2.5.13",
|
|
7
7
|
"files": [
|
|
8
8
|
"SKILL.md",
|
|
9
9
|
"guides/approval-flow-development-workflow.md",
|
|
@@ -159,5 +159,5 @@
|
|
|
159
159
|
"references/rabetbase-user-account.md",
|
|
160
160
|
"references/rabetbase-workspace.md"
|
|
161
161
|
],
|
|
162
|
-
"digest": "
|
|
162
|
+
"digest": "1a0344861ea712f8514d8c701185cb3788b5ad3109c4ec5e2740073cd6e53fe0"
|
|
163
163
|
}
|