@lovrabet/rabetbase-cli 2.3.16-beta.7 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -10
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/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/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/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/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/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/react/create.d.ts +2 -0
- package/lib/commands/page/react/create.js +1 -0
- package/lib/commands/page/react/detail.d.ts +2 -0
- package/lib/commands/page/react/detail.js +1 -0
- package/lib/commands/page/react/list.d.ts +2 -0
- package/lib/commands/page/react/list.js +1 -0
- package/lib/commands/page/react/publish.d.ts +2 -0
- package/lib/commands/page/react/publish.js +1 -0
- package/lib/commands/page/react/shared.d.ts +78 -0
- package/lib/commands/page/react/shared.js +1 -0
- package/lib/commands/page/react/syntax.d.ts +18 -0
- package/lib/commands/page/react/syntax.js +1 -0
- package/lib/commands/page/react/template.d.ts +8 -0
- package/lib/commands/page/react/template.js +1 -0
- package/lib/commands/page/react/update.d.ts +2 -0
- package/lib/commands/page/react/update.js +1 -0
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.d.ts +1 -0
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-apis-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/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.d.ts +2 -0
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -0
- package/lib/commands/user-account/index.d.ts +2 -0
- package/lib/commands/user-account/index.js +1 -0
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +117 -0
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.d.ts +3 -0
- package/lib/postinstall.js +1 -0
- 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.d.ts +37 -0
- package/lib/skills/builtin-skill.js +1 -0
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.d.ts +4 -2
- 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/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +9 -3
- package/scripts/postinstall.mjs +24 -0
- package/skills/rabetbase/SKILL.md +493 -0
- package/skills/rabetbase/guides/backend-function.md +835 -0
- package/skills/rabetbase/guides/best-practices.md +137 -0
- package/skills/rabetbase/guides/bff-creation-workflow.md +148 -0
- package/skills/rabetbase/guides/conflict-detection.md +119 -0
- package/skills/rabetbase/guides/data-api-guidelines.md +414 -0
- package/skills/rabetbase/guides/database-connection-workflow.md +169 -0
- package/skills/rabetbase/guides/frontend-development.md +179 -0
- package/skills/rabetbase/guides/legacy-application-blueprint-workflow.md +495 -0
- package/skills/rabetbase/guides/menu-anomaly-manual-cleanup.md +137 -0
- package/skills/rabetbase/guides/page-development-workflow.md +187 -0
- package/skills/rabetbase/guides/react-custom-page-workflow.md +184 -0
- package/skills/rabetbase/guides/role-permit-workflow.md +127 -0
- package/skills/rabetbase/guides/sql-creation-workflow.md +173 -0
- package/skills/rabetbase/guides/sql-mybatis.md +126 -0
- package/skills/rabetbase/guides/troubleshooting.md +67 -0
- package/skills/rabetbase/guides/typescript-sdk.md +227 -0
- package/skills/rabetbase/knowledge/page-schema/LrSmartCreate.md +367 -0
- package/skills/rabetbase/knowledge/page-schema/LrSmartDetail.md +153 -0
- package/skills/rabetbase/knowledge/page-schema/LrSmartEcharts.md +291 -0
- package/skills/rabetbase/knowledge/page-schema/LrSmartFilter.md +478 -0
- package/skills/rabetbase/knowledge/page-schema/LrSmartJsx.md +119 -0
- package/skills/rabetbase/knowledge/page-schema/LrSmartStatistic.md +223 -0
- package/skills/rabetbase/knowledge/page-schema/LrSmartTable.md +632 -0
- package/skills/rabetbase/knowledge/page-schema/YtPage.md +172 -0
- package/skills/rabetbase/knowledge/page-schema/dataset-relations.md +126 -0
- package/skills/rabetbase/knowledge/page-schema/external-resources-usage.md +232 -0
- package/skills/rabetbase/knowledge/page-schema/field-components.md +312 -0
- package/skills/rabetbase/knowledge/page-schema/syntax-reference.md +278 -0
- package/skills/rabetbase/knowledge/react-page/components.md +225 -0
- package/skills/rabetbase/knowledge/react-page/generation-standards.md +385 -0
- package/skills/rabetbase/references/rabetbase-api-list.md +58 -0
- package/skills/rabetbase/references/rabetbase-api-pull.md +82 -0
- package/skills/rabetbase/references/rabetbase-app-config.md +95 -0
- package/skills/rabetbase/references/rabetbase-app-list.md +79 -0
- package/skills/rabetbase/references/rabetbase-app-members-list.md +64 -0
- package/skills/rabetbase/references/rabetbase-auth-login.md +53 -0
- package/skills/rabetbase/references/rabetbase-auth-logout.md +29 -0
- package/skills/rabetbase/references/rabetbase-bff-create.md +59 -0
- package/skills/rabetbase/references/rabetbase-bff-delete.md +42 -0
- package/skills/rabetbase/references/rabetbase-bff-detail.md +38 -0
- package/skills/rabetbase/references/rabetbase-bff-list.md +61 -0
- package/skills/rabetbase/references/rabetbase-bff-pull.md +42 -0
- package/skills/rabetbase/references/rabetbase-bff-push.md +65 -0
- package/skills/rabetbase/references/rabetbase-bff-save.md +63 -0
- package/skills/rabetbase/references/rabetbase-bff-status.md +37 -0
- package/skills/rabetbase/references/rabetbase-cli-skill-install.md +42 -0
- package/skills/rabetbase/references/rabetbase-codegen-sdk.md +35 -0
- package/skills/rabetbase/references/rabetbase-codegen-sql.md +33 -0
- package/skills/rabetbase/references/rabetbase-config.md +296 -0
- package/skills/rabetbase/references/rabetbase-dataset-business-group-update.md +84 -0
- package/skills/rabetbase/references/rabetbase-dataset-delete.md +54 -0
- package/skills/rabetbase/references/rabetbase-dataset-detail.md +106 -0
- package/skills/rabetbase/references/rabetbase-dataset-extend-update.md +70 -0
- package/skills/rabetbase/references/rabetbase-dataset-field-update.md +117 -0
- package/skills/rabetbase/references/rabetbase-dataset-generate.md +206 -0
- package/skills/rabetbase/references/rabetbase-dataset-list.md +42 -0
- package/skills/rabetbase/references/rabetbase-dataset-operations.md +34 -0
- package/skills/rabetbase/references/rabetbase-dataset-relation-audit.md +63 -0
- package/skills/rabetbase/references/rabetbase-dataset-relation-mutations.md +141 -0
- package/skills/rabetbase/references/rabetbase-dataset-relations.md +71 -0
- package/skills/rabetbase/references/rabetbase-dataset-rename.md +107 -0
- package/skills/rabetbase/references/rabetbase-dataset-restore.md +54 -0
- package/skills/rabetbase/references/rabetbase-db-analyze.md +135 -0
- package/skills/rabetbase/references/rabetbase-db-create.md +54 -0
- package/skills/rabetbase/references/rabetbase-db-delete.md +26 -0
- package/skills/rabetbase/references/rabetbase-db-detail.md +27 -0
- package/skills/rabetbase/references/rabetbase-db-diff.md +57 -0
- package/skills/rabetbase/references/rabetbase-db-list.md +37 -0
- package/skills/rabetbase/references/rabetbase-db-tables.md +25 -0
- package/skills/rabetbase/references/rabetbase-db-test.md +29 -0
- package/skills/rabetbase/references/rabetbase-db-update.md +29 -0
- package/skills/rabetbase/references/rabetbase-doctor.md +62 -0
- package/skills/rabetbase/references/rabetbase-file.md +35 -0
- package/skills/rabetbase/references/rabetbase-init.md +70 -0
- package/skills/rabetbase/references/rabetbase-issue-report.md +132 -0
- package/skills/rabetbase/references/rabetbase-kb.md +62 -0
- package/skills/rabetbase/references/rabetbase-menu-asset-update.md +135 -0
- package/skills/rabetbase/references/rabetbase-menu-delete.md +54 -0
- package/skills/rabetbase/references/rabetbase-menu-external-link-create.md +63 -0
- package/skills/rabetbase/references/rabetbase-menu-external-link-update.md +74 -0
- package/skills/rabetbase/references/rabetbase-menu-group-create.md +33 -0
- package/skills/rabetbase/references/rabetbase-menu-group-update.md +38 -0
- package/skills/rabetbase/references/rabetbase-menu-list.md +144 -0
- package/skills/rabetbase/references/rabetbase-menu-move.md +54 -0
- package/skills/rabetbase/references/rabetbase-menu-regroup-start.md +45 -0
- package/skills/rabetbase/references/rabetbase-menu-rename.md +48 -0
- package/skills/rabetbase/references/rabetbase-menu-sync.md +60 -0
- package/skills/rabetbase/references/rabetbase-notification-config-list.md +80 -0
- package/skills/rabetbase/references/rabetbase-ocr.md +86 -0
- package/skills/rabetbase/references/rabetbase-page-generate-start.md +32 -0
- package/skills/rabetbase/references/rabetbase-page-generate-status.md +32 -0
- package/skills/rabetbase/references/rabetbase-page-pull.md +47 -0
- package/skills/rabetbase/references/rabetbase-page-push.md +45 -0
- package/skills/rabetbase/references/rabetbase-page-react-create.md +29 -0
- package/skills/rabetbase/references/rabetbase-page-react-detail.md +26 -0
- package/skills/rabetbase/references/rabetbase-page-react-list.md +23 -0
- package/skills/rabetbase/references/rabetbase-page-react-publish.md +23 -0
- package/skills/rabetbase/references/rabetbase-page-react-update.md +24 -0
- package/skills/rabetbase/references/rabetbase-page-relation-binding.md +72 -0
- package/skills/rabetbase/references/rabetbase-page-restore.md +45 -0
- package/skills/rabetbase/references/rabetbase-page-sync.md +36 -0
- package/skills/rabetbase/references/rabetbase-permit-page-set.md +69 -0
- package/skills/rabetbase/references/rabetbase-permit-role-apis-set.md +53 -0
- package/skills/rabetbase/references/rabetbase-permit-role-menus-set.md +57 -0
- package/skills/rabetbase/references/rabetbase-project-create.md +46 -0
- package/skills/rabetbase/references/rabetbase-project-upgrade.md +57 -0
- package/skills/rabetbase/references/rabetbase-role-list.md +68 -0
- package/skills/rabetbase/references/rabetbase-role-user-add.md +54 -0
- package/skills/rabetbase/references/rabetbase-role-user-resolve.md +27 -0
- package/skills/rabetbase/references/rabetbase-run.md +53 -0
- package/skills/rabetbase/references/rabetbase-schema.md +22 -0
- package/skills/rabetbase/references/rabetbase-sql-create.md +41 -0
- package/skills/rabetbase/references/rabetbase-sql-delete.md +37 -0
- package/skills/rabetbase/references/rabetbase-sql-detail.md +32 -0
- package/skills/rabetbase/references/rabetbase-sql-exec.md +34 -0
- package/skills/rabetbase/references/rabetbase-sql-list.md +54 -0
- package/skills/rabetbase/references/rabetbase-sql-pull.md +54 -0
- package/skills/rabetbase/references/rabetbase-sql-push.md +46 -0
- package/skills/rabetbase/references/rabetbase-sql-status.md +39 -0
- package/skills/rabetbase/references/rabetbase-sql-validate.md +73 -0
- package/skills/rabetbase/references/rabetbase-standard-page-status.md +31 -0
- package/skills/rabetbase/references/rabetbase-task-status.md +40 -0
- package/skills/rabetbase/references/rabetbase-tenant-members-list.md +69 -0
- package/skills/rabetbase/references/rabetbase-update.md +56 -0
- package/skills/rabetbase/references/rabetbase-user-account.md +45 -0
- package/skills/rabetbase/references/rabetbase-workspace.md +60 -0
- package/skills/rabetbase.manifest.json +137 -0
package/lib/utils/rules-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a287_0x3e71(){const _0x167714=['CDN\x20请求失败:\x20','597060JaayDr','../../templates/rules/lovrabet_rules.mdc.tpl','content','本地模板文件不存在:\x20','/rules/rules.json','lastUpdated','7CHHScw','5STOeBA','12893780WyqTba','116wFTZhq','lovrabet_rules.mdc','status','.cursor/rules','1151656ZYNYot','json','635442PhCzLf','94305qPlCph','355136GHbQUW','104940uMPTEl','string'];a287_0x3e71=function(){return _0x167714;};return a287_0x3e71();}const a287_0x3bc9f8=a287_0x92b2;(function(_0x4e16af,_0x47e4b0){const _0x2efb16=a287_0x92b2,_0x52a981=_0x4e16af();while(!![]){try{const _0x51cef6=-parseInt(_0x2efb16(0x82))/0x1+parseInt(_0x2efb16(0x81))/0x2+-parseInt(_0x2efb16(0x80))/0x3*(parseInt(_0x2efb16(0x8e))/0x4)+-parseInt(_0x2efb16(0x8c))/0x5*(-parseInt(_0x2efb16(0x7f))/0x6)+parseInt(_0x2efb16(0x8b))/0x7*(-parseInt(_0x2efb16(0x92))/0x8)+parseInt(_0x2efb16(0x85))/0x9+parseInt(_0x2efb16(0x8d))/0xa;if(_0x51cef6===_0x47e4b0)break;else _0x52a981['push'](_0x52a981['shift']());}catch(_0x5464d4){_0x52a981['push'](_0x52a981['shift']());}}}(a287_0x3e71,0x74dd9));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';function a287_0x92b2(_0x3482a8,_0xa0c3a9){_0x3482a8=_0x3482a8-0x7e;const _0x3e7121=a287_0x3e71();let _0x92b283=_0x3e7121[_0x3482a8];return _0x92b283;}import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0xbccaee=a287_0x92b2,_0x33504a=getTemplateBaseUrl();return _0x33504a+_0xbccaee(0x89);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a287_0x3bc9f8(0x86));export async function fetchRulesFromCDN(){const _0x5307b7=a287_0x3bc9f8,_0x202325=getRulesCdnUrl(),_0x42b6d9=await fetch(_0x202325,{'headers':{'Accept':'application/json'}});if(!_0x42b6d9['ok'])throw new Error(_0x5307b7(0x84)+_0x42b6d9[_0x5307b7(0x90)]+'\x20'+_0x42b6d9['statusText']);const _0x17b64c=await _0x42b6d9[_0x5307b7(0x7e)]();if(!_0x17b64c[_0x5307b7(0x87)]||typeof _0x17b64c[_0x5307b7(0x87)]!==_0x5307b7(0x83))throw new Error('CDN\x20返回数据格式错误');return _0x17b64c;}export async function getRulesContent(){try{const _0x32e6e9=await fetchRulesFromCDN();return _0x32e6e9['content'];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x108c5b=a287_0x3bc9f8;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,'utf-8');throw new Error(_0x108c5b(0x88)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x46fe85){const _0x326f70=a287_0x3bc9f8,_0x3d7054=await fetchRulesFromCDN()['catch'](()=>null);let _0x2c9527;_0x3d7054?(_0x2c9527=_0x3d7054['content'],_0x3d7054[_0x326f70(0x8a)]&&(_0x2c9527=appendUpdateTime(_0x2c9527,_0x3d7054[_0x326f70(0x8a)]))):_0x2c9527=readLocalTemplate();const _0x382d62=dirname(_0x46fe85);!existsSync(_0x382d62)&&mkdirSync(_0x382d62,{'recursive':!![]}),writeFileSync(_0x46fe85,_0x2c9527,'utf-8');}export async function copyRulesToCursor(_0x4bd83d){const _0x5965b7=a287_0x3bc9f8,_0x1230a4=join(_0x4bd83d,_0x5965b7(0x91)),_0x34ac41=join(_0x1230a4,_0x5965b7(0x8f));if(existsSync(_0x34ac41))return![];return await writeRulesFile(_0x34ac41),!![];}export async function copyRulesToAgentsMd(_0x4e6067){const _0x2571d8=join(_0x4e6067,'agents.md');if(existsSync(_0x2571d8))return![];return await writeRulesFile(_0x2571d8),!![];}
|
package/lib/utils/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function sleep(
|
|
1
|
+
export function sleep(_0x5d95f7){return new Promise(_0x4720f0=>setTimeout(_0x4720f0,_0x5d95f7));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a289_0x4c656=a289_0x67f2;function a289_0x67f2(_0x2d10e0,_0xb47088){_0x2d10e0=_0x2d10e0-0x115;const _0x34693f=a289_0x3469();let _0x67f220=_0x34693f[_0x2d10e0];return _0x67f220;}(function(_0x348352,_0x28640f){const _0x25209c=a289_0x67f2,_0x2530e7=_0x348352();while(!![]){try{const _0xdd024d=parseInt(_0x25209c(0x125))/0x1*(parseInt(_0x25209c(0x147))/0x2)+-parseInt(_0x25209c(0x138))/0x3+-parseInt(_0x25209c(0x11a))/0x4+-parseInt(_0x25209c(0x159))/0x5+parseInt(_0x25209c(0x139))/0x6*(parseInt(_0x25209c(0x14d))/0x7)+-parseInt(_0x25209c(0x117))/0x8+-parseInt(_0x25209c(0x13c))/0x9*(-parseInt(_0x25209c(0x132))/0xa);if(_0xdd024d===_0x28640f)break;else _0x2530e7['push'](_0x2530e7['shift']());}catch(_0x541ffa){_0x2530e7['push'](_0x2530e7['shift']());}}}(a289_0x3469,0xf1a1b));function a289_0x3469(){const _0x407a81=['6850990bOljTi','mkdir','error','15123168rdkrSl','pad','processFile','2026592RBRXNc','message','alias','tableName:\x20\x22','copyFile','.jsx','name','模板内容替换失败','.tsx','getDate','now','255364UuQNTZ','replace','datasetCode:\x20\x22','toComponentName','toISOString','isFile','getFullYear','pop','default','toUpperCase','\x20},','.tpl','slice','1850JJGesD','alias:\x20\x22','replaceApiContent','formatLocalTimestamp','toDisplayTitle','endsWith','27573lcFJRI','11487738aIHGoy','.ts','模板内容替换完成','113877rlASLj','toLowerCase','getMonth','getSeconds','template','isDirectory','processDirectory','getHours','readdir','开始处理模板内容替换','promises','4TniFHu','map','success','.scss','readFile','name:\x20\x22','7WxrKUB','datasetCode','join','charAt','.css','utf8','.js','includes','YourModel','LOVRABET','split','padStart'];a289_0x3469=function(){return _0x407a81;};return a289_0x3469();}import a289_0x413aaf from'node:fs';import a289_0x2341dc from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a289_0x4c656(0x118)](_0x504096){const _0x3ea52f=a289_0x4c656;return String(_0x504096)[_0x3ea52f(0x158)](0x2,'0');}static['formatLocalTimestamp'](_0x31b1d8){const _0x15ad84=a289_0x4c656,_0x1aecda=_0x31b1d8[_0x15ad84(0x12b)](),_0x37afa3=this[_0x15ad84(0x118)](_0x31b1d8[_0x15ad84(0x13e)]()+0x1),_0x813314=this[_0x15ad84(0x118)](_0x31b1d8[_0x15ad84(0x123)]()),_0x442c47=this[_0x15ad84(0x118)](_0x31b1d8[_0x15ad84(0x143)]()),_0x31624f=this[_0x15ad84(0x118)](_0x31b1d8['getMinutes']()),_0x4c56c3=this[_0x15ad84(0x118)](_0x31b1d8[_0x15ad84(0x13f)]());return{'createdAt':_0x1aecda+'-'+_0x37afa3+'-'+_0x813314+'\x20'+_0x442c47+':'+_0x31624f+':'+_0x4c56c3,'createdDate':_0x1aecda+'-'+_0x37afa3+'-'+_0x813314,'createdTime':_0x442c47+':'+_0x31624f+':'+_0x4c56c3};}static[a289_0x4c656(0x128)](_0x29f7ac){const _0x122cb2=a289_0x4c656,_0x562c84=_0x29f7ac[_0x122cb2(0x157)]('/')['pop']()||_0x29f7ac;return _0x562c84['split']('-')[_0x122cb2(0x148)](_0x4a69df=>_0x4a69df[_0x122cb2(0x150)](0x0)['toUpperCase']()+_0x4a69df[_0x122cb2(0x131)](0x1)['toLowerCase']())[_0x122cb2(0x14f)]('');}static[a289_0x4c656(0x136)](_0x1815fd){const _0x374aa0=a289_0x4c656,_0x47cf2b=_0x1815fd[_0x374aa0(0x157)]('/')[_0x374aa0(0x12c)]()||_0x1815fd;return _0x47cf2b[_0x374aa0(0x157)]('-')[_0x374aa0(0x148)](_0x75a082=>_0x75a082['charAt'](0x0)[_0x374aa0(0x12e)]()+_0x75a082[_0x374aa0(0x131)](0x1)[_0x374aa0(0x13d)]())[_0x374aa0(0x14f)]('\x20');}static['replaceContent'](_0x12c10c,_0x6e375f,_0x210845){const _0x26c512=a289_0x4c656,_0x2825ca=this['toComponentName'](_0x6e375f),_0x2667ea=this['toDisplayTitle'](_0x6e375f),{createdAt:_0x59c67d,createdDate:_0x1e7a24,createdTime:_0x24c2de}=this[_0x26c512(0x135)](new Date());let _0x259664=_0x12c10c[_0x26c512(0x126)](/\{CliVersion\}/g,CLI_VERSION)[_0x26c512(0x126)](/\{ComponentName\}/g,_0x2825ca)[_0x26c512(0x126)](/\{DisplayTitle\}/g,_0x2667ea)[_0x26c512(0x126)](/\{PageName\}/g,_0x6e375f)[_0x26c512(0x126)](/\{TemplateName\}/g,_0x210845)[_0x26c512(0x126)](/\{CreatedAt\}/g,_0x59c67d)[_0x26c512(0x126)](/\{CreatedDate\}/g,_0x1e7a24)['replace'](/\{CreatedTime\}/g,_0x24c2de);return _0x259664;}static[a289_0x4c656(0x134)](_0x250b71,_0x5cc4eb,_0x468e22,_0x8450ed,_0x4d2585,_0x3da56d,_0x389f51,_0x56c819){const _0x44d2d0=a289_0x4c656,_0x2fc081=new Date(),_0x2ca2f7=_0x2fc081[_0x44d2d0(0x129)](),_0x354a00=_0x468e22[_0x44d2d0(0x148)](_0x4baadd=>{const _0x37e83b=_0x44d2d0,_0x1a65ef=[_0x37e83b(0x127)+_0x4baadd[_0x37e83b(0x14e)]+'\x22',_0x37e83b(0x11d)+_0x4baadd['tableName']+'\x22',_0x37e83b(0x14c)+_0x4baadd[_0x37e83b(0x120)]+'\x22'];return _0x4baadd[_0x37e83b(0x11c)]&&_0x1a65ef['push'](_0x37e83b(0x133)+_0x4baadd[_0x37e83b(0x11c)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x1a65ef['join'](',\x20')+_0x37e83b(0x12f);})[_0x44d2d0(0x14f)](''),_0x444c07=_0x8450ed||_0x468e22[0x0]?.[_0x44d2d0(0x11c)]||_0x44d2d0(0x155);let _0x3e9269=_0x250b71['replace'](/\{AppCode\}/g,_0x5cc4eb)['replace'](/\{ModelConfigs\}/g,_0x354a00)['replace'](/\{ExampleModelName\}/g,_0x444c07)[_0x44d2d0(0x126)](/\{ApiFileName\}/g,_0x4d2585||'api')['replace'](/\{ConfigName\}/g,_0x3da56d||_0x44d2d0(0x12d))['replace'](/\{ClientConfigParam\}/g,_0x389f51||'')['replace'](/\{VarPrefix\}/g,_0x56c819||_0x44d2d0(0x156))[_0x44d2d0(0x126)](/\{CreatedAt\}/g,_0x2ca2f7);return _0x3e9269;}static async['processTemplate'](_0x3b025c,_0x5ef435,_0x4671be,_0xbb5e2a,_0x4a3b16=!![]){const _0x4fbc33=a289_0x4c656,_0x4bfb28=Date[_0x4fbc33(0x124)]();try{_0x4a3b16&&logger['info'](_0x4fbc33(0x140),_0x4fbc33(0x145),{'templatePath':_0x3b025c,'targetPath':_0x5ef435,'pageName':_0x4671be,'templateName':_0xbb5e2a});await a289_0x413aaf[_0x4fbc33(0x146)][_0x4fbc33(0x115)](_0x5ef435,{'recursive':!![]}),await this[_0x4fbc33(0x142)](_0x3b025c,_0x5ef435,_0x4671be,_0xbb5e2a);if(_0x4a3b16){const _0x5a4e0c=Date['now']()-_0x4bfb28;logger[_0x4fbc33(0x149)](_0x4fbc33(0x140),_0x4fbc33(0x13b),_0x5a4e0c,{'pageName':_0x4671be,'templateName':_0xbb5e2a});}}catch(_0x56666b){if(_0x4a3b16){const _0x3e9e52=Date[_0x4fbc33(0x124)]()-_0x4bfb28;logger[_0x4fbc33(0x116)]('template',_0x4fbc33(0x121),{'templatePath':_0x3b025c,'targetPath':_0x5ef435,'pageName':_0x4671be,'templateName':_0xbb5e2a,'error':_0x56666b instanceof Error?_0x56666b[_0x4fbc33(0x11b)]:String(_0x56666b),'duration':_0x3e9e52});}throw _0x56666b;}}static async[a289_0x4c656(0x142)](_0x22ecd6,_0x1e4265,_0x59a9c9,_0xa94c7d){const _0x30ffef=a289_0x4c656,_0x4d81f5=await a289_0x413aaf[_0x30ffef(0x146)][_0x30ffef(0x144)](_0x22ecd6,{'withFileTypes':!![]});for(const _0x5f5bda of _0x4d81f5){const _0x13b55c=a289_0x2341dc[_0x30ffef(0x14f)](_0x22ecd6,_0x5f5bda['name']);let _0x47b3e3=a289_0x2341dc[_0x30ffef(0x14f)](_0x1e4265,_0x5f5bda['name']);_0x5f5bda[_0x30ffef(0x120)][_0x30ffef(0x137)](_0x30ffef(0x130))&&(_0x47b3e3=a289_0x2341dc[_0x30ffef(0x14f)](_0x1e4265,_0x5f5bda[_0x30ffef(0x120)][_0x30ffef(0x126)](/\.tpl$/,'')));if(_0x5f5bda[_0x30ffef(0x141)]())await a289_0x413aaf[_0x30ffef(0x146)][_0x30ffef(0x115)](_0x47b3e3,{'recursive':!![]}),await this[_0x30ffef(0x142)](_0x13b55c,_0x47b3e3,_0x59a9c9,_0xa94c7d);else _0x5f5bda[_0x30ffef(0x12a)]()&&await this[_0x30ffef(0x119)](_0x13b55c,_0x47b3e3,_0x59a9c9,_0xa94c7d);}}static async[a289_0x4c656(0x119)](_0xced2b8,_0x173cf4,_0x288bf3,_0x467788){const _0x199b21=a289_0x4c656,_0x3aa990=a289_0x2341dc['extname'](_0xced2b8)[_0x199b21(0x13d)]();_0xced2b8[_0x199b21(0x137)](_0x199b21(0x130))&&(_0x173cf4=_0x173cf4[_0x199b21(0x126)](/\.tpl$/,''));const _0x1e72a2=[_0x199b21(0x122),_0x199b21(0x13a),_0x199b21(0x11f),_0x199b21(0x153),'.json','.md',_0x199b21(0x151),_0x199b21(0x14a),_0x199b21(0x130)];if(_0x1e72a2[_0x199b21(0x154)](_0x3aa990)||_0xced2b8[_0x199b21(0x137)](_0x199b21(0x130))){const _0x39f2bc=await a289_0x413aaf[_0x199b21(0x146)][_0x199b21(0x14b)](_0xced2b8,_0x199b21(0x152)),_0x4d6244=this['replaceContent'](_0x39f2bc,_0x288bf3,_0x467788);await a289_0x413aaf[_0x199b21(0x146)]['writeFile'](_0x173cf4,_0x4d6244,_0x199b21(0x152));}else await a289_0x413aaf[_0x199b21(0x146)][_0x199b21(0x11e)](_0xced2b8,_0x173cf4);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5a309d,_0x575e98){const _0x43bdf1=a290_0x73f7,_0x2ef44d=_0x5a309d();while(!![]){try{const _0x1ecde9=-parseInt(_0x43bdf1(0x166))/0x1*(parseInt(_0x43bdf1(0x176))/0x2)+-parseInt(_0x43bdf1(0x15c))/0x3+-parseInt(_0x43bdf1(0x165))/0x4*(-parseInt(_0x43bdf1(0x177))/0x5)+-parseInt(_0x43bdf1(0x178))/0x6*(parseInt(_0x43bdf1(0x162))/0x7)+parseInt(_0x43bdf1(0x164))/0x8*(parseInt(_0x43bdf1(0x17b))/0x9)+-parseInt(_0x43bdf1(0x16c))/0xa*(parseInt(_0x43bdf1(0x15e))/0xb)+parseInt(_0x43bdf1(0x15f))/0xc;if(_0x1ecde9===_0x575e98)break;else _0x2ef44d['push'](_0x2ef44d['shift']());}catch(_0x4cc0ec){_0x2ef44d['push'](_0x2ef44d['shift']());}}}(a290_0x3e4e,0x8ea01));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a290_0x257341 from'semver';function a290_0x73f7(_0x533972,_0x5250f2){_0x533972=_0x533972-0x15b;const _0x3e4ef6=a290_0x3e4e();let _0x73f7=_0x3e4ef6[_0x533972];return _0x73f7;}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 _0x2b7290=a290_0x73f7,_0x415b97=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x2b7290(0x16e)]()[_0x2b7290(0x167)]();return _0x415b97==='1'||_0x415b97===_0x2b7290(0x17a)||_0x415b97===_0x2b7290(0x169);}function a290_0x3e4e(){const _0x18277e=['object','valid','rabetbase-cli','2wKMgSI','15VLcOmJ','6467802AtQEdu','/v/','true','9uvhDTh','utf8','3166959bfUcLM',',\x20run:\x20','10392382dAfdEC','35510568gYkhXC','number','lastNotifiedAt','7yOUBij','lastNotifiedVersion','5208552EbDBLo','1141612bbxgWM','803917rPoTCS','toLowerCase','.cache','yes','checkedAt','parse','10RIUPfN','https://www.npmjs.com/package/','trim','now','\x20available,\x20current\x20','\x20update','gte'];a290_0x3e4e=function(){return _0x18277e;};return a290_0x3e4e();}function cacheRoot(){const _0x46961c=a290_0x73f7;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x46961c(0x168));}export function getUpdateNoticeCachePath(){const _0x1e0c43=a290_0x73f7;return join(cacheRoot(),_0x1e0c43(0x175),'update-check.json');}async function readUpdateNoticeCache(){const _0x5a0135=a290_0x73f7;try{const _0x2f7761=await readFile(getUpdateNoticeCachePath(),_0x5a0135(0x15b)),_0x408b43=JSON[_0x5a0135(0x16b)](_0x2f7761);if(!_0x408b43||typeof _0x408b43!==_0x5a0135(0x173))return{};return _0x408b43;}catch{return{};}}async function writeUpdateNoticeCache(_0x5be913){try{const _0x48b5d2=getUpdateNoticeCachePath();await mkdir(dirname(_0x48b5d2),{'recursive':!![]}),await writeFile(_0x48b5d2,JSON['stringify'](_0x5be913,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0x585909,_0x3ec960){const _0x129408=a290_0x73f7;return typeof _0x585909['checkedAt']===_0x129408(0x160)&&_0x3ec960-_0x585909[_0x129408(0x16a)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x80e91,_0x7d5c5a,_0x46a34f){const _0x1ae8d0=a290_0x73f7;return _0x80e91[_0x1ae8d0(0x163)]===_0x7d5c5a&&typeof _0x80e91[_0x1ae8d0(0x161)]==='number'&&_0x46a34f-_0x80e91[_0x1ae8d0(0x161)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x5252cd){const _0x132d1a=a290_0x73f7;return _0x132d1a(0x16d)+NPM_PACKAGE_NAME+_0x132d1a(0x179)+_0x5252cd;}export async function resolveLatestUpdateNotice(){const _0x127f23=a290_0x73f7;if(isUpdateNoticeDisabled())return null;try{const _0x527a3d=Date[_0x127f23(0x16f)](),_0x199c30=getCliVersion(),_0x3a1de7=await readUpdateNoticeCache();let _0x2c6ede=isFreshCheck(_0x3a1de7,_0x527a3d)?_0x3a1de7['latest']?.['trim']():undefined;if(!_0x2c6ede&&!isFreshCheck(_0x3a1de7,_0x527a3d)){const _0x352465=await getCliVersionPolicy();_0x2c6ede=_0x352465?.['stableVersion']?.[_0x127f23(0x16e)]()||undefined,await writeUpdateNoticeCache({..._0x3a1de7,'checkedAt':_0x527a3d,'latest':_0x2c6ede,'failed':!_0x2c6ede});}if(!_0x2c6ede||!a290_0x257341[_0x127f23(0x174)](_0x199c30)||!a290_0x257341[_0x127f23(0x174)](_0x2c6ede))return null;if(a290_0x257341[_0x127f23(0x172)](_0x199c30,_0x2c6ede))return null;if(isRecentlyNotified(_0x3a1de7,_0x2c6ede,_0x527a3d))return null;const _0x5abcf3=CLI_BIN_NAME+_0x127f23(0x171);return await writeUpdateNoticeCache({..._0x3a1de7,'checkedAt':isFreshCheck(_0x3a1de7,_0x527a3d)?_0x3a1de7[_0x127f23(0x16a)]:_0x527a3d,'latest':_0x2c6ede,'failed':![],'lastNotifiedVersion':_0x2c6ede,'lastNotifiedAt':_0x527a3d}),{'command':_0x5abcf3,'current':_0x199c30,'latest':_0x2c6ede,'url':buildNpmVersionUrl(_0x2c6ede),'message':CLI_BIN_NAME+'\x20'+_0x2c6ede+_0x127f23(0x170)+_0x199c30+_0x127f23(0x15d)+_0x5abcf3};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xdd1277,_0x3c1ce7){var _0x357625=a291_0x49ec,_0x5c47b9=_0xdd1277();while(!![]){try{var _0x12ae4b=-parseInt(_0x357625(0x1c0))/0x1*(-parseInt(_0x357625(0x1bc))/0x2)+-parseInt(_0x357625(0x1b9))/0x3*(-parseInt(_0x357625(0x1bd))/0x4)+parseInt(_0x357625(0x1bb))/0x5+parseInt(_0x357625(0x1b6))/0x6+-parseInt(_0x357625(0x1ba))/0x7*(-parseInt(_0x357625(0x1b7))/0x8)+parseInt(_0x357625(0x1b5))/0x9*(-parseInt(_0x357625(0x1bf))/0xa)+-parseInt(_0x357625(0x1be))/0xb*(parseInt(_0x357625(0x1b8))/0xc);if(_0x12ae4b===_0x3c1ce7)break;else _0x5c47b9['push'](_0x5c47b9['shift']());}catch(_0x2fc75f){_0x5c47b9['push'](_0x5c47b9['shift']());}}}(a291_0x19e7,0x648f9));function a291_0x49ec(_0x2bfb02,_0xc35690){_0x2bfb02=_0x2bfb02-0x1b5;var _0x19e760=a291_0x19e7();var _0x49ecdc=_0x19e760[_0x2bfb02];return _0x49ecdc;}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a291_0x19e7(){var _0x3cdea3=['2999304ecQGfL','3PBAuGM','539JQwOGo','3686775yTSDDi','318748DMoubX','1408724QZFFPY','88FLxOyj','20YZRpzE','1jtLGfs','102429qsBUkm','2732412CXpDSa','75832gYFpHr'];a291_0x19e7=function(){return _0x3cdea3;};return a291_0x19e7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x54eb22,_0x32be2b){var _0x432b49=a292_0xe69b,_0x5707b1=_0x54eb22();while(!![]){try{var _0x284614=-parseInt(_0x432b49(0x144))/0x1+-parseInt(_0x432b49(0x143))/0x2*(parseInt(_0x432b49(0x146))/0x3)+-parseInt(_0x432b49(0x141))/0x4+-parseInt(_0x432b49(0x145))/0x5+parseInt(_0x432b49(0x13e))/0x6+-parseInt(_0x432b49(0x140))/0x7*(parseInt(_0x432b49(0x147))/0x8)+-parseInt(_0x432b49(0x142))/0x9*(-parseInt(_0x432b49(0x13f))/0xa);if(_0x284614===_0x32be2b)break;else _0x5707b1['push'](_0x5707b1['shift']());}catch(_0x5492af){_0x5707b1['push'](_0x5707b1['shift']());}}}(a292_0xbb08,0xc2809));function a292_0xbb08(){var _0x2bde10=['2pgFUsq','381190dXsBpG','7204980UzdbMB','1202037ONXVZx','8ZbsKDh','9111288dQUWbM','396860Uqnyzm','419699BDGzfQ','105940MERmBG','360UjvfPL'];a292_0xbb08=function(){return _0x2bde10;};return a292_0xbb08();}function a292_0xe69b(_0x26c255,_0x40e025){_0x26c255=_0x26c255-0x13e;var _0xbb08e9=a292_0xbb08();var _0xe69bb1=_0xbb08e9[_0x26c255];return _0xe69bb1;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x444e34,_0x4bfa64){setActiveCookie(_0x444e34);try{return await _0x4bfa64();}finally{clearActiveCookie();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a293_0x2181(_0xe283e2,_0x386e12){_0xe283e2=_0xe283e2-0x1cd;var _0x179a44=a293_0x179a();var _0x218144=_0x179a44[_0xe283e2];return _0x218144;}function a293_0x179a(){var _0x5f33f9=['152027UPWtQp','2ALnHWf','write','5635449almJFX','3906ddbBqw','stderr','3539870nolXlw','932224AwxcgY','1090716CXWGAU','8504WuBcri','2629818YkTRHR'];a293_0x179a=function(){return _0x5f33f9;};return a293_0x179a();}(function(_0x57b94b,_0x2ef693){var _0x9a2462=a293_0x2181,_0x4670ed=_0x57b94b();while(!![]){try{var _0x3a10f6=parseInt(_0x9a2462(0x1d5))/0x1*(parseInt(_0x9a2462(0x1d6))/0x2)+parseInt(_0x9a2462(0x1d2))/0x3+-parseInt(_0x9a2462(0x1d1))/0x4+-parseInt(_0x9a2462(0x1d0))/0x5+-parseInt(_0x9a2462(0x1d4))/0x6+parseInt(_0x9a2462(0x1ce))/0x7*(parseInt(_0x9a2462(0x1d3))/0x8)+parseInt(_0x9a2462(0x1cd))/0x9;if(_0x3a10f6===_0x2ef693)break;else _0x4670ed['push'](_0x4670ed['shift']());}catch(_0x583b8d){_0x4670ed['push'](_0x4670ed['shift']());}}}(a293_0x179a,0x56cfd));export function writeCliSideChannelLine(_0x4e4db7){var _0x44cc0b=a293_0x2181;process[_0x44cc0b(0x1cf)][_0x44cc0b(0x1d7)](_0x4e4db7+'\x0a');}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/rabetbase-cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "Developer CLI for Lovrabet apps, datasets, pages, SQL, BFF, database connections, skills, and AI agent workflows.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"keywords": [
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
"engines": {
|
|
38
|
-
"node": ">=20"
|
|
38
|
+
"node": ">=22.20"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
|
-
"prebuild": "node scripts/generate-build-info.js",
|
|
41
|
+
"prebuild": "node scripts/generate-build-info.js && node scripts/generate-builtin-skill-manifest.mjs --check",
|
|
42
42
|
"build": "rm -rf lib && tsc && tsc-alias && javascript-obfuscator lib --output lib",
|
|
43
43
|
"prebuild:dev": "node scripts/generate-build-info.js",
|
|
44
44
|
"build:dev": "rm -rf lib && tsc && tsc-alias",
|
|
@@ -64,6 +64,9 @@
|
|
|
64
64
|
"test:windows:integration": "node test/run-windows-tests.js integration",
|
|
65
65
|
"typecheck": "tsc --noEmit",
|
|
66
66
|
"publish:github": "node scripts/publish-github.mjs",
|
|
67
|
+
"generate:builtin-skill-manifest": "node scripts/generate-builtin-skill-manifest.mjs",
|
|
68
|
+
"check:builtin-skill-manifest": "node scripts/generate-builtin-skill-manifest.mjs --check",
|
|
69
|
+
"postinstall": "node scripts/postinstall.mjs",
|
|
67
70
|
"lint": "echo 'No linter configured yet'",
|
|
68
71
|
"check:skill-version": "node scripts/check-skill-version.mjs",
|
|
69
72
|
"ci": "npm run typecheck && npm run check:skill-version && npm run test:run && npm run build"
|
|
@@ -73,6 +76,9 @@
|
|
|
73
76
|
},
|
|
74
77
|
"files": [
|
|
75
78
|
"lib",
|
|
79
|
+
"skills/rabetbase",
|
|
80
|
+
"skills/rabetbase.manifest.json",
|
|
81
|
+
"scripts/postinstall.mjs",
|
|
76
82
|
"templates",
|
|
77
83
|
"sidecar",
|
|
78
84
|
"README.md",
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { existsSync } from "node:fs";
|
|
3
|
+
import { dirname, join, resolve } from "node:path";
|
|
4
|
+
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
5
|
+
|
|
6
|
+
const root = resolve(dirname(fileURLToPath(import.meta.url)), "..");
|
|
7
|
+
const entry = join(root, "lib", "postinstall.js");
|
|
8
|
+
|
|
9
|
+
if (!existsSync(entry)) {
|
|
10
|
+
if (existsSync(join(root, "src", "postinstall.ts"))) {
|
|
11
|
+
console.log("Skipping Built-in Skill postinstall in an unbuilt source checkout.");
|
|
12
|
+
} else {
|
|
13
|
+
console.error("[BUILTIN_SKILL_INSTALL_SOURCE_MISSING] Missing lib/postinstall.js");
|
|
14
|
+
process.exitCode = 1;
|
|
15
|
+
}
|
|
16
|
+
} else {
|
|
17
|
+
try {
|
|
18
|
+
const { runPostinstall } = await import(pathToFileURL(entry).href);
|
|
19
|
+
await runPostinstall();
|
|
20
|
+
} catch (error) {
|
|
21
|
+
console.error(error instanceof Error ? error.message : String(error));
|
|
22
|
+
process.exitCode = 1;
|
|
23
|
+
}
|
|
24
|
+
}
|