@lovrabet/rabetbase-cli 2.3.16-beta.7 → 2.4.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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
|
-
|
|
1
|
+
(function(_0x1fb3e9,_0x33b6b7){const _0x1d6d9f=a287_0x601d,_0x1b1194=_0x1fb3e9();while(!![]){try{const _0x4e534a=parseInt(_0x1d6d9f(0xdf))/0x1+parseInt(_0x1d6d9f(0xd0))/0x2+-parseInt(_0x1d6d9f(0xd5))/0x3*(-parseInt(_0x1d6d9f(0xd7))/0x4)+-parseInt(_0x1d6d9f(0xdd))/0x5+-parseInt(_0x1d6d9f(0xd6))/0x6*(parseInt(_0x1d6d9f(0xd9))/0x7)+parseInt(_0x1d6d9f(0xda))/0x8+-parseInt(_0x1d6d9f(0xd2))/0x9*(parseInt(_0x1d6d9f(0xe2))/0xa);if(_0x4e534a===_0x33b6b7)break;else _0x1b1194['push'](_0x1b1194['shift']());}catch(_0x44dc88){_0x1b1194['push'](_0x1b1194['shift']());}}}(a287_0x2492,0x2d597));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';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 a287_0x601d(_0x3f8afd,_0x5c649a){_0x3f8afd=_0x3f8afd-0xca;const _0x249266=a287_0x2492();let _0x601d19=_0x249266[_0x3f8afd];return _0x601d19;}function getRulesCdnUrl(){const _0x336037=a287_0x601d,_0x2e3126=getTemplateBaseUrl();return _0x2e3126+_0x336037(0xd8);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x3dac15=a287_0x601d,_0x260783=getRulesCdnUrl(),_0x10881a=await fetch(_0x260783,{'headers':{'Accept':_0x3dac15(0xcc)}});if(!_0x10881a['ok'])throw new Error(_0x3dac15(0xca)+_0x10881a[_0x3dac15(0xd1)]+'\x20'+_0x10881a[_0x3dac15(0xe0)]);const _0x10b720=await _0x10881a[_0x3dac15(0xcd)]();if(!_0x10b720[_0x3dac15(0xde)]||typeof _0x10b720[_0x3dac15(0xde)]!==_0x3dac15(0xdc))throw new Error(_0x3dac15(0xcb));return _0x10b720;}export async function getRulesContent(){const _0x467d62=a287_0x601d;try{const _0x1b753b=await fetchRulesFromCDN();return _0x1b753b[_0x467d62(0xde)];}catch{return readLocalTemplate();}}function a287_0x2492(){const _0x6aed87=['398054GeyrQz','status','2547PUAoBt','catch','.cursor/rules','3xCPfaY','30LPhDIM','1245700xRRAKg','/rules/rules.json','223489oWtQDt','1031680XYOeED','lastUpdated','string','1398440wDVhkG','content','282529KCDvLw','statusText','utf-8','10490yvXGbj','CDN\x20请求失败:\x20','CDN\x20返回数据格式错误','application/json','json','lovrabet_rules.mdc','agents.md'];a287_0x2492=function(){return _0x6aed87;};return a287_0x2492();}export function readLocalTemplate(){const _0x9c28af=a287_0x601d;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x9c28af(0xe1));throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x3f29e8){const _0x3e6e17=a287_0x601d,_0x1191e5=await fetchRulesFromCDN()[_0x3e6e17(0xd3)](()=>null);let _0x59c68d;_0x1191e5?(_0x59c68d=_0x1191e5[_0x3e6e17(0xde)],_0x1191e5[_0x3e6e17(0xdb)]&&(_0x59c68d=appendUpdateTime(_0x59c68d,_0x1191e5[_0x3e6e17(0xdb)]))):_0x59c68d=readLocalTemplate();const _0x2ccc12=dirname(_0x3f29e8);!existsSync(_0x2ccc12)&&mkdirSync(_0x2ccc12,{'recursive':!![]}),writeFileSync(_0x3f29e8,_0x59c68d,_0x3e6e17(0xe1));}export async function copyRulesToCursor(_0x12d6b8){const _0x1a437e=a287_0x601d,_0x2cc966=join(_0x12d6b8,_0x1a437e(0xd4)),_0x4ab98f=join(_0x2cc966,_0x1a437e(0xce));if(existsSync(_0x4ab98f))return![];return await writeRulesFile(_0x4ab98f),!![];}export async function copyRulesToAgentsMd(_0x1e38c2){const _0x28bc6c=a287_0x601d,_0x3b8a6f=join(_0x1e38c2,_0x28bc6c(0xcf));if(existsSync(_0x3b8a6f))return![];return await writeRulesFile(_0x3b8a6f),!![];}
|
package/lib/utils/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function sleep(
|
|
1
|
+
export function sleep(_0x5d35a7){return new Promise(_0x39425d=>setTimeout(_0x39425d,_0x5d35a7));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a289_0x3b56(_0x286627,_0x142360){_0x286627=_0x286627-0x135;const _0x4386f9=a289_0x4386();let _0x3b563f=_0x4386f9[_0x286627];return _0x3b563f;}const a289_0x1b0148=a289_0x3b56;(function(_0x3eae02,_0x192b9b){const _0x10cecc=a289_0x3b56,_0x1a03bb=_0x3eae02();while(!![]){try{const _0x26cd74=-parseInt(_0x10cecc(0x147))/0x1*(-parseInt(_0x10cecc(0x14d))/0x2)+-parseInt(_0x10cecc(0x13b))/0x3+-parseInt(_0x10cecc(0x15f))/0x4+-parseInt(_0x10cecc(0x138))/0x5+parseInt(_0x10cecc(0x171))/0x6+parseInt(_0x10cecc(0x175))/0x7+-parseInt(_0x10cecc(0x16d))/0x8;if(_0x26cd74===_0x192b9b)break;else _0x1a03bb['push'](_0x1a03bb['shift']());}catch(_0x2969af){_0x1a03bb['push'](_0x1a03bb['shift']());}}}(a289_0x4386,0x52da5));function a289_0x4386(){const _0x45dd8e=['toISOString','4750641jyTQzn','processTemplate','toLowerCase','processDirectory','api','2573095AlnzYs','toDisplayTitle','name:\x20\x22','1177680ISRMQO','now','.css','name','replace','includes','.tpl','readdir','success','isDirectory','error','default','486281RuGoCd','readFile','extname','alias','map','tableName','2uadKLe','info','message','.js','alias:\x20\x22','processFile','replaceContent','toUpperCase','split','\x20},','.scss','join','isFile','datasetCode:\x20\x22','LOVRABET','开始处理模板内容替换','datasetCode','utf8','1608832qUPiBY','toComponentName','.tsx','pop','getHours','slice','promises','.md','charAt','padStart','endsWith','template','formatLocalTimestamp','mkdir','914968nhuvSq','pad','getMinutes','getFullYear','3589074gSbPgP','.jsx','push'];a289_0x4386=function(){return _0x45dd8e;};return a289_0x4386();}import a289_0x3def03 from'node:fs';import a289_0x22369f from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a289_0x1b0148(0x16e)](_0x4a4873){const _0x307828=a289_0x1b0148;return String(_0x4a4873)[_0x307828(0x168)](0x2,'0');}static[a289_0x1b0148(0x16b)](_0x3dc7b7){const _0x33d928=a289_0x1b0148,_0x176b7b=_0x3dc7b7[_0x33d928(0x170)](),_0x447bad=this[_0x33d928(0x16e)](_0x3dc7b7['getMonth']()+0x1),_0x22e1cc=this['pad'](_0x3dc7b7['getDate']()),_0x46cb69=this[_0x33d928(0x16e)](_0x3dc7b7[_0x33d928(0x163)]()),_0x2f6a85=this[_0x33d928(0x16e)](_0x3dc7b7[_0x33d928(0x16f)]()),_0x1def37=this['pad'](_0x3dc7b7['getSeconds']());return{'createdAt':_0x176b7b+'-'+_0x447bad+'-'+_0x22e1cc+'\x20'+_0x46cb69+':'+_0x2f6a85+':'+_0x1def37,'createdDate':_0x176b7b+'-'+_0x447bad+'-'+_0x22e1cc,'createdTime':_0x46cb69+':'+_0x2f6a85+':'+_0x1def37};}static[a289_0x1b0148(0x160)](_0x16d1be){const _0x29c614=a289_0x1b0148,_0x794111=_0x16d1be[_0x29c614(0x155)]('/')[_0x29c614(0x162)]()||_0x16d1be;return _0x794111[_0x29c614(0x155)]('-')['map'](_0x28b310=>_0x28b310[_0x29c614(0x167)](0x0)[_0x29c614(0x154)]()+_0x28b310[_0x29c614(0x164)](0x1)[_0x29c614(0x135)]())[_0x29c614(0x158)]('');}static[a289_0x1b0148(0x139)](_0x12dd6d){const _0x4784e6=a289_0x1b0148,_0x52e4ee=_0x12dd6d[_0x4784e6(0x155)]('/')[_0x4784e6(0x162)]()||_0x12dd6d;return _0x52e4ee[_0x4784e6(0x155)]('-')[_0x4784e6(0x14b)](_0x2d96bb=>_0x2d96bb[_0x4784e6(0x167)](0x0)[_0x4784e6(0x154)]()+_0x2d96bb[_0x4784e6(0x164)](0x1)[_0x4784e6(0x135)]())[_0x4784e6(0x158)]('\x20');}static['replaceContent'](_0x8aec09,_0x339867,_0x230d82){const _0x4b6857=a289_0x1b0148,_0x555f78=this[_0x4b6857(0x160)](_0x339867),_0x23c3bd=this[_0x4b6857(0x139)](_0x339867),{createdAt:_0x460856,createdDate:_0x27b7de,createdTime:_0x3a1b9d}=this['formatLocalTimestamp'](new Date());let _0x2a2faf=_0x8aec09[_0x4b6857(0x13f)](/\{CliVersion\}/g,CLI_VERSION)[_0x4b6857(0x13f)](/\{ComponentName\}/g,_0x555f78)['replace'](/\{DisplayTitle\}/g,_0x23c3bd)[_0x4b6857(0x13f)](/\{PageName\}/g,_0x339867)[_0x4b6857(0x13f)](/\{TemplateName\}/g,_0x230d82)[_0x4b6857(0x13f)](/\{CreatedAt\}/g,_0x460856)[_0x4b6857(0x13f)](/\{CreatedDate\}/g,_0x27b7de)[_0x4b6857(0x13f)](/\{CreatedTime\}/g,_0x3a1b9d);return _0x2a2faf;}static['replaceApiContent'](_0x1117be,_0x543d77,_0x4cdadc,_0x1a9c7f,_0x6da936,_0x3933dd,_0x4bc629,_0x3b84ba){const _0x34090f=a289_0x1b0148,_0x2a480e=new Date(),_0x3cc11d=_0x2a480e[_0x34090f(0x174)](),_0x17dc3d=_0x4cdadc[_0x34090f(0x14b)](_0x17cf8e=>{const _0x319b78=_0x34090f,_0x46f0fe=[_0x319b78(0x15a)+_0x17cf8e[_0x319b78(0x15d)]+'\x22','tableName:\x20\x22'+_0x17cf8e[_0x319b78(0x14c)]+'\x22',_0x319b78(0x13a)+_0x17cf8e[_0x319b78(0x13e)]+'\x22'];return _0x17cf8e[_0x319b78(0x14a)]&&_0x46f0fe[_0x319b78(0x173)](_0x319b78(0x151)+_0x17cf8e[_0x319b78(0x14a)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x46f0fe[_0x319b78(0x158)](',\x20')+_0x319b78(0x156);})[_0x34090f(0x158)](''),_0x56169e=_0x1a9c7f||_0x4cdadc[0x0]?.[_0x34090f(0x14a)]||'YourModel';let _0x41779c=_0x1117be[_0x34090f(0x13f)](/\{AppCode\}/g,_0x543d77)[_0x34090f(0x13f)](/\{ModelConfigs\}/g,_0x17dc3d)[_0x34090f(0x13f)](/\{ExampleModelName\}/g,_0x56169e)[_0x34090f(0x13f)](/\{ApiFileName\}/g,_0x6da936||_0x34090f(0x137))[_0x34090f(0x13f)](/\{ConfigName\}/g,_0x3933dd||_0x34090f(0x146))[_0x34090f(0x13f)](/\{ClientConfigParam\}/g,_0x4bc629||'')[_0x34090f(0x13f)](/\{VarPrefix\}/g,_0x3b84ba||_0x34090f(0x15b))[_0x34090f(0x13f)](/\{CreatedAt\}/g,_0x3cc11d);return _0x41779c;}static async[a289_0x1b0148(0x176)](_0x5342ae,_0x402d6b,_0x280b54,_0xe56609,_0x5137ed=!![]){const _0x569ddc=a289_0x1b0148,_0x4707d1=Date[_0x569ddc(0x13c)]();try{_0x5137ed&&logger[_0x569ddc(0x14e)]('template',_0x569ddc(0x15c),{'templatePath':_0x5342ae,'targetPath':_0x402d6b,'pageName':_0x280b54,'templateName':_0xe56609});await a289_0x3def03[_0x569ddc(0x165)][_0x569ddc(0x16c)](_0x402d6b,{'recursive':!![]}),await this[_0x569ddc(0x136)](_0x5342ae,_0x402d6b,_0x280b54,_0xe56609);if(_0x5137ed){const _0x54edbe=Date[_0x569ddc(0x13c)]()-_0x4707d1;logger[_0x569ddc(0x143)](_0x569ddc(0x16a),'模板内容替换完成',_0x54edbe,{'pageName':_0x280b54,'templateName':_0xe56609});}}catch(_0x3559fa){if(_0x5137ed){const _0x4ff124=Date['now']()-_0x4707d1;logger[_0x569ddc(0x145)](_0x569ddc(0x16a),'模板内容替换失败',{'templatePath':_0x5342ae,'targetPath':_0x402d6b,'pageName':_0x280b54,'templateName':_0xe56609,'error':_0x3559fa instanceof Error?_0x3559fa[_0x569ddc(0x14f)]:String(_0x3559fa),'duration':_0x4ff124});}throw _0x3559fa;}}static async[a289_0x1b0148(0x136)](_0x4d722f,_0x1d8635,_0x2c9b93,_0x1f26d4){const _0x3048b1=a289_0x1b0148,_0x43b7fd=await a289_0x3def03[_0x3048b1(0x165)][_0x3048b1(0x142)](_0x4d722f,{'withFileTypes':!![]});for(const _0x503a89 of _0x43b7fd){const _0x28f36b=a289_0x22369f[_0x3048b1(0x158)](_0x4d722f,_0x503a89[_0x3048b1(0x13e)]);let _0x1243ce=a289_0x22369f[_0x3048b1(0x158)](_0x1d8635,_0x503a89[_0x3048b1(0x13e)]);_0x503a89[_0x3048b1(0x13e)][_0x3048b1(0x169)](_0x3048b1(0x141))&&(_0x1243ce=a289_0x22369f[_0x3048b1(0x158)](_0x1d8635,_0x503a89[_0x3048b1(0x13e)][_0x3048b1(0x13f)](/\.tpl$/,'')));if(_0x503a89[_0x3048b1(0x144)]())await a289_0x3def03[_0x3048b1(0x165)]['mkdir'](_0x1243ce,{'recursive':!![]}),await this[_0x3048b1(0x136)](_0x28f36b,_0x1243ce,_0x2c9b93,_0x1f26d4);else _0x503a89[_0x3048b1(0x159)]()&&await this['processFile'](_0x28f36b,_0x1243ce,_0x2c9b93,_0x1f26d4);}}static async[a289_0x1b0148(0x152)](_0x30a16a,_0x45546f,_0x42bf82,_0x443c88){const _0x5283ea=a289_0x1b0148,_0x3e4e6a=a289_0x22369f[_0x5283ea(0x149)](_0x30a16a)[_0x5283ea(0x135)]();_0x30a16a['endsWith']('.tpl')&&(_0x45546f=_0x45546f[_0x5283ea(0x13f)](/\.tpl$/,''));const _0x185037=[_0x5283ea(0x161),'.ts',_0x5283ea(0x172),_0x5283ea(0x150),'.json',_0x5283ea(0x166),_0x5283ea(0x13d),_0x5283ea(0x157),'.tpl'];if(_0x185037[_0x5283ea(0x140)](_0x3e4e6a)||_0x30a16a[_0x5283ea(0x169)](_0x5283ea(0x141))){const _0x4da7da=await a289_0x3def03[_0x5283ea(0x165)][_0x5283ea(0x148)](_0x30a16a,_0x5283ea(0x15e)),_0x5d0f54=this[_0x5283ea(0x153)](_0x4da7da,_0x42bf82,_0x443c88);await a289_0x3def03[_0x5283ea(0x165)]['writeFile'](_0x45546f,_0x5d0f54,_0x5283ea(0x15e));}else await a289_0x3def03[_0x5283ea(0x165)]['copyFile'](_0x30a16a,_0x45546f);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x179611,_0x4591f7){const _0x41ce10=a290_0x30a1,_0x3d7af2=_0x179611();while(!![]){try{const _0x1ed763=-parseInt(_0x41ce10(0x66))/0x1+parseInt(_0x41ce10(0x7c))/0x2+parseInt(_0x41ce10(0x78))/0x3*(parseInt(_0x41ce10(0x73))/0x4)+parseInt(_0x41ce10(0x77))/0x5*(parseInt(_0x41ce10(0x69))/0x6)+parseInt(_0x41ce10(0x68))/0x7+-parseInt(_0x41ce10(0x6b))/0x8+parseInt(_0x41ce10(0x72))/0x9;if(_0x1ed763===_0x4591f7)break;else _0x3d7af2['push'](_0x3d7af2['shift']());}catch(_0x4ed302){_0x3d7af2['push'](_0x3d7af2['shift']());}}}(a290_0x1ce2,0x63f5b));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a290_0xa9ad6b from'semver';function a290_0x1ce2(){const _0x15f72f=['latest','/v/','lastNotifiedAt','4244625HTUPkc','608wOMAXI','parse','update-check.json','stableVersion','376495tKxinn','516TbbtYC','utf8','yes',',\x20run:\x20','826020JlKghD','trim','valid','checkedAt','gte','now','\x20available,\x20current\x20','356099sKAlZB','.cache','2942884mWGEVF','18NAivsl','\x20update','6332432cGpNVg','object','toLowerCase','number'];a290_0x1ce2=function(){return _0x15f72f;};return a290_0x1ce2();}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 _0x398ce2=a290_0x30a1,_0x55587d=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x398ce2(0x7d)]()[_0x398ce2(0x6d)]();return _0x55587d==='1'||_0x55587d==='true'||_0x55587d===_0x398ce2(0x7a);}function cacheRoot(){const _0x411263=a290_0x30a1;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x411263(0x67));}export function getUpdateNoticeCachePath(){const _0x1d33d7=a290_0x30a1;return join(cacheRoot(),'rabetbase-cli',_0x1d33d7(0x75));}async function readUpdateNoticeCache(){const _0x37c878=a290_0x30a1;try{const _0x426d6e=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x2b87c1=JSON[_0x37c878(0x74)](_0x426d6e);if(!_0x2b87c1||typeof _0x2b87c1!==_0x37c878(0x6c))return{};return _0x2b87c1;}catch{return{};}}async function writeUpdateNoticeCache(_0x3a0263){const _0xf3930c=a290_0x30a1;try{const _0x188e3a=getUpdateNoticeCachePath();await mkdir(dirname(_0x188e3a),{'recursive':!![]}),await writeFile(_0x188e3a,JSON['stringify'](_0x3a0263,null,0x2)+'\x0a',_0xf3930c(0x79));}catch{}}function a290_0x30a1(_0x20772e,_0x1dd6ad){_0x20772e=_0x20772e-0x64;const _0x1ce22e=a290_0x1ce2();let _0x30a143=_0x1ce22e[_0x20772e];return _0x30a143;}function isFreshCheck(_0x22fb9c,_0x12d6a0){const _0xc1cf1d=a290_0x30a1;return typeof _0x22fb9c[_0xc1cf1d(0x7f)]===_0xc1cf1d(0x6e)&&_0x12d6a0-_0x22fb9c[_0xc1cf1d(0x7f)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x49c42a,_0x2d9cc2,_0x3f8dcd){const _0x12b422=a290_0x30a1;return _0x49c42a['lastNotifiedVersion']===_0x2d9cc2&&typeof _0x49c42a[_0x12b422(0x71)]===_0x12b422(0x6e)&&_0x3f8dcd-_0x49c42a[_0x12b422(0x71)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0xe55e66){const _0x53078e=a290_0x30a1;return'https://www.npmjs.com/package/'+NPM_PACKAGE_NAME+_0x53078e(0x70)+_0xe55e66;}export async function resolveLatestUpdateNotice(){const _0x4b3581=a290_0x30a1;if(isUpdateNoticeDisabled())return null;try{const _0x4b1e57=Date[_0x4b3581(0x64)](),_0x4db048=getCliVersion(),_0x526a4d=await readUpdateNoticeCache();let _0x4f66c6=isFreshCheck(_0x526a4d,_0x4b1e57)?_0x526a4d[_0x4b3581(0x6f)]?.[_0x4b3581(0x7d)]():undefined;if(!_0x4f66c6&&!isFreshCheck(_0x526a4d,_0x4b1e57)){const _0x4b64e7=await getCliVersionPolicy();_0x4f66c6=_0x4b64e7?.[_0x4b3581(0x76)]?.[_0x4b3581(0x7d)]()||undefined,await writeUpdateNoticeCache({..._0x526a4d,'checkedAt':_0x4b1e57,'latest':_0x4f66c6,'failed':!_0x4f66c6});}if(!_0x4f66c6||!a290_0xa9ad6b[_0x4b3581(0x7e)](_0x4db048)||!a290_0xa9ad6b[_0x4b3581(0x7e)](_0x4f66c6))return null;if(a290_0xa9ad6b[_0x4b3581(0x80)](_0x4db048,_0x4f66c6))return null;if(isRecentlyNotified(_0x526a4d,_0x4f66c6,_0x4b1e57))return null;const _0x396a77=CLI_BIN_NAME+_0x4b3581(0x6a);return await writeUpdateNoticeCache({..._0x526a4d,'checkedAt':isFreshCheck(_0x526a4d,_0x4b1e57)?_0x526a4d['checkedAt']:_0x4b1e57,'latest':_0x4f66c6,'failed':![],'lastNotifiedVersion':_0x4f66c6,'lastNotifiedAt':_0x4b1e57}),{'command':_0x396a77,'current':_0x4db048,'latest':_0x4f66c6,'url':buildNpmVersionUrl(_0x4f66c6),'message':CLI_BIN_NAME+'\x20'+_0x4f66c6+_0x4b3581(0x65)+_0x4db048+_0x4b3581(0x7b)+_0x396a77};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a291_0x3ab1(_0x238705,_0x5cb83f){_0x238705=_0x238705-0x85;var _0x2ac38e=a291_0x2ac3();var _0x3ab123=_0x2ac38e[_0x238705];return _0x3ab123;}(function(_0x345277,_0x44e391){var _0x5f4073=a291_0x3ab1,_0x25e794=_0x345277();while(!![]){try{var _0x3d4758=parseInt(_0x5f4073(0x87))/0x1+parseInt(_0x5f4073(0x8d))/0x2+parseInt(_0x5f4073(0x8c))/0x3+parseInt(_0x5f4073(0x89))/0x4+parseInt(_0x5f4073(0x85))/0x5+-parseInt(_0x5f4073(0x8b))/0x6*(-parseInt(_0x5f4073(0x86))/0x7)+-parseInt(_0x5f4073(0x8a))/0x8*(parseInt(_0x5f4073(0x88))/0x9);if(_0x3d4758===_0x44e391)break;else _0x25e794['push'](_0x25e794['shift']());}catch(_0x2da200){_0x25e794['push'](_0x25e794['shift']());}}}(a291_0x2ac3,0x753be));function a291_0x2ac3(){var _0x29331e=['199238pAZgRO','426834iSTKqm','3399208NxIwra','536oZzUON','24rUIvPE','2850267WhZKuu','1583650pMyYDH','135110JCodNq','1469573zKBukA'];a291_0x2ac3=function(){return _0x29331e;};return a291_0x2ac3();}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4907fb,_0x46dc9d){var _0x2bc4e4=a292_0x234b,_0x20474f=_0x4907fb();while(!![]){try{var _0x46e1fb=-parseInt(_0x2bc4e4(0x10f))/0x1+parseInt(_0x2bc4e4(0x110))/0x2*(parseInt(_0x2bc4e4(0x10e))/0x3)+-parseInt(_0x2bc4e4(0x113))/0x4+-parseInt(_0x2bc4e4(0x115))/0x5*(parseInt(_0x2bc4e4(0x10d))/0x6)+-parseInt(_0x2bc4e4(0x111))/0x7*(-parseInt(_0x2bc4e4(0x112))/0x8)+parseInt(_0x2bc4e4(0x10c))/0x9*(parseInt(_0x2bc4e4(0x114))/0xa)+parseInt(_0x2bc4e4(0x116))/0xb;if(_0x46e1fb===_0x46dc9d)break;else _0x20474f['push'](_0x20474f['shift']());}catch(_0x1735a1){_0x20474f['push'](_0x20474f['shift']());}}}(a292_0x32ab,0x74712));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a292_0x234b(_0x56bc9d,_0x39e3d5){_0x56bc9d=_0x56bc9d-0x10c;var _0x32ab04=a292_0x32ab();var _0x234b9c=_0x32ab04[_0x56bc9d];return _0x234b9c;}function a292_0x32ab(){var _0x55849c=['683046DwiUGC','2iFMeNl','49KHFEer','260904ZOkIHz','2728388KQyXpe','12270ZKXEhw','1996925RERTpX','10007701PQcEMF','6543mFUkYF','12loVhKN','1832244RARdzi'];a292_0x32ab=function(){return _0x55849c;};return a292_0x32ab();}export async function withActiveCookie(_0x3d7aa4,_0x12ca0d){setActiveCookie(_0x3d7aa4);try{return await _0x12ca0d();}finally{clearActiveCookie();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a293_0x11ae(_0x558fb1,_0x3047c8){_0x558fb1=_0x558fb1-0xc8;var _0xb1c025=a293_0xb1c0();var _0x11aec7=_0xb1c025[_0x558fb1];return _0x11aec7;}(function(_0x32e51d,_0x7e3f1b){var _0x95cf88=a293_0x11ae,_0x2f72a4=_0x32e51d();while(!![]){try{var _0x230e71=-parseInt(_0x95cf88(0xd0))/0x1+parseInt(_0x95cf88(0xc9))/0x2+parseInt(_0x95cf88(0xd1))/0x3+-parseInt(_0x95cf88(0xc8))/0x4*(parseInt(_0x95cf88(0xce))/0x5)+-parseInt(_0x95cf88(0xca))/0x6+-parseInt(_0x95cf88(0xcb))/0x7*(-parseInt(_0x95cf88(0xcf))/0x8)+parseInt(_0x95cf88(0xcc))/0x9*(parseInt(_0x95cf88(0xcd))/0xa);if(_0x230e71===_0x7e3f1b)break;else _0x2f72a4['push'](_0x2f72a4['shift']());}catch(_0x1c2831){_0x2f72a4['push'](_0x2f72a4['shift']());}}}(a293_0xb1c0,0x33de3));export function writeCliSideChannelLine(_0x258c28){var _0x412128=a293_0x11ae;process[_0x412128(0xd2)]['write'](_0x258c28+'\x0a');}function a293_0xb1c0(){var _0xaf931d=['2101098wzVuds','7bvPhes','9qLhafz','5970320KqarZF','15EFCUVv','1729688xbxmdi','347213ibKxol','363750VtTvjI','stderr','157068prpXMz','186310nXPdBW'];a293_0xb1c0=function(){return _0xaf931d;};return a293_0xb1c0();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/rabetbase-cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.1-beta.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
|
+
}
|