@profoundlogic/coderflow-server 0.2.9 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/dist/base-image/agent-wrapper.sh +7 -8
  2. package/dist/coder-server.js +1 -1
  3. package/dist/config/skill-catalog.json +9 -0
  4. package/dist/config.js +1 -1
  5. package/dist/lib/agent-keepalive.js +1 -1
  6. package/dist/lib/api-keys.js +1 -1
  7. package/dist/lib/apiKeys.js +1 -1
  8. package/dist/lib/app-server-ports.js +1 -1
  9. package/dist/lib/auto-judge.js +1 -1
  10. package/dist/lib/basic-auth.js +1 -1
  11. package/dist/lib/build-history.js +1 -1
  12. package/dist/lib/build-output-service.js +1 -1
  13. package/dist/lib/build-scheduler.js +1 -1
  14. package/dist/lib/build-service.js +1 -1
  15. package/dist/lib/ca-certificates.js +1 -1
  16. package/dist/lib/claude-oauth-refresh.js +1 -1
  17. package/dist/lib/cli/build.js +1 -1
  18. package/dist/lib/cli/config-command.js +1 -1
  19. package/dist/lib/cli/config.js +1 -1
  20. package/dist/lib/cli/create-user.js +1 -1
  21. package/dist/lib/cli/init.js +1 -1
  22. package/dist/lib/cli/jira.js +1 -1
  23. package/dist/lib/cli/license.js +1 -1
  24. package/dist/lib/cli/server-manager.js +1 -1
  25. package/dist/lib/container-credential-sync.js +1 -0
  26. package/dist/lib/container-tokens.js +1 -1
  27. package/dist/lib/data-dir.js +1 -1
  28. package/dist/lib/deployment-history.js +1 -1
  29. package/dist/lib/deployment-service.js +1 -1
  30. package/dist/lib/docker-utils.js +1 -1
  31. package/dist/lib/email.js +1 -1
  32. package/dist/lib/emailTemplates.js +1 -1
  33. package/dist/lib/entitlement.js +1 -1
  34. package/dist/lib/fetch-utils.js +1 -1
  35. package/dist/lib/git-commit-details-route.js +1 -1
  36. package/dist/lib/git-history-diff-guardrails.js +1 -1
  37. package/dist/lib/git-provider-service.js +1 -1
  38. package/dist/lib/git-provider-setup/github-setup-handler.js +1 -1
  39. package/dist/lib/git-provider-setup/index.js +1 -1
  40. package/dist/lib/git-provider-setup/setup-factory.js +1 -1
  41. package/dist/lib/git-provider-setup/setup-interface.js +1 -1
  42. package/dist/lib/git-providers/azure-devops-provider.js +1 -1
  43. package/dist/lib/git-providers/github-app-provider.js +1 -1
  44. package/dist/lib/git-providers/index.js +1 -1
  45. package/dist/lib/git-providers/provider-factory.js +1 -1
  46. package/dist/lib/git-providers/provider-interface.js +1 -1
  47. package/dist/lib/github-urls.js +1 -1
  48. package/dist/lib/group-objective-linking.js +1 -1
  49. package/dist/lib/jira-client.js +1 -1
  50. package/dist/lib/judge-blinding.js +1 -1
  51. package/dist/lib/logger.js +1 -1
  52. package/dist/lib/model-fetcher.js +1 -1
  53. package/dist/lib/notifications.js +1 -1
  54. package/dist/lib/oidc-auth.js +1 -1
  55. package/dist/lib/oidc-device-flow.js +1 -1
  56. package/dist/lib/passwordTokens.js +1 -1
  57. package/dist/lib/pin-cascade.js +1 -1
  58. package/dist/lib/provider-accounts.js +1 -1
  59. package/dist/lib/provider-oauth.js +1 -1
  60. package/dist/lib/provider-profile.js +1 -1
  61. package/dist/lib/provider-token-refresh.js +1 -1
  62. package/dist/lib/request-url.js +1 -1
  63. package/dist/lib/rewind.js +1 -1
  64. package/dist/lib/roles.js +1 -1
  65. package/dist/lib/secrets.js +1 -1
  66. package/dist/lib/setup-repo-git-auth.js +1 -1
  67. package/dist/lib/state-capture.js +1 -1
  68. package/dist/lib/static-files.js +1 -1
  69. package/dist/lib/task-name-generator.js +1 -1
  70. package/dist/lib/user-git-oauth.js +1 -1
  71. package/dist/lib/user-git-tokens.js +1 -1
  72. package/dist/lib/users.js +1 -1
  73. package/dist/middleware/requireAuth.js +1 -1
  74. package/dist/middleware/requireInit.js +1 -1
  75. package/dist/middleware/requirePermission.js +1 -1
  76. package/dist/package.json +1 -1
  77. package/dist/routes/apiKeys.js +1 -1
  78. package/dist/routes/auth-oidc.js +1 -1
  79. package/dist/routes/auth.js +1 -1
  80. package/dist/routes/build.js +1 -1
  81. package/dist/routes/containers.js +1 -1
  82. package/dist/routes/deploy-task.js +1 -1
  83. package/dist/routes/environment-management.js +1 -1
  84. package/dist/routes/environments.js +1 -1
  85. package/dist/routes/external-skills.js +1 -1
  86. package/dist/routes/git-credentials.js +1 -1
  87. package/dist/routes/git-oauth.js +1 -1
  88. package/dist/routes/git-provider-setup.js +1 -1
  89. package/dist/routes/health.js +1 -1
  90. package/dist/routes/jira.js +1 -1
  91. package/dist/routes/objective-management.js +1 -1
  92. package/dist/routes/password.js +1 -1
  93. package/dist/routes/prompt.js +1 -1
  94. package/dist/routes/provider-auth.js +1 -1
  95. package/dist/routes/qa.js +1 -1
  96. package/dist/routes/settings.js +1 -1
  97. package/dist/routes/skill-management.js +1 -1
  98. package/dist/routes/skills.js +1 -1
  99. package/dist/routes/tasks.js +1 -1
  100. package/dist/routes/templates.js +1 -1
  101. package/dist/routes/test-task.js +1 -1
  102. package/dist/routes/test.js +1 -1
  103. package/dist/routes/users.js +1 -1
  104. package/dist/routes/visualizations.js +1 -1
  105. package/dist/scripts/create-user.js +1 -1
  106. package/dist/shipped-skills/environment-templates/SKILL.md +32 -109
  107. package/dist/start.js +1 -1
  108. package/dist/web-ui/public/activity-detail-modal.js +1 -1
  109. package/dist/web-ui/public/activity-feed.js +1 -1
  110. package/dist/web-ui/public/activity-formatters.js +1 -1
  111. package/dist/web-ui/public/agent-event-parser.js +1 -1
  112. package/dist/web-ui/public/app.js +1 -1
  113. package/dist/web-ui/public/approve-dialog.js +1 -1
  114. package/dist/web-ui/public/comments-widget.js +1 -1
  115. package/dist/web-ui/public/diff-utils.js +1 -1
  116. package/dist/web-ui/public/docs/admin/skills.md +1 -1
  117. package/dist/web-ui/public/environments.html +24 -1
  118. package/dist/web-ui/public/environments.js +1 -1
  119. package/dist/web-ui/public/feedback-widget.js +1 -1
  120. package/dist/web-ui/public/git-history-lazy-utils.js +1 -1
  121. package/dist/web-ui/public/git-history.js +1 -1
  122. package/dist/web-ui/public/git-status.js +1 -1
  123. package/dist/web-ui/public/index.js +1 -1
  124. package/dist/web-ui/public/login.js +1 -1
  125. package/dist/web-ui/public/markdown-editor.js +1 -1
  126. package/dist/web-ui/public/markdown-file-editor.js +1 -1
  127. package/dist/web-ui/public/modal-maximize.js +1 -1
  128. package/dist/web-ui/public/notifications.js +1 -1
  129. package/dist/web-ui/public/server-health.js +1 -1
  130. package/dist/web-ui/public/settings.js +1 -1
  131. package/dist/web-ui/public/setup-password.js +1 -1
  132. package/dist/web-ui/public/skills.css +29 -0
  133. package/dist/web-ui/public/skills.html +15 -0
  134. package/dist/web-ui/public/skills.js +1 -1
  135. package/dist/web-ui/public/sse-client.js +1 -1
  136. package/dist/web-ui/public/sse-shared-worker.js +1 -1
  137. package/dist/web-ui/public/task.js +1 -1
  138. package/dist/web-ui/public/terminal.js +1 -1
  139. package/dist/web-ui/public/theme.js +1 -1
  140. package/dist/web-ui/public/users.html +1 -1
  141. package/dist/web-ui/public/users.js +1 -1
  142. package/dist/web-ui/public/variant-grouping.js +1 -1
  143. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- (function(_0x587c9d,_0x43cc11){const _0x1f7900={_0x2d2598:0x5d9,_0x2690c8:0x5c2,_0x48d3a5:0x5cf,_0x5e4edb:0x5af,_0x477b8d:0x414,_0x1cfe9d:0x583,_0x16bdcf:0x423,_0x571441:0x3f8,_0xe8425d:0x3ef,_0xa81827:0x392,_0x34064d:0x3b0,_0x53699b:0x3b1,_0x1faece:0x3a3,_0x3e30cb:0x403,_0x400b82:0x420,_0x6abd7b:0x40c,_0x2e4140:0x62b,_0x4a9bd7:0x5f7,_0x1027aa:0x40e,_0x53f3b0:0x431,_0x20c4e4:0x3f1,_0x43acbb:0x3fc,_0x2e8511:0x3fb,_0x2108ac:0x3c2},_0x5e4f48=_0x587c9d();function _0x240d3a(_0x122586,_0x4906bc,_0x1469f6,_0x267854){return _0x3aac(_0x1469f6-0x1cb,_0x267854);}function _0x581fea(_0x2dcd8f,_0x232f3a,_0x13c687,_0x3578ac){return _0x3aac(_0x3578ac-0x3a6,_0x13c687);}while(!![]){try{const _0x4ecd41=parseInt(_0x581fea(_0x1f7900._0x2d2598,_0x1f7900._0x2690c8,0x5dc,_0x1f7900._0x48d3a5))/(-0x2450+-0x125*-0x1f+0xd6)*(parseInt(_0x581fea(0x571,_0x1f7900._0x5e4edb,0x5ce,0x5ab))/(0x171a+0xb*0x18+-0x1820))+parseInt(_0x240d3a(_0x1f7900._0x477b8d,0x42a,0x3fa,0x3fc))/(-0xd63+-0xf16+0x4*0x71f)*(parseInt(_0x581fea(_0x1f7900._0x2690c8,0x5ce,_0x1f7900._0x1cfe9d,0x5a4))/(-0x21*-0x29+0x16f8+-0x1c3d))+parseInt(_0x240d3a(_0x1f7900._0x16bdcf,_0x1f7900._0x571441,0x41e,_0x1f7900._0xe8425d))/(-0x1*0x1eb8+0x3*0x3e7+0x1308)+parseInt(_0x240d3a(0x384,_0x1f7900._0xa81827,0x39f,_0x1f7900._0x34064d))/(0x16*-0x42+-0x115*-0x2+0x1*0x388)*(parseInt(_0x240d3a(0x375,0x3f0,_0x1f7900._0x53699b,_0x1f7900._0x1faece))/(0x1a49*0x1+0x155d*0x1+-0x2f9f))+parseInt(_0x240d3a(0x462,_0x1f7900._0x3e30cb,_0x1f7900._0x400b82,_0x1f7900._0x6abd7b))/(-0x4*-0x5b3+0x2*0x92c+-0x291c)+-parseInt(_0x581fea(_0x1f7900._0x2e4140,0x5ed,0x62a,_0x1f7900._0x4a9bd7))/(0x164+-0x176d*0x1+0x46a*0x5)+parseInt(_0x240d3a(_0x1f7900._0x1027aa,_0x1f7900._0x53f3b0,_0x1f7900._0x20c4e4,_0x1f7900._0x43acbb))/(-0x7*-0x399+-0x12b*0x1+0x6*-0x3ff)*(-parseInt(_0x240d3a(_0x1f7900._0x2e8511,_0x1f7900._0x2108ac,0x3ce,0x3a6))/(0x10c7*0x2+0x1ecc+0x404f*-0x1));if(_0x4ecd41===_0x43cc11)break;else _0x5e4f48['push'](_0x5e4f48['shift']());}catch(_0x241cb7){_0x5e4f48['push'](_0x5e4f48['shift']());}}}(_0x1e48,-0xaa86+-0x17ce60+-0x1*-0x255b0b));import{createUser,findUserByUsername}from'../lib/users.js';function _0x3aac(_0x42d5aa,_0x82706b){_0x42d5aa=_0x42d5aa-(0x1a05+0x16*-0x1a7+0x1*0xc27);const _0x1194bc=_0x1e48();let _0x498cf2=_0x1194bc[_0x42d5aa];if(_0x3aac['yLnKCk']===undefined){var _0x32fd29=function(_0x24e732){const _0x450cc1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x119bff='',_0x24889f='';for(let _0x56329f=-0x224c+0x121d+-0x3*-0x565,_0x436222,_0x24deb3,_0x584658=0x347*0x7+0x340+0x1bf*-0xf;_0x24deb3=_0x24e732['charAt'](_0x584658++);~_0x24deb3&&(_0x436222=_0x56329f%(0xa04+0x23bd*-0x1+0x19bd)?_0x436222*(0x3*-0xc57+-0xb92+0x30d7)+_0x24deb3:_0x24deb3,_0x56329f++%(-0x1*-0x551+-0x15*0x31+0x1*-0x148))?_0x119bff+=String['fromCharCode'](-0x3*-0x9c5+-0x31*0x4a+-0xe26&_0x436222>>(-(0x1ef+-0xebd+0xcd0)*_0x56329f&-0xa*0x394+0xad*0x20+0xb*0x14a)):-0x1773+-0x146a+0x2bdd){_0x24deb3=_0x450cc1['indexOf'](_0x24deb3);}for(let _0x50096c=0xf0b*-0x1+0x2702+-0x17f7,_0x3b5691=_0x119bff['length'];_0x50096c<_0x3b5691;_0x50096c++){_0x24889f+='%'+('00'+_0x119bff['charCodeAt'](_0x50096c)['toString'](0x1c17+-0x1*0x9e4+0x1223*-0x1))['slice'](-(0x80f*-0x1+0x4*0x47b+-0x1*0x9db));}return decodeURIComponent(_0x24889f);};_0x3aac['YZanHZ']=_0x32fd29,_0x3aac['CeQLDL']={},_0x3aac['yLnKCk']=!![];}const _0xe49b22=_0x1194bc[-0x1*-0xf3e+0x16bb+-0x25f9],_0x321ad1=_0x42d5aa+_0xe49b22,_0x49c75c=_0x3aac['CeQLDL'][_0x321ad1];return!_0x49c75c?(_0x498cf2=_0x3aac['YZanHZ'](_0x498cf2),_0x3aac['CeQLDL'][_0x321ad1]=_0x498cf2):_0x498cf2=_0x49c75c,_0x498cf2;}import{logger}from'../lib/logger.js';async function main(){const _0x352a96={_0xefc259:0x2a1,_0x146857:0x306,_0x5cdbe6:0x2d5,_0x553487:0x2db,_0x1bc7d5:0x29e,_0x39fa6b:0x29d,_0x38eb5e:0x2d9,_0x26034a:0x28b,_0x13a2f1:0x2ad,_0x1cd743:0x2bf,_0x23080e:0x29f,_0x584be7:0x2d9,_0x4413cb:0x2b9,_0x2e105f:0x2a8,_0x598ff2:0x2a2,_0x513587:0x58f,_0x2259fc:0x562,_0x2f9743:0x540,_0x489eea:0x57b,_0x27c9b3:0x2cb,_0xdd3826:0x2a0,_0x4e6bed:0x284,_0x3b7061:0x2be,_0x704855:0x2c6,_0x446989:0x565,_0x1b6cc7:0x55f,_0x3c9f74:0x57c,_0x491133:0x2b7,_0x524dc3:0x253,_0x5d107b:0x2b1,_0x156655:0x2f2,_0x360453:0x2dc,_0x393886:0x2b7,_0x29f980:0x2d4,_0x309659:0x2c8,_0x328787:0x2f1,_0x3420e6:0x5bf,_0x2e365d:0x2cc,_0x22dbe7:0x2b5,_0x2bf0b8:0x584,_0x1cbd5f:0x5ad,_0x36d967:0x293,_0x421a01:0x2ce,_0x4f9967:0x29b,_0xdfe7a8:0x296,_0x38876b:0x2ea,_0x20c767:0x289,_0x5efcee:0x2c5,_0x7ad83a:0x556,_0xe24a34:0x56e,_0x188b9e:0x554,_0x5d628b:0x550,_0x87b4ea:0x5c2,_0x34b7c6:0x5b1,_0x329749:0x27c,_0x584981:0x280,_0x2f6557:0x2a6,_0x2d440b:0x590,_0x26a86d:0x24c,_0x5812f1:0x2f6,_0x45c90a:0x277,_0x5d0134:0x5bc,_0x368c7e:0x5b0,_0x14c008:0x5a4,_0x1125d8:0x2c4,_0x52fc9e:0x2f3,_0xa76178:0x28d,_0x36e902:0x5da,_0x2ab548:0x592,_0x1ede72:0x269,_0x870ed1:0x278,_0x2e3c81:0x285,_0x526ffb:0x2b6,_0x26cf8a:0x2a9,_0x2db016:0x2da,_0x34d0ed:0x569,_0x51ee40:0x4f9,_0x923b90:0x577,_0x31fd17:0x538,_0x4c7077:0x549,_0x5b7186:0x56f,_0x51fa74:0x54e,_0x556ad0:0x5a3,_0x15d582:0x5a0,_0x55121c:0x56b,_0x2c3b6a:0x274,_0x25e77d:0x29a,_0x2d9ffa:0x28e,_0x3c6545:0x27b,_0x519c7f:0x56c,_0x16cb42:0x564,_0x584cd9:0x575,_0x125097:0x5c8,_0x5cb1ff:0x58f,_0x2819ee:0x28d,_0x1db114:0x295,_0x524d1c:0x293,_0xfdacd5:0x299,_0x5178d3:0x551,_0x22a57d:0x57b,_0x31d357:0x560,_0x1a1074:0x571,_0x2c4f84:0x557,_0xe7a034:0x512,_0x3da238:0x5c2,_0x2323a4:0x5a2,_0x1f3e3a:0x274,_0x37c57f:0x2b4,_0x3ac693:0x57a,_0x539c29:0x528,_0x536275:0x545,_0xea823e:0x2f8,_0x1f6607:0x2d2,_0x37b81d:0x28c,_0x3b50c2:0x516,_0x26518a:0x58c,_0x474fbe:0x587,_0x45a4ba:0x279,_0x370384:0x288,_0x2bfbea:0x2a3,_0x1b3adf:0x283,_0x5b683b:0x297,_0x4b98f2:0x288,_0x3bc39f:0x2c9,_0x828a5f:0x5a5,_0x3ab185:0x596,_0x1a8730:0x5bb,_0x24ea4e:0x55d,_0x41d1f1:0x582,_0x177925:0x5a6,_0x7b2119:0x5b6,_0x15e4c6:0x59a,_0x3e8374:0x2d7,_0x4b4eb5:0x2c1,_0x4d7dc0:0x2d7,_0x358b85:0x5c1,_0x7cd96e:0x561,_0x55631e:0x5a7,_0x3013ce:0x554,_0x16c775:0x55d,_0x5f523c:0x57a,_0x10a588:0x2d8,_0x112abf:0x2aa,_0x3a3aaf:0x2c7,_0x340be0:0x546,_0x3f14a5:0x5d7,_0xf8f1dc:0x576,_0x4e8897:0x596,_0x4a664c:0x5a8,_0x290169:0x5ce,_0x299c91:0x2c1,_0x50be21:0x2e1,_0x43167d:0x55c,_0x4096b6:0x596,_0x5c780b:0x576,_0x9c8b75:0x599,_0x33344a:0x5af,_0x5c6f90:0x545,_0x35f990:0x59f,_0x7af98f:0x2ab,_0x930bc2:0x245,_0x215288:0x268,_0x5916d0:0x26e,_0x157e5a:0x294,_0x4c5b8a:0x294,_0x305757:0x549,_0x5d6691:0x59d,_0x195cf:0x545,_0x412b59:0x563,_0x309799:0x4f5,_0x3a6050:0x535,_0x32a911:0x597,_0x4f8630:0x5cf,_0x53fae2:0x596,_0x3df2fe:0x593,_0x13a12c:0x591,_0x36b392:0x573,_0xaff359:0x2b3,_0x438bd9:0x58d,_0x54b607:0x589,_0x222433:0x2c5,_0x3348a0:0x30b,_0x37f427:0x2e3,_0x10986c:0x2ce,_0x14795b:0x2d1,_0x5a8b80:0x314,_0x630776:0x2f0,_0x3ec85f:0x5b7,_0x149770:0x59a,_0x400ecf:0x590,_0x5c04b8:0x56d,_0x376c4a:0x2e9,_0x27539d:0x5bc,_0x57ba0c:0x5ab,_0x410cba:0x5d1,_0x5326a8:0x58b,_0x12df74:0x2c0,_0x5260ba:0x31f,_0x72eced:0x300,_0x3c2b3e:0x2f4,_0x554d4d:0x287,_0x37c18a:0x2b0,_0xdbe1da:0x2d4,_0x5d4e19:0x2e2,_0x4ae4b8:0x56c,_0x3f2df4:0x55b,_0x2afd67:0x507,_0x40497c:0x51b,_0x48a42c:0x53d,_0x1552f4:0x2cb,_0x2d5fe3:0x2e6,_0x326403:0x5b6,_0x54e3fa:0x596,_0x4e2133:0x53f,_0x290318:0x55e,_0x5f0ee5:0x2a4,_0x5d1da3:0x2b6,_0x2d5f61:0x289,_0x49c4bd:0x57f,_0x434d6a:0x5ea,_0x328f2c:0x5f2,_0xef5a9e:0x5e5,_0x3245a1:0x525,_0x22ee35:0x541,_0x260945:0x286,_0x1cd043:0x29c,_0x2a5339:0x2dd,_0x2ac10e:0x31d,_0x6e52e5:0x2b4,_0x575ec4:0x5cb,_0x288325:0x57d,_0x4f6323:0x584,_0x2284d2:0x56e,_0x40c125:0x291,_0x57a51d:0x2f5,_0x5da302:0x317,_0x1078cc:0x313,_0x287ec8:0x2ee,_0x548468:0x2df,_0x4004df:0x549,_0x44f0ed:0x276,_0xf7401e:0x27b,_0x47aa37:0x527,_0x3fd401:0x2c0,_0x435e89:0x293,_0x316c94:0x5c2,_0x3f5487:0x30e,_0x4e2867:0x2fe,_0x3a008a:0x561,_0x38507a:0x57c,_0x283a6f:0x5b0,_0x55eaf9:0x5a8,_0xe90749:0x2a4,_0x259e7c:0x5cf,_0x389b47:0x543,_0x55f9a5:0x54f,_0x227324:0x56e,_0x33f3c5:0x2ac,_0x24c428:0x2ba,_0xb1712e:0x552,_0x26d9a6:0x5a8,_0x408546:0x594,_0x31f26e:0x583,_0x305ba8:0x2a2,_0x3432d6:0x307,_0x1e7bbe:0x2fb,_0x244ebe:0x50f,_0x3e96b9:0x54d,_0x3ba624:0x55a,_0xd59449:0x55a,_0x403e0f:0x2fe,_0x4e69ba:0x5d0,_0x4e5db4:0x567,_0xc9b6c:0x327,_0x2c71e6:0x319,_0x15fc56:0x2e7,_0x5d1ddf:0x2d4,_0x4fe962:0x59c,_0x55f944:0x2e4,_0x263c84:0x2f1,_0x49738b:0x2fc,_0x53830b:0x590,_0x3fe9c4:0x59c,_0xdfcd6f:0x2ff,_0x12d32c:0x308,_0x264ece:0x2a8,_0x453ea9:0x2d7,_0x4de215:0x5c7,_0x349c77:0x2cd,_0x4bdeba:0x2ef,_0x520d03:0x2ec,_0x19f12b:0x2af,_0x5e3255:0x2ae,_0x53a1c7:0x588,_0x205065:0x57f},_0x38af37={_0x34ed71:0x363},_0x3d1c78={_0x157db3:0xa4},_0x5aefd2={'ShVDB':_0x2def60(_0x352a96._0xefc259,0x2df,0x2a4,0x262),'vuRrM':_0x2def60(_0x352a96._0x146857,_0x352a96._0x5cdbe6,_0x352a96._0x553487,0x318),'LGWwp':_0x2def60(_0x352a96._0x1bc7d5,0x2d9,_0x352a96._0x39fa6b,_0x352a96._0x38eb5e)+'e\x20scripts/'+_0x2def60(0x275,0x2b6,_0x352a96._0x26034a,0x2c4)+_0x2def60(_0x352a96._0x13a2f1,0x2e9,_0x352a96._0x1cd743,0x287)+_0x39433a(0x564,0x59a,0x57c,0x577)+_0x2def60(0x2d0,_0x352a96._0x23080e,_0x352a96._0x23080e,_0x352a96._0x584be7)+_0x2def60(0x2da,_0x352a96._0x4413cb,_0x352a96._0x2e105f,_0x352a96._0x598ff2)+'>\x20[role]','BsgLH':'\x20\x20password'+'\x20\x20-\x20User\x20p'+'assword\x20(w'+_0x39433a(_0x352a96._0x513587,0x548,_0x352a96._0x2259fc,0x551)+_0x39433a(0x540,_0x352a96._0x2f9743,_0x352a96._0x489eea,0x555),'nyFCw':'\x20\x20name\x20\x20\x20\x20'+_0x2def60(_0x352a96._0x27c9b3,0x263,_0x352a96._0xdd3826,0x2a5)+_0x2def60(_0x352a96._0x4e6bed,_0x352a96._0x3b7061,_0x352a96._0x704855,0x2f4)+_0x39433a(0x557,0x533,_0x352a96._0x446989,0x542),'lfyAD':_0x39433a(_0x352a96._0x1b6cc7,0x593,0x556,_0x352a96._0x3c9f74)+_0x2def60(_0x352a96._0x491133,_0x352a96._0x524dc3,0x27b,0x246)+'\x20be\x20at\x20lea'+'st\x208\x20chara'+_0x2def60(0x305,_0x352a96._0x5d107b,0x2d5,_0x352a96._0x156655)+'.','gdAzX':function(_0x58a807,_0x2e7dd1){return _0x58a807<_0x2e7dd1;},'DenEt':function(_0x2411df,_0x8d676){return _0x2411df===_0x8d676;},'tBBMz':_0x2def60(_0x352a96._0x360453,_0x352a96._0x393886,_0x352a96._0x29f980,0x2f1),'diYSA':_0x2def60(_0x352a96._0x309659,_0x352a96._0x553487,_0x352a96._0x328787,0x2b1)+_0x39433a(0x567,_0x352a96._0x3420e6,_0x352a96._0x513587,0x598)+_0x2def60(_0x352a96._0x2e365d,0x2ae,_0x352a96._0x22dbe7,0x29e),'ZVJTk':'\x20\x20role\x20\x20\x20\x20'+_0x39433a(_0x352a96._0x2bf0b8,0x56f,0x582,_0x352a96._0x1cbd5f)+_0x2def60(_0x352a96._0x3b7061,0x291,_0x352a96._0x36d967,_0x352a96._0x421a01)+_0x39433a(0x524,0x50a,0x57c,0x53c)+_0x2def60(0x287,_0x352a96._0xdd3826,_0x352a96._0x4f9967,_0x352a96._0xdfe7a8)+_0x2def60(0x2c1,_0x352a96._0x38876b,0x2e0,_0x352a96._0x2e365d),'fZpFe':_0x2def60(_0x352a96._0x20c767,0x2d4,_0x352a96._0x5efcee,0x2da)+_0x39433a(0x55a,_0x352a96._0x7ad83a,0x594,_0x352a96._0xe24a34)+_0x39433a(0x556,0x529,_0x352a96._0x188b9e,_0x352a96._0x5d628b)+_0x39433a(_0x352a96._0x87b4ea,0x58f,0x5b7,_0x352a96._0x34b7c6),'byVeq':_0x2def60(0x29d,_0x352a96._0x329749,_0x352a96._0x584981,_0x352a96._0x2f6557)+_0x39433a(_0x352a96._0x2d440b,0x55f,0x57a,0x575)+'e-user.js\x20'+_0x2def60(0x2af,0x265,0x27a,_0x352a96._0x26a86d)+'n@example.'+_0x2def60(0x2d3,0x327,_0x352a96._0x5812f1,0x311)+'\x20User\x22\x20sec'+_0x2def60(0x24a,0x241,_0x352a96._0x45c90a,0x273)+'\x20admin','PgzYz':_0x39433a(_0x352a96._0x5d0134,0x56f,_0x352a96._0x368c7e,_0x352a96._0x14c008)+_0x2def60(_0x352a96._0x1125d8,_0x352a96._0x52fc9e,0x2be,_0x352a96._0xa76178)+_0x39433a(0x569,_0x352a96._0x36e902,_0x352a96._0x2ab548,0x59d)+'ss','nhMGr':_0x2def60(_0x352a96._0x1ede72,_0x352a96._0x870ed1,_0x352a96._0x2e3c81,_0x352a96._0x526ffb),'XQGQx':function(_0x781a7e,_0x1cdb5d){return _0x781a7e!==_0x1cdb5d;},'VkekF':function(_0xe5754a,_0x4cf0c8){return _0xe5754a!==_0x4cf0c8;},'EizWf':function(_0x5af612,_0xb99e16){return _0x5af612<_0xb99e16;},'oVPLE':function(_0x3f7326,_0x28f17b){return _0x3f7326!==_0x28f17b;},'jhZKY':_0x2def60(_0x352a96._0x26cf8a,0x2ed,_0x352a96._0x2db016,0x2de),'qyCiZ':function(_0x3d185e,_0x351b88){return _0x3d185e(_0x351b88);},'TdWXx':function(_0x236f93,_0x49eb76){return _0x236f93===_0x49eb76;},'xxrOk':_0x39433a(0x569,0x558,_0x352a96._0x34d0ed,0x55d),'nfecA':_0x39433a(0x549,_0x352a96._0x51ee40,_0x352a96._0x923b90,_0x352a96._0x31fd17),'rUvQC':function(_0x42345c,_0x1a69ae){return _0x42345c(_0x1a69ae);},'RfaQF':'✓\x20User\x20cre'+_0x39433a(_0x352a96._0x4c7077,0x5ac,0x5b3,0x58b)+_0x39433a(0x530,_0x352a96._0x5b7186,0x56a,_0x352a96._0x51fa74),'rLaAV':_0x39433a(_0x352a96._0x556ad0,0x56c,_0x352a96._0x15d582,_0x352a96._0x55121c)+_0x39433a(0x547,0x532,0x52e,0x548),'SewBK':'The\x20user\x20c'+'an\x20now\x20log'+_0x2def60(_0x352a96._0x2c3b6a,0x290,_0x352a96._0x25e77d,_0x352a96._0x2d9ffa)+_0x2def60(_0x352a96._0x3c6545,0x298,_0x352a96._0xa76178,0x254)+_0x39433a(0x548,0x534,_0x352a96._0x519c7f,_0x352a96._0x16cb42)+_0x39433a(_0x352a96._0x584cd9,_0x352a96._0x125097,0x555,_0x352a96._0x5cb1ff),'ZpmDF':_0x2def60(_0x352a96._0x2819ee,0x25f,0x298,0x264),'cAJXU':_0x2def60(_0x352a96._0x1db114,_0x352a96._0x524d1c,_0x352a96._0x4e6bed,_0x352a96._0xfdacd5),'brPMi':_0x39433a(0x58c,_0x352a96._0x5178d3,_0x352a96._0x4c7077,_0x352a96._0x22a57d)+_0x39433a(0x52d,_0x352a96._0x31d357,_0x352a96._0x1a1074,0x562)+'r'},_0x1a8b5b=process[_0x39433a(_0x352a96._0x2c4f84,_0x352a96._0xe7a034,0x54a,0x53b)][_0x39433a(_0x352a96._0x368c7e,_0x352a96._0x3da238,0x569,_0x352a96._0x2323a4)](0x47f*0x1+0x1*0x2172+-0x9*0x437);function _0x2def60(_0x256db3,_0x177bf4,_0xff07bf,_0x25c7dd){return _0x3aac(_0xff07bf-_0x3d1c78._0x157db3,_0x177bf4);}if(_0x5aefd2[_0x2def60(0x285,_0x352a96._0x1f3e3a,0x27f,_0x352a96._0x491133)](_0x1a8b5b[_0x2def60(0x31d,_0x352a96._0x37c57f,0x2e8,0x2b1)],0x53d*-0x4+-0x112d+0x2625)){if(_0x5aefd2[_0x39433a(_0x352a96._0x3ac693,_0x352a96._0x539c29,0x52d,_0x352a96._0x536275)](_0x5aefd2[_0x2def60(0x2f5,_0x352a96._0xea823e,_0x352a96._0x1f6607,_0x352a96._0x2db016)],'TUFZy'))_0x2431ae['error']('Error:\x20Inv'+'alid\x20email'+_0x2def60(0x280,0x29c,0x294,_0x352a96._0x37b81d)+_0x4a63d7+'\x22.'),_0x199edf[_0x39433a(0x560,0x545,0x5b6,0x57f)](0x1*-0xc7b+-0x7f6+-0xa39*-0x2);else{const _0x4f700f=_0x5aefd2[_0x39433a(_0x352a96._0x3b50c2,_0x352a96._0x26518a,_0x352a96._0x474fbe,0x558)][_0x2def60(_0x352a96._0x45a4ba,0x29e,0x27e,0x248)]('|');let _0x124ae7=-0x1c62+-0x2b*0x35+-0x5*-0x775;while(!![]){switch(_0x4f700f[_0x124ae7++]){case'0':process[_0x2def60(_0x352a96._0x370384,0x2b7,0x2c0,0x2a0)](-0x83b*-0x1+-0x2542+0x1d08);continue;case'1':console[_0x2def60(_0x352a96._0x2bfbea,0x2f9,0x2d7,0x2ed)](_0x5aefd2[_0x2def60(_0x352a96._0x1b3adf,_0x352a96._0x5b683b,_0x352a96._0x4b98f2,_0x352a96._0x3bc39f)]);continue;case'2':console[_0x39433a(0x55a,0x581,_0x352a96._0x828a5f,_0x352a96._0x3ab185)](_0x5aefd2[_0x39433a(0x544,_0x352a96._0x1a8730,_0x352a96._0x24ea4e,_0x352a96._0x41d1f1)]);continue;case'3':console[_0x39433a(0x5d0,0x58f,_0x352a96._0x177925,_0x352a96._0x3ab185)](_0x5aefd2['fZpFe']);continue;case'4':console['error']('');continue;case'5':console[_0x39433a(_0x352a96._0x7b2119,0x596,0x5d5,0x596)](_0x39433a(0x57b,0x5dc,0x583,_0x352a96._0x15e4c6));continue;case'6':console[_0x2def60(_0x352a96._0x309659,0x2a4,_0x352a96._0x3e8374,_0x352a96._0x4b4eb5)](_0x5aefd2[_0x2def60(0x314,_0x352a96._0x4d7dc0,0x2f4,_0x352a96._0x1cd743)]);continue;case'7':console[_0x39433a(0x59d,0x591,_0x352a96._0x358b85,_0x352a96._0x3ab185)](_0x5aefd2['PgzYz']);continue;case'8':console[_0x39433a(0x556,_0x352a96._0x7cd96e,0x589,0x596)]('\x20\x20password'+_0x39433a(_0x352a96._0x55631e,_0x352a96._0x3013ce,_0x352a96._0x16c775,0x590)+_0x39433a(0x57a,_0x352a96._0x1cbd5f,0x541,_0x352a96._0x5f523c)+_0x2def60(0x291,0x283,0x292,0x29e)+'hed)');continue;case'9':console['error'](_0x5aefd2[_0x2def60(0x280,_0x352a96._0x10a588,_0x352a96._0x112abf,_0x352a96._0x3a3aaf)]);continue;case'10':console[_0x2def60(0x2fd,0x313,0x2d7,0x2ed)](_0x5aefd2[_0x39433a(0x534,0x535,_0x352a96._0x31fd17,_0x352a96._0x340be0)]);continue;case'11':console[_0x39433a(_0x352a96._0x3f14a5,_0x352a96._0xf8f1dc,0x5a3,_0x352a96._0x4e8897)]('');continue;}break;}}}const [_0x5459d4,_0x3dfd0a,_0xb62481,_0x51406b,_0x25b8a3=_0x5aefd2[_0x39433a(_0x352a96._0x4a664c,0x5bc,_0x352a96._0x290169,0x5a0)]]=_0x1a8b5b;_0x5aefd2['XQGQx'](_0x25b8a3,_0x2def60(_0x352a96._0x27c9b3,0x2e5,_0x352a96._0x299c91,0x2ca))&&_0x5aefd2['VkekF'](_0x25b8a3,_0x5aefd2[_0x2def60(0x305,0x304,_0x352a96._0x50be21,0x311)])&&(console[_0x39433a(0x58b,_0x352a96._0x43167d,0x5cf,_0x352a96._0x4096b6)]('Error:\x20Inv'+_0x39433a(0x5af,0x567,_0x352a96._0x5c780b,0x5a3)+'\x22'+_0x25b8a3+(_0x39433a(0x594,0x531,0x57c,0x56c)+'\x20\x22admin\x22\x20o'+_0x39433a(0x5a5,0x5e1,_0x352a96._0x9c8b75,_0x352a96._0x33344a))),process[_0x39433a(_0x352a96._0x14c008,_0x352a96._0x5c6f90,_0x352a96._0x35f990,0x57f)](-0x1*-0x1e17+-0x51d+-0x18f9));const _0x2eb72f=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;!_0x2eb72f[_0x2def60(_0x352a96._0x7af98f,_0x352a96._0x930bc2,0x276,_0x352a96._0x215288)](_0x3dfd0a)&&(console['error']('Error:\x20Inv'+_0x2def60(_0x352a96._0x215288,0x28b,0x290,0x288)+_0x2def60(0x258,_0x352a96._0x5916d0,_0x352a96._0x157e5a,_0x352a96._0x4c5b8a)+_0x3dfd0a+'\x22.'),process[_0x39433a(_0x352a96._0x305757,0x5c1,_0x352a96._0x5d6691,0x57f)](-0x73f*-0x1+0xd*0x2c1+0x2b0b*-0x1));const _0x202593=/^[a-zA-Z0-9_-]+$/;!_0x202593[_0x39433a(_0x352a96._0x195cf,_0x352a96._0x412b59,_0x352a96._0x309799,_0x352a96._0x3a6050)](_0x5459d4)&&(console[_0x39433a(_0x352a96._0x446989,_0x352a96._0x32a911,_0x352a96._0x4f8630,_0x352a96._0x53fae2)]('Error:\x20Inv'+_0x39433a(_0x352a96._0x3df2fe,0x581,0x59e,0x587)+_0x2def60(0x249,0x2a9,0x28c,0x297)+_0x5459d4+(_0x39433a(0x541,_0x352a96._0x13a12c,0x592,_0x352a96._0x36b392)+'y\x20letters,'+_0x2def60(0x2e4,_0x352a96._0x870ed1,_0x352a96._0xaff359,0x2c6)+_0x39433a(_0x352a96._0x438bd9,_0x352a96._0x54b607,_0x352a96._0x1a1074,0x5a5)+_0x2def60(0x2fe,_0x352a96._0x222433,_0x352a96._0x3a3aaf,0x2d1)+_0x39433a(0x539,0x566,0x5ab,0x571))),process['exit'](-0x617+-0x1dd0+0x23e8));_0x5aefd2[_0x2def60(_0x352a96._0x3348a0,_0x352a96._0x37f427,_0x352a96._0x10986c,_0x352a96._0x14795b)](_0x51406b[_0x2def60(_0x352a96._0x5a8b80,0x2d4,0x2e8,_0x352a96._0x630776)],0x2680+0x25ef+-0x4c67)&&(console[_0x39433a(0x577,0x5cb,_0x352a96._0x3ec85f,0x596)](_0x5aefd2[_0x39433a(_0x352a96._0x2ab548,_0x352a96._0x149770,_0x352a96._0x400ecf,_0x352a96._0x5c04b8)]),process[_0x2def60(0x282,_0x352a96._0x2e3c81,0x2c0,_0x352a96._0x376c4a)](-0x23*-0x119+-0x257c+0x22*-0x7));function _0x39433a(_0x6168f8,_0x3cf728,_0x3f1a72,_0x56410f){return _0x3aac(_0x56410f-_0x38af37._0x34ed71,_0x3cf728);}try{if(_0x5aefd2[_0x2def60(0x284,_0x352a96._0x370384,0x297,0x290)]('RGsSX',_0x5aefd2[_0x39433a(0x5a9,_0x352a96._0x27539d,0x58e,_0x352a96._0x57ba0c)]))_0x3cbb79['error']('Error:\x20Use'+_0x39433a(_0x352a96._0x410cba,0x5ac,0x5d6,0x5a8)+_0x1311e5+(_0x39433a(0x585,_0x352a96._0x5326a8,0x583,0x578)+_0x2def60(0x2d9,0x2ac,0x2cf,0x304))),_0x16c5ac[_0x2def60(0x2a5,0x2cf,_0x352a96._0x12df74,_0x352a96._0x4b4eb5)](-0xc5a+-0x1270+-0x1*-0x1ecb);else{const _0x566003=await _0x5aefd2[_0x2def60(0x2fd,_0x352a96._0x5260ba,_0x352a96._0x52fc9e,_0x352a96._0x72eced)](findUserByUsername,_0x5459d4);if(_0x566003){if(_0x5aefd2[_0x2def60(0x2a3,0x26e,0x295,0x299)](_0x5aefd2[_0x2def60(0x29f,0x2be,0x2c2,_0x352a96._0x3c2b3e)],_0x5aefd2[_0x2def60(0x2de,_0x352a96._0x554d4d,_0x352a96._0x37c18a,_0x352a96._0xdbe1da)])){const _0x4ecc88=('4|1|0|5|11'+_0x2def60(_0x352a96._0x584be7,0x2e6,_0x352a96._0x5d4e19,0x31b)+_0x39433a(0x570,_0x352a96._0x4ae4b8,_0x352a96._0x26518a,_0x352a96._0x3f2df4))[_0x39433a(_0x352a96._0x2afd67,0x546,_0x352a96._0x40497c,_0x352a96._0x48a42c)]('|');let _0x1cf4be=0x312+0x2b4+-0x5c6;while(!![]){switch(_0x4ecc88[_0x1cf4be++]){case'0':_0x5b8bec[_0x2def60(_0x352a96._0x1552f4,_0x352a96._0x2d5fe3,0x2d7,0x300)](_0x5aefd2['ShVDB']);continue;case'1':_0x3de8ea[_0x39433a(0x564,_0x352a96._0x326403,0x59c,_0x352a96._0x54e3fa)]('');continue;case'2':_0x362df9['error'](_0x39433a(0x52a,_0x352a96._0x4e2133,_0x352a96._0x290318,0x53f)+_0x2def60(0x2bc,_0x352a96._0x5f0ee5,_0x352a96._0x5d1da3,_0x352a96._0x2d5f61)+_0x39433a(0x5c1,_0x352a96._0x49c4bd,_0x352a96._0x434d6a,0x5ac)+'admin\x20admi'+_0x2def60(0x32e,0x326,0x2fa,0x333)+_0x39433a(_0x352a96._0x328f2c,0x5b6,_0x352a96._0xef5a9e,0x5b5)+_0x39433a(0x514,_0x352a96._0x3245a1,0x527,_0x352a96._0x22ee35)+'urepass123'+_0x2def60(_0x352a96._0x260945,_0x352a96._0x1cd043,0x2ab,0x2c3));continue;case'3':_0x1e92ed[_0x2def60(0x2e7,0x2de,0x2d7,_0x352a96._0x2a5339)](_0x5aefd2[_0x2def60(_0x352a96._0x2ac10e,0x2f1,_0x352a96._0xea823e,0x2bd)]);continue;case'4':_0x130e73[_0x2def60(0x30f,0x2d2,0x2d7,0x2c9)](_0x5aefd2[_0x2def60(0x272,_0x352a96._0x6e52e5,0x287,0x286)]);continue;case'5':_0x1421ee[_0x39433a(0x576,0x5a3,_0x352a96._0x575ec4,0x596)](_0x39433a(_0x352a96._0x288325,0x590,_0x352a96._0x358b85,_0x352a96._0x4f6323)+_0x39433a(0x567,0x590,0x570,_0x352a96._0x2284d2)+_0x2def60(0x25c,_0x352a96._0x1f3e3a,_0x352a96._0x40c125,0x268)+'for\x20login');continue;case'6':_0x528f9a['error'](_0x5aefd2['BsgLH']);continue;case'7':_0x362b28[_0x2def60(_0x352a96._0x57a51d,_0x352a96._0x5da302,0x2d7,0x2a7)]('\x20\x20role\x20\x20\x20\x20'+_0x2def60(_0x352a96._0x360453,_0x352a96._0x1078cc,_0x352a96._0x287ec8,_0x352a96._0x548468)+_0x39433a(_0x352a96._0x4004df,0x554,0x547,0x552)+_0x2def60(_0x352a96._0x44f0ed,_0x352a96._0xf7401e,0x27d,0x27a)+_0x39433a(_0x352a96._0x47aa37,0x578,0x537,0x55a)+_0x39433a(_0x352a96._0x828a5f,0x569,0x5e2,0x59f));continue;case'8':_0x1a212e['error']('');continue;case'9':_0x2ac8c1[_0x2def60(_0x352a96._0x40c125,_0x352a96._0x25e77d,_0x352a96._0x3fd401,_0x352a96._0x435e89)](-0x1d2e+0x27a*0xd+-0x303);continue;case'10':_0x219112[_0x39433a(_0x352a96._0x3c9f74,0x5be,_0x352a96._0x316c94,0x596)](_0x5aefd2[_0x39433a(0x535,_0x352a96._0x14c008,0x568,0x569)]);continue;case'11':_0x281484['error'](_0x2def60(_0x352a96._0x3f5487,0x2cb,0x2e5,_0x352a96._0x4e2867)+_0x2def60(0x2bb,_0x352a96._0x13a2f1,0x2be,0x2f0)+_0x39433a(_0x352a96._0x3a008a,0x562,0x5cc,0x59d)+'ss');continue;}break;}}else console['error']('Error:\x20Use'+_0x39433a(_0x352a96._0x38507a,_0x352a96._0x283a6f,0x59b,_0x352a96._0x55eaf9)+_0x5459d4+(_0x2def60(_0x352a96._0xdbe1da,0x2af,0x2b9,_0x352a96._0xe90749)+_0x39433a(0x586,_0x352a96._0x259e7c,0x57c,0x58e))),process['exit'](0xb66*0x1+0x3*0x50d+-0x1a8c);}console['log'](_0x39433a(_0x352a96._0x389b47,_0x352a96._0x55f9a5,0x5b7,0x576)+_0x2def60(0x2d4,0x31e,0x2dc,0x2c5)+_0x5459d4+_0x39433a(_0x352a96._0x13a12c,_0x352a96._0x227324,0x5dd,0x5aa));const _0x29ab5a={};_0x29ab5a[_0x2def60(0x323,0x2bb,0x2e7,_0x352a96._0x33f3c5)]=_0x5459d4,_0x29ab5a['email']=_0x3dfd0a,_0x29ab5a[_0x2def60(_0x352a96._0x3bc39f,_0x352a96._0x24c428,0x2ea,0x328)]=_0xb62481,_0x29ab5a[_0x2def60(0x2d5,0x2ea,0x2ba,0x2d6)]=_0x51406b,_0x29ab5a[_0x39433a(0x560,_0x352a96._0xb1712e,0x526,_0x352a96._0x31d357)]=_0x25b8a3;const _0x3b4e3a=await _0x5aefd2[_0x2def60(0x2b6,0x28e,0x281,0x27e)](createUser,_0x29ab5a);console[_0x39433a(0x5b7,_0x352a96._0x26d9a6,_0x352a96._0x408546,0x59c)](''),console[_0x39433a(0x5dc,_0x352a96._0x36b392,_0x352a96._0x31f26e,0x59c)](_0x5aefd2[_0x2def60(0x2f3,_0x352a96._0x2d5f61,_0x352a96._0x3bc39f,_0x352a96._0xefc259)]),console[_0x2def60(_0x352a96._0x305ba8,_0x352a96._0x3432d6,_0x352a96._0x2a5339,_0x352a96._0x1e7bbe)](''),console[_0x2def60(0x2f4,0x29e,0x2dd,0x2ca)](_0x5aefd2[_0x39433a(0x583,_0x352a96._0x244ebe,0x53e,_0x352a96._0x3e96b9)]),console[_0x39433a(_0x352a96._0x3ba624,_0x352a96._0xd59449,_0x352a96._0x5326a8,0x59c)](_0x39433a(0x557,_0x352a96._0x24ea4e,0x5a9,_0x352a96._0x32a911)+'\x20\x20'+_0x3b4e3a['id']),console[_0x2def60(_0x352a96._0x287ec8,_0x352a96._0x403e0f,0x2dd,0x2d0)](_0x39433a(_0x352a96._0x4e69ba,_0x352a96._0x4e5db4,0x5e0,0x59e)+':\x20'+_0x3b4e3a[_0x2def60(_0x352a96._0xc9b6c,_0x352a96._0x2c71e6,_0x352a96._0x15fc56,_0x352a96._0x5d1ddf)]),console['log']('\x20\x20Email:\x20\x20'+'\x20\x20'+_0x3b4e3a['email']),console[_0x39433a(0x5da,0x578,0x5bd,_0x352a96._0x4fe962)]('\x20\x20Name:\x20\x20\x20'+'\x20\x20'+_0x3b4e3a[_0x2def60(0x2ea,0x2bf,_0x352a96._0x38876b,0x318)]),console['log'](_0x2def60(0x2e7,_0x352a96._0x55f944,_0x352a96._0x1552f4,0x2b3)+'\x20\x20'+_0x3b4e3a[_0x39433a(0x571,_0x352a96._0x55f9a5,0x593,_0x352a96._0x31d357)]),console[_0x2def60(_0x352a96._0x263c84,_0x352a96._0x49738b,0x2dd,0x2a5)](''),console[_0x39433a(0x59a,0x58a,_0x352a96._0x53830b,_0x352a96._0x3fe9c4)](_0x5aefd2[_0x2def60(0x2d3,0x2b6,0x2a6,0x284)]);}}catch(_0x260d78){_0x5aefd2['XQGQx'](_0x5aefd2[_0x2def60(_0x352a96._0xdfe7a8,0x2b1,0x2c4,_0x352a96._0xdfcd6f)],_0x5aefd2[_0x39433a(0x590,0x58b,0x52f,0x570)])?(logger[_0x2def60(_0x352a96._0x12d32c,_0x352a96._0x264ece,_0x352a96._0x453ea9,_0x352a96._0x222433)](_0x5aefd2[_0x39433a(0x5a9,_0x352a96._0x31d357,_0x352a96._0x4de215,0x595)],_0x260d78),console[_0x2def60(0x30d,0x29b,_0x352a96._0x3e8374,0x2a6)](_0x2def60(_0x352a96._0x156655,_0x352a96._0x349c77,_0x352a96._0x4bdeba,_0x352a96._0x520d03)+'led\x20to\x20cre'+'ate\x20user\x20-'+'\x20'+_0x260d78['message']),process[_0x2def60(0x2f4,0x292,0x2c0,_0x352a96._0x19f12b)](-0x1f4c+0xd*0x19+0x1e08)):(_0x590142['error'](_0x5aefd2[_0x2def60(0x2ad,0x2e4,_0x352a96._0x5e3255,0x291)]),_0x1e3e9b[_0x39433a(_0x352a96._0x489eea,_0x352a96._0x53a1c7,0x54e,_0x352a96._0x205065)](-0x207b+-0x1149+0x1097*0x3));}}main();function _0x1e48(){const _0x32cb22=['yNjqtwK','zxjYB3i','icbjrdOGicaGia','FdL8ohWYFdeXFa','uKDZu1G','rxHHBxbSztO','C2vYici','Bg9N','BwfPBcbHzgrYzq','icbvC2vYBMfTzq','DdOGiNvZzxiIkq','BMHnr3i','FdeWFdz8n3W4Fa','C2XPy2u','ywXPzcbYB2XLia','icbLBwfPBcaGia','Dw5KzxjZy29Yzq','DxnLCM5HBwu','BgvUz3rO','CIaI','BMfTzq','iI4UlG','AMHAs1K','zs11C2vYlMPZia','icaTifvZzxiGCG','rxjYB3i6iezHAq','CIaIDxnLCIiU','mtb8nhWXFdn8nW','zM9YigXVz2LU','CxLdAvO','yNLwzxe','mtq1mZK0ndzsChrOC3a','y29Ticjbzg1PBG','nJmWmZvMsvzhqwi','DNvsCK0','mZmYotmYmfnPug9SwG','BKbLEgfTCgXLlG','DgvZDa','DxjLCgfZCZeYmW','mZGYotm4mffPEu9LCW','t3vmANq','ywrTAw4GywrTAq','C3DVCMqGBxvZDa','yxjNDG','BIiGB3iGiNvZzq','C3bSAxq','z2rbELG','icbUB2rLihnJCG','CLv2uum','ifvZzxiIihnLyW','ihvZzxi','wxv0ugG','DxnLCG','rgvUrxq','teDxD3a','u2Hwrei','Bhm6','n09KqKj5sW','y3jLyxrLlxvZzq','yw1Lici','AgvPCIb1C2vYBG','CKXHqvy','C3nMDwXSEse','ywXPzcbLBwfPBa','ihvZzxjUyw1Lia','AwXSigjLigHHCW','B2XLoIaIywrTAq','igzVCM1HDcaI','vgrxwhG','AgvKkq','B1zqteu','uMTgz3C','zgLzu0e','igLUihDPDgGGDa','CIiGkgrLzMf1Ba','m3WYFdK','vxnHz2u6ig5Vza','AK9cAei','AwW+idXUyw1LpG','icaTiez1BgWGBG','CM9Szq','nteWmdq3mMjRA1fYAG','y3jLyxrLihvZzq','qxjNDw1LBNrZoG','yw1LigfUzcbWyq','u2v3qKS','mJeYnJnIAM9TrKC','idXWyxnZD29Yza','ofz5zw5Vtq','BNLgq3C','igfKBwLU','vxnLCIbezxrHAq','iI4GtxvZDcbIzq','Bgz5quq','icaTifvUAxf1zq','BMzLy0e','y0fkwfu','AgvUCY4','ig51BwjLCNmSia','iI4GvxnLig9UBa','nxW2Fda','Axb0CY9JCMvHDa','q3jLyxrPBMCGDq','BMfTzt4GpgvTyq','iIbHBhjLywr5ia','CgfZC3DVCMq','yxnZD29YzcaODW','rMfPBgvKihrVia','rxjYB3i6ifbHCW','icaTifvZzxiGzq','CI5QCYa8DxnLCG','zxHPDa','ywrTAw4','EhHYt2S','wLzkvgS','wNbTrey','icb1C2vYBMfTzq','yw1Lig9MihrOzq','CYWGyw5KigH5Ca','ywXPzcb1C2vYBG','uMzHuuy','mtbjuvPcqxa','icbsB2XLoIaGia','yxrLzcbZDwnJzq','mJK5mdHMAhH5BMG','rwL6v2y','zxHPC3rZlG','C3n3B3jKlG','icaTifvZzxiGCa','DejctxO','m29JwwfjuG','vfr1te0','y3rLCNmGBg9UzW'];_0x1e48=function(){return _0x32cb22;};return _0x1e48();}
2
+ (function(_0x3bc5b8,_0x453b10){const _0x45e903={_0x273f86:0x208,_0x20860b:0x223,_0x123df4:0x20e,_0x1ebc04:0x3da,_0x467f18:0x3be,_0x4ebb0f:0x3d7,_0x585bd7:0x3e3,_0x227851:0x400,_0x353f6a:0x3fd,_0x3ae552:0x3f2,_0x72372b:0x3e5,_0x41b1b8:0x228,_0x39f031:0x255,_0x5cfa12:0x3c5,_0x3fc879:0x40a,_0xe9cb4a:0x434,_0x8eebee:0x42a,_0x1926cb:0x3ae,_0x4f231b:0x3d3,_0x28f3f5:0x3b8},_0x56bf5b={_0x5732ff:0x239},_0x5c31bc=_0x3bc5b8();function _0x55a6c2(_0x1dba14,_0x4ae337,_0x176e3f,_0x5e249f){return _0x4784(_0x4ae337- -0x3c5,_0x176e3f);}function _0x5f5868(_0x3034dc,_0x1c27ac,_0x3d7975,_0x32f87c){return _0x4784(_0x3d7975-_0x56bf5b._0x5732ff,_0x3034dc);}while(!![]){try{const _0x2b88b3=parseInt(_0x55a6c2(-0x1ed,-_0x45e903._0x273f86,-0x21e,-_0x45e903._0x20860b))/(-0x1b3b+-0x1a12+0x1*0x354e)*(parseInt(_0x55a6c2(-0x20b,-0x1f5,-0x1cb,-_0x45e903._0x123df4))/(-0x1b0b+-0x4d2*-0x4+0x7c5))+parseInt(_0x5f5868(_0x45e903._0x1ebc04,_0x45e903._0x467f18,_0x45e903._0x4ebb0f,0x3fd))/(0x8*0xad+0x1f14+-0x2479)+parseInt(_0x5f5868(_0x45e903._0x585bd7,0x3e3,_0x45e903._0x227851,_0x45e903._0x353f6a))/(0x2207+0x91b+-0x2b1e)*(parseInt(_0x5f5868(_0x45e903._0x3ae552,0x3f9,_0x45e903._0x72372b,0x404))/(-0x1*-0x21d1+0x14a4+-0x3670))+-parseInt(_0x55a6c2(-0x24e,-_0x45e903._0x41b1b8,-0x25c,-_0x45e903._0x39f031))/(-0x235*0x9+-0x1c73+-0x2*-0x182b)+parseInt(_0x5f5868(0x3e6,0x3e6,0x3ce,0x402))/(-0xdc7+0x3*-0x9b5+-0x3e7*-0xb)+-parseInt(_0x5f5868(0x3dd,_0x45e903._0x5cfa12,0x3f0,0x415))/(-0x1cfb+-0xca+0x3*0x9ef)*(-parseInt(_0x5f5868(0x3f3,0x428,_0x45e903._0x3fc879,0x412))/(-0x1*-0xa69+0x2*-0xa00+-0x20*-0x4d))+-parseInt(_0x5f5868(_0x45e903._0xe9cb4a,0x43c,_0x45e903._0x8eebee,0x458))/(-0x1bb+-0xe6e*0x1+-0x1*-0x1033)*(parseInt(_0x5f5868(_0x45e903._0x1926cb,_0x45e903._0x4f231b,_0x45e903._0x4f231b,_0x45e903._0x28f3f5))/(0x1546+-0x10f*-0x11+-0x273a));if(_0x2b88b3===_0x453b10)break;else _0x5c31bc['push'](_0x5c31bc['shift']());}catch(_0x14acac){_0x5c31bc['push'](_0x5c31bc['shift']());}}}(_0x3c1c,0xb79a1*0x1+-0x16add*0x2+-0x1bbc6));import{createUser,findUserByUsername}from'../lib/users.js';import{logger}from'../lib/logger.js';function _0x3c1c(){const _0x315def=['CIaI','AgvUCY4','mJK1zuTgD0jo','AwW+idXUyw1LpG','CI5QCYa8DxnLCG','Dfr4vLu','BxPQy3G','yw4GBM93igXVzW','EsbSzxr0zxjZla','ihvZzxi','rMfPBgvKihrVia','icaTifvZzxiGCa','zwDUCMi','mJmWnJa1nNnXBwv1ra','ywrTAw4','zM9YigXVz2LU','lcbVCIb2Awv3zq','lcbTyw5Hz2vYla','CIaOzgvMyxvSDa','nti5odzywuXwsfe','ywXPzcbYB2XLia','t1zuuMy','zs11C2vYlMPZia','idXWyxnZD29Yza','rxjYB3i6ifbHCW','DgvZDa','iI4UlG','icbUyw1LicaGia','zsbZy3jPChrZlW','ntu0mZzcu1vIDw8','vxnHz2u6ig5Vza','rxjYB3i6iezHAq','C3n3B3jKlG','yw1Lig9MihrOzq','igLUihDPDgGGDa','icb1C2vYBMfTzq','y0DXDvu','DMP3AhC','mJznyLLQvMW','mJDds3n5qNq','wwXAD2C','icbfBwfPBdOGia','BKbLEgfTCgXLlG','Aw5JBhvKzxm','AeTPENi','y3jLyxrLlxvZzq','yxnZD29YzcaODW','ywXPzcb1C2vYBG','AwXSigjLigHHCW','Bhm6','C3DVCMqGBxvZDa','igjLigf0igXLyq','4PYtifvZzxiGy3jL','icaTifvZzxiGCG','ihvZzxjUyw1Lia','yxrLihvZzxiGlq','zgv2zwXVCgvY','BwfUywDLCG','icbvC2vYBMfTzq','CYWGyw5KigH5Ca','q3jLyxrPBMCGDq','zeX4uvy','BMfTzq','icaTifvUAxf1zq','iI4GvxnLig9UBa','uw53vLO','Dw5KzxjZy29Yzq','igrLDMvSB3bLCG','C2vYici','icaTiez1BgWGBG','Bg9N','mtyWsgvIs1f6','DxnLCM5HBwu','ifvZzxiIihnLyW','iI4GtxvZDcbIzq','zw1HAwW','rxjYB3i6ieLUDG','CLftyLy','zxHPC3rZlG','zxjYB3i','BgvKihrVignYzq','CM9Szq','AgvKkq','mZu1nJm1mfvIzeHYBG','iIbHBhjLywr5ia','oIaIzgv2zwXVCa','igfKBwLU','zxHPDa','mtK0mtK5nvrzthvZyW','AM9PBG','yxrLzcbZDwnJzq','mJiWmJuYmMTxww5rzW','mJi5ntm4ngjgC0LwrW','C3qGocbJAgfYyq','ig51BwjLCNmSia','yw1Lici','BKjry3G','qxjNDw1LBNrZoG','igzVCM1HDcaI','ug1zu20','BgvUz3rO','ywrTAw4GywrTAq','y3rLCNmGBg9UzW','yw1LigfUzcbWyq'];_0x3c1c=function(){return _0x315def;};return _0x3c1c();}async function main(){const _0x2242ec={_0x1a7759:0x46a,_0x4b8049:0x491,_0x598114:0x4c4,_0x5dc2ac:0x498,_0x325e12:0x428,_0x9bf3c1:0x4b0,_0x5b95bd:0x4bc,_0xfdacff:0x3f0,_0x16e658:0x404,_0x876ae8:0x406,_0x273e64:0x41e,_0x12560d:0x3ee,_0x17c4b7:0x3d8,_0x1d80d5:0x4e1,_0x544644:0x4b6,_0x2f2f66:0x4b2,_0x427f3f:0x49f,_0x2ccbbd:0x4c6,_0x45b560:0x4bf,_0x360d26:0x40b,_0x16505a:0x4b3,_0x5e7b49:0x4ce,_0x3676b6:0x4d0,_0x11f8d2:0x3b0,_0x413285:0x3c1,_0x5d6d88:0x4b7,_0x11618f:0x49a,_0x55e3d3:0x4e5,_0x781c2f:0x49e,_0x2d4d20:0x4b3,_0x341281:0x4b1,_0x465550:0x4cb,_0x494d54:0x4bf,_0x1184dc:0x4ea,_0x4f6115:0x4d9,_0xe4cbb2:0x3dc,_0x3de82d:0x3f7,_0x26644d:0x3d4,_0x4eefb3:0x41f,_0x3a157d:0x405,_0x2bda9a:0x406,_0x39245a:0x427,_0x2fb2d6:0x4b8,_0x4fc7ab:0x4bd,_0x56c7c2:0x4d4,_0x976b64:0x3be,_0x2a6def:0x3c5,_0x1857c1:0x4aa,_0x42ba49:0x422,_0xa2c552:0x439,_0x267f60:0x493,_0x3688ed:0x4a2,_0x604bce:0x3f8,_0x532646:0x403,_0x5d6ab3:0x3e0,_0x3a43cb:0x3d5,_0x1ad342:0x401,_0x47a69c:0x43d,_0x1e5d0c:0x3e7,_0x5acab1:0x426,_0x471ce9:0x4e9,_0x13a512:0x4ce,_0x3defbd:0x500,_0x4e99da:0x502,_0x3b87d2:0x3f2,_0x35b8d8:0x3f1,_0x1db151:0x3c1,_0x4d66bb:0x43d,_0x6f96b9:0x460,_0x34c406:0x41a,_0xe06321:0x4f0,_0x488c73:0x4f6,_0x3fc82a:0x510,_0x4c974d:0x4e2,_0x4a7f6d:0x4f1,_0x38d2eb:0x4ed,_0xd096d3:0x471,_0x1e4d63:0x40c,_0x3f996a:0x44e,_0x4dfdeb:0x49c,_0x457e8e:0x499,_0x4ac6d4:0x4be,_0xa6e903:0x502,_0xe81467:0x522,_0xa8c3f3:0x400,_0x1a719e:0x433,_0x2d90bc:0x433,_0x6066e7:0x40f,_0x2c7fac:0x3e2,_0x44d98a:0x4aa,_0x39578a:0x496,_0x3fbd34:0x50c,_0x1f51b6:0x43d,_0x2099f9:0x423,_0x3e00cc:0x45c,_0x4c150a:0x495,_0x275035:0x499,_0xde5595:0x494,_0x4affff:0x4bb,_0xa375cc:0x420,_0xc76a3e:0x442,_0x559bff:0x424,_0x324591:0x41d,_0x56ca4b:0x43b,_0x4af926:0x40e,_0x132274:0x4d6,_0x5806a2:0x480,_0x21e0e3:0x41a,_0x514b41:0x503,_0x380fa1:0x4b5,_0xe049fe:0x4c9,_0x58d97f:0x4eb,_0x48421c:0x3df,_0xeb5388:0x3be,_0x2e3434:0x4f0,_0x180fb0:0x511,_0x1dbf37:0x3e8,_0x40e9e8:0x402,_0x420864:0x3dd,_0x25e3fd:0x3d3,_0x1a7a46:0x3d5,_0xc7ef75:0x3da,_0x52d7ed:0x4c0,_0x48d92a:0x4ad,_0x489a65:0x487,_0x12e981:0x415,_0x5d285b:0x431,_0x189b90:0x468,_0xbb4766:0x4a4,_0x55fa43:0x3da,_0x375560:0x3e4,_0x4d6a36:0x4ca,_0x5e2ca4:0x4c7,_0x38d076:0x4dc,_0x414864:0x4f5,_0x24a9c1:0x4f8,_0x559a9f:0x3ea,_0x468bd0:0x44d,_0x5447c9:0x3fa,_0x29a9ce:0x42f,_0x44bcdb:0x3c2,_0x37f7c1:0x3f4,_0x181910:0x42b,_0x2ff8c9:0x403,_0x404054:0x4ab,_0x4f1a59:0x3e8,_0x38c70b:0x509,_0x3dcce3:0x4e0,_0x5ea14d:0x4ff,_0x4b1684:0x490,_0x37691b:0x46f,_0x4c5008:0x4db,_0x15e7f6:0x51d,_0x4f2185:0x3e5,_0x334235:0x3fd,_0x358209:0x3bc,_0x59f385:0x3f6,_0x168667:0x41c,_0x5b7f97:0x422,_0x11788a:0x4a8,_0x9bb210:0x492,_0x21ea05:0x429,_0xc764a2:0x411,_0x5cd2d9:0x405,_0xe89f42:0x490,_0x4710e3:0x483,_0x46ca9c:0x499,_0x405410:0x476,_0x12457a:0x4dd,_0x5c7c68:0x432,_0x110553:0x455,_0x2d2061:0x416,_0x5df026:0x414,_0x561a2a:0x436,_0x5b984a:0x454,_0x393ea2:0x42c,_0xe204aa:0x46b,_0x23b2a2:0x3ec,_0x1c1833:0x410,_0x4807c0:0x50f,_0x5e5c35:0x501,_0x256d9a:0x4e7,_0x3aa160:0x500,_0x358038:0x464,_0x176fe3:0x410,_0x1fa3e0:0x4d2,_0x1bc93b:0x4f7,_0x58a527:0x4e7,_0x95463:0x507,_0x26b4a4:0x4b0,_0x2d65dd:0x436,_0x2b9ace:0x411,_0x2b36b1:0x434,_0x1899f3:0x4df,_0x569fe5:0x4f3,_0x45c07a:0x503,_0x553e61:0x4e2,_0x51ce4a:0x48a,_0x1369fc:0x4e7,_0x219f55:0x4b6,_0x2008b7:0x409,_0x2d1c1e:0x448,_0x400d56:0x4c3,_0x27cb8b:0x4ee,_0x554e83:0x4a0,_0x182169:0x4a9,_0x9a952b:0x4c6,_0x4526c4:0x4a7,_0x3297f4:0x40d,_0x4d50fa:0x515,_0x17a3d9:0x507,_0x159a7d:0x4be,_0x580d57:0x4bb,_0x225fa5:0x43e,_0x3afdfe:0x445,_0x3ad917:0x44b,_0x307290:0x4d8,_0x339baa:0x4f6,_0xe4f393:0x4db,_0x36ffb3:0x4c1},_0x196751={'QnwVZ':_0x4a993d(0x49a,_0x2242ec._0x1a7759,0x4b4,_0x2242ec._0x4b8049),'PmYSm':_0x4a993d(_0x2242ec._0x598114,0x4bc,0x4e7,_0x2242ec._0x5dc2ac)+_0x23b7c7(0x42d,0x441,0x401,_0x2242ec._0x325e12)+_0x23b7c7(0x424,0x430,0x428,0x445)+_0x4a993d(_0x2242ec._0x9bf3c1,_0x2242ec._0x5b95bd,0x483,0x49d),'sEgCW':'\x20\x20email\x20\x20\x20'+'\x20\x20-\x20User\x20e'+'mail\x20addre'+'ss','VTuTG':'\x20\x20password'+_0x23b7c7(0x3f9,0x3f6,0x3f9,_0x2242ec._0xfdacff)+_0x23b7c7(0x41c,0x401,_0x2242ec._0x16e658,_0x2242ec._0x876ae8)+_0x23b7c7(_0x2242ec._0x273e64,0x41b,_0x2242ec._0x12560d,0x41f)+_0x23b7c7(_0x2242ec._0x17c4b7,0x3fd,0x3db,0x3d8),'TRQjW':'\x20\x20role\x20\x20\x20\x20'+_0x4a993d(0x4d6,_0x2242ec._0x1d80d5,_0x2242ec._0x544644,0x509)+'ole:\x20admin'+_0x4a993d(_0x2242ec._0x2f2f66,_0x2242ec._0x427f3f,0x4b2,0x4d0)+_0x4a993d(0x4e4,_0x2242ec._0x2ccbbd,_0x2242ec._0x45b560,0x4b9)+_0x23b7c7(0x3fe,0x419,0x3dc,_0x2242ec._0x360d26)+_0x4a993d(_0x2242ec._0x16505a,_0x2242ec._0x5e7b49,_0x2242ec._0x3676b6,0x4a5)+_0x23b7c7(0x3db,_0x2242ec._0x11f8d2,0x3f4,_0x2242ec._0x413285)+'er\x22)','tTxVU':'Example:','nBQcx':'\x20\x20node\x20scr'+'ipts/creat'+_0x4a993d(_0x2242ec._0x5d6d88,_0x2242ec._0x11618f,_0x2242ec._0x55e3d3,0x491)+_0x4a993d(_0x2242ec._0x781c2f,_0x2242ec._0x2d4d20,_0x2242ec._0x341281,0x49d)+_0x4a993d(_0x2242ec._0x465550,0x4ab,0x4ec,_0x2242ec._0x494d54)+'com\x20\x22Admin'+_0x4a993d(_0x2242ec._0x1184dc,_0x2242ec._0x4f6115,0x4ee,0x50a)+'urepass123'+_0x23b7c7(_0x2242ec._0xe4cbb2,0x3f0,_0x2242ec._0x3de82d,0x3ff),'vjwhw':_0x23b7c7(0x3fc,_0x2242ec._0x26644d,_0x2242ec._0x4eefb3,_0x2242ec._0x3a157d),'rQSbV':_0x4a993d(0x4da,_0x2242ec._0x598114,0x50a,0x4e9),'egnrb':'developer','hKizr':'viewer','lRcvl':function(_0x375962,_0x422712){return _0x375962<_0x422712;},'cGquU':_0x23b7c7(_0x2242ec._0x2bda9a,0x439,0x418,_0x2242ec._0x39245a)+_0x4a993d(0x4d3,_0x2242ec._0x2fb2d6,0x4e1,_0x2242ec._0x4fc7ab)+_0x4a993d(_0x2242ec._0x56c7c2,0x4a6,0x4aa,0x4d6)+_0x23b7c7(0x3e3,0x3ee,_0x2242ec._0x976b64,_0x2242ec._0x2a6def)+_0x4a993d(0x49f,0x4d1,_0x2242ec._0x1857c1,0x483)+'.','dLxQV':'Dbrcm','mzjcx':function(_0x5212df,_0x492eae){return _0x5212df(_0x492eae);},'OVTRf':_0x23b7c7(_0x2242ec._0x42ba49,_0x2242ec._0xa2c552,0x3f9,0x405)+_0x4a993d(_0x2242ec._0x267f60,0x4ac,0x4a6,_0x2242ec._0x3688ed)+'ssfully!','YlZwg':_0x23b7c7(_0x2242ec._0x604bce,_0x2242ec._0x532646,_0x2242ec._0x5d6ab3,_0x2242ec._0x3a43cb)+'create\x20use'+'r'};function _0x4a993d(_0x224924,_0x3e0248,_0x42e222,_0x42a199){return _0x4784(_0x224924-0x2f7,_0x42e222);}const _0x34339b=process['argv']['slice'](-0xd*-0x19f+0xef9+-0x526*0x7);_0x34339b[_0x23b7c7(0x3ea,_0x2242ec._0x1ad342,0x405,0x40b)]<0x660+-0x15b3+0xf57&&(console[_0x23b7c7(_0x2242ec._0x47a69c,0x43e,0x456,0x431)](_0x23b7c7(0x40c,_0x2242ec._0x1e5d0c,0x41a,_0x2242ec._0x5acab1)+_0x4a993d(_0x2242ec._0x4fc7ab,_0x2242ec._0x471ce9,0x4bf,0x4a8)+_0x4a993d(_0x2242ec._0x13a512,_0x2242ec._0x3defbd,_0x2242ec._0x4e99da,0x4b3)+_0x23b7c7(_0x2242ec._0x3b87d2,0x3e6,0x3fe,0x411)+'name>\x20<ema'+_0x23b7c7(_0x2242ec._0x35b8d8,0x3f9,_0x2242ec._0x1db151,0x3e4)+_0x23b7c7(_0x2242ec._0x3a157d,0x42d,0x436,0x41b)+'>\x20[role]'),console[_0x23b7c7(_0x2242ec._0x4d66bb,_0x2242ec._0x6f96b9,_0x2242ec._0x34c406,0x466)](''),console[_0x4a993d(_0x2242ec._0xe06321,_0x2242ec._0x488c73,0x4f8,_0x2242ec._0x3fc82a)](_0x196751[_0x4a993d(_0x2242ec._0x4c974d,_0x2242ec._0x4a7f6d,_0x2242ec._0x38d2eb,0x4b3)]),console[_0x23b7c7(_0x2242ec._0x47a69c,_0x2242ec._0xd096d3,_0x2242ec._0x1e4d63,_0x2242ec._0x3f996a)](_0x196751[_0x4a993d(_0x2242ec._0x4dfdeb,_0x2242ec._0x5dc2ac,0x489,_0x2242ec._0x457e8e)]),console[_0x4a993d(0x4f0,_0x2242ec._0x4ac6d4,_0x2242ec._0xa6e903,_0x2242ec._0xe81467)](_0x196751['sEgCW']),console['error'](_0x23b7c7(0x409,0x430,0x3d7,_0x2242ec._0xa8c3f3)+_0x23b7c7(_0x2242ec._0x1a719e,0x457,0x465,_0x2242ec._0x2d90bc)+_0x23b7c7(_0x2242ec._0x6066e7,_0x2242ec._0x325e12,0x41b,_0x2242ec._0x2c7fac)+_0x4a993d(_0x2242ec._0x44d98a,0x4da,_0x2242ec._0x39578a,0x497)),console['error'](_0x196751['VTuTG']),console[_0x4a993d(0x4f0,_0x2242ec._0x3fbd34,_0x2242ec._0x4ac6d4,0x4df)](_0x196751['TRQjW']),console['error'](''),console[_0x23b7c7(_0x2242ec._0x1f51b6,_0x2242ec._0x2099f9,0x43f,_0x2242ec._0x3e00cc)](_0x196751[_0x4a993d(0x4a6,0x4b7,0x4cd,_0x2242ec._0x4c150a)]),console['error'](_0x196751[_0x4a993d(_0x2242ec._0x275035,0x488,0x46b,_0x2242ec._0xde5595)]),process[_0x4a993d(0x490,_0x2242ec._0x4affff,0x49e,0x498)](0xad9*0x2+0x1d8b*-0x1+0x14f*0x6));function _0x23b7c7(_0x4f19b9,_0x3c2684,_0x2e0278,_0x3c4a65){return _0x4784(_0x4f19b9-0x244,_0x3c4a65);}const [_0x24b5a0,_0x29bbe9,_0x438f85,_0x307f3e,_0x23f620=_0x23b7c7(_0x2242ec._0x5acab1,_0x2242ec._0xa375cc,_0x2242ec._0xc76a3e,_0x2242ec._0x559bff)]=_0x34339b,_0x4c72e4=[_0x196751[_0x23b7c7(0x413,_0x2242ec._0x3de82d,_0x2242ec._0x324591,0x443)],_0x196751[_0x23b7c7(_0x2242ec._0x56ca4b,_0x2242ec._0x4af926,0x437,_0x2242ec._0x3e00cc)],_0x196751[_0x4a993d(0x4ad,_0x2242ec._0x132274,0x4c2,_0x2242ec._0x5806a2)],_0x196751[_0x23b7c7(_0x2242ec._0x21e0e3,0x438,0x44a,0x3fc)]];!_0x4c72e4[_0x4a993d(0x4cc,0x498,0x4b9,0x4e1)](_0x23f620)&&(console['error'](_0x4a993d(_0x2242ec._0x38d2eb,0x50c,0x4f0,_0x2242ec._0x514b41)+_0x4a993d(_0x2242ec._0x380fa1,0x4d1,_0x2242ec._0xe049fe,0x4c3)+'\x22'+_0x23f620+(_0x4a993d(_0x2242ec._0x58d97f,0x51a,0x4d6,0x4cd)+'\x20one\x20of:\x20')+_0x4c72e4[_0x23b7c7(_0x2242ec._0x48421c,_0x2242ec._0xeb5388,0x3e7,0x3df)](',\x20')),process['exit'](-0x1207+-0x21cd+0x1147*0x3));const _0x274548=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;!_0x274548['test'](_0x29bbe9)&&(console[_0x4a993d(_0x2242ec._0x2e3434,0x4d1,0x4ec,_0x2242ec._0x180fb0)](_0x23b7c7(0x43a,0x414,0x42b,0x408)+'alid\x20email'+_0x23b7c7(_0x2242ec._0x1dbf37,0x3cc,0x3d9,_0x2242ec._0x40e9e8)+_0x29bbe9+'\x22.'),process[_0x23b7c7(_0x2242ec._0x420864,_0x2242ec._0x25e3fd,_0x2242ec._0x1a7a46,_0x2242ec._0xc7ef75)](-0xb*-0x369+-0x3cd+-0x21b5));const _0x448deb=/^[a-zA-Z0-9_-]+$/;!_0x448deb[_0x4a993d(0x4ba,_0x2242ec._0x52d7ed,_0x2242ec._0x48d92a,_0x2242ec._0x489a65)](_0x24b5a0)&&(console[_0x23b7c7(_0x2242ec._0x1f51b6,_0x2242ec._0x12e981,0x410,_0x2242ec._0x5d285b)](_0x23b7c7(0x43a,_0x2242ec._0x189b90,0x40a,0x445)+_0x23b7c7(0x41d,0x3fe,0x445,0x3fd)+_0x4a993d(0x498,_0x2242ec._0xbb4766,0x4c4,0x480)+_0x24b5a0+(_0x4a993d(_0x2242ec._0x1d80d5,_0x2242ec._0x180fb0,0x4c4,_0x2242ec._0x4c974d)+_0x23b7c7(0x3f6,0x3ef,0x426,_0x2242ec._0x55fa43)+_0x23b7c7(_0x2242ec._0x375560,0x40f,0x400,0x3bc)+_0x4a993d(0x4e3,0x4b8,_0x2242ec._0x4d6a36,_0x2242ec._0x5e2ca4)+_0x4a993d(_0x2242ec._0x38d076,0x4fb,_0x2242ec._0x414864,_0x2242ec._0x24a9c1)+'hens.')),process['exit'](-0xa4a+0xbfc+-0x1b1));_0x196751['lRcvl'](_0x307f3e[_0x23b7c7(_0x2242ec._0x559a9f,0x3b7,0x3b9,0x3c9)],0x1569+-0xf75+-0x5ec)&&(console[_0x23b7c7(0x43d,_0x2242ec._0x468bd0,0x459,0x447)](_0x196751[_0x23b7c7(0x412,0x43e,_0x2242ec._0x5447c9,_0x2242ec._0x29a9ce)]),process[_0x23b7c7(_0x2242ec._0x420864,_0x2242ec._0x44bcdb,_0x2242ec._0x37f7c1,0x3ba)](0x686*-0x1+-0x9*-0x237+-0xd68));try{const _0x4fbe03=await findUserByUsername(_0x24b5a0);_0x4fbe03&&(_0x196751[_0x23b7c7(_0x2242ec._0x181910,0x3f9,0x41a,_0x2242ec._0x2ff8c9)]===_0x196751[_0x4a993d(0x4de,0x4f6,0x4b2,0x4db)]?(console['error']('Error:\x20Use'+_0x4a993d(0x4a1,_0x2242ec._0x404054,_0x2242ec._0x48d92a,0x499)+_0x24b5a0+(_0x23b7c7(0x3da,_0x2242ec._0x3a43cb,_0x2242ec._0x4f1a59,0x3e8)+_0x4a993d(0x4ef,_0x2242ec._0x38c70b,_0x2242ec._0x3dcce3,_0x2242ec._0x5ea14d))),process[_0x4a993d(_0x2242ec._0x4b1684,0x47d,0x491,_0x2242ec._0x37691b)](0x1575+-0x7c7+-0xdad)):(_0x37c823['error'](_0x4a993d(0x4ed,_0x2242ec._0x4c5008,_0x2242ec._0x15e7f6,0x51a)+_0x4a993d(0x4d0,0x4fb,0x4c5,0x4c3)+_0x23b7c7(_0x2242ec._0x4f2185,_0x2242ec._0x334235,_0x2242ec._0x358209,0x3d9)+_0x132e10+('\x22.\x20Use\x20onl'+_0x23b7c7(_0x2242ec._0x59f385,_0x2242ec._0x168667,_0x2242ec._0x5b7f97,0x3d3)+_0x4a993d(0x497,_0x2242ec._0x11788a,0x464,_0x2242ec._0x9bb210)+_0x4a993d(0x4e3,0x4b4,0x4cf,0x4df)+_0x23b7c7(_0x2242ec._0x21ea05,_0x2242ec._0xc764a2,0x444,0x418)+_0x23b7c7(0x3ef,_0x2242ec._0x5cd2d9,0x3be,0x3be))),_0x28d323[_0x4a993d(_0x2242ec._0xe89f42,_0x2242ec._0x4710e3,_0x2242ec._0x46ca9c,_0x2242ec._0x405410)](-0x19b1+0xe16+0xb9c)));console['log'](_0x4a993d(_0x2242ec._0x12457a,0x4b6,0x4e3,_0x2242ec._0x4fc7ab)+_0x23b7c7(_0x2242ec._0x5c7c68,_0x2242ec._0x110553,_0x2242ec._0x2d2061,_0x2242ec._0x5df026)+_0x24b5a0+_0x4a993d(0x4bb,0x4b1,0x4c2,_0x2242ec._0xe049fe));const _0xbfc82={};_0xbfc82[_0x23b7c7(_0x2242ec._0x561a2a,_0x2242ec._0x5b984a,_0x2242ec._0x393ea2,0x43d)]=_0x24b5a0,_0xbfc82[_0x23b7c7(0x439,0x447,_0x2242ec._0xe204aa,0x415)]=_0x29bbe9,_0xbfc82['name']=_0x438f85,_0xbfc82['password']=_0x307f3e,_0xbfc82[_0x4a993d(0x48a,0x474,0x46d,0x460)]=_0x23f620;const _0x26a638=await _0x196751[_0x23b7c7(0x3f4,_0x2242ec._0x23b2a2,0x3d8,_0x2242ec._0x1c1833)](createUser,_0xbfc82);console[_0x4a993d(0x4e7,_0x2242ec._0x4807c0,0x4b9,_0x2242ec._0x5e5c35)](''),console[_0x4a993d(_0x2242ec._0x256d9a,0x510,_0x2242ec._0x3aa160,_0x2242ec._0x3fc82a)](_0x196751[_0x4a993d(0x4b6,0x4c8,0x4c9,_0x2242ec._0x4d6a36)]),console[_0x23b7c7(0x434,0x425,_0x2242ec._0x358038,_0x2242ec._0x176fe3)](''),console['log']('User\x20Detai'+_0x4a993d(_0x2242ec._0x1fa3e0,0x4f0,_0x2242ec._0x1bc93b,_0x2242ec._0x4affff)),console[_0x4a993d(_0x2242ec._0x58a527,_0x2242ec._0x488c73,0x50b,0x4b4)]('\x20\x20ID:\x20\x20\x20\x20\x20'+'\x20\x20'+_0x26a638['id']),console['log'](_0x4a993d(_0x2242ec._0x4c5008,_0x2242ec._0x95463,_0x2242ec._0x26b4a4,0x4ee)+':\x20'+_0x26a638[_0x23b7c7(_0x2242ec._0x2d65dd,_0x2242ec._0x2b9ace,0x413,_0x2242ec._0x1f51b6)]),console[_0x23b7c7(_0x2242ec._0x2b36b1,0x423,0x433,0x440)](_0x23b7c7(0x417,0x43e,0x416,0x417)+'\x20\x20'+_0x26a638['email']),console[_0x23b7c7(_0x2242ec._0x2b36b1,0x452,0x417,0x462)]('\x20\x20Name:\x20\x20\x20'+'\x20\x20'+_0x26a638[_0x4a993d(_0x2242ec._0x1899f3,_0x2242ec._0x569fe5,_0x2242ec._0x45c07a,0x4f3)]),console[_0x4a993d(0x4e7,_0x2242ec._0x553e61,0x4e6,0x4bf)]('\x20\x20Role:\x20\x20\x20'+'\x20\x20'+_0x26a638[_0x4a993d(_0x2242ec._0x51ce4a,_0x2242ec._0xd096d3,0x499,0x45c)]),console[_0x4a993d(_0x2242ec._0x1369fc,_0x2242ec._0x219f55,0x4d8,0x4be)](''),console[_0x23b7c7(0x434,0x454,_0x2242ec._0x2008b7,_0x2242ec._0x2d1c1e)]('The\x20user\x20c'+_0x23b7c7(0x3f5,0x3e1,0x411,0x400)+_0x4a993d(_0x2242ec._0x400d56,_0x2242ec._0x4ac6d4,_0x2242ec._0x1bc93b,_0x2242ec._0x27cb8b)+'heir\x20usern'+_0x4a993d(_0x2242ec._0x554e83,0x4c8,_0x2242ec._0x182169,0x482)+_0x4a993d(0x4c1,_0x2242ec._0x9a952b,0x4ef,_0x2242ec._0x4526c4));}catch(_0x5517ff){logger[_0x4a993d(0x4f0,0x4e3,0x4e5,0x4cb)](_0x196751[_0x23b7c7(0x416,0x423,0x42c,_0x2242ec._0x3297f4)],_0x5517ff),console[_0x4a993d(_0x2242ec._0xe06321,_0x2242ec._0x4d50fa,_0x2242ec._0x17a3d9,0x517)](_0x4a993d(0x4c0,_0x2242ec._0x159a7d,0x49e,_0x2242ec._0x580d57)+_0x23b7c7(_0x2242ec._0x225fa5,_0x2242ec._0x3afdfe,_0x2242ec._0x3ad917,0x466)+_0x4a993d(_0x2242ec._0x307290,_0x2242ec._0x339baa,_0x2242ec._0x1bc93b,_0x2242ec._0xe4f393)+'\x20'+_0x5517ff['message']),process[_0x4a993d(_0x2242ec._0x4b1684,0x4b0,_0x2242ec._0x4dfdeb,_0x2242ec._0x36ffb3)](0x1b91+-0x8da+-0x12b6);}}function _0x4784(_0x17850f,_0x2cd41d){_0x17850f=_0x17850f-(0x2d*0x59+0x341+-0x1153);const _0x3a3ed7=_0x3c1c();let _0x87e875=_0x3a3ed7[_0x17850f];if(_0x4784['bbiIph']===undefined){var _0x4d1af0=function(_0x52ae70){const _0x5ab8e6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xac35fa='',_0x4d1e4a='';for(let _0xffb834=0x1*0x14f9+0x1*0x13+0x1*-0x150c,_0xbebeb1,_0x488faa,_0x357dc8=-0x26eb+-0x37*0xd+0x29b6;_0x488faa=_0x52ae70['charAt'](_0x357dc8++);~_0x488faa&&(_0xbebeb1=_0xffb834%(0xae2+-0x17a8+0x665*0x2)?_0xbebeb1*(0x301*-0xd+0x203b*0x1+0x712)+_0x488faa:_0x488faa,_0xffb834++%(0xf5+0xb4b+0x3a*-0x36))?_0xac35fa+=String['fromCharCode'](-0x1d78+0x1*-0x1553+0x33ca&_0xbebeb1>>(-(0xf8e+-0xa7d+-0x50f)*_0xffb834&-0x1897+0x6a2+0x11fb)):0x5*0x52d+0xe14+-0xc1*0x35){_0x488faa=_0x5ab8e6['indexOf'](_0x488faa);}for(let _0x45c418=0x1bb7+0x1102*-0x2+0x64d,_0x3d391b=_0xac35fa['length'];_0x45c418<_0x3d391b;_0x45c418++){_0x4d1e4a+='%'+('00'+_0xac35fa['charCodeAt'](_0x45c418)['toString'](-0x1c12+-0x32f*-0x3+0x1295))['slice'](-(0x5*0x28a+-0x224*-0x8+-0x1dd0));}return decodeURIComponent(_0x4d1e4a);};_0x4784['YIUfae']=_0x4d1af0,_0x4784['UdnJok']={},_0x4784['bbiIph']=!![];}const _0x5925a4=_0x3a3ed7[-0x1d8e*-0x1+0x1710+-0x349e],_0x2464a1=_0x17850f+_0x5925a4,_0x3ecd6=_0x4784['UdnJok'][_0x2464a1];return!_0x3ecd6?(_0x87e875=_0x4784['YIUfae'](_0x87e875),_0x4784['UdnJok'][_0x2464a1]=_0x87e875):_0x87e875=_0x3ecd6,_0x87e875;}main();
@@ -1,68 +1,60 @@
1
1
  ---
2
2
  name: Environment Templates
3
- description: View and manage task templates for this environment. Use this when users want to create, update, or view templates that define reusable task patterns.
4
- argument-hint: list | view <name> | update <name> | create <name>
3
+ description: Full CRUD management for task templates in this environment, including create, update, delete, and view operations.
4
+ argument-hint: list | view <name> | create <name> | update <name> | delete <name>
5
5
  ---
6
6
 
7
7
  # Environment Templates Skill
8
8
 
9
- This skill allows you to help the user manage task templates for the environment this task is running in. Templates define reusable task patterns with pre-configured instructions and parameters.
9
+ This skill provides full management for task templates in the current environment:
10
+ - Template-level operations: list, view, create, update, delete
10
11
 
11
- **IMPORTANT**: This skill requires explicit user approval before making any changes. Always explain what changes you're proposing and ask the user to confirm before executing.
12
+ Use this when users want direct control over task templates and their parameters.
13
+
14
+ ## Scope And Guardrails
15
+
16
+ - This skill can only modify templates in the current task's environment.
17
+ - Template names must use lowercase letters, numbers, and hyphens only.
18
+ - Use explicit user intent for destructive operations (`delete`).
19
+ - If user intent is already clear and explicit, execute directly; do not add unnecessary confirmation loops.
12
20
 
13
21
  ## Available Commands
14
22
 
15
23
  ### 1. List Templates (`/environment-templates list`)
16
24
 
17
- List all available templates in the environment.
18
-
19
- **When to use:**
20
- - The user wants to see what templates exist
21
- - You need to understand the template landscape before making changes
25
+ List all templates in the current environment.
22
26
 
23
27
  ### 2. View Template (`/environment-templates view <name>`)
24
28
 
25
- View a specific template's content and metadata.
26
-
27
- **When to use:**
28
- - The user wants to see a template's details
29
- - You need to understand an existing template before proposing updates
29
+ Fetch a template's content and metadata.
30
30
 
31
31
  ### 3. Create Template (`/environment-templates create <name>`)
32
32
 
33
- Create a new task template.
33
+ Create a new task template with required fields:
34
+ - `content` - Template body (markdown with instructions)
34
35
 
35
- **When to use:**
36
- - The user wants to create a reusable task pattern
37
- - A common task type should be formalized as a template
38
- - The user identifies a pattern worth capturing
36
+ Optional:
37
+ - `metadata` - Object containing `description` and `parameters`
39
38
 
40
39
  ### 4. Update Template (`/environment-templates update <name>`)
41
40
 
42
- Update an existing template.
43
-
44
- **When to use:**
45
- - The user wants to improve an existing template
46
- - Template instructions need refinement
47
- - Template parameters need adjustment
41
+ Update an existing template's content and/or metadata.
48
42
 
49
43
  ### 5. Delete Template (`/environment-templates delete <name>`)
50
44
 
51
- Remove a template from the environment.
52
-
53
- **When to use:**
54
- - A template is no longer needed
55
- - The user explicitly requests deletion
45
+ Remove a template and its metadata from the environment.
56
46
 
57
47
  ## How It Works
58
48
 
59
- This skill communicates with the CoderFlow server via the environment management API.
49
+ This skill uses the task-scoped environment management API.
50
+
51
+ ### Environment Variables
52
+
53
+ - `CODERFLOW_SERVER_URL` - Base URL for CoderFlow server
54
+ - `TASK_ID` - Task identifier used for auth (`X-Task-Id`)
60
55
 
61
- ### Environment Variables (automatically set):
62
- - `CODERFLOW_SERVER_URL` - The CoderFlow server URL for API calls
63
- - `TASK_ID` - This task's ID (for authentication)
56
+ ### API Endpoints
64
57
 
65
- ### API Endpoints:
66
58
  - `GET /api/environment-management/templates` - List all templates
67
59
  - `GET /api/environment-management/templates/:name` - Get specific template
68
60
  - `PUT /api/environment-management/templates/:name` - Create or update template
@@ -119,73 +111,6 @@ Create a {{component_type}} component ❌ WRONG
119
111
  Create a <%= component_type %> component
120
112
  ```
121
113
 
122
- ## Usage Examples
123
-
124
- ### Listing Templates
125
-
126
- ```
127
- User: "What templates are available?"
128
-
129
- Agent: I'll list the available templates for this environment.
130
-
131
- [Executes API call]
132
-
133
- Available templates:
134
- 1. **bug-fix** - Template for fixing bugs
135
- 2. **feature-implementation** - Template for implementing new features
136
- 3. **refactor** - Template for code refactoring tasks
137
-
138
- Would you like to view or modify any of these?
139
- ```
140
-
141
- ### Creating a Template
142
-
143
- ```
144
- User: "Create a template for API endpoint tasks"
145
-
146
- Agent: I'll help you create a new template. What should the template include?
147
-
148
- User: "It should guide the agent to create RESTful endpoints with proper error handling and tests"
149
-
150
- Agent: I'll create an "api-endpoint" template with the following content:
151
-
152
- **Template Content (api-endpoint.md):**
153
- ```markdown
154
- # API Endpoint Implementation
155
-
156
- ## Task
157
- Implement a RESTful API endpoint with the following requirements:
158
- - Follow RESTful conventions
159
- - Include proper error handling
160
- - Add input validation
161
- - Write unit tests
162
-
163
- ## Parameters
164
- - Endpoint path: ${endpoint_path}
165
- - HTTP method: ${http_method}
166
- - Description: ${description}
167
- ```
168
-
169
- **Template Metadata (api-endpoint.json):**
170
- ```json
171
- {
172
- "description": "Create a new API endpoint with tests",
173
- "parameters": [
174
- {"name": "endpoint_path", "label": "Endpoint Path", "type": "string", "required": true},
175
- {"name": "http_method", "label": "HTTP Method", "type": "string", "required": true},
176
- {"name": "description", "label": "Description", "type": "string", "required": false}
177
- ]
178
- }
179
- ```
180
-
181
- Would you like me to create this template? (Please confirm)
182
-
183
- User: "Yes, create it"
184
-
185
- Agent: [Executes API call]
186
- Template "api-endpoint" created successfully!
187
- ```
188
-
189
114
  ## Implementation
190
115
 
191
116
  ### List Templates
@@ -273,10 +198,8 @@ curl -s -X DELETE "${CODERFLOW_SERVER_URL}/api/environment-management/templates/
273
198
 
274
199
  ## Important Notes
275
200
 
276
- 1. **User Approval Required**: Never execute changes without explicit user confirmation
277
- 2. **Template Names**: Use lowercase letters, numbers, and hyphens only
278
- 3. **Preserve Existing**: When updating, consider preserving parts that are still relevant
279
- 4. **Document Parameters**: Clearly define what parameters a template accepts
280
- 5. **Test Templates**: Consider testing template content before finalizing
281
- 6. **Impact Awareness**: Remember that templates affect how future tasks are created
282
- 7. **JSON Payload Handling**: When creating templates with parameters, ALWAYS use a temp file (`cat > /tmp/file.json` + `-d @/tmp/file.json`) or heredoc (`-d @- <<'EOF'`). Never use inline `-d '{...}'` with complex nested JSON containing arrays, as bash shell escaping will corrupt the array structure and turn it into an object with numeric keys (0, 1, 2, 3 instead of proper array elements)
201
+ 1. When updating, preserve existing content that is still relevant.
202
+ 2. Clearly define what parameters a template accepts in the metadata.
203
+ 3. Templates affect how future tasks are created; call out impact before execution.
204
+ 4. When creating templates with parameters, ALWAYS use a temp file (`cat > /tmp/file.json` + `-d @/tmp/file.json`) or heredoc (`-d @- <<'EOF'`). Never use inline `-d '{...}'` with complex nested JSON containing arrays, as bash shell escaping will corrupt the array structure.
205
+ 5. If template visibility or content changes, verify with a follow-up list/view call.