@lovrabet/rabetbase-cli 2.3.7-beta.2 → 2.3.7-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/add.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/remove.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/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/shared/compare-table.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/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/update.js +1 -1
- package/lib/commands/notification/config-list.js +1 -0
- package/lib/commands/notification/index.js +1 -0
- 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/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-apis-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/init.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/save.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/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-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/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1b3bff,_0x298e8a){const _0x5ecb59=a202_0x1654,_0x9b6df7=_0x1b3bff();while(!![]){try{const _0x175d9c=parseInt(_0x5ecb59(0x10b))/0x1*(parseInt(_0x5ecb59(0x102))/0x2)+parseInt(_0x5ecb59(0x101))/0x3*(parseInt(_0x5ecb59(0x100))/0x4)+-parseInt(_0x5ecb59(0xfe))/0x5*(parseInt(_0x5ecb59(0xfb))/0x6)+-parseInt(_0x5ecb59(0x10c))/0x7*(-parseInt(_0x5ecb59(0xf9))/0x8)+-parseInt(_0x5ecb59(0x105))/0x9+parseInt(_0x5ecb59(0x108))/0xa*(-parseInt(_0x5ecb59(0x104))/0xb)+parseInt(_0x5ecb59(0xf8))/0xc;if(_0x175d9c===_0x298e8a)break;else _0x9b6df7['push'](_0x9b6df7['shift']());}catch(_0x4c907b){_0x9b6df7['push'](_0x9b6df7['shift']());}}}(a202_0x4cbd,0x850b0));export function detectSqlMode(_0x565db6){const _0x43884d=a202_0x1654,_0xe4598f=_0x565db6[_0x43884d(0xff)]();if(/^<(select|insert|update|delete)\b/i[_0x43884d(0xfc)](_0xe4598f))return _0x43884d(0xfd);return _0x43884d(0x106);}function a202_0x1654(_0x20edf2,_0x4a388a){_0x20edf2=_0x20edf2-0xf8;const _0x4cbd58=a202_0x4cbd();let _0x1654ec=_0x4cbd58[_0x20edf2];return _0x1654ec;}export function getSqlFileExtension(_0x37d8dd){const _0x556cb3=a202_0x1654;return _0x37d8dd==='mybatisXml'?_0x556cb3(0x10a):_0x556cb3(0x10d);}export function buildDefaultSqlFileName(_0x53277d,_0x207385){return''+_0x53277d+getSqlFileExtension(_0x207385);}export function sanitizeSqlPathSegment(_0x2a338b,_0x4ca0df){const _0x28a7ad=a202_0x1654,_0x20397b=String(_0x2a338b??'')[_0x28a7ad(0x109)](),_0x38d4a8=_0x20397b[_0x28a7ad(0x107)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x28a7ad(0x107)](/\s+/g,'-')[_0x28a7ad(0x107)](/-+/g,'-')[_0x28a7ad(0x107)](/^\.+/,'')['replace'](/\.+$/,'')[_0x28a7ad(0x107)](/^-+/,'')['replace'](/-+$/,'');return _0x38d4a8||_0x4ca0df;}export function buildDbDirectoryName(_0x3f2618,_0x3b9ff6){const _0x3fb324=a202_0x1654;return sanitizeSqlPathSegment(_0x3f2618,_0x3b9ff6!=null?_0x3fb324(0x10e)+_0x3b9ff6:_0x3fb324(0x103));}function a202_0x4cbd(){const _0x9b8d89=['test','mybatisXml','8135XqBGDs','trimStart','68mHNRqF','137694zytMHM','12zpxydo','unknown-db','153043ZzPVPR','3694725KWAull','sql','replace','20TorjBV','trim','.xml','90575jeLHBP','7126tNvedW','.sql','db-','1083924iexiff','1448aOyoVl','unknown-sql','2268apMzcB'];a202_0x4cbd=function(){return _0x9b8d89;};return a202_0x4cbd();}export function buildSqlRelativePath(_0x316443,_0x14ce04,_0x31b3ae,_0x3ce3f5,_0x208fa6){const _0x472320=a202_0x1654,_0x2c0c95=buildDbDirectoryName(_0x31b3ae,_0x208fa6),_0x3b068f=sanitizeSqlPathSegment(_0x316443,_0x472320(0xfa)),_0xceec09=sanitizeSqlPathSegment(_0x14ce04,_0x3b068f);return _0x2c0c95+'/'+_0x3b068f+'_'+_0xceec09+getSqlFileExtension(_0x3ce3f5);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x28fe0d,_0x682c8c){const _0x405beb=a203_0xbdea,_0x1e9087=_0x28fe0d();while(!![]){try{const _0x5bbe88=-parseInt(_0x405beb(0xf3))/0x1+-parseInt(_0x405beb(0x102))/0x2*(parseInt(_0x405beb(0xfe))/0x3)+-parseInt(_0x405beb(0xea))/0x4*(parseInt(_0x405beb(0x10a))/0x5)+parseInt(_0x405beb(0x10c))/0x6+-parseInt(_0x405beb(0xe7))/0x7+parseInt(_0x405beb(0x104))/0x8+parseInt(_0x405beb(0x10b))/0x9*(parseInt(_0x405beb(0xef))/0xa);if(_0x5bbe88===_0x682c8c)break;else _0x1e9087['push'](_0x1e9087['shift']());}catch(_0x5b7900){_0x1e9087['push'](_0x1e9087['shift']());}}}(a203_0x1968,0x7f87f));function a203_0x1968(){const _0x25affd=['test','push','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','reason','match','SQL\x20content\x20is\x20empty','replace','from','includes','6cfOHNB','DDL','\x20query\x20targeting\x20','trim','293396KIqkoW','DELETE','3525488xRGSnv','join','WITH','INSERT','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','length','118895SSCyRv','18azvltx','547308pXoNTY','toUpperCase','UNKNOWN','startsWith','unknown\x20table(s)','2777250xtUVSs','UPDATE','type','172VwklVq','matchAll','isDangerous','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','add','9087190UPDvTq','SELECT','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','split','114332kccZkz','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'];a203_0x1968=function(){return _0x25affd;};return a203_0x1968();}export function detectSqlType(_0x50fb21){const _0x42d0cb=a203_0xbdea;if(!_0x50fb21?.['trim']())return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x42d0cb(0xfa)};const _0x170d1=_0x50fb21[_0x42d0cb(0xfb)](/#\{[^}]*\}/g,'?')[_0x42d0cb(0xfb)](/\$\{[^}]*\}/g,'?')[_0x42d0cb(0xfb)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x42d0cb(0xfb)](/\/\*[\s\S]*?\*\//g,'')['trim'](),_0x302d9e=_0x170d1[_0x42d0cb(0xf2)]('\x0a');let _0x4234fc='';for(const _0x28fb96 of _0x302d9e){const _0x598f83=_0x28fb96[_0x42d0cb(0x101)]();if(!_0x598f83||_0x598f83[_0x42d0cb(0xe5)]('--')||_0x598f83['startsWith']('/*'))continue;_0x4234fc=_0x598f83;break;}const _0x16ddf9=_0x4234fc[_0x42d0cb(0xe3)]();if(_0x16ddf9['startsWith'](_0x42d0cb(0xf0))||_0x16ddf9['startsWith'](_0x42d0cb(0x106))){const _0x2205ee=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i['test'](_0x170d1);return{'type':_0x42d0cb(0xf0),'isSelectOnly':!_0x2205ee,'isDangerous':_0x2205ee,'reason':_0x2205ee?_0x42d0cb(0xf7):undefined};}if(_0x16ddf9[_0x42d0cb(0xe5)](_0x42d0cb(0x107)))return{'type':'INSERT','isSelectOnly':![],'isDangerous':![]};if(_0x16ddf9[_0x42d0cb(0xe5)](_0x42d0cb(0xe8)))return{'type':_0x42d0cb(0xe8),'isSelectOnly':![],'isDangerous':![]};if(_0x16ddf9[_0x42d0cb(0xe5)](_0x42d0cb(0x103)))return{'type':_0x42d0cb(0x103),'isSelectOnly':![],'isDangerous':!![],'reason':_0x42d0cb(0xf1)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x42d0cb(0xf5)](_0x16ddf9))return{'type':_0x42d0cb(0xff),'isSelectOnly':![],'isDangerous':!![],'reason':_0x42d0cb(0xf4)};return{'type':_0x42d0cb(0xe4),'isSelectOnly':![],'isDangerous':![]};}function a203_0xbdea(_0x4ae1f8,_0x3026eb){_0x4ae1f8=_0x4ae1f8-0xe3;const _0x196839=a203_0x1968();let _0xbdeadc=_0x196839[_0x4ae1f8];return _0xbdeadc;}function extractTables(_0xe4260f){const _0x596653=a203_0xbdea,_0x3cb9df=_0xe4260f['replace'](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')[_0x596653(0xfb)](/--.*$/gm,'')[_0x596653(0xfb)](/\/\*[\s\S]*?\*\//g,''),_0x41a275=[],_0x264113=_0x3cb9df[_0x596653(0xf9)](/FROM\s+([^\s,)(]+)/i);if(_0x264113?.[0x1])_0x41a275[_0x596653(0xf6)](_0x264113[0x1][_0x596653(0xfb)](/[`"]/g,''));for(const _0x14b4d9 of _0x3cb9df['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x12b6a5=_0x14b4d9[0x1]?.[_0x596653(0xfb)](/[`"]/g,'');if(_0x12b6a5&&!_0x41a275['includes'](_0x12b6a5))_0x41a275[_0x596653(0xf6)](_0x12b6a5);}const _0x4f98a2=_0x3cb9df[_0x596653(0xf9)](/INTO\s+([^\s(]+)/i);if(_0x4f98a2?.[0x1]){const _0xc63de6=_0x4f98a2[0x1][_0x596653(0xfb)](/[`"]/g,'');if(!_0x41a275[_0x596653(0xfd)](_0xc63de6))_0x41a275[_0x596653(0xf6)](_0xc63de6);}const _0x13030b=_0x3cb9df[_0x596653(0xf9)](/UPDATE\s+([^\s,)(]+)/i);if(_0x13030b?.[0x1]){const _0x234341=_0x13030b[0x1][_0x596653(0xfb)](/[`"]/g,'');if(!_0x41a275[_0x596653(0xfd)](_0x234341))_0x41a275[_0x596653(0xf6)](_0x234341);}return _0x41a275;}function extractParameters(_0x52f85e){const _0x3bd35b=a203_0xbdea,_0x285c3c=new Set();for(const _0x38ba5d of _0x52f85e[_0x3bd35b(0xeb)](/#\{(\w+)\}/g))if(_0x38ba5d[0x1])_0x285c3c[_0x3bd35b(0xee)](_0x38ba5d[0x1]);for(const _0x49c8c9 of _0x52f85e['matchAll'](/\$\{(\w+)\}/g))if(_0x49c8c9[0x1])_0x285c3c['add'](_0x49c8c9[0x1]);return Array[_0x3bd35b(0xfc)](_0x285c3c);}export function validateSql(_0x5923be){const _0x3deeb5=a203_0xbdea,_0x3a1aab=detectSqlType(_0x5923be),_0xc15847=extractTables(_0x5923be),_0x54d70d=extractParameters(_0x5923be);if(_0x3a1aab[_0x3deeb5(0xec)])return{'valid':![],'sqlType':_0x3a1aab,'tables':_0xc15847,'parameters':_0x54d70d,'message':_0x3a1aab[_0x3deeb5(0xf8)]||_0x3a1aab['type']+_0x3deeb5(0x108)};if(_0x3a1aab[_0x3deeb5(0xe9)]===_0x3deeb5(0xe4))return{'valid':![],'sqlType':_0x3a1aab,'tables':_0xc15847,'parameters':_0x54d70d,'message':_0x3deeb5(0xed)};return{'valid':!![],'sqlType':_0x3a1aab,'tables':_0xc15847,'parameters':_0x54d70d,'message':_0x3a1aab[_0x3deeb5(0xe9)]+_0x3deeb5(0x100)+(_0xc15847['length']?_0xc15847[_0x3deeb5(0x105)](',\x20'):_0x3deeb5(0xe6))+(_0x54d70d[_0x3deeb5(0x109)]?'\x20with\x20parameters:\x20'+_0x54d70d[_0x3deeb5(0x105)](',\x20'):'')};}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a204_0x1c649c=a204_0x2d4f;(function(_0x2f7d18,_0x3a03aa){const _0x2b368e=a204_0x2d4f,_0x143481=_0x2f7d18();while(!![]){try{const _0x768072=parseInt(_0x2b368e(0x126))/0x1*(-parseInt(_0x2b368e(0x125))/0x2)+-parseInt(_0x2b368e(0x12a))/0x3+parseInt(_0x2b368e(0x124))/0x4*(parseInt(_0x2b368e(0x118))/0x5)+parseInt(_0x2b368e(0x11e))/0x6*(-parseInt(_0x2b368e(0x11f))/0x7)+parseInt(_0x2b368e(0x123))/0x8*(-parseInt(_0x2b368e(0x11b))/0x9)+-parseInt(_0x2b368e(0x129))/0xa*(parseInt(_0x2b368e(0x119))/0xb)+parseInt(_0x2b368e(0x128))/0xc;if(_0x768072===_0x3a03aa)break;else _0x143481['push'](_0x143481['shift']());}catch(_0x5e38dd){_0x143481['push'](_0x143481['shift']());}}}(a204_0x8936,0x7b504));function a204_0x8936(){const _0x18e453=['2281494ubujUA','3325pnlkrP','8516189xmdKYO','\x0a\x20\x20\x20\x20\x20\x20\x20','1476EbKqkp','join','Run\x20`','259446KclOeL','7TaDQqy','Tip:\x20`','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','\x20auth`\x20to\x20login\x20first.','13600WqtHqd','1956arWjwT','16fuQyWB','81253JqZdWm','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','32240028pzWuzO','10ZRAeNu'];a204_0x8936=function(){return _0x18e453;};return a204_0x8936();}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a204_0x2d4f(_0x14aeb2,_0x3b3899){_0x14aeb2=_0x14aeb2-0x118;const _0x89360f=a204_0x8936();let _0x2d4fb6=_0x89360f[_0x14aeb2];return _0x2d4fb6;}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a204_0x1c649c(0x11d)+CLI_BIN_NAME+a204_0x1c649c(0x122),'configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a204_0x1c649c(0x127),a204_0x1c649c(0x120)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.'][a204_0x1c649c(0x11c)](a204_0x1c649c(0x11a)),'notInProjectHint':a204_0x1c649c(0x121)});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2258d6,_0x10b7b5){var _0x538c96=a205_0x3bb0,_0x4d46be=_0x2258d6();while(!![]){try{var _0x1a4fbc=parseInt(_0x538c96(0x77))/0x1+-parseInt(_0x538c96(0x76))/0x2+-parseInt(_0x538c96(0x73))/0x3*(parseInt(_0x538c96(0x79))/0x4)+-parseInt(_0x538c96(0x74))/0x5*(-parseInt(_0x538c96(0x7a))/0x6)+-parseInt(_0x538c96(0x75))/0x7+-parseInt(_0x538c96(0x78))/0x8+parseInt(_0x538c96(0x7b))/0x9;if(_0x1a4fbc===_0x10b7b5)break;else _0x4d46be['push'](_0x4d46be['shift']());}catch(_0x4a80d5){_0x4d46be['push'](_0x4d46be['shift']());}}}(a205_0x1622,0xce83a));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a205_0x250538}from'@lovrabet/cli-framework';function a205_0x3bb0(_0x1e3deb,_0x3d8063){_0x1e3deb=_0x1e3deb-0x73;var _0x1622fa=a205_0x1622();var _0x3bb016=_0x1622fa[_0x1e3deb];return _0x3bb016;}export function buildAllFlags(_0x39c5dd){return a205_0x250538(_0x39c5dd,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}function a205_0x1622(){var _0x458107=['3RsFxCN','30Tdllze','1524810VVJAxP','1976174RPztRA','405995AIYmrP','759456WdLZXZ','4975248LndwMp','805692jNPmmA','19609704IMKZJl'];a205_0x1622=function(){return _0x458107;};return a205_0x1622();}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a206_0x3421(_0x5efc54,_0xccba1f){_0x5efc54=_0x5efc54-0x92;const _0x542d9a=a206_0x542d();let _0x3421f3=_0x542d9a[_0x5efc54];return _0x3421f3;}const a206_0xf48a2a=a206_0x3421;function a206_0x542d(){const _0x7d0a53=['6226200torvuj','validateFlags','6tZMiCB','8nZLHEW','21541932yUWIAY','parseFlags','11vCCywC','458748zQgarH','55SStiXK','187177NsQCBP','2133464kXFysV','1494102qnWTQC','2181487XczkRU','9xTDIFV'];a206_0x542d=function(){return _0x7d0a53;};return a206_0x542d();}(function(_0x201b08,_0x4be726){const _0x416f6d=a206_0x3421,_0x36f9d3=_0x201b08();while(!![]){try{const _0x512f3d=-parseInt(_0x416f6d(0x96))/0x1*(parseInt(_0x416f6d(0x9d))/0x2)+-parseInt(_0x416f6d(0x98))/0x3*(-parseInt(_0x416f6d(0x9e))/0x4)+-parseInt(_0x416f6d(0x95))/0x5*(parseInt(_0x416f6d(0x94))/0x6)+parseInt(_0x416f6d(0x99))/0x7+parseInt(_0x416f6d(0x97))/0x8*(-parseInt(_0x416f6d(0x9a))/0x9)+-parseInt(_0x416f6d(0x9b))/0xa+-parseInt(_0x416f6d(0x93))/0xb*(-parseInt(_0x416f6d(0x9f))/0xc);if(_0x512f3d===_0x4be726)break;else _0x36f9d3['push'](_0x36f9d3['shift']());}catch(_0x1fa03e){_0x36f9d3['push'](_0x36f9d3['shift']());}}}(a206_0x542d,0xc5ff6));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a206_0xf48a2a(0x92)];export const validateFlags=helpers[a206_0xf48a2a(0x9c)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a207_0x1f13(_0x146e43,_0x30f6a5){_0x146e43=_0x146e43-0xc8;const _0x18b4f7=a207_0x18b4();let _0x1f13f5=_0x18b4f7[_0x146e43];return _0x1f13f5;}const a207_0x13e03=a207_0x1f13;(function(_0x3b9205,_0x3444b7){const _0x4fb3bd=a207_0x1f13,_0x5e4f4c=_0x3b9205();while(!![]){try{const _0x19a01d=parseInt(_0x4fb3bd(0xd3))/0x1+-parseInt(_0x4fb3bd(0xd1))/0x2+-parseInt(_0x4fb3bd(0xca))/0x3*(-parseInt(_0x4fb3bd(0xce))/0x4)+parseInt(_0x4fb3bd(0xc8))/0x5+parseInt(_0x4fb3bd(0xd0))/0x6+-parseInt(_0x4fb3bd(0xcc))/0x7+-parseInt(_0x4fb3bd(0xd4))/0x8;if(_0x19a01d===_0x3444b7)break;else _0x5e4f4c['push'](_0x5e4f4c['shift']());}catch(_0x10a53b){_0x5e4f4c['push'](_0x5e4f4c['shift']());}}}(a207_0x18b4,0x62ab4));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x296f21=>serviceGroups[a207_0x13e03(0xcf)](_0x296f21),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a207_0x13e03(0xc9)+CLI_BIN_NAME+a207_0x13e03(0xcb),'serviceUsageSuffix':'\x20[args]\x20[flags]'});export function generateCommandHelp(_0x144f9e){return generators['generateCommandHelp'](_0x144f9e);}export const generateServiceHelp=generators[a207_0x13e03(0xcd)];export const generateFullHelp=generators[a207_0x13e03(0xd2)];function a207_0x18b4(){const _0x1f2503=['\x20workspace\x20init`\x20or\x20--appcode).','5015927IdJgQN','generateServiceHelp','213468pbILhC','get','2552610hPJrrv','1425650NFkLsd','generateFullHelp','417538IncnAY','699872xtvZHr','2455040OijZCS','Requires\x20appcode\x20(set\x20via\x20`','33TDcuSg'];a207_0x18b4=function(){return _0x1f2503;};return a207_0x18b4();}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a208_0x5bae(){var _0x505bd1=['1337AqwIWE','369140PBWRcX','504qSzsvO','1734566sCbGEZ','863142LZChCm','3580330znHpoD','2685060eCxFpU','81171RBrtle'];a208_0x5bae=function(){return _0x505bd1;};return a208_0x5bae();}(function(_0x16d386,_0x4bb88a){var _0x20fa4d=a208_0x1cbe,_0x12a216=_0x16d386();while(!![]){try{var _0x160589=parseInt(_0x20fa4d(0x109))/0x1+parseInt(_0x20fa4d(0x108))/0x2+-parseInt(_0x20fa4d(0x104))/0x3+-parseInt(_0x20fa4d(0x106))/0x4+-parseInt(_0x20fa4d(0x10a))/0x5+-parseInt(_0x20fa4d(0x103))/0x6+parseInt(_0x20fa4d(0x105))/0x7*(-parseInt(_0x20fa4d(0x107))/0x8);if(_0x160589===_0x4bb88a)break;else _0x12a216['push'](_0x12a216['shift']());}catch(_0x54d0ce){_0x12a216['push'](_0x12a216['shift']());}}}(a208_0x5bae,0x6a512));export{runCommand}from'../framework/runner.js';function a208_0x1cbe(_0x2e35f1,_0x5be36e){_0x2e35f1=_0x2e35f1-0x103;var _0x5baeb9=a208_0x5bae();var _0x1cbef4=_0x5baeb9[_0x2e35f1];return _0x1cbef4;}export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3ceb2b,_0x124ba6){const _0x55e116=a209_0x43fb,_0xd701cf=_0x3ceb2b();while(!![]){try{const _0x396f61=-parseInt(_0x55e116(0xcd))/0x1+-parseInt(_0x55e116(0xd0))/0x2+-parseInt(_0x55e116(0xcb))/0x3+parseInt(_0x55e116(0xce))/0x4*(-parseInt(_0x55e116(0xd5))/0x5)+parseInt(_0x55e116(0xd4))/0x6+parseInt(_0x55e116(0xd2))/0x7+parseInt(_0x55e116(0xd1))/0x8;if(_0x396f61===_0x124ba6)break;else _0xd701cf['push'](_0xd701cf['shift']());}catch(_0x32315e){_0xd701cf['push'](_0xd701cf['shift']());}}}(a209_0x4723,0xb2a5e));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a209_0x4723(){const _0x2980f3=['980352nmyzWv','20YHZGIV','pretty','2062434FwYStd','26850488gRoVJA','2531669BKmyKI','message','1920456DosqfL','985295nChVPd','_notice','url','error','928344rEnjZx','update'];a209_0x4723=function(){return _0x2980f3;};return a209_0x4723();}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x5812cc,_0x1145e9){const _0x45c0d4=a209_0x43fb,_0x235066=_0x5812cc[_0x45c0d4(0xd6)],{_notice:_0x3b4306,..._0x2488cb}=_0x5812cc;void _0x3b4306,baseFormatOutput(_0x2488cb,_0x1145e9),_0x1145e9['format']===_0x45c0d4(0xcf)&&printPrettyNotice(_0x235066);}function a209_0x43fb(_0x1f29d4,_0x4da095){_0x1f29d4=_0x1f29d4-0xca;const _0x4723c2=a209_0x4723();let _0x43fbe0=_0x4723c2[_0x1f29d4];return _0x43fbe0;}function printPrettyNotice(_0x325c05){const _0x1ef229=a209_0x43fb;if(!_0x325c05?.[_0x1ef229(0xcc)])return;console[_0x1ef229(0xca)](_0x325c05[_0x1ef229(0xcc)][_0x1ef229(0xd3)]+'\x20('+_0x325c05['update'][_0x1ef229(0xd7)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x361ff5,_0x33af38){var _0x35f0cf=a210_0x2a80,_0x227027=_0x361ff5();while(!![]){try{var _0x2bbc43=parseInt(_0x35f0cf(0xae))/0x1+-parseInt(_0x35f0cf(0xb0))/0x2+parseInt(_0x35f0cf(0xb1))/0x3+parseInt(_0x35f0cf(0xaa))/0x4*(-parseInt(_0x35f0cf(0xab))/0x5)+parseInt(_0x35f0cf(0xaf))/0x6+-parseInt(_0x35f0cf(0xac))/0x7+parseInt(_0x35f0cf(0xa9))/0x8*(-parseInt(_0x35f0cf(0xad))/0x9);if(_0x2bbc43===_0x33af38)break;else _0x227027['push'](_0x227027['shift']());}catch(_0x3c0b46){_0x227027['push'](_0x227027['shift']());}}}(a210_0x20e8,0xb9ed0));function a210_0x2a80(_0x346f13,_0x3758d4){_0x346f13=_0x346f13-0xa9;var _0x20e86b=a210_0x20e8();var _0x2a80b9=_0x20e86b[_0x346f13];return _0x2a80b9;}export{extractList,extractPaging}from'@lovrabet/cli-framework';function a210_0x20e8(){var _0x3e4d8f=['1265649owrzEn','1511181Jheosb','1444499pTJgFo','3418494UZpJSh','778472gMixRr','2996244epGnBG','16wFgRhx','5382332WbTAuy','5kpTlVl'];a210_0x20e8=function(){return _0x3e4d8f;};return a210_0x20e8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5ce0ac,_0x2d55c0){const _0x589908=a211_0x1993,_0x249b02=_0x5ce0ac();while(!![]){try{const _0x56a3a9=parseInt(_0x589908(0x17d))/0x1+-parseInt(_0x589908(0x18d))/0x2*(-parseInt(_0x589908(0x181))/0x3)+-parseInt(_0x589908(0x180))/0x4+parseInt(_0x589908(0x18e))/0x5+-parseInt(_0x589908(0x190))/0x6+parseInt(_0x589908(0x189))/0x7+-parseInt(_0x589908(0x18c))/0x8*(parseInt(_0x589908(0x17f))/0x9);if(_0x56a3a9===_0x2d55c0)break;else _0x249b02['push'](_0x249b02['shift']());}catch(_0x15905c){_0x249b02['push'](_0x249b02['shift']());}}}(a211_0xf646,0x42b7e));function a211_0x1993(_0xe0f48e,_0x555066){_0xe0f48e=_0xe0f48e-0x17b;const _0xf646e8=a211_0xf646();let _0x19932b=_0xf646e8[_0xe0f48e];return _0x19932b;}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a211_0xf646(){const _0x58c9fc=['length','some','2104pRsLUo','586MIggBK','1596225owiQXx','code','2813160RRpWKn','name','type','flags','alias','484686TPyblI','join','15426ePTogs','598024LjqyuJ','2997GVvedM','map','No\x20api.ts\x20found\x20in\x20','validation','string','`\x20requires\x20either\x20--code\x20or\x20--alias.','Available\x20aliases:\x20','Unknown\x20alias\x20\x22','1720516TjCeXl'];a211_0xf646=function(){return _0x58c9fc;};return a211_0xf646();}export function resolveAliasToCode(_0x24c0dc,_0x70a4a1,_0x34310e,_0x31b98d){const _0x5a5aa4=a211_0x1993,_0x4b74cc=_0x24c0dc[_0x5a5aa4(0x17b)]['some'](_0x11725c=>_0x11725c['name']===_0x5a5aa4(0x18f)&&_0x11725c[_0x5a5aa4(0x192)]===_0x5a5aa4(0x185)),_0x2a90e9=_0x24c0dc['flags'][_0x5a5aa4(0x18b)](_0x5eac24=>_0x5eac24[_0x5a5aa4(0x191)]==='alias'&&_0x5eac24[_0x5a5aa4(0x192)]===_0x5a5aa4(0x185));if(!_0x4b74cc||!_0x2a90e9)return;const _0x2cd9bd=_0x70a4a1['code']?String(_0x70a4a1['code']):'',_0x534ccb=_0x70a4a1[_0x5a5aa4(0x17c)]?String(_0x70a4a1['alias']):'';if(!_0x2cd9bd&&!_0x534ccb)throw CliErrors[_0x5a5aa4(0x184)]('`'+_0x31b98d+_0x5a5aa4(0x186));if(_0x534ccb&&!_0x2cd9bd){const _0x3f6594=resolveAlias(_0x34310e,_0x534ccb);if(!_0x3f6594){const _0x44d636=listAliases(_0x34310e)[_0x5a5aa4(0x182)](_0x132205=>_0x132205[_0x5a5aa4(0x17c)]),_0x337da5=_0x44d636[_0x5a5aa4(0x18a)]?_0x5a5aa4(0x187)+_0x44d636[_0x5a5aa4(0x17e)](',\x20'):_0x5a5aa4(0x183)+_0x34310e+'.\x20Run\x20`'+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x5a5aa4(0x184)](_0x5a5aa4(0x188)+_0x534ccb+'\x22.\x20'+_0x337da5);}_0x70a4a1[_0x5a5aa4(0x18f)]=_0x3f6594;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a212_0x27f914=a212_0x403c;(function(_0x21a604,_0x994215){const _0x4e9d39=a212_0x403c,_0x22b404=_0x21a604();while(!![]){try{const _0x68707=parseInt(_0x4e9d39(0x19a))/0x1*(-parseInt(_0x4e9d39(0x16b))/0x2)+parseInt(_0x4e9d39(0x174))/0x3*(parseInt(_0x4e9d39(0x17c))/0x4)+parseInt(_0x4e9d39(0x191))/0x5+-parseInt(_0x4e9d39(0x16e))/0x6+parseInt(_0x4e9d39(0x171))/0x7+-parseInt(_0x4e9d39(0x16f))/0x8*(parseInt(_0x4e9d39(0x1a3))/0x9)+parseInt(_0x4e9d39(0x17e))/0xa*(-parseInt(_0x4e9d39(0x183))/0xb);if(_0x68707===_0x994215)break;else _0x22b404['push'](_0x22b404['shift']());}catch(_0x48d098){_0x22b404['push'](_0x22b404['shift']());}}}(a212_0x296d,0x84428));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a212_0x48255b}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';function a212_0x296d(){const _0x3b76ce=['Set\x20appcode\x20via\x20`','isNonInteractive','6nIeZJy','defaultPageSize','cookie','3426744OBEQLt','48FNeoOU','rawFlags','7005103wQplav','pageSize','currentApp','3381xzbXKJ','selectedAppName','mergedCli','validation','none','../core/api-client.js','appcode','map','500kDJBxo','_notice','1090qCaItI','defaultVerbose','pretty','name','High-risk\x20operation\x20`','10571DGOlNv','trim','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','appCode','apiDir','catch','has','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','required','string','filter','schema','LOVRABET_APPCODE','cancelled','2932470BNaVNG','explicitAppName','resolve','⚠\x20\x20High-risk\x20operation:\x20','verbose','execute','service','command','update','57587QBoBwk','resolveAppCode','authRequired','hasFormat','doctor','riskLevel','Current\x20resolved\x20appcode\x20is\x20\x22','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','format','506592rGVusu','value','configMissing','apps'];a212_0x296d=function(){return _0x3b76ce;};return a212_0x296d();}import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x59c410){const _0x5d7505=a212_0x403c;return typeof _0x59c410===_0x5d7505(0x18c)&&_0x59c410[_0x5d7505(0x184)]()?_0x59c410[_0x5d7505(0x184)]():undefined;}function resolveEnvAppCode(){const _0x636685=a212_0x403c,_0x273189=stringFlag(process.env.RABETBASE_APPCODE);if(_0x273189)return{'name':'RABETBASE_APPCODE','value':_0x273189};const _0x4566bc=stringFlag(process.env.LOVRABET_APPCODE);if(_0x4566bc)return{'name':_0x636685(0x18f),'value':_0x4566bc};return undefined;}function hasExplicitAppCode(_0xd230e6,_0x4bbc3b){const _0x143ecb=a212_0x403c;return!!(stringFlag(_0xd230e6[_0x143ecb(0x17a)])||stringFlag(_0x4bbc3b['appcode']));}function assertEnvAppCodeNotIgnored(_0xdee576,_0x376357,_0x323e9b){const _0x3a3687=a212_0x403c;if(!_0x376357||_0x323e9b||_0xdee576===_0x376357[_0x3a3687(0x1a4)])return;const _0x536b37=_0xdee576?_0x3a3687(0x1a0)+_0xdee576+'\x22.':'No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.';throw CliErrors[_0x3a3687(0x177)](_0x376357[_0x3a3687(0x181)]+'='+_0x376357[_0x3a3687(0x1a4)]+_0x3a3687(0x185)+_0x536b37+'\x20'+(_0x3a3687(0x1a1)+_0x376357[_0x3a3687(0x181)]+'\x22.'));}export function createPipelineEnv(_0x5c29fd,_0x3b913e,_0x361193=[]){const _0x49aa23=a212_0x403c;return{'rawFlags':_0x3b913e,'args':_0x361193,'resolveAppCode':()=>_0x5c29fd[_0x49aa23(0x186)],'resolveCookie':()=>_0x5c29fd[_0x49aa23(0x16d)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a212_0x48255b(_0x3b913e),'defaultFormat':_0x5c29fd[_0x49aa23(0x1a2)],'defaultPageSize':_0x5c29fd[_0x49aa23(0x172)],'defaultVerbose':_0x5c29fd[_0x49aa23(0x195)],'apiDir':_0x5c29fd[_0x49aa23(0x187)],'riskLevel':_0x5c29fd[_0x49aa23(0x19f)],'selectedAppName':_0x5c29fd[_0x49aa23(0x192)],'mergedCli':{'defaultApp':_0x5c29fd['defaultApp'],'currentApp':_0x5c29fd[_0x49aa23(0x173)],'appCode':_0x5c29fd[_0x49aa23(0x186)],'apps':_0x5c29fd[_0x49aa23(0x1a6)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a212_0x27f914(0x18d)](_0x5a59dd=>PIPELINE_FLAG_NAMES[a212_0x27f914(0x189)](_0x5a59dd[a212_0x27f914(0x181)]))[a212_0x27f914(0x17b)](({name:_0x3d52bf,type:_0xe2488d,description:_0x21ec7a})=>({'name':_0x3d52bf,'type':_0xe2488d,'description':_0x21ec7a})),'formatOutput':formatOutput,'getCommandLabel'(_0xd9896b){const _0xe2b124=a212_0x27f914;return CLI_BIN_NAME+'\x20'+_0xd9896b[_0xe2b124(0x197)]+'\x20'+_0xd9896b[_0xe2b124(0x198)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x5a83d2){return CliErrors['validation'](_0x5a83d2);}},async 'prepare'(_0x19d963,_0x2e00e4,_0x3da61a,_0xd742b7){const _0x633a7c=a212_0x27f914,_0x32739a=_0x2e00e4[_0x633a7c(0x187)]||DEFAULT_API_DIR;resolveAliasToCode(_0x19d963,_0x3da61a,_0x32739a,_0xd742b7);const _0x293daa=resolveCommandAuthMode(_0x19d963);let _0x1eb925='';if(_0x293daa!==_0x633a7c(0x178)){_0x1eb925=_0x2e00e4['resolveCookie']()||'';if(!_0x1eb925){if(_0x293daa===_0x633a7c(0x18b))throw CliErrors[_0x633a7c(0x19c)]();}else{const {setActiveCookie:_0x400a82}=await import(_0x633a7c(0x179));_0x400a82(_0x1eb925);}}const _0x4bf75b=_0x2e00e4[_0x633a7c(0x19b)]()??'';if(_0x19d963['requiresAppCode']!==![]){assertEnvAppCodeNotIgnored(_0x4bf75b,resolveEnvAppCode(),hasExplicitAppCode(_0x3da61a,_0x2e00e4[_0x633a7c(0x170)]));if(!_0x4bf75b)throw CliErrors[_0x633a7c(0x1a5)](_0x633a7c(0x1a7)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}return{'defaults':{'booleans':{'verbose':_0x2e00e4[_0x633a7c(0x17f)]},'numbers':{'pagesize':_0x2e00e4[_0x633a7c(0x16c)]}},'extras':{'appCode':_0x4bf75b,'cookie':_0x1eb925,'apiDomain':_0x2e00e4['resolveApiDomain'](),'apiDir':_0x32739a,'selectedAppName':_0x2e00e4[_0x633a7c(0x175)],'mergedCli':_0x2e00e4[_0x633a7c(0x176)]}};},async 'confirmHighRisk'({env:_0x41a8a6,commandLabel:_0x29ec91}){const _0x208f4d=a212_0x27f914;if(_0x41a8a6[_0x208f4d(0x1a8)])throw CliErrors[_0x208f4d(0x177)](_0x208f4d(0x182)+_0x29ec91+_0x208f4d(0x18a));await requireConfirmationPrompt({'lines':[_0x208f4d(0x194)+_0x29ec91,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x13ba4b=>CliErrors[_0x208f4d(0x190)](_0x13ba4b)});},async 'finalize'(){const _0x5ef280=a212_0x27f914,{clearActiveCookie:_0x31c2fe}=await import(_0x5ef280(0x179));_0x31c2fe();}};export async function runCommand(_0x5ed633,_0x53d5ab){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x5ed633)?withUpdateNotice(_0x5ed633):_0x5ed633,_0x53d5ab,runnerAdapter);}function shouldAttachUpdateNotice(_0x3be383){const _0xc07168=a212_0x27f914;if(_0x3be383[_0xc07168(0x19d)]===![])return![];return![_0xc07168(0x199),_0xc07168(0x18e),_0xc07168(0x19e)]['includes'](_0x3be383[_0xc07168(0x197)]);}function withUpdateNotice(_0x4b859d){return{..._0x4b859d,async 'execute'(_0x275173){const _0x942bc6=a212_0x403c,_0x3d13a9=shouldResolveUpdateNotice(_0x275173)?resolveLatestUpdateNotice()[_0x942bc6(0x188)](()=>null):Promise[_0x942bc6(0x193)](null),_0x2a656f=await _0x4b859d[_0x942bc6(0x196)](_0x275173);return attachUpdateNotice(_0x2a656f,await _0x3d13a9);}};}function a212_0x403c(_0x5df69a,_0x363af9){_0x5df69a=_0x5df69a-0x16b;const _0x296d07=a212_0x296d();let _0x403c5f=_0x296d07[_0x5df69a];return _0x403c5f;}function shouldResolveUpdateNotice(_0x5c0a11){const _0xfccae6=a212_0x27f914;return _0x5c0a11[_0xfccae6(0x1a2)]===_0xfccae6(0x180)&&!_0x5c0a11['nonInteractive'];}function attachUpdateNotice(_0x52af15,_0x5fe93){const _0x21d2c7=a212_0x27f914;if(!_0x5fe93||!_0x52af15||typeof _0x52af15!=='object')return _0x52af15;const _0x35e085=_0x52af15,_0x1b61cf=typeof _0x35e085[_0x21d2c7(0x17d)]==='object'&&_0x35e085[_0x21d2c7(0x17d)]!==null?_0x35e085[_0x21d2c7(0x17d)]:{};return{..._0x35e085,'_notice':{..._0x1b61cf,'update':_0x5fe93}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2874be,_0x22208b){const _0x3d758e=a213_0xee3f,_0x6a16b1=_0x2874be();while(!![]){try{const _0x7dcffa=-parseInt(_0x3d758e(0xc9))/0x1+-parseInt(_0x3d758e(0xc4))/0x2+parseInt(_0x3d758e(0xc0))/0x3*(parseInt(_0x3d758e(0xc7))/0x4)+parseInt(_0x3d758e(0xc3))/0x5*(-parseInt(_0x3d758e(0xbe))/0x6)+parseInt(_0x3d758e(0xc5))/0x7*(parseInt(_0x3d758e(0xc1))/0x8)+-parseInt(_0x3d758e(0xc8))/0x9*(-parseInt(_0x3d758e(0xbf))/0xa)+-parseInt(_0x3d758e(0xbd))/0xb*(-parseInt(_0x3d758e(0xc6))/0xc);if(_0x7dcffa===_0x22208b)break;else _0x6a16b1['push'](_0x6a16b1['shift']());}catch(_0x262c41){_0x6a16b1['push'](_0x6a16b1['shift']());}}}(a213_0x1630,0x6d029));import{buildSchemaPayload as a213_0x2c2d13}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a213_0xee3f(_0x5029ee,_0x349a5a){_0x5029ee=_0x5029ee-0xbd;const _0x163030=a213_0x1630();let _0xee3f7=_0x163030[_0x5029ee];return _0xee3f7;}import{getCliVersion}from'../utils/version.js';function a213_0x1630(){const _0x414b13=['375MTwTIp','1406156RbFNjy','7mspCpI','132DqCpYO','4vXjzVO','72SuJdmq','189546ZUrFYO','1027598eehfeS','49674KzhHBb','460780QCAPEe','1286367EyIPZj','1080344mFtMxX','../commands/registry.js'];a213_0x1630=function(){return _0x414b13;};return a213_0x1630();}export async function buildSchemaPayload(){const _0x21bf24=a213_0xee3f,{serviceRegistry:_0x5c5529,findDefinition:_0x23f5ec}=await import(_0x21bf24(0xc2));return a213_0x2c2d13({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x5c5529,'buildAllFlags':buildAllFlags,'findDefinition':_0x23f5ec});}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x27bdd3,_0x29a0f4){var _0x58f2a9=a214_0x376a,_0xcb81ba=_0x27bdd3();while(!![]){try{var _0x673f49=-parseInt(_0x58f2a9(0x179))/0x1*(-parseInt(_0x58f2a9(0x177))/0x2)+parseInt(_0x58f2a9(0x17a))/0x3*(parseInt(_0x58f2a9(0x170))/0x4)+-parseInt(_0x58f2a9(0x176))/0x5*(parseInt(_0x58f2a9(0x173))/0x6)+-parseInt(_0x58f2a9(0x178))/0x7+-parseInt(_0x58f2a9(0x174))/0x8*(-parseInt(_0x58f2a9(0x175))/0x9)+-parseInt(_0x58f2a9(0x171))/0xa+-parseInt(_0x58f2a9(0x17b))/0xb*(-parseInt(_0x58f2a9(0x172))/0xc);if(_0x673f49===_0x29a0f4)break;else _0xcb81ba['push'](_0xcb81ba['shift']());}catch(_0xea9a1){_0xcb81ba['push'](_0xcb81ba['shift']());}}}(a214_0x4431,0x1f8da));function a214_0x376a(_0x1c063e,_0xdbc715){_0x1c063e=_0x1c063e-0x170;var _0x44311b=a214_0x4431();var _0x376ac4=_0x44311b[_0x1c063e];return _0x376ac4;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';function a214_0x4431(){var _0x3a5923=['4SgOjIL','839762jOKjIV','88762siNinz','223170buOHwg','55990uxRrGs','12FRmMZP','1898550pNtSaV','564dAYnoM','444pymaGK','504pgspAC','3411zZnzgy','15185rsnoEw'];a214_0x4431=function(){return _0x3a5923;};return a214_0x4431();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a215_0x54329a=a215_0xc631;function a215_0xf0db(){const _0x357809=['187tbfdVI','25316jeqzYC','v2.3.7-beta.4','607990sLAqFs','808ZkGuEC','33SrJiaP','2206386xQehPi','1271337DKqRIc','6mApUvG','50493600Ygwuxn','2.3.7-beta.4','3281885SgIpZb','2026-07-23T12:49:02.036Z','13545yJGVTr','2PhhQnN'];a215_0xf0db=function(){return _0x357809;};return a215_0xf0db();}(function(_0x3e75ce,_0x1defea){const _0x11c48f=a215_0xc631,_0x2ef94c=_0x3e75ce();while(!![]){try{const _0x57b648=parseInt(_0x11c48f(0x89))/0x1*(-parseInt(_0x11c48f(0x81))/0x2)+-parseInt(_0x11c48f(0x87))/0x3*(-parseInt(_0x11c48f(0x83))/0x4)+-parseInt(_0x11c48f(0x8d))/0x5*(parseInt(_0x11c48f(0x8a))/0x6)+parseInt(_0x11c48f(0x80))/0x7*(-parseInt(_0x11c48f(0x86))/0x8)+-parseInt(_0x11c48f(0x88))/0x9+parseInt(_0x11c48f(0x85))/0xa*(-parseInt(_0x11c48f(0x82))/0xb)+parseInt(_0x11c48f(0x8b))/0xc;if(_0x57b648===_0x1defea)break;else _0x2ef94c['push'](_0x2ef94c['shift']());}catch(_0x5fae75){_0x2ef94c['push'](_0x2ef94c['shift']());}}}(a215_0xf0db,0xd5c0d));export const VERSION=a215_0x54329a(0x8c);export const GIT_TAG=a215_0x54329a(0x84);function a215_0xc631(_0x440826,_0x2155cd){_0x440826=_0x440826-0x80;const _0xf0dbc3=a215_0xf0db();let _0xc631b6=_0xf0dbc3[_0x440826];return _0xc631b6;}export const GIT_COMMIT='6c25c11';export const BUILD_TIME=a215_0x54329a(0x8e);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x125cf1,_0x4b1108){var _0x3f63c2=a216_0x201d,_0x2abc0f=_0x125cf1();while(!![]){try{var _0x565110=-parseInt(_0x3f63c2(0x113))/0x1*(parseInt(_0x3f63c2(0x11e))/0x2)+parseInt(_0x3f63c2(0x121))/0x3*(parseInt(_0x3f63c2(0x119))/0x4)+parseInt(_0x3f63c2(0x123))/0x5*(-parseInt(_0x3f63c2(0x11f))/0x6)+parseInt(_0x3f63c2(0x11d))/0x7+-parseInt(_0x3f63c2(0x115))/0x8*(-parseInt(_0x3f63c2(0x11c))/0x9)+-parseInt(_0x3f63c2(0x122))/0xa+parseInt(_0x3f63c2(0x118))/0xb;if(_0x565110===_0x4b1108)break;else _0x2abc0f['push'](_0x2abc0f['shift']());}catch(_0x361d18){_0x2abc0f['push'](_0x2abc0f['shift']());}}}(a216_0x5efc,0x36dbf));import a216_0x39e12c from'chalk';function a216_0x201d(_0x308f7c,_0x10d060){_0x308f7c=_0x308f7c-0x113;var _0x5efc19=a216_0x5efc();var _0x201d3c=_0x5efc19[_0x308f7c];return _0x201d3c;}function a216_0x5efc(){var _0x4771eb=['bold','\x20\x20Use\x20','2002418EZEchy','2316PQgFQt','green','\x20--help','54BYIpCs','1077265giXQcN','2xoGYcD','3114zlqENl','\x20to\x20view\x20available\x20commands.','1578zYAZBW','3049090OkWMzR','510MfcpiH','131671MVBNei','log','98312muVXnx'];a216_0x5efc=function(){return _0x4771eb;};return a216_0x5efc();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x110cef=a216_0x201d;console[_0x110cef(0x114)](),console[_0x110cef(0x114)](a216_0x39e12c[_0x110cef(0x11a)][_0x110cef(0x116)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x110cef(0x114)](),console[_0x110cef(0x114)](_0x110cef(0x117)+a216_0x39e12c['green'][_0x110cef(0x116)](CLI_BIN_NAME+_0x110cef(0x11b))+_0x110cef(0x120)),console[_0x110cef(0x114)]();}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x130e0c,_0x5a1969){const _0xe15e60=a217_0x1fa2,_0x12cf6c=_0x130e0c();while(!![]){try{const _0x391f7e=-parseInt(_0xe15e60(0x9c))/0x1*(parseInt(_0xe15e60(0xa2))/0x2)+parseInt(_0xe15e60(0xae))/0x3+parseInt(_0xe15e60(0x9e))/0x4*(parseInt(_0xe15e60(0x98))/0x5)+parseInt(_0xe15e60(0xa5))/0x6*(parseInt(_0xe15e60(0xa3))/0x7)+parseInt(_0xe15e60(0x9d))/0x8+parseInt(_0xe15e60(0x8e))/0x9*(-parseInt(_0xe15e60(0xab))/0xa)+-parseInt(_0xe15e60(0x9f))/0xb*(-parseInt(_0xe15e60(0xa8))/0xc);if(_0x391f7e===_0x5a1969)break;else _0x12cf6c['push'](_0x12cf6c['shift']());}catch(_0xec3c8f){_0x12cf6c['push'](_0x12cf6c['shift']());}}}(a217_0x427a,0x34554));import{logger}from'../utils/logger.js';function a217_0x1fa2(_0xe206a9,_0x373f25){_0xe206a9=_0xe206a9-0x8d;const _0x427a19=a217_0x427a();let _0x1fa268=_0x427a19[_0xe206a9];return _0x1fa268;}import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x2f5267){const _0x201090=a217_0x1fa2,_0x2f61ad=[];for(const [_0x333f1a,_0x13ebb7]of Object[_0x201090(0x99)](_0x2f5267)){if(_0x13ebb7===!![]){const _0xf0b7b1=_0x333f1a['replace'](/([A-Z])/g,_0x201090(0xa7))[_0x201090(0xa4)]();_0x2f61ad[_0x201090(0x91)](_0xf0b7b1);}}return _0x2f61ad;}export function parseDynamicFlags(){const _0x32f08d=a217_0x1fa2,_0x30c4c1=[];for(let _0x5d8da0=0x3;_0x5d8da0<process['argv']['length'];_0x5d8da0++){const _0xe28d47=process[_0x32f08d(0x90)][_0x5d8da0];if(_0xe28d47&&_0xe28d47[_0x32f08d(0x9a)]('--')){const _0x20f515=_0xe28d47['slice'](0x2);_0x20f515&&!_0x20f515['includes']('=')&&_0x30c4c1[_0x32f08d(0x91)](_0x20f515);}}return _0x30c4c1;}export function getAllProvidedFlags(_0xf12e41){const _0x1bba8f=camelCaseFlagsToKebab(_0xf12e41),_0x15e0a7=parseDynamicFlags(),_0x6337e9=new Set([..._0x1bba8f,..._0x15e0a7]);return Array['from'](_0x6337e9);}function a217_0x427a(){const _0x360b5a=['\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','has','\x0aAvailable\x20commands:','error','exit','--help','50EWFFTz','entries','startsWith','enable-bff-save','1GclfUF','2527832uxhSVt','63112PwiAOD','11bDNlYq','setLogPath','skill','497636pMHEqq','7ogngwL','toLowerCase','799674hBANKa','log','-$1','1310484kuOCCG','dangerously-bff-save','cwd','810XebMcH','(empty)','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a','249237McdLKo','add','37350AAtbhk','Error:\x20Unsupported\x20command:\x20','argv','push'];a217_0x427a=function(){return _0x360b5a;};return a217_0x427a();}export function normalizeLegacyBffSaveFlags(_0xa0aea6){const _0x5cfbde=a217_0x1fa2,_0x24c0c4=new Set(_0xa0aea6);return _0x24c0c4[_0x5cfbde(0x93)](_0x5cfbde(0xa9))&&_0x24c0c4[_0x5cfbde(0x8d)](_0x5cfbde(0x9b)),Array['from'](_0x24c0c4);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x5eb586,_0x5989b2,_0x2ab811){const _0x2a41e=a217_0x1fa2;logger[_0x2a41e(0xa0)](process[_0x2a41e(0xaa)]());if(_0x2ab811?.['help']||_0x5eb586===_0x2a41e(0x97)){showHelp();return;}console[_0x2a41e(0x95)](_0x2a41e(0x8f)+(_0x5eb586||_0x2a41e(0xac))),console[_0x2a41e(0xa6)](_0x2a41e(0x94)),console[_0x2a41e(0xa6)]('\x20\x20'+CLI_BIN_NAME+'\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill'),console[_0x2a41e(0xa6)](''),console[_0x2a41e(0xa6)]('Equivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0x2a41e(0x95)](_0x2a41e(0xa1),'不支持的命令:\x20'+_0x5eb586),process[_0x2a41e(0x96)](0x1);}function showHelp(){const _0x3c5e92=a217_0x1fa2;console[_0x3c5e92(0xa6)](_0x3c5e92(0x92)+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x3c5e92(0xad));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a218_0x59af6d=a218_0x2d20;(function(_0x5da0cf,_0xf1f270){const _0x404d69=a218_0x2d20,_0x2ff280=_0x5da0cf();while(!![]){try{const _0x1ca54f=-parseInt(_0x404d69(0xdc))/0x1+parseInt(_0x404d69(0xe5))/0x2+-parseInt(_0x404d69(0xe1))/0x3*(-parseInt(_0x404d69(0xdf))/0x4)+-parseInt(_0x404d69(0xf0))/0x5*(-parseInt(_0x404d69(0xe2))/0x6)+parseInt(_0x404d69(0xed))/0x7+-parseInt(_0x404d69(0xe9))/0x8*(parseInt(_0x404d69(0xec))/0x9)+-parseInt(_0x404d69(0xee))/0xa*(parseInt(_0x404d69(0xde))/0xb);if(_0x1ca54f===_0xf1f270)break;else _0x2ff280['push'](_0x2ff280['shift']());}catch(_0x96739b){_0x2ff280['push'](_0x2ff280['shift']());}}}(a218_0x3eed,0x7c3e5));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';function a218_0x2d20(_0x15cd2a,_0x592510){_0x15cd2a=_0x15cd2a-0xd4;const _0x3eed83=a218_0x3eed();let _0x2d2003=_0x3eed83[_0x15cd2a];return _0x2d2003;}export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a218_0x59af6d(0xf2);export const NPX_SKILLS_SUBCOMMAND_ADD=a218_0x59af6d(0xe7);export const NPX_SKILLS_FLAG_SKILL=a218_0x59af6d(0xf3);export const RABETBASE_SKILL_SOURCE=a218_0x59af6d(0xe0);function a218_0x3eed(){const _0x246610=['remove','1382373zpvlnd','1935381eiWfqq','19430KFkAzU','stdout','425eFqRmq','npx','skills','--skill','status','lovrabet/lovrabet-skill','pipe','trim','stdio','inherit','toString','log','skill','285313tyoZQK','push','2739HinPQP','156HsutHj','lovrabet/rabetbase','16971sZejrt','47928RhWEus','Lovrabet','join','1739840FKuWaQ','unknown','add','stderr','40xEXDGA','exit\x20'];a218_0x3eed=function(){return _0x246610;};return a218_0x3eed();}export const LEGACY_RABETBASE_SKILL_SOURCE=a218_0x59af6d(0xd4);export const DEFAULT_RABETBASE_SKILL_NAME=a218_0x59af6d(0xe3);export function buildNpxSkillsAddArgv(_0x2183d4){const _0x3ea777=a218_0x59af6d,_0x4bd874=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x2183d4&&_0x4bd874[_0x3ea777(0xdd)](NPX_SKILLS_FLAG_SKILL,_0x2183d4),_0x4bd874;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a218_0x59af6d(0xf1),...buildNpxSkillsAddArgv()][a218_0x59af6d(0xe4)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a218_0x59af6d(0xe4)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x744b2d,_0x515209){const _0x11c9a6=a218_0x59af6d;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1e32cd=_0x515209?.[_0x11c9a6(0xd7)]??_0x11c9a6(0xd8),_0x44adca=resolveNpmBin('npx'),_0x4520f4=buildNpxSkillsAddArgv(_0x515209?.[_0x11c9a6(0xdb)]),_0x29c4d8=[_0x11c9a6(0xf1),..._0x4520f4]['join']('\x20');console['log']('*\x20'+_0x29c4d8);const _0x2ee782=spawnSync(_0x44adca,_0x4520f4,{'cwd':_0x744b2d,'stdio':_0x1e32cd,'env':process.env,'shell':![]}),_0x30b8ab=_0x2ee782[_0x11c9a6(0xf4)];if(_0x30b8ab===0x0)return{'ok':!![],'status':0x0};let _0x2d2394=_0x11c9a6(0xea)+(_0x30b8ab??_0x11c9a6(0xe6));if(_0x1e32cd===_0x11c9a6(0xd5)){const _0x5cbdb1=_0x2ee782[_0x11c9a6(0xe8)]?_0x2ee782['stderr']['toString']()['trim']():'',_0x28569a=_0x2ee782[_0x11c9a6(0xef)]?_0x2ee782['stdout'][_0x11c9a6(0xd9)]()[_0x11c9a6(0xd6)]():'';if(_0x5cbdb1)_0x2d2394=_0x5cbdb1;else{if(_0x28569a)_0x2d2394=_0x28569a;}}return{'ok':![],'status':_0x30b8ab??null,'error':_0x2d2394};}export function runNpxSkillsRemove(_0x50bced,_0x43dacc,_0x1e1401=LEGACY_RABETBASE_SKILL_SOURCE){const _0x9d80c6=a218_0x59af6d;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x9c1bc3=_0x43dacc?.['stdio']??_0x9d80c6(0xd8),_0x57f630=resolveNpmBin(_0x9d80c6(0xf1)),_0x5017a5=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x9d80c6(0xeb),_0x1e1401,NPX_SKILLS_FLAG_SKILL,_0x43dacc?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0x43dacc?.['yes']?['-y']:[]],_0x31d431=[_0x57f630,..._0x5017a5][_0x9d80c6(0xe4)]('\x20');console['log']('*\x20'+_0x31d431);const _0x561ee7=spawnSync(_0x57f630,_0x5017a5,{'cwd':_0x50bced,'stdio':_0x9c1bc3,'env':process.env,'shell':![]}),_0x37108c=_0x561ee7['status'];if(_0x37108c===0x0)return{'ok':!![],'status':0x0};let _0x29c615=_0x9d80c6(0xea)+(_0x37108c??_0x9d80c6(0xe6));if(_0x9c1bc3==='pipe'){const _0x8dddd=_0x561ee7[_0x9d80c6(0xe8)]?_0x561ee7[_0x9d80c6(0xe8)]['toString']()['trim']():'',_0x5268b7=_0x561ee7[_0x9d80c6(0xef)]?_0x561ee7[_0x9d80c6(0xef)][_0x9d80c6(0xd9)]()[_0x9d80c6(0xd6)]():'';if(_0x8dddd)_0x29c615=_0x8dddd;else{if(_0x5268b7)_0x29c615=_0x5268b7;}}return{'ok':![],'status':_0x37108c??null,'error':_0x29c615};}export function runNpxSkillsAddGlobal(_0x26ec4a,_0x5a3049,_0x4ae32a){const _0x3d9338=a218_0x59af6d;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x134e1a=_0x4ae32a?.[_0x3d9338(0xd7)]??_0x3d9338(0xd8),_0x11ef48=resolveNpmBin(_0x3d9338(0xf1)),_0xd66f6f=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5a3049,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x3dbb18=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5a3049,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x3d9338(0xe4)]('\x20');console[_0x3d9338(0xda)]('*\x20'+_0x3dbb18);const _0x3105a3=spawnSync(_0x11ef48,_0xd66f6f,{'cwd':_0x26ec4a,'stdio':_0x134e1a,'env':process.env,'shell':![]}),_0x18e0f6=_0x3105a3['status'];if(_0x18e0f6===0x0)return{'ok':!![],'status':0x0};let _0x319aa1=_0x3d9338(0xea)+(_0x18e0f6??_0x3d9338(0xe6));if(_0x134e1a==='pipe'){const _0xda9ea5=_0x3105a3[_0x3d9338(0xe8)]?_0x3105a3[_0x3d9338(0xe8)][_0x3d9338(0xd9)]()[_0x3d9338(0xd6)]():'',_0x5d7c51=_0x3105a3['stdout']?_0x3105a3[_0x3d9338(0xef)][_0x3d9338(0xd9)]()[_0x3d9338(0xd6)]():'';if(_0xda9ea5)_0x319aa1=_0xda9ea5;else{if(_0x5d7c51)_0x319aa1=_0x5d7c51;}}return{'ok':![],'status':_0x18e0f6??null,'error':_0x319aa1};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x279656,_0x5c10ac){const _0x1d18c6=a219_0x24c2,_0x15fa31=_0x279656();while(!![]){try{const _0xcddd9f=parseInt(_0x1d18c6(0x1e0))/0x1+-parseInt(_0x1d18c6(0x1e1))/0x2+-parseInt(_0x1d18c6(0x1e3))/0x3*(parseInt(_0x1d18c6(0x1e2))/0x4)+-parseInt(_0x1d18c6(0x1df))/0x5*(parseInt(_0x1d18c6(0x1da))/0x6)+-parseInt(_0x1d18c6(0x1d4))/0x7+-parseInt(_0x1d18c6(0x1dc))/0x8+parseInt(_0x1d18c6(0x1d9))/0x9;if(_0xcddd9f===_0x5c10ac)break;else _0x15fa31['push'](_0x15fa31['shift']());}catch(_0x3692f5){_0x15fa31['push'](_0x15fa31['shift']());}}}(a219_0x4c2b,0xc35ff));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a219_0x4c2b(){const _0x77efec=['error','31397940HLRduV','1290OiKJrd','some','11126832mskSnX','[REDACTED]','message','1265QTNrnt','1097128KunMDd','1112526fMRdlK','4sDAppS','3851331CfpeCd','stringify','service','entries','rabetbase.command','3501708jnaSll','test','flags','durationMs'];a219_0x4c2b=function(){return _0x77efec;};return a219_0x4c2b();}function a219_0x24c2(_0x772f89,_0x241f7d){_0x772f89=_0x772f89-0x1d3;const _0x4c2bc1=a219_0x4c2b();let _0x24c224=_0x4c2bc1[_0x772f89];return _0x24c224;}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x5b5009){const _0x5c3bf4=a219_0x24c2;return SENSITIVE_PATTERNS[_0x5c3bf4(0x1db)](_0x553f77=>_0x553f77[_0x5c3bf4(0x1d5)](_0x5b5009));}function sanitizeFlags(_0x548cbb){const _0x2b6ef9=a219_0x24c2,_0x11efb4={};for(const [_0x424ea0,_0x59c1a5]of Object[_0x2b6ef9(0x1e6)](_0x548cbb)){isSensitiveKey(_0x424ea0)?_0x11efb4[_0x424ea0]=_0x59c1a5!=null&&_0x59c1a5!==''?_0x2b6ef9(0x1dd):_0x59c1a5:_0x11efb4[_0x424ea0]=_0x59c1a5;}return _0x11efb4;}export async function reportCommandTrace(_0xb24a0c){const _0x3f52a1=a219_0x24c2;try{const _0x1e2d23=sanitizeFlags(_0xb24a0c[_0x3f52a1(0x1d6)]);await sendCliTraceLog({'spanName':_0x3f52a1(0x1d3),'logData':{'command.cli_version':getCliVersion(),'command.service':_0xb24a0c[_0x3f52a1(0x1e5)],'command.name':_0xb24a0c['command'],'command.flags':JSON[_0x3f52a1(0x1e4)](_0x1e2d23),..._0xb24a0c['durationMs']!=null?{'command.duration_ms':_0xb24a0c[_0x3f52a1(0x1d7)]}:{},..._0xb24a0c['error']?{'command.error':_0xb24a0c[_0x3f52a1(0x1d8)]instanceof Error?_0xb24a0c[_0x3f52a1(0x1d8)][_0x3f52a1(0x1de)]:String(_0xb24a0c[_0x3f52a1(0x1d8)])}:{}}});}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5d93ee,_0x372492){var _0x4c0b32=a220_0x4ade,_0x348ccc=_0x5d93ee();while(!![]){try{var _0x482569=parseInt(_0x4c0b32(0x120))/0x1+parseInt(_0x4c0b32(0x123))/0x2*(-parseInt(_0x4c0b32(0x121))/0x3)+parseInt(_0x4c0b32(0x11f))/0x4+parseInt(_0x4c0b32(0x128))/0x5*(-parseInt(_0x4c0b32(0x122))/0x6)+parseInt(_0x4c0b32(0x11e))/0x7*(parseInt(_0x4c0b32(0x11d))/0x8)+parseInt(_0x4c0b32(0x127))/0x9+-parseInt(_0x4c0b32(0x126))/0xa*(parseInt(_0x4c0b32(0x124))/0xb);if(_0x482569===_0x372492)break;else _0x348ccc['push'](_0x348ccc['shift']());}catch(_0x294920){_0x348ccc['push'](_0x348ccc['shift']());}}}(a220_0x47b5,0x1faf1));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a220_0x47b5(){var _0x4e2905=['225235cxanmD','24nJZtob','12VsAzCk','10712uYRFkM','11OBaLKQ','service','1964030Wmfoma','935415DyhnCU','495445UetUMI','Failed\x20to\x20report\x20CLI\x20help\x20trace:','cli.help','5944dQRtHj','1155SpJAan','461764RrhrnW'];a220_0x47b5=function(){return _0x4e2905;};return a220_0x47b5();}function a220_0x4ade(_0x49c28e,_0x2634d3){_0x49c28e=_0x49c28e-0x11d;var _0x47b5d1=a220_0x47b5();var _0x4adef0=_0x47b5d1[_0x49c28e];return _0x4adef0;}export async function reportCliHelpTrace(_0x24c888,_0x5942e4){var _0x2e1d87=a220_0x4ade;try{await sendCliTraceLog({'spanName':_0x2e1d87(0x12a),'logData':{'rabetbase.help.kind':_0x24c888,..._0x5942e4?.[_0x2e1d87(0x125)]&&{'rabetbase.help.service':_0x5942e4['service']}}});}catch(_0x3b8007){console['error'](_0x2e1d87(0x129),_0x3b8007);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x396c46,_0x4b57dd){const _0xc52dcc=a221_0xc7b5,_0x107563=_0x396c46();while(!![]){try{const _0xa1dff4=-parseInt(_0xc52dcc(0xd6))/0x1*(-parseInt(_0xc52dcc(0xdf))/0x2)+-parseInt(_0xc52dcc(0xe3))/0x3*(-parseInt(_0xc52dcc(0xdb))/0x4)+-parseInt(_0xc52dcc(0xde))/0x5+parseInt(_0xc52dcc(0xe2))/0x6*(-parseInt(_0xc52dcc(0xda))/0x7)+-parseInt(_0xc52dcc(0xdd))/0x8+parseInt(_0xc52dcc(0xd5))/0x9*(-parseInt(_0xc52dcc(0xd7))/0xa)+parseInt(_0xc52dcc(0xd9))/0xb*(parseInt(_0xc52dcc(0xd4))/0xc);if(_0xa1dff4===_0x4b57dd)break;else _0x107563['push'](_0x107563['shift']());}catch(_0x1a3568){_0x107563['push'](_0x107563['shift']());}}}(a221_0x1ced,0x5b6e4));function a221_0xc7b5(_0x15dcc5,_0xd9986f){_0x15dcc5=_0x15dcc5-0xd3;const _0x1ced74=a221_0x1ced();let _0xc7b575=_0x1ced74[_0x15dcc5];return _0xc7b575;}import{VERSION,GIT_COMMIT}from'../generated/build-info.js';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';function a221_0x1ced(){const _0x10c3f5=['user','4368048lJWTrZ','1563555QIwWoo','4ZCcnTT','production','daily','6xaMYFf','138oMJlyX','unknown','660Qmsszf','36729eoForu','240027JaXJEx','460sZrbYp','tenant_code','147598YOJCVW','235753GirZCq','20572BxEegB'];a221_0x1ced=function(){return _0x10c3f5;};return a221_0x1ced();}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x38a6f3=a221_0xc7b5,_0x1326e5=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x33b9c9=_0x1326e5?.[_0x38a6f3(0xdc)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x38a6f3(0xd3)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x38a6f3(0xe1):_0x38a6f3(0xe0))}),setUserContext({'id':_0x33b9c9?.['id'],'username':_0x33b9c9?.['username'],'nickname':_0x33b9c9?.['nickname'],'email':_0x33b9c9?.['email'],'tenantCode':_0x33b9c9?.['tenant'][_0x38a6f3(0xd8)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x1326e5;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2f8e2c,_0x15ebb5){const _0x541766=a222_0x2226,_0x69d2c6=_0x2f8e2c();while(!![]){try{const _0x5ad826=parseInt(_0x541766(0x11c))/0x1*(-parseInt(_0x541766(0x122))/0x2)+-parseInt(_0x541766(0x123))/0x3*(parseInt(_0x541766(0x11b))/0x4)+-parseInt(_0x541766(0x120))/0x5*(parseInt(_0x541766(0x11e))/0x6)+parseInt(_0x541766(0x117))/0x7+parseInt(_0x541766(0x124))/0x8+parseInt(_0x541766(0x121))/0x9+-parseInt(_0x541766(0x11f))/0xa;if(_0x5ad826===_0x15ebb5)break;else _0x69d2c6['push'](_0x69d2c6['shift']());}catch(_0x302808){_0x69d2c6['push'](_0x69d2c6['shift']());}}}(a222_0xc70c,0x5a000));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a222_0xc70c(){const _0x4a8c42=['2493428PixLpv','beforeExit','SIGINT','SIGTERM','20peFsxL','1tiJqeX','exit','18AhAiHL','60700NeimYt','523005SOwkLY','6349923gzAtMI','507554XxFlxM','328197QDKGBD','3420272LWvXQN','once'];a222_0xc70c=function(){return _0x4a8c42;};return a222_0xc70c();}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x439a22=a222_0x2226;process[_0x439a22(0x116)](_0x439a22(0x118),()=>{void flushOtelNodeIfUsed();});const _0x389a91=()=>{const _0x50ff68=_0x439a22;void flushOtelNodeIfUsed()['then'](()=>process[_0x50ff68(0x11d)](0x0));};process[_0x439a22(0x116)](_0x439a22(0x119),_0x389a91),process[_0x439a22(0x116)](_0x439a22(0x11a),_0x389a91);}function a222_0x2226(_0x5815f9,_0x5e873d){_0x5815f9=_0x5815f9-0x116;const _0xc70c49=a222_0xc70c();let _0x2226ad=_0xc70c49[_0x5815f9];return _0x2226ad;}export async function exitWithOtelShutdown(_0x365799){const _0x5ece21=a222_0x2226;await flushOtelNodeIfUsed(),process[_0x5ece21(0x11d)](_0x365799);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a223_0x35ec9b=a223_0x3496;(function(_0x590cb2,_0x1c1ec1){const _0x285b95=a223_0x3496,_0x57fd67=_0x590cb2();while(!![]){try{const _0x253d25=parseInt(_0x285b95(0x10b))/0x1*(parseInt(_0x285b95(0x10a))/0x2)+parseInt(_0x285b95(0x107))/0x3+-parseInt(_0x285b95(0x108))/0x4+parseInt(_0x285b95(0x109))/0x5+parseInt(_0x285b95(0x101))/0x6*(-parseInt(_0x285b95(0x104))/0x7)+parseInt(_0x285b95(0x103))/0x8+parseInt(_0x285b95(0x105))/0x9*(-parseInt(_0x285b95(0x10d))/0xa);if(_0x253d25===_0x1c1ec1)break;else _0x57fd67['push'](_0x57fd67['shift']());}catch(_0x447146){_0x57fd67['push'](_0x57fd67['shift']());}}}(a223_0x321a,0x33716));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a223_0x35ec9b(0x100);function a223_0x321a(){const _0x592579=['999668RVAsNT','1350740iwCmVm','112YFNkXk','2906lSbojF','traceparent','2740ECXEFa','version','rabetbase-cli','1042746UrFVlO','spanName','184872oovmvr','7VCvCct','5067sXmprK','traceName','998061kirINO'];a223_0x321a=function(){return _0x592579;};return a223_0x321a();}function a223_0x3496(_0x2dd466,_0x41539f){_0x2dd466=_0x2dd466-0x100;const _0x321af0=a223_0x321a();let _0x3496eb=_0x321af0[_0x2dd466];return _0x3496eb;}export async function sendCliTraceLog(_0x31a4c9){const _0x7e861e=a223_0x35ec9b;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x31a4c9[_0x7e861e(0x106)]??DEFAULT_TRACE_NAME,'version':_0x31a4c9[_0x7e861e(0x10e)]??getCliVersion(),'spanName':_0x31a4c9[_0x7e861e(0x102)],'eventType':'manual','logData':_0x31a4c9['logData'],..._0x31a4c9['traceparent']&&{'traceparent':_0x31a4c9[_0x7e861e(0x10c)]}});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a224_0x5c69d5=a224_0x88c2;function a224_0x88c2(_0x26da5f,_0x17c376){_0x26da5f=_0x26da5f-0x176;const _0x7eda7a=a224_0x7eda();let _0x88c23=_0x7eda7a[_0x26da5f];return _0x88c23;}(function(_0x21bf7f,_0x4f81b4){const _0x4f2d3b=a224_0x88c2,_0x4ce9da=_0x21bf7f();while(!![]){try{const _0x391aad=-parseInt(_0x4f2d3b(0x17f))/0x1+parseInt(_0x4f2d3b(0x182))/0x2+parseInt(_0x4f2d3b(0x185))/0x3+parseInt(_0x4f2d3b(0x180))/0x4*(parseInt(_0x4f2d3b(0x178))/0x5)+parseInt(_0x4f2d3b(0x181))/0x6+-parseInt(_0x4f2d3b(0x186))/0x7+parseInt(_0x4f2d3b(0x17b))/0x8*(-parseInt(_0x4f2d3b(0x17a))/0x9);if(_0x391aad===_0x4f81b4)break;else _0x4ce9da['push'](_0x4ce9da['shift']());}catch(_0x49f47e){_0x4ce9da['push'](_0x4ce9da['shift']());}}}(a224_0x7eda,0x35ed3));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a224_0x5c69d5(0x176);export const PLATFORM_ISSUE_SPAN_NAME=a224_0x5c69d5(0x183);function a224_0x7eda(){const _0x4ed461=['388VwWMzh','2183652jGneql','798748WBLQlv','issue.log.collect','title','1112262rKnVqF','231371xutIYC','platform-issue-log-collect','sanitize','22485SusJUC','truncated','252jdxDlC','289776LmZHyx','redactionCount','description','originalBytes','302127RvBsBx'];a224_0x7eda=function(){return _0x4ed461;};return a224_0x7eda();}export async function sendPlatformIssueCollectLog(_0x52cffe){const _0x22358e=a224_0x5c69d5;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x52cffe[_0x22358e(0x184)],'issue.description':_0x52cffe[_0x22358e(0x17d)],..._0x52cffe[_0x22358e(0x177)]?{'issue.description_original_bytes':_0x52cffe['sanitize'][_0x22358e(0x17e)],'issue.description_truncated':_0x52cffe[_0x22358e(0x177)][_0x22358e(0x179)],'issue.description_redactions':_0x52cffe[_0x22358e(0x177)][_0x22358e(0x17c)],'issue.description_redaction_kinds':_0x52cffe[_0x22358e(0x177)]['redactionKinds']['join'](',')}:{}}});}
|
package/lib/utils/ai_config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a226_0x3bacc7=a226_0x12af;(function(_0x286ac7,_0x5716d5){const _0x385a48=a226_0x12af,_0x535550=_0x286ac7();while(!![]){try{const _0x238f13=parseInt(_0x385a48(0x124))/0x1*(parseInt(_0x385a48(0x123))/0x2)+-parseInt(_0x385a48(0x10d))/0x3+parseInt(_0x385a48(0xf2))/0x4+-parseInt(_0x385a48(0xf8))/0x5+parseInt(_0x385a48(0x121))/0x6+-parseInt(_0x385a48(0x11c))/0x7+-parseInt(_0x385a48(0xfc))/0x8*(-parseInt(_0x385a48(0xf6))/0x9);if(_0x238f13===_0x5716d5)break;else _0x535550['push'](_0x535550['shift']());}catch(_0x31b657){_0x535550['push'](_0x535550['shift']());}}}(a226_0x48b8,0xb9bbd));export const CORE_IDE_CONFIGS={'cursor':{'name':a226_0x3bacc7(0xff),'description':'Cursor\x20IDE','folders':[a226_0x3bacc7(0x105),a226_0x3bacc7(0x103)],'files':[{'type':a226_0x3bacc7(0xfe),'path':a226_0x3bacc7(0x11b),'template':a226_0x3bacc7(0xef)}]},'windsurf':{'name':a226_0x3bacc7(0x122),'description':a226_0x3bacc7(0x116),'folders':[a226_0x3bacc7(0x120)],'files':[{'type':a226_0x3bacc7(0xfe),'path':a226_0x3bacc7(0xfb),'template':a226_0x3bacc7(0xef)}]},'claude':{'name':a226_0x3bacc7(0x119),'description':'Claude\x20Code','folders':[a226_0x3bacc7(0x106)],'files':[{'type':a226_0x3bacc7(0xfe),'path':'.claude/skills/lovrabet/SKILL.md','template':a226_0x3bacc7(0xef)}]},'cline':{'name':a226_0x3bacc7(0x11f),'description':a226_0x3bacc7(0x108),'folders':[a226_0x3bacc7(0x104)],'files':[{'type':a226_0x3bacc7(0xfe),'path':a226_0x3bacc7(0x115),'template':a226_0x3bacc7(0xef)}]},'codex':{'name':a226_0x3bacc7(0xf0),'description':a226_0x3bacc7(0x10b),'folders':[a226_0x3bacc7(0x113)],'files':[{'type':'file','path':'.codex/skills/lovrabet/SKILL.md','template':a226_0x3bacc7(0xef)}]},'opencode':{'name':a226_0x3bacc7(0xf5),'description':a226_0x3bacc7(0xfa),'folders':[a226_0x3bacc7(0x126)],'files':[{'type':a226_0x3bacc7(0xfe),'path':a226_0x3bacc7(0x127),'template':'SKILL.md.tpl'}]},'qoder':{'name':a226_0x3bacc7(0x114),'description':'Qoder\x20IDE','folders':[a226_0x3bacc7(0x125)],'files':[{'type':a226_0x3bacc7(0xfe),'path':'.qoder/rules/rabetbase.md','template':a226_0x3bacc7(0xef)},{'type':a226_0x3bacc7(0xfe),'path':a226_0x3bacc7(0x101),'template':a226_0x3bacc7(0xef)}]},'codebuddy':{'name':'CodeBuddy','description':a226_0x3bacc7(0xf7),'folders':[a226_0x3bacc7(0xf1)],'files':[{'type':'file','path':'.codebuddy/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'trae':{'name':a226_0x3bacc7(0xfd),'description':a226_0x3bacc7(0x117),'folders':[a226_0x3bacc7(0x102)],'files':[{'type':'file','path':a226_0x3bacc7(0x118),'template':a226_0x3bacc7(0xef)}]}};function a226_0x48b8(){const _0xc65db3=['Trae\x20IDE','.trae/skills/lovrabet/SKILL.md','Claude\x20Code','opencode','.cursor/skills/rabetbase.md','1033347JBvVBY','codex','windsurf','Cline','.windsurf','2505462OkQYRE','Windsurf','89518YlNdHT','23ImNdDx','.qoder','.opencode','.opencode/skills/lovrabet/SKILL.md','SKILL.md.tpl','Codex','.codebuddy','4334416EhDiSD','.agent/skills/lovrabet/SKILL.md','.agent','OpenCode','9Ubikrl','CodeBuddy\x20IDE','3763670gJKEDj','Antigravity','OpenCode\x20IDE','.windsurf/workflows/rabetbase.md','591512boyCbi','Trae','file','Cursor','cline','.qoder/skills/lovrabet/SKILL.md','.trae','.cursor','.cline','.cursorrules','.claude','通用模板\x20-\x20兜底方案','Cline\x20IDE','agent','cursor','Codex\x20IDE','codebuddy','2830371PHPdxy','qoder','其他\x20(通用模板)','Antigravity\x20IDE','trae','claude','.codex','Qoder','.cline/skills/lovrabet/SKILL.md','Windsurf\x20IDE'];a226_0x48b8=function(){return _0xc65db3;};return a226_0x48b8();}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a226_0x3bacc7(0x10f),'description':a226_0x3bacc7(0x107),'folders':[a226_0x3bacc7(0xf4)],'files':[{'type':'file','path':'.agent/skills/lovrabet/SKILL.md','template':a226_0x3bacc7(0xef)}]},'antigravity':{'name':a226_0x3bacc7(0xf9),'description':a226_0x3bacc7(0x110),'folders':[a226_0x3bacc7(0xf4)],'files':[{'type':'file','path':a226_0x3bacc7(0xf3),'template':a226_0x3bacc7(0xef)}]}};export const CORE_IDE_LIST=[a226_0x3bacc7(0x112),a226_0x3bacc7(0x100),a226_0x3bacc7(0x10c),a226_0x3bacc7(0x11d),a226_0x3bacc7(0x10a),a226_0x3bacc7(0x11a),a226_0x3bacc7(0x10e),a226_0x3bacc7(0x111),a226_0x3bacc7(0x11e)];function a226_0x12af(_0x78b137,_0x5335e5){_0x78b137=_0x78b137-0xef;const _0x48b8db=a226_0x48b8();let _0x12af58=_0x48b8db[_0x78b137];return _0x12af58;}export const IDE_LIST=['antigravity',a226_0x3bacc7(0x112),'cline',a226_0x3bacc7(0x10c),a226_0x3bacc7(0x11d),a226_0x3bacc7(0x10a),'opencode',a226_0x3bacc7(0x10e),a226_0x3bacc7(0x111),a226_0x3bacc7(0x11e),a226_0x3bacc7(0x109)];export const ALL_CORE_IDES=[a226_0x3bacc7(0x10a),a226_0x3bacc7(0x11e),a226_0x3bacc7(0x112),'cline','codex',a226_0x3bacc7(0x11a),a226_0x3bacc7(0x10e),a226_0x3bacc7(0x10c),a226_0x3bacc7(0x111)];
|