@lovrabet/rabetbase-cli 2.5.2-beta.4 → 2.5.2-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/auto-sync.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/deployment/sync.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.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/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.d.ts +6 -5
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const a294_0x1b79d7=a294_0x434e;(function(_0x50300f,_0x5bbd50){const _0x1b23e8=a294_0x434e,_0x374b27=_0x50300f();while(!![]){try{const _0x376640=-parseInt(_0x1b23e8(0x1da))/0x1*(parseInt(_0x1b23e8(0x1ac))/0x2)+parseInt(_0x1b23e8(0x1c8))/0x3+-parseInt(_0x1b23e8(0x1d3))/0x4*(parseInt(_0x1b23e8(0x1af))/0x5)+parseInt(_0x1b23e8(0x1e2))/0x6*(parseInt(_0x1b23e8(0x1cc))/0x7)+-parseInt(_0x1b23e8(0x1c4))/0x8+parseInt(_0x1b23e8(0x1d6))/0x9+-parseInt(_0x1b23e8(0x1c1))/0xa*(-parseInt(_0x1b23e8(0x1b4))/0xb);if(_0x376640===_0x5bbd50)break;else _0x374b27['push'](_0x374b27['shift']());}catch(_0x39867b){_0x374b27['push'](_0x374b27['shift']());}}}(a294_0x544b,0xbda05));import{createHash}from'node:crypto';function a294_0x544b(){const _0x30425d=['361025edDRuB',':\x5cs*(.+)$','path','name','state','manifest','isSymbolicLink','trim','8741868HTzvPy','current','VERIFY_FAILED','split','package.json','home','unknown','packageVersion','reason','4MbbSHI','isFile','sha256','109425Pxuznd','length','startsWith','root','INSTALL_FAILED','1881ZkCnwf','flatMap','unverifiable','schemaVersion','every','isDirectory','missing','installedPath','skills','SKILL.md','includes','digest','skipped','27630AYcOdU','rabetbase','skillVersion','7866368KuZGwE','status','match','packageRoot','1067550kSphEO','skills@latest\x20exited\x20','message','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','7zyYmRn','SOURCE_INVALID','update','rabetbase.manifest.json','version','pipe','rabetbase\x20cli-skill\x20install','100UbzkQZ','version_mismatch','absent','6694911OgIIuv','utf8','files','error'];a294_0x544b=function(){return _0x30425d;};return a294_0x544b();}import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a294_0x1b79d7(0x1d2),SKILL_NAME=a294_0x1b79d7(0x1c2);function a294_0x434e(_0x409cf8,_0x273d5e){_0x409cf8=_0x409cf8-0x1a7;const _0x544ba2=a294_0x544b();let _0x434e16=_0x544ba2[_0x409cf8];return _0x434e16;}function frontmatterValue(_0x173ad8,_0x5f2942){const _0x4ae006=a294_0x1b79d7;return _0x173ad8[_0x4ae006(0x1c6)](new RegExp('^'+_0x5f2942+_0x4ae006(0x1db),'m'))?.[0x1]?.[_0x4ae006(0x1e1)]()??'';}function listFiles(_0xc05297,_0x253144=_0xc05297){const _0x486744=a294_0x1b79d7;return readdirSync(_0x253144,{'withFileTypes':!![]})[_0x486744(0x1b5)](_0x69c706=>{const _0x119221=_0x486744,_0x2c25c4=join(_0x253144,_0x69c706[_0x119221(0x1dd)]),_0x54fa09=lstatSync(_0x2c25c4);if(_0x54fa09[_0x119221(0x1e0)]())throw new Error('Symbolic\x20link\x20is\x20not\x20allowed:\x20'+_0x2c25c4);if(_0x54fa09[_0x119221(0x1b9)]())return listFiles(_0xc05297,_0x2c25c4);if(!_0x54fa09[_0x119221(0x1ad)]())throw new Error('Unsupported\x20Skill\x20entry:\x20'+_0x2c25c4);return[relative(_0xc05297,_0x2c25c4)[_0x119221(0x1e5)](sep)['join']('/')];})['sort']((_0x33ca80,_0x37bca5)=>_0x33ca80<_0x37bca5?-0x1:_0x33ca80>_0x37bca5?0x1:0x0);}function digestFiles(_0x4214ff,_0x1c6ef5){const _0x13839b=a294_0x1b79d7,_0x4a3f34=createHash(_0x13839b(0x1ae));for(const _0x1565c6 of _0x1c6ef5){if(_0x1565c6[_0x13839b(0x1b1)]('/')||_0x1565c6[_0x13839b(0x1e5)]('/')[_0x13839b(0x1be)]('..')||_0x1565c6[_0x13839b(0x1be)]('\x5c'))throw new Error('Unsafe\x20manifest\x20path:\x20'+_0x1565c6);_0x4a3f34[_0x13839b(0x1ce)](_0x1565c6),_0x4a3f34[_0x13839b(0x1ce)]('\x00'),_0x4a3f34[_0x13839b(0x1ce)](readFileSync(join(_0x4214ff,..._0x1565c6[_0x13839b(0x1e5)]('/')))),_0x4a3f34[_0x13839b(0x1ce)]('\x00');}return _0x4a3f34[_0x13839b(0x1bf)]('hex');}function sameFiles(_0x358c61,_0x143ec1){const _0x119dc0=a294_0x1b79d7;return _0x358c61[_0x119dc0(0x1b0)]===_0x143ec1[_0x119dc0(0x1b0)]&&_0x358c61[_0x119dc0(0x1b8)]((_0x51c201,_0x41377d)=>_0x51c201===_0x143ec1[_0x41377d]);}function readSource(_0x35bb4a){const _0x3b7368=a294_0x1b79d7,_0x1ec466=JSON['parse'](readFileSync(join(_0x35bb4a,_0x3b7368(0x1a7)),_0x3b7368(0x1d7))),_0x77cb78=JSON['parse'](readFileSync(join(_0x35bb4a,_0x3b7368(0x1bc),_0x3b7368(0x1cf)),_0x3b7368(0x1d7))),_0x360482=join(_0x35bb4a,_0x3b7368(0x1bc),SKILL_NAME),_0x1edcc9=frontmatterValue(readFileSync(join(_0x360482,_0x3b7368(0x1bd)),'utf8'),_0x3b7368(0x1d0)),_0x351092=listFiles(_0x360482);if(_0x77cb78[_0x3b7368(0x1b7)]!==0x1||_0x77cb78['name']!==SKILL_NAME||!_0x1ec466[_0x3b7368(0x1d0)]||_0x77cb78[_0x3b7368(0x1aa)]!==_0x1ec466[_0x3b7368(0x1d0)]||_0x77cb78[_0x3b7368(0x1c3)]!==_0x1ec466['version']||_0x1edcc9!==_0x1ec466[_0x3b7368(0x1d0)]||!sameFiles(_0x351092,_0x77cb78[_0x3b7368(0x1d8)])||digestFiles(_0x360482,_0x351092)!==_0x77cb78[_0x3b7368(0x1bf)])throw new Error(_0x3b7368(0x1cb));return{'packageVersion':_0x1ec466[_0x3b7368(0x1d0)],'skillVersion':_0x1edcc9,'root':_0x360482,'manifest':_0x77cb78};}function installedSkillPath(_0x368816){const _0xd2827c=a294_0x1b79d7,_0xd6cc10=resolveInstalledSkill(SKILL_NAME,{'home':_0x368816});if(_0xd6cc10[_0xd2827c(0x1de)]==='present')return{'state':'present','path':dirname(_0xd6cc10[_0xd2827c(0x1dc)])};if(_0xd6cc10[_0xd2827c(0x1de)]===_0xd2827c(0x1d5))return{'state':_0xd2827c(0x1ba)};return{'state':_0xd2827c(0x1b6),'reason':_0xd6cc10[_0xd2827c(0x1ab)]};}export function inspectInstalledBuiltinSkillVersion(_0x1099c6,_0x2ef84d={}){const _0x7ed914=a294_0x1b79d7,_0x268302=installedSkillPath(_0x2ef84d[_0x7ed914(0x1a8)]??homedir());if(_0x268302['state']===_0x7ed914(0x1ba))return{'state':_0x7ed914(0x1ba),'expectedVersion':_0x1099c6,'repairCommand':REPAIR_COMMAND};if(_0x268302[_0x7ed914(0x1de)]==='unverifiable')return{'state':_0x7ed914(0x1b6),'expectedVersion':_0x1099c6,'reason':_0x268302[_0x7ed914(0x1ab)],'repairCommand':REPAIR_COMMAND};try{const _0x46ba7b=frontmatterValue(readFileSync(join(_0x268302['path'],_0x7ed914(0x1bd)),_0x7ed914(0x1d7)),_0x7ed914(0x1d0));return{'state':_0x46ba7b===_0x1099c6?_0x7ed914(0x1e3):_0x7ed914(0x1d4),'expectedVersion':_0x1099c6,'skillVersion':_0x46ba7b,'installedPath':_0x268302[_0x7ed914(0x1dc)],'repairCommand':REPAIR_COMMAND};}catch(_0x364838){return{'state':_0x7ed914(0x1b6),'expectedVersion':_0x1099c6,'installedPath':_0x268302['path'],'reason':_0x364838 instanceof Error?_0x364838[_0x7ed914(0x1ca)]:String(_0x364838),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x61a9b9={}){const _0x386a12=a294_0x1b79d7,_0x54be79=_0x61a9b9[_0x386a12(0x1c7)]??DEFAULT_PACKAGE_ROOT;let _0x2db97e;try{_0x2db97e=readSource(_0x54be79);}catch(_0x3e7502){return{'state':_0x386a12(0x1b6),'packageVersion':_0x386a12(0x1a9),'reason':_0x3e7502 instanceof Error?_0x3e7502[_0x386a12(0x1ca)]:String(_0x3e7502),'repairCommand':REPAIR_COMMAND};}const _0xd4b3e6=installedSkillPath(_0x61a9b9[_0x386a12(0x1a8)]??homedir());if(_0xd4b3e6['state']==='missing')return{'state':_0x386a12(0x1ba),'packageVersion':_0x2db97e[_0x386a12(0x1aa)],'repairCommand':REPAIR_COMMAND};if(_0xd4b3e6[_0x386a12(0x1de)]===_0x386a12(0x1b6))return{'state':_0x386a12(0x1b6),'packageVersion':_0x2db97e[_0x386a12(0x1aa)],'reason':_0xd4b3e6[_0x386a12(0x1ab)],'repairCommand':REPAIR_COMMAND};try{const _0x36a240=frontmatterValue(readFileSync(join(_0xd4b3e6[_0x386a12(0x1dc)],_0x386a12(0x1bd)),_0x386a12(0x1d7)),'version');if(_0x36a240!==_0x2db97e[_0x386a12(0x1c3)])return{'state':'version_mismatch','packageVersion':_0x2db97e[_0x386a12(0x1aa)],'skillVersion':_0x36a240,'installedPath':_0xd4b3e6['path'],'repairCommand':REPAIR_COMMAND};const _0x1a91e0=listFiles(_0xd4b3e6[_0x386a12(0x1dc)]),_0x82c313=digestFiles(_0xd4b3e6[_0x386a12(0x1dc)],_0x1a91e0);return{'state':sameFiles(_0x1a91e0,_0x2db97e[_0x386a12(0x1df)][_0x386a12(0x1d8)])&&_0x82c313===_0x2db97e[_0x386a12(0x1df)][_0x386a12(0x1bf)]?_0x386a12(0x1e3):'content_mismatch','packageVersion':_0x2db97e[_0x386a12(0x1aa)],'skillVersion':_0x36a240,'installedPath':_0xd4b3e6[_0x386a12(0x1dc)],'digest':_0x82c313,'repairCommand':REPAIR_COMMAND};}catch(_0x567681){return{'state':'unverifiable','packageVersion':_0x2db97e[_0x386a12(0x1aa)],'installedPath':_0xd4b3e6[_0x386a12(0x1dc)],'reason':_0x567681 instanceof Error?_0x567681[_0x386a12(0x1ca)]:String(_0x567681),'repairCommand':REPAIR_COMMAND};}}function failure(_0x193983,_0x2ed025,_0x1c1af0,_0x108166){const _0x4fd201=a294_0x1b79d7;return{'ok':![],'code':_0x193983,'packageVersion':_0x2ed025['packageVersion'],'skillVersion':_0x2ed025['skillVersion'],'installedPath':_0x108166,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x1c1af0 instanceof Error?_0x1c1af0[_0x4fd201(0x1ca)]:String(_0x1c1af0)};}export function installBuiltinSkill(_0x358d2b={}){const _0x4acec1=a294_0x1b79d7,_0x28298c=_0x358d2b[_0x4acec1(0x1c7)]??DEFAULT_PACKAGE_ROOT,_0x65e43e=_0x358d2b[_0x4acec1(0x1a8)]??homedir();let _0x137ae3;try{_0x137ae3=readSource(_0x28298c);}catch(_0xf77ad9){return failure(_0x4acec1(0x1cd),{'packageVersion':_0x4acec1(0x1a9),'skillVersion':_0x4acec1(0x1a9)},_0xf77ad9);}const _0x428a37=inspectBuiltinSkill({'packageRoot':_0x28298c,'home':_0x65e43e}),_0x2c7c1c=runNpxSkillsAddGlobal(_0x28298c,_0x137ae3[_0x4acec1(0x1b2)],{'stdio':_0x358d2b['stdio']??_0x4acec1(0x1d1),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x65e43e}});if(_0x2c7c1c[_0x4acec1(0x1c0)])return{'ok':!![],'packageVersion':_0x137ae3[_0x4acec1(0x1aa)],'skillVersion':_0x137ae3[_0x4acec1(0x1c3)],'installedPath':_0x428a37['installedPath'],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x2c7c1c['ok'])return failure(_0x4acec1(0x1b3),_0x137ae3,_0x2c7c1c[_0x4acec1(0x1d9)]??_0x4acec1(0x1c9)+_0x2c7c1c[_0x4acec1(0x1c5)]);const _0x367415=inspectBuiltinSkill({'packageRoot':_0x28298c,'home':_0x65e43e});if(_0x367415[_0x4acec1(0x1de)]!==_0x4acec1(0x1e3))return failure(_0x4acec1(0x1e4),_0x137ae3,_0x367415[_0x4acec1(0x1ab)]??'Installed\x20Skill\x20state\x20is\x20'+_0x367415[_0x4acec1(0x1de)],_0x367415[_0x4acec1(0x1bb)]);return{'ok':!![],'packageVersion':_0x137ae3['packageVersion'],'skillVersion':_0x137ae3[_0x4acec1(0x1c3)],'installedPath':_0x367415[_0x4acec1(0x1bb)],'changed':_0x428a37['state']!==_0x4acec1(0x1e3),'repairCommand':REPAIR_COMMAND};}
|
|
1
|
+
const a294_0x27d610=a294_0x1b72;(function(_0x20f524,_0x5f09f1){const _0x4b22f8=a294_0x1b72,_0x509223=_0x20f524();while(!![]){try{const _0x344eb5=parseInt(_0x4b22f8(0x20a))/0x1+parseInt(_0x4b22f8(0x207))/0x2+-parseInt(_0x4b22f8(0x1dd))/0x3*(-parseInt(_0x4b22f8(0x1d2))/0x4)+-parseInt(_0x4b22f8(0x1d1))/0x5*(-parseInt(_0x4b22f8(0x1e8))/0x6)+-parseInt(_0x4b22f8(0x1e3))/0x7*(parseInt(_0x4b22f8(0x1d8))/0x8)+parseInt(_0x4b22f8(0x1df))/0x9+-parseInt(_0x4b22f8(0x1d0))/0xa;if(_0x344eb5===_0x5f09f1)break;else _0x509223['push'](_0x509223['shift']());}catch(_0x566dff){_0x509223['push'](_0x509223['shift']());}}}(a294_0x2145,0xbd7d6));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';function a294_0x2145(){const _0x5ed9be=['digest','name','reason','unverifiable','skills','Unsupported\x20Skill\x20entry:\x20','missing','every','join','1855468LOnyEf','present','flatMap','1110621mjKsfK','update','parse','state','version','absent','skipped','32729040Rsomze','5AqWKHQ','80452BWGdBq','rabetbase','hex','status','version_mismatch','SOURCE_INVALID','98584ldNAwi','error','sort','SKILL.md','length','75AWQnIz','content_mismatch','12740877XIQCLw',':\x5cs*(.+)$','Symbolic\x20link\x20is\x20not\x20allowed:\x20','message','742AkPjxE','rabetbase\x20cli-skill\x20install','skills@latest\x20exited\x20','package.json','split','8390754rrLMJm','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','VERIFY_FAILED','unknown','packageRoot','Unsafe\x20manifest\x20path:\x20','stdio','skillVersion','isDirectory','includes','INSTALL_FAILED','home','current','root','trim','path','packageVersion','utf8','sha256','startsWith','installedPath','manifest'];a294_0x2145=function(){return _0x5ed9be;};return a294_0x2145();}import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';function a294_0x1b72(_0x348954,_0x3ad9bd){_0x348954=_0x348954-0x1ce;const _0x214557=a294_0x2145();let _0x1b727a=_0x214557[_0x348954];return _0x1b727a;}const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a294_0x27d610(0x1e4),SKILL_NAME=a294_0x27d610(0x1d3);function frontmatterValue(_0x3034ea,_0x484054){const _0x1bcaf5=a294_0x27d610;return _0x3034ea['match'](new RegExp('^'+_0x484054+_0x1bcaf5(0x1e0),'m'))?.[0x1]?.[_0x1bcaf5(0x1f6)]()??'';}function listFiles(_0x4da8f2,_0x119817=_0x4da8f2){const _0x5174aa=a294_0x27d610;return readdirSync(_0x119817,{'withFileTypes':!![]})[_0x5174aa(0x209)](_0x58dcc4=>{const _0x450373=_0x5174aa,_0x2d9122=join(_0x119817,_0x58dcc4[_0x450373(0x1ff)]),_0x35754e=lstatSync(_0x2d9122);if(_0x35754e['isSymbolicLink']())throw new Error(_0x450373(0x1e1)+_0x2d9122);if(_0x35754e[_0x450373(0x1f0)]())return listFiles(_0x4da8f2,_0x2d9122);if(!_0x35754e['isFile']())throw new Error(_0x450373(0x203)+_0x2d9122);return[relative(_0x4da8f2,_0x2d9122)[_0x450373(0x1e7)](sep)[_0x450373(0x206)]('/')];})[_0x5174aa(0x1da)]((_0x2e7783,_0x3eed24)=>_0x2e7783<_0x3eed24?-0x1:_0x2e7783>_0x3eed24?0x1:0x0);}function digestFiles(_0x532e07,_0x41e590){const _0x471905=a294_0x27d610,_0x36138a=createHash(_0x471905(0x1fa));for(const _0x20a7ea of _0x41e590){if(_0x20a7ea[_0x471905(0x1fb)]('/')||_0x20a7ea[_0x471905(0x1e7)]('/')[_0x471905(0x1f1)]('..')||_0x20a7ea[_0x471905(0x1f1)]('\x5c'))throw new Error(_0x471905(0x1ed)+_0x20a7ea);_0x36138a[_0x471905(0x20b)](_0x20a7ea),_0x36138a[_0x471905(0x20b)]('\x00'),_0x36138a[_0x471905(0x20b)](readFileSync(join(_0x532e07,..._0x20a7ea[_0x471905(0x1e7)]('/')))),_0x36138a[_0x471905(0x20b)]('\x00');}return _0x36138a[_0x471905(0x1fe)](_0x471905(0x1d4));}function sameFiles(_0x146c16,_0x1f4075){const _0x373593=a294_0x27d610;return _0x146c16['length']===_0x1f4075[_0x373593(0x1dc)]&&_0x146c16[_0x373593(0x205)]((_0x3da72f,_0x577ae0)=>_0x3da72f===_0x1f4075[_0x577ae0]);}function readSource(_0x5e5b52){const _0x99199a=a294_0x27d610,_0x1088b6=JSON[_0x99199a(0x20c)](readFileSync(join(_0x5e5b52,_0x99199a(0x1e6)),_0x99199a(0x1f9))),_0x4df155=JSON[_0x99199a(0x20c)](readFileSync(join(_0x5e5b52,_0x99199a(0x202),'rabetbase.manifest.json'),'utf8')),_0x1cfc55=join(_0x5e5b52,_0x99199a(0x202),SKILL_NAME),_0x3e55f6=frontmatterValue(readFileSync(join(_0x1cfc55,_0x99199a(0x1db)),_0x99199a(0x1f9)),_0x99199a(0x20e)),_0x4bec33=listFiles(_0x1cfc55);if(_0x4df155['schemaVersion']!==0x1||_0x4df155[_0x99199a(0x1ff)]!==SKILL_NAME||!_0x1088b6['version']||_0x4df155[_0x99199a(0x1f8)]!==_0x1088b6[_0x99199a(0x20e)]||_0x4df155['skillVersion']!==_0x1088b6[_0x99199a(0x20e)]||_0x3e55f6!==_0x1088b6['version']||!sameFiles(_0x4bec33,_0x4df155['files'])||digestFiles(_0x1cfc55,_0x4bec33)!==_0x4df155[_0x99199a(0x1fe)])throw new Error(_0x99199a(0x1e9));return{'packageVersion':_0x1088b6[_0x99199a(0x20e)],'skillVersion':_0x3e55f6,'root':_0x1cfc55,'manifest':_0x4df155};}function installedSkillPath(_0xa5d249){const _0x37eab5=a294_0x27d610,_0x5221da=resolveInstalledSkill(SKILL_NAME,{'home':_0xa5d249});if(_0x5221da[_0x37eab5(0x20d)]===_0x37eab5(0x208))return{'state':'present','path':dirname(_0x5221da[_0x37eab5(0x1f7)])};if(_0x5221da['state']===_0x37eab5(0x1ce))return{'state':'missing'};return{'state':'unverifiable','reason':_0x5221da[_0x37eab5(0x200)]};}export function inspectInstalledBuiltinSkillVersion(_0x2bd3ef,_0x514255={}){const _0x41ee56=a294_0x27d610,_0x40646f=installedSkillPath(_0x514255['home']??homedir());if(_0x40646f[_0x41ee56(0x20d)]===_0x41ee56(0x204))return{'state':_0x41ee56(0x204),'expectedVersion':_0x2bd3ef,'repairCommand':REPAIR_COMMAND};if(_0x40646f[_0x41ee56(0x20d)]===_0x41ee56(0x201))return{'state':'unverifiable','expectedVersion':_0x2bd3ef,'reason':_0x40646f['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x507949=frontmatterValue(readFileSync(join(_0x40646f[_0x41ee56(0x1f7)],'SKILL.md'),_0x41ee56(0x1f9)),_0x41ee56(0x20e));return{'state':_0x507949===_0x2bd3ef?_0x41ee56(0x1f4):_0x41ee56(0x1d6),'expectedVersion':_0x2bd3ef,'skillVersion':_0x507949,'installedPath':_0x40646f[_0x41ee56(0x1f7)],'repairCommand':REPAIR_COMMAND};}catch(_0x2ce861){return{'state':'unverifiable','expectedVersion':_0x2bd3ef,'installedPath':_0x40646f[_0x41ee56(0x1f7)],'reason':_0x2ce861 instanceof Error?_0x2ce861[_0x41ee56(0x1e2)]:String(_0x2ce861),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x476816={}){const _0x274901=a294_0x27d610,_0x572ef5=_0x476816[_0x274901(0x1ec)]??DEFAULT_PACKAGE_ROOT;let _0x250798;try{_0x250798=readSource(_0x572ef5);}catch(_0x10fb00){return{'state':_0x274901(0x201),'packageVersion':_0x274901(0x1eb),'reason':_0x10fb00 instanceof Error?_0x10fb00['message']:String(_0x10fb00),'repairCommand':REPAIR_COMMAND};}const _0x1d24fd=installedSkillPath(_0x476816[_0x274901(0x1f3)]??homedir());if(_0x1d24fd[_0x274901(0x20d)]===_0x274901(0x204))return{'state':_0x274901(0x204),'packageVersion':_0x250798['packageVersion'],'repairCommand':REPAIR_COMMAND};if(_0x1d24fd['state']===_0x274901(0x201))return{'state':'unverifiable','packageVersion':_0x250798[_0x274901(0x1f8)],'reason':_0x1d24fd[_0x274901(0x200)],'repairCommand':REPAIR_COMMAND};try{const _0x540d07=frontmatterValue(readFileSync(join(_0x1d24fd[_0x274901(0x1f7)],_0x274901(0x1db)),_0x274901(0x1f9)),_0x274901(0x20e));if(_0x540d07!==_0x250798[_0x274901(0x1ef)])return{'state':'version_mismatch','packageVersion':_0x250798['packageVersion'],'skillVersion':_0x540d07,'installedPath':_0x1d24fd[_0x274901(0x1f7)],'repairCommand':REPAIR_COMMAND};const _0x51e84f=listFiles(_0x1d24fd[_0x274901(0x1f7)]),_0x35fbb6=digestFiles(_0x1d24fd['path'],_0x51e84f);return{'state':sameFiles(_0x51e84f,_0x250798['manifest']['files'])&&_0x35fbb6===_0x250798[_0x274901(0x1fd)][_0x274901(0x1fe)]?_0x274901(0x1f4):_0x274901(0x1de),'packageVersion':_0x250798[_0x274901(0x1f8)],'skillVersion':_0x540d07,'installedPath':_0x1d24fd[_0x274901(0x1f7)],'digest':_0x35fbb6,'repairCommand':REPAIR_COMMAND};}catch(_0x4e551d){return{'state':_0x274901(0x201),'packageVersion':_0x250798[_0x274901(0x1f8)],'installedPath':_0x1d24fd[_0x274901(0x1f7)],'reason':_0x4e551d instanceof Error?_0x4e551d[_0x274901(0x1e2)]:String(_0x4e551d),'repairCommand':REPAIR_COMMAND};}}function failure(_0xec86c,_0x5b9d23,_0x48017c,_0xdb00d0){const _0x67d8d7=a294_0x27d610;return{'ok':![],'code':_0xec86c,'packageVersion':_0x5b9d23[_0x67d8d7(0x1f8)],'skillVersion':_0x5b9d23[_0x67d8d7(0x1ef)],'installedPath':_0xdb00d0,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x48017c instanceof Error?_0x48017c[_0x67d8d7(0x1e2)]:String(_0x48017c)};}export function installBuiltinSkill(_0x4bb047={}){const _0x4c6415=a294_0x27d610,_0x1693bb=_0x4bb047['packageRoot']??DEFAULT_PACKAGE_ROOT,_0x9b482e=_0x4bb047[_0x4c6415(0x1f3)]??homedir();let _0x3459fa;try{_0x3459fa=readSource(_0x1693bb);}catch(_0x3905d2){return failure(_0x4c6415(0x1d7),{'packageVersion':'unknown','skillVersion':_0x4c6415(0x1eb)},_0x3905d2);}const _0x5dace5=inspectBuiltinSkill({'packageRoot':_0x1693bb,'home':_0x9b482e}),_0x59e25f=runNpxSkillsAddGlobal(_0x1693bb,_0x3459fa[_0x4c6415(0x1f5)],{'stdio':_0x4bb047[_0x4c6415(0x1ee)]??'pipe','expectedSkillName':SKILL_NAME,'presence':{'home':_0x9b482e}});if(_0x59e25f[_0x4c6415(0x1cf)])return{'ok':!![],'packageVersion':_0x3459fa[_0x4c6415(0x1f8)],'skillVersion':_0x3459fa[_0x4c6415(0x1ef)],'installedPath':_0x5dace5[_0x4c6415(0x1fc)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x59e25f['ok'])return failure(_0x4c6415(0x1f2),_0x3459fa,_0x59e25f[_0x4c6415(0x1d9)]??_0x4c6415(0x1e5)+_0x59e25f[_0x4c6415(0x1d5)]);const _0x42d6e5=inspectBuiltinSkill({'packageRoot':_0x1693bb,'home':_0x9b482e});if(_0x42d6e5[_0x4c6415(0x20d)]!==_0x4c6415(0x1f4))return failure(_0x4c6415(0x1ea),_0x3459fa,_0x42d6e5[_0x4c6415(0x200)]??'Installed\x20Skill\x20state\x20is\x20'+_0x42d6e5[_0x4c6415(0x20d)],_0x42d6e5['installedPath']);return{'ok':!![],'packageVersion':_0x3459fa[_0x4c6415(0x1f8)],'skillVersion':_0x3459fa[_0x4c6415(0x1ef)],'installedPath':_0x42d6e5[_0x4c6415(0x1fc)],'changed':_0x5dace5['state']!=='current','repairCommand':REPAIR_COMMAND};}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x196742,_0x587f6b){const _0x11ea55=a295_0xa364,_0x53f5db=_0x196742();while(!![]){try{const _0xd636fa=parseInt(_0x11ea55(0x107))/0x1+-parseInt(_0x11ea55(0x106))/0x2+-parseInt(_0x11ea55(0x10b))/0x3*(parseInt(_0x11ea55(0xf3))/0x4)+-parseInt(_0x11ea55(0x102))/0x5*(-parseInt(_0x11ea55(0xee))/0x6)+-parseInt(_0x11ea55(0xfb))/0x7+parseInt(_0x11ea55(0xf5))/0x8*(-parseInt(_0x11ea55(0x10f))/0x9)+-parseInt(_0x11ea55(0xfc))/0xa*(-parseInt(_0x11ea55(0x108))/0xb);if(_0xd636fa===_0x587f6b)break;else _0x53f5db['push'](_0x53f5db['shift']());}catch(_0x460761){_0x53f5db['push'](_0x53f5db['shift']());}}}(a295_0x498c,0x6c617));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a295_0xa364(_0x292d6e,_0x4b021a){_0x292d6e=_0x292d6e-0xee;const _0x498ca0=a295_0x498c();let _0xa36471=_0x498ca0[_0x292d6e];return _0xa36471;}import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x3ce07f){const _0x398e32=a295_0xa364,_0xd7e59=[];for(const [_0x2c346a,_0x573163]of Object['entries'](_0x3ce07f)){if(_0x573163===!![]){const _0x14e54b=_0x2c346a[_0x398e32(0x110)](/([A-Z])/g,_0x398e32(0x109))[_0x398e32(0x105)]();_0xd7e59['push'](_0x14e54b);}}return _0xd7e59;}export function parseDynamicFlags(){const _0x169fb2=a295_0xa364,_0x12c443=[];for(let _0x27f77d=0x3;_0x27f77d<process[_0x169fb2(0xf7)]['length'];_0x27f77d++){const _0x1e577=process['argv'][_0x27f77d];if(_0x1e577&&_0x1e577[_0x169fb2(0xfd)]('--')){const _0x4ff816=_0x1e577['slice'](0x2);_0x4ff816&&!_0x4ff816[_0x169fb2(0xff)]('=')&&_0x12c443[_0x169fb2(0xf9)](_0x4ff816);}}return _0x12c443;}function a295_0x498c(){const _0x2fe9b7=['4398910gNJCwD','startsWith','setLogPath','includes','exit','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','15905nQrOCv','has','help','toLowerCase','558142OCOPzy','190033yvIzsc','44RHwaij','-$1','log','3ZEEjND','Unsupported\x20command:\x20','error','skill','7975161DHgHsu','replace','dangerously-bff-save','1674hCkEIj','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','--help','(empty)','\x0aAvailable\x20commands:','2642260mJvuyP','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','8xMnczk','enable-bff-save','argv','add','push','cwd','3971828ldwvOa'];a295_0x498c=function(){return _0x2fe9b7;};return a295_0x498c();}export function getAllProvidedFlags(_0x1f43a1){const _0xe17ebf=camelCaseFlagsToKebab(_0x1f43a1),_0x279658=parseDynamicFlags(),_0x4d9842=new Set([..._0xe17ebf,..._0x279658]);return Array['from'](_0x4d9842);}export function normalizeLegacyBffSaveFlags(_0x26b885){const _0x5ca0d2=a295_0xa364,_0x5d2d96=new Set(_0x26b885);return _0x5d2d96[_0x5ca0d2(0x103)](_0x5ca0d2(0x111))&&_0x5d2d96[_0x5ca0d2(0xf8)](_0x5ca0d2(0xf6)),Array['from'](_0x5d2d96);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x529eda,_0x511f24,_0x499611){const _0x301f86=a295_0xa364;logger[_0x301f86(0xfe)](process[_0x301f86(0xfa)]());if(_0x499611?.[_0x301f86(0x104)]||_0x529eda===_0x301f86(0xf0)){showHelp();return;}console[_0x301f86(0x10d)]('Error:\x20Unsupported\x20command:\x20'+(_0x529eda||_0x301f86(0xf1))),console[_0x301f86(0x10a)](_0x301f86(0xf2)),console[_0x301f86(0x10a)]('\x20\x20'+CLI_BIN_NAME+_0x301f86(0x101)),console[_0x301f86(0x10a)](''),console[_0x301f86(0x10a)]('Public\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0x301f86(0x10d)](_0x301f86(0x10e),_0x301f86(0x10c)+_0x529eda),process[_0x301f86(0x100)](0x1);}function showHelp(){const _0x5eff6c=a295_0xa364;console['log'](_0x5eff6c(0xef)+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x5eff6c(0xf4));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a296_0x4ae83e=a296_0x1ebc;(function(_0x1b6c7e,_0x5efae0){const _0x1ff2ef=a296_0x1ebc,_0x4000de=_0x1b6c7e();while(!![]){try{const _0x6b218d=parseInt(_0x1ff2ef(0x185))/0x1*(-parseInt(_0x1ff2ef(0x191))/0x2)+parseInt(_0x1ff2ef(0x186))/0x3+-parseInt(_0x1ff2ef(0x1b3))/0x4+-parseInt(_0x1ff2ef(0x187))/0x5*(parseInt(_0x1ff2ef(0x1a9))/0x6)+parseInt(_0x1ff2ef(0x188))/0x7+-parseInt(_0x1ff2ef(0x19c))/0x8*(-parseInt(_0x1ff2ef(0x18d))/0x9)+-parseInt(_0x1ff2ef(0x19b))/0xa*(-parseInt(_0x1ff2ef(0x1b9))/0xb);if(_0x6b218d===_0x5efae0)break;else _0x4000de['push'](_0x4000de['shift']());}catch(_0x3fe3a3){_0x4000de['push'](_0x4000de['shift']());}}}(a296_0x7749,0xbd6a0));import{execaSync}from'execa';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';function a296_0x1ebc(_0x3eb110,_0x25a258){_0x3eb110=_0x3eb110-0x184;const _0x7749f4=a296_0x7749();let _0x1ebc47=_0x7749f4[_0x3eb110];return _0x1ebc47;}export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a296_0x4ae83e(0x192);export const NPX_SKILLS_SUBCOMMAND_ADD=a296_0x4ae83e(0x194);export const NPX_SKILLS_FLAG_SKILL=a296_0x4ae83e(0x1ba);function a296_0x7749(){const _0x583a91=['shortMessage','expectedSkillName','1096028uiYVYK','pipe','lovrabet/rabetbase','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','npm_config_global','state','2333606vDdVXu','--skill','EACCES','Installer\x20reported\x20','stderr','unknown','npx','30652bduTyA','1885581KNGwgd','3345ydTEoY','1743098aLJrLK','yes','present','EPERM','unverifiable','512811VBFFkL','npx\x20failed\x20to\x20start','rabetbase','message','66YLSlwM','skills@latest','SKILL_NOT_INSTALLED','add','exitCode','stdio','match','CHILD_TERMINATED','ENOENT','push','10ADNOro','208JDKmAs','stdout','filter','remove','SPAWN_FAILED','exit\x20','Lovrabet','Skill\x20\x22','signal','trim','code','\x20failed\x20target(s)','skill','4572GGOglm','join','checked','log','inherit','\x22\x20install\x20state:\x20','presence','npx\x20terminated\x20by\x20signal\x20'];a296_0x7749=function(){return _0x583a91;};return a296_0x7749();}export const RABETBASE_SKILL_SOURCE=a296_0x4ae83e(0x1b5);export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME=a296_0x4ae83e(0x1a2);export const RABETBASE_GLOBAL_SKILL_NAME=a296_0x4ae83e(0x18f);export const RABETBASE_SKILL_GIT_SOURCE=a296_0x4ae83e(0x1b6);export function resolveGlobalSkillName(_0x1d1620){switch(_0x1d1620['trim']()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x37ce60){const _0x487bcf=a296_0x4ae83e,_0xf94497=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x37ce60&&_0xf94497[_0x487bcf(0x19a)](NPX_SKILLS_FLAG_SKILL,_0x37ce60),_0xf94497;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a296_0x4ae83e(0x184),...buildNpxSkillsAddArgv()][a296_0x4ae83e(0x1aa)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a296_0x4ae83e(0x184),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a296_0x4ae83e(0x1aa)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x390ae0,_0x373c87,_0x17d1ab){return{'ok':![],'status':_0x373c87,'code':_0x390ae0,'error':'['+_0x390ae0+']\x20'+_0x17d1ab};}function execaOptions(_0x4b0f35,_0x2641ce){const _0x49eb53=a296_0x4ae83e,_0x281ed0={...process.env};return delete _0x281ed0[_0x49eb53(0x1b7)],delete _0x281ed0['NPM_CONFIG_GLOBAL'],{'cwd':_0x4b0f35,'stdio':_0x2641ce,'env':_0x281ed0,'extendEnv':![],'shell':![],'reject':![],..._0x2641ce===_0x49eb53(0x1b4)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeExecaResult(_0x1ced08,_0x550ccd,_0x5b8567,_0x3134db){const _0x2a735a=a296_0x4ae83e,_0x180367=[_0x1ced08[_0x2a735a(0x19d)]?String(_0x1ced08[_0x2a735a(0x19d)]):'',_0x1ced08[_0x2a735a(0x1bd)]?String(_0x1ced08[_0x2a735a(0x1bd)]):''][_0x2a735a(0x19e)](Boolean)[_0x2a735a(0x1aa)]('\x0a')[_0x2a735a(0x1a5)](),_0x14e59c=_0x1ced08[_0x2a735a(0x195)]??null;_0x3134db!==_0x2a735a(0x1b4)&&_0x180367&&console[_0x2a735a(0x1ac)](_0x180367);if(_0x1ced08[_0x2a735a(0x1a6)]){const _0x1bce7d=_0x1ced08['code']===_0x2a735a(0x199)?'NPX_NOT_FOUND':_0x1ced08[_0x2a735a(0x1a6)]===_0x2a735a(0x18b)||_0x1ced08[_0x2a735a(0x1a6)]===_0x2a735a(0x1bb)?'PERMISSION_DENIED':_0x2a735a(0x1a0);return failure(_0x1bce7d,_0x14e59c,_0x1ced08[_0x2a735a(0x1b1)]??_0x1ced08['message']??_0x1ced08[_0x2a735a(0x1a6)]);}if(_0x1ced08[_0x2a735a(0x1a4)])return failure(_0x2a735a(0x198),_0x14e59c,_0x2a735a(0x1b0)+_0x1ced08[_0x2a735a(0x1a4)]);if(_0x1ced08['failed']&&_0x14e59c===null)return failure(_0x2a735a(0x1a0),_0x14e59c,_0x1ced08[_0x2a735a(0x1b1)]??_0x1ced08[_0x2a735a(0x190)]??_0x2a735a(0x18e));if(_0x14e59c!==0x0)return failure('CHILD_EXIT_NONZERO',_0x14e59c,_0x180367||_0x1ced08[_0x2a735a(0x1b1)]||_0x2a735a(0x1a1)+(_0x14e59c??_0x2a735a(0x1be)));const _0x253661=_0x550ccd?resolveInstalledSkill(_0x550ccd,_0x5b8567):undefined,_0x53388b=_0x180367[_0x2a735a(0x197)](/Failed to install\s+(\d+)/i);if(_0x53388b&&Number(_0x53388b[0x1])>0x0){const _0x170dff=_0x2a735a(0x1bc)+_0x53388b[0x1]+_0x2a735a(0x1a7)+(_0x180367?':\x0a'+_0x180367:'');if(_0x253661?.[_0x2a735a(0x1b8)]===_0x2a735a(0x18a))return console['warn']('!\x20'+_0x170dff),{'ok':!![],'status':0x0};return failure('INSTALL_PARTIAL',0x0,_0x170dff);}if(_0x253661){if(_0x253661[_0x2a735a(0x1b8)]==='absent')return failure(_0x2a735a(0x193),0x0,_0x2a735a(0x1a3)+_0x550ccd+'\x22\x20not\x20found\x20after\x20install\x20(checked\x20'+_0x253661[_0x2a735a(0x1ab)][_0x2a735a(0x1aa)](',\x20')+')');_0x253661[_0x2a735a(0x1b8)]===_0x2a735a(0x18c)&&console['warn']('!\x20Could\x20not\x20verify\x20\x22'+_0x550ccd+_0x2a735a(0x1ae)+_0x253661['reason']);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x3c5394,_0x3a9f89){const _0xf1d75a=a296_0x4ae83e;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x7deb4a=_0x3a9f89?.[_0xf1d75a(0x196)]??_0xf1d75a(0x1ad),_0x31034f=buildNpxSkillsAddArgv(_0x3a9f89?.[_0xf1d75a(0x1a8)]),_0x34c39c=['npx',..._0x31034f][_0xf1d75a(0x1aa)]('\x20');console[_0xf1d75a(0x1ac)]('*\x20'+_0x34c39c);const _0x26babb=execaSync('npx',_0x31034f,execaOptions(_0x3c5394,_0x7deb4a));return normalizeExecaResult(_0x26babb,undefined,undefined,_0x7deb4a);}export function runNpxSkillsRemove(_0x5dbe9a,_0x450125,_0x263cac=LEGACY_RABETBASE_SKILL_SOURCE){const _0xe5c340=a296_0x4ae83e;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x55bb3a=_0x450125?.[_0xe5c340(0x196)]??_0xe5c340(0x1ad),_0x2ea1ee=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0xe5c340(0x19f),_0x263cac,NPX_SKILLS_FLAG_SKILL,_0x450125?.[_0xe5c340(0x1a8)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x450125?.[_0xe5c340(0x189)]?['-y']:[]],_0x2991de=[_0xe5c340(0x184),..._0x2ea1ee][_0xe5c340(0x1aa)]('\x20');console[_0xe5c340(0x1ac)]('*\x20'+_0x2991de);const _0x43dba1=execaSync(_0xe5c340(0x184),_0x2ea1ee,execaOptions(_0x5dbe9a,_0x55bb3a));return normalizeExecaResult(_0x43dba1,undefined,undefined,_0x55bb3a);}export function runNpxSkillsAddGlobal(_0x3c0776,_0x27a3c4,_0x5053e7){const _0x51fc42=a296_0x4ae83e;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x14a36f=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x27a3c4,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x39f1ac=[_0x51fc42(0x184),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x27a3c4,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x51fc42(0x1aa)]('\x20');console[_0x51fc42(0x1ac)]('*\x20'+_0x39f1ac);const _0x3d17f1=execaSync(_0x51fc42(0x184),_0x14a36f,execaOptions(_0x3c0776,_0x51fc42(0x1b4)));return normalizeExecaResult(_0x3d17f1,_0x5053e7?.[_0x51fc42(0x1b2)]??resolveGlobalSkillName(_0x27a3c4),_0x5053e7?.[_0x51fc42(0x1af)],_0x5053e7?.[_0x51fc42(0x196)]);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a297_0x4a8cde=a297_0xca28;(function(_0x4a1976,_0xd6c6b6){const _0x334518=a297_0xca28,_0x156b6a=_0x4a1976();while(!![]){try{const _0x36e270=parseInt(_0x334518(0x99))/0x1*(parseInt(_0x334518(0x91))/0x2)+parseInt(_0x334518(0x94))/0x3*(-parseInt(_0x334518(0x89))/0x4)+-parseInt(_0x334518(0x81))/0x5+-parseInt(_0x334518(0x8f))/0x6*(parseInt(_0x334518(0x83))/0x7)+-parseInt(_0x334518(0x9b))/0x8*(parseInt(_0x334518(0x97))/0x9)+parseInt(_0x334518(0x7d))/0xa+-parseInt(_0x334518(0x8a))/0xb;if(_0x36e270===_0xd6c6b6)break;else _0x156b6a['push'](_0x156b6a['shift']());}catch(_0x9e35b5){_0x156b6a['push'](_0x156b6a['shift']());}}}(a297_0x371a,0xcba8e));import{existsSync,readFileSync}from'node:fs';function a297_0x371a(){const _0x133996=['SKILL.md','2402660eArEFx','globalSkillsDirs','583681bPCHQy','unverifiable','unusable','skills','lockFile','message','892qpKWxn','877767BOSvOB','not-recorded','.skill-lock.json','number','\x20records\x20\x22','6bnncZt','\x20is\x20unreadable:\x20','583546HcBuAA','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','join','11721EPIkpi','recorded','home','1615257aGAwll','reason','5dhKcSw','parse','8eKYUMy','present','utf8','absent','kind','\x20uses\x20unsupported\x20version\x20','version','.agents','\x20has\x20no\x20skills\x20map','10697710TICpMn','object','map'];a297_0x371a=function(){return _0x133996;};return a297_0x371a();}import{homedir}from'node:os';import{join}from'node:path';function a297_0xca28(_0xef8813,_0x4a94dd){_0xef8813=_0xef8813-0x7a;const _0x371ae6=a297_0x371a();let _0xca2819=_0x371ae6[_0xef8813];return _0xca2819;}export const SKILL_LOCK_RELATIVE_PATH=join(a297_0x4a8cde(0x7b),a297_0x4a8cde(0x8c));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a297_0x4a8cde(0x7b),'skills'),join('.claude','skills')];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x51ee38,_0x553d65){const _0xde889b=a297_0x4a8cde;if(!existsSync(_0x51ee38))return{'kind':_0xde889b(0x8b)};let _0x3aeffa;try{_0x3aeffa=JSON[_0xde889b(0x9a)](readFileSync(_0x51ee38,_0xde889b(0x9d)));}catch(_0x3401e6){return{'kind':_0xde889b(0x85),'reason':_0x51ee38+_0xde889b(0x90)+_0x3401e6[_0xde889b(0x88)]};}const _0x1d7c94=_0x3aeffa;if(typeof _0x1d7c94?.['version']!==_0xde889b(0x8d)||!SUPPORTED_LOCK_VERSIONS['includes'](_0x1d7c94[_0xde889b(0x7a)]))return{'kind':_0xde889b(0x85),'reason':_0x51ee38+_0xde889b(0xa0)+String(_0x1d7c94?.[_0xde889b(0x7a)])};if(!_0x1d7c94[_0xde889b(0x86)]||typeof _0x1d7c94[_0xde889b(0x86)]!==_0xde889b(0x7e))return{'kind':_0xde889b(0x85),'reason':_0x51ee38+_0xde889b(0x7c)};return _0x1d7c94['skills'][_0x553d65]?{'kind':_0xde889b(0x95)}:{'kind':_0xde889b(0x8b)};}export function resolveInstalledSkill(_0xb26f99,_0x3aefb3){const _0xd0acad=a297_0x4a8cde,_0x467931=_0x3aefb3?.[_0xd0acad(0x96)]??homedir(),_0x3f7b0d=_0x3aefb3?.[_0xd0acad(0x82)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0xd0acad(0x7f)](_0x52223f=>join(_0x467931,_0x52223f)),_0x23409c=_0x3aefb3?.[_0xd0acad(0x87)]??join(_0x467931,SKILL_LOCK_RELATIVE_PATH),_0xfbf62f=_0x3f7b0d[_0xd0acad(0x7f)](_0x2f231e=>join(_0x2f231e,_0xb26f99,_0xd0acad(0x80))),_0x3f20a9=_0xfbf62f['find'](_0x5c25f8=>existsSync(_0x5c25f8));if(_0x3f20a9)return{'state':_0xd0acad(0x9c),'path':_0x3f20a9};const _0x21eb2b=readLockLookup(_0x23409c,_0xb26f99);if(_0x21eb2b[_0xd0acad(0x9f)]===_0xd0acad(0x85))return{'state':_0xd0acad(0x84),'reason':_0x21eb2b[_0xd0acad(0x98)]};if(_0x21eb2b[_0xd0acad(0x9f)]===_0xd0acad(0x95))return{'state':_0xd0acad(0x84),'reason':_0x23409c+_0xd0acad(0x8e)+_0xb26f99+_0xd0acad(0x92)+('('+_0xfbf62f[_0xd0acad(0x93)](',\x20')+')')};return{'state':_0xd0acad(0x9e),'checked':_0xfbf62f};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x331e44,_0xf95b1d){const _0x1b921a=a298_0x1cf8,_0x2c8e9b=_0x331e44();while(!![]){try{const _0x4a12a7=-parseInt(_0x1b921a(0x8a))/0x1+-parseInt(_0x1b921a(0x97))/0x2*(-parseInt(_0x1b921a(0x9b))/0x3)+parseInt(_0x1b921a(0x8e))/0x4+-parseInt(_0x1b921a(0x89))/0x5+-parseInt(_0x1b921a(0x8f))/0x6*(parseInt(_0x1b921a(0x8c))/0x7)+-parseInt(_0x1b921a(0x93))/0x8*(-parseInt(_0x1b921a(0x94))/0x9)+-parseInt(_0x1b921a(0x90))/0xa*(-parseInt(_0x1b921a(0x98))/0xb);if(_0x4a12a7===_0xf95b1d)break;else _0x2c8e9b['push'](_0x2c8e9b['shift']());}catch(_0x55e94b){_0x2c8e9b['push'](_0x2c8e9b['shift']());}}}(a298_0x4103,0x7fe2e));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a298_0x1cf8(_0x31d07f,_0x2c5ad6){_0x31d07f=_0x31d07f-0x88;const _0x41037e=a298_0x4103();let _0x1cf885=_0x41037e[_0x31d07f];return _0x1cf885;}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x214cef){const _0x2d55e3=a298_0x1cf8;return SENSITIVE_PATTERNS[_0x2d55e3(0x8d)](_0x1a2a1d=>_0x1a2a1d['test'](_0x214cef));}function a298_0x4103(){const _0x30fb11=['error','135741rbDoZh','entries','4592700lYsAFe','761577BaxVww','stringify','21gBDASq','some','2544712PBuHVZ','167724dRPlmC','31550Clzsit','durationMs','command','336AgrbAL','141831Nxhsqt','service','rabetbase.command','10RiIxcr','2662ixfPWX','flags'];a298_0x4103=function(){return _0x30fb11;};return a298_0x4103();}function sanitizeFlags(_0x55e0a4){const _0x122f8a=a298_0x1cf8,_0x1911d3={};for(const [_0xd4fbad,_0x355fc9]of Object[_0x122f8a(0x88)](_0x55e0a4)){isSensitiveKey(_0xd4fbad)?_0x1911d3[_0xd4fbad]=_0x355fc9!=null&&_0x355fc9!==''?'[REDACTED]':_0x355fc9:_0x1911d3[_0xd4fbad]=_0x355fc9;}return _0x1911d3;}export async function reportCommandTrace(_0x305d79){const _0x9153c2=a298_0x1cf8;try{const _0x4f352c=sanitizeFlags(_0x305d79[_0x9153c2(0x99)]);await sendCliTraceLog({'spanName':_0x9153c2(0x96),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x305d79[_0x9153c2(0x95)],'command.name':_0x305d79[_0x9153c2(0x92)],'command.flags':JSON[_0x9153c2(0x8b)](_0x4f352c),..._0x305d79['durationMs']!=null?{'command.duration_ms':_0x305d79[_0x9153c2(0x91)]}:{},..._0x305d79[_0x9153c2(0x9a)]?{'command.error':_0x305d79['error']instanceof Error?_0x305d79[_0x9153c2(0x9a)]['message']:String(_0x305d79[_0x9153c2(0x9a)])}:{}}});}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2c3cef,_0x2e6731){var _0xf3b8f7=a299_0x4445,_0x3c53e4=_0x2c3cef();while(!![]){try{var _0x2e38fe=-parseInt(_0xf3b8f7(0x147))/0x1+parseInt(_0xf3b8f7(0x141))/0x2*(-parseInt(_0xf3b8f7(0x13f))/0x3)+parseInt(_0xf3b8f7(0x143))/0x4+-parseInt(_0xf3b8f7(0x145))/0x5+parseInt(_0xf3b8f7(0x144))/0x6+-parseInt(_0xf3b8f7(0x149))/0x7+parseInt(_0xf3b8f7(0x148))/0x8*(parseInt(_0xf3b8f7(0x146))/0x9);if(_0x2e38fe===_0x2e6731)break;else _0x3c53e4['push'](_0x3c53e4['shift']());}catch(_0x5cb93c){_0x3c53e4['push'](_0x3c53e4['shift']());}}}(a299_0x31db,0xc2cec));function a299_0x31db(){var _0x50d7ee=['738kUGSyS','584569mASUAQ','72368WEvkFA','1757651NlSszo','Failed\x20to\x20report\x20CLI\x20help\x20trace:','251835mAxBmp','service','14FeQmit','cli.help','3614136XPPAlA','4399992dWEkSh','787145fwxcME'];a299_0x31db=function(){return _0x50d7ee;};return a299_0x31db();}function a299_0x4445(_0x2ac34c,_0x3e76b7){_0x2ac34c=_0x2ac34c-0x13e;var _0x31db07=a299_0x31db();var _0x44459f=_0x31db07[_0x2ac34c];return _0x44459f;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x35c1e9,_0x5adacc){var _0x5e6ff9=a299_0x4445;try{await sendCliTraceLog({'spanName':_0x5e6ff9(0x142),'logData':{'rabetbase.help.kind':_0x35c1e9,..._0x5adacc?.[_0x5e6ff9(0x140)]&&{'rabetbase.help.service':_0x5adacc['service']}}});}catch(_0x14d824){console['error'](_0x5e6ff9(0x13e),_0x14d824);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5e0847,_0x4c2f66){const _0x584c34=a300_0x5536,_0x1ee8b2=_0x5e0847();while(!![]){try{const _0x55fed7=parseInt(_0x584c34(0x13a))/0x1*(-parseInt(_0x584c34(0x141))/0x2)+-parseInt(_0x584c34(0x140))/0x3*(parseInt(_0x584c34(0x13b))/0x4)+-parseInt(_0x584c34(0x136))/0x5+parseInt(_0x584c34(0x135))/0x6*(-parseInt(_0x584c34(0x12f))/0x7)+parseInt(_0x584c34(0x130))/0x8*(-parseInt(_0x584c34(0x137))/0x9)+parseInt(_0x584c34(0x133))/0xa*(-parseInt(_0x584c34(0x13e))/0xb)+parseInt(_0x584c34(0x132))/0xc;if(_0x55fed7===_0x4c2f66)break;else _0x1ee8b2['push'](_0x1ee8b2['shift']());}catch(_0xf6a425){_0x1ee8b2['push'](_0x1ee8b2['shift']());}}}(a300_0x531e,0xae452));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a300_0x5536(_0x1ee945,_0x5717a6){_0x1ee945=_0x1ee945-0x12f;const _0x531e78=a300_0x531e();let _0x553613=_0x531e78[_0x1ee945];return _0x553613;}import{getSessionUserInfo}from'../auth/get-session-user.js';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 _0x5dde3d=a300_0x5536,_0x40ce3a=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x10e646=_0x40ce3a?.[_0x5dde3d(0x139)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x5dde3d(0x13f)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x5dde3d(0x131):'production')}),setUserContext({'id':_0x10e646?.['id'],'username':_0x10e646?.[_0x5dde3d(0x138)],'nickname':_0x10e646?.['nickname'],'email':_0x10e646?.[_0x5dde3d(0x134)],'tenantCode':_0x10e646?.[_0x5dde3d(0x13d)]?.[_0x5dde3d(0x13c)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x40ce3a;}function a300_0x531e(){const _0x1fc89e=['tenant','64339HPCYyk','unknown','55143lNyRpg','40hcciCD','4319fNHVCY','152HjmTYE','daily','58108752rWFBmf','1070udBdaH','email','4566qMCcGK','6152930QzchIo','252405oNPmAy','username','user','40512xQUJUt','100pipjcy','tenant_code'];a300_0x531e=function(){return _0x1fc89e;};return a300_0x531e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a301_0x29fd(_0xa86f7f,_0x1ac22a){_0xa86f7f=_0xa86f7f-0x191;const _0x186042=a301_0x1860();let _0x29fd1d=_0x186042[_0xa86f7f];return _0x29fd1d;}(function(_0x95a3fe,_0x1a8eda){const _0x152bcf=a301_0x29fd,_0xc2c51b=_0x95a3fe();while(!![]){try{const _0x4f8e8f=-parseInt(_0x152bcf(0x194))/0x1+parseInt(_0x152bcf(0x19d))/0x2+-parseInt(_0x152bcf(0x199))/0x3+parseInt(_0x152bcf(0x197))/0x4*(parseInt(_0x152bcf(0x19b))/0x5)+-parseInt(_0x152bcf(0x198))/0x6*(parseInt(_0x152bcf(0x193))/0x7)+parseInt(_0x152bcf(0x195))/0x8*(parseInt(_0x152bcf(0x19c))/0x9)+parseInt(_0x152bcf(0x196))/0xa;if(_0x4f8e8f===_0x1a8eda)break;else _0xc2c51b['push'](_0xc2c51b['shift']());}catch(_0x575cf3){_0xc2c51b['push'](_0xc2c51b['shift']());}}}(a301_0x1860,0x5bc6b));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 a301_0x1860(){const _0x46197b=['371626cQkOqp','once','SIGINT','56VbuFAG','720726HfVhzM','8456aTAgLn','11341010WhTxUE','2765912fdBRFo','292914uyfwHz','2121180utZyAd','exit','5haFKjX','1557wFEFsL'];a301_0x1860=function(){return _0x46197b;};return a301_0x1860();}export function registerOtelShutdownOnExit(){const _0x2a0d78=a301_0x29fd;process[_0x2a0d78(0x191)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x5a1829=()=>{const _0x9d125e=_0x2a0d78;void flushOtelNodeIfUsed()['then'](()=>process[_0x9d125e(0x19a)](0x0));};process[_0x2a0d78(0x191)](_0x2a0d78(0x192),_0x5a1829),process['once']('SIGTERM',_0x5a1829);}export async function exitWithOtelShutdown(_0x55fe46){const _0x300ee0=a301_0x29fd;await flushOtelNodeIfUsed(),process[_0x300ee0(0x19a)](_0x55fe46);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x327af6,_0x1e3f4c){const _0x397437=a302_0x1bda,_0x423596=_0x327af6();while(!![]){try{const _0x16b549=parseInt(_0x397437(0x116))/0x1+parseInt(_0x397437(0x120))/0x2*(-parseInt(_0x397437(0x123))/0x3)+-parseInt(_0x397437(0x11c))/0x4+parseInt(_0x397437(0x11a))/0x5+-parseInt(_0x397437(0x118))/0x6+parseInt(_0x397437(0x11e))/0x7*(-parseInt(_0x397437(0x11b))/0x8)+parseInt(_0x397437(0x117))/0x9;if(_0x16b549===_0x1e3f4c)break;else _0x423596['push'](_0x423596['shift']());}catch(_0x53f672){_0x423596['push'](_0x423596['shift']());}}}(a302_0x1991,0xc2d2d));function a302_0x1991(){const _0x543843=['3104877klorVr','traceparent','1591053ALtzRM','14066514vTEFZN','4378434cgDPxN','manual','1033290XpPbKX','200ooZqxl','1938048NvEzpf','logData','87766NAbuLJ','spanName','2PViMmt','traceName','version'];a302_0x1991=function(){return _0x543843;};return a302_0x1991();}import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a302_0x1bda(_0x4f6eaf,_0x122018){_0x4f6eaf=_0x4f6eaf-0x115;const _0x199171=a302_0x1991();let _0x1bda98=_0x199171[_0x4f6eaf];return _0x1bda98;}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME='rabetbase-cli';export async function sendCliTraceLog(_0x510909){const _0x3d12d8=a302_0x1bda;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x510909[_0x3d12d8(0x121)]??DEFAULT_TRACE_NAME,'version':_0x510909[_0x3d12d8(0x122)]??getCliVersion(),'spanName':_0x510909[_0x3d12d8(0x11f)],'eventType':_0x3d12d8(0x119),'logData':_0x510909[_0x3d12d8(0x11d)],..._0x510909[_0x3d12d8(0x115)]&&{'traceparent':_0x510909[_0x3d12d8(0x115)]}});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a303_0x1bd9(){const _0x433f96=['4046488wpoxPo','5IynlMo','45544kofoXy','redactionCount','222498NXdLJt','33475eORnvK','sanitize','redactionKinds','truncated','description','platform-issue-log-collect','1809934SFLYWz','192xQjvqp','5374440EmydLz','title','177401YWpHVU','740PROJWp','issue.log.collect'];a303_0x1bd9=function(){return _0x433f96;};return a303_0x1bd9();}const a303_0x44cc2f=a303_0x32ec;(function(_0x1ec323,_0x17611b){const _0x5db5f3=a303_0x32ec,_0x275c44=_0x1ec323();while(!![]){try{const _0x1449fb=-parseInt(_0x5db5f3(0x1de))/0x1+-parseInt(_0x5db5f3(0x1e4))/0x2+-parseInt(_0x5db5f3(0x1e5))/0x3*(parseInt(_0x5db5f3(0x1db))/0x4)+parseInt(_0x5db5f3(0x1da))/0x5*(parseInt(_0x5db5f3(0x1e6))/0x6)+-parseInt(_0x5db5f3(0x1d6))/0x7+-parseInt(_0x5db5f3(0x1d9))/0x8+parseInt(_0x5db5f3(0x1dd))/0x9*(parseInt(_0x5db5f3(0x1d7))/0xa);if(_0x1449fb===_0x17611b)break;else _0x275c44['push'](_0x275c44['shift']());}catch(_0x167c29){_0x275c44['push'](_0x275c44['shift']());}}}(a303_0x1bd9,0x80a14));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a303_0x32ec(_0x1d27fc,_0x1efe10){_0x1d27fc=_0x1d27fc-0x1d6;const _0x1bd9d9=a303_0x1bd9();let _0x32ecc5=_0x1bd9d9[_0x1d27fc];return _0x32ecc5;}export const PLATFORM_ISSUE_TRACE_NAME=a303_0x44cc2f(0x1e3);export const PLATFORM_ISSUE_SPAN_NAME=a303_0x44cc2f(0x1d8);export async function sendPlatformIssueCollectLog(_0xc0c49e){const _0x55ac89=a303_0x44cc2f;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0xc0c49e[_0x55ac89(0x1e7)],'issue.description':_0xc0c49e[_0x55ac89(0x1e2)],..._0xc0c49e[_0x55ac89(0x1df)]?{'issue.description_original_bytes':_0xc0c49e[_0x55ac89(0x1df)]['originalBytes'],'issue.description_truncated':_0xc0c49e[_0x55ac89(0x1df)][_0x55ac89(0x1e1)],'issue.description_redactions':_0xc0c49e[_0x55ac89(0x1df)][_0x55ac89(0x1dc)],'issue.description_redaction_kinds':_0xc0c49e['sanitize'][_0x55ac89(0x1e0)]['join'](',')}:{}}});}
|
package/lib/utils/ai_config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a305_0x38d252=a305_0x2bce;function a305_0x1f7f(){const _0x1d3f53=['Trae','11VhsXCt','.cursor/skills/rabetbase.md','.cursorrules','.agent/skills/lovrabet/SKILL.md','qoder','110UdIihV','.windsurf/workflows/rabetbase.md','Claude\x20Code','file','Cline\x20IDE','585RhgyNz','.claude','Antigravity\x20IDE','cursor','.cursor','Cline','22772bbyIdU','Codex\x20IDE','Qoder\x20IDE','windsurf','.codex','.trae/skills/lovrabet/SKILL.md','816bTGnif','trae','.codebuddy/skills/lovrabet/SKILL.md','8022FIdRUe','Cursor','215743lbzFAD','.claude/skills/lovrabet/SKILL.md','90467aUlnSa','49224HJAvJX','2212ufZRnI','cline','Windsurf\x20IDE','CodeBuddy','.windsurf','codebuddy','.agent','Antigravity','6JAiUex','codex','.codex/skills/lovrabet/SKILL.md','OpenCode','opencode','Generic\x20template\x20fallback','535085DWrQsJ','claude','OpenCode\x20IDE','.qoder','.trae','.qoder/rules/rabetbase.md','.cline/skills/lovrabet/SKILL.md','.opencode','595244mwxnfd','agent'];a305_0x1f7f=function(){return _0x1d3f53;};return a305_0x1f7f();}(function(_0xe51b77,_0x3ababe){const _0x45571e=a305_0x2bce,_0x5e4739=_0xe51b77();while(!![]){try{const _0x37e9a4=parseInt(_0x45571e(0xc5))/0x1*(parseInt(_0x45571e(0xd5))/0x2)+-parseInt(_0x45571e(0xb4))/0x3*(parseInt(_0x45571e(0xc2))/0x4)+parseInt(_0x45571e(0xba))/0x5+parseInt(_0x45571e(0xde))/0x6*(parseInt(_0x45571e(0xe4))/0x7)+parseInt(_0x45571e(0xe3))/0x8*(-parseInt(_0x45571e(0xcf))/0x9)+parseInt(_0x45571e(0xca))/0xa*(-parseInt(_0x45571e(0xe0))/0xb)+parseInt(_0x45571e(0xdb))/0xc*(parseInt(_0x45571e(0xe2))/0xd);if(_0x37e9a4===_0x3ababe)break;else _0x5e4739['push'](_0x5e4739['shift']());}catch(_0x3206ce){_0x5e4739['push'](_0x5e4739['shift']());}}}(a305_0x1f7f,0x34681));export const CORE_IDE_CONFIGS={'cursor':{'name':a305_0x38d252(0xdf),'description':'Cursor\x20IDE','folders':[a305_0x38d252(0xc7),a305_0x38d252(0xd3)],'files':[{'type':'file','path':a305_0x38d252(0xc6)}]},'windsurf':{'name':'Windsurf','description':a305_0x38d252(0xe6),'folders':[a305_0x38d252(0xe8)],'files':[{'type':a305_0x38d252(0xcd),'path':a305_0x38d252(0xcb)}]},'claude':{'name':a305_0x38d252(0xcc),'description':a305_0x38d252(0xcc),'folders':[a305_0x38d252(0xd0)],'files':[{'type':a305_0x38d252(0xcd),'path':a305_0x38d252(0xe1)}]},'cline':{'name':a305_0x38d252(0xd4),'description':a305_0x38d252(0xce),'folders':['.cline'],'files':[{'type':a305_0x38d252(0xcd),'path':a305_0x38d252(0xc0)}]},'codex':{'name':'Codex','description':a305_0x38d252(0xd6),'folders':[a305_0x38d252(0xd9)],'files':[{'type':a305_0x38d252(0xcd),'path':a305_0x38d252(0xb6)}]},'opencode':{'name':a305_0x38d252(0xb7),'description':a305_0x38d252(0xbc),'folders':[a305_0x38d252(0xc1)],'files':[{'type':a305_0x38d252(0xcd),'path':'.opencode/skills/lovrabet/SKILL.md'}]},'qoder':{'name':'Qoder','description':a305_0x38d252(0xd7),'folders':[a305_0x38d252(0xbd)],'files':[{'type':a305_0x38d252(0xcd),'path':a305_0x38d252(0xbf)},{'type':'file','path':'.qoder/skills/lovrabet/SKILL.md'}]},'codebuddy':{'name':a305_0x38d252(0xe7),'description':'CodeBuddy\x20IDE','folders':['.codebuddy'],'files':[{'type':'file','path':a305_0x38d252(0xdd)}]},'trae':{'name':a305_0x38d252(0xc4),'description':'Trae\x20IDE','folders':[a305_0x38d252(0xbe)],'files':[{'type':'file','path':a305_0x38d252(0xda)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'Other\x20(generic\x20template)','description':a305_0x38d252(0xb9),'folders':[a305_0x38d252(0xb2)],'files':[{'type':a305_0x38d252(0xcd),'path':a305_0x38d252(0xc8)}]},'antigravity':{'name':a305_0x38d252(0xb3),'description':a305_0x38d252(0xd1),'folders':[a305_0x38d252(0xb2)],'files':[{'type':a305_0x38d252(0xcd),'path':a305_0x38d252(0xc8)}]}};export const CORE_IDE_LIST=[a305_0x38d252(0xbb),a305_0x38d252(0xe5),a305_0x38d252(0xb1),'codex','cursor',a305_0x38d252(0xb8),a305_0x38d252(0xc9),'trae','windsurf'];export const IDE_LIST=['antigravity','claude',a305_0x38d252(0xe5),'codebuddy',a305_0x38d252(0xb5),a305_0x38d252(0xd2),a305_0x38d252(0xb8),a305_0x38d252(0xc9),a305_0x38d252(0xdc),a305_0x38d252(0xd8),a305_0x38d252(0xc3)];function a305_0x2bce(_0x2039c1,_0x454bf0){_0x2039c1=_0x2039c1-0xb1;const _0x1f7fe9=a305_0x1f7f();let _0x2bcebe=_0x1f7fe9[_0x2039c1];return _0x2bcebe;}export const ALL_CORE_IDES=[a305_0x38d252(0xd2),a305_0x38d252(0xd8),'claude','cline',a305_0x38d252(0xb5),a305_0x38d252(0xb8),a305_0x38d252(0xc9),a305_0x38d252(0xb1),a305_0x38d252(0xdc)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a306_0x303a(_0x503126,_0xc2d0dc){_0x503126=_0x503126-0xed;const _0x13b62d=a306_0x13b6();let _0x303a4f=_0x13b62d[_0x503126];return _0x303a4f;}(function(_0x446ae5,_0x2508ea){const _0x2750fa=a306_0x303a,_0x1c8c8a=_0x446ae5();while(!![]){try{const _0x401bc9=-parseInt(_0x2750fa(0xf0))/0x1*(parseInt(_0x2750fa(0xf2))/0x2)+-parseInt(_0x2750fa(0xed))/0x3*(-parseInt(_0x2750fa(0xf1))/0x4)+parseInt(_0x2750fa(0xf5))/0x5*(-parseInt(_0x2750fa(0xf4))/0x6)+parseInt(_0x2750fa(0xf7))/0x7+parseInt(_0x2750fa(0xf6))/0x8+-parseInt(_0x2750fa(0xee))/0x9*(-parseInt(_0x2750fa(0xf3))/0xa)+-parseInt(_0x2750fa(0xef))/0xb;if(_0x401bc9===_0x2508ea)break;else _0x1c8c8a['push'](_0x1c8c8a['shift']());}catch(_0xaa5198){_0x1c8c8a['push'](_0x1c8c8a['shift']());}}}(a306_0x13b6,0xa0054));function a306_0x13b6(){const _0x15f4e4=['102JcgzcK','30QyvmYM','1627782hphrNC','5fOhFef','6696392NLqUCY','2874977miTSgj','2850969xMmwlA','2742003jnhVHG','23298814eIlddh','1319VmUwrL','4wVThzT'];a306_0x13b6=function(){return _0x15f4e4;};return a306_0x13b6();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
package/lib/utils/cdn-config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x476d83,_0x5d4307){const _0x1a49f5=a307_0x382f,_0x472629=_0x476d83();while(!![]){try{const _0x26719f=parseInt(_0x1a49f5(0x171))/0x1*(-parseInt(_0x1a49f5(0x16c))/0x2)+-parseInt(_0x1a49f5(0x16f))/0x3+parseInt(_0x1a49f5(0x178))/0x4+-parseInt(_0x1a49f5(0x175))/0x5*(parseInt(_0x1a49f5(0x174))/0x6)+parseInt(_0x1a49f5(0x16b))/0x7*(parseInt(_0x1a49f5(0x170))/0x8)+parseInt(_0x1a49f5(0x16e))/0x9*(parseInt(_0x1a49f5(0x17a))/0xa)+parseInt(_0x1a49f5(0x16d))/0xb;if(_0x26719f===_0x5d4307)break;else _0x472629['push'](_0x472629['shift']());}catch(_0x5ac1b9){_0x472629['push'](_0x472629['shift']());}}}(a307_0xf9e8,0x79d5e));import{getTemplateBaseUrl}from'../utils/config.js';function a307_0x382f(_0xfc8ba2,_0x2688eb){_0xfc8ba2=_0xfc8ba2-0x16a;const _0xf9e897=a307_0xf9e8();let _0x382fcd=_0xf9e897[_0xfc8ba2];return _0x382fcd;}export async function fetchCdnConfig(){const _0x442fce=a307_0x382f,_0x3610ee=getTemplateBaseUrl(),_0x597cea=[_0x3610ee+_0x442fce(0x176),_0x3610ee+'/config/index.json'];for(const _0x5bedd7 of _0x597cea){try{const _0x3c79d5=await fetch(_0x5bedd7,{'headers':{'Accept':_0x442fce(0x172)}});if(!_0x3c79d5['ok'])continue;const _0x13c9d4=await _0x3c79d5['json']();if(!_0x13c9d4['cli']?.[_0x442fce(0x177)]||!_0x13c9d4[_0x442fce(0x179)]?.[_0x442fce(0x16a)]?.[_0x442fce(0x177)])continue;return _0x13c9d4;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a307_0xf9e8(){const _0x23ec23=['sdk','4670CDkoWU','node','1029MDRyqu','4084vOfudy','4357496wXlnml','10485aaDUxa','1800270uwSSvu','39416akzmyT','163NPEEXk','application/json','now','96HybRGv','107185XHNafR','/config.json','stableVersion','442024owrTdW'];a307_0xf9e8=function(){return _0x23ec23;};return a307_0xf9e8();}let hasCachedConfig=![];export async function getCdnConfig(){const _0x5aa8ae=a307_0x382f,_0x279d7c=Date[_0x5aa8ae(0x173)]();if(hasCachedConfig){const _0x4b41a2=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x279d7c-cacheTime<_0x4b41a2)return cachedConfig;}const _0x3e1a85=await fetchCdnConfig();return cachedConfig=_0x3e1a85,cacheTime=_0x279d7c,hasCachedConfig=!![],_0x3e1a85;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a308_0x553902=a308_0x231c;(function(_0x311e0a,_0x3a6141){const _0x32b60f=a308_0x231c,_0x37ad8b=_0x311e0a();while(!![]){try{const _0x251db2=-parseInt(_0x32b60f(0x18c))/0x1*(-parseInt(_0x32b60f(0x1a3))/0x2)+parseInt(_0x32b60f(0x193))/0x3*(-parseInt(_0x32b60f(0x1a4))/0x4)+-parseInt(_0x32b60f(0x18d))/0x5+-parseInt(_0x32b60f(0x1a8))/0x6*(-parseInt(_0x32b60f(0x18f))/0x7)+-parseInt(_0x32b60f(0x18e))/0x8*(parseInt(_0x32b60f(0x189))/0x9)+-parseInt(_0x32b60f(0x191))/0xa*(-parseInt(_0x32b60f(0x1a7))/0xb)+-parseInt(_0x32b60f(0x197))/0xc*(parseInt(_0x32b60f(0x1ab))/0xd);if(_0x251db2===_0x3a6141)break;else _0x37ad8b['push'](_0x37ad8b['shift']());}catch(_0xde5823){_0x37ad8b['push'](_0x37ad8b['shift']());}}}(a308_0x3d8e,0xd8efb));import a308_0x31dfc7 from'node:fs';import a308_0x3a9ff6 from'node:path';function a308_0x3d8e(){const _0x436fe6=['package.json','\x1b[33m','node','\x20\x20\x20Current\x20version:\x20','\x20\x20\x20Stable\x20version:\x20','some','1.2.0','utf8','↪\x20SDK\x20update\x20available','14140obrAll','4XJiufv','utf-8','readFileSync','143mEyEHh','2533644FUwhLN','log','coerce','143oJslZt','packageName','\x1b[0m','minVersion','needsUpgrade','\x20\x20\x20Upgrade\x20command:\x20','version','sdk','devDependencies','@lovrabet/sdk','3582icLcDY','latest','stableVersion','210uUHuZf','1953005eMiMRe','6408DgRsVO','14RQcaHd','all','1191340QfwTwL','existsSync','3590847NLjpsu','test','dependencies','join','1181532ZIpxgN','node_modules','parse'];a308_0x3d8e=function(){return _0x436fe6;};return a308_0x3d8e();}import a308_0x380ae2 from'semver';function a308_0x231c(_0x59a593,_0x44bed0){_0x59a593=_0x59a593-0x185;const _0x3d8e03=a308_0x3d8e();let _0x231c84=_0x3d8e03[_0x59a593];return _0x231c84;}import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a308_0x553902(0x1a0);function isNonNumericVersion(_0x59ab40){const _0x343e62=a308_0x553902,_0x2aee61=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x2aee61[_0x343e62(0x19f)](_0xc76236=>_0xc76236[_0x343e62(0x194)](_0x59ab40));}function getInstalledVersion(_0x3d82c2,_0x8163d1){const _0x43dd5b=a308_0x553902;try{const _0x227bb2=a308_0x3a9ff6[_0x43dd5b(0x196)](_0x3d82c2,_0x43dd5b(0x198),_0x8163d1,_0x43dd5b(0x19a));if(a308_0x31dfc7[_0x43dd5b(0x192)](_0x227bb2)){const _0x53717c=JSON['parse'](a308_0x31dfc7[_0x43dd5b(0x1a6)](_0x227bb2,_0x43dd5b(0x1a5)));return _0x53717c[_0x43dd5b(0x185)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x47f2d9=a308_0x553902;try{const _0x3f7de0=await getCdnConfig();return _0x3f7de0?.[_0x47f2d9(0x186)]?.['node']?.[_0x47f2d9(0x18b)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x5684be=a308_0x553902;try{const _0x4dd7e7=await getCdnConfig();return _0x4dd7e7?.[_0x5684be(0x186)]?.[_0x5684be(0x19c)]?.[_0x5684be(0x1ac)]||_0x5684be(0x188);}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x3b3261){const _0x14bbf0=a308_0x553902,_0x50ce70=a308_0x3a9ff6[_0x14bbf0(0x196)](_0x3b3261,_0x14bbf0(0x19a)),[_0x12d3ac,_0x49caae]=await Promise[_0x14bbf0(0x190)]([getSdkStableVersion(),getSdkPackageName()]),_0x181553=_0x12d3ac||FALLBACK_MIN_SDK_VERSION;if(!a308_0x31dfc7[_0x14bbf0(0x192)](_0x50ce70))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x181553,'packageName':_0x49caae,'stableVersion':_0x12d3ac};try{const _0x1d5e4f=JSON[_0x14bbf0(0x199)](a308_0x31dfc7[_0x14bbf0(0x1a6)](_0x50ce70,_0x14bbf0(0x1a1))),_0x4e7523=_0x1d5e4f['dependencies']||{},_0x305066=_0x1d5e4f[_0x14bbf0(0x187)]||{},_0x56ed89=_0x4e7523[_0x49caae]||_0x305066[_0x49caae];if(!_0x56ed89)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x181553,'packageName':_0x49caae,'stableVersion':_0x12d3ac};let _0x34c08d=getInstalledVersion(_0x3b3261,_0x49caae);!_0x34c08d&&(_0x34c08d=_0x56ed89);if(isNonNumericVersion(_0x56ed89))return{'installed':!![],'version':_0x34c08d,'needsUpgrade':![],'minVersion':_0x181553,'packageName':_0x49caae,'stableVersion':_0x12d3ac};const _0x25bdf4=a308_0x380ae2[_0x14bbf0(0x1aa)](_0x34c08d),_0x3d6ce8=a308_0x380ae2[_0x14bbf0(0x1aa)](_0x181553),_0x5398bd=_0x25bdf4&&_0x3d6ce8?a308_0x380ae2['lt'](_0x25bdf4,_0x3d6ce8):![];return{'installed':!![],'version':_0x34c08d,'needsUpgrade':_0x5398bd,'minVersion':_0x181553,'packageName':_0x49caae,'stableVersion':_0x12d3ac};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x181553,'packageName':_0x49caae,'stableVersion':_0x12d3ac};}}export function checkSdkVersionSync(_0x190a45){const _0x19092f=a308_0x553902,_0x166936=a308_0x3a9ff6[_0x19092f(0x196)](_0x190a45,_0x19092f(0x19a)),_0x295135=_0x19092f(0x188);if(!a308_0x31dfc7['existsSync'](_0x166936))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x295135,'stableVersion':null};try{const _0x1bad68=JSON[_0x19092f(0x199)](a308_0x31dfc7['readFileSync'](_0x166936,_0x19092f(0x1a1))),_0x1f7290=_0x1bad68[_0x19092f(0x195)]||{},_0x4f24e3=_0x1bad68[_0x19092f(0x187)]||{},_0x32111b=_0x1f7290[_0x295135]||_0x4f24e3[_0x295135];if(!_0x32111b)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x295135,'stableVersion':null};let _0x1467b8=getInstalledVersion(_0x190a45,_0x295135);!_0x1467b8&&(_0x1467b8=_0x32111b);if(isNonNumericVersion(_0x32111b))return{'installed':!![],'version':_0x1467b8,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x295135,'stableVersion':null};const _0x4c09ab=a308_0x380ae2[_0x19092f(0x1aa)](_0x1467b8),_0xe517d4=_0x4c09ab?a308_0x380ae2['lt'](_0x4c09ab,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x1467b8,'needsUpgrade':_0xe517d4,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x295135,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x295135,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x115b0e){const _0x46af6b=a308_0x553902;if(!_0x115b0e[_0x46af6b(0x1af)])return;const _0x3c1c3d=_0x46af6b(0x19b),_0xe3e6a=_0x46af6b(0x1ad),_0x15a098='\x1b[1m',_0x4fab5c=_0x115b0e['packageName']||_0x46af6b(0x188),_0x14a73f=_0x115b0e[_0x46af6b(0x18b)]||_0x115b0e[_0x46af6b(0x1ae)],_0x4823af='npm\x20install\x20'+_0x4fab5c+'@'+(_0x14a73f||_0x46af6b(0x18a));console[_0x46af6b(0x1a9)](),console[_0x46af6b(0x1a9)](''+_0x3c1c3d+_0x15a098+_0x46af6b(0x1a2)+_0xe3e6a),console[_0x46af6b(0x1a9)](_0x3c1c3d+_0x46af6b(0x19d)+_0x4fab5c+'@'+_0x115b0e[_0x46af6b(0x185)]+_0xe3e6a),console['log'](_0x3c1c3d+_0x46af6b(0x19e)+_0x14a73f+_0xe3e6a),console[_0x46af6b(0x1a9)](_0x3c1c3d+_0x46af6b(0x1b0)+_0x4823af+_0xe3e6a),console['log']();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a309_0x3724(_0x38de9a,_0x303af1){_0x38de9a=_0x38de9a-0xd5;const _0x5a4e2b=a309_0x5a4e();let _0x372445=_0x5a4e2b[_0x38de9a];return _0x372445;}(function(_0x2d5b5a,_0x6572b0){const _0x57be42=a309_0x3724,_0xdcecb8=_0x2d5b5a();while(!![]){try{const _0x56172a=-parseInt(_0x57be42(0xd7))/0x1+-parseInt(_0x57be42(0xe7))/0x2+-parseInt(_0x57be42(0xf3))/0x3*(parseInt(_0x57be42(0xf2))/0x4)+parseInt(_0x57be42(0xee))/0x5+-parseInt(_0x57be42(0xf0))/0x6*(-parseInt(_0x57be42(0xdc))/0x7)+-parseInt(_0x57be42(0xe2))/0x8*(parseInt(_0x57be42(0xf8))/0x9)+parseInt(_0x57be42(0xfd))/0xa*(parseInt(_0x57be42(0xea))/0xb);if(_0x56172a===_0x6572b0)break;else _0xdcecb8['push'](_0xdcecb8['shift']());}catch(_0x149ea9){_0xdcecb8['push'](_0xdcecb8['shift']());}}}(a309_0x5a4e,0x44257));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a309_0x4a31f3 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a309_0x5a4e(){const _0x3e912d=['\x1b[0m','Current\x20version:\x20','\x20\x20\x20Recommended\x20stable:\x20','2570fvMHio','Upgrade\x20command:\x20','parse','\x20\x20\x20Stable\x20version:\x20','202811YxjZFw','↪\x20New\x20version\x20available','\x1b[33m','1.0.0','../..','21dgJlNy','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','belowMinimum','\x20\x20\x20Minimum\x20supported:\x20','minimumVersionMessage','\x20\x20\x20Upgrade\x20command:\x20','74488CbSWtQ','\x1b[1m','upgradeMessage','package.json','latest','119684eWjaFO','\x20\x20\x20Current\x20CLI\x20version:\x20','\x20\x20\x20','3817ySPUlJ','stableVersion','validation','minimumVersion','2427350CwbkLC','join','545526aHQNUM','currentVersion','80632yGdrXy','15rvwRGu','log','filter','coerce','\x1b[31m','198UfzQYN','↪\x20Critical\x20CLI\x20upgrade\x20required'];a309_0x5a4e=function(){return _0x3e912d;};return a309_0x5a4e();}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0xfecf27){const _0x53c4f8=a309_0x3724,_0x117cf4=_0xfecf27['stableVersion']||_0x53c4f8(0xe6);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x117cf4;}function getCurrentCliVersion(){const _0x264e56=a309_0x3724;try{const _0x105279=fileURLToPath(import.meta.url),_0x3a3311=resolve(dirname(_0x105279),_0x264e56(0xdb)),_0x1a7843=resolve(_0x3a3311,_0x264e56(0xe5)),_0x4dbb6e=JSON[_0x264e56(0xd5)](readFileSync(_0x1a7843,'utf-8'));return _0x4dbb6e['version']||_0x264e56(0xda);}catch{return _0x264e56(0xda);}}export async function checkCliVersion(){const _0x52fabb=a309_0x3724,_0x4e916c=getCurrentCliVersion(),_0x4751c1=await getCliVersionPolicy(),_0xc75937=_0x4751c1?.['stableVersion']||null,_0x59548d=_0x4751c1?.[_0x52fabb(0xed)]||null;let _0x1d38e2=![],_0x4c9a49=![];const _0x145597=a309_0x4a31f3['coerce'](_0x4e916c);if(_0x145597&&_0xc75937)try{const _0x26fb66=a309_0x4a31f3[_0x52fabb(0xf6)](_0xc75937);if(_0x26fb66)_0x1d38e2=a309_0x4a31f3['lt'](_0x145597,_0x26fb66);}catch{}if(_0x145597&&_0x59548d)try{const _0x57a31f=a309_0x4a31f3[_0x52fabb(0xf6)](_0x59548d);if(_0x57a31f)_0x4c9a49=a309_0x4a31f3['lt'](_0x145597,_0x57a31f);}catch{}return _0x4c9a49&&(_0x1d38e2=!![]),{'currentVersion':_0x4e916c,'stableVersion':_0xc75937,'minimumVersion':_0x59548d,'needsUpgrade':_0x1d38e2,'belowMinimum':_0x4c9a49,'isPreRelease':![],'upgradeMessage':_0x4751c1?.[_0x52fabb(0xe4)],'minimumVersionMessage':_0x4751c1?.[_0x52fabb(0xe0)]};}export function printCliUpgradeWarning(_0x245893){const _0x1e6282=a309_0x3724;if(!_0x245893['needsUpgrade']&&!_0x245893[_0x1e6282(0xde)])return;const _0x2832fc=_0x1e6282(0xf7),_0x5918d7=_0x1e6282(0xd9),_0x21b108=_0x1e6282(0xfa),_0x5da72f=_0x1e6282(0xe3),_0x4a9d3b=getCliUpgradeCommand(_0x245893);console[_0x1e6282(0xf4)](),_0x245893['belowMinimum']?(console['log'](''+_0x2832fc+_0x5da72f+_0x1e6282(0xf9)+_0x21b108),console[_0x1e6282(0xf4)](_0x2832fc+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x245893[_0x1e6282(0xf1)]+_0x21b108),_0x245893[_0x1e6282(0xed)]&&console[_0x1e6282(0xf4)](_0x2832fc+_0x1e6282(0xdf)+_0x245893[_0x1e6282(0xed)]+_0x21b108),_0x245893[_0x1e6282(0xeb)]&&_0x245893[_0x1e6282(0xeb)]!==_0x245893[_0x1e6282(0xed)]&&console[_0x1e6282(0xf4)](_0x2832fc+_0x1e6282(0xfc)+_0x245893[_0x1e6282(0xeb)]+_0x21b108),_0x245893[_0x1e6282(0xe0)]&&console[_0x1e6282(0xf4)](_0x2832fc+_0x1e6282(0xe9)+_0x245893['minimumVersionMessage']+_0x21b108),console['log'](_0x2832fc+_0x1e6282(0xe1)+_0x4a9d3b+_0x21b108)):(console[_0x1e6282(0xf4)](''+_0x5918d7+_0x5da72f+_0x1e6282(0xd8)+_0x21b108),console[_0x1e6282(0xf4)](_0x5918d7+_0x1e6282(0xe8)+_0x245893[_0x1e6282(0xf1)]+_0x21b108),console['log'](_0x5918d7+_0x1e6282(0xd6)+_0x245893[_0x1e6282(0xeb)]+_0x21b108),_0x245893[_0x1e6282(0xe4)]&&console[_0x1e6282(0xf4)](_0x5918d7+_0x1e6282(0xe9)+_0x245893[_0x1e6282(0xe4)]+_0x21b108),console['log'](_0x5918d7+_0x1e6282(0xe1)+_0x4a9d3b+_0x21b108)),console[_0x1e6282(0xf4)]();}export function assertCliVersionSupported(_0xb377c9){const _0x4d0491=a309_0x3724;if(!_0xb377c9[_0x4d0491(0xde)])return;const _0x2c425d=[_0xb377c9[_0x4d0491(0xe0)],_0x4d0491(0xfb)+_0xb377c9[_0x4d0491(0xf1)],_0xb377c9[_0x4d0491(0xed)]?'Minimum\x20supported:\x20'+_0xb377c9[_0x4d0491(0xed)]:null,_0x4d0491(0xfe)+getCliUpgradeCommand(_0xb377c9)][_0x4d0491(0xf5)](Boolean)[_0x4d0491(0xef)]('\x0a');throw CliErrors[_0x4d0491(0xec)](_0x4d0491(0xdd),_0x2c425d);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x455571,_0x546270){const _0x270cde=a310_0x5036,_0x28302d=_0x455571();while(!![]){try{const _0x13b789=parseInt(_0x270cde(0x1ca))/0x1+-parseInt(_0x270cde(0x1c8))/0x2+-parseInt(_0x270cde(0x1d6))/0x3+-parseInt(_0x270cde(0x1c7))/0x4+parseInt(_0x270cde(0x1d2))/0x5+-parseInt(_0x270cde(0x1cb))/0x6+parseInt(_0x270cde(0x1ce))/0x7;if(_0x13b789===_0x546270)break;else _0x28302d['push'](_0x28302d['shift']());}catch(_0x7b1e4d){_0x28302d['push'](_0x28302d['shift']());}}}(a310_0x41e9,0x332b2));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';function a310_0x41e9(){const _0x1f5690=['now','1189635vMFmwp','json','signal','minimumVersion','1083954MoRVUH','trim','latestVersion','object','upgradeMessage','stableVersion','719720gGZqJd','553040fdnMjC','recommendedVersion','79709EzYzuJ','857376yrSAJI','minimumVersionMessage','application/json','5968298gyTwGv','length','cli'];a310_0x41e9=function(){return _0x1f5690;};return a310_0x41e9();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x51fcad){const _0x287920=a310_0x5036;return typeof _0x51fcad==='string'&&_0x51fcad[_0x287920(0x1c2)]()[_0x287920(0x1cf)]>0x0?_0x51fcad[_0x287920(0x1c2)]():null;}function normalizeCliVersionPolicy(_0x3ae15a){const _0x26784b=a310_0x5036;if(!_0x3ae15a||typeof _0x3ae15a!==_0x26784b(0x1c4))return null;const _0x483c8=_0x3ae15a,_0xaaf245=_0x483c8[_0x26784b(0x1d0)]&&typeof _0x483c8['cli']==='object'?_0x483c8['cli']:_0x483c8,_0x5aa81a=pickString(_0xaaf245[_0x26784b(0x1c6)])||pickString(_0xaaf245[_0x26784b(0x1c3)])||pickString(_0xaaf245[_0x26784b(0x1c9)]),_0x26ea6f=pickString(_0xaaf245[_0x26784b(0x1d5)])||pickString(_0xaaf245['minVersion']);if(!_0x5aa81a&&!_0x26ea6f)return null;return{'stableVersion':_0x5aa81a,'minimumVersion':_0x26ea6f,'upgradeMessage':pickString(_0xaaf245[_0x26784b(0x1c5)])||undefined,'minimumVersionMessage':pickString(_0xaaf245[_0x26784b(0x1cc)])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0xc959d3=a310_0x5036,_0x5dc40a=new AbortController(),_0x1953f9=setTimeout(()=>_0x5dc40a['abort'](),FETCH_TIMEOUT_MS);try{const _0x2cef1d=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0xc959d3(0x1cd)},'signal':_0x5dc40a[_0xc959d3(0x1d4)]});if(!_0x2cef1d['ok'])return null;const _0x288193=await _0x2cef1d[_0xc959d3(0x1d3)]();return _0x288193&&typeof _0x288193===_0xc959d3(0x1c4)?_0x288193:null;}catch{return null;}finally{clearTimeout(_0x1953f9);}}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x4838ff=a310_0x5036,_0x4ff62f=Date[_0x4838ff(0x1d1)]();if(hasCachedConfig){const _0xe565fa=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x4ff62f-cacheTime<_0xe565fa)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x4ff62f,hasCachedConfig=!![],cachedConfig;}function a310_0x5036(_0x3c2963,_0x228272){_0x3c2963=_0x3c2963-0x1c2;const _0x41e9e7=a310_0x41e9();let _0x50366e=_0x41e9e7[_0x3c2963];return _0x50366e;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
|
package/lib/utils/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a311_0x5a91(_0x275a82,_0x354df6){_0x275a82=_0x275a82-0x19f;const _0x19f217=a311_0x19f2();let _0x5a91c9=_0x19f217[_0x275a82];return _0x5a91c9;}function a311_0x19f2(){const _0x5c23e7=['952765fUBgwf','8yUNyBD','366759LBAlOp','4661613ZrFBHO','735988MkRsMo','2273210UhWRIq','env','14xapuwW','7GPZvXn','210582eDgCVE','project','2654172OEsyqc','170mYdlUY'];a311_0x19f2=function(){return _0x5c23e7;};return a311_0x19f2();}const a311_0x3d9fad=a311_0x5a91;(function(_0x102fa1,_0x388675){const _0x157e6b=a311_0x5a91,_0x9b4fea=_0x102fa1();while(!![]){try{const _0x2bd773=-parseInt(_0x157e6b(0x1a5))/0x1+parseInt(_0x157e6b(0x1a8))/0x2*(-parseInt(_0x157e6b(0x1a3))/0x3)+parseInt(_0x157e6b(0x19f))/0x4+parseInt(_0x157e6b(0x1a6))/0x5+parseInt(_0x157e6b(0x1aa))/0x6*(-parseInt(_0x157e6b(0x1a9))/0x7)+-parseInt(_0x157e6b(0x1a2))/0x8*(parseInt(_0x157e6b(0x1a4))/0x9)+-parseInt(_0x157e6b(0x1a0))/0xa*(-parseInt(_0x157e6b(0x1a1))/0xb);if(_0x2bd773===_0x388675)break;else _0x9b4fea['push'](_0x9b4fea['shift']());}catch(_0x4ab6c9){_0x9b4fea['push'](_0x9b4fea['shift']());}}}(a311_0x19f2,0x6cd83));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a311_0x11b660,getMultiAppConfigs as a311_0x545fab,getTemplateBaseUrl as a311_0xa4f3e1}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x377308){const _0x163e87=a311_0x5a91,_0x18928e=readRawConfig(_0x377308);return _0x18928e[_0x163e87(0x1a7)]&&typeof _0x18928e[_0x163e87(0x1a7)]==='string'&&initEnv(_0x18928e[_0x163e87(0x1a7)]),_0x18928e;}export function getConfigAppCode(){return a311_0x11b660();}export function getMultiAppConfigs(_0x37066b=a311_0x3d9fad(0x1ab)){return a311_0x545fab(_0x37066b);}export function getTemplateBaseUrl(){return a311_0xa4f3e1();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a312_0x548a(){const _0x5904d3=['number','4183762qJCyua','string','3896484fWwnjb','3hGgeSI','139640DvSUad','7974965CjBvFS','93990yKGsSp','513lNlEOF','49644744palYcE','isFinite','3RaNrKX','40tLemgk','object','511jRBpxj','654154qZGmIs'];a312_0x548a=function(){return _0x5904d3;};return a312_0x548a();}(function(_0x563de3,_0x439ef1){const _0x38a8c3=a312_0x5233,_0x306a06=_0x563de3();while(!![]){try{const _0x284aaf=parseInt(_0x38a8c3(0x142))/0x1*(-parseInt(_0x38a8c3(0x136))/0x2)+-parseInt(_0x38a8c3(0x13b))/0x3*(-parseInt(_0x38a8c3(0x13a))/0x4)+-parseInt(_0x38a8c3(0x13d))/0x5+-parseInt(_0x38a8c3(0x13e))/0x6*(parseInt(_0x38a8c3(0x145))/0x7)+-parseInt(_0x38a8c3(0x13c))/0x8*(-parseInt(_0x38a8c3(0x13f))/0x9)+parseInt(_0x38a8c3(0x143))/0xa*(-parseInt(_0x38a8c3(0x138))/0xb)+parseInt(_0x38a8c3(0x140))/0xc;if(_0x284aaf===_0x439ef1)break;else _0x306a06['push'](_0x306a06['shift']());}catch(_0x50b3ff){_0x306a06['push'](_0x306a06['shift']());}}}(a312_0x548a,0xd32d5));function toFiniteNumber(_0xe6f8c3){const _0xbc848a=a312_0x5233;if(typeof _0xe6f8c3===_0xbc848a(0x137)&&Number[_0xbc848a(0x141)](_0xe6f8c3))return _0xe6f8c3;if(typeof _0xe6f8c3===_0xbc848a(0x139)){const _0xe540bf=_0xe6f8c3['trim']();if(!_0xe540bf)return undefined;const _0x50fba9=Number(_0xe540bf);if(Number[_0xbc848a(0x141)](_0x50fba9))return _0x50fba9;}return undefined;}function a312_0x5233(_0x35dc35,_0x2532d7){_0x35dc35=_0x35dc35-0x136;const _0x548a61=a312_0x548a();let _0x5233f6=_0x548a61[_0x35dc35];return _0x5233f6;}export function normalizeEntityWithIdResponse(_0xa35d19){const _0xed9a72=a312_0x5233,_0x414a06=toFiniteNumber(_0xa35d19);if(_0x414a06!==undefined)return{'id':_0x414a06,'entity':{'id':_0x414a06}};if(!_0xa35d19||typeof _0xa35d19!==_0xed9a72(0x144))return{'id':undefined,'entity':{}};const _0x157e9c={..._0xa35d19},_0x3c8105=toFiniteNumber(_0x157e9c['id']);return _0x3c8105!==undefined&&(_0x157e9c['id']=_0x3c8105),{'id':_0x3c8105,'entity':_0x157e9c};}
|
package/lib/utils/file-utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a313_0x1fca(_0x1027a7,_0x2fe603){_0x1027a7=_0x1027a7-0x145;const _0x14a534=a313_0x14a5();let _0x1fca6d=_0x14a534[_0x1027a7];return _0x1fca6d;}(function(_0xcffa5,_0x2bf96a){const _0x1f43a4=a313_0x1fca,_0x446c52=_0xcffa5();while(!![]){try{const _0x17d7ac=parseInt(_0x1f43a4(0x14e))/0x1*(parseInt(_0x1f43a4(0x150))/0x2)+-parseInt(_0x1f43a4(0x146))/0x3+-parseInt(_0x1f43a4(0x14d))/0x4*(parseInt(_0x1f43a4(0x14f))/0x5)+-parseInt(_0x1f43a4(0x14a))/0x6*(-parseInt(_0x1f43a4(0x147))/0x7)+-parseInt(_0x1f43a4(0x14c))/0x8+parseInt(_0x1f43a4(0x149))/0x9*(-parseInt(_0x1f43a4(0x145))/0xa)+parseInt(_0x1f43a4(0x148))/0xb*(-parseInt(_0x1f43a4(0x14b))/0xc);if(_0x17d7ac===_0x2bf96a)break;else _0x446c52['push'](_0x446c52['shift']());}catch(_0x44b95b){_0x446c52['push'](_0x446c52['shift']());}}}(a313_0x14a5,0x95b81));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x4dd0e8,_0x32ff0c){const _0x49d5af=a313_0x1fca,_0x45f435=statSync(_0x4dd0e8);if(_0x45f435[_0x49d5af(0x151)]()){!existsSync(_0x32ff0c)&&mkdirSync(_0x32ff0c,{'recursive':!![]});const _0x3f7724=readdirSync(_0x4dd0e8);for(const _0x51ed71 of _0x3f7724){await copyDir(join(_0x4dd0e8,_0x51ed71),join(_0x32ff0c,_0x51ed71));}}else copyFileSync(_0x4dd0e8,_0x32ff0c);}export function ensureDir(_0x25a347){!existsSync(_0x25a347)&&mkdirSync(_0x25a347,{'recursive':!![]});}export function pathExists(_0x1fe02a){return existsSync(_0x1fe02a);}function a313_0x14a5(){const _0x19f8a9=['2090792fRvZOj','1332fcvNlT','592089cOivEz','265nlzuMT','4ynjdNL','isDirectory','30SGyREP','80088meMDSR','133IDEjZu','195437Pplbta','470277ErbDIs','139674XgfXbT','372yBNJVW'];a313_0x14a5=function(){return _0x19f8a9;};return a313_0x14a5();}
|