@lovrabet/rabetbase-cli 2.5.2-beta.3 → 2.5.2-beta.5
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/README.md +1 -1
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/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/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/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/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/auto-sync.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/deployment/sync.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.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/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/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.d.ts +0 -8
- 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/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.d.ts +4 -0
- 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/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.d.ts +5 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +0 -26
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.d.ts +43 -0
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/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.d.ts +6 -5
- 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 +2 -1
- package/skills/rabetbase/SKILL.md +5 -5
- package/skills/rabetbase/guides/custom-page-workflow.md +35 -17
- package/skills/rabetbase/guides/page-development-workflow.md +1 -1
- package/skills/rabetbase/knowledge/components.md +292 -0
- package/skills/rabetbase/knowledge/custom-page/generation-standards.md +74 -4
- package/skills/rabetbase/knowledge/custom-page/page-templates.md +68 -0
- package/skills/rabetbase/references/rabetbase-page-create.md +21 -9
- package/skills/rabetbase/references/rabetbase-page-custom-detail.md +1 -1
- package/skills/rabetbase/references/rabetbase-page-custom-update.md +13 -9
- package/skills/rabetbase/references/rabetbase-project-create.md +5 -2
- package/skills/rabetbase/references/rabetbase-project-domain-routing-sync.md +2 -2
- package/skills/rabetbase/references/rabetbase-run.md +1 -0
- package/skills/rabetbase.manifest.json +5 -4
- package/templates/README.md +10 -4
- package/templates/custom-pages/blank.json +5 -0
- package/templates/custom-pages/dashboard.json +5 -0
- package/templates/custom-pages/onepage.json +5 -0
- package/templates/generate-api/api.ts.tpl +1 -1
- package/lib/commands/page/custom/template.d.ts +0 -8
- package/lib/commands/page/custom/template.js +0 -1
- package/skills/rabetbase/knowledge/custom-page/components.md +0 -225
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a309_0x3724(_0x38de9a,_0x303af1){_0x38de9a=_0x38de9a-0xd5;const _0x5a4e2b=a309_0x5a4e();let _0x372445=_0x5a4e2b[_0x38de9a];return _0x372445;}(function(_0x2d5b5a,_0x6572b0){const _0x57be42=a309_0x3724,_0xdcecb8=_0x2d5b5a();while(!![]){try{const _0x56172a=-parseInt(_0x57be42(0xd7))/0x1+-parseInt(_0x57be42(0xe7))/0x2+-parseInt(_0x57be42(0xf3))/0x3*(parseInt(_0x57be42(0xf2))/0x4)+parseInt(_0x57be42(0xee))/0x5+-parseInt(_0x57be42(0xf0))/0x6*(-parseInt(_0x57be42(0xdc))/0x7)+-parseInt(_0x57be42(0xe2))/0x8*(parseInt(_0x57be42(0xf8))/0x9)+parseInt(_0x57be42(0xfd))/0xa*(parseInt(_0x57be42(0xea))/0xb);if(_0x56172a===_0x6572b0)break;else _0xdcecb8['push'](_0xdcecb8['shift']());}catch(_0x149ea9){_0xdcecb8['push'](_0xdcecb8['shift']());}}}(a309_0x5a4e,0x44257));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a309_0x4a31f3 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a309_0x5a4e(){const _0x3e912d=['\x1b[0m','Current\x20version:\x20','\x20\x20\x20Recommended\x20stable:\x20','2570fvMHio','Upgrade\x20command:\x20','parse','\x20\x20\x20Stable\x20version:\x20','202811YxjZFw','↪\x20New\x20version\x20available','\x1b[33m','1.0.0','../..','21dgJlNy','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','belowMinimum','\x20\x20\x20Minimum\x20supported:\x20','minimumVersionMessage','\x20\x20\x20Upgrade\x20command:\x20','74488CbSWtQ','\x1b[1m','upgradeMessage','package.json','latest','119684eWjaFO','\x20\x20\x20Current\x20CLI\x20version:\x20','\x20\x20\x20','3817ySPUlJ','stableVersion','validation','minimumVersion','2427350CwbkLC','join','545526aHQNUM','currentVersion','80632yGdrXy','15rvwRGu','log','filter','coerce','\x1b[31m','198UfzQYN','↪\x20Critical\x20CLI\x20upgrade\x20required'];a309_0x5a4e=function(){return _0x3e912d;};return a309_0x5a4e();}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0xfecf27){const _0x53c4f8=a309_0x3724,_0x117cf4=_0xfecf27['stableVersion']||_0x53c4f8(0xe6);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x117cf4;}function getCurrentCliVersion(){const _0x264e56=a309_0x3724;try{const _0x105279=fileURLToPath(import.meta.url),_0x3a3311=resolve(dirname(_0x105279),_0x264e56(0xdb)),_0x1a7843=resolve(_0x3a3311,_0x264e56(0xe5)),_0x4dbb6e=JSON[_0x264e56(0xd5)](readFileSync(_0x1a7843,'utf-8'));return _0x4dbb6e['version']||_0x264e56(0xda);}catch{return _0x264e56(0xda);}}export async function checkCliVersion(){const _0x52fabb=a309_0x3724,_0x4e916c=getCurrentCliVersion(),_0x4751c1=await getCliVersionPolicy(),_0xc75937=_0x4751c1?.['stableVersion']||null,_0x59548d=_0x4751c1?.[_0x52fabb(0xed)]||null;let _0x1d38e2=![],_0x4c9a49=![];const _0x145597=a309_0x4a31f3['coerce'](_0x4e916c);if(_0x145597&&_0xc75937)try{const _0x26fb66=a309_0x4a31f3[_0x52fabb(0xf6)](_0xc75937);if(_0x26fb66)_0x1d38e2=a309_0x4a31f3['lt'](_0x145597,_0x26fb66);}catch{}if(_0x145597&&_0x59548d)try{const _0x57a31f=a309_0x4a31f3[_0x52fabb(0xf6)](_0x59548d);if(_0x57a31f)_0x4c9a49=a309_0x4a31f3['lt'](_0x145597,_0x57a31f);}catch{}return _0x4c9a49&&(_0x1d38e2=!![]),{'currentVersion':_0x4e916c,'stableVersion':_0xc75937,'minimumVersion':_0x59548d,'needsUpgrade':_0x1d38e2,'belowMinimum':_0x4c9a49,'isPreRelease':![],'upgradeMessage':_0x4751c1?.[_0x52fabb(0xe4)],'minimumVersionMessage':_0x4751c1?.[_0x52fabb(0xe0)]};}export function printCliUpgradeWarning(_0x245893){const _0x1e6282=a309_0x3724;if(!_0x245893['needsUpgrade']&&!_0x245893[_0x1e6282(0xde)])return;const _0x2832fc=_0x1e6282(0xf7),_0x5918d7=_0x1e6282(0xd9),_0x21b108=_0x1e6282(0xfa),_0x5da72f=_0x1e6282(0xe3),_0x4a9d3b=getCliUpgradeCommand(_0x245893);console[_0x1e6282(0xf4)](),_0x245893['belowMinimum']?(console['log'](''+_0x2832fc+_0x5da72f+_0x1e6282(0xf9)+_0x21b108),console[_0x1e6282(0xf4)](_0x2832fc+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x245893[_0x1e6282(0xf1)]+_0x21b108),_0x245893[_0x1e6282(0xed)]&&console[_0x1e6282(0xf4)](_0x2832fc+_0x1e6282(0xdf)+_0x245893[_0x1e6282(0xed)]+_0x21b108),_0x245893[_0x1e6282(0xeb)]&&_0x245893[_0x1e6282(0xeb)]!==_0x245893[_0x1e6282(0xed)]&&console[_0x1e6282(0xf4)](_0x2832fc+_0x1e6282(0xfc)+_0x245893[_0x1e6282(0xeb)]+_0x21b108),_0x245893[_0x1e6282(0xe0)]&&console[_0x1e6282(0xf4)](_0x2832fc+_0x1e6282(0xe9)+_0x245893['minimumVersionMessage']+_0x21b108),console['log'](_0x2832fc+_0x1e6282(0xe1)+_0x4a9d3b+_0x21b108)):(console[_0x1e6282(0xf4)](''+_0x5918d7+_0x5da72f+_0x1e6282(0xd8)+_0x21b108),console[_0x1e6282(0xf4)](_0x5918d7+_0x1e6282(0xe8)+_0x245893[_0x1e6282(0xf1)]+_0x21b108),console['log'](_0x5918d7+_0x1e6282(0xd6)+_0x245893[_0x1e6282(0xeb)]+_0x21b108),_0x245893[_0x1e6282(0xe4)]&&console[_0x1e6282(0xf4)](_0x5918d7+_0x1e6282(0xe9)+_0x245893[_0x1e6282(0xe4)]+_0x21b108),console['log'](_0x5918d7+_0x1e6282(0xe1)+_0x4a9d3b+_0x21b108)),console[_0x1e6282(0xf4)]();}export function assertCliVersionSupported(_0xb377c9){const _0x4d0491=a309_0x3724;if(!_0xb377c9[_0x4d0491(0xde)])return;const _0x2c425d=[_0xb377c9[_0x4d0491(0xe0)],_0x4d0491(0xfb)+_0xb377c9[_0x4d0491(0xf1)],_0xb377c9[_0x4d0491(0xed)]?'Minimum\x20supported:\x20'+_0xb377c9[_0x4d0491(0xed)]:null,_0x4d0491(0xfe)+getCliUpgradeCommand(_0xb377c9)][_0x4d0491(0xf5)](Boolean)[_0x4d0491(0xef)]('\x0a');throw CliErrors[_0x4d0491(0xec)](_0x4d0491(0xdd),_0x2c425d);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x455571,_0x546270){const _0x270cde=a310_0x5036,_0x28302d=_0x455571();while(!![]){try{const _0x13b789=parseInt(_0x270cde(0x1ca))/0x1+-parseInt(_0x270cde(0x1c8))/0x2+-parseInt(_0x270cde(0x1d6))/0x3+-parseInt(_0x270cde(0x1c7))/0x4+parseInt(_0x270cde(0x1d2))/0x5+-parseInt(_0x270cde(0x1cb))/0x6+parseInt(_0x270cde(0x1ce))/0x7;if(_0x13b789===_0x546270)break;else _0x28302d['push'](_0x28302d['shift']());}catch(_0x7b1e4d){_0x28302d['push'](_0x28302d['shift']());}}}(a310_0x41e9,0x332b2));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';function a310_0x41e9(){const _0x1f5690=['now','1189635vMFmwp','json','signal','minimumVersion','1083954MoRVUH','trim','latestVersion','object','upgradeMessage','stableVersion','719720gGZqJd','553040fdnMjC','recommendedVersion','79709EzYzuJ','857376yrSAJI','minimumVersionMessage','application/json','5968298gyTwGv','length','cli'];a310_0x41e9=function(){return _0x1f5690;};return a310_0x41e9();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x51fcad){const _0x287920=a310_0x5036;return typeof _0x51fcad==='string'&&_0x51fcad[_0x287920(0x1c2)]()[_0x287920(0x1cf)]>0x0?_0x51fcad[_0x287920(0x1c2)]():null;}function normalizeCliVersionPolicy(_0x3ae15a){const _0x26784b=a310_0x5036;if(!_0x3ae15a||typeof _0x3ae15a!==_0x26784b(0x1c4))return null;const _0x483c8=_0x3ae15a,_0xaaf245=_0x483c8[_0x26784b(0x1d0)]&&typeof _0x483c8['cli']==='object'?_0x483c8['cli']:_0x483c8,_0x5aa81a=pickString(_0xaaf245[_0x26784b(0x1c6)])||pickString(_0xaaf245[_0x26784b(0x1c3)])||pickString(_0xaaf245[_0x26784b(0x1c9)]),_0x26ea6f=pickString(_0xaaf245[_0x26784b(0x1d5)])||pickString(_0xaaf245['minVersion']);if(!_0x5aa81a&&!_0x26ea6f)return null;return{'stableVersion':_0x5aa81a,'minimumVersion':_0x26ea6f,'upgradeMessage':pickString(_0xaaf245[_0x26784b(0x1c5)])||undefined,'minimumVersionMessage':pickString(_0xaaf245[_0x26784b(0x1cc)])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0xc959d3=a310_0x5036,_0x5dc40a=new AbortController(),_0x1953f9=setTimeout(()=>_0x5dc40a['abort'](),FETCH_TIMEOUT_MS);try{const _0x2cef1d=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0xc959d3(0x1cd)},'signal':_0x5dc40a[_0xc959d3(0x1d4)]});if(!_0x2cef1d['ok'])return null;const _0x288193=await _0x2cef1d[_0xc959d3(0x1d3)]();return _0x288193&&typeof _0x288193===_0xc959d3(0x1c4)?_0x288193:null;}catch{return null;}finally{clearTimeout(_0x1953f9);}}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x4838ff=a310_0x5036,_0x4ff62f=Date[_0x4838ff(0x1d1)]();if(hasCachedConfig){const _0xe565fa=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x4ff62f-cacheTime<_0xe565fa)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x4ff62f,hasCachedConfig=!![],cachedConfig;}function a310_0x5036(_0x3c2963,_0x228272){_0x3c2963=_0x3c2963-0x1c2;const _0x41e9e7=a310_0x41e9();let _0x50366e=_0x41e9e7[_0x3c2963];return _0x50366e;}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
|
-
(function(
|
|
1
|
+
function a311_0x5a91(_0x275a82,_0x354df6){_0x275a82=_0x275a82-0x19f;const _0x19f217=a311_0x19f2();let _0x5a91c9=_0x19f217[_0x275a82];return _0x5a91c9;}function a311_0x19f2(){const _0x5c23e7=['952765fUBgwf','8yUNyBD','366759LBAlOp','4661613ZrFBHO','735988MkRsMo','2273210UhWRIq','env','14xapuwW','7GPZvXn','210582eDgCVE','project','2654172OEsyqc','170mYdlUY'];a311_0x19f2=function(){return _0x5c23e7;};return a311_0x19f2();}const a311_0x3d9fad=a311_0x5a91;(function(_0x102fa1,_0x388675){const _0x157e6b=a311_0x5a91,_0x9b4fea=_0x102fa1();while(!![]){try{const _0x2bd773=-parseInt(_0x157e6b(0x1a5))/0x1+parseInt(_0x157e6b(0x1a8))/0x2*(-parseInt(_0x157e6b(0x1a3))/0x3)+parseInt(_0x157e6b(0x19f))/0x4+parseInt(_0x157e6b(0x1a6))/0x5+parseInt(_0x157e6b(0x1aa))/0x6*(-parseInt(_0x157e6b(0x1a9))/0x7)+-parseInt(_0x157e6b(0x1a2))/0x8*(parseInt(_0x157e6b(0x1a4))/0x9)+-parseInt(_0x157e6b(0x1a0))/0xa*(-parseInt(_0x157e6b(0x1a1))/0xb);if(_0x2bd773===_0x388675)break;else _0x9b4fea['push'](_0x9b4fea['shift']());}catch(_0x4ab6c9){_0x9b4fea['push'](_0x9b4fea['shift']());}}}(a311_0x19f2,0x6cd83));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a311_0x11b660,getMultiAppConfigs as a311_0x545fab,getTemplateBaseUrl as a311_0xa4f3e1}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x377308){const _0x163e87=a311_0x5a91,_0x18928e=readRawConfig(_0x377308);return _0x18928e[_0x163e87(0x1a7)]&&typeof _0x18928e[_0x163e87(0x1a7)]==='string'&&initEnv(_0x18928e[_0x163e87(0x1a7)]),_0x18928e;}export function getConfigAppCode(){return a311_0x11b660();}export function getMultiAppConfigs(_0x37066b=a311_0x3d9fad(0x1ab)){return a311_0x545fab(_0x37066b);}export function getTemplateBaseUrl(){return a311_0xa4f3e1();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a312_0x548a(){const _0x5904d3=['number','4183762qJCyua','string','3896484fWwnjb','3hGgeSI','139640DvSUad','7974965CjBvFS','93990yKGsSp','513lNlEOF','49644744palYcE','isFinite','3RaNrKX','40tLemgk','object','511jRBpxj','654154qZGmIs'];a312_0x548a=function(){return _0x5904d3;};return a312_0x548a();}(function(_0x563de3,_0x439ef1){const _0x38a8c3=a312_0x5233,_0x306a06=_0x563de3();while(!![]){try{const _0x284aaf=parseInt(_0x38a8c3(0x142))/0x1*(-parseInt(_0x38a8c3(0x136))/0x2)+-parseInt(_0x38a8c3(0x13b))/0x3*(-parseInt(_0x38a8c3(0x13a))/0x4)+-parseInt(_0x38a8c3(0x13d))/0x5+-parseInt(_0x38a8c3(0x13e))/0x6*(parseInt(_0x38a8c3(0x145))/0x7)+-parseInt(_0x38a8c3(0x13c))/0x8*(-parseInt(_0x38a8c3(0x13f))/0x9)+parseInt(_0x38a8c3(0x143))/0xa*(-parseInt(_0x38a8c3(0x138))/0xb)+parseInt(_0x38a8c3(0x140))/0xc;if(_0x284aaf===_0x439ef1)break;else _0x306a06['push'](_0x306a06['shift']());}catch(_0x50b3ff){_0x306a06['push'](_0x306a06['shift']());}}}(a312_0x548a,0xd32d5));function toFiniteNumber(_0xe6f8c3){const _0xbc848a=a312_0x5233;if(typeof _0xe6f8c3===_0xbc848a(0x137)&&Number[_0xbc848a(0x141)](_0xe6f8c3))return _0xe6f8c3;if(typeof _0xe6f8c3===_0xbc848a(0x139)){const _0xe540bf=_0xe6f8c3['trim']();if(!_0xe540bf)return undefined;const _0x50fba9=Number(_0xe540bf);if(Number[_0xbc848a(0x141)](_0x50fba9))return _0x50fba9;}return undefined;}function a312_0x5233(_0x35dc35,_0x2532d7){_0x35dc35=_0x35dc35-0x136;const _0x548a61=a312_0x548a();let _0x5233f6=_0x548a61[_0x35dc35];return _0x5233f6;}export function normalizeEntityWithIdResponse(_0xa35d19){const _0xed9a72=a312_0x5233,_0x414a06=toFiniteNumber(_0xa35d19);if(_0x414a06!==undefined)return{'id':_0x414a06,'entity':{'id':_0x414a06}};if(!_0xa35d19||typeof _0xa35d19!==_0xed9a72(0x144))return{'id':undefined,'entity':{}};const _0x157e9c={..._0xa35d19},_0x3c8105=toFiniteNumber(_0x157e9c['id']);return _0x3c8105!==undefined&&(_0x157e9c['id']=_0x3c8105),{'id':_0x3c8105,'entity':_0x157e9c};}
|
package/lib/utils/file-utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a313_0x1fca(_0x1027a7,_0x2fe603){_0x1027a7=_0x1027a7-0x145;const _0x14a534=a313_0x14a5();let _0x1fca6d=_0x14a534[_0x1027a7];return _0x1fca6d;}(function(_0xcffa5,_0x2bf96a){const _0x1f43a4=a313_0x1fca,_0x446c52=_0xcffa5();while(!![]){try{const _0x17d7ac=parseInt(_0x1f43a4(0x14e))/0x1*(parseInt(_0x1f43a4(0x150))/0x2)+-parseInt(_0x1f43a4(0x146))/0x3+-parseInt(_0x1f43a4(0x14d))/0x4*(parseInt(_0x1f43a4(0x14f))/0x5)+-parseInt(_0x1f43a4(0x14a))/0x6*(-parseInt(_0x1f43a4(0x147))/0x7)+-parseInt(_0x1f43a4(0x14c))/0x8+parseInt(_0x1f43a4(0x149))/0x9*(-parseInt(_0x1f43a4(0x145))/0xa)+parseInt(_0x1f43a4(0x148))/0xb*(-parseInt(_0x1f43a4(0x14b))/0xc);if(_0x17d7ac===_0x2bf96a)break;else _0x446c52['push'](_0x446c52['shift']());}catch(_0x44b95b){_0x446c52['push'](_0x446c52['shift']());}}}(a313_0x14a5,0x95b81));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x4dd0e8,_0x32ff0c){const _0x49d5af=a313_0x1fca,_0x45f435=statSync(_0x4dd0e8);if(_0x45f435[_0x49d5af(0x151)]()){!existsSync(_0x32ff0c)&&mkdirSync(_0x32ff0c,{'recursive':!![]});const _0x3f7724=readdirSync(_0x4dd0e8);for(const _0x51ed71 of _0x3f7724){await copyDir(join(_0x4dd0e8,_0x51ed71),join(_0x32ff0c,_0x51ed71));}}else copyFileSync(_0x4dd0e8,_0x32ff0c);}export function ensureDir(_0x25a347){!existsSync(_0x25a347)&&mkdirSync(_0x25a347,{'recursive':!![]});}export function pathExists(_0x1fe02a){return existsSync(_0x1fe02a);}function a313_0x14a5(){const _0x19f8a9=['2090792fRvZOj','1332fcvNlT','592089cOivEz','265nlzuMT','4ynjdNL','isDirectory','30SGyREP','80088meMDSR','133IDEjZu','195437Pplbta','470277ErbDIs','139674XgfXbT','372yBNJVW'];a313_0x14a5=function(){return _0x19f8a9;};return a313_0x14a5();}
|
package/lib/utils/guides-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a314_0x838b93=a314_0x1162;(function(_0x3d5d68,_0x35b348){const _0x2ea467=a314_0x1162,_0x514cc8=_0x3d5d68();while(!![]){try{const _0x22be10=parseInt(_0x2ea467(0x195))/0x1+-parseInt(_0x2ea467(0x1a8))/0x2*(-parseInt(_0x2ea467(0x19e))/0x3)+-parseInt(_0x2ea467(0x194))/0x4+parseInt(_0x2ea467(0x1ae))/0x5*(-parseInt(_0x2ea467(0x1b4))/0x6)+parseInt(_0x2ea467(0x19f))/0x7*(parseInt(_0x2ea467(0x197))/0x8)+-parseInt(_0x2ea467(0x1b0))/0x9*(parseInt(_0x2ea467(0x199))/0xa)+parseInt(_0x2ea467(0x1ac))/0xb;if(_0x22be10===_0x35b348)break;else _0x514cc8['push'](_0x514cc8['shift']());}catch(_0x209a4c){_0x514cc8['push'](_0x514cc8['shift']());}}}(a314_0x348e,0xce179));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 _0x58a0cd=a314_0x1162,_0x3edddc=getTemplateBaseUrl();return _0x3edddc+_0x58a0cd(0x1b3);}const CACHE_DIR=join(homedir(),a314_0x838b93(0x196),a314_0x838b93(0x192));export async function fetchGuidesFromCDN(){const _0x1bf3a8=a314_0x838b93,_0x2dab70=getGuidesCdnUrl(),_0x1d1f5d=await fetch(_0x2dab70,{'headers':{'Accept':_0x1bf3a8(0x1a1)}});if(!_0x1d1f5d['ok'])throw new Error(_0x1bf3a8(0x1a6)+_0x1d1f5d[_0x1bf3a8(0x18f)]+'\x20'+_0x1d1f5d[_0x1bf3a8(0x1a4)]);const _0x36490a=await _0x1d1f5d[_0x1bf3a8(0x198)]();if(!_0x36490a[_0x1bf3a8(0x1ab)]||typeof _0x36490a['guides']!==_0x1bf3a8(0x1a0))throw new Error(_0x1bf3a8(0x19d));return _0x36490a;}export function writeGuidesToProject(_0x1a3426,_0x193f0,_0x1bb1dc='.lovrabet/skill/guides',_0x4f3407){const _0x17f427=a314_0x838b93,_0x43b130=join(_0x193f0,_0x1bb1dc);mkdirSync(_0x43b130,{'recursive':!![]});for(const [_0x3aa262,_0x468823]of Object[_0x17f427(0x191)](_0x1a3426['guides'])){let _0x4ce141=_0x468823[_0x17f427(0x1a3)];_0x468823[_0x17f427(0x1ad)]&&(_0x4ce141=appendUpdateTime(_0x4ce141,_0x468823[_0x17f427(0x1ad)])),writeFileSync(join(_0x43b130,_0x3aa262+_0x17f427(0x1aa)),_0x4ce141,_0x17f427(0x19a));}}export function appendUpdateTime(_0x4a4e53,_0x374143){const _0x301c63=a314_0x838b93;return _0x4a4e53=_0x4a4e53[_0x301c63(0x190)](/\n*>更新时间:.*$/m,''),_0x4a4e53[_0x301c63(0x1a2)]()+(_0x301c63(0x1b2)+_0x374143);}function a314_0x1162(_0x3c03dd,_0x462b56){_0x3c03dd=_0x3c03dd-0x18e;const _0x348e17=a314_0x348e();let _0x1162d1=_0x348e17[_0x3c03dd];return _0x1162d1;}export function getSkillTemplate(_0x8af455){const _0xbb8995=a314_0x838b93;return _0x8af455[_0xbb8995(0x1af)]?.['content']||'';}export function appendExtendContents(_0xffd7e6,_0x118e8f,_0x452d3b){const _0xb8ddef=a314_0x838b93,_0x39c92c=[];for(const [,_0xd4761]of Object[_0xb8ddef(0x191)](_0x118e8f['guides'])){_0xd4761[_0xb8ddef(0x1a5)]&&_0x39c92c[_0xb8ddef(0x1a9)](_0xd4761[_0xb8ddef(0x1a5)][_0xb8ddef(0x1a2)]());}if(_0x39c92c[_0xb8ddef(0x1a7)]===0x0)return _0xffd7e6;return _0xffd7e6[_0xb8ddef(0x1a2)]()+'\x0a\x0a'+_0x39c92c[_0xb8ddef(0x1b1)]('\x0a\x0a')+'\x0a';}function a314_0x348e(){const _0x2dbd0f=['application/json','trimEnd','content','statusText','extendContent','CDN\x20request\x20failed:\x20','length','12mDBCFi','push','.md','guides','17107607xVqoGG','lastUpdated','171845oEpZeQ','skillTemplate','9oNDDvM','join','\x0a\x0a>更新时间:','/skills/guides.json','126KYVkmS','map','status','replace','entries','cache','CDN\x20data\x20is\x20missing\x20skillTemplate','6208888aChMLV','343010pDGnLF','.lovrabet','1328olJfce','json','12966830KKdzSE','utf-8','title','path','CDN\x20returned\x20invalid\x20data','824439HOitZp','36589ZKdtny','object'];a314_0x348e=function(){return _0x2dbd0f;};return a314_0x348e();}export function writeSkillFile(_0x4593aa,_0x19b988,_0x27a7a2){const _0x16020e=a314_0x838b93,_0x5ac646=getSkillTemplate(_0x4593aa);if(!_0x5ac646)throw new Error(_0x16020e(0x193));const _0x3bbe70=dirname(_0x19b988);mkdirSync(_0x3bbe70,{'recursive':!![]});let _0x4e07b0=_0x5ac646[_0x16020e(0x190)](/\{\{IDE_NAME\}\}/g,_0x27a7a2);_0x4e07b0=appendExtendContents(_0x4e07b0,_0x4593aa),_0x4593aa['skillTemplate'][_0x16020e(0x1ad)]&&(_0x4e07b0=appendUpdateTime(_0x4e07b0,_0x4593aa[_0x16020e(0x1af)][_0x16020e(0x1ad)])),writeFileSync(_0x19b988,_0x4e07b0,_0x16020e(0x19a));}export async function installGuides(_0x8a9d43){const _0x129168=a314_0x838b93,_0x13eeab=await fetchGuidesFromCDN();return writeGuidesToProject(_0x13eeab,_0x8a9d43),Object['keys'](_0x13eeab[_0x129168(0x1ab)])[_0x129168(0x1a7)];}export function getGuidesSummary(_0x750fd8){const _0x309677=a314_0x838b93;return Object[_0x309677(0x191)](_0x750fd8[_0x309677(0x1ab)])[_0x309677(0x18e)](([_0x59b3e7,_0x47964b])=>({'key':_0x59b3e7,'title':_0x47964b[_0x309677(0x19b)],'path':_0x47964b[_0x309677(0x19c)]}));}
|
package/lib/utils/http-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x37db87,_0x4c22e5){const _0x3a1574=a315_0x51bc,_0x1207df=_0x37db87();while(!![]){try{const _0x3a0b65=-parseInt(_0x3a1574(0xa1))/0x1*(-parseInt(_0x3a1574(0x9b))/0x2)+parseInt(_0x3a1574(0xae))/0x3*(-parseInt(_0x3a1574(0xb4))/0x4)+parseInt(_0x3a1574(0xa6))/0x5*(parseInt(_0x3a1574(0xa4))/0x6)+-parseInt(_0x3a1574(0xb5))/0x7*(-parseInt(_0x3a1574(0xa3))/0x8)+parseInt(_0x3a1574(0xa2))/0x9+parseInt(_0x3a1574(0xa0))/0xa*(parseInt(_0x3a1574(0x9a))/0xb)+-parseInt(_0x3a1574(0xab))/0xc*(parseInt(_0x3a1574(0xad))/0xd);if(_0x3a0b65===_0x4c22e5)break;else _0x1207df['push'](_0x1207df['shift']());}catch(_0x34b3fb){_0x1207df['push'](_0x1207df['shift']());}}}(a315_0x4877,0x95116));function a315_0x4877(){const _0x26c072=['includes','2860yqlgLo','109051fkDMIJ','1514205pqbtfn','5566816kQFRRz','1649178gvNxxS','message','5rEKiNz','application/json','text','ENOTFOUND','Request\x20failed','48nbQUoU','*\x20Request\x20failed;\x20retry\x20','2002663IFKHNX','3BfjVLY','AbortError','signal','headers','TypeError','get','4780772cMPTkj','7ZcOVIJ','fetch','statusText','ECONNRESET','19987ykmVXn','14AIKdYC','\x20in\x20','ms...','log'];a315_0x4877=function(){return _0x26c072;};return a315_0x4877();}export async function httpRequest(_0x2e14a6,_0x475dbf={}){const _0x5bb096=a315_0x51bc,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x475dbf;let _0x2f7f1e=null;for(let _0x30ca11=0x0;_0x30ca11<=retries;_0x30ca11++){try{const _0x18286b=new AbortController(),_0x591fd3=setTimeout(()=>_0x18286b['abort'](),timeout),_0xf4e739=await fetch(_0x2e14a6,{'headers':headers,'signal':_0x18286b[_0x5bb096(0xb0)]});clearTimeout(_0x591fd3);let _0xe36f50;const _0x15f7e7=_0xf4e739['headers'][_0x5bb096(0xb3)]('content-type');return _0x15f7e7?.[_0x5bb096(0x9f)](_0x5bb096(0xa7))?_0xe36f50=await _0xf4e739['json']():_0xe36f50=await _0xf4e739[_0x5bb096(0xa8)](),{'ok':_0xf4e739['ok'],'status':_0xf4e739['status'],'statusText':_0xf4e739[_0x5bb096(0x98)],'data':_0xe36f50,'headers':_0xf4e739[_0x5bb096(0xb1)],'url':_0xf4e739['url'],'text':()=>_0xf4e739[_0x5bb096(0xa8)]()};}catch(_0x1637c9){_0x2f7f1e=_0x1637c9 instanceof Error?_0x1637c9:new Error(String(_0x1637c9));if(_0x30ca11===retries)break;if(shouldRetry(_0x1637c9)){console[_0x5bb096(0x9e)](_0x5bb096(0xac)+(_0x30ca11+0x1)+_0x5bb096(0x9c)+retryDelay+_0x5bb096(0x9d)),await sleep(retryDelay);continue;}else break;}}throw _0x2f7f1e||new Error(_0x5bb096(0xaa));}function shouldRetry(_0xf4736a){const _0x3daccb=a315_0x51bc;if(_0xf4736a instanceof Error){if(_0xf4736a['name']===_0x3daccb(0xaf))return![];if(_0xf4736a['name']===_0x3daccb(0xb2)&&_0xf4736a['message']['includes'](_0x3daccb(0xb6)))return!![];if(_0xf4736a['message']['includes'](_0x3daccb(0x99)))return!![];if(_0xf4736a[_0x3daccb(0xa5)][_0x3daccb(0x9f)](_0x3daccb(0xa9)))return![];}return![];}function a315_0x51bc(_0x2cf996,_0x241be7){_0x2cf996=_0x2cf996-0x98;const _0x4877ef=a315_0x4877();let _0x51bc21=_0x4877ef[_0x2cf996];return _0x51bc21;}function sleep(_0xb28c6b){return new Promise(_0x299bb1=>setTimeout(_0x299bb1,_0xb28c6b));}export function validateUrl(_0xd1705){try{return new URL(_0xd1705),!![];}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3ba22c,_0x183e34){const _0x2e817c=a316_0x33a3,_0x3cb4b8=_0x3ba22c();while(!![]){try{const _0x3ca190=-parseInt(_0x2e817c(0x8b))/0x1+-parseInt(_0x2e817c(0x99))/0x2*(-parseInt(_0x2e817c(0x8a))/0x3)+-parseInt(_0x2e817c(0x89))/0x4*(parseInt(_0x2e817c(0x91))/0x5)+parseInt(_0x2e817c(0x88))/0x6*(-parseInt(_0x2e817c(0x90))/0x7)+parseInt(_0x2e817c(0x96))/0x8*(parseInt(_0x2e817c(0x93))/0x9)+-parseInt(_0x2e817c(0x8e))/0xa+parseInt(_0x2e817c(0x8d))/0xb*(parseInt(_0x2e817c(0x92))/0xc);if(_0x3ca190===_0x183e34)break;else _0x3cb4b8['push'](_0x3cb4b8['shift']());}catch(_0x25f8c7){_0x3cb4b8['push'](_0x3cb4b8['shift']());}}}(a316_0x1f8f,0xdbcbf));function a316_0x1f8f(){const _0x2a88ea=['1388495cXuDQo','isTTY','2830366mwUyvA','775990FpRpkc','setRawMode','2996637CVMrGV','63475wOkbHJ','192JOQhIc','96696iCrmEx','nonInteractive','stdout','200SLkIqS','stdin','isRaw','2eqVCAP','true','24TSgdAy','508zHEQbk','3916542jutvyz'];a316_0x1f8f=function(){return _0x2a88ea;};return a316_0x1f8f();}function env(_0x55f64d){return process.env[`RABETBASE_${_0x55f64d}`]||process.env[`LOVRABET_${_0x55f64d}`]||undefined;}function a316_0x33a3(_0x2d5a0c,_0x20c40c){_0x2d5a0c=_0x2d5a0c-0x88;const _0x1f8f3f=a316_0x1f8f();let _0x33a3ec=_0x1f8f3f[_0x2d5a0c];return _0x33a3ec;}export function isNonInteractive(_0x3628ee){const _0x540c77=a316_0x33a3;return!!(_0x3628ee[_0x540c77(0x94)]||_0x3628ee['ci']||env('CI')===_0x540c77(0x9a)||process.env.CI===_0x540c77(0x9a)||!process[_0x540c77(0x95)][_0x540c77(0x8c)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x29b455=a316_0x33a3;if(!process[_0x29b455(0x97)][_0x29b455(0x8c)])return![];try{const _0x22ce66=process[_0x29b455(0x97)][_0x29b455(0x98)];return process[_0x29b455(0x97)][_0x29b455(0x8f)](!![]),process['stdin'][_0x29b455(0x8f)](_0x22ce66??![]),!![];}catch{return![];}}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a317_0x519f7a=a317_0x1b6d;(function(_0x5684df,_0x504c00){const _0x567704=a317_0x1b6d,_0x44acc7=_0x5684df();while(!![]){try{const _0x568fcf=parseInt(_0x567704(0xcb))/0x1*(-parseInt(_0x567704(0xd6))/0x2)+-parseInt(_0x567704(0xbf))/0x3+parseInt(_0x567704(0xe6))/0x4*(parseInt(_0x567704(0xf1))/0x5)+parseInt(_0x567704(0xbd))/0x6+-parseInt(_0x567704(0xc0))/0x7*(-parseInt(_0x567704(0xc6))/0x8)+parseInt(_0x567704(0xdd))/0x9+-parseInt(_0x567704(0xdb))/0xa;if(_0x568fcf===_0x504c00)break;else _0x44acc7['push'](_0x44acc7['shift']());}catch(_0x49e611){_0x44acc7['push'](_0x44acc7['shift']());}}}(a317_0x4f04,0x5b010));import a317_0x14c810 from'winston';import a317_0x59d307 from'node:fs';function a317_0x4f04(){const _0x56865a=['.lovrabet.log','message','level','4562680ctyDPd','duration','split','errors','format','1MbUysi','clearLogs','readFileSync','info','printf','clear','stringify','mkdirSync','getWinstonInstance','logFilePath','setRawCommand','1176478IyjAKm','Failed:\x20','join','initWinstonLogger','setLogPath','10019830NdPXuj','timestamp','2279133ngImEW','log','now','details','Starting:\x20','rawCommand','dirname','Failed\x20to\x20read\x20logs:','blue','8VUcnYZ','yellow','currentRawCommand','error','addColors','green','existsSync','readLogs','writeFileSync','winstonLogger','utf8','1081135xEZoAM','logTask','warn','4320498FoSNgN','success','39405CDdDAz','7qbPWbX','Completed:\x20','createLogger'];a317_0x4f04=function(){return _0x56865a;};return a317_0x4f04();}function a317_0x1b6d(_0x117441,_0x5df11b){_0x117441=_0x117441-0xbc;const _0x4f0419=a317_0x4f04();let _0x1b6dc7=_0x4f0419[_0x117441];return _0x1b6dc7;}import a317_0x2df783 from'node:path';class Logger{['winstonLogger'];['logFilePath'];[a317_0x519f7a(0xe8)]='';constructor(){const _0x38b648=a317_0x519f7a;this[_0x38b648(0xd4)]='';}[a317_0x519f7a(0xd5)](_0x1d242d){const _0x192c98=a317_0x519f7a;this[_0x192c98(0xe8)]=_0x1d242d;}[a317_0x519f7a(0xd9)](){const _0x2d6f2f=a317_0x519f7a,_0x473e77=a317_0x2df783[_0x2d6f2f(0xe3)](this['logFilePath']);!a317_0x59d307[_0x2d6f2f(0xec)](_0x473e77)&&a317_0x59d307[_0x2d6f2f(0xd2)](_0x473e77,{'recursive':!![]});const _0x2e12ea=a317_0x14c810[_0x2d6f2f(0xca)]['combine'](a317_0x14c810['format']['timestamp'](),a317_0x14c810[_0x2d6f2f(0xca)][_0x2d6f2f(0xc9)]({'stack':!![]}),a317_0x14c810[_0x2d6f2f(0xca)][_0x2d6f2f(0xcf)](_0x4b45a7=>{const _0x413410=_0x2d6f2f,_0x4b516e={'timestamp':_0x4b45a7[_0x413410(0xdc)]||new Date()['toISOString'](),'level':_0x4b45a7[_0x413410(0xc5)]||'info','command':_0x4b45a7['command']||'unknown','rawCommand':_0x4b45a7[_0x413410(0xe2)]||this[_0x413410(0xe8)]||undefined,'message':_0x4b45a7[_0x413410(0xc4)]||'','duration':_0x4b45a7[_0x413410(0xc7)]||undefined,'details':_0x4b45a7[_0x413410(0xe0)]||undefined};return JSON[_0x413410(0xd1)](_0x4b516e);}));this['winstonLogger']=a317_0x14c810[_0x2d6f2f(0xc2)]({'level':_0x2d6f2f(0xce),'format':_0x2e12ea,'transports':[new a317_0x14c810['transports']['File']({'filename':this['logFilePath'],'level':_0x2d6f2f(0xce)})],'silent':![]}),a317_0x14c810[_0x2d6f2f(0xea)]({'success':_0x2d6f2f(0xeb),'error':'red','warn':_0x2d6f2f(0xe7),'info':_0x2d6f2f(0xe5)});}[a317_0x519f7a(0xda)](_0x491cd4){const _0x38ae19=a317_0x519f7a;this[_0x38ae19(0xd4)]=a317_0x2df783[_0x38ae19(0xd8)](_0x491cd4,_0x38ae19(0xc3)),this[_0x38ae19(0xef)]&&this[_0x38ae19(0xef)][_0x38ae19(0xd0)](),this['initWinstonLogger']();}[a317_0x519f7a(0xce)](_0x14ef51,_0x12d2f0,_0x434ed9){const _0x4b5fc2=a317_0x519f7a;if(!this[_0x4b5fc2(0xd4)]||!this[_0x4b5fc2(0xef)])return;this[_0x4b5fc2(0xef)][_0x4b5fc2(0xce)](_0x12d2f0,{'command':_0x14ef51,'details':_0x434ed9});}[a317_0x519f7a(0xbe)](_0x52fb4b,_0x2f2313,_0x574cdf,_0x46f3b8){const _0x4020e7=a317_0x519f7a;if(!this[_0x4020e7(0xd4)]||!this['winstonLogger'])return;this[_0x4020e7(0xef)][_0x4020e7(0xde)](_0x4020e7(0xce),_0x2f2313,{'level':'success','command':_0x52fb4b,'duration':_0x574cdf,'details':_0x46f3b8});}['error'](_0x1e0ad5,_0x1fc240,_0x364acb){const _0x53304d=a317_0x519f7a;if(!this[_0x53304d(0xd4)]||!this[_0x53304d(0xef)])return;this[_0x53304d(0xef)]['error'](_0x1fc240,{'command':_0x1e0ad5,'details':_0x364acb});}[a317_0x519f7a(0xbc)](_0x23e07b,_0x4cefeb,_0x13e08e){const _0x89e85c=a317_0x519f7a;if(!this[_0x89e85c(0xd4)]||!this['winstonLogger'])return;this[_0x89e85c(0xef)][_0x89e85c(0xbc)](_0x4cefeb,{'command':_0x23e07b,'details':_0x13e08e});}async[a317_0x519f7a(0xf2)](_0x1034ef,_0x747ee8,_0x1a492d){const _0x5d0a04=a317_0x519f7a,_0x4d881f=Date['now']();this['info'](_0x1034ef,_0x5d0a04(0xe1)+_0x747ee8);try{const _0x9e8d76=await _0x1a492d(),_0x47e7c5=Date[_0x5d0a04(0xdf)]()-_0x4d881f;return this[_0x5d0a04(0xbe)](_0x1034ef,_0x5d0a04(0xc1)+_0x747ee8,_0x47e7c5),_0x9e8d76;}catch(_0x328d1d){const _0x5d2e36=Date[_0x5d0a04(0xdf)]()-_0x4d881f;this[_0x5d0a04(0xe9)](_0x1034ef,_0x5d0a04(0xd7)+_0x747ee8,{'error':_0x328d1d instanceof Error?_0x328d1d[_0x5d0a04(0xc4)]:String(_0x328d1d),'duration':_0x5d2e36});throw _0x328d1d;}}[a317_0x519f7a(0xed)](){const _0x54acfd=a317_0x519f7a;try{if(!a317_0x59d307[_0x54acfd(0xec)](this['logFilePath']))return[];const _0x45c53d=a317_0x59d307[_0x54acfd(0xcd)](this['logFilePath'],_0x54acfd(0xf0));return _0x45c53d[_0x54acfd(0xc8)]('\x0a')['filter'](_0x43e6d0=>_0x43e6d0['trim']())['map'](_0x229c8e=>JSON['parse'](_0x229c8e));}catch(_0x2adb69){return console[_0x54acfd(0xbc)](_0x54acfd(0xe4),_0x2adb69),[];}}[a317_0x519f7a(0xcc)](){const _0xdef51=a317_0x519f7a;try{a317_0x59d307['existsSync'](this['logFilePath'])&&a317_0x59d307[_0xdef51(0xee)](this[_0xdef51(0xd4)],'','utf8');}catch(_0x11921c){console[_0xdef51(0xbc)]('Failed\x20to\x20clear\x20logs:',_0x11921c);}}[a317_0x519f7a(0xd3)](){return this['winstonLogger'];}}export const logger=new Logger();
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x49b064,_0x2be338){const _0x4355a5=a318_0x99a7,_0x57fd8f=_0x49b064();while(!![]){try{const _0x1e16c1=-parseInt(_0x4355a5(0x9c))/0x1*(-parseInt(_0x4355a5(0x9d))/0x2)+-parseInt(_0x4355a5(0x96))/0x3+parseInt(_0x4355a5(0xa3))/0x4*(parseInt(_0x4355a5(0xa1))/0x5)+-parseInt(_0x4355a5(0xa0))/0x6*(parseInt(_0x4355a5(0x98))/0x7)+-parseInt(_0x4355a5(0x94))/0x8*(-parseInt(_0x4355a5(0xa2))/0x9)+-parseInt(_0x4355a5(0x95))/0xa*(parseInt(_0x4355a5(0x9e))/0xb)+parseInt(_0x4355a5(0x9a))/0xc*(parseInt(_0x4355a5(0x93))/0xd);if(_0x1e16c1===_0x2be338)break;else _0x57fd8f['push'](_0x57fd8f['shift']());}catch(_0x3670a4){_0x57fd8f['push'](_0x57fd8f['shift']());}}}(a318_0x1b50,0x297fc));import{CliErrors}from'../errors.js';function a318_0x1b50(){const _0x1a2ad4=['--params\x20must\x20be\x20a\x20JSON\x20object','29851BJdtAK','6rDgGDp','28875qrwuSq','object','24rLWOVy','4250rQwYtD','151677nTzBsw','924cSxVvf','Invalid\x20JSON\x20for\x20--params:\x20','parse','13ffKgLt','16OqovHF','290BxhGXI','785529LqAnVC','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','276178KsRFlc','validation','4153860MBjhMY'];a318_0x1b50=function(){return _0x1a2ad4;};return a318_0x1b50();}function a318_0x99a7(_0x37570e,_0x5a1458){_0x37570e=_0x37570e-0x92;const _0x1b501d=a318_0x1b50();let _0x99a7b8=_0x1b501d[_0x37570e];return _0x99a7b8;}export function parseJsonParams(_0x3c1bb7){const _0x5b4482=a318_0x99a7;if(!_0x3c1bb7)return undefined;let _0x18d282;try{_0x18d282=JSON[_0x5b4482(0x92)](_0x3c1bb7);}catch{throw CliErrors[_0x5b4482(0x99)](_0x5b4482(0xa4)+_0x3c1bb7);}if(!_0x18d282||typeof _0x18d282!==_0x5b4482(0x9f)||Array['isArray'](_0x18d282))throw CliErrors[_0x5b4482(0x99)](_0x5b4482(0x9b),_0x5b4482(0x97));return _0x18d282;}
|
package/lib/utils/platform.d.ts
CHANGED
|
@@ -2,17 +2,18 @@
|
|
|
2
2
|
* Platform-specific utilities for cross-platform CLI execution.
|
|
3
3
|
*
|
|
4
4
|
* On Windows, npm-installed CLIs (npm, npx, pnpm, yarn) are .cmd batch
|
|
5
|
-
* wrappers.
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* wrappers. Execa resolves these wrappers cross-platform when given the
|
|
6
|
+
* unmodified command name. Native spawn/spawnSync callers must not assume that
|
|
7
|
+
* appending `.cmd` makes a batch wrapper directly executable with shell disabled.
|
|
8
8
|
*
|
|
9
9
|
* NOTE: Native executables like bun.exe do NOT need this treatment.
|
|
10
10
|
* Only use resolveNpmBin for npm-ecosystem batch wrappers.
|
|
11
11
|
*/
|
|
12
12
|
export declare const isWindows: boolean;
|
|
13
13
|
/**
|
|
14
|
-
* Resolve the
|
|
15
|
-
*
|
|
14
|
+
* Resolve the historical executable name used by existing Execa callers.
|
|
15
|
+
* New cross-platform calls should prefer passing the unmodified command name
|
|
16
|
+
* directly to Execa. Do not use this helper with native spawn/spawnSync.
|
|
16
17
|
*
|
|
17
18
|
* @example
|
|
18
19
|
* resolveNpmBin("npx") // "npx" on macOS/Linux, "npx.cmd" on Windows
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a319_0x2c7c54=a319_0xfdd5;(function(_0x14ece9,_0x16c01c){const _0x2ded6d=a319_0xfdd5,_0x501f42=_0x14ece9();while(!![]){try{const _0x4510cb=parseInt(_0x2ded6d(0x9c))/0x1+-parseInt(_0x2ded6d(0x93))/0x2*(parseInt(_0x2ded6d(0x95))/0x3)+parseInt(_0x2ded6d(0x9d))/0x4*(parseInt(_0x2ded6d(0x9b))/0x5)+parseInt(_0x2ded6d(0x9f))/0x6*(-parseInt(_0x2ded6d(0x91))/0x7)+parseInt(_0x2ded6d(0x9e))/0x8*(-parseInt(_0x2ded6d(0x97))/0x9)+parseInt(_0x2ded6d(0x90))/0xa*(-parseInt(_0x2ded6d(0x9a))/0xb)+-parseInt(_0x2ded6d(0x99))/0xc*(-parseInt(_0x2ded6d(0x94))/0xd);if(_0x4510cb===_0x16c01c)break;else _0x501f42['push'](_0x501f42['shift']());}catch(_0x1c5ede){_0x501f42['push'](_0x501f42['shift']());}}}(a319_0x33c6,0x5c33d));function a319_0x33c6(){const _0x3f45ca=['win32','30812kUZkxA','22552127tNJoOr','123bJVjeN','platform','297eLDOMg','.cmd','12zuwRvh','5914018tAPPUw','1416155cJPqyM','356091rsuHvk','4ApTHQp','87792YEISlD','253644vgQLZk','10JIzdVR','77XfCYGA'];a319_0x33c6=function(){return _0x3f45ca;};return a319_0x33c6();}function a319_0xfdd5(_0x1d1dd4,_0x172436){_0x1d1dd4=_0x1d1dd4-0x90;const _0x33c632=a319_0x33c6();let _0xfdd593=_0x33c632[_0x1d1dd4];return _0xfdd593;}export const isWindows=process[a319_0x2c7c54(0x96)]===a319_0x2c7c54(0x92);export function resolveNpmBin(_0x440c1c){const _0x3b0626=a319_0x2c7c54;return isWindows?_0x440c1c+_0x3b0626(0x98):_0x440c1c;}
|
package/lib/utils/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function sleep(
|
|
1
|
+
export function sleep(_0x5c3570){return new Promise(_0x379d6e=>setTimeout(_0x379d6e,_0x5c3570));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a321_0x103ba7=a321_0x2bb8;function a321_0x4732(){const _0x39bd8e=['includes','getMinutes','push','default','join','tableName','552951PHHtCM','processFile','pad','endsWith','api','alias','.tpl','.tsx','mkdir','113409mCivWm','isFile','map','968AzMrPC','alias:\x20\x22','replaceApiContent','Starting\x20template\x20content\x20replacement','utf8','toISOString','.md','padStart','2170640ZruLWF','writeFile','\x20},','copyFile','template','\x0a\x20\x20\x20\x20{\x20','3823116CJsmHH','processTemplate','getFullYear','replaceContent','toLowerCase','readFile','4930962uUriAS','message','.jsx','info','name:\x20\x22','charAt','getMonth','error','toUpperCase','slice','name','replace','3vHclKn','10CspMOI','promises','getDate','13201293AlBmWJ','toComponentName','toDisplayTitle','pop','readdir','processDirectory','4408432ReBqXC','now','split','Template\x20content\x20replacement\x20failed'];a321_0x4732=function(){return _0x39bd8e;};return a321_0x4732();}(function(_0x304b6f,_0x58371d){const _0x3321fd=a321_0x2bb8,_0x4df5d9=_0x304b6f();while(!![]){try{const _0x533d53=-parseInt(_0x3321fd(0x190))/0x1+parseInt(_0x3321fd(0x1aa))/0x2+parseInt(_0x3321fd(0x17c))/0x3*(parseInt(_0x3321fd(0x186))/0x4)+parseInt(_0x3321fd(0x17d))/0x5*(-parseInt(_0x3321fd(0x1b0))/0x6)+parseInt(_0x3321fd(0x180))/0x7+parseInt(_0x3321fd(0x19c))/0x8*(-parseInt(_0x3321fd(0x199))/0x9)+-parseInt(_0x3321fd(0x1a4))/0xa;if(_0x533d53===_0x58371d)break;else _0x4df5d9['push'](_0x4df5d9['shift']());}catch(_0x355359){_0x4df5d9['push'](_0x4df5d9['shift']());}}}(a321_0x4732,0xeaa97));import a321_0x2d3e33 from'node:fs';import a321_0x5f7852 from'node:path';import{logger}from'../utils/logger.js';function a321_0x2bb8(_0x66428,_0x4d3449){_0x66428=_0x66428-0x175;const _0x47328e=a321_0x4732();let _0x2bb8b7=_0x47328e[_0x66428];return _0x2bb8b7;}import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a321_0x103ba7(0x192)](_0x240fe7){const _0x2a062c=a321_0x103ba7;return String(_0x240fe7)[_0x2a062c(0x1a3)](0x2,'0');}static['formatLocalTimestamp'](_0x290364){const _0x52c6e0=a321_0x103ba7,_0x1301ad=_0x290364[_0x52c6e0(0x1ac)](),_0xe8c5ec=this[_0x52c6e0(0x192)](_0x290364[_0x52c6e0(0x176)]()+0x1),_0x10fdd1=this['pad'](_0x290364[_0x52c6e0(0x17f)]()),_0x13df2e=this[_0x52c6e0(0x192)](_0x290364['getHours']()),_0x174478=this[_0x52c6e0(0x192)](_0x290364[_0x52c6e0(0x18b)]()),_0x4b7801=this[_0x52c6e0(0x192)](_0x290364['getSeconds']());return{'createdAt':_0x1301ad+'-'+_0xe8c5ec+'-'+_0x10fdd1+'\x20'+_0x13df2e+':'+_0x174478+':'+_0x4b7801,'createdDate':_0x1301ad+'-'+_0xe8c5ec+'-'+_0x10fdd1,'createdTime':_0x13df2e+':'+_0x174478+':'+_0x4b7801};}static['toComponentName'](_0x592ab8){const _0x3ea818=a321_0x103ba7,_0x201903=_0x592ab8[_0x3ea818(0x188)]('/')[_0x3ea818(0x183)]()||_0x592ab8;return _0x201903[_0x3ea818(0x188)]('-')[_0x3ea818(0x19b)](_0x2d7dc1=>_0x2d7dc1[_0x3ea818(0x175)](0x0)[_0x3ea818(0x178)]()+_0x2d7dc1[_0x3ea818(0x179)](0x1)[_0x3ea818(0x1ae)]())['join']('');}static[a321_0x103ba7(0x182)](_0x12a3c4){const _0x3b0a76=a321_0x103ba7,_0x3683b7=_0x12a3c4['split']('/')[_0x3b0a76(0x183)]()||_0x12a3c4;return _0x3683b7['split']('-')[_0x3b0a76(0x19b)](_0x276026=>_0x276026[_0x3b0a76(0x175)](0x0)[_0x3b0a76(0x178)]()+_0x276026[_0x3b0a76(0x179)](0x1)['toLowerCase']())[_0x3b0a76(0x18e)]('\x20');}static[a321_0x103ba7(0x1ad)](_0x296344,_0x5a619a,_0x252606){const _0x588452=a321_0x103ba7,_0x334f08=this[_0x588452(0x181)](_0x5a619a),_0x462d5c=this[_0x588452(0x182)](_0x5a619a),{createdAt:_0x13386d,createdDate:_0x4d4586,createdTime:_0x53a03a}=this['formatLocalTimestamp'](new Date());let _0x4f57b2=_0x296344[_0x588452(0x17b)](/\{CliVersion\}/g,CLI_VERSION)[_0x588452(0x17b)](/\{ComponentName\}/g,_0x334f08)['replace'](/\{DisplayTitle\}/g,_0x462d5c)[_0x588452(0x17b)](/\{PageName\}/g,_0x5a619a)['replace'](/\{TemplateName\}/g,_0x252606)[_0x588452(0x17b)](/\{CreatedAt\}/g,_0x13386d)[_0x588452(0x17b)](/\{CreatedDate\}/g,_0x4d4586)['replace'](/\{CreatedTime\}/g,_0x53a03a);return _0x4f57b2;}static[a321_0x103ba7(0x19e)](_0x2fbe7c,_0xa399f7,_0x267790,_0x75b11a,_0x2022c0,_0xf4c14f,_0x1d317e,_0x14ac72){const _0x2fa59a=a321_0x103ba7,_0x4cdefc=new Date(),_0x4be397=_0x4cdefc[_0x2fa59a(0x1a1)](),_0x13db78=_0x267790[_0x2fa59a(0x19b)](_0x4dc047=>{const _0x1e8dec=_0x2fa59a,_0x4aaeab=['datasetCode:\x20\x22'+_0x4dc047['datasetCode']+'\x22','tableName:\x20\x22'+_0x4dc047[_0x1e8dec(0x18f)]+'\x22',_0x1e8dec(0x1b4)+_0x4dc047[_0x1e8dec(0x17a)]+'\x22'];return _0x4dc047[_0x1e8dec(0x195)]&&_0x4aaeab[_0x1e8dec(0x18c)](_0x1e8dec(0x19d)+_0x4dc047[_0x1e8dec(0x195)]+'\x22'),_0x1e8dec(0x1a9)+_0x4aaeab['join'](',\x20')+_0x1e8dec(0x1a6);})[_0x2fa59a(0x18e)](''),_0x95a461=_0x75b11a||_0x267790[0x0]?.[_0x2fa59a(0x195)]||'YourModel';let _0x2e88f3=_0x2fbe7c[_0x2fa59a(0x17b)](/\{AppCode\}/g,_0xa399f7)['replace'](/\{ModelConfigs\}/g,_0x13db78)[_0x2fa59a(0x17b)](/\{ExampleModelName\}/g,_0x95a461)['replace'](/\{ApiFileName\}/g,_0x2022c0||_0x2fa59a(0x194))[_0x2fa59a(0x17b)](/\{ConfigName\}/g,_0xf4c14f||_0x2fa59a(0x18d))[_0x2fa59a(0x17b)](/\{ClientConfigParam\}/g,_0x1d317e||'')['replace'](/\{VarPrefix\}/g,_0x14ac72||'LOVRABET')['replace'](/\{CreatedAt\}/g,_0x4be397);return _0x2e88f3;}static async[a321_0x103ba7(0x1ab)](_0x35cae2,_0x5d8e9a,_0x59f080,_0x53ea14,_0x4ffffe=!![]){const _0xad09d2=a321_0x103ba7,_0x261fed=Date['now']();try{_0x4ffffe&&logger[_0xad09d2(0x1b3)](_0xad09d2(0x1a8),_0xad09d2(0x19f),{'templatePath':_0x35cae2,'targetPath':_0x5d8e9a,'pageName':_0x59f080,'templateName':_0x53ea14});await a321_0x2d3e33['promises'][_0xad09d2(0x198)](_0x5d8e9a,{'recursive':!![]}),await this[_0xad09d2(0x185)](_0x35cae2,_0x5d8e9a,_0x59f080,_0x53ea14);if(_0x4ffffe){const _0x576742=Date[_0xad09d2(0x187)]()-_0x261fed;logger['success'](_0xad09d2(0x1a8),'Template\x20content\x20replacement\x20completed',_0x576742,{'pageName':_0x59f080,'templateName':_0x53ea14});}}catch(_0x187b19){if(_0x4ffffe){const _0x4ab838=Date['now']()-_0x261fed;logger[_0xad09d2(0x177)](_0xad09d2(0x1a8),_0xad09d2(0x189),{'templatePath':_0x35cae2,'targetPath':_0x5d8e9a,'pageName':_0x59f080,'templateName':_0x53ea14,'error':_0x187b19 instanceof Error?_0x187b19[_0xad09d2(0x1b1)]:String(_0x187b19),'duration':_0x4ab838});}throw _0x187b19;}}static async[a321_0x103ba7(0x185)](_0x3686d1,_0x2ff0c8,_0xe7abf6,_0x21f30e){const _0x3e3c3e=a321_0x103ba7,_0x3c1c1a=await a321_0x2d3e33['promises'][_0x3e3c3e(0x184)](_0x3686d1,{'withFileTypes':!![]});for(const _0x169733 of _0x3c1c1a){const _0x1b8758=a321_0x5f7852[_0x3e3c3e(0x18e)](_0x3686d1,_0x169733[_0x3e3c3e(0x17a)]);let _0x5c8083=a321_0x5f7852[_0x3e3c3e(0x18e)](_0x2ff0c8,_0x169733['name']);_0x169733[_0x3e3c3e(0x17a)][_0x3e3c3e(0x193)](_0x3e3c3e(0x196))&&(_0x5c8083=a321_0x5f7852[_0x3e3c3e(0x18e)](_0x2ff0c8,_0x169733[_0x3e3c3e(0x17a)]['replace'](/\.tpl$/,'')));if(_0x169733['isDirectory']())await a321_0x2d3e33[_0x3e3c3e(0x17e)]['mkdir'](_0x5c8083,{'recursive':!![]}),await this[_0x3e3c3e(0x185)](_0x1b8758,_0x5c8083,_0xe7abf6,_0x21f30e);else _0x169733[_0x3e3c3e(0x19a)]()&&await this[_0x3e3c3e(0x191)](_0x1b8758,_0x5c8083,_0xe7abf6,_0x21f30e);}}static async[a321_0x103ba7(0x191)](_0x33c31f,_0x3c13b2,_0x36b710,_0x12061f){const _0x592315=a321_0x103ba7,_0x5781f1=a321_0x5f7852['extname'](_0x33c31f)[_0x592315(0x1ae)]();_0x33c31f[_0x592315(0x193)](_0x592315(0x196))&&(_0x3c13b2=_0x3c13b2[_0x592315(0x17b)](/\.tpl$/,''));const _0x5e7900=[_0x592315(0x197),'.ts',_0x592315(0x1b2),'.js','.json',_0x592315(0x1a2),'.css','.scss',_0x592315(0x196)];if(_0x5e7900[_0x592315(0x18a)](_0x5781f1)||_0x33c31f[_0x592315(0x193)](_0x592315(0x196))){const _0x346659=await a321_0x2d3e33['promises'][_0x592315(0x1af)](_0x33c31f,_0x592315(0x1a0)),_0x10e5d0=this[_0x592315(0x1ad)](_0x346659,_0x36b710,_0x12061f);await a321_0x2d3e33['promises'][_0x592315(0x1a5)](_0x3c13b2,_0x10e5d0,_0x592315(0x1a0));}else await a321_0x2d3e33[_0x592315(0x17e)][_0x592315(0x1a7)](_0x33c31f,_0x3c13b2);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a322_0x177b(){const _0x2b5a9b=['stableVersion','3967250RDZSQe','7110770dQmSia','.cache','/v/','checkedAt','834292zsamyL','lastNotifiedVersion','https://www.npmjs.com/package/','trim','gte','toLowerCase',',\x20run:\x20','valid','8WoJiiM','2280645SgOQHz','object','\x20update','parse','yes','\x20available,\x20current\x20','number','update-check.json','true','utf8','lastNotifiedAt','rabetbase-cli','116WcQuvD','latest','194796HRdPbO','stringify','102445QYkBZz','3219SOtRtD','138UqWmGX'];a322_0x177b=function(){return _0x2b5a9b;};return a322_0x177b();}(function(_0xa051e2,_0x2a8ea8){const _0x22a128=a322_0x3200,_0x2988e3=_0xa051e2();while(!![]){try{const _0x4ba41c=-parseInt(_0x22a128(0x198))/0x1+parseInt(_0x22a128(0x1a3))/0x2+-parseInt(_0x22a128(0x19b))/0x3*(-parseInt(_0x22a128(0x196))/0x4)+parseInt(_0x22a128(0x19a))/0x5*(parseInt(_0x22a128(0x19c))/0x6)+parseInt(_0x22a128(0x19e))/0x7+parseInt(_0x22a128(0x1ab))/0x8*(-parseInt(_0x22a128(0x1ac))/0x9)+-parseInt(_0x22a128(0x19f))/0xa;if(_0x4ba41c===_0x2a8ea8)break;else _0x2988e3['push'](_0x2988e3['shift']());}catch(_0x5e1b5c){_0x2988e3['push'](_0x2988e3['shift']());}}}(a322_0x177b,0x4fd46));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a322_0x3297e4 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';function a322_0x3200(_0x250c5f,_0x515626){_0x250c5f=_0x250c5f-0x190;const _0x177b41=a322_0x177b();let _0x320059=_0x177b41[_0x250c5f];return _0x320059;}const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x3d8a91=a322_0x3200,_0x427cf3=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x3d8a91(0x1a6)]()[_0x3d8a91(0x1a8)]();return _0x427cf3==='1'||_0x427cf3===_0x3d8a91(0x192)||_0x427cf3===_0x3d8a91(0x1b0);}function cacheRoot(){const _0x3882f1=a322_0x3200;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x3882f1(0x1a0));}export function getUpdateNoticeCachePath(){const _0x4e99cf=a322_0x3200;return join(cacheRoot(),_0x4e99cf(0x195),_0x4e99cf(0x191));}async function readUpdateNoticeCache(){const _0x2d9e98=a322_0x3200;try{const _0x8826b8=await readFile(getUpdateNoticeCachePath(),_0x2d9e98(0x193)),_0x5d11e6=JSON[_0x2d9e98(0x1af)](_0x8826b8);if(!_0x5d11e6||typeof _0x5d11e6!==_0x2d9e98(0x1ad))return{};return _0x5d11e6;}catch{return{};}}async function writeUpdateNoticeCache(_0x3227af){const _0x580b8e=a322_0x3200;try{const _0x1b67ae=getUpdateNoticeCachePath();await mkdir(dirname(_0x1b67ae),{'recursive':!![]}),await writeFile(_0x1b67ae,JSON[_0x580b8e(0x199)](_0x3227af,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0x16f26b,_0x485917){const _0x4b182e=a322_0x3200;return typeof _0x16f26b[_0x4b182e(0x1a2)]===_0x4b182e(0x190)&&_0x485917-_0x16f26b[_0x4b182e(0x1a2)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x1be939,_0x11cafd,_0xade769){const _0x3e8226=a322_0x3200;return _0x1be939[_0x3e8226(0x1a4)]===_0x11cafd&&typeof _0x1be939['lastNotifiedAt']===_0x3e8226(0x190)&&_0xade769-_0x1be939[_0x3e8226(0x194)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x5ad7d9){const _0x5e4241=a322_0x3200;return _0x5e4241(0x1a5)+NPM_PACKAGE_NAME+_0x5e4241(0x1a1)+_0x5ad7d9;}export async function resolveLatestUpdateNotice(){const _0x4bea4f=a322_0x3200;if(isUpdateNoticeDisabled())return null;try{const _0x1c206a=Date['now'](),_0x5bd573=getCliVersion(),_0x32e640=await readUpdateNoticeCache();let _0x10c6fc=isFreshCheck(_0x32e640,_0x1c206a)?_0x32e640[_0x4bea4f(0x197)]?.[_0x4bea4f(0x1a6)]():undefined;if(!_0x10c6fc&&!isFreshCheck(_0x32e640,_0x1c206a)){const _0x20fa0b=await getCliVersionPolicy();_0x10c6fc=_0x20fa0b?.[_0x4bea4f(0x19d)]?.[_0x4bea4f(0x1a6)]()||undefined,await writeUpdateNoticeCache({..._0x32e640,'checkedAt':_0x1c206a,'latest':_0x10c6fc,'failed':!_0x10c6fc});}if(!_0x10c6fc||!a322_0x3297e4[_0x4bea4f(0x1aa)](_0x5bd573)||!a322_0x3297e4[_0x4bea4f(0x1aa)](_0x10c6fc))return null;if(a322_0x3297e4[_0x4bea4f(0x1a7)](_0x5bd573,_0x10c6fc))return null;if(isRecentlyNotified(_0x32e640,_0x10c6fc,_0x1c206a))return null;const _0x3ad579=CLI_BIN_NAME+_0x4bea4f(0x1ae);return await writeUpdateNoticeCache({..._0x32e640,'checkedAt':isFreshCheck(_0x32e640,_0x1c206a)?_0x32e640[_0x4bea4f(0x1a2)]:_0x1c206a,'latest':_0x10c6fc,'failed':![],'lastNotifiedVersion':_0x10c6fc,'lastNotifiedAt':_0x1c206a}),{'command':_0x3ad579,'current':_0x5bd573,'latest':_0x10c6fc,'url':buildNpmVersionUrl(_0x10c6fc),'message':CLI_BIN_NAME+'\x20'+_0x10c6fc+_0x4bea4f(0x1b1)+_0x5bd573+_0x4bea4f(0x1a9)+_0x3ad579};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a323_0x203e(){var _0x10eab5=['931300zbSQoL','1VJFlAk','10YFGPql','9939xYMKyD','13089840xiwrZj','1144248VkTHRd','761480ayWfRE','244rCNpWL','117CqIbED','38357077EsQNbA','1479288wleaHQ'];a323_0x203e=function(){return _0x10eab5;};return a323_0x203e();}(function(_0xcd3b48,_0x329a39){var _0xfad155=a323_0x6bd3,_0x299e96=_0xcd3b48();while(!![]){try{var _0x3b73df=parseInt(_0xfad155(0xbc))/0x1*(-parseInt(_0xfad155(0xbb))/0x2)+parseInt(_0xfad155(0xbe))/0x3*(parseInt(_0xfad155(0xc2))/0x4)+-parseInt(_0xfad155(0xbd))/0x5*(-parseInt(_0xfad155(0xba))/0x6)+-parseInt(_0xfad155(0xc0))/0x7+-parseInt(_0xfad155(0xbf))/0x8+parseInt(_0xfad155(0xb8))/0x9*(-parseInt(_0xfad155(0xc1))/0xa)+parseInt(_0xfad155(0xb9))/0xb;if(_0x3b73df===_0x329a39)break;else _0x299e96['push'](_0x299e96['shift']());}catch(_0x43eec5){_0x299e96['push'](_0x299e96['shift']());}}}(a323_0x203e,0xe24d0));import{VERSION}from'../generated/build-info.js';function a323_0x6bd3(_0x5786b7,_0x30365a){_0x5786b7=_0x5786b7-0xb8;var _0x203efd=a323_0x203e();var _0x6bd352=_0x203efd[_0x5786b7];return _0x6bd352;}export function getCliVersion(){return VERSION;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x37881a,_0x26aa76){var _0x1c9542=a324_0x3490,_0x413b46=_0x37881a();while(!![]){try{var _0x561f81=-parseInt(_0x1c9542(0xe6))/0x1+-parseInt(_0x1c9542(0xdc))/0x2+parseInt(_0x1c9542(0xe1))/0x3*(parseInt(_0x1c9542(0xde))/0x4)+-parseInt(_0x1c9542(0xe3))/0x5*(-parseInt(_0x1c9542(0xdf))/0x6)+-parseInt(_0x1c9542(0xe4))/0x7+-parseInt(_0x1c9542(0xe2))/0x8*(parseInt(_0x1c9542(0xe5))/0x9)+-parseInt(_0x1c9542(0xdd))/0xa*(-parseInt(_0x1c9542(0xe0))/0xb);if(_0x561f81===_0x26aa76)break;else _0x413b46['push'](_0x413b46['shift']());}catch(_0x5ead09){_0x413b46['push'](_0x413b46['shift']());}}}(a324_0x4aeb,0xbba88));function a324_0x3490(_0x52c217,_0x87995a){_0x52c217=_0x52c217-0xdc;var _0x4aeb94=a324_0x4aeb();var _0x3490d9=_0x4aeb94[_0x52c217];return _0x3490d9;}function a324_0x4aeb(){var _0x23a355=['3015728xBWWOo','96QFiifx','11yyPlnY','6fqkGGQ','584984CRgfXW','13055yhKyPd','6570396kywsza','81HhJAyC','463043uowYkO','282934lVMFaI','14202530ktcqtf'];a324_0x4aeb=function(){return _0x23a355;};return a324_0x4aeb();}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x2f4738,_0x134fc7){setActiveCookie(_0x2f4738);try{return await _0x134fc7();}finally{clearActiveCookie();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a325_0x441d(_0x2688f3,_0x1ca942){_0x2688f3=_0x2688f3-0x83;var _0x332806=a325_0x3328();var _0x441d3e=_0x332806[_0x2688f3];return _0x441d3e;}(function(_0x3d9418,_0x1fc52e){var _0x472c60=a325_0x441d,_0x396e71=_0x3d9418();while(!![]){try{var _0xcbf45e=-parseInt(_0x472c60(0x8c))/0x1*(-parseInt(_0x472c60(0x88))/0x2)+parseInt(_0x472c60(0x8a))/0x3+parseInt(_0x472c60(0x84))/0x4*(-parseInt(_0x472c60(0x83))/0x5)+parseInt(_0x472c60(0x87))/0x6*(-parseInt(_0x472c60(0x8d))/0x7)+-parseInt(_0x472c60(0x85))/0x8+parseInt(_0x472c60(0x8b))/0x9+parseInt(_0x472c60(0x86))/0xa;if(_0xcbf45e===_0x1fc52e)break;else _0x396e71['push'](_0x396e71['shift']());}catch(_0x4d3978){_0x396e71['push'](_0x396e71['shift']());}}}(a325_0x3328,0xae253));export function writeCliSideChannelLine(_0x2d655d){var _0x299ae0=a325_0x441d;process['stderr'][_0x299ae0(0x89)](_0x2d655d+'\x0a');}function a325_0x3328(){var _0x27208f=['410415vREjsM','2238082QQLOAy','5KRgEOc','5267736eQoRIq','7373296oNerZK','18192170XRQxIH','12YUvPNW','6RUNcyr','write','1454295JMBpLw','505080sXaXCg'];a325_0x3328=function(){return _0x27208f;};return a325_0x3328();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/rabetbase-cli",
|
|
3
|
-
"version": "2.5.2-beta.
|
|
3
|
+
"version": "2.5.2-beta.5",
|
|
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": [
|
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
"skills/rabetbase",
|
|
84
84
|
"skills/rabetbase.manifest.json",
|
|
85
85
|
"scripts/postinstall.mjs",
|
|
86
|
+
"templates/custom-pages",
|
|
86
87
|
"templates/generate-api",
|
|
87
88
|
"sidecar",
|
|
88
89
|
"README.md",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: rabetbase
|
|
3
|
-
version: 2.5.2-beta.
|
|
3
|
+
version: 2.5.2-beta.5
|
|
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, SQL, Backend Functions, 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, SQL, BFF, 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:
|
|
@@ -89,7 +89,7 @@ metadata:
|
|
|
89
89
|
7. **自定义页面工作流**
|
|
90
90
|
- 自定义页面与数据列表页是两类独立页面能力,不混用两类页面的命令
|
|
91
91
|
- 创建、修改或发布前,必须先阅读 [`custom-page-workflow.md`](guides/custom-page-workflow.md),再按其中的编排读取对应原子命令 reference
|
|
92
|
-
- 编写 JSX、CSS 或词包前,必须阅读 [`generation-standards.md`](knowledge/custom-page/generation-standards.md);选择 UI 组件时阅读 [`components.md`](knowledge/
|
|
92
|
+
- 编写 JSX、CSS 或词包前,必须阅读 [`generation-standards.md`](knowledge/custom-page/generation-standards.md);选择 UI 组件时阅读 [`components.md`](knowledge/components.md)
|
|
93
93
|
8. **Legacy modernization / Application Blueprint 工作流**
|
|
94
94
|
- 当用户要把无人交接老项目、外包接手项目或遗留系统翻新到 Lovrabet 体系时,先阅读 [`guides/legacy-application-blueprint-workflow.md`](guides/legacy-application-blueprint-workflow.md)
|
|
95
95
|
- 主产物是 `.rabetbase/blueprint/<appCode>/application-blueprint.md`,不是直接生成或推送 SQL/Backend Function
|
|
@@ -161,7 +161,7 @@ metadata:
|
|
|
161
161
|
- **写操作默认当前项目**(包括 `config init`、`workspace add`、`config set`、`project create` 等),除非用户**显式**传 `--global`。
|
|
162
162
|
- **不要**在用户未要求时给命令加 `--global`** — 默认行为已是「项目优先」;只有用户明确要改全局配置或不在项目内且意图写全局时才使用。
|
|
163
163
|
- **`config set`**:在**没有**项目配置文件(当前目录未解析到 `.rabetbase.json`)且**未**传 `--global` 时,CLI **拒绝执行**并提示使用 `--global` 或先 `rabetbase workspace init --appcode <code>`,**不会**静默写入全局。
|
|
164
|
-
- **`project create`** 生成的新项目 `.rabetbase.json` **只继承**少量全局偏好(如 `cookie` / `locale` / `format` / `riskLevel` 等),**不会**把全局 `apps` / `defaultApp` 带入新项目文件;同时生成浏览器安全的 `src/api/sdk-config.ts` 与 `rabetbase.domain-routing.json`。每个官方节点直接声明自己的第三方库 CDN 与 Lovrabet 自有资源 Domain;项目文件始终包含解析后的完整地址,企业独立部署从共用清单读取显式 CDN
|
|
164
|
+
- **`project create`** 生成的新项目 `.rabetbase.json` **只继承**少量全局偏好(如 `cookie` / `locale` / `format` / `riskLevel` 等),**不会**把全局 `apps` / `defaultApp` 带入新项目文件;同时生成浏览器安全的 `src/api/sdk-config.ts` 与 `rabetbase.domain-routing.json`。每个官方节点直接声明自己的第三方库 CDN 与 Lovrabet 自有资源 Domain;项目文件始终包含解析后的完整地址,企业独立部署从共用清单读取显式 CDN。两个生成文件都不下发认证配置;`rabetbase run start|dev|build|preview` 会在执行脚本前刷新公开 Domain 快照,也可用 `project domain-routing-sync` 立即显式刷新;`api pull` 只刷新 SDK/API 文件。
|
|
165
165
|
- **`api pull` / `api list`**:默认仅针对**项目** `apps`;需要合并全局已登记应用时加 `--global`(见各命令 reference)。
|
|
166
166
|
- **`app list`**:默认展示**合并**后的全量;`--global` 仅全局、`--project` 仅项目(见 [`rabetbase app list`](references/rabetbase-app-list.md))。
|
|
167
167
|
|
|
@@ -358,10 +358,10 @@ const result = await client.bff.execute<DashboardData>({
|
|
|
358
358
|
| 审计数据集关联关系 | [`rabetbase dataset relation-audit`](references/rabetbase-dataset-relation-audit.md) | 只读审计关系事实结构错误、风险和人工复核项 |
|
|
359
359
|
| 管理单条数据集关联关系 | [`rabetbase dataset relation-create/update/delete`](references/rabetbase-dataset-relation-mutations.md) | 单条关系写入;写入前用 `relations` 确认 `datasetCode + field` 关系事实,DB_TABLE 写入所需表名来自显式参数或物理表事实 |
|
|
360
360
|
| 首次生成数据列表页 | [`rabetbase page generate-start --datasetcode <code>`](references/rabetbase-page-generate-start.md) | 提交或复用服务端异步任务 |
|
|
361
|
-
| 创建自定义页面 | [`rabetbase page create --page-pattern BLANK --name "客户看板"`](references/rabetbase-page-create.md) |
|
|
361
|
+
| 创建自定义页面 | [`rabetbase page create --page-pattern BLANK --name "客户看板"`](references/rabetbase-page-create.md) | 综合操作页面优先使用 `ONEPAGE`,业务数据可视化使用 `DASHBOARD`,基础页面使用 `BLANK`;模板详情见 [`page-templates.md`](knowledge/custom-page/page-templates.md),也可通过 `--page-dir` 创建完整页面;先 dry-run |
|
|
362
362
|
| 查询自定义页面 | [`rabetbase page custom-list`](references/rabetbase-page-custom-list.md) | 返回页面 ID、页面名称、`pageUrl`(查看最新保存内容)和 `editPageUrl`(打开编辑器) |
|
|
363
363
|
| 查看自定义页面详情 | [`rabetbase page custom-detail --id <pageId>`](references/rabetbase-page-custom-detail.md) | 查询页面详情,`codeContent` 包含可修改后整体提交的完整页面文件 |
|
|
364
|
-
| 更新自定义页面 | [`rabetbase page custom-update --id <pageId> --page-
|
|
364
|
+
| 更新自定义页面 | [`rabetbase page custom-update --id <pageId> --page-dir <dir>`](references/rabetbase-page-custom-update.md) | 以最新完整页面内容为基线更新,可参考 `BLANK`、`ONEPAGE` 或 `DASHBOARD` 的页面和交互模式;先 dry-run |
|
|
365
365
|
| 发布自定义页面 | [`rabetbase page custom-publish --id <pageId>`](references/rabetbase-page-custom-publish.md) | `write`;发布当前保存内容,先 dry-run 并审阅预览 |
|
|
366
366
|
| 查询数据列表页生成任务状态 | [`rabetbase page generate-status --datasetcode <code> --operation-id <id>`](references/rabetbase-page-generate-status.md) | 查询 job 状态,支持 `operationId` / `clientOperationId` |
|
|
367
367
|
| 查询数据列表页生成任务状态 | [`rabetbase page generate-status --datasetcode <code> --task-id <id>`](references/rabetbase-page-generate-status.md) | 查询 job 状态;taskId 首选,operationId/clientOperationId 兼容。成功后仍读取数据列表页事实,未知状态不得自动重提 |
|