@lovrabet/rabetbase-cli 2.5.5-beta.2 → 2.5.5-beta.3
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/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.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-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 +3 -3
- package/skills/rabetbase/guides/independent-deployment.md +11 -1
- package/skills/rabetbase/references/rabetbase-config.md +16 -19
- package/skills/rabetbase/references/rabetbase-menu-visibility-update.md +5 -4
- package/skills/rabetbase/references/rabetbase-workspace.md +3 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x259a2f,_0x251828){const _0x3d804b=a343_0x540e,_0x31b742=_0x259a2f();while(!![]){try{const _0x177af6=-parseInt(_0x3d804b(0x78))/0x1+-parseInt(_0x3d804b(0x86))/0x2*(parseInt(_0x3d804b(0x92))/0x3)+-parseInt(_0x3d804b(0x91))/0x4*(-parseInt(_0x3d804b(0x8a))/0x5)+-parseInt(_0x3d804b(0x8f))/0x6+-parseInt(_0x3d804b(0x7f))/0x7*(-parseInt(_0x3d804b(0x94))/0x8)+-parseInt(_0x3d804b(0x7e))/0x9+parseInt(_0x3d804b(0x7c))/0xa*(parseInt(_0x3d804b(0x88))/0xb);if(_0x177af6===_0x251828)break;else _0x31b742['push'](_0x31b742['shift']());}catch(_0x5039e0){_0x31b742['push'](_0x31b742['shift']());}}}(a343_0x3499,0x7f76d));function a343_0x3499(){const _0x54cb8d=['Minimum\x20supported:\x20','\x1b[0m','../..','version','↪\x20New\x20version\x20available','521841xGdkHI','coerce','validation','belowMinimum','954610qPMNJP','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','4287294kZEAta','123291PITQCU','stableVersion','latest','minimumVersion','filter','1.0.0','upgradeMessage','4bIzVei','minimumVersionMessage','33ipAJHX','\x20\x20\x20Minimum\x20supported:\x20','1185JhVmHL','\x20\x20\x20','utf-8','\x20\x20\x20Upgrade\x20command:\x20','needsUpgrade','3330498fEoZjL','parse','15716hjOBLI','113493rDrmim','npm\x20install\x20-g\x20','424ZivERk','\x20\x20\x20Recommended\x20stable:\x20','package.json','\x1b[31m','\x1b[33m','↪\x20Critical\x20CLI\x20upgrade\x20required','log','join','currentVersion'];a343_0x3499=function(){return _0x54cb8d;};return a343_0x3499();}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a343_0x23e1e0 from'semver';function a343_0x540e(_0x4e21bf,_0x277e81){_0x4e21bf=_0x4e21bf-0x6f;const _0x349941=a343_0x3499();let _0x540ecf=_0x349941[_0x4e21bf];return _0x540ecf;}import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x41816b){const _0x338718=a343_0x540e,_0x2aaeee=_0x41816b[_0x338718(0x80)]||_0x338718(0x81);return _0x338718(0x93)+NPM_PACKAGE_NAME+'@'+_0x2aaeee;}function getCurrentCliVersion(){const _0x578968=a343_0x540e;try{const _0x589734=fileURLToPath(import.meta.url),_0x598d06=resolve(dirname(_0x589734),_0x578968(0x75)),_0x2aba73=resolve(_0x598d06,_0x578968(0x96)),_0x389164=JSON[_0x578968(0x90)](readFileSync(_0x2aba73,_0x578968(0x8c)));return _0x389164[_0x578968(0x76)]||_0x578968(0x84);}catch{return'1.0.0';}}export async function checkCliVersion(){const _0x46fb56=a343_0x540e,_0x3a4508=getCurrentCliVersion(),_0x16d1ab=await getCliVersionPolicy(),_0x332371=_0x16d1ab?.['stableVersion']||null,_0x8cabb4=_0x16d1ab?.['minimumVersion']||null;let _0x360b76=![],_0x179aa4=![];const _0x168f2f=a343_0x23e1e0[_0x46fb56(0x79)](_0x3a4508);if(_0x168f2f&&_0x332371)try{const _0x4ba546=a343_0x23e1e0[_0x46fb56(0x79)](_0x332371);if(_0x4ba546)_0x360b76=a343_0x23e1e0['lt'](_0x168f2f,_0x4ba546);}catch{}if(_0x168f2f&&_0x8cabb4)try{const _0x222da3=a343_0x23e1e0[_0x46fb56(0x79)](_0x8cabb4);if(_0x222da3)_0x179aa4=a343_0x23e1e0['lt'](_0x168f2f,_0x222da3);}catch{}return _0x179aa4&&(_0x360b76=!![]),{'currentVersion':_0x3a4508,'stableVersion':_0x332371,'minimumVersion':_0x8cabb4,'needsUpgrade':_0x360b76,'belowMinimum':_0x179aa4,'isPreRelease':![],'upgradeMessage':_0x16d1ab?.[_0x46fb56(0x85)],'minimumVersionMessage':_0x16d1ab?.[_0x46fb56(0x87)]};}export function printCliUpgradeWarning(_0x31a3f3){const _0x75796a=a343_0x540e;if(!_0x31a3f3[_0x75796a(0x8e)]&&!_0x31a3f3[_0x75796a(0x7b)])return;const _0x3828d0=_0x75796a(0x97),_0x25acd3=_0x75796a(0x98),_0x15c8bf=_0x75796a(0x74),_0x2ad08e='\x1b[1m',_0x3201ef=getCliUpgradeCommand(_0x31a3f3);console['log'](),_0x31a3f3[_0x75796a(0x7b)]?(console[_0x75796a(0x70)](''+_0x3828d0+_0x2ad08e+_0x75796a(0x6f)+_0x15c8bf),console['log'](_0x3828d0+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x31a3f3[_0x75796a(0x72)]+_0x15c8bf),_0x31a3f3[_0x75796a(0x82)]&&console[_0x75796a(0x70)](_0x3828d0+_0x75796a(0x89)+_0x31a3f3['minimumVersion']+_0x15c8bf),_0x31a3f3['stableVersion']&&_0x31a3f3[_0x75796a(0x80)]!==_0x31a3f3[_0x75796a(0x82)]&&console[_0x75796a(0x70)](_0x3828d0+_0x75796a(0x95)+_0x31a3f3[_0x75796a(0x80)]+_0x15c8bf),_0x31a3f3[_0x75796a(0x87)]&&console[_0x75796a(0x70)](_0x3828d0+_0x75796a(0x8b)+_0x31a3f3[_0x75796a(0x87)]+_0x15c8bf),console[_0x75796a(0x70)](_0x3828d0+_0x75796a(0x8d)+_0x3201ef+_0x15c8bf)):(console[_0x75796a(0x70)](''+_0x25acd3+_0x2ad08e+_0x75796a(0x77)+_0x15c8bf),console[_0x75796a(0x70)](_0x25acd3+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x31a3f3['currentVersion']+_0x15c8bf),console[_0x75796a(0x70)](_0x25acd3+'\x20\x20\x20Stable\x20version:\x20'+_0x31a3f3[_0x75796a(0x80)]+_0x15c8bf),_0x31a3f3['upgradeMessage']&&console[_0x75796a(0x70)](_0x25acd3+'\x20\x20\x20'+_0x31a3f3[_0x75796a(0x85)]+_0x15c8bf),console[_0x75796a(0x70)](_0x25acd3+_0x75796a(0x8d)+_0x3201ef+_0x15c8bf)),console[_0x75796a(0x70)]();}export function assertCliVersionSupported(_0x598836){const _0x18cc67=a343_0x540e;if(!_0x598836[_0x18cc67(0x7b)])return;const _0x192d2c=[_0x598836[_0x18cc67(0x87)],'Current\x20version:\x20'+_0x598836[_0x18cc67(0x72)],_0x598836['minimumVersion']?_0x18cc67(0x73)+_0x598836[_0x18cc67(0x82)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x598836)][_0x18cc67(0x83)](Boolean)[_0x18cc67(0x71)]('\x0a');throw CliErrors[_0x18cc67(0x7a)](_0x18cc67(0x7d),_0x192d2c);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5ee85,_0x487cf1){const _0x4ce4a0=a344_0x2224,_0x5beb3c=_0x5ee85();while(!![]){try{const _0x41305b=parseInt(_0x4ce4a0(0xe6))/0x1*(-parseInt(_0x4ce4a0(0xe5))/0x2)+parseInt(_0x4ce4a0(0xdf))/0x3+parseInt(_0x4ce4a0(0xd6))/0x4*(-parseInt(_0x4ce4a0(0xd9))/0x5)+-parseInt(_0x4ce4a0(0xdb))/0x6+parseInt(_0x4ce4a0(0xde))/0x7+parseInt(_0x4ce4a0(0xe9))/0x8*(parseInt(_0x4ce4a0(0xd5))/0x9)+-parseInt(_0x4ce4a0(0xd4))/0xa;if(_0x41305b===_0x487cf1)break;else _0x5beb3c['push'](_0x5beb3c['shift']());}catch(_0x78cb8d){_0x5beb3c['push'](_0x5beb3c['shift']());}}}(a344_0x4ca3,0xbc8ba));import{getCliVersionPolicyUrl,getProjectTemplateAssetBaseUrl,getProjectTemplateLegacyAssetBaseUrl}from'../constant/cdn.js';import a344_0x43b2ad from'semver';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;export function isBetaCliVersion(_0x42cef1){const _0x473478=a344_0x2224,_0x3bc9df=a344_0x43b2ad[_0x473478(0xd7)](_0x42cef1);return _0x3bc9df?a344_0x43b2ad['prerelease'](_0x3bc9df)?.[0x0]===_0x473478(0xe4):![];}function a344_0x2224(_0x4f8dfc,_0x56e9bf){_0x4f8dfc=_0x4f8dfc-0xd3;const _0x4ca3f7=a344_0x4ca3();let _0x2224aa=_0x4ca3f7[_0x4f8dfc];return _0x2224aa;}export function resolveProjectTemplateDescriptor(_0x2c5359,_0x495bf7){const _0x2d76cd=a344_0x2224;if(isBetaCliVersion(_0x495bf7))return _0x2c5359[_0x2d76cd(0xe4)]?.[_0x2d76cd(0xdc)]??_0x2c5359[_0x2d76cd(0xdc)];return _0x2c5359[_0x2d76cd(0xdc)];}function pickString(_0x532695){const _0x223bf0=a344_0x2224;return typeof _0x532695==='string'&&_0x532695[_0x223bf0(0xe0)]()['length']>0x0?_0x532695[_0x223bf0(0xe0)]():null;}function a344_0x4ca3(){const _0xff770e=['signal','beta','10mQnhuM','258729Cbmjof','abort','application/json','2440aOLoXZ','cli','5198750vtjCga','40113xkyyrS','12eWWrjF','valid','upgradeMessage','556455ihFSrn','json','4638012UCaXZz','projectTemplate','minimumVersion','10739561EMwSIv','2397207tPRmiI','trim','object','stableVersion'];a344_0x4ca3=function(){return _0xff770e;};return a344_0x4ca3();}function normalizeCliVersionPolicy(_0x4aa585){const _0x52dc51=a344_0x2224;if(!_0x4aa585||typeof _0x4aa585!==_0x52dc51(0xe1))return null;const _0x51ea6e=_0x4aa585,_0x47756f=_0x51ea6e[_0x52dc51(0xd3)]&&typeof _0x51ea6e[_0x52dc51(0xd3)]===_0x52dc51(0xe1)?_0x51ea6e['cli']:_0x51ea6e,_0x4bd863=pickString(_0x47756f[_0x52dc51(0xe2)])||pickString(_0x47756f['latestVersion'])||pickString(_0x47756f['recommendedVersion']),_0x5cb812=pickString(_0x47756f[_0x52dc51(0xdd)])||pickString(_0x47756f['minVersion']);if(!_0x4bd863&&!_0x5cb812)return null;return{'stableVersion':_0x4bd863,'minimumVersion':_0x5cb812,'upgradeMessage':pickString(_0x47756f[_0x52dc51(0xd8)])||undefined,'minimumVersionMessage':pickString(_0x47756f['minimumVersionMessage'])||undefined};}async function fetchRabetbaseCdnConfigAt(_0x3df15f){const _0x406f2a=a344_0x2224,_0x445c06=new AbortController(),_0x452205=setTimeout(()=>_0x445c06[_0x406f2a(0xe7)](),FETCH_TIMEOUT_MS);try{const _0x47b263=await fetch(_0x3df15f,{'headers':{'Accept':_0x406f2a(0xe8)},'signal':_0x445c06[_0x406f2a(0xe3)]});if(!_0x47b263['ok'])return null;const _0x237b17=await _0x47b263[_0x406f2a(0xda)]();return _0x237b17&&typeof _0x237b17==='object'?_0x237b17:null;}catch{return null;}finally{clearTimeout(_0x452205);}}export async function fetchRabetbaseCdnConfig(){return fetchRabetbaseCdnConfigAt(getCliVersionPolicyUrl());}export async function fetchProjectTemplateCdnConfig(){const _0x3646cf=await getRabetbaseCdnConfig();return _0x3646cf?{'config':_0x3646cf,'assetBaseUrl':getProjectTemplateAssetBaseUrl(),'legacyAssetBaseUrl':getProjectTemplateLegacyAssetBaseUrl()}:null;}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x5d75a1=Date['now']();if(hasCachedConfig){const _0x319b6f=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x5d75a1-cacheTime<_0x319b6f)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x5d75a1,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
|
package/lib/utils/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a345_0x4e9ed2=a345_0x552b;(function(_0x35f6d,_0x25de20){const _0x149308=a345_0x552b,_0x16a905=_0x35f6d();while(!![]){try{const _0x292235=-parseInt(_0x149308(0xea))/0x1+-parseInt(_0x149308(0xe0))/0x2*(-parseInt(_0x149308(0xe2))/0x3)+parseInt(_0x149308(0xe1))/0x4*(-parseInt(_0x149308(0xe4))/0x5)+-parseInt(_0x149308(0xe3))/0x6+parseInt(_0x149308(0xe6))/0x7*(-parseInt(_0x149308(0xdd))/0x8)+-parseInt(_0x149308(0xe7))/0x9+parseInt(_0x149308(0xe9))/0xa*(parseInt(_0x149308(0xe8))/0xb);if(_0x292235===_0x25de20)break;else _0x16a905['push'](_0x16a905['shift']());}catch(_0x8f0341){_0x16a905['push'](_0x16a905['shift']());}}}(a345_0x4ff3,0x99fa8));import{initEnv}from'../constant/env.js';function a345_0x4ff3(){const _0x4aa872=['1614534mMoSAI','2020GAoIrD','3dHRUyB','6052608dDjkhB','130ufHHMu','env','287wBlWgc','11121840PbWWtK','11QgjIzu','31397470KyEFpJ','437961caDJTk','121112dLBCvu','project','string'];a345_0x4ff3=function(){return _0x4aa872;};return a345_0x4ff3();}import{readRawConfig,getConfigAppCode as a345_0x3c7cd2,getMultiAppConfigs as a345_0x487846,getTemplateBaseUrl as a345_0x1818ae}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x1d7ec5){const _0x3032c0=a345_0x552b,_0x5af6d9=readRawConfig(_0x1d7ec5);return _0x5af6d9['env']&&typeof _0x5af6d9[_0x3032c0(0xe5)]===_0x3032c0(0xdf)&&initEnv(_0x5af6d9['env']),_0x5af6d9;}export function getConfigAppCode(){return a345_0x3c7cd2();}function a345_0x552b(_0xaf39b,_0x18cf96){_0xaf39b=_0xaf39b-0xdd;const _0x4ff366=a345_0x4ff3();let _0x552b5a=_0x4ff366[_0xaf39b];return _0x552b5a;}export function getMultiAppConfigs(_0x2c4168=a345_0x4e9ed2(0xde)){return a345_0x487846(_0x2c4168);}export function getTemplateBaseUrl(){return a345_0x1818ae();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xfc926,_0x8ccb62){const _0xf583c6=a346_0x2286,_0x19af46=_0xfc926();while(!![]){try{const _0x44e92b=-parseInt(_0xf583c6(0xed))/0x1*(-parseInt(_0xf583c6(0xe2))/0x2)+parseInt(_0xf583c6(0xe1))/0x3+parseInt(_0xf583c6(0xea))/0x4+parseInt(_0xf583c6(0xe9))/0x5*(-parseInt(_0xf583c6(0xe3))/0x6)+-parseInt(_0xf583c6(0xee))/0x7+parseInt(_0xf583c6(0xe4))/0x8*(-parseInt(_0xf583c6(0xe8))/0x9)+parseInt(_0xf583c6(0xec))/0xa;if(_0x44e92b===_0x8ccb62)break;else _0x19af46['push'](_0x19af46['shift']());}catch(_0x1c5b92){_0x19af46['push'](_0x19af46['shift']());}}}(a346_0x58e6,0x3a8a5));function toFiniteNumber(_0x2c29ec){const _0x5d77f7=a346_0x2286;if(typeof _0x2c29ec===_0x5d77f7(0xe5)&&Number[_0x5d77f7(0xe7)](_0x2c29ec))return _0x2c29ec;if(typeof _0x2c29ec===_0x5d77f7(0xeb)){const _0x5c264a=_0x2c29ec['trim']();if(!_0x5c264a)return undefined;const _0x515ff7=Number(_0x5c264a);if(Number[_0x5d77f7(0xe7)](_0x515ff7))return _0x515ff7;}return undefined;}function a346_0x58e6(){const _0x4c8d4f=['20roCGAk','16188sGANzc','80ExQMfJ','number','object','isFinite','149643pOwUjK','590RonYVm','459688MYxAnt','string','3791150rIdzaT','28309AWWtZN','2791530pIuScX','1038234GlgqwT'];a346_0x58e6=function(){return _0x4c8d4f;};return a346_0x58e6();}function a346_0x2286(_0x4cfb93,_0xc486a9){_0x4cfb93=_0x4cfb93-0xe1;const _0x58e6ba=a346_0x58e6();let _0x2286fd=_0x58e6ba[_0x4cfb93];return _0x2286fd;}export function normalizeEntityWithIdResponse(_0x4adeda){const _0x22e9db=a346_0x2286,_0x529ee3=toFiniteNumber(_0x4adeda);if(_0x529ee3!==undefined)return{'id':_0x529ee3,'entity':{'id':_0x529ee3}};if(!_0x4adeda||typeof _0x4adeda!==_0x22e9db(0xe6))return{'id':undefined,'entity':{}};const _0x54187e={..._0x4adeda},_0x2d5c52=toFiniteNumber(_0x54187e['id']);return _0x2d5c52!==undefined&&(_0x54187e['id']=_0x2d5c52),{'id':_0x2d5c52,'entity':_0x54187e};}
|
package/lib/utils/file-utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x178f99,_0xa78bc7){const _0x107ec8=a347_0x4d6e,_0x1b84f5=_0x178f99();while(!![]){try{const _0x1bb90f=parseInt(_0x107ec8(0x178))/0x1+-parseInt(_0x107ec8(0x17c))/0x2+-parseInt(_0x107ec8(0x17d))/0x3*(-parseInt(_0x107ec8(0x177))/0x4)+parseInt(_0x107ec8(0x17e))/0x5+parseInt(_0x107ec8(0x176))/0x6+parseInt(_0x107ec8(0x17f))/0x7+parseInt(_0x107ec8(0x17b))/0x8*(-parseInt(_0x107ec8(0x17a))/0x9);if(_0x1bb90f===_0xa78bc7)break;else _0x1b84f5['push'](_0x1b84f5['shift']());}catch(_0x3c777b){_0x1b84f5['push'](_0x1b84f5['shift']());}}}(a347_0x14e7,0x26db1));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x46d081,_0x63d938){const _0x853de3=a347_0x4d6e,_0x547b7c=statSync(_0x46d081);if(_0x547b7c[_0x853de3(0x179)]()){!existsSync(_0x63d938)&&mkdirSync(_0x63d938,{'recursive':!![]});const _0x395a1a=readdirSync(_0x46d081);for(const _0x487c21 of _0x395a1a){await copyDir(join(_0x46d081,_0x487c21),join(_0x63d938,_0x487c21));}}else copyFileSync(_0x46d081,_0x63d938);}export function ensureDir(_0x5631bb){!existsSync(_0x5631bb)&&mkdirSync(_0x5631bb,{'recursive':!![]});}function a347_0x4d6e(_0x36545e,_0x23a98f){_0x36545e=_0x36545e-0x176;const _0x14e7a6=a347_0x14e7();let _0x4d6eb1=_0x14e7a6[_0x36545e];return _0x4d6eb1;}export function pathExists(_0x487330){return existsSync(_0x487330);}function a347_0x14e7(){const _0x1c6810=['1877071eoovmZ','747546HeHlCk','1004pxRrdK','226576TdZPgF','isDirectory','7002873rGuzYa','8LtFXSl','143964WGeJsg','2019eqkSQo','1104945zaIYJK'];a347_0x14e7=function(){return _0x1c6810;};return a347_0x14e7();}
|
package/lib/utils/guides-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a348_0x768af2=a348_0x5f5c;function a348_0x32ab(){const _0x149db4=['CDN\x20request\x20failed:\x20','CDN\x20data\x20is\x20missing\x20skillTemplate','cache','5MFQfBG','7385040ZGksCY','title','trimEnd','json','content','status','extendContent','4243488fxyiHZ','utf-8','79652eKErFx','keys','skillTemplate','/skills/guides.json','length','8251418CgdFfH','lastUpdated','guides','replace','entries','push','.lovrabet/skill/guides','\x0a\x0a>更新时间:','CDN\x20returned\x20invalid\x20data','4931556eaFNqf','42825048vNNMNp','1091744nWrgYL','map','join','statusText','path','.lovrabet'];a348_0x32ab=function(){return _0x149db4;};return a348_0x32ab();}(function(_0xf3761b,_0x155b9e){const _0x26f8d5=a348_0x5f5c,_0x2863d9=_0xf3761b();while(!![]){try{const _0x40e00d=-parseInt(_0x26f8d5(0x1a8))/0x1+parseInt(_0x26f8d5(0x195))/0x2+-parseInt(_0x26f8d5(0x1a6))/0x3+-parseInt(_0x26f8d5(0x193))/0x4*(parseInt(_0x26f8d5(0x19e))/0x5)+-parseInt(_0x26f8d5(0x19f))/0x6+-parseInt(_0x26f8d5(0x18a))/0x7+parseInt(_0x26f8d5(0x194))/0x8;if(_0x40e00d===_0x155b9e)break;else _0x2863d9['push'](_0x2863d9['shift']());}catch(_0x13efc7){_0x2863d9['push'](_0x2863d9['shift']());}}}(a348_0x32ab,0xba1f0));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x521285=a348_0x5f5c,_0x2c9da3=getTemplateBaseUrl();return _0x2c9da3+_0x521285(0x1ab);}const CACHE_DIR=join(homedir(),a348_0x768af2(0x19a),a348_0x768af2(0x19d));export async function fetchGuidesFromCDN(){const _0x2a4de8=a348_0x768af2,_0x22db76=getGuidesCdnUrl(),_0x182324=await fetch(_0x22db76,{'headers':{'Accept':'application/json'}});if(!_0x182324['ok'])throw new Error(_0x2a4de8(0x19b)+_0x182324[_0x2a4de8(0x1a4)]+'\x20'+_0x182324[_0x2a4de8(0x198)]);const _0x1015f9=await _0x182324[_0x2a4de8(0x1a2)]();if(!_0x1015f9[_0x2a4de8(0x18c)]||typeof _0x1015f9[_0x2a4de8(0x18c)]!=='object')throw new Error(_0x2a4de8(0x192));return _0x1015f9;}export function writeGuidesToProject(_0x13d31b,_0x54567e,_0x448d48=a348_0x768af2(0x190),_0x59e6d4){const _0x2f08f2=a348_0x768af2,_0x2e8a7e=join(_0x54567e,_0x448d48);mkdirSync(_0x2e8a7e,{'recursive':!![]});for(const [_0x4764ec,_0x33c9b5]of Object['entries'](_0x13d31b['guides'])){let _0x55b465=_0x33c9b5[_0x2f08f2(0x1a3)];_0x33c9b5[_0x2f08f2(0x18b)]&&(_0x55b465=appendUpdateTime(_0x55b465,_0x33c9b5[_0x2f08f2(0x18b)])),writeFileSync(join(_0x2e8a7e,_0x4764ec+'.md'),_0x55b465,_0x2f08f2(0x1a7));}}export function appendUpdateTime(_0x28caa0,_0x4d9d0d){const _0x544e14=a348_0x768af2;return _0x28caa0=_0x28caa0[_0x544e14(0x18d)](/\n*>更新时间:.*$/m,''),_0x28caa0[_0x544e14(0x1a1)]()+(_0x544e14(0x191)+_0x4d9d0d);}export function getSkillTemplate(_0x291e94){const _0x3b006e=a348_0x768af2;return _0x291e94[_0x3b006e(0x1aa)]?.[_0x3b006e(0x1a3)]||'';}export function appendExtendContents(_0x2d930c,_0x16d4c1,_0x47c42c){const _0x18256d=a348_0x768af2,_0x2bb867=[];for(const [,_0x5e8b99]of Object[_0x18256d(0x18e)](_0x16d4c1[_0x18256d(0x18c)])){_0x5e8b99['extendContent']&&_0x2bb867[_0x18256d(0x18f)](_0x5e8b99[_0x18256d(0x1a5)]['trimEnd']());}if(_0x2bb867[_0x18256d(0x189)]===0x0)return _0x2d930c;return _0x2d930c[_0x18256d(0x1a1)]()+'\x0a\x0a'+_0x2bb867[_0x18256d(0x197)]('\x0a\x0a')+'\x0a';}function a348_0x5f5c(_0x4093cc,_0xee76e2){_0x4093cc=_0x4093cc-0x189;const _0x32abb6=a348_0x32ab();let _0x5f5c0d=_0x32abb6[_0x4093cc];return _0x5f5c0d;}export function writeSkillFile(_0x264b12,_0x1260cf,_0x343d95){const _0x891156=a348_0x768af2,_0x359754=getSkillTemplate(_0x264b12);if(!_0x359754)throw new Error(_0x891156(0x19c));const _0x2ba409=dirname(_0x1260cf);mkdirSync(_0x2ba409,{'recursive':!![]});let _0x4d604e=_0x359754['replace'](/\{\{IDE_NAME\}\}/g,_0x343d95);_0x4d604e=appendExtendContents(_0x4d604e,_0x264b12),_0x264b12['skillTemplate'][_0x891156(0x18b)]&&(_0x4d604e=appendUpdateTime(_0x4d604e,_0x264b12[_0x891156(0x1aa)]['lastUpdated'])),writeFileSync(_0x1260cf,_0x4d604e,'utf-8');}export async function installGuides(_0x2ae7f3){const _0x28773d=a348_0x768af2,_0x2aa900=await fetchGuidesFromCDN();return writeGuidesToProject(_0x2aa900,_0x2ae7f3),Object[_0x28773d(0x1a9)](_0x2aa900[_0x28773d(0x18c)])[_0x28773d(0x189)];}export function getGuidesSummary(_0x2a88a9){const _0x5a6c69=a348_0x768af2;return Object['entries'](_0x2a88a9['guides'])[_0x5a6c69(0x196)](([_0x321b70,_0x4ce231])=>({'key':_0x321b70,'title':_0x4ce231[_0x5a6c69(0x1a0)],'path':_0x4ce231[_0x5a6c69(0x199)]}));}
|
package/lib/utils/http-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a349_0x511f(){const _0x27767=['AbortError','json','application/json','39948lfSfLj','161EHzDjE','90143VFKwda','3913220jkvxCm','*\x20Request\x20failed;\x20retry\x20','46856ywXkZx','abort','402381cdjRLC','headers','includes','name','statusText','status','850768ABMTid','log','url','3jNyACT','ENOTFOUND','ms...','content-type','55XUFRyj','text','ECONNRESET','message','get','488076QasuQu','signal'];a349_0x511f=function(){return _0x27767;};return a349_0x511f();}function a349_0x30a9(_0x40ead7,_0x105e54){_0x40ead7=_0x40ead7-0x90;const _0x511fc3=a349_0x511f();let _0x30a9c1=_0x511fc3[_0x40ead7];return _0x30a9c1;}(function(_0x225adf,_0x5beb68){const _0x2d46fa=a349_0x30a9,_0x1010bd=_0x225adf();while(!![]){try{const _0x314ff7=-parseInt(_0x2d46fa(0x9c))/0x1+parseInt(_0x2d46fa(0x95))/0x2+-parseInt(_0x2d46fa(0xaa))/0x3*(-parseInt(_0x2d46fa(0xa7))/0x4)+parseInt(_0x2d46fa(0x90))/0x5*(parseInt(_0x2d46fa(0x9a))/0x6)+-parseInt(_0x2d46fa(0x9b))/0x7*(-parseInt(_0x2d46fa(0x9f))/0x8)+-parseInt(_0x2d46fa(0xa1))/0x9+-parseInt(_0x2d46fa(0x9d))/0xa;if(_0x314ff7===_0x5beb68)break;else _0x1010bd['push'](_0x1010bd['shift']());}catch(_0xd38240){_0x1010bd['push'](_0x1010bd['shift']());}}}(a349_0x511f,0x21d09));export async function httpRequest(_0x3c9401,_0x38a00e={}){const _0x509db7=a349_0x30a9,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x38a00e;let _0x4f6875=null;for(let _0x37a5d3=0x0;_0x37a5d3<=retries;_0x37a5d3++){try{const _0x3687c0=new AbortController(),_0x53b110=setTimeout(()=>_0x3687c0[_0x509db7(0xa0)](),timeout),_0x1a51a7=await fetch(_0x3c9401,{'headers':headers,'signal':_0x3687c0[_0x509db7(0x96)]});clearTimeout(_0x53b110);let _0x1669ab;const _0x3c90b3=_0x1a51a7[_0x509db7(0xa2)][_0x509db7(0x94)](_0x509db7(0xad));return _0x3c90b3?.['includes'](_0x509db7(0x99))?_0x1669ab=await _0x1a51a7[_0x509db7(0x98)]():_0x1669ab=await _0x1a51a7[_0x509db7(0x91)](),{'ok':_0x1a51a7['ok'],'status':_0x1a51a7[_0x509db7(0xa6)],'statusText':_0x1a51a7[_0x509db7(0xa5)],'data':_0x1669ab,'headers':_0x1a51a7['headers'],'url':_0x1a51a7[_0x509db7(0xa9)],'text':()=>_0x1a51a7[_0x509db7(0x91)]()};}catch(_0x136b24){_0x4f6875=_0x136b24 instanceof Error?_0x136b24:new Error(String(_0x136b24));if(_0x37a5d3===retries)break;if(shouldRetry(_0x136b24)){console[_0x509db7(0xa8)](_0x509db7(0x9e)+(_0x37a5d3+0x1)+'\x20in\x20'+retryDelay+_0x509db7(0xac)),await sleep(retryDelay);continue;}else break;}}throw _0x4f6875||new Error('Request\x20failed');}function shouldRetry(_0x433c01){const _0x39f996=a349_0x30a9;if(_0x433c01 instanceof Error){if(_0x433c01[_0x39f996(0xa4)]===_0x39f996(0x97))return![];if(_0x433c01['name']==='TypeError'&&_0x433c01[_0x39f996(0x93)][_0x39f996(0xa3)]('fetch'))return!![];if(_0x433c01[_0x39f996(0x93)]['includes'](_0x39f996(0x92)))return!![];if(_0x433c01[_0x39f996(0x93)]['includes'](_0x39f996(0xab)))return![];}return![];}function sleep(_0x2e2a89){return new Promise(_0x53b694=>setTimeout(_0x53b694,_0x2e2a89));}export function validateUrl(_0x4be5d6){try{return new URL(_0x4be5d6),!![];}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a350_0x40c2(){const _0x5bc7f5=['4422481DxiQve','setRawMode','stdin','3047260ezlmnG','8908515AIcdwZ','isTTY','11706850VAoenk','20QQKTfN','true','1115728LsJaTV','stdout','isRaw','1173596zjOOAL','nonInteractive','6yHPuTI','1012430DzrVYj','3hcdoiC'];a350_0x40c2=function(){return _0x5bc7f5;};return a350_0x40c2();}(function(_0x406928,_0x4feb4){const _0x3a945a=a350_0x4585,_0x375459=_0x406928();while(!![]){try{const _0x2aac81=parseInt(_0x3a945a(0x69))/0x1+-parseInt(_0x3a945a(0x6e))/0x2*(-parseInt(_0x3a945a(0x6a))/0x3)+parseInt(_0x3a945a(0x66))/0x4*(parseInt(_0x3a945a(0x72))/0x5)+-parseInt(_0x3a945a(0x68))/0x6*(parseInt(_0x3a945a(0x6b))/0x7)+-parseInt(_0x3a945a(0x74))/0x8+-parseInt(_0x3a945a(0x6f))/0x9+-parseInt(_0x3a945a(0x71))/0xa;if(_0x2aac81===_0x4feb4)break;else _0x375459['push'](_0x375459['shift']());}catch(_0x4082f5){_0x375459['push'](_0x375459['shift']());}}}(a350_0x40c2,0xbde9f));function env(_0x3ead9d){return process.env[`RABETBASE_${_0x3ead9d}`]||process.env[`LOVRABET_${_0x3ead9d}`]||undefined;}function a350_0x4585(_0x2d5bc1,_0x11909a){_0x2d5bc1=_0x2d5bc1-0x65;const _0x40c2df=a350_0x40c2();let _0x458590=_0x40c2df[_0x2d5bc1];return _0x458590;}export function isNonInteractive(_0x591e48){const _0x3b4269=a350_0x4585;return!!(_0x591e48[_0x3b4269(0x67)]||_0x591e48['ci']||env('CI')==='true'||process.env.CI===_0x3b4269(0x73)||!process[_0x3b4269(0x75)][_0x3b4269(0x70)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x47913b=a350_0x4585;if(!process[_0x47913b(0x6d)]['isTTY'])return![];try{const _0x313f7b=process[_0x47913b(0x6d)][_0x47913b(0x65)];return process[_0x47913b(0x6d)][_0x47913b(0x6c)](!![]),process[_0x47913b(0x6d)][_0x47913b(0x6c)](_0x313f7b??![]),!![];}catch{return![];}}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a351_0x87c33d=a351_0x760c;(function(_0x290528,_0x3c9029){const _0x271c1f=a351_0x760c,_0x13d5ac=_0x290528();while(!![]){try{const _0x28b2cd=parseInt(_0x271c1f(0x1de))/0x1*(-parseInt(_0x271c1f(0x1e4))/0x2)+-parseInt(_0x271c1f(0x1e0))/0x3*(parseInt(_0x271c1f(0x1ea))/0x4)+-parseInt(_0x271c1f(0x1e2))/0x5+parseInt(_0x271c1f(0x1eb))/0x6*(-parseInt(_0x271c1f(0x1d4))/0x7)+-parseInt(_0x271c1f(0x1c2))/0x8*(-parseInt(_0x271c1f(0x1ee))/0x9)+-parseInt(_0x271c1f(0x1c4))/0xa*(parseInt(_0x271c1f(0x1d3))/0xb)+parseInt(_0x271c1f(0x1f7))/0xc*(parseInt(_0x271c1f(0x1db))/0xd);if(_0x28b2cd===_0x3c9029)break;else _0x13d5ac['push'](_0x13d5ac['shift']());}catch(_0x6c2862){_0x13d5ac['push'](_0x13d5ac['shift']());}}}(a351_0x5486,0x6122e));import a351_0x2419f8 from'winston';function a351_0x760c(_0x445ce6,_0x323493){_0x445ce6=_0x445ce6-0x1bf;const _0x5486ee=a351_0x5486();let _0x760c1e=_0x5486ee[_0x445ce6];return _0x760c1e;}import a351_0x50f29e from'node:fs';import a351_0x571b85 from'node:path';function a351_0x5486(){const _0x245f80=['684639VMWAPi','writeFileSync','now','clearLogs','printf','.lovrabet.log','readLogs','winstonLogger','rawCommand','317412hVmvxc','logFilePath','readFileSync','addColors','Failed\x20to\x20read\x20logs:','Failed:\x20','Starting:\x20','32JXPGIQ','warn','8240yrgJAa','map','error','combine','filter','green','setRawCommand','existsSync','details','createLogger','info','parse','format','success','clear','4411XXEbko','14ZPHHSQ','dirname','errors','Failed\x20to\x20clear\x20logs:','split','initWinstonLogger','yellow','1014jcPmvW','join','timestamp','205PNBSMW','Completed:\x20','588tNzXOs','setLogPath','2371165XDxoOw','unknown','2130YSgwQZ','log','red','currentRawCommand','message','toISOString','11412RMbgqJ','1162266LATihC','duration','trim'];a351_0x5486=function(){return _0x245f80;};return a351_0x5486();}class Logger{[a351_0x87c33d(0x1f5)];['logFilePath'];[a351_0x87c33d(0x1e7)]='';constructor(){const _0x286be3=a351_0x87c33d;this[_0x286be3(0x1f8)]='';}[a351_0x87c33d(0x1ca)](_0x574867){const _0x42d68b=a351_0x87c33d;this[_0x42d68b(0x1e7)]=_0x574867;}[a351_0x87c33d(0x1d9)](){const _0x399dc1=a351_0x87c33d,_0x1b8682=a351_0x571b85[_0x399dc1(0x1d5)](this[_0x399dc1(0x1f8)]);!a351_0x50f29e['existsSync'](_0x1b8682)&&a351_0x50f29e['mkdirSync'](_0x1b8682,{'recursive':!![]});const _0x5a3bf6=a351_0x2419f8[_0x399dc1(0x1d0)][_0x399dc1(0x1c7)](a351_0x2419f8['format'][_0x399dc1(0x1dd)](),a351_0x2419f8[_0x399dc1(0x1d0)][_0x399dc1(0x1d6)]({'stack':!![]}),a351_0x2419f8[_0x399dc1(0x1d0)][_0x399dc1(0x1f2)](_0x274de3=>{const _0x24dca1=_0x399dc1,_0x2a7d14={'timestamp':_0x274de3[_0x24dca1(0x1dd)]||new Date()[_0x24dca1(0x1e9)](),'level':_0x274de3['level']||_0x24dca1(0x1ce),'command':_0x274de3['command']||_0x24dca1(0x1e3),'rawCommand':_0x274de3[_0x24dca1(0x1f6)]||this[_0x24dca1(0x1e7)]||undefined,'message':_0x274de3[_0x24dca1(0x1e8)]||'','duration':_0x274de3[_0x24dca1(0x1ec)]||undefined,'details':_0x274de3[_0x24dca1(0x1cc)]||undefined};return JSON['stringify'](_0x2a7d14);}));this[_0x399dc1(0x1f5)]=a351_0x2419f8[_0x399dc1(0x1cd)]({'level':'info','format':_0x5a3bf6,'transports':[new a351_0x2419f8['transports']['File']({'filename':this[_0x399dc1(0x1f8)],'level':'info'})],'silent':![]}),a351_0x2419f8[_0x399dc1(0x1fa)]({'success':_0x399dc1(0x1c9),'error':_0x399dc1(0x1e6),'warn':_0x399dc1(0x1da),'info':'blue'});}[a351_0x87c33d(0x1e1)](_0x34129b){const _0x47fb73=a351_0x87c33d;this[_0x47fb73(0x1f8)]=a351_0x571b85[_0x47fb73(0x1dc)](_0x34129b,_0x47fb73(0x1f3)),this[_0x47fb73(0x1f5)]&&this[_0x47fb73(0x1f5)][_0x47fb73(0x1d2)](),this[_0x47fb73(0x1d9)]();}[a351_0x87c33d(0x1ce)](_0x2db493,_0x1a6e19,_0x4598bb){const _0x4739b4=a351_0x87c33d;if(!this[_0x4739b4(0x1f8)]||!this['winstonLogger'])return;this['winstonLogger'][_0x4739b4(0x1ce)](_0x1a6e19,{'command':_0x2db493,'details':_0x4598bb});}[a351_0x87c33d(0x1d1)](_0xb9bf93,_0x28abfb,_0x360efa,_0x225e8d){const _0x4b1d48=a351_0x87c33d;if(!this[_0x4b1d48(0x1f8)]||!this[_0x4b1d48(0x1f5)])return;this[_0x4b1d48(0x1f5)][_0x4b1d48(0x1e5)](_0x4b1d48(0x1ce),_0x28abfb,{'level':_0x4b1d48(0x1d1),'command':_0xb9bf93,'duration':_0x360efa,'details':_0x225e8d});}[a351_0x87c33d(0x1c6)](_0x1bcd3a,_0x22dbe4,_0x464247){const _0x220514=a351_0x87c33d;if(!this['logFilePath']||!this[_0x220514(0x1f5)])return;this[_0x220514(0x1f5)][_0x220514(0x1c6)](_0x22dbe4,{'command':_0x1bcd3a,'details':_0x464247});}[a351_0x87c33d(0x1c3)](_0x2e9bbb,_0x320576,_0x2a9470){const _0x175220=a351_0x87c33d;if(!this[_0x175220(0x1f8)]||!this[_0x175220(0x1f5)])return;this[_0x175220(0x1f5)][_0x175220(0x1c3)](_0x320576,{'command':_0x2e9bbb,'details':_0x2a9470});}async['logTask'](_0xd8daaa,_0x27b5ec,_0x553542){const _0x1fb191=a351_0x87c33d,_0x1ff747=Date[_0x1fb191(0x1f0)]();this[_0x1fb191(0x1ce)](_0xd8daaa,_0x1fb191(0x1c1)+_0x27b5ec);try{const _0xe99acf=await _0x553542(),_0x24e165=Date[_0x1fb191(0x1f0)]()-_0x1ff747;return this[_0x1fb191(0x1d1)](_0xd8daaa,_0x1fb191(0x1df)+_0x27b5ec,_0x24e165),_0xe99acf;}catch(_0x276fe1){const _0x5b3a6c=Date[_0x1fb191(0x1f0)]()-_0x1ff747;this[_0x1fb191(0x1c6)](_0xd8daaa,_0x1fb191(0x1c0)+_0x27b5ec,{'error':_0x276fe1 instanceof Error?_0x276fe1['message']:String(_0x276fe1),'duration':_0x5b3a6c});throw _0x276fe1;}}[a351_0x87c33d(0x1f4)](){const _0x13c307=a351_0x87c33d;try{if(!a351_0x50f29e[_0x13c307(0x1cb)](this['logFilePath']))return[];const _0xa2c269=a351_0x50f29e[_0x13c307(0x1f9)](this[_0x13c307(0x1f8)],'utf8');return _0xa2c269[_0x13c307(0x1d8)]('\x0a')[_0x13c307(0x1c8)](_0x3a1573=>_0x3a1573[_0x13c307(0x1ed)]())[_0x13c307(0x1c5)](_0xb04883=>JSON[_0x13c307(0x1cf)](_0xb04883));}catch(_0x1271a7){return console[_0x13c307(0x1c3)](_0x13c307(0x1bf),_0x1271a7),[];}}[a351_0x87c33d(0x1f1)](){const _0x5e5990=a351_0x87c33d;try{a351_0x50f29e[_0x5e5990(0x1cb)](this['logFilePath'])&&a351_0x50f29e[_0x5e5990(0x1ef)](this['logFilePath'],'','utf8');}catch(_0x3c2d1c){console[_0x5e5990(0x1c3)](_0x5e5990(0x1d7),_0x3c2d1c);}}['getWinstonInstance'](){const _0x2ff32f=a351_0x87c33d;return this[_0x2ff32f(0x1f5)];}}export const logger=new Logger();
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a352_0x659d(_0x39d9e7,_0x2ff2d5){_0x39d9e7=_0x39d9e7-0xb1;const _0x43227e=a352_0x4322();let _0x659d9c=_0x43227e[_0x39d9e7];return _0x659d9c;}(function(_0x5a341d,_0x47cebc){const _0x19e0c1=a352_0x659d,_0x56f51a=_0x5a341d();while(!![]){try{const _0x3238db=parseInt(_0x19e0c1(0xbb))/0x1*(parseInt(_0x19e0c1(0xb8))/0x2)+parseInt(_0x19e0c1(0xb3))/0x3+parseInt(_0x19e0c1(0xbd))/0x4+parseInt(_0x19e0c1(0xb6))/0x5+parseInt(_0x19e0c1(0xb4))/0x6*(parseInt(_0x19e0c1(0xb5))/0x7)+parseInt(_0x19e0c1(0xb2))/0x8*(parseInt(_0x19e0c1(0xb7))/0x9)+-parseInt(_0x19e0c1(0xb1))/0xa;if(_0x3238db===_0x47cebc)break;else _0x56f51a['push'](_0x56f51a['shift']());}catch(_0x57bb85){_0x56f51a['push'](_0x56f51a['shift']());}}}(a352_0x4322,0xb8ff0));function a352_0x4322(){const _0x38d6f9=['44026780tcXcYf','8136248iqkUrX','225771UfDgDc','102bVPbuD','229481rvOhRx','4552565dsrpnj','9RyLUJX','6eJQGzS','isArray','object','433859VRgNId','validation','5194932vGJfaF'];a352_0x4322=function(){return _0x38d6f9;};return a352_0x4322();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x446522){const _0x1c10d1=a352_0x659d;if(!_0x446522)return undefined;let _0x3ceb2d;try{_0x3ceb2d=JSON['parse'](_0x446522);}catch{throw CliErrors[_0x1c10d1(0xbc)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x446522);}if(!_0x3ceb2d||typeof _0x3ceb2d!==_0x1c10d1(0xba)||Array[_0x1c10d1(0xb9)](_0x3ceb2d))throw CliErrors['validation']('--params\x20must\x20be\x20a\x20JSON\x20object','Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x3ceb2d;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a353_0x4742(_0x42387a,_0x163f40){_0x42387a=_0x42387a-0xc7;const _0x475879=a353_0x4758();let _0x4742be=_0x475879[_0x42387a];return _0x4742be;}function a353_0x4758(){const _0x5e6665=['15917mDGhDD','952074iVMlZM','2455352pNslGi','5930ByHNbl','platform','win32','4sdnUBk','2451330SKCDRC','.cmd','473500vWvHDT','344895widDYI','7mgjgof','4clArtL','784695thSsYT'];a353_0x4758=function(){return _0x5e6665;};return a353_0x4758();}const a353_0x20c8a9=a353_0x4742;(function(_0x6f6f0b,_0x4c93cd){const _0x527def=a353_0x4742,_0x3cad4=_0x6f6f0b();while(!![]){try{const _0x1264c6=-parseInt(_0x527def(0xca))/0x1+parseInt(_0x527def(0xcd))/0x2*(-parseInt(_0x527def(0xcb))/0x3)+-parseInt(_0x527def(0xc7))/0x4*(-parseInt(_0x527def(0xce))/0x5)+parseInt(_0x527def(0xc8))/0x6+-parseInt(_0x527def(0xcc))/0x7*(parseInt(_0x527def(0xd1))/0x8)+-parseInt(_0x527def(0xd0))/0x9+-parseInt(_0x527def(0xd2))/0xa*(-parseInt(_0x527def(0xcf))/0xb);if(_0x1264c6===_0x4c93cd)break;else _0x3cad4['push'](_0x3cad4['shift']());}catch(_0x75457a){_0x3cad4['push'](_0x3cad4['shift']());}}}(a353_0x4758,0x4b0e6));export const isWindows=process[a353_0x20c8a9(0xd3)]===a353_0x20c8a9(0xd4);export function resolveNpmBin(_0x5aace9){const _0x153191=a353_0x20c8a9;return isWindows?_0x5aace9+_0x153191(0xc9):_0x5aace9;}
|
package/lib/utils/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function sleep(
|
|
1
|
+
export function sleep(_0x4cb2bd){return new Promise(_0x46c635=>setTimeout(_0x46c635,_0x4cb2bd));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a355_0x1163(){const _0x556fad=['processDirectory','2679405nvaeTH','includes','10104ElXESI','processTemplate','padStart','getDate','charAt','push','.md','YourModel','Starting\x20template\x20content\x20replacement','2488675LqspPY','getMonth','toComponentName','datasetCode','.scss','alias:\x20\x22','replaceContent','name:\x20\x22','4591116bcGNLP','readdir','readFile','1000117pYfhOE','.tpl','tableName:\x20\x22','24htRNfx','\x20},','297wSVxKm','.jsx','split','utf8','extname','join','LOVRABET','api','name','datasetCode:\x20\x22','pop','copyFile','processFile','tableName','now','mkdir','replace','error','toDisplayTitle','getHours','default','getMinutes','getSeconds','template','4249518xmfqrZ','endsWith','1829852EaDUWx','promises','toISOString','pad','isDirectory','formatLocalTimestamp','map','.tsx','\x0a\x20\x20\x20\x20{\x20','Template\x20content\x20replacement\x20completed','message','.json'];a355_0x1163=function(){return _0x556fad;};return a355_0x1163();}const a355_0x119f49=a355_0x4065;(function(_0x2318a0,_0x12a57b){const _0x2133bd=a355_0x4065,_0x3dbaf7=_0x2318a0();while(!![]){try{const _0x4c89ad=parseInt(_0x2133bd(0x149))/0x1+parseInt(_0x2133bd(0x168))/0x2+-parseInt(_0x2133bd(0x166))/0x3+parseInt(_0x2133bd(0x146))/0x4+parseInt(_0x2133bd(0x133))/0x5+-parseInt(_0x2133bd(0x14c))/0x6*(parseInt(_0x2133bd(0x13e))/0x7)+-parseInt(_0x2133bd(0x135))/0x8*(-parseInt(_0x2133bd(0x14e))/0x9);if(_0x4c89ad===_0x12a57b)break;else _0x3dbaf7['push'](_0x3dbaf7['shift']());}catch(_0x1e1d09){_0x3dbaf7['push'](_0x3dbaf7['shift']());}}}(a355_0x1163,0xc3bf0));import a355_0x393527 from'node:fs';import a355_0x259f91 from'node:path';function a355_0x4065(_0x3ffc2d,_0x3fa1ad){_0x3ffc2d=_0x3ffc2d-0x131;const _0x1163d9=a355_0x1163();let _0x40652c=_0x1163d9[_0x3ffc2d];return _0x40652c;}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static['pad'](_0x564ae3){const _0x13b7e6=a355_0x4065;return String(_0x564ae3)[_0x13b7e6(0x137)](0x2,'0');}static[a355_0x119f49(0x16d)](_0x223c22){const _0x439ee8=a355_0x119f49,_0x2064f8=_0x223c22['getFullYear'](),_0x358d73=this[_0x439ee8(0x16b)](_0x223c22[_0x439ee8(0x13f)]()+0x1),_0x3a830b=this[_0x439ee8(0x16b)](_0x223c22[_0x439ee8(0x138)]()),_0x42b9fb=this[_0x439ee8(0x16b)](_0x223c22[_0x439ee8(0x161)]()),_0x2324bd=this[_0x439ee8(0x16b)](_0x223c22[_0x439ee8(0x163)]()),_0x576123=this[_0x439ee8(0x16b)](_0x223c22[_0x439ee8(0x164)]());return{'createdAt':_0x2064f8+'-'+_0x358d73+'-'+_0x3a830b+'\x20'+_0x42b9fb+':'+_0x2324bd+':'+_0x576123,'createdDate':_0x2064f8+'-'+_0x358d73+'-'+_0x3a830b,'createdTime':_0x42b9fb+':'+_0x2324bd+':'+_0x576123};}static[a355_0x119f49(0x140)](_0x2f3b5d){const _0x1acc8a=a355_0x119f49,_0x42ed09=_0x2f3b5d['split']('/')[_0x1acc8a(0x158)]()||_0x2f3b5d;return _0x42ed09['split']('-')[_0x1acc8a(0x16e)](_0x21414e=>_0x21414e['charAt'](0x0)['toUpperCase']()+_0x21414e['slice'](0x1)['toLowerCase']())['join']('');}static[a355_0x119f49(0x160)](_0x57e850){const _0x365f04=a355_0x119f49,_0x5d2688=_0x57e850[_0x365f04(0x150)]('/')['pop']()||_0x57e850;return _0x5d2688[_0x365f04(0x150)]('-')['map'](_0x8289d0=>_0x8289d0[_0x365f04(0x139)](0x0)['toUpperCase']()+_0x8289d0['slice'](0x1)['toLowerCase']())[_0x365f04(0x153)]('\x20');}static['replaceContent'](_0x5aca88,_0x2143b4,_0x4e8e71){const _0x27024f=a355_0x119f49,_0x1e4320=this['toComponentName'](_0x2143b4),_0x2f11b7=this['toDisplayTitle'](_0x2143b4),{createdAt:_0x14a3ef,createdDate:_0x20a8bc,createdTime:_0xa9d56}=this[_0x27024f(0x16d)](new Date());let _0x5e8b34=_0x5aca88['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x27024f(0x15e)](/\{ComponentName\}/g,_0x1e4320)[_0x27024f(0x15e)](/\{DisplayTitle\}/g,_0x2f11b7)[_0x27024f(0x15e)](/\{PageName\}/g,_0x2143b4)[_0x27024f(0x15e)](/\{TemplateName\}/g,_0x4e8e71)[_0x27024f(0x15e)](/\{CreatedAt\}/g,_0x14a3ef)['replace'](/\{CreatedDate\}/g,_0x20a8bc)[_0x27024f(0x15e)](/\{CreatedTime\}/g,_0xa9d56);return _0x5e8b34;}static['replaceApiContent'](_0x870065,_0xa92f11,_0x475c50,_0x6591ee,_0x38a1ef,_0x2f3c8c,_0x56b021,_0x5ad056,_0x1d2bd7){const _0x36129e=a355_0x119f49,_0x4bef7c=new Date(),_0x5bb293=_0x4bef7c[_0x36129e(0x16a)](),_0x44602f=_0x475c50[_0x36129e(0x16e)](_0x149c80=>{const _0x53a61f=_0x36129e,_0x4a862c=[_0x53a61f(0x157)+_0x149c80[_0x53a61f(0x141)]+'\x22',_0x53a61f(0x14b)+_0x149c80[_0x53a61f(0x15b)]+'\x22',_0x53a61f(0x145)+_0x149c80[_0x53a61f(0x156)]+'\x22'];return _0x149c80['alias']&&_0x4a862c[_0x53a61f(0x13a)](_0x53a61f(0x143)+_0x149c80['alias']+'\x22'),_0x53a61f(0x170)+_0x4a862c[_0x53a61f(0x153)](',\x20')+_0x53a61f(0x14d);})[_0x36129e(0x153)](''),_0x572b21=_0x6591ee||_0x475c50[0x0]?.['alias']||_0x36129e(0x13c);let _0x14f285=_0x870065['replace'](/\{AppCode\}/g,_0xa92f11)[_0x36129e(0x15e)](/\{ModelConfigs\}/g,_0x44602f)['replace'](/\{ExampleModelName\}/g,_0x572b21)['replace'](/\{ApiFileName\}/g,_0x38a1ef||_0x36129e(0x155))['replace'](/\{ConfigName\}/g,_0x2f3c8c||_0x36129e(0x162))['replace'](/\{ClientConfigParam\}/g,_0x56b021||'')[_0x36129e(0x15e)](/\{SdkConfigFileName\}/g,_0x1d2bd7||'sdk-config')['replace'](/\{VarPrefix\}/g,_0x5ad056||_0x36129e(0x154))[_0x36129e(0x15e)](/\{CreatedAt\}/g,_0x5bb293);return _0x14f285;}static async[a355_0x119f49(0x136)](_0x44437d,_0x1d9643,_0xc9063a,_0x1e8b4e,_0x3cc095=!![]){const _0x438815=a355_0x119f49,_0x5c3393=Date[_0x438815(0x15c)]();try{_0x3cc095&&logger['info'](_0x438815(0x165),_0x438815(0x13d),{'templatePath':_0x44437d,'targetPath':_0x1d9643,'pageName':_0xc9063a,'templateName':_0x1e8b4e});await a355_0x393527[_0x438815(0x169)][_0x438815(0x15d)](_0x1d9643,{'recursive':!![]}),await this[_0x438815(0x132)](_0x44437d,_0x1d9643,_0xc9063a,_0x1e8b4e);if(_0x3cc095){const _0x5498cd=Date[_0x438815(0x15c)]()-_0x5c3393;logger['success'](_0x438815(0x165),_0x438815(0x171),_0x5498cd,{'pageName':_0xc9063a,'templateName':_0x1e8b4e});}}catch(_0x862df1){if(_0x3cc095){const _0x231e76=Date['now']()-_0x5c3393;logger[_0x438815(0x15f)](_0x438815(0x165),'Template\x20content\x20replacement\x20failed',{'templatePath':_0x44437d,'targetPath':_0x1d9643,'pageName':_0xc9063a,'templateName':_0x1e8b4e,'error':_0x862df1 instanceof Error?_0x862df1[_0x438815(0x172)]:String(_0x862df1),'duration':_0x231e76});}throw _0x862df1;}}static async[a355_0x119f49(0x132)](_0x3e5532,_0x6f4ae5,_0x311216,_0x32dba7){const _0xa4707a=a355_0x119f49,_0x2732d7=await a355_0x393527[_0xa4707a(0x169)][_0xa4707a(0x147)](_0x3e5532,{'withFileTypes':!![]});for(const _0x51e0b9 of _0x2732d7){const _0x11b45b=a355_0x259f91[_0xa4707a(0x153)](_0x3e5532,_0x51e0b9[_0xa4707a(0x156)]);let _0x3066ef=a355_0x259f91[_0xa4707a(0x153)](_0x6f4ae5,_0x51e0b9[_0xa4707a(0x156)]);_0x51e0b9['name'][_0xa4707a(0x167)](_0xa4707a(0x14a))&&(_0x3066ef=a355_0x259f91[_0xa4707a(0x153)](_0x6f4ae5,_0x51e0b9[_0xa4707a(0x156)][_0xa4707a(0x15e)](/\.tpl$/,'')));if(_0x51e0b9[_0xa4707a(0x16c)]())await a355_0x393527[_0xa4707a(0x169)][_0xa4707a(0x15d)](_0x3066ef,{'recursive':!![]}),await this['processDirectory'](_0x11b45b,_0x3066ef,_0x311216,_0x32dba7);else _0x51e0b9['isFile']()&&await this[_0xa4707a(0x15a)](_0x11b45b,_0x3066ef,_0x311216,_0x32dba7);}}static async[a355_0x119f49(0x15a)](_0x31e38f,_0x3d7327,_0x45770c,_0x5561e4){const _0x2d284f=a355_0x119f49,_0x3fadc6=a355_0x259f91[_0x2d284f(0x152)](_0x31e38f)['toLowerCase']();_0x31e38f[_0x2d284f(0x167)](_0x2d284f(0x14a))&&(_0x3d7327=_0x3d7327['replace'](/\.tpl$/,''));const _0x37967c=[_0x2d284f(0x16f),'.ts',_0x2d284f(0x14f),'.js',_0x2d284f(0x131),_0x2d284f(0x13b),'.css',_0x2d284f(0x142),_0x2d284f(0x14a)];if(_0x37967c[_0x2d284f(0x134)](_0x3fadc6)||_0x31e38f[_0x2d284f(0x167)](_0x2d284f(0x14a))){const _0x17a134=await a355_0x393527[_0x2d284f(0x169)][_0x2d284f(0x148)](_0x31e38f,_0x2d284f(0x151)),_0x17563b=this[_0x2d284f(0x144)](_0x17a134,_0x45770c,_0x5561e4);await a355_0x393527[_0x2d284f(0x169)]['writeFile'](_0x3d7327,_0x17563b,_0x2d284f(0x151));}else await a355_0x393527[_0x2d284f(0x169)][_0x2d284f(0x159)](_0x31e38f,_0x3d7327);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x32fba2,_0xf90544){const _0x4525dc=a356_0x2ca5,_0x158e12=_0x32fba2();while(!![]){try{const _0x298307=parseInt(_0x4525dc(0xb8))/0x1*(-parseInt(_0x4525dc(0xae))/0x2)+-parseInt(_0x4525dc(0xb3))/0x3+-parseInt(_0x4525dc(0xb0))/0x4+parseInt(_0x4525dc(0xad))/0x5+-parseInt(_0x4525dc(0xb7))/0x6*(-parseInt(_0x4525dc(0xb2))/0x7)+parseInt(_0x4525dc(0xb6))/0x8*(-parseInt(_0x4525dc(0xc7))/0x9)+parseInt(_0x4525dc(0xca))/0xa*(parseInt(_0x4525dc(0xc0))/0xb);if(_0x298307===_0xf90544)break;else _0x158e12['push'](_0x158e12['shift']());}catch(_0x1362a2){_0x158e12['push'](_0x158e12['shift']());}}}(a356_0x51ca,0x1ff03));function a356_0x2ca5(_0x296f37,_0x1989d3){_0x296f37=_0x296f37-0xad;const _0x51ca12=a356_0x51ca();let _0x2ca51b=_0x51ca12[_0x296f37];return _0x2ca51b;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a356_0xbf1a1c from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';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 _0x4b00fc=a356_0x2ca5,_0x93ee61=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x4b00fc(0xcb)]()[_0x4b00fc(0xaf)]();return _0x93ee61==='1'||_0x93ee61===_0x4b00fc(0xb5)||_0x93ee61===_0x4b00fc(0xc3);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x3a4c5b=a356_0x2ca5;return join(cacheRoot(),_0x3a4c5b(0xb9),_0x3a4c5b(0xc6));}async function readUpdateNoticeCache(){const _0x56a45e=a356_0x2ca5;try{const _0x3ed681=await readFile(getUpdateNoticeCachePath(),_0x56a45e(0xb1)),_0xf8c6e4=JSON['parse'](_0x3ed681);if(!_0xf8c6e4||typeof _0xf8c6e4!==_0x56a45e(0xc5))return{};return _0xf8c6e4;}catch{return{};}}async function writeUpdateNoticeCache(_0x13e471){const _0x462605=a356_0x2ca5;try{const _0x34efd9=getUpdateNoticeCachePath();await mkdir(dirname(_0x34efd9),{'recursive':!![]}),await writeFile(_0x34efd9,JSON[_0x462605(0xbc)](_0x13e471,null,0x2)+'\x0a',_0x462605(0xb1));}catch{}}function isFreshCheck(_0x1e5460,_0x1132d2){const _0x2b9e19=a356_0x2ca5;return typeof _0x1e5460[_0x2b9e19(0xb4)]==='number'&&_0x1132d2-_0x1e5460[_0x2b9e19(0xb4)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x3eeff5,_0x291825,_0x47bb60){const _0x448a21=a356_0x2ca5;return _0x3eeff5['lastNotifiedVersion']===_0x291825&&typeof _0x3eeff5[_0x448a21(0xc2)]===_0x448a21(0xc9)&&_0x47bb60-_0x3eeff5['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x4b131c){const _0x21b348=a356_0x2ca5;return _0x21b348(0xbb)+NPM_PACKAGE_NAME+_0x21b348(0xc4)+_0x4b131c;}function a356_0x51ca(){const _0x4fd11e=['lastNotifiedAt','yes','/v/','object','update-check.json','286965cGaiVG','valid','number','10PoaDPU','trim','\x20available,\x20current\x20','231900XmGqZh','4LYeYOP','toLowerCase','306556TfSVOJ','utf8','109319Pmrgcs','78759NIVekU','checkedAt','true','40mvRrIo','84oSPXIP','13331XuCRGW','rabetbase-cli','now','https://www.npmjs.com/package/','stringify','gte',',\x20run:\x20','stableVersion','1702580RCFTAd','\x20update'];a356_0x51ca=function(){return _0x4fd11e;};return a356_0x51ca();}export async function resolveLatestUpdateNotice(){const _0x53d33a=a356_0x2ca5;if(isUpdateNoticeDisabled())return null;try{const _0x41d04d=Date[_0x53d33a(0xba)](),_0x4bc173=getCliVersion(),_0x364d74=await readUpdateNoticeCache();let _0x4144eb=isFreshCheck(_0x364d74,_0x41d04d)?_0x364d74['latest']?.[_0x53d33a(0xcb)]():undefined;if(!_0x4144eb&&!isFreshCheck(_0x364d74,_0x41d04d)){const _0x2e0500=await getCliVersionPolicy();_0x4144eb=_0x2e0500?.[_0x53d33a(0xbf)]?.['trim']()||undefined,await writeUpdateNoticeCache({..._0x364d74,'checkedAt':_0x41d04d,'latest':_0x4144eb,'failed':!_0x4144eb});}if(!_0x4144eb||!a356_0xbf1a1c[_0x53d33a(0xc8)](_0x4bc173)||!a356_0xbf1a1c[_0x53d33a(0xc8)](_0x4144eb))return null;if(a356_0xbf1a1c[_0x53d33a(0xbd)](_0x4bc173,_0x4144eb))return null;if(isRecentlyNotified(_0x364d74,_0x4144eb,_0x41d04d))return null;const _0x17fae5=CLI_BIN_NAME+_0x53d33a(0xc1);return await writeUpdateNoticeCache({..._0x364d74,'checkedAt':isFreshCheck(_0x364d74,_0x41d04d)?_0x364d74[_0x53d33a(0xb4)]:_0x41d04d,'latest':_0x4144eb,'failed':![],'lastNotifiedVersion':_0x4144eb,'lastNotifiedAt':_0x41d04d}),{'command':_0x17fae5,'current':_0x4bc173,'latest':_0x4144eb,'url':buildNpmVersionUrl(_0x4144eb),'message':CLI_BIN_NAME+'\x20'+_0x4144eb+_0x53d33a(0xcc)+_0x4bc173+_0x53d33a(0xbe)+_0x17fae5};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4c0d96,_0x35e787){var _0x306d77=a357_0x1a23,_0x1b2f3f=_0x4c0d96();while(!![]){try{var _0x5ad25f=-parseInt(_0x306d77(0x8d))/0x1+-parseInt(_0x306d77(0x89))/0x2*(-parseInt(_0x306d77(0x8f))/0x3)+-parseInt(_0x306d77(0x8c))/0x4*(parseInt(_0x306d77(0x88))/0x5)+-parseInt(_0x306d77(0x8e))/0x6+parseInt(_0x306d77(0x8b))/0x7+parseInt(_0x306d77(0x87))/0x8+parseInt(_0x306d77(0x8a))/0x9;if(_0x5ad25f===_0x35e787)break;else _0x1b2f3f['push'](_0x1b2f3f['shift']());}catch(_0x5d46d4){_0x1b2f3f['push'](_0x1b2f3f['shift']());}}}(a357_0x5102,0xa6c89));import{VERSION}from'../generated/build-info.js';function a357_0x1a23(_0x278f01,_0x2f4c5b){_0x278f01=_0x278f01-0x87;var _0x510298=a357_0x5102();var _0x1a23ce=_0x510298[_0x278f01];return _0x1a23ce;}export function getCliVersion(){return VERSION;}function a357_0x5102(){var _0x1a9b46=['2015608ugWRcu','675CrUpJk','2qlgsqy','23603229ZMPtBb','2820055ytqNqD','32444qgEsZo','1354776bselQU','7221114ksYNVE','3177084OUvLdC'];a357_0x5102=function(){return _0x1a9b46;};return a357_0x5102();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x39f776,_0x18057a){var _0xcd8980=a358_0x338d,_0x27b5a9=_0x39f776();while(!![]){try{var _0x3d1b43=-parseInt(_0xcd8980(0x141))/0x1+parseInt(_0xcd8980(0x144))/0x2+parseInt(_0xcd8980(0x13e))/0x3*(parseInt(_0xcd8980(0x143))/0x4)+parseInt(_0xcd8980(0x142))/0x5*(-parseInt(_0xcd8980(0x13c))/0x6)+parseInt(_0xcd8980(0x145))/0x7+-parseInt(_0xcd8980(0x140))/0x8*(-parseInt(_0xcd8980(0x13d))/0x9)+-parseInt(_0xcd8980(0x13f))/0xa;if(_0x3d1b43===_0x18057a)break;else _0x27b5a9['push'](_0x27b5a9['shift']());}catch(_0x25ab4a){_0x27b5a9['push'](_0x27b5a9['shift']());}}}(a358_0x5a90,0x926cf));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a358_0x338d(_0x1753ed,_0x85988){_0x1753ed=_0x1753ed-0x13c;var _0x5a907b=a358_0x5a90();var _0x338d1a=_0x5a907b[_0x1753ed];return _0x338d1a;}function a358_0x5a90(){var _0x235f5b=['847994AVDDRw','2636130zYqyTS','102bAHWKo','10377ofqqNJ','327723ooyhlo','1530390oKIOjG','904sfVSAs','843026UTVgHD','29335QRzuZY','28BQOGhE'];a358_0x5a90=function(){return _0x235f5b;};return a358_0x5a90();}export async function withActiveCookie(_0x334af0,_0xd72b8e){setActiveCookie(_0x334af0);try{return await _0xd72b8e();}finally{clearActiveCookie();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4c4f72,_0x5e6653){var _0x448708=a359_0x35f8,_0x319515=_0x4c4f72();while(!![]){try{var _0x3c753c=-parseInt(_0x448708(0xf7))/0x1*(-parseInt(_0x448708(0xfc))/0x2)+parseInt(_0x448708(0xf9))/0x3+-parseInt(_0x448708(0x100))/0x4*(-parseInt(_0x448708(0xfb))/0x5)+-parseInt(_0x448708(0xf6))/0x6+parseInt(_0x448708(0xfd))/0x7*(-parseInt(_0x448708(0xfa))/0x8)+-parseInt(_0x448708(0xff))/0x9+parseInt(_0x448708(0x101))/0xa*(parseInt(_0x448708(0xf8))/0xb);if(_0x3c753c===_0x5e6653)break;else _0x319515['push'](_0x319515['shift']());}catch(_0xfed91){_0x319515['push'](_0x319515['shift']());}}}(a359_0x24df,0x69d17));function a359_0x24df(){var _0x1138ff=['1890537ZOmuHb','388672blVFHM','1657185JFjGGm','1122866jLckBT','98wSlNYi','stderr','4358475Ppnpbg','4HOLwEG','10WNmxhg','2136168mpjipU','1DUPKtC','4739471aAceTT'];a359_0x24df=function(){return _0x1138ff;};return a359_0x24df();}function a359_0x35f8(_0x17affc,_0x4bdc5b){_0x17affc=_0x17affc-0xf6;var _0x24df3c=a359_0x24df();var _0x35f8de=_0x24df3c[_0x17affc];return _0x35f8de;}export function writeCliSideChannelLine(_0x4575e5){var _0x38eae9=a359_0x35f8;process[_0x38eae9(0xfe)]['write'](_0x4575e5+'\x0a');}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/rabetbase-cli",
|
|
3
|
-
"version": "2.5.5-beta.
|
|
3
|
+
"version": "2.5.5-beta.3",
|
|
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.5-beta.
|
|
3
|
+
version: 2.5.5-beta.3
|
|
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:
|
|
@@ -85,7 +85,7 @@ Agent 负责把已授权的目标推进到可验证的结果:主动获取事
|
|
|
85
85
|
- `bff pull` / `bff push` 返回 `data.conflicts` 时,逐项报告 `lockKey` 和 `code`,并只在审阅后执行该项 `nextAction`;不得把同步冲突说成失败、自动使用 `--force`,或盲目重试整批脚本
|
|
86
86
|
- 创建会发送消息通知的 Backend Function 时,先读取 [`backend-function.md`](guides/backend-function.md) 的“消息通知扩展”契约,再执行 [`rabetbase notification config-list --type EMAIL`](references/rabetbase-notification-config-list.md) 获取当前应用的 `configCode`;不得猜测渠道、收件人或把密钥写进脚本
|
|
87
87
|
- 推送成功只证明平台保存;需要确认运行效果时,按 [BFF 运行验证](guides/bff-creation-workflow.md#9-运行态-smoke按需)执行,不把保存成功当作运行验证通过
|
|
88
|
-
-
|
|
88
|
+
- 已确认独立部署并需验证或厘清业务环境与平台连接的对应关系、出现平台到业务环境的同步疑点或明确需要独立部署同步功能时,读取[独立部署指南](guides/independent-deployment.md)
|
|
89
89
|
5. **页面体系选择**
|
|
90
90
|
- 数据列表页(Data List Page)是数据集驱动的结构化页面组,用于数据查看、维护和模型验证,不等同于最终业务工作台
|
|
91
91
|
- 自定义页面(Custom Page)是完整代码文件驱动的平台页面,用于工作台、看板、门户和复杂业务交互;当前 React JSX 只是渲染实现,不是页面产品类型
|
|
@@ -365,7 +365,7 @@ const result = await client.bff.execute<DashboardData>({
|
|
|
365
365
|
| 设计、校验和发布表单审批流或独立工作流 | [`rabetbase flow validate/list/detail/create/update/publish`](references/rabetbase-flow-commands.md) | 先确定 `flowType`;本地 validate 后再 create/update 和 publish |
|
|
366
366
|
| 查询审批流运行态人员和角色 | [`rabetbase flow runtime-user-search/runtime-role-list/runtime-role-user-list`](references/rabetbase-flow-resources.md) | 只读,结果标记 `scope: runtime`;用于填写 FlowConfig 的 userId/roleId |
|
|
367
367
|
| 查看线上菜单事实 / 菜单异常审计 | [`rabetbase menu list`](references/rabetbase-menu-list.md) | 返回 DFS 事实、children/page、URL、最近更新人/时间和 snapshotHash;异常治理先读 [`menu-anomaly-manual-cleanup`](guides/menu-anomaly-manual-cleanup.md) |
|
|
368
|
-
| 批量显示或隐藏菜单 | [`rabetbase menu visibility-update`](references/rabetbase-menu-visibility-update.md) |
|
|
368
|
+
| 批量显示或隐藏菜单 | [`rabetbase menu visibility-update`](references/rabetbase-menu-visibility-update.md) | `write`;用精确 ID/path 选择目标;先 dry-run,使用 `--expect-visible` / `--expected-count` 防漂移 |
|
|
369
369
|
| 创建外部网站链接菜单 | [`rabetbase menu external-link-create`](references/rabetbase-menu-external-link-create.md) | `write`;显式选择 `embedded` 或 `new-window`,仅接受 HTTPS;建议先 dry-run,正式执行不要求 `--yes` |
|
|
370
370
|
| 原地更新既有外链 URL | [`rabetbase menu external-link-update`](references/rabetbase-menu-external-link-update.md) | `write`;精确单 ID、URL-only;必须带旧 URL 与父级断言,先 dry-run,再复用参数正式执行 |
|
|
371
371
|
| 修改任意类型菜单名称 | [`rabetbase menu rename`](references/rabetbase-menu-rename.md) | 精确单 ID、label-only;使用 `--expect-label` 防漂移,先 dry-run 并检查 before/after |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## 何时读取
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
仅在已确认独立部署并需要运行验证或厘清业务环境与平台连接的对应关系、出现平台到业务环境的同步疑点,或明确需要独立部署同步功能时读取。非独立部署应用只在 Lovrabet 平台内开发与验证,沿用普通工作流,不引入独立业务库或日常到线上的流程。
|
|
6
6
|
|
|
7
7
|
正常开发、绑定项目和正常 push 不查询或展示 `vipDeploy`。出现异常时,先确认平台是否保存、实际验证目标及失败步骤;已有证据定位其他原因时,不追加能力查询。
|
|
8
8
|
|
|
@@ -22,6 +22,16 @@
|
|
|
22
22
|
|
|
23
23
|
从项目已确认的部署约定获取同步目标和后续发布步骤。若项目明确“平台只连接业务日常,日常验证通过后按既有发布流程同步业务线上”,push 后先验证日常,线上单独核对发布。其他项目按各自约定处理,不猜环境数量、域名用途或发布顺序。已知事实一致时直接继续;信息缺失或冲突时先补齐,不切换另一环境试验,不复制两侧凭据或改写配置来消除错误。
|
|
24
24
|
|
|
25
|
+
### 理解用户说的“测试环境”与“线上环境”
|
|
26
|
+
|
|
27
|
+
企业应用的测试、日常与线上目标按项目部署约定确定;`.rabetbase.json` 的平台 `env` 定义见[配置参考](../references/rabetbase-config.md#顶层字段)。用户说“推测试环境”“更新日常”或“上线”时,沿用已确认的平台连接并核对业务目标,不据此改动平台 `env`。
|
|
28
|
+
|
|
29
|
+
- 项目对应关系已明确时,沿用当前正确的平台连接,按用户的业务目标执行和验证;不再让用户选择平台 `production` 还是 `daily`。只有用户明确要求切换 Lovrabet 平台环境,或已核实当前连接配置有误时,才按对应目标调整。
|
|
30
|
+
- 关系缺失或冲突时,只确认缺失的业务访问地址、目标应用或项目部署约定;不通过切换平台环境试错,也不要求用户先理解两套登录体系。`vipDeploy` 不能回答这些对应关系,无需为此重复查询。
|
|
31
|
+
- 业务线上发布遵循该项目已确认的发布流程;不能通过将 `env` 改为 `production` 代替发布,也不能将某个项目的导库流程套用到所有独立部署应用。
|
|
32
|
+
|
|
33
|
+
例如,项目已确认使用 Lovrabet 平台 `production`,且平台只同步到业务日常库时,用户要求“推测试环境”,可说明:“本次更新业务日常环境,沿用当前 Lovrabet 平台连接。推送后验证平台到业务日常的同步与运行结果;业务线上仍按既有发布流程处理。”这说明执行目标,不代表同步或运行验证已成功。
|
|
34
|
+
|
|
25
35
|
## 按实际环节定位
|
|
26
36
|
|
|
27
37
|
| 已确认的事实 | 下一步 |
|