@lovrabet/rabetbase-cli 2.5.4-beta.5 → 2.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a330_0x12f9fc=a330_0x557e;(function(_0x171582,_0xf1c4f4){const _0x68e5dd=a330_0x557e,_0x1d7d42=_0x171582();while(!![]){try{const _0x17ed28=parseInt(_0x68e5dd(0x1ad))/0x1+-parseInt(_0x68e5dd(0x1a6))/0x2*(parseInt(_0x68e5dd(0x18a))/0x3)+parseInt(_0x68e5dd(0x196))/0x4+-parseInt(_0x68e5dd(0x19e))/0x5+-parseInt(_0x68e5dd(0x187))/0x6+-parseInt(_0x68e5dd(0x1af))/0x7*(parseInt(_0x68e5dd(0x18f))/0x8)+parseInt(_0x68e5dd(0x1ae))/0x9;if(_0x17ed28===_0xf1c4f4)break;else _0x1d7d42['push'](_0x1d7d42['shift']());}catch(_0x5de87e){_0x1d7d42['push'](_0x1d7d42['shift']());}}}(a330_0x2995,0xa63b7));import{execaSync}from'execa';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';function a330_0x557e(_0x365325,_0x246173){_0x365325=_0x365325-0x185;const _0x299506=a330_0x2995();let _0x557ebb=_0x299506[_0x365325];return _0x557ebb;}export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills@latest';export const NPX_SKILLS_SUBCOMMAND_ADD=a330_0x12f9fc(0x18e);export const NPX_SKILLS_FLAG_SKILL=a330_0x12f9fc(0x195);export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const RABETBASE_GLOBAL_SKILL_NAME='rabetbase';export const RABETBASE_SKILL_GIT_SOURCE=a330_0x12f9fc(0x1a5);export function resolveGlobalSkillName(_0x33940b){const _0x3de8e5=a330_0x12f9fc;switch(_0x33940b[_0x3de8e5(0x19c)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x52a348){const _0x57c854=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x52a348&&_0x57c854['push'](NPX_SKILLS_FLAG_SKILL,_0x52a348),_0x57c854;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()][a330_0x12f9fc(0x1a4)]('\x20');function a330_0x2995(){const _0x417f69=['trim','signal','2374360TzUEyi','filter','state','Skill\x20\x22','warn','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','join','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','2gtacbV','unverifiable','NPM_CONFIG_GLOBAL','match','npx\x20failed\x20to\x20start','\x20failed\x20target(s)','expectedSkillName','535765EREkYh','21719097PaOBHX','1385699LeLDnz','absent','npx','stdout','EACCES','presence','unknown','\x22\x20install\x20state:\x20','code','shortMessage','exit\x20','log','reason','6608052rgcJdC','CHILD_EXIT_NONZERO','ENOENT','2416569EFCeNx','pipe','SPAWN_FAILED','failed','add','24MyXhUS','exitCode','checked','skill','!\x20Could\x20not\x20verify\x20\x22','message','--skill','2829988vVjeiP','EPERM','stderr','stdio','Installer\x20reported\x20','npm_config_global'];a330_0x2995=function(){return _0x417f69;};return a330_0x2995();}export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a330_0x12f9fc(0x1b1),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x42ae53,_0x33e824,_0x21d4a5){return{'ok':![],'status':_0x33e824,'code':_0x42ae53,'error':'['+_0x42ae53+']\x20'+_0x21d4a5};}function execaOptions(_0x35daa1,_0x1cace8){const _0x236aa7=a330_0x12f9fc,_0x5d6b98={...process.env};return delete _0x5d6b98[_0x236aa7(0x19b)],delete _0x5d6b98[_0x236aa7(0x1a8)],{'cwd':_0x35daa1,'stdio':_0x1cace8,'env':_0x5d6b98,'extendEnv':![],'shell':![],'reject':![],..._0x1cace8===_0x236aa7(0x18b)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeExecaResult(_0x11231f,_0x3b46e0,_0x1ef3e0){const _0x5e0fc5=a330_0x12f9fc,_0x448ebd=[_0x11231f['stdout']?String(_0x11231f[_0x5e0fc5(0x1b2)]):'',_0x11231f[_0x5e0fc5(0x198)]?String(_0x11231f[_0x5e0fc5(0x198)]):''][_0x5e0fc5(0x19f)](Boolean)[_0x5e0fc5(0x1a4)]('\x0a')[_0x5e0fc5(0x19c)](),_0x51d16f=_0x11231f[_0x5e0fc5(0x190)]??null;if(_0x11231f['code']){const _0x4fee5e=_0x11231f[_0x5e0fc5(0x1b7)]===_0x5e0fc5(0x189)?'NPX_NOT_FOUND':_0x11231f['code']===_0x5e0fc5(0x197)||_0x11231f[_0x5e0fc5(0x1b7)]===_0x5e0fc5(0x1b3)?'PERMISSION_DENIED':_0x5e0fc5(0x18c);return failure(_0x4fee5e,_0x51d16f,_0x11231f['shortMessage']??_0x11231f[_0x5e0fc5(0x194)]??_0x11231f[_0x5e0fc5(0x1b7)]);}if(_0x11231f[_0x5e0fc5(0x19d)])return failure('CHILD_TERMINATED',_0x51d16f,'npx\x20terminated\x20by\x20signal\x20'+_0x11231f['signal']);if(_0x11231f[_0x5e0fc5(0x18d)]&&_0x51d16f===null)return failure(_0x5e0fc5(0x18c),_0x51d16f,_0x11231f[_0x5e0fc5(0x1b8)]??_0x11231f[_0x5e0fc5(0x194)]??_0x5e0fc5(0x1aa));if(_0x51d16f!==0x0)return failure(_0x5e0fc5(0x188),_0x51d16f,_0x448ebd||_0x11231f[_0x5e0fc5(0x1b8)]||_0x5e0fc5(0x1b9)+(_0x51d16f??_0x5e0fc5(0x1b5)));const _0x122bba=_0x3b46e0?resolveInstalledSkill(_0x3b46e0,_0x1ef3e0):undefined,_0x4c49e5=_0x448ebd[_0x5e0fc5(0x1a9)](/Failed to install\s+(\d+)/i);if(_0x4c49e5&&Number(_0x4c49e5[0x1])>0x0){const _0x3ed7f1=_0x5e0fc5(0x19a)+_0x4c49e5[0x1]+_0x5e0fc5(0x1ab)+(_0x448ebd?':\x0a'+_0x448ebd:'');if(_0x122bba?.['state']==='present')return{'ok':!![],'status':0x0,'partialFailure':{'count':Number(_0x4c49e5[0x1]),'output':_0x448ebd}};return failure('INSTALL_PARTIAL',0x0,_0x3ed7f1);}if(_0x122bba){if(_0x122bba[_0x5e0fc5(0x1a0)]===_0x5e0fc5(0x1b0))return failure('SKILL_NOT_INSTALLED',0x0,_0x5e0fc5(0x1a1)+_0x3b46e0+_0x5e0fc5(0x1a3)+_0x122bba[_0x5e0fc5(0x191)][_0x5e0fc5(0x1a4)](',\x20')+')');_0x122bba[_0x5e0fc5(0x1a0)]===_0x5e0fc5(0x1a7)&&console[_0x5e0fc5(0x1a2)](_0x5e0fc5(0x193)+_0x3b46e0+_0x5e0fc5(0x1b6)+_0x122bba[_0x5e0fc5(0x186)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x217a6b,_0x201b98){const _0x17aa66=a330_0x12f9fc;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4fc462=_0x201b98?.[_0x17aa66(0x199)]??'inherit',_0x5da26d=buildNpxSkillsAddArgv(_0x201b98?.[_0x17aa66(0x192)]),_0x3a6106=[_0x17aa66(0x1b1),..._0x5da26d][_0x17aa66(0x1a4)]('\x20');console[_0x17aa66(0x185)]('*\x20'+_0x3a6106);const _0x2ee99b=execaSync(_0x17aa66(0x1b1),_0x5da26d,execaOptions(_0x217a6b,_0x4fc462));return normalizeExecaResult(_0x2ee99b);}export function runNpxSkillsAddGlobal(_0x58b757,_0x44051f,_0x4f9caf){const _0x1b5282=a330_0x12f9fc;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x45d89d=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x44051f,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0xd465d2=[_0x1b5282(0x1b1),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x44051f,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x1b5282(0x1a4)]('\x20');console[_0x1b5282(0x185)]('*\x20'+_0xd465d2);const _0x3705c9=execaSync('npx',_0x45d89d,execaOptions(_0x58b757,_0x1b5282(0x18b))),_0x1835c4=normalizeExecaResult(_0x3705c9,_0x4f9caf?.[_0x1b5282(0x1ac)]??resolveGlobalSkillName(_0x44051f),_0x4f9caf?.[_0x1b5282(0x1b4)]);if(_0x4f9caf?.[_0x1b5282(0x199)]!==_0x1b5282(0x18b)&&!_0x1835c4['partialFailure']){const _0x3dccd9=[_0x3705c9[_0x1b5282(0x1b2)],_0x3705c9[_0x1b5282(0x198)]][_0x1b5282(0x19f)](Boolean)[_0x1b5282(0x1a4)]('\x0a')[_0x1b5282(0x19c)]();if(_0x3dccd9)console[_0x1b5282(0x185)](_0x3dccd9);}return _0x1835c4;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a331_0x22f7(){const _0x1ae936=['skills','700509yVtcux','object','recorded','2464356aOrsyP','version','.claude','8pRLJIa','unusable','parse','599887CurEnw','map','6xVVTSc','home','present','\x20is\x20unreadable:\x20','.agents','56mVYjEW','includes','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','\x20uses\x20unsupported\x20version\x20','7895470qgWIbs','reason','2893735fCfDMV','\x20records\x20\x22','3835863kPgDMu','33axrkqL','unverifiable','utf8','absent','globalSkillsDirs','SKILL.md','find','kind','.skill-lock.json','not-recorded','1363285ihpeDV','join'];a331_0x22f7=function(){return _0x1ae936;};return a331_0x22f7();}function a331_0x1148(_0x42488a,_0x20ff21){_0x42488a=_0x42488a-0x175;const _0x22f7bf=a331_0x22f7();let _0x11486d=_0x22f7bf[_0x42488a];return _0x11486d;}const a331_0x1953d6=a331_0x1148;(function(_0x530f24,_0x579c3e){const _0x154d22=a331_0x1148,_0x1235cd=_0x530f24();while(!![]){try{const _0x5141df=parseInt(_0x154d22(0x18a))/0x1+-parseInt(_0x154d22(0x187))/0x2*(-parseInt(_0x154d22(0x181))/0x3)+-parseInt(_0x154d22(0x184))/0x4+-parseInt(_0x154d22(0x197))/0x5*(parseInt(_0x154d22(0x18c))/0x6)+parseInt(_0x154d22(0x17e))/0x7*(-parseInt(_0x154d22(0x191))/0x8)+-parseInt(_0x154d22(0x199))/0x9+parseInt(_0x154d22(0x195))/0xa*(parseInt(_0x154d22(0x19a))/0xb);if(_0x5141df===_0x579c3e)break;else _0x1235cd['push'](_0x1235cd['shift']());}catch(_0x3bf57d){_0x1235cd['push'](_0x1235cd['shift']());}}}(a331_0x22f7,0xe02c4));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a331_0x1953d6(0x190),a331_0x1953d6(0x17c));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a331_0x1953d6(0x190),a331_0x1953d6(0x180)),join(a331_0x1953d6(0x186),a331_0x1953d6(0x180))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x57a7f6,_0x5c6071){const _0x2fda98=a331_0x1953d6;if(!existsSync(_0x57a7f6))return{'kind':_0x2fda98(0x17d)};let _0x2784f8;try{_0x2784f8=JSON[_0x2fda98(0x189)](readFileSync(_0x57a7f6,_0x2fda98(0x176)));}catch(_0x47f72){return{'kind':_0x2fda98(0x188),'reason':_0x57a7f6+_0x2fda98(0x18f)+_0x47f72['message']};}const _0x4d03f8=_0x2784f8;if(typeof _0x4d03f8?.[_0x2fda98(0x185)]!=='number'||!SUPPORTED_LOCK_VERSIONS[_0x2fda98(0x192)](_0x4d03f8[_0x2fda98(0x185)]))return{'kind':'unusable','reason':_0x57a7f6+_0x2fda98(0x194)+String(_0x4d03f8?.[_0x2fda98(0x185)])};if(!_0x4d03f8[_0x2fda98(0x180)]||typeof _0x4d03f8[_0x2fda98(0x180)]!==_0x2fda98(0x182))return{'kind':'unusable','reason':_0x57a7f6+'\x20has\x20no\x20skills\x20map'};return _0x4d03f8[_0x2fda98(0x180)][_0x5c6071]?{'kind':_0x2fda98(0x183)}:{'kind':_0x2fda98(0x17d)};}export function resolveInstalledSkill(_0x245b7b,_0x5620ae){const _0x79ba29=a331_0x1953d6,_0x488ae0=_0x5620ae?.[_0x79ba29(0x18d)]??homedir(),_0x3ede47=_0x5620ae?.[_0x79ba29(0x178)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x79ba29(0x18b)](_0x30598f=>join(_0x488ae0,_0x30598f)),_0x37748d=_0x5620ae?.['lockFile']??join(_0x488ae0,SKILL_LOCK_RELATIVE_PATH),_0x2d42e2=_0x3ede47['map'](_0x4375f9=>join(_0x4375f9,_0x245b7b,_0x79ba29(0x179))),_0x238c4f=_0x2d42e2[_0x79ba29(0x17a)](_0x5d1664=>existsSync(_0x5d1664));if(_0x238c4f)return{'state':_0x79ba29(0x18e),'path':_0x238c4f};const _0x35f841=readLockLookup(_0x37748d,_0x245b7b);if(_0x35f841[_0x79ba29(0x17b)]===_0x79ba29(0x188))return{'state':_0x79ba29(0x175),'reason':_0x35f841[_0x79ba29(0x196)]};if(_0x35f841[_0x79ba29(0x17b)]===_0x79ba29(0x183))return{'state':_0x79ba29(0x175),'reason':_0x37748d+_0x79ba29(0x198)+_0x245b7b+_0x79ba29(0x193)+('('+_0x2d42e2[_0x79ba29(0x17f)](',\x20')+')')};return{'state':_0x79ba29(0x177),'checked':_0x2d42e2};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x149124,_0x1de01f){const _0x1aa832=a332_0x1ab3,_0x1de604=_0x149124();while(!![]){try{const _0x1086d7=-parseInt(_0x1aa832(0x142))/0x1+parseInt(_0x1aa832(0x13d))/0x2+-parseInt(_0x1aa832(0x139))/0x3+parseInt(_0x1aa832(0x136))/0x4*(parseInt(_0x1aa832(0x137))/0x5)+-parseInt(_0x1aa832(0x144))/0x6+-parseInt(_0x1aa832(0x143))/0x7+-parseInt(_0x1aa832(0x13a))/0x8*(-parseInt(_0x1aa832(0x148))/0x9);if(_0x1086d7===_0x1de01f)break;else _0x1de604['push'](_0x1de604['shift']());}catch(_0x4f88be){_0x1de604['push'](_0x1de604['shift']());}}}(a332_0x1d46,0x8848c));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a332_0x1ab3(_0x4a11f1,_0x48259b){_0x4a11f1=_0x4a11f1-0x136;const _0x1d468f=a332_0x1d46();let _0x1ab313=_0x1d468f[_0x4a11f1];return _0x1ab313;}import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0xc0e90e){const _0x595d14=a332_0x1ab3;return SENSITIVE_PATTERNS[_0x595d14(0x141)](_0x111baa=>_0x111baa[_0x595d14(0x13e)](_0xc0e90e));}function a332_0x1d46(){const _0x33fcce=['6549480tgTPxm','2198862ahAGKb','error','flags','durationMs','9vLUAse','4vfouxC','1965655qBJOst','entries','3062079ksPIVh','19388784gNkfWx','message','command','1653468sGVCdE','test','stringify','service','some','762433rncakN'];a332_0x1d46=function(){return _0x33fcce;};return a332_0x1d46();}function sanitizeFlags(_0x534001){const _0x3b8e42=a332_0x1ab3,_0x264c4d={};for(const [_0x3a36fb,_0x3618b0]of Object[_0x3b8e42(0x138)](_0x534001)){isSensitiveKey(_0x3a36fb)?_0x264c4d[_0x3a36fb]=_0x3618b0!=null&&_0x3618b0!==''?'[REDACTED]':_0x3618b0:_0x264c4d[_0x3a36fb]=_0x3618b0;}return _0x264c4d;}export async function reportCommandTrace(_0x12f97e){const _0x45ef62=a332_0x1ab3;try{const _0x544348=sanitizeFlags(_0x12f97e[_0x45ef62(0x146)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x12f97e[_0x45ef62(0x140)],'command.name':_0x12f97e[_0x45ef62(0x13c)],'command.flags':JSON[_0x45ef62(0x13f)](_0x544348),..._0x12f97e[_0x45ef62(0x147)]!=null?{'command.duration_ms':_0x12f97e[_0x45ef62(0x147)]}:{},..._0x12f97e['error']?{'command.error':_0x12f97e[_0x45ef62(0x145)]instanceof Error?_0x12f97e[_0x45ef62(0x145)][_0x45ef62(0x13b)]:String(_0x12f97e[_0x45ef62(0x145)])}:{}}});}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a333_0x13f3(){var _0x12d6ad=['28vSvlGm','419465ggMiUM','2062571bLJBLu','7170510gKKxcL','37437bzkxjs','Failed\x20to\x20report\x20CLI\x20help\x20trace:','1118740tfVQfv','6tmlYFb','service','cli.help','8XnqiAD','366318rDBqaa','2180544UFRMXJ'];a333_0x13f3=function(){return _0x12d6ad;};return a333_0x13f3();}function a333_0x58cc(_0x18b184,_0x4bef47){_0x18b184=_0x18b184-0xa4;var _0x13f3fa=a333_0x13f3();var _0x58ccc6=_0x13f3fa[_0x18b184];return _0x58ccc6;}(function(_0x8d333e,_0x45434b){var _0xa2704a=a333_0x58cc,_0x1f9fbd=_0x8d333e();while(!![]){try{var _0x56d4f1=parseInt(_0xa2704a(0xad))/0x1+parseInt(_0xa2704a(0xac))/0x2*(parseInt(_0xa2704a(0xb0))/0x3)+parseInt(_0xa2704a(0xab))/0x4+parseInt(_0xa2704a(0xa5))/0x5*(parseInt(_0xa2704a(0xa6))/0x6)+parseInt(_0xa2704a(0xae))/0x7*(-parseInt(_0xa2704a(0xa9))/0x8)+-parseInt(_0xa2704a(0xaa))/0x9+-parseInt(_0xa2704a(0xaf))/0xa;if(_0x56d4f1===_0x45434b)break;else _0x1f9fbd['push'](_0x1f9fbd['shift']());}catch(_0x16ceb4){_0x1f9fbd['push'](_0x1f9fbd['shift']());}}}(a333_0x13f3,0x4bd79));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0xb0fd29,_0x5b930e){var _0x21df69=a333_0x58cc;try{await sendCliTraceLog({'spanName':_0x21df69(0xa8),'logData':{'rabetbase.help.kind':_0xb0fd29,..._0x5b930e?.[_0x21df69(0xa7)]&&{'rabetbase.help.service':_0x5b930e[_0x21df69(0xa7)]}}});}catch(_0x11ae7d){console['error'](_0x21df69(0xa4),_0x11ae7d);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4bfaea,_0xb8c445){const _0x36bde5=a334_0x3b65,_0x5a7181=_0x4bfaea();while(!![]){try{const _0x4c7792=-parseInt(_0x36bde5(0x16d))/0x1*(-parseInt(_0x36bde5(0x172))/0x2)+-parseInt(_0x36bde5(0x16f))/0x3+parseInt(_0x36bde5(0x165))/0x4*(-parseInt(_0x36bde5(0x171))/0x5)+parseInt(_0x36bde5(0x163))/0x6*(-parseInt(_0x36bde5(0x164))/0x7)+-parseInt(_0x36bde5(0x166))/0x8*(parseInt(_0x36bde5(0x169))/0x9)+-parseInt(_0x36bde5(0x168))/0xa*(-parseInt(_0x36bde5(0x167))/0xb)+parseInt(_0x36bde5(0x162))/0xc;if(_0x4c7792===_0xb8c445)break;else _0x5a7181['push'](_0x5a7181['shift']());}catch(_0xe14eed){_0x5a7181['push'](_0x5a7181['shift']());}}}(a334_0xe552,0x844a6));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a334_0x3b65(_0x5dc415,_0x6096bb){_0x5dc415=_0x5dc415-0x162;const _0xe5525=a334_0xe552();let _0x3b659d=_0xe5525[_0x5dc415];return _0x3b659d;}import{getSessionUserInfo}from'../auth/get-session-user.js';function a334_0xe552(){const _0x28505b=['673461ULAZdV','daily','1000509XjEMhz','production','5665ddGilh','2SusDEF','user','email','1241508LvJzdL','6AkgNav','3397030lrbfEV','388BWpmWc','36904KpTpXk','869BZsPag','118750PHLhci','477bsZpFB','username','unknown','nickname'];a334_0xe552=function(){return _0x28505b;};return a334_0xe552();}import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x1eea9a=a334_0x3b65,_0x2213a3=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x14ed4b=_0x2213a3?.[_0x1eea9a(0x173)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x1eea9a(0x16b)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x1eea9a(0x16e):_0x1eea9a(0x170))}),setUserContext({'id':_0x14ed4b?.['id'],'username':_0x14ed4b?.[_0x1eea9a(0x16a)],'nickname':_0x14ed4b?.[_0x1eea9a(0x16c)],'email':_0x14ed4b?.[_0x1eea9a(0x174)],'tenantCode':_0x14ed4b?.['tenant']?.['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x2213a3;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x53eef9,_0x3a7f11){const _0x139a0c=a335_0x27b8,_0x46f8c2=_0x53eef9();while(!![]){try{const _0x17bf8e=-parseInt(_0x139a0c(0x18b))/0x1*(-parseInt(_0x139a0c(0x191))/0x2)+parseInt(_0x139a0c(0x193))/0x3*(-parseInt(_0x139a0c(0x185))/0x4)+parseInt(_0x139a0c(0x189))/0x5+-parseInt(_0x139a0c(0x18a))/0x6+-parseInt(_0x139a0c(0x190))/0x7*(-parseInt(_0x139a0c(0x18e))/0x8)+-parseInt(_0x139a0c(0x186))/0x9+-parseInt(_0x139a0c(0x192))/0xa*(-parseInt(_0x139a0c(0x187))/0xb);if(_0x17bf8e===_0x3a7f11)break;else _0x46f8c2['push'](_0x46f8c2['shift']());}catch(_0x4b2496){_0x46f8c2['push'](_0x46f8c2['shift']());}}}(a335_0x465b,0xba2f3));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a335_0x27b8(_0x4942fe,_0x393abf){_0x4942fe=_0x4942fe-0x185;const _0x465bfc=a335_0x465b();let _0x27b8bb=_0x465bfc[_0x4942fe];return _0x27b8bb;}export function registerOtelShutdownOnExit(){const _0x582f91=a335_0x27b8;process[_0x582f91(0x18c)](_0x582f91(0x18f),()=>{void flushOtelNodeIfUsed();});const _0x4bfb74=()=>{const _0x54c9ce=_0x582f91;void flushOtelNodeIfUsed()['then'](()=>process[_0x54c9ce(0x18d)](0x0));};process[_0x582f91(0x18c)](_0x582f91(0x188),_0x4bfb74),process[_0x582f91(0x18c)]('SIGTERM',_0x4bfb74);}function a335_0x465b(){const _0x399908=['88KQqkmM','beforeExit','559762HqMYje','2JjhIHm','8638330InLZCb','1905195cNuxFm','4vmaDsM','12400371DYZFUM','11VStfgO','SIGINT','4272095isgNQL','7270932rnxheT','1389439waQHWY','once','exit'];a335_0x465b=function(){return _0x399908;};return a335_0x465b();}export async function exitWithOtelShutdown(_0x5adfd1){await flushOtelNodeIfUsed(),process['exit'](_0x5adfd1);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a336_0x4869(){const _0x464268=['version','68Adrsqu','270aKdBbb','116955Uxqcld','4119381vmDzdG','6855976PnsxJo','traceparent','887585wWULFF','224336aCCsqw','rabetbase-cli','19434530dskAfz','5055gkgyig','traceName','102EbAvCn','logData'];a336_0x4869=function(){return _0x464268;};return a336_0x4869();}const a336_0x26b3af=a336_0xd9bf;(function(_0x390664,_0x49b13e){const _0x358c64=a336_0xd9bf,_0x4a8ca6=_0x390664();while(!![]){try{const _0x22571d=parseInt(_0x358c64(0x1f6))/0x1*(-parseInt(_0x358c64(0x1fc))/0x2)+parseInt(_0x358c64(0x1fd))/0x3*(-parseInt(_0x358c64(0x1fb))/0x4)+-parseInt(_0x358c64(0x1f2))/0x5+-parseInt(_0x358c64(0x1f8))/0x6*(-parseInt(_0x358c64(0x1f3))/0x7)+-parseInt(_0x358c64(0x1f0))/0x8+parseInt(_0x358c64(0x1ef))/0x9+parseInt(_0x358c64(0x1f5))/0xa;if(_0x22571d===_0x49b13e)break;else _0x4a8ca6['push'](_0x4a8ca6['shift']());}catch(_0x43c1ff){_0x4a8ca6['push'](_0x4a8ca6['shift']());}}}(a336_0x4869,0x8a416));function a336_0xd9bf(_0x5768c6,_0xa0c988){_0x5768c6=_0x5768c6-0x1ef;const _0x486941=a336_0x4869();let _0xd9bf8e=_0x486941[_0x5768c6];return _0xd9bf8e;}import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a336_0x26b3af(0x1f4);export async function sendCliTraceLog(_0x110a74){const _0x215bfc=a336_0x26b3af;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x110a74[_0x215bfc(0x1f7)]??DEFAULT_TRACE_NAME,'version':_0x110a74[_0x215bfc(0x1fa)]??getCliVersion(),'spanName':_0x110a74['spanName'],'eventType':'manual','logData':_0x110a74[_0x215bfc(0x1f9)],..._0x110a74[_0x215bfc(0x1f1)]&&{'traceparent':_0x110a74['traceparent']}});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a337_0x109cfe=a337_0x556c;function a337_0x556c(_0x1f239d,_0x38f270){_0x1f239d=_0x1f239d-0xde;const _0xd6c3fd=a337_0xd6c3();let _0x556c9c=_0xd6c3fd[_0x1f239d];return _0x556c9c;}function a337_0xd6c3(){const _0xde8526=['join','redactionKinds','124176kFNemZ','title','truncated','4tqBJwA','672NJVjoU','description','130296IXAXaM','redactionCount','sanitize','originalBytes','348oVzfuU','930RSYqaS','17980wRqxEE','issue.log.collect','2482907RljONo','764wgycBx','618YUgcmH','30998ArRrjX','9LYfDZb','82011zNvlNJ'];a337_0xd6c3=function(){return _0xde8526;};return a337_0xd6c3();}(function(_0x56b8a9,_0x474541){const _0x55e012=a337_0x556c,_0x26cc79=_0x56b8a9();while(!![]){try{const _0x2903b0=parseInt(_0x55e012(0xe0))/0x1*(parseInt(_0x55e012(0xe1))/0x2)+-parseInt(_0x55e012(0xe4))/0x3*(parseInt(_0x55e012(0xea))/0x4)+parseInt(_0x55e012(0xf3))/0x5*(parseInt(_0x55e012(0xeb))/0x6)+-parseInt(_0x55e012(0xdf))/0x7+-parseInt(_0x55e012(0xed))/0x8*(parseInt(_0x55e012(0xe3))/0x9)+-parseInt(_0x55e012(0xf2))/0xa*(-parseInt(_0x55e012(0xe2))/0xb)+parseInt(_0x55e012(0xf1))/0xc*(-parseInt(_0x55e012(0xe7))/0xd);if(_0x2903b0===_0x474541)break;else _0x26cc79['push'](_0x26cc79['shift']());}catch(_0x24aee6){_0x26cc79['push'](_0x26cc79['shift']());}}}(a337_0xd6c3,0x37121));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME=a337_0x109cfe(0xde);export async function sendPlatformIssueCollectLog(_0x11bf04){const _0x258ad4=a337_0x109cfe;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x11bf04[_0x258ad4(0xe8)],'issue.description':_0x11bf04[_0x258ad4(0xec)],..._0x11bf04[_0x258ad4(0xef)]?{'issue.description_original_bytes':_0x11bf04['sanitize'][_0x258ad4(0xf0)],'issue.description_truncated':_0x11bf04[_0x258ad4(0xef)][_0x258ad4(0xe9)],'issue.description_redactions':_0x11bf04['sanitize'][_0x258ad4(0xee)],'issue.description_redaction_kinds':_0x11bf04[_0x258ad4(0xef)][_0x258ad4(0xe6)][_0x258ad4(0xe5)](',')}:{}}});}
|
package/lib/utils/ai_config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a339_0x3926b4=a339_0x1361;function a339_0x4773(){const _0x1386d3=['Generic\x20template\x20fallback','OpenCode','Codex\x20IDE','Windsurf','.qoder/rules/rabetbase.md','Other\x20(generic\x20template)','929528ibWaWd','1384PMnjwJ','48486JLPEQd','7119ysYDKg','Trae\x20IDE','Codex','Antigravity','Trae','file','.cursor','Cursor\x20IDE','cline','codex','40nObjja','windsurf','2503122OTQRJm','antigravity','399eQCHCE','trae','.cline','.cursor/skills/rabetbase.md','.cline/skills/lovrabet/SKILL.md','Cursor','Windsurf\x20IDE','qoder','4339960zgJzkC','.codebuddy','.trae/skills/lovrabet/SKILL.md','.windsurf','claude','OpenCode\x20IDE','opencode','.opencode/skills/lovrabet/SKILL.md','codebuddy','1486341LfrnNO','Antigravity\x20IDE','agent','Cline','.codex/skills/lovrabet/SKILL.md','CodeBuddy','cursor','.codex','.trae','.cursorrules','Claude\x20Code','203064jmIhWK','.agent/skills/lovrabet/SKILL.md','.windsurf/workflows/rabetbase.md','.qoder/skills/lovrabet/SKILL.md'];a339_0x4773=function(){return _0x1386d3;};return a339_0x4773();}(function(_0x57bf40,_0x2d5649){const _0x5cea13=a339_0x1361,_0xadeb78=_0x57bf40();while(!![]){try{const _0x84dc4f=parseInt(_0x5cea13(0xb1))/0x1+-parseInt(_0x5cea13(0x89))/0x2+parseInt(_0x5cea13(0x9c))/0x3+parseInt(_0x5cea13(0xa7))/0x4*(parseInt(_0x5cea13(0x87))/0x5)+-parseInt(_0x5cea13(0xb3))/0x6*(parseInt(_0x5cea13(0x8b))/0x7)+parseInt(_0x5cea13(0xb2))/0x8*(parseInt(_0x5cea13(0xb4))/0x9)+parseInt(_0x5cea13(0x93))/0xa;if(_0x84dc4f===_0x2d5649)break;else _0xadeb78['push'](_0xadeb78['shift']());}catch(_0x5d3290){_0xadeb78['push'](_0xadeb78['shift']());}}}(a339_0x4773,0xa8664));export const CORE_IDE_CONFIGS={'cursor':{'name':a339_0x3926b4(0x90),'description':a339_0x3926b4(0x84),'folders':[a339_0x3926b4(0xa5),a339_0x3926b4(0x83)],'files':[{'type':a339_0x3926b4(0xb9),'path':a339_0x3926b4(0x8e)}]},'windsurf':{'name':a339_0x3926b4(0xae),'description':a339_0x3926b4(0x91),'folders':[a339_0x3926b4(0x96)],'files':[{'type':a339_0x3926b4(0xb9),'path':a339_0x3926b4(0xa9)}]},'claude':{'name':a339_0x3926b4(0xa6),'description':a339_0x3926b4(0xa6),'folders':['.claude'],'files':[{'type':a339_0x3926b4(0xb9),'path':'.claude/skills/lovrabet/SKILL.md'}]},'cline':{'name':a339_0x3926b4(0x9f),'description':'Cline\x20IDE','folders':[a339_0x3926b4(0x8d)],'files':[{'type':a339_0x3926b4(0xb9),'path':a339_0x3926b4(0x8f)}]},'codex':{'name':a339_0x3926b4(0xb6),'description':a339_0x3926b4(0xad),'folders':[a339_0x3926b4(0xa3)],'files':[{'type':a339_0x3926b4(0xb9),'path':a339_0x3926b4(0xa0)}]},'opencode':{'name':a339_0x3926b4(0xac),'description':a339_0x3926b4(0x98),'folders':['.opencode'],'files':[{'type':a339_0x3926b4(0xb9),'path':a339_0x3926b4(0x9a)}]},'qoder':{'name':'Qoder','description':'Qoder\x20IDE','folders':['.qoder'],'files':[{'type':a339_0x3926b4(0xb9),'path':a339_0x3926b4(0xaf)},{'type':a339_0x3926b4(0xb9),'path':a339_0x3926b4(0xaa)}]},'codebuddy':{'name':a339_0x3926b4(0xa1),'description':'CodeBuddy\x20IDE','folders':[a339_0x3926b4(0x94)],'files':[{'type':a339_0x3926b4(0xb9),'path':'.codebuddy/skills/lovrabet/SKILL.md'}]},'trae':{'name':a339_0x3926b4(0xb8),'description':a339_0x3926b4(0xb5),'folders':[a339_0x3926b4(0xa4)],'files':[{'type':a339_0x3926b4(0xb9),'path':a339_0x3926b4(0x95)}]}};function a339_0x1361(_0x167f59,_0x3982c4){_0x167f59=_0x167f59-0x83;const _0x477324=a339_0x4773();let _0x136150=_0x477324[_0x167f59];return _0x136150;}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a339_0x3926b4(0xb0),'description':a339_0x3926b4(0xab),'folders':['.agent'],'files':[{'type':a339_0x3926b4(0xb9),'path':'.agent/skills/lovrabet/SKILL.md'}]},'antigravity':{'name':a339_0x3926b4(0xb7),'description':a339_0x3926b4(0x9d),'folders':['.agent'],'files':[{'type':'file','path':a339_0x3926b4(0xa8)}]}};export const CORE_IDE_LIST=[a339_0x3926b4(0x97),a339_0x3926b4(0x85),a339_0x3926b4(0x9b),a339_0x3926b4(0x86),a339_0x3926b4(0xa2),a339_0x3926b4(0x99),a339_0x3926b4(0x92),'trae',a339_0x3926b4(0x88)];export const IDE_LIST=[a339_0x3926b4(0x8a),a339_0x3926b4(0x97),a339_0x3926b4(0x85),a339_0x3926b4(0x9b),a339_0x3926b4(0x86),'cursor',a339_0x3926b4(0x99),'qoder',a339_0x3926b4(0x8c),'windsurf',a339_0x3926b4(0x9e)];export const ALL_CORE_IDES=[a339_0x3926b4(0xa2),a339_0x3926b4(0x88),a339_0x3926b4(0x97),a339_0x3926b4(0x85),a339_0x3926b4(0x86),'opencode',a339_0x3926b4(0x92),'codebuddy',a339_0x3926b4(0x8c)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a340_0x37a3(){const _0x2a72cb=['1988577bWwElR','251948LTSamD','1502645yyupTI','120UbvTXW','1048884KhdYkh','424584tXfTiC','42XHPvOw','6QtGqpG','9650424OexLVU','7731024ubQkSJ'];a340_0x37a3=function(){return _0x2a72cb;};return a340_0x37a3();}(function(_0x437104,_0x5a29c7){const _0x7f3f5e=a340_0x4ae5,_0x2c470a=_0x437104();while(!![]){try{const _0xb375e=-parseInt(_0x7f3f5e(0x11e))/0x1+-parseInt(_0x7f3f5e(0x11d))/0x2+parseInt(_0x7f3f5e(0x11f))/0x3*(-parseInt(_0x7f3f5e(0x11a))/0x4)+-parseInt(_0x7f3f5e(0x11b))/0x5*(-parseInt(_0x7f3f5e(0x120))/0x6)+-parseInt(_0x7f3f5e(0x121))/0x7+parseInt(_0x7f3f5e(0x118))/0x8+parseInt(_0x7f3f5e(0x119))/0x9*(parseInt(_0x7f3f5e(0x11c))/0xa);if(_0xb375e===_0x5a29c7)break;else _0x2c470a['push'](_0x2c470a['shift']());}catch(_0x175e1e){_0x2c470a['push'](_0x2c470a['shift']());}}}(a340_0x37a3,0xad103));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a340_0x4ae5(_0x5a69e8,_0x40a87c){_0x5a69e8=_0x5a69e8-0x118;const _0x37a347=a340_0x37a3();let _0x4ae59e=_0x37a347[_0x5a69e8];return _0x4ae59e;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
package/lib/utils/cdn-config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x43a621,_0x44a6db){const _0x4dac86=a341_0x14cd,_0x169343=_0x43a621();while(!![]){try{const _0x28f2ee=-parseInt(_0x4dac86(0xd6))/0x1*(-parseInt(_0x4dac86(0xc7))/0x2)+-parseInt(_0x4dac86(0xca))/0x3*(-parseInt(_0x4dac86(0xd4))/0x4)+-parseInt(_0x4dac86(0xd0))/0x5*(parseInt(_0x4dac86(0xd7))/0x6)+parseInt(_0x4dac86(0xd1))/0x7+parseInt(_0x4dac86(0xd8))/0x8*(-parseInt(_0x4dac86(0xcb))/0x9)+parseInt(_0x4dac86(0xcf))/0xa+-parseInt(_0x4dac86(0xd3))/0xb;if(_0x28f2ee===_0x44a6db)break;else _0x169343['push'](_0x169343['shift']());}catch(_0xc8c07e){_0x169343['push'](_0x169343['shift']());}}}(a341_0x5550,0x97ad3));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x345d31=a341_0x14cd,_0x35f43b=getTemplateBaseUrl(),_0x1688e2=[_0x35f43b+_0x345d31(0xc8),_0x35f43b+_0x345d31(0xd2)];for(const _0x265818 of _0x1688e2){try{const _0x313a64=await fetch(_0x265818,{'headers':{'Accept':_0x345d31(0xc6)}});if(!_0x313a64['ok'])continue;const _0x1aa43a=await _0x313a64[_0x345d31(0xd5)]();if(!_0x1aa43a[_0x345d31(0xd9)]?.['stableVersion']||!_0x1aa43a[_0x345d31(0xc9)]?.[_0x345d31(0xce)]?.[_0x345d31(0xcd)])continue;return _0x1aa43a;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a341_0x5550(){const _0x193657=['1813674RrXrJI','634536RRrTrT','cli','application/json','2RGroCG','/config.json','sdk','774RMTIlt','9tiKrpX','now','stableVersion','node','10796750PgPdTJ','5QvDExI','5252625znYsBI','/config/index.json','35039565ndOtDK','18012iPkdpt','json','1196454leSedZ'];a341_0x5550=function(){return _0x193657;};return a341_0x5550();}let hasCachedConfig=![];export async function getCdnConfig(){const _0x595569=a341_0x14cd,_0x5ddcdd=Date[_0x595569(0xcc)]();if(hasCachedConfig){const _0x452591=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x5ddcdd-cacheTime<_0x452591)return cachedConfig;}const _0x581376=await fetchCdnConfig();return cachedConfig=_0x581376,cacheTime=_0x5ddcdd,hasCachedConfig=!![],_0x581376;}function a341_0x14cd(_0x4ae9b4,_0x1e94fe){_0x4ae9b4=_0x4ae9b4-0xc6;const _0x55500a=a341_0x5550();let _0x14cd2c=_0x55500a[_0x4ae9b4];return _0x14cd2c;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a342_0x484a72=a342_0x2ca9;(function(_0x3c3519,_0x23a0b7){const _0x37988b=a342_0x2ca9,_0x4a39a3=_0x3c3519();while(!![]){try{const _0xfe52f=-parseInt(_0x37988b(0x1a9))/0x1*(parseInt(_0x37988b(0x1af))/0x2)+-parseInt(_0x37988b(0x1b1))/0x3+parseInt(_0x37988b(0x1bb))/0x4*(parseInt(_0x37988b(0x19f))/0x5)+parseInt(_0x37988b(0x1b7))/0x6+parseInt(_0x37988b(0x1ab))/0x7+parseInt(_0x37988b(0x1aa))/0x8+-parseInt(_0x37988b(0x1b3))/0x9;if(_0xfe52f===_0x23a0b7)break;else _0x4a39a3['push'](_0x4a39a3['shift']());}catch(_0xb7f13e){_0x4a39a3['push'](_0x4a39a3['shift']());}}}(a342_0x4b94,0xe7152));import a342_0x15f40d from'node:fs';import a342_0x2e905c from'node:path';import a342_0x5ef39c from'semver';import{getCdnConfig}from'../utils/cdn-config.js';function a342_0x4b94(){const _0x3119fd=['86bXOzaw','readFileSync','1432770HLpsWx','coerce','7183728hbSQMF','devDependencies','package.json','↪\x20SDK\x20update\x20available','1636842EHJzJe','parse','dependencies','\x1b[1m','3014108FqseYO','sdk','join','utf-8','test','some','all','utf8','node','1.2.0','\x20\x20\x20Upgrade\x20command:\x20','5Pbbmzl','npm\x20install\x20','\x20\x20\x20Stable\x20version:\x20','\x20\x20\x20Current\x20version:\x20','existsSync','node_modules','\x1b[0m','@lovrabet/sdk','log','latest','12293hfSbGz','2295024fPQIYo','10063781JewbXJ','stableVersion','packageName','\x1b[33m'];a342_0x4b94=function(){return _0x3119fd;};return a342_0x4b94();}const FALLBACK_MIN_SDK_VERSION=a342_0x484a72(0x19d);function isNonNumericVersion(_0x432f78){const _0x3c0a2e=a342_0x484a72,_0x55a66c=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x55a66c[_0x3c0a2e(0x199)](_0xc2fe73=>_0xc2fe73[_0x3c0a2e(0x198)](_0x432f78));}function getInstalledVersion(_0x13500b,_0x3ee39c){const _0x704477=a342_0x484a72;try{const _0x4de248=a342_0x2e905c['join'](_0x13500b,_0x704477(0x1a4),_0x3ee39c,_0x704477(0x1b5));if(a342_0x15f40d[_0x704477(0x1a3)](_0x4de248)){const _0xf5a981=JSON[_0x704477(0x1b8)](a342_0x15f40d[_0x704477(0x1b0)](_0x4de248,_0x704477(0x1be)));return _0xf5a981['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x55487d=a342_0x484a72;try{const _0x40ff68=await getCdnConfig();return _0x40ff68?.['sdk']?.[_0x55487d(0x19c)]?.[_0x55487d(0x1ac)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x4fa155=a342_0x484a72;try{const _0x274f9b=await getCdnConfig();return _0x274f9b?.[_0x4fa155(0x1bc)]?.['node']?.[_0x4fa155(0x1ad)]||_0x4fa155(0x1a6);}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x1b58de){const _0x372f38=a342_0x484a72,_0x56f354=a342_0x2e905c[_0x372f38(0x1bd)](_0x1b58de,'package.json'),[_0x4bb3e1,_0x3d8d06]=await Promise[_0x372f38(0x19a)]([getSdkStableVersion(),getSdkPackageName()]),_0x5f5710=_0x4bb3e1||FALLBACK_MIN_SDK_VERSION;if(!a342_0x15f40d['existsSync'](_0x56f354))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5f5710,'packageName':_0x3d8d06,'stableVersion':_0x4bb3e1};try{const _0x379d7c=JSON[_0x372f38(0x1b8)](a342_0x15f40d[_0x372f38(0x1b0)](_0x56f354,'utf8')),_0x126f5a=_0x379d7c[_0x372f38(0x1b9)]||{},_0x5139a2=_0x379d7c[_0x372f38(0x1b4)]||{},_0x2c49ce=_0x126f5a[_0x3d8d06]||_0x5139a2[_0x3d8d06];if(!_0x2c49ce)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5f5710,'packageName':_0x3d8d06,'stableVersion':_0x4bb3e1};let _0x3120bb=getInstalledVersion(_0x1b58de,_0x3d8d06);!_0x3120bb&&(_0x3120bb=_0x2c49ce);if(isNonNumericVersion(_0x2c49ce))return{'installed':!![],'version':_0x3120bb,'needsUpgrade':![],'minVersion':_0x5f5710,'packageName':_0x3d8d06,'stableVersion':_0x4bb3e1};const _0x1062e5=a342_0x5ef39c[_0x372f38(0x1b2)](_0x3120bb),_0x4384b3=a342_0x5ef39c[_0x372f38(0x1b2)](_0x5f5710),_0x35bbca=_0x1062e5&&_0x4384b3?a342_0x5ef39c['lt'](_0x1062e5,_0x4384b3):![];return{'installed':!![],'version':_0x3120bb,'needsUpgrade':_0x35bbca,'minVersion':_0x5f5710,'packageName':_0x3d8d06,'stableVersion':_0x4bb3e1};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5f5710,'packageName':_0x3d8d06,'stableVersion':_0x4bb3e1};}}function a342_0x2ca9(_0x10a767,_0x279467){_0x10a767=_0x10a767-0x198;const _0x4b9404=a342_0x4b94();let _0x2ca9ff=_0x4b9404[_0x10a767];return _0x2ca9ff;}export function checkSdkVersionSync(_0x1bbd9e){const _0x15ca27=a342_0x484a72,_0x402dc8=a342_0x2e905c[_0x15ca27(0x1bd)](_0x1bbd9e,_0x15ca27(0x1b5)),_0x45285e=_0x15ca27(0x1a6);if(!a342_0x15f40d[_0x15ca27(0x1a3)](_0x402dc8))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x45285e,'stableVersion':null};try{const _0x2a032d=JSON[_0x15ca27(0x1b8)](a342_0x15f40d[_0x15ca27(0x1b0)](_0x402dc8,_0x15ca27(0x19b))),_0x3edf72=_0x2a032d[_0x15ca27(0x1b9)]||{},_0x19c57c=_0x2a032d[_0x15ca27(0x1b4)]||{},_0xfa3b74=_0x3edf72[_0x45285e]||_0x19c57c[_0x45285e];if(!_0xfa3b74)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x45285e,'stableVersion':null};let _0x19b55a=getInstalledVersion(_0x1bbd9e,_0x45285e);!_0x19b55a&&(_0x19b55a=_0xfa3b74);if(isNonNumericVersion(_0xfa3b74))return{'installed':!![],'version':_0x19b55a,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x45285e,'stableVersion':null};const _0x242c8b=a342_0x5ef39c['coerce'](_0x19b55a),_0x84ad12=_0x242c8b?a342_0x5ef39c['lt'](_0x242c8b,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x19b55a,'needsUpgrade':_0x84ad12,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x45285e,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x45285e,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x125b93){const _0x5b1435=a342_0x484a72;if(!_0x125b93['needsUpgrade'])return;const _0x3d165f=_0x5b1435(0x1ae),_0x6b008b=_0x5b1435(0x1a5),_0x19eae2=_0x5b1435(0x1ba),_0x1b731c=_0x125b93[_0x5b1435(0x1ad)]||_0x5b1435(0x1a6),_0x9b3820=_0x125b93[_0x5b1435(0x1ac)]||_0x125b93['minVersion'],_0x32df1a=_0x5b1435(0x1a0)+_0x1b731c+'@'+(_0x9b3820||_0x5b1435(0x1a8));console['log'](),console[_0x5b1435(0x1a7)](''+_0x3d165f+_0x19eae2+_0x5b1435(0x1b6)+_0x6b008b),console[_0x5b1435(0x1a7)](_0x3d165f+_0x5b1435(0x1a2)+_0x1b731c+'@'+_0x125b93['version']+_0x6b008b),console[_0x5b1435(0x1a7)](_0x3d165f+_0x5b1435(0x1a1)+_0x9b3820+_0x6b008b),console['log'](_0x3d165f+_0x5b1435(0x19e)+_0x32df1a+_0x6b008b),console[_0x5b1435(0x1a7)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a343_0x153b(){const _0x13c627=['\x1b[0m','\x20\x20\x20Recommended\x20stable:\x20','minimumVersionMessage','join','\x20\x20\x20Upgrade\x20command:\x20','3omkVuf','\x20\x20\x20Minimum\x20supported:\x20','429196qDBJYA','97772USQCvo','\x20\x20\x20','\x1b[33m','\x1b[31m','7CAdXeM','utf-8','needsUpgrade','\x1b[1m','372652yIqsdO','stableVersion','\x20\x20\x20Current\x20CLI\x20version:\x20','log','package.json','coerce','1.0.0','3388570hEwQEz','currentVersion','minimumVersion','parse','1332186JlGRun','validation','Current\x20version:\x20','2045024viMxFN','↪\x20Critical\x20CLI\x20upgrade\x20required','Upgrade\x20command:\x20','8489295pAtqsQ','belowMinimum','Minimum\x20supported:\x20','\x20\x20\x20Stable\x20version:\x20','filter'];a343_0x153b=function(){return _0x13c627;};return a343_0x153b();}(function(_0x3fea04,_0x3f0ed2){const _0x3a364d=a343_0x1596,_0x11bf05=_0x3fea04();while(!![]){try{const _0x59cbd2=parseInt(_0x3a364d(0xfc))/0x1+-parseInt(_0x3a364d(0xf3))/0x2+parseInt(_0x3a364d(0xf1))/0x3*(-parseInt(_0x3a364d(0xf4))/0x4)+-parseInt(_0x3a364d(0x103))/0x5+parseInt(_0x3a364d(0x107))/0x6+-parseInt(_0x3a364d(0xf8))/0x7*(parseInt(_0x3a364d(0xe4))/0x8)+parseInt(_0x3a364d(0xe7))/0x9;if(_0x59cbd2===_0x3f0ed2)break;else _0x11bf05['push'](_0x11bf05['shift']());}catch(_0x36887a){_0x11bf05['push'](_0x11bf05['shift']());}}}(a343_0x153b,0x593f3));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a343_0x4c5da6 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x1a64b3){const _0x4ed67f=a343_0x1596,_0x5a667c=_0x1a64b3[_0x4ed67f(0xfd)]||'latest';return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x5a667c;}function getCurrentCliVersion(){const _0x2c42fd=a343_0x1596;try{const _0x52cc5d=fileURLToPath(import.meta.url),_0x167cdf=resolve(dirname(_0x52cc5d),'../..'),_0x231301=resolve(_0x167cdf,_0x2c42fd(0x100)),_0x1418b3=JSON[_0x2c42fd(0x106)](readFileSync(_0x231301,_0x2c42fd(0xf9)));return _0x1418b3['version']||_0x2c42fd(0x102);}catch{return _0x2c42fd(0x102);}}export async function checkCliVersion(){const _0x505bd0=a343_0x1596,_0xb83363=getCurrentCliVersion(),_0x789655=await getCliVersionPolicy(),_0x5e5cd9=_0x789655?.[_0x505bd0(0xfd)]||null,_0x300909=_0x789655?.[_0x505bd0(0x105)]||null;let _0x5c8296=![],_0x5224b0=![];const _0x5d07c6=a343_0x4c5da6['coerce'](_0xb83363);if(_0x5d07c6&&_0x5e5cd9)try{const _0x4b8eee=a343_0x4c5da6[_0x505bd0(0x101)](_0x5e5cd9);if(_0x4b8eee)_0x5c8296=a343_0x4c5da6['lt'](_0x5d07c6,_0x4b8eee);}catch{}if(_0x5d07c6&&_0x300909)try{const _0x20dc6d=a343_0x4c5da6[_0x505bd0(0x101)](_0x300909);if(_0x20dc6d)_0x5224b0=a343_0x4c5da6['lt'](_0x5d07c6,_0x20dc6d);}catch{}return _0x5224b0&&(_0x5c8296=!![]),{'currentVersion':_0xb83363,'stableVersion':_0x5e5cd9,'minimumVersion':_0x300909,'needsUpgrade':_0x5c8296,'belowMinimum':_0x5224b0,'isPreRelease':![],'upgradeMessage':_0x789655?.['upgradeMessage'],'minimumVersionMessage':_0x789655?.['minimumVersionMessage']};}function a343_0x1596(_0x221a7f,_0x2b47e0){_0x221a7f=_0x221a7f-0xe4;const _0x153bdc=a343_0x153b();let _0x15963a=_0x153bdc[_0x221a7f];return _0x15963a;}export function printCliUpgradeWarning(_0x19dc5b){const _0xcbc390=a343_0x1596;if(!_0x19dc5b[_0xcbc390(0xfa)]&&!_0x19dc5b[_0xcbc390(0xe8)])return;const _0x49cf06=_0xcbc390(0xf7),_0x362424=_0xcbc390(0xf6),_0x38dd68=_0xcbc390(0xec),_0x3e2ca8=_0xcbc390(0xfb),_0x1faae4=getCliUpgradeCommand(_0x19dc5b);console[_0xcbc390(0xff)](),_0x19dc5b[_0xcbc390(0xe8)]?(console['log'](''+_0x49cf06+_0x3e2ca8+_0xcbc390(0xe5)+_0x38dd68),console[_0xcbc390(0xff)](_0x49cf06+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x19dc5b[_0xcbc390(0x104)]+_0x38dd68),_0x19dc5b[_0xcbc390(0x105)]&&console['log'](_0x49cf06+_0xcbc390(0xf2)+_0x19dc5b['minimumVersion']+_0x38dd68),_0x19dc5b['stableVersion']&&_0x19dc5b[_0xcbc390(0xfd)]!==_0x19dc5b[_0xcbc390(0x105)]&&console['log'](_0x49cf06+_0xcbc390(0xed)+_0x19dc5b[_0xcbc390(0xfd)]+_0x38dd68),_0x19dc5b['minimumVersionMessage']&&console[_0xcbc390(0xff)](_0x49cf06+_0xcbc390(0xf5)+_0x19dc5b[_0xcbc390(0xee)]+_0x38dd68),console['log'](_0x49cf06+_0xcbc390(0xf0)+_0x1faae4+_0x38dd68)):(console[_0xcbc390(0xff)](''+_0x362424+_0x3e2ca8+'↪\x20New\x20version\x20available'+_0x38dd68),console[_0xcbc390(0xff)](_0x362424+_0xcbc390(0xfe)+_0x19dc5b[_0xcbc390(0x104)]+_0x38dd68),console[_0xcbc390(0xff)](_0x362424+_0xcbc390(0xea)+_0x19dc5b['stableVersion']+_0x38dd68),_0x19dc5b['upgradeMessage']&&console[_0xcbc390(0xff)](_0x362424+_0xcbc390(0xf5)+_0x19dc5b['upgradeMessage']+_0x38dd68),console[_0xcbc390(0xff)](_0x362424+_0xcbc390(0xf0)+_0x1faae4+_0x38dd68)),console[_0xcbc390(0xff)]();}export function assertCliVersionSupported(_0x358c3f){const _0x45d105=a343_0x1596;if(!_0x358c3f[_0x45d105(0xe8)])return;const _0x3b8a6e=[_0x358c3f[_0x45d105(0xee)],_0x45d105(0x109)+_0x358c3f[_0x45d105(0x104)],_0x358c3f[_0x45d105(0x105)]?_0x45d105(0xe9)+_0x358c3f[_0x45d105(0x105)]:null,_0x45d105(0xe6)+getCliUpgradeCommand(_0x358c3f)][_0x45d105(0xeb)](Boolean)[_0x45d105(0xef)]('\x0a');throw CliErrors[_0x45d105(0x108)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x3b8a6e);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x58638a,_0x251844){const _0xd3352=a344_0x25ac,_0x597b67=_0x58638a();while(!![]){try{const _0x39e827=-parseInt(_0xd3352(0x1f3))/0x1+parseInt(_0xd3352(0x1fd))/0x2+parseInt(_0xd3352(0x205))/0x3*(parseInt(_0xd3352(0x200))/0x4)+parseInt(_0xd3352(0x206))/0x5+parseInt(_0xd3352(0x204))/0x6+parseInt(_0xd3352(0x1f7))/0x7+parseInt(_0xd3352(0x1ef))/0x8*(-parseInt(_0xd3352(0x203))/0x9);if(_0x39e827===_0x251844)break;else _0x597b67['push'](_0x597b67['shift']());}catch(_0x403211){_0x597b67['push'](_0x597b67['shift']());}}}(a344_0x3143,0xc455d));import{getCliVersionPolicyUrl,getProjectTemplateAssetBaseUrl,getProjectTemplateLegacyAssetBaseUrl}from'../constant/cdn.js';function a344_0x25ac(_0x461a18,_0x3837df){_0x461a18=_0x461a18-0x1ef;const _0x3143c5=a344_0x3143();let _0x25ac87=_0x3143c5[_0x461a18];return _0x25ac87;}import a344_0x175387 from'semver';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;export function isBetaCliVersion(_0x49cd8d){const _0x40517e=a344_0x25ac,_0x2a97fa=a344_0x175387[_0x40517e(0x207)](_0x49cd8d);return _0x2a97fa?a344_0x175387[_0x40517e(0x1f5)](_0x2a97fa)?.[0x0]===_0x40517e(0x202):![];}export function resolveProjectTemplateDescriptor(_0x33a501,_0x490cda){const _0x4eb4a8=a344_0x25ac;if(isBetaCliVersion(_0x490cda))return _0x33a501[_0x4eb4a8(0x202)]?.[_0x4eb4a8(0x208)]??_0x33a501[_0x4eb4a8(0x208)];return _0x33a501[_0x4eb4a8(0x208)];}function pickString(_0x4cb2de){const _0x2d81d2=a344_0x25ac;return typeof _0x4cb2de==='string'&&_0x4cb2de[_0x2d81d2(0x1fc)]()[_0x2d81d2(0x1fb)]>0x0?_0x4cb2de['trim']():null;}function normalizeCliVersionPolicy(_0x5a3563){const _0x56bfaa=a344_0x25ac;if(!_0x5a3563||typeof _0x5a3563!==_0x56bfaa(0x1ff))return null;const _0x48ab06=_0x5a3563,_0x4e3eca=_0x48ab06[_0x56bfaa(0x1f8)]&&typeof _0x48ab06['cli']===_0x56bfaa(0x1ff)?_0x48ab06[_0x56bfaa(0x1f8)]:_0x48ab06,_0x205ec6=pickString(_0x4e3eca['stableVersion'])||pickString(_0x4e3eca[_0x56bfaa(0x1fa)])||pickString(_0x4e3eca[_0x56bfaa(0x1f4)]),_0x1716fb=pickString(_0x4e3eca[_0x56bfaa(0x1fe)])||pickString(_0x4e3eca[_0x56bfaa(0x1f1)]);if(!_0x205ec6&&!_0x1716fb)return null;return{'stableVersion':_0x205ec6,'minimumVersion':_0x1716fb,'upgradeMessage':pickString(_0x4e3eca[_0x56bfaa(0x1f6)])||undefined,'minimumVersionMessage':pickString(_0x4e3eca['minimumVersionMessage'])||undefined};}async function fetchRabetbaseCdnConfigAt(_0x4d0c8b){const _0x3dc186=a344_0x25ac,_0x5e5808=new AbortController(),_0x58d21d=setTimeout(()=>_0x5e5808[_0x3dc186(0x1f2)](),FETCH_TIMEOUT_MS);try{const _0x42770a=await fetch(_0x4d0c8b,{'headers':{'Accept':'application/json'},'signal':_0x5e5808[_0x3dc186(0x201)]});if(!_0x42770a['ok'])return null;const _0x1a36c5=await _0x42770a[_0x3dc186(0x1f9)]();return _0x1a36c5&&typeof _0x1a36c5===_0x3dc186(0x1ff)?_0x1a36c5:null;}catch{return null;}finally{clearTimeout(_0x58d21d);}}export async function fetchRabetbaseCdnConfig(){return fetchRabetbaseCdnConfigAt(getCliVersionPolicyUrl());}export async function fetchProjectTemplateCdnConfig(){const _0x559cc0=await getRabetbaseCdnConfig();return _0x559cc0?{'config':_0x559cc0,'assetBaseUrl':getProjectTemplateAssetBaseUrl(),'legacyAssetBaseUrl':getProjectTemplateLegacyAssetBaseUrl()}:null;}function a344_0x3143(){const _0xc8ea40=['1560114Vookhw','4557150XnNbRP','valid','projectTemplate','13768584zsgKZs','now','minVersion','abort','1001177yVdbGj','recommendedVersion','prerelease','upgradeMessage','3461955xDmnFI','cli','json','latestVersion','length','trim','473604IchDuN','minimumVersion','object','4LJAIuM','signal','beta','9uALgrF','8181624iMZOdJ'];a344_0x3143=function(){return _0xc8ea40;};return a344_0x3143();}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x1394c7=a344_0x25ac,_0x4fad92=Date[_0x1394c7(0x1f0)]();if(hasCachedConfig){const _0x4e5205=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x4fad92-cacheTime<_0x4e5205)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x4fad92,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
|
package/lib/utils/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x35c2be,_0x1a3af5){const _0x83634f=a345_0x4202,_0x4abfed=_0x35c2be();while(!![]){try{const _0xb9fcbf=parseInt(_0x83634f(0x8d))/0x1+parseInt(_0x83634f(0x89))/0x2*(parseInt(_0x83634f(0x8f))/0x3)+-parseInt(_0x83634f(0x8b))/0x4+-parseInt(_0x83634f(0x8c))/0x5*(-parseInt(_0x83634f(0x87))/0x6)+parseInt(_0x83634f(0x8a))/0x7*(parseInt(_0x83634f(0x90))/0x8)+parseInt(_0x83634f(0x8e))/0x9+-parseInt(_0x83634f(0x88))/0xa;if(_0xb9fcbf===_0x1a3af5)break;else _0x4abfed['push'](_0x4abfed['shift']());}catch(_0x41f22f){_0x4abfed['push'](_0x4abfed['shift']());}}}(a345_0x5e2e,0xac97b));import{initEnv}from'../constant/env.js';function a345_0x5e2e(){const _0x35d815=['35790fWticT','790076sVxCqL','7937712aadhXm','296841aRBMIp','1232iKCYJf','306orQoHZ','14079850JoGOMV','4ncRTZZ','15253dTJbUi','1822552ejgNcD'];a345_0x5e2e=function(){return _0x35d815;};return a345_0x5e2e();}function a345_0x4202(_0x546f08,_0x40da3e){_0x546f08=_0x546f08-0x87;const _0x5e2edb=a345_0x5e2e();let _0x4202a3=_0x5e2edb[_0x546f08];return _0x4202a3;}import{readRawConfig,getConfigAppCode as a345_0x123feb,getMultiAppConfigs as a345_0x4486d9,getTemplateBaseUrl as a345_0x43f742}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x8203e6){const _0x1ae417=readRawConfig(_0x8203e6);return _0x1ae417['env']&&typeof _0x1ae417['env']==='string'&&initEnv(_0x1ae417['env']),_0x1ae417;}export function getConfigAppCode(){return a345_0x123feb();}export function getMultiAppConfigs(_0x5b87b6='project'){return a345_0x4486d9(_0x5b87b6);}export function getTemplateBaseUrl(){return a345_0x43f742();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x30bb1d,_0x3a61cb){const _0x5e5ea2=a346_0x1ca1,_0x5a7940=_0x30bb1d();while(!![]){try{const _0x36be18=parseInt(_0x5e5ea2(0x1d0))/0x1+-parseInt(_0x5e5ea2(0x1d7))/0x2*(parseInt(_0x5e5ea2(0x1d5))/0x3)+-parseInt(_0x5e5ea2(0x1cf))/0x4*(-parseInt(_0x5e5ea2(0x1d9))/0x5)+-parseInt(_0x5e5ea2(0x1da))/0x6+-parseInt(_0x5e5ea2(0x1d8))/0x7+-parseInt(_0x5e5ea2(0x1d6))/0x8*(-parseInt(_0x5e5ea2(0x1d3))/0x9)+-parseInt(_0x5e5ea2(0x1d2))/0xa;if(_0x36be18===_0x3a61cb)break;else _0x5a7940['push'](_0x5a7940['shift']());}catch(_0x4c695a){_0x5a7940['push'](_0x5a7940['shift']());}}}(a346_0x6f82,0x48be0));function toFiniteNumber(_0x460bb2){const _0x2c823e=a346_0x1ca1;if(typeof _0x460bb2==='number'&&Number['isFinite'](_0x460bb2))return _0x460bb2;if(typeof _0x460bb2===_0x2c823e(0x1d4)){const _0x21eaa6=_0x460bb2[_0x2c823e(0x1ce)]();if(!_0x21eaa6)return undefined;const _0x3cde6d=Number(_0x21eaa6);if(Number['isFinite'](_0x3cde6d))return _0x3cde6d;}return undefined;}function a346_0x6f82(){const _0x1d8db8=['3034026fSlABd','trim','17260ShPSSQ','283438FuGusp','object','460110pqKHbf','41031THHkdp','string','69QapoNK','808qbbfSQ','8926CFrbCh','1833643FezqJX','545YPuAwp'];a346_0x6f82=function(){return _0x1d8db8;};return a346_0x6f82();}function a346_0x1ca1(_0x1bd647,_0x1fbbcf){_0x1bd647=_0x1bd647-0x1ce;const _0x6f8207=a346_0x6f82();let _0x1ca18f=_0x6f8207[_0x1bd647];return _0x1ca18f;}export function normalizeEntityWithIdResponse(_0x5a27f7){const _0x144809=a346_0x1ca1,_0x216b1e=toFiniteNumber(_0x5a27f7);if(_0x216b1e!==undefined)return{'id':_0x216b1e,'entity':{'id':_0x216b1e}};if(!_0x5a27f7||typeof _0x5a27f7!==_0x144809(0x1d1))return{'id':undefined,'entity':{}};const _0x2e0026={..._0x5a27f7},_0x47844e=toFiniteNumber(_0x2e0026['id']);return _0x47844e!==undefined&&(_0x2e0026['id']=_0x47844e),{'id':_0x47844e,'entity':_0x2e0026};}
|
package/lib/utils/file-utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a347_0x24a6(){const _0x223ec2=['7291740OMnwwT','526174mqIPHx','222688zjdxKL','550Momxas','8291745TUsMvk','1245585VniKYH','2ETIwQQ','556wWVMQP','351RZTUla','isDirectory','332060WyFMtP','48220aEXTjC'];a347_0x24a6=function(){return _0x223ec2;};return a347_0x24a6();}function a347_0x589e(_0x269bd0,_0x3c8fc4){_0x269bd0=_0x269bd0-0x138;const _0x24a6d6=a347_0x24a6();let _0x589ee7=_0x24a6d6[_0x269bd0];return _0x589ee7;}(function(_0x56ab07,_0x1b2bba){const _0x2908ce=a347_0x589e,_0x259489=_0x56ab07();while(!![]){try{const _0x34ab5f=-parseInt(_0x2908ce(0x139))/0x1+-parseInt(_0x2908ce(0x13e))/0x2*(parseInt(_0x2908ce(0x13d))/0x3)+parseInt(_0x2908ce(0x13f))/0x4*(-parseInt(_0x2908ce(0x143))/0x5)+parseInt(_0x2908ce(0x138))/0x6+parseInt(_0x2908ce(0x13c))/0x7+-parseInt(_0x2908ce(0x13a))/0x8*(parseInt(_0x2908ce(0x140))/0x9)+parseInt(_0x2908ce(0x142))/0xa*(parseInt(_0x2908ce(0x13b))/0xb);if(_0x34ab5f===_0x1b2bba)break;else _0x259489['push'](_0x259489['shift']());}catch(_0x59be29){_0x259489['push'](_0x259489['shift']());}}}(a347_0x24a6,0xa919c));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x474150,_0x289e95){const _0x3021bf=a347_0x589e,_0x2abfb3=statSync(_0x474150);if(_0x2abfb3[_0x3021bf(0x141)]()){!existsSync(_0x289e95)&&mkdirSync(_0x289e95,{'recursive':!![]});const _0x459d8f=readdirSync(_0x474150);for(const _0x3fb64c of _0x459d8f){await copyDir(join(_0x474150,_0x3fb64c),join(_0x289e95,_0x3fb64c));}}else copyFileSync(_0x474150,_0x289e95);}export function ensureDir(_0x383c4c){!existsSync(_0x383c4c)&&mkdirSync(_0x383c4c,{'recursive':!![]});}export function pathExists(_0x5683bc){return existsSync(_0x5683bc);}
|
package/lib/utils/guides-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a348_0x10552c=a348_0x9c66;(function(_0x12e0c7,_0x417b17){const _0xc8c8e0=a348_0x9c66,_0x5a4a49=_0x12e0c7();while(!![]){try{const _0x35d085=parseInt(_0xc8c8e0(0x1e7))/0x1*(-parseInt(_0xc8c8e0(0x1e3))/0x2)+parseInt(_0xc8c8e0(0x1e4))/0x3*(-parseInt(_0xc8c8e0(0x1d8))/0x4)+parseInt(_0xc8c8e0(0x1ec))/0x5+parseInt(_0xc8c8e0(0x1db))/0x6+parseInt(_0xc8c8e0(0x1d7))/0x7+parseInt(_0xc8c8e0(0x1e1))/0x8+-parseInt(_0xc8c8e0(0x1d3))/0x9;if(_0x35d085===_0x417b17)break;else _0x5a4a49['push'](_0x5a4a49['shift']());}catch(_0x15d418){_0x5a4a49['push'](_0x5a4a49['shift']());}}}(a348_0x2079,0x51bcb));function a348_0x9c66(_0x54c82c,_0x539d72){_0x54c82c=_0x54c82c-0x1d2;const _0x2079f4=a348_0x2079();let _0x9c669e=_0x2079f4[_0x54c82c];return _0x9c669e;}import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';function a348_0x2079(){const _0x1aac2d=['content','json','CDN\x20returned\x20invalid\x20data','/skills/guides.json','6915690KNGbdR','replace','trimEnd','object','1498301aIvimZ','28VQnnhI','keys','guides','2818536sbjXAK','application/json','.lovrabet','extendContent','.lovrabet/skill/guides','push','4659256rEUkoD','length','334douUYu','215031okYtAf','utf-8','skillTemplate','443FrDvZk','statusText','\x0a\x0a>更新时间:','entries','join','2063595FZoSFo','cache','lastUpdated'];a348_0x2079=function(){return _0x1aac2d;};return a348_0x2079();}import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x55fa74=a348_0x9c66,_0x3ded48=getTemplateBaseUrl();return _0x3ded48+_0x55fa74(0x1d2);}const CACHE_DIR=join(homedir(),a348_0x10552c(0x1dd),a348_0x10552c(0x1ed));export async function fetchGuidesFromCDN(){const _0x43e78b=a348_0x10552c,_0x253f70=getGuidesCdnUrl(),_0x18f847=await fetch(_0x253f70,{'headers':{'Accept':_0x43e78b(0x1dc)}});if(!_0x18f847['ok'])throw new Error('CDN\x20request\x20failed:\x20'+_0x18f847['status']+'\x20'+_0x18f847[_0x43e78b(0x1e8)]);const _0x105902=await _0x18f847[_0x43e78b(0x1f0)]();if(!_0x105902['guides']||typeof _0x105902['guides']!==_0x43e78b(0x1d6))throw new Error(_0x43e78b(0x1f1));return _0x105902;}export function writeGuidesToProject(_0x266652,_0x3e2b71,_0x442321=a348_0x10552c(0x1df),_0x40a92f){const _0x43d2a4=a348_0x10552c,_0x4ade37=join(_0x3e2b71,_0x442321);mkdirSync(_0x4ade37,{'recursive':!![]});for(const [_0x5455da,_0x1745fb]of Object[_0x43d2a4(0x1ea)](_0x266652[_0x43d2a4(0x1da)])){let _0x4fe329=_0x1745fb[_0x43d2a4(0x1ef)];_0x1745fb[_0x43d2a4(0x1ee)]&&(_0x4fe329=appendUpdateTime(_0x4fe329,_0x1745fb[_0x43d2a4(0x1ee)])),writeFileSync(join(_0x4ade37,_0x5455da+'.md'),_0x4fe329,_0x43d2a4(0x1e5));}}export function appendUpdateTime(_0x169dc4,_0x2adb1b){const _0x50373a=a348_0x10552c;return _0x169dc4=_0x169dc4[_0x50373a(0x1d4)](/\n*>更新时间:.*$/m,''),_0x169dc4[_0x50373a(0x1d5)]()+(_0x50373a(0x1e9)+_0x2adb1b);}export function getSkillTemplate(_0x1170ad){const _0x327e06=a348_0x10552c;return _0x1170ad[_0x327e06(0x1e6)]?.[_0x327e06(0x1ef)]||'';}export function appendExtendContents(_0x37c691,_0x5e056b,_0x3e6960){const _0x280314=a348_0x10552c,_0x56b68b=[];for(const [,_0x1ad85d]of Object['entries'](_0x5e056b['guides'])){_0x1ad85d['extendContent']&&_0x56b68b[_0x280314(0x1e0)](_0x1ad85d[_0x280314(0x1de)][_0x280314(0x1d5)]());}if(_0x56b68b['length']===0x0)return _0x37c691;return _0x37c691[_0x280314(0x1d5)]()+'\x0a\x0a'+_0x56b68b[_0x280314(0x1eb)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x22094d,_0x33e589,_0xe1ccf6){const _0x2a6714=a348_0x10552c,_0xc0033f=getSkillTemplate(_0x22094d);if(!_0xc0033f)throw new Error('CDN\x20data\x20is\x20missing\x20skillTemplate');const _0x4d4924=dirname(_0x33e589);mkdirSync(_0x4d4924,{'recursive':!![]});let _0x1f5b06=_0xc0033f[_0x2a6714(0x1d4)](/\{\{IDE_NAME\}\}/g,_0xe1ccf6);_0x1f5b06=appendExtendContents(_0x1f5b06,_0x22094d),_0x22094d[_0x2a6714(0x1e6)][_0x2a6714(0x1ee)]&&(_0x1f5b06=appendUpdateTime(_0x1f5b06,_0x22094d['skillTemplate'][_0x2a6714(0x1ee)])),writeFileSync(_0x33e589,_0x1f5b06,_0x2a6714(0x1e5));}export async function installGuides(_0x4d4a86){const _0x4ab8ad=a348_0x10552c,_0x1d339f=await fetchGuidesFromCDN();return writeGuidesToProject(_0x1d339f,_0x4d4a86),Object[_0x4ab8ad(0x1d9)](_0x1d339f[_0x4ab8ad(0x1da)])[_0x4ab8ad(0x1e2)];}export function getGuidesSummary(_0x5d9b34){const _0x46762d=a348_0x10552c;return Object[_0x46762d(0x1ea)](_0x5d9b34['guides'])['map'](([_0x40330e,_0x232bd7])=>({'key':_0x40330e,'title':_0x232bd7['title'],'path':_0x232bd7['path']}));}
|
package/lib/utils/http-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x40352d,_0x2efb96){const _0x3f90d9=a349_0xbc5c,_0x359ac8=_0x40352d();while(!![]){try{const _0x39ddd6=parseInt(_0x3f90d9(0x16a))/0x1+parseInt(_0x3f90d9(0x166))/0x2*(-parseInt(_0x3f90d9(0x175))/0x3)+-parseInt(_0x3f90d9(0x162))/0x4+parseInt(_0x3f90d9(0x17c))/0x5*(parseInt(_0x3f90d9(0x169))/0x6)+parseInt(_0x3f90d9(0x16f))/0x7*(-parseInt(_0x3f90d9(0x163))/0x8)+-parseInt(_0x3f90d9(0x16c))/0x9*(-parseInt(_0x3f90d9(0x170))/0xa)+parseInt(_0x3f90d9(0x16d))/0xb*(parseInt(_0x3f90d9(0x174))/0xc);if(_0x39ddd6===_0x2efb96)break;else _0x359ac8['push'](_0x359ac8['shift']());}catch(_0x2d2bbe){_0x359ac8['push'](_0x359ac8['shift']());}}}(a349_0xd58e,0x50f60));export async function httpRequest(_0x3e66fe,_0x55d04f={}){const _0x201829=a349_0xbc5c,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x55d04f;let _0xe49024=null;for(let _0x1bea61=0x0;_0x1bea61<=retries;_0x1bea61++){try{const _0x76885b=new AbortController(),_0x64e12=setTimeout(()=>_0x76885b['abort'](),timeout),_0x2e91a8=await fetch(_0x3e66fe,{'headers':headers,'signal':_0x76885b[_0x201829(0x172)]});clearTimeout(_0x64e12);let _0x12f910;const _0x2cfd7f=_0x2e91a8['headers'][_0x201829(0x168)](_0x201829(0x164));return _0x2cfd7f?.[_0x201829(0x15e)](_0x201829(0x173))?_0x12f910=await _0x2e91a8[_0x201829(0x15d)]():_0x12f910=await _0x2e91a8[_0x201829(0x16b)](),{'ok':_0x2e91a8['ok'],'status':_0x2e91a8[_0x201829(0x15f)],'statusText':_0x2e91a8['statusText'],'data':_0x12f910,'headers':_0x2e91a8[_0x201829(0x167)],'url':_0x2e91a8['url'],'text':()=>_0x2e91a8['text']()};}catch(_0x520906){_0xe49024=_0x520906 instanceof Error?_0x520906:new Error(String(_0x520906));if(_0x1bea61===retries)break;if(shouldRetry(_0x520906)){console[_0x201829(0x17a)](_0x201829(0x160)+(_0x1bea61+0x1)+_0x201829(0x165)+retryDelay+_0x201829(0x17b)),await sleep(retryDelay);continue;}else break;}}throw _0xe49024||new Error(_0x201829(0x177));}function shouldRetry(_0x1453a9){const _0x40330e=a349_0xbc5c;if(_0x1453a9 instanceof Error){if(_0x1453a9[_0x40330e(0x16e)]===_0x40330e(0x179))return![];if(_0x1453a9[_0x40330e(0x16e)]===_0x40330e(0x171)&&_0x1453a9[_0x40330e(0x161)][_0x40330e(0x15e)](_0x40330e(0x178)))return!![];if(_0x1453a9[_0x40330e(0x161)][_0x40330e(0x15e)]('ECONNRESET'))return!![];if(_0x1453a9['message'][_0x40330e(0x15e)](_0x40330e(0x176)))return![];}return![];}function a349_0xbc5c(_0x3c7f0b,_0x1f4029){_0x3c7f0b=_0x3c7f0b-0x15d;const _0xd58e35=a349_0xd58e();let _0xbc5c19=_0xd58e35[_0x3c7f0b];return _0xbc5c19;}function a349_0xd58e(){const _0x46df58=['537987xIxLnT','text','36RhnqTL','1243cAAgfO','name','501627HYjmmb','383310OQtBUv','TypeError','signal','application/json','49464fgsBzn','69ONKxYL','ENOTFOUND','Request\x20failed','fetch','AbortError','log','ms...','25zADHIW','json','includes','status','*\x20Request\x20failed;\x20retry\x20','message','316312sJLwEi','72jsrqWj','content-type','\x20in\x20','41966nCOOsy','headers','get','457386bTfUOO'];a349_0xd58e=function(){return _0x46df58;};return a349_0xd58e();}function sleep(_0x46cfbb){return new Promise(_0x1040fd=>setTimeout(_0x1040fd,_0x46cfbb));}export function validateUrl(_0x1261a1){try{return new URL(_0x1261a1),!![];}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x296d6d,_0x43be18){const _0x747b82=a350_0x357d,_0x1edac7=_0x296d6d();while(!![]){try{const _0x456a4b=-parseInt(_0x747b82(0x169))/0x1*(-parseInt(_0x747b82(0x161))/0x2)+parseInt(_0x747b82(0x15f))/0x3*(parseInt(_0x747b82(0x16c))/0x4)+parseInt(_0x747b82(0x164))/0x5+-parseInt(_0x747b82(0x165))/0x6+parseInt(_0x747b82(0x16a))/0x7*(parseInt(_0x747b82(0x168))/0x8)+parseInt(_0x747b82(0x15c))/0x9*(-parseInt(_0x747b82(0x167))/0xa)+-parseInt(_0x747b82(0x16b))/0xb;if(_0x456a4b===_0x43be18)break;else _0x1edac7['push'](_0x1edac7['shift']());}catch(_0x2db61e){_0x1edac7['push'](_0x1edac7['shift']());}}}(a350_0x2515,0x7ee28));function a350_0x2515(){const _0x2f7c78=['21249558RgqsNU','315388VSXFoV','7677468BquUCs','setRawMode','isRaw','36OyBYTm','stdout','8972pciaGr','stdin','isTTY','4977685poWJgF','2806800ZWqsPC','true','10udaFzq','301832zyxKDo','181dNJNYT','189pIUtoP'];a350_0x2515=function(){return _0x2f7c78;};return a350_0x2515();}function a350_0x357d(_0x58555d,_0x52b28a){_0x58555d=_0x58555d-0x15c;const _0x251539=a350_0x2515();let _0x357df8=_0x251539[_0x58555d];return _0x357df8;}function env(_0xf795c){return process.env[`RABETBASE_${_0xf795c}`]||process.env[`LOVRABET_${_0xf795c}`]||undefined;}export function isNonInteractive(_0x2f8ce7){const _0x577b74=a350_0x357d;return!!(_0x2f8ce7['nonInteractive']||_0x2f8ce7['ci']||env('CI')===_0x577b74(0x166)||process.env.CI===_0x577b74(0x166)||!process[_0x577b74(0x160)][_0x577b74(0x163)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x4b1aa7=a350_0x357d;if(!process[_0x4b1aa7(0x162)]['isTTY'])return![];try{const _0x5aef92=process[_0x4b1aa7(0x162)][_0x4b1aa7(0x15e)];return process[_0x4b1aa7(0x162)][_0x4b1aa7(0x15d)](!![]),process[_0x4b1aa7(0x162)][_0x4b1aa7(0x15d)](_0x5aef92??![]),!![];}catch{return![];}}
|