@transcend-io/cli 8.1.2 → 8.1.6

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 (111) hide show
  1. package/dist/bin/bash-complete.cjs +1 -1
  2. package/dist/bin/cli.cjs +1 -1
  3. package/dist/bin/deprecated-command.cjs +2 -2
  4. package/dist/{chunk-FIPM3WX2.cjs → chunk-3BZWG5GJ.cjs} +2 -2
  5. package/dist/{chunk-FIPM3WX2.cjs.map → chunk-3BZWG5GJ.cjs.map} +1 -1
  6. package/dist/{chunk-E3HBS2DS.cjs → chunk-5CDEM565.cjs} +2 -2
  7. package/dist/{chunk-E3HBS2DS.cjs.map → chunk-5CDEM565.cjs.map} +1 -1
  8. package/dist/{chunk-DQ4R65RB.cjs → chunk-GVK66NZA.cjs} +2 -2
  9. package/dist/{chunk-DQ4R65RB.cjs.map → chunk-GVK66NZA.cjs.map} +1 -1
  10. package/dist/{chunk-CUTZDENX.cjs → chunk-J5D25IXA.cjs} +20 -20
  11. package/dist/{chunk-CUTZDENX.cjs.map → chunk-J5D25IXA.cjs.map} +1 -1
  12. package/dist/chunk-JEH3FW7J.cjs +2920 -0
  13. package/dist/{chunk-EMB64AC3.cjs.map → chunk-JEH3FW7J.cjs.map} +1 -1
  14. package/dist/{chunk-BZI5QRMD.cjs → chunk-OAG7DICW.cjs} +2 -2
  15. package/dist/{chunk-BZI5QRMD.cjs.map → chunk-OAG7DICW.cjs.map} +1 -1
  16. package/dist/{chunk-4U57O4PS.cjs → chunk-OFZ7ZSEV.cjs} +2 -2
  17. package/dist/{chunk-4U57O4PS.cjs.map → chunk-OFZ7ZSEV.cjs.map} +1 -1
  18. package/dist/{chunk-KUOWI5XE.cjs → chunk-SADDDAXF.cjs} +2 -2
  19. package/dist/{chunk-KUOWI5XE.cjs.map → chunk-SADDDAXF.cjs.map} +1 -1
  20. package/dist/{chunk-YYYG72XH.cjs → chunk-UW2YF6JM.cjs} +4 -4
  21. package/dist/{chunk-YYYG72XH.cjs.map → chunk-UW2YF6JM.cjs.map} +1 -1
  22. package/dist/{chunk-CVQWA6RN.cjs → chunk-VGTGGUCM.cjs} +2 -2
  23. package/dist/{chunk-CVQWA6RN.cjs.map → chunk-VGTGGUCM.cjs.map} +1 -1
  24. package/dist/{chunk-LOWUINKF.cjs → chunk-VKNIPZ42.cjs} +2 -2
  25. package/dist/{chunk-LOWUINKF.cjs.map → chunk-VKNIPZ42.cjs.map} +1 -1
  26. package/dist/{chunk-V4GIAIGU.cjs → chunk-VXJ3QION.cjs} +3 -3
  27. package/dist/{chunk-V4GIAIGU.cjs.map → chunk-VXJ3QION.cjs.map} +1 -1
  28. package/dist/{impl-CW4P3FBU.cjs → impl-3THXGCQP.cjs} +2 -2
  29. package/dist/{impl-CW4P3FBU.cjs.map → impl-3THXGCQP.cjs.map} +1 -1
  30. package/dist/{impl-L5IP2CI4.cjs → impl-43UGCXOQ.cjs} +2 -2
  31. package/dist/{impl-L5IP2CI4.cjs.map → impl-43UGCXOQ.cjs.map} +1 -1
  32. package/dist/{impl-FNQYLHQP.cjs → impl-4OHRVXEI.cjs} +2 -2
  33. package/dist/{impl-FNQYLHQP.cjs.map → impl-4OHRVXEI.cjs.map} +1 -1
  34. package/dist/{impl-VNONBZAR.cjs → impl-4TH3KKOU.cjs} +2 -2
  35. package/dist/{impl-VNONBZAR.cjs.map → impl-4TH3KKOU.cjs.map} +1 -1
  36. package/dist/impl-534MCRL5.cjs +2 -0
  37. package/dist/{impl-KFCSSBYU.cjs.map → impl-534MCRL5.cjs.map} +1 -1
  38. package/dist/{impl-3M5H66QQ.cjs → impl-67VIE5PB.cjs} +2 -2
  39. package/dist/{impl-3M5H66QQ.cjs.map → impl-67VIE5PB.cjs.map} +1 -1
  40. package/dist/{impl-A6YXWSI5.cjs → impl-6A3ARA2O.cjs} +6 -6
  41. package/dist/{impl-A6YXWSI5.cjs.map → impl-6A3ARA2O.cjs.map} +1 -1
  42. package/dist/{impl-ABCJ37Z7.cjs → impl-7RHWAGHN.cjs} +2 -2
  43. package/dist/{impl-ABCJ37Z7.cjs.map → impl-7RHWAGHN.cjs.map} +1 -1
  44. package/dist/{impl-2REOS3PC.cjs → impl-7RXJTTTG.cjs} +2 -2
  45. package/dist/{impl-2REOS3PC.cjs.map → impl-7RXJTTTG.cjs.map} +1 -1
  46. package/dist/{impl-Y6UD6TEX.cjs → impl-DRCKNEM2.cjs} +2 -2
  47. package/dist/{impl-Y6UD6TEX.cjs.map → impl-DRCKNEM2.cjs.map} +1 -1
  48. package/dist/{impl-M6QIFDQJ.cjs → impl-DSHX3YJG.cjs} +2 -2
  49. package/dist/{impl-M6QIFDQJ.cjs.map → impl-DSHX3YJG.cjs.map} +1 -1
  50. package/dist/{impl-ES6WNRK2.cjs → impl-DSNVVZRC.cjs} +2 -2
  51. package/dist/{impl-ES6WNRK2.cjs.map → impl-DSNVVZRC.cjs.map} +1 -1
  52. package/dist/{impl-KBO3FFYP.cjs → impl-E3URUIOG.cjs} +2 -2
  53. package/dist/{impl-KBO3FFYP.cjs.map → impl-E3URUIOG.cjs.map} +1 -1
  54. package/dist/{impl-GVGOIIHI.cjs → impl-FFNYFUNL.cjs} +2 -2
  55. package/dist/{impl-GVGOIIHI.cjs.map → impl-FFNYFUNL.cjs.map} +1 -1
  56. package/dist/{impl-ANMYZBXH.cjs → impl-FUTK5GS3.cjs} +2 -2
  57. package/dist/{impl-ANMYZBXH.cjs.map → impl-FUTK5GS3.cjs.map} +1 -1
  58. package/dist/{impl-PERSC7WX.cjs → impl-FXW73S5T.cjs} +2 -2
  59. package/dist/{impl-PERSC7WX.cjs.map → impl-FXW73S5T.cjs.map} +1 -1
  60. package/dist/{impl-KL5OOY5U.cjs → impl-H3AZBUG5.cjs} +2 -2
  61. package/dist/{impl-KL5OOY5U.cjs.map → impl-H3AZBUG5.cjs.map} +1 -1
  62. package/dist/{impl-QR72P4GY.cjs → impl-H7O5YVYG.cjs} +3 -3
  63. package/dist/{impl-QR72P4GY.cjs.map → impl-H7O5YVYG.cjs.map} +1 -1
  64. package/dist/{impl-U5EBZCIQ.cjs → impl-IASTUGV6.cjs} +4 -4
  65. package/dist/{impl-U5EBZCIQ.cjs.map → impl-IASTUGV6.cjs.map} +1 -1
  66. package/dist/{impl-LRWZARHM.cjs → impl-IJTQXS6O.cjs} +2 -2
  67. package/dist/{impl-LRWZARHM.cjs.map → impl-IJTQXS6O.cjs.map} +1 -1
  68. package/dist/{impl-6H2SEINI.cjs → impl-JQTEIK2F.cjs} +2 -2
  69. package/dist/{impl-6H2SEINI.cjs.map → impl-JQTEIK2F.cjs.map} +1 -1
  70. package/dist/{impl-ABEIAAXG.cjs → impl-KULLM3ES.cjs} +5 -5
  71. package/dist/{impl-ABEIAAXG.cjs.map → impl-KULLM3ES.cjs.map} +1 -1
  72. package/dist/{impl-VQHQ7BUI.cjs → impl-N3T5JJN3.cjs} +2 -2
  73. package/dist/{impl-VQHQ7BUI.cjs.map → impl-N3T5JJN3.cjs.map} +1 -1
  74. package/dist/{impl-2FDYPU4D.cjs → impl-N7G3LUCY.cjs} +2 -2
  75. package/dist/{impl-2FDYPU4D.cjs.map → impl-N7G3LUCY.cjs.map} +1 -1
  76. package/dist/{impl-E2HT5BNA.cjs → impl-P4SXH5YA.cjs} +2 -2
  77. package/dist/{impl-E2HT5BNA.cjs.map → impl-P4SXH5YA.cjs.map} +1 -1
  78. package/dist/{impl-GXF6DOD3.cjs → impl-PPDM46JD.cjs} +2 -2
  79. package/dist/{impl-GXF6DOD3.cjs.map → impl-PPDM46JD.cjs.map} +1 -1
  80. package/dist/{impl-DN2UQJ3S.cjs → impl-Q3KJJPJO.cjs} +2 -2
  81. package/dist/{impl-DN2UQJ3S.cjs.map → impl-Q3KJJPJO.cjs.map} +1 -1
  82. package/dist/{impl-DUTLZXI4.cjs → impl-S5RVN46S.cjs} +5 -5
  83. package/dist/{impl-DUTLZXI4.cjs.map → impl-S5RVN46S.cjs.map} +1 -1
  84. package/dist/{impl-IFO7BHTL.cjs → impl-TDSXUSMZ.cjs} +2 -2
  85. package/dist/{impl-IFO7BHTL.cjs.map → impl-TDSXUSMZ.cjs.map} +1 -1
  86. package/dist/{impl-5MZPCJWM.cjs → impl-TP5ZB4AS.cjs} +2 -2
  87. package/dist/{impl-5MZPCJWM.cjs.map → impl-TP5ZB4AS.cjs.map} +1 -1
  88. package/dist/{impl-QS3G7FDW.cjs → impl-UANPW425.cjs} +2 -2
  89. package/dist/{impl-QS3G7FDW.cjs.map → impl-UANPW425.cjs.map} +1 -1
  90. package/dist/{impl-WP4DZVLN.cjs → impl-UOHFNQMH.cjs} +2 -2
  91. package/dist/{impl-WP4DZVLN.cjs.map → impl-UOHFNQMH.cjs.map} +1 -1
  92. package/dist/{impl-3VIMVUBA.cjs → impl-V5BNNVFJ.cjs} +2 -2
  93. package/dist/{impl-3VIMVUBA.cjs.map → impl-V5BNNVFJ.cjs.map} +1 -1
  94. package/dist/{impl-Q2YWAZ5V.cjs → impl-WDHTHO7S.cjs} +3 -3
  95. package/dist/{impl-Q2YWAZ5V.cjs.map → impl-WDHTHO7S.cjs.map} +1 -1
  96. package/dist/{impl-DOQM27FH.cjs → impl-WQY2NAQM.cjs} +2 -2
  97. package/dist/{impl-DOQM27FH.cjs.map → impl-WQY2NAQM.cjs.map} +1 -1
  98. package/dist/{impl-OKUMBOKA.cjs → impl-Y2QTEYJ5.cjs} +2 -2
  99. package/dist/{impl-OKUMBOKA.cjs.map → impl-Y2QTEYJ5.cjs.map} +1 -1
  100. package/dist/{impl-UVWK5LEC.cjs → impl-YENS4XKY.cjs} +2 -2
  101. package/dist/{impl-UVWK5LEC.cjs.map → impl-YENS4XKY.cjs.map} +1 -1
  102. package/dist/{impl-JDTKIRQY.cjs → impl-YLZABO2C.cjs} +2 -2
  103. package/dist/{impl-JDTKIRQY.cjs.map → impl-YLZABO2C.cjs.map} +1 -1
  104. package/dist/{impl-PF2UNMEM.cjs → impl-Z3VKOYUT.cjs} +2 -2
  105. package/dist/{impl-PF2UNMEM.cjs.map → impl-Z3VKOYUT.cjs.map} +1 -1
  106. package/dist/index.cjs +3 -3
  107. package/dist/index.cjs.map +1 -1
  108. package/dist/index.d.cts +53 -27
  109. package/package.json +1 -1
  110. package/dist/chunk-EMB64AC3.cjs +0 -2920
  111. package/dist/impl-KFCSSBYU.cjs +0 -2
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var _class;var _chunkFIPM3WX2cjs = require('./chunk-FIPM3WX2.cjs');var _chunkYYYG72XHcjs = require('./chunk-YYYG72XH.cjs');var _chunkIBTP5OXEcjs = require('./chunk-IBTP5OXE.cjs');var _chunkSW5CIF5Dcjs = require('./chunk-SW5CIF5D.cjs');var _chunkE3HBS2DScjs = require('./chunk-E3HBS2DS.cjs');var _chunkLR3CPNDMcjs = require('./chunk-LR3CPNDM.cjs');var _chunkV4GIAIGUcjs = require('./chunk-V4GIAIGU.cjs');var _chunkBZI5QRMDcjs = require('./chunk-BZI5QRMD.cjs');var _chunkDQ4R65RBcjs = require('./chunk-DQ4R65RB.cjs');var _chunkQEM6S2W7cjs = require('./chunk-QEM6S2W7.cjs');var _chunkEMB64AC3cjs = require('./chunk-EMB64AC3.cjs');var _chunkLCDYXJN6cjs = require('./chunk-LCDYXJN6.cjs');require('./chunk-ZUNVPK23.cjs');var _chunk4U57O4PScjs = require('./chunk-4U57O4PS.cjs');var _chunkQ7I37FJVcjs = require('./chunk-Q7I37FJV.cjs');var _typeutils = require('@transcend-io/type-utils');var _handlebarsutils = require('@transcend-io/handlebars-utils');var _privacytypes = require('@transcend-io/privacy-types');var T=20;async function D(a){let e=[],r=0,t=!1;do{let{largeLanguageModels:{nodes:s}}=await _chunkEMB64AC3cjs.Xf.call(void 0, a,_chunkEMB64AC3cjs.Fb,{first:T,offset:r});e.push(...s),r+=T,t=s.length===T}while(t);return e.sort((s,o)=>s.name.localeCompare(o.name))}var _bluebird = require('bluebird');function j(a){return new RegExp(`<${a}>([\\s\\S]+?)<\\/${a}>`)}function Bm(a){return a}var H=a=>{try{return JSON.parse(a)}catch (e2){return a}},B= exports.TranscendPromptManager = (_class =class{__init() {this.largeLanguageModels=[]}__init2() {this.agentsByName={}}__init3() {this.agentsByAgentId={}}constructor({prompts:e,handlebarsOptions:r={},transcendUrl:t=_chunk4U57O4PScjs.r,transcendApiKey:s,requireApproval:o=!0,cacheDuration:i,defaultVariables:p={}}){;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);this.prompts=e,this.transcendUrl=t,this.transcendApiKey=s,this.variables=p,this.defaultVariables=p,this.graphQLClient=_chunkEMB64AC3cjs.vc.call(void 0, t,typeof s=="object"?s.release():s),this.requireApproval=o,this.cacheDuration=i,this.handlebarsOptions=r,this.handlebars=_handlebarsutils.createHandlebarsWithHelpers.call(void 0, r)}async fetchPromptsAndMetadata(){let e=_typeutils.getValues.call(void 0, this.prompts),r=e.map(({id:n})=>n).filter(n=>!!n),t=e.map(({title:n})=>n).filter(n=>!!n),s=_chunk4U57O4PScjs.j.call(void 0, e.map(({agentNames:n})=>n||[]).flat()),[o,i,p]=await Promise.all([_chunkEMB64AC3cjs.zd.call(void 0, this.graphQLClient,{promptIds:r,promptTitles:t}),D(this.graphQLClient),_chunkEMB64AC3cjs.Fc.call(void 0, this.graphQLClient,{names:s})]);this.agentsByName=_chunk4U57O4PScjs.e.call(void 0, p,"name"),this.agentsByAgentId=_chunk4U57O4PScjs.e.call(void 0, p,"agentId"),this.largeLanguageModels=i.filter(n=>n.isTranscendHosted===!1);let m=_chunk4U57O4PScjs.e.call(void 0, o.prompts,"title"),c=_chunk4U57O4PScjs.e.call(void 0, o.prompts,"id");return this.variables={...o.calculatedVariables.reduce((n,g)=>Object.assign(n,{[g.name]:g.data?JSON.parse(g.data):g.data}),{}),...this.defaultVariables},this.handlebars=_handlebarsutils.createHandlebarsWithHelpers.call(void 0, {...this.handlebarsOptions,templates:[...this.handlebarsOptions.templates||[],...o.promptPartials.map(n=>({name:n.slug,content:n.content}))]}),this.promptContentMap=_typeutils.apply.call(void 0, this.prompts,({id:n,title:g})=>{let d=n?c[n]:g?m[g]:void 0;if(!d)throw new Error(`Failed to find prompt with title: "${g}" and id: "${n}"`);return d}),this.lastUpdatedAt=new Date,o}async getAgentByName(e){let r=this.agentsByName[e];if(r)return r;let[t]=await _chunkEMB64AC3cjs.Fc.call(void 0, this.graphQLClient,{names:[e]});if(t)return this.agentsByName[t.name]=t,this.agentsByAgentId[t.agentId]=t,t}async getPromptThreadBySlackTs(e){let[r]=await _chunkEMB64AC3cjs.Ad.call(void 0, this.graphQLClient,{slackMessageTs:[e]});return r}async getAgentsByName(e){if(e.length<1)throw new Error("Expected at least one name to be provided");let{hasCache:r=[],missingCache:t=[]}=_chunk4U57O4PScjs.d.call(void 0, e,p=>this.agentsByName[p]?"hasCache":"missingCache"),s=r.map(p=>this.agentsByName[p]);if(t.length===0)return s;let o=_chunk4U57O4PScjs.b.call(void 0, t,50),i=[];return await _bluebird.mapSeries.call(void 0, o,async p=>{let m=await _chunkEMB64AC3cjs.Fc.call(void 0, this.graphQLClient,{names:p});m.forEach(c=>{this.agentsByName[c.name]=c,this.agentsByAgentId[c.agentId]=c}),i.push(...m)}),[...s,...i]}getAgentFiles(e){return _chunkEMB64AC3cjs.Dc.call(void 0, this.graphQLClient,e)}getLargeLanguageModel(e){let r=this.largeLanguageModels.find(t=>typeof e=="string"?t.id===e:t.name===e.name&&t.client===e.client);if(!r)throw new Error(`Failed to find model matching: ${typeof e=="string"?e:JSON.stringify(e)}`);return r}async getPromptDefinition(e){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let{promptContentMap:r}=this;if(!r)throw new Error("Expected this.promptContentMap to be defined");let t=r[e];if(!t)throw new Error(`Expected this.promptContentMap[${e}] to be defined`);return t}async compilePrompt(e,r){let t=await this.getPromptDefinition(e),s=this.prompts[e];if(!s)throw new Error(`Expected this.prompts[${e}] to be defined`);if(this.requireApproval&&t.status!==_privacytypes.PromptStatus.Approved)throw new Error(`Assessment "${t.title}" cannot be used because its in status: "${t.status}"`);if(t.status===_privacytypes.PromptStatus.Rejected)throw new Error(`Assessment "${t.title}" cannot be used because it's in status: "${t.status}"`);return _typeutils.decodeCodec.call(void 0, s.paramCodec,r),this.handlebars.compile(t.content)({currentDate:new Date().toISOString(),...this.variables,...r})}parseAiResponse(e,r){let t=this.prompts[e];if(!t)throw new Error(`Expected this.prompts[${e}] to be defined`);let s=t.extractFromTag&&(j(t.extractFromTag).exec(r)||[])[1]||r;return _typeutils.decodeCodec.call(void 0, t.outputCodec,H(s),!1)}async reportAndParsePromptRun(e,{largeLanguageModel:r,...t}){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let s=t.name||`@transcend-io/cli-prompt-run-${new Date().toISOString()}`;if(!this.promptContentMap)throw new Error("Expected this.promptContentMap to be defined");let o=this.promptContentMap[e];if(!o)throw new Error(`Expected this.prompts[${e}] to be defined`);if(t.promptRunMessages.length===0)throw new Error("promptRunMessages is expected to have length > 0");if(t.promptRunMessages[0].role!==_privacytypes.ChatCompletionRole.System)throw new Error(`promptRunMessages[0].role is expected to be = ${_privacytypes.ChatCompletionRole.System}`);if(t.promptRunMessages[t.promptRunMessages.length-1].role!==_privacytypes.ChatCompletionRole.Assistant)throw new Error(`promptRunMessages[${t.promptRunMessages.length-1}].role is expected to be = ${_privacytypes.ChatCompletionRole.Assistant}`);let i=t.promptRunMessages[t.promptRunMessages.length-1].content,p;try{p=this.parseAiResponse(e,i)}catch(c){throw await _chunkEMB64AC3cjs.be.call(void 0, this.graphQLClient,{productArea:_privacytypes.PromptRunProductArea.PromptManager,...t,name:s,error:c.message,status:_privacytypes.QueueStatus.Error,...typeof r=="string"?{largeLanguageModelId:r}:{largeLanguageModelName:r.name,largeLanguageModelClient:r.client},promptId:o.id,promptRunMessages:t.promptRunMessages.map((n,g)=>({...n,...g===0?{template:o.content}:{}}))}),c}let m=await _chunkEMB64AC3cjs.be.call(void 0, this.graphQLClient,{productArea:_privacytypes.PromptRunProductArea.PromptManager,...t,name:s,status:_privacytypes.QueueStatus.Resolved,...typeof r=="string"?{largeLanguageModelId:r}:{largeLanguageModelName:r.name,largeLanguageModelClient:r.client},promptId:o.id,promptRunMessages:t.promptRunMessages.map((c,n)=>({...c,...n===0?{template:o.content}:{}}))});return{result:p,promptRunId:m,promptRunUrl:`https://app.transcend.io/prompts/runs/${m}`}}async reportPromptRunError(e,{largeLanguageModel:r,...t}){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let s=t.name||`@transcend-io/cli-prompt-run-${new Date().toISOString()}`;if(!this.promptContentMap)throw new Error("Expected this.promptContentMap to be defined");let o=this.promptContentMap[e];if(!o)throw new Error(`Expected this.prompts[${e}] to be defined`);if(t.promptRunMessages.length===0)throw new Error("promptRunMessages is expected to have length > 0");if(t.promptRunMessages[0].role!==_privacytypes.ChatCompletionRole.System)throw new Error(`promptRunMessages[0].role is expected to be = ${_privacytypes.ChatCompletionRole.System}`);let i=await _chunkEMB64AC3cjs.be.call(void 0, this.graphQLClient,{productArea:_privacytypes.PromptRunProductArea.PromptManager,...t,name:s,status:_privacytypes.QueueStatus.Error,...typeof r=="string"?{largeLanguageModelId:r}:{largeLanguageModelName:r.name,largeLanguageModelClient:r.client},promptId:o.id,promptRunMessages:t.promptRunMessages.map((p,m)=>({...p,...m===0?{template:o.content}:{}}))});return{promptRunId:i,promptRunUrl:`https://app.transcend.io/prompts/runs/${i}`}}}, _class);function Qm(a){let e=/(https?:\/\/[^\s]+)/g;return a.replace(e,"<link-omitted>")}function Um(a){return Object.entries(a).reduce((e,[r,t])=>t!=null&&t!==""&&!(Array.isArray(t)&&t.length===0)&&!(typeof t=="object"&&Object.keys(t).length===0)?Object.assign(e,{[r]:t}):e,{})}var _fastglob = require('fast-glob'); var _fastglob2 = _interopRequireDefault(_fastglob);var _child_process = require('child_process');function vm({baseBranch:a,rootDirectory:e,githubRepo:r,excludedGlob:t=[],fileBlockList:s=[]}){_child_process.execSync.call(void 0, `git fetch origin ${a}`);let o=_child_process.execSync.call(void 0, `git ls-remote ${r} "refs/heads/${a}" | cut -f 1`,{encoding:"utf-8"}).split(`
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var _class;var _chunk3BZWG5GJcjs = require('./chunk-3BZWG5GJ.cjs');var _chunkUW2YF6JMcjs = require('./chunk-UW2YF6JM.cjs');var _chunkIBTP5OXEcjs = require('./chunk-IBTP5OXE.cjs');var _chunkSW5CIF5Dcjs = require('./chunk-SW5CIF5D.cjs');var _chunk5CDEM565cjs = require('./chunk-5CDEM565.cjs');var _chunkLR3CPNDMcjs = require('./chunk-LR3CPNDM.cjs');var _chunkVXJ3QIONcjs = require('./chunk-VXJ3QION.cjs');var _chunkOAG7DICWcjs = require('./chunk-OAG7DICW.cjs');var _chunkGVK66NZAcjs = require('./chunk-GVK66NZA.cjs');var _chunkQEM6S2W7cjs = require('./chunk-QEM6S2W7.cjs');var _chunkJEH3FW7Jcjs = require('./chunk-JEH3FW7J.cjs');var _chunkLCDYXJN6cjs = require('./chunk-LCDYXJN6.cjs');require('./chunk-ZUNVPK23.cjs');var _chunkOFZ7ZSEVcjs = require('./chunk-OFZ7ZSEV.cjs');var _chunkQ7I37FJVcjs = require('./chunk-Q7I37FJV.cjs');var _typeutils = require('@transcend-io/type-utils');var _handlebarsutils = require('@transcend-io/handlebars-utils');var _privacytypes = require('@transcend-io/privacy-types');var T=20;async function D(a){let e=[],r=0,t=!1;do{let{largeLanguageModels:{nodes:s}}=await _chunkJEH3FW7Jcjs._f.call(void 0, a,_chunkJEH3FW7Jcjs.Fb,{first:T,offset:r});e.push(...s),r+=T,t=s.length===T}while(t);return e.sort((s,o)=>s.name.localeCompare(o.name))}var _bluebird = require('bluebird');function j(a){return new RegExp(`<${a}>([\\s\\S]+?)<\\/${a}>`)}function Gm(a){return a}var H=a=>{try{return JSON.parse(a)}catch (e2){return a}},B= exports.TranscendPromptManager = (_class =class{__init() {this.largeLanguageModels=[]}__init2() {this.agentsByName={}}__init3() {this.agentsByAgentId={}}constructor({prompts:e,handlebarsOptions:r={},transcendUrl:t=_chunkOFZ7ZSEVcjs.r,transcendApiKey:s,requireApproval:o=!0,cacheDuration:i,defaultVariables:p={}}){;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);this.prompts=e,this.transcendUrl=t,this.transcendApiKey=s,this.variables=p,this.defaultVariables=p,this.graphQLClient=_chunkJEH3FW7Jcjs.vc.call(void 0, t,typeof s=="object"?s.release():s),this.requireApproval=o,this.cacheDuration=i,this.handlebarsOptions=r,this.handlebars=_handlebarsutils.createHandlebarsWithHelpers.call(void 0, r)}async fetchPromptsAndMetadata(){let e=_typeutils.getValues.call(void 0, this.prompts),r=e.map(({id:n})=>n).filter(n=>!!n),t=e.map(({title:n})=>n).filter(n=>!!n),s=_chunkOFZ7ZSEVcjs.j.call(void 0, e.map(({agentNames:n})=>n||[]).flat()),[o,i,p]=await Promise.all([_chunkJEH3FW7Jcjs.zd.call(void 0, this.graphQLClient,{promptIds:r,promptTitles:t}),D(this.graphQLClient),_chunkJEH3FW7Jcjs.Fc.call(void 0, this.graphQLClient,{names:s})]);this.agentsByName=_chunkOFZ7ZSEVcjs.e.call(void 0, p,"name"),this.agentsByAgentId=_chunkOFZ7ZSEVcjs.e.call(void 0, p,"agentId"),this.largeLanguageModels=i.filter(n=>n.isTranscendHosted===!1);let m=_chunkOFZ7ZSEVcjs.e.call(void 0, o.prompts,"title"),c=_chunkOFZ7ZSEVcjs.e.call(void 0, o.prompts,"id");return this.variables={...o.calculatedVariables.reduce((n,g)=>Object.assign(n,{[g.name]:g.data?JSON.parse(g.data):g.data}),{}),...this.defaultVariables},this.handlebars=_handlebarsutils.createHandlebarsWithHelpers.call(void 0, {...this.handlebarsOptions,templates:[...this.handlebarsOptions.templates||[],...o.promptPartials.map(n=>({name:n.slug,content:n.content}))]}),this.promptContentMap=_typeutils.apply.call(void 0, this.prompts,({id:n,title:g})=>{let d=n?c[n]:g?m[g]:void 0;if(!d)throw new Error(`Failed to find prompt with title: "${g}" and id: "${n}"`);return d}),this.lastUpdatedAt=new Date,o}async getAgentByName(e){let r=this.agentsByName[e];if(r)return r;let[t]=await _chunkJEH3FW7Jcjs.Fc.call(void 0, this.graphQLClient,{names:[e]});if(t)return this.agentsByName[t.name]=t,this.agentsByAgentId[t.agentId]=t,t}async getPromptThreadBySlackTs(e){let[r]=await _chunkJEH3FW7Jcjs.Ad.call(void 0, this.graphQLClient,{slackMessageTs:[e]});return r}async getAgentsByName(e){if(e.length<1)throw new Error("Expected at least one name to be provided");let{hasCache:r=[],missingCache:t=[]}=_chunkOFZ7ZSEVcjs.d.call(void 0, e,p=>this.agentsByName[p]?"hasCache":"missingCache"),s=r.map(p=>this.agentsByName[p]);if(t.length===0)return s;let o=_chunkOFZ7ZSEVcjs.b.call(void 0, t,50),i=[];return await _bluebird.mapSeries.call(void 0, o,async p=>{let m=await _chunkJEH3FW7Jcjs.Fc.call(void 0, this.graphQLClient,{names:p});m.forEach(c=>{this.agentsByName[c.name]=c,this.agentsByAgentId[c.agentId]=c}),i.push(...m)}),[...s,...i]}getAgentFiles(e){return _chunkJEH3FW7Jcjs.Dc.call(void 0, this.graphQLClient,e)}getLargeLanguageModel(e){let r=this.largeLanguageModels.find(t=>typeof e=="string"?t.id===e:t.name===e.name&&t.client===e.client);if(!r)throw new Error(`Failed to find model matching: ${typeof e=="string"?e:JSON.stringify(e)}`);return r}async getPromptDefinition(e){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let{promptContentMap:r}=this;if(!r)throw new Error("Expected this.promptContentMap to be defined");let t=r[e];if(!t)throw new Error(`Expected this.promptContentMap[${e}] to be defined`);return t}async compilePrompt(e,r){let t=await this.getPromptDefinition(e),s=this.prompts[e];if(!s)throw new Error(`Expected this.prompts[${e}] to be defined`);if(this.requireApproval&&t.status!==_privacytypes.PromptStatus.Approved)throw new Error(`Assessment "${t.title}" cannot be used because its in status: "${t.status}"`);if(t.status===_privacytypes.PromptStatus.Rejected)throw new Error(`Assessment "${t.title}" cannot be used because it's in status: "${t.status}"`);return _typeutils.decodeCodec.call(void 0, s.paramCodec,r),this.handlebars.compile(t.content)({currentDate:new Date().toISOString(),...this.variables,...r})}parseAiResponse(e,r){let t=this.prompts[e];if(!t)throw new Error(`Expected this.prompts[${e}] to be defined`);let s=t.extractFromTag&&(j(t.extractFromTag).exec(r)||[])[1]||r;return _typeutils.decodeCodec.call(void 0, t.outputCodec,H(s),!1)}async reportAndParsePromptRun(e,{largeLanguageModel:r,...t}){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let s=t.name||`@transcend-io/cli-prompt-run-${new Date().toISOString()}`;if(!this.promptContentMap)throw new Error("Expected this.promptContentMap to be defined");let o=this.promptContentMap[e];if(!o)throw new Error(`Expected this.prompts[${e}] to be defined`);if(t.promptRunMessages.length===0)throw new Error("promptRunMessages is expected to have length > 0");if(t.promptRunMessages[0].role!==_privacytypes.ChatCompletionRole.System)throw new Error(`promptRunMessages[0].role is expected to be = ${_privacytypes.ChatCompletionRole.System}`);if(t.promptRunMessages[t.promptRunMessages.length-1].role!==_privacytypes.ChatCompletionRole.Assistant)throw new Error(`promptRunMessages[${t.promptRunMessages.length-1}].role is expected to be = ${_privacytypes.ChatCompletionRole.Assistant}`);let i=t.promptRunMessages[t.promptRunMessages.length-1].content,p;try{p=this.parseAiResponse(e,i)}catch(c){throw await _chunkJEH3FW7Jcjs.ee.call(void 0, this.graphQLClient,{productArea:_privacytypes.PromptRunProductArea.PromptManager,...t,name:s,error:c.message,status:_privacytypes.QueueStatus.Error,...typeof r=="string"?{largeLanguageModelId:r}:{largeLanguageModelName:r.name,largeLanguageModelClient:r.client},promptId:o.id,promptRunMessages:t.promptRunMessages.map((n,g)=>({...n,...g===0?{template:o.content}:{}}))}),c}let m=await _chunkJEH3FW7Jcjs.ee.call(void 0, this.graphQLClient,{productArea:_privacytypes.PromptRunProductArea.PromptManager,...t,name:s,status:_privacytypes.QueueStatus.Resolved,...typeof r=="string"?{largeLanguageModelId:r}:{largeLanguageModelName:r.name,largeLanguageModelClient:r.client},promptId:o.id,promptRunMessages:t.promptRunMessages.map((c,n)=>({...c,...n===0?{template:o.content}:{}}))});return{result:p,promptRunId:m,promptRunUrl:`https://app.transcend.io/prompts/runs/${m}`}}async reportPromptRunError(e,{largeLanguageModel:r,...t}){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let s=t.name||`@transcend-io/cli-prompt-run-${new Date().toISOString()}`;if(!this.promptContentMap)throw new Error("Expected this.promptContentMap to be defined");let o=this.promptContentMap[e];if(!o)throw new Error(`Expected this.prompts[${e}] to be defined`);if(t.promptRunMessages.length===0)throw new Error("promptRunMessages is expected to have length > 0");if(t.promptRunMessages[0].role!==_privacytypes.ChatCompletionRole.System)throw new Error(`promptRunMessages[0].role is expected to be = ${_privacytypes.ChatCompletionRole.System}`);let i=await _chunkJEH3FW7Jcjs.ee.call(void 0, this.graphQLClient,{productArea:_privacytypes.PromptRunProductArea.PromptManager,...t,name:s,status:_privacytypes.QueueStatus.Error,...typeof r=="string"?{largeLanguageModelId:r}:{largeLanguageModelName:r.name,largeLanguageModelClient:r.client},promptId:o.id,promptRunMessages:t.promptRunMessages.map((p,m)=>({...p,...m===0?{template:o.content}:{}}))});return{promptRunId:i,promptRunUrl:`https://app.transcend.io/prompts/runs/${i}`}}}, _class);function jm(a){let e=/(https?:\/\/[^\s]+)/g;return a.replace(e,"<link-omitted>")}function Vm(a){return Object.entries(a).reduce((e,[r,t])=>t!=null&&t!==""&&!(Array.isArray(t)&&t.length===0)&&!(typeof t=="object"&&Object.keys(t).length===0)?Object.assign(e,{[r]:t}):e,{})}var _fastglob = require('fast-glob'); var _fastglob2 = _interopRequireDefault(_fastglob);var _child_process = require('child_process');function Jm({baseBranch:a,rootDirectory:e,githubRepo:r,excludedGlob:t=[],fileBlockList:s=[]}){_child_process.execSync.call(void 0, `git fetch origin ${a}`);let o=_child_process.execSync.call(void 0, `git ls-remote ${r} "refs/heads/${a}" | cut -f 1`,{encoding:"utf-8"}).split(`
2
2
  `)[0],i=_child_process.execSync.call(void 0, "git rev-parse HEAD",{encoding:"utf-8"}).split(`
3
- `)[0];if(!o||!i)throw new Error("FAILED TO FIND COMMIT RANGE");let p=_child_process.execSync.call(void 0, `git fetch && git diff --name-only "${a||o}...${i}" -- ${e}`,{encoding:"utf-8"}),m=_chunk4U57O4PScjs.c.call(void 0, p.split(`
4
- `).filter(d=>d),s),c=t.length>0?_fastglob2.default.sync(m,{ignore:t}):m,n={};c.forEach(d=>{let F=_child_process.execSync.call(void 0, `git show ${i}:${d}`,{encoding:"utf-8"});n[d]=F});let g=r.split("/").pop().split(".")[0];return{changedFiles:m,fileDiffs:n,repoName:g,commit:i}}exports.ACTIONS = _chunkEMB64AC3cjs.tb; exports.ADD_MESSAGES_TO_PROMPT_RUN = _chunkEMB64AC3cjs.Ga; exports.ADD_SILO_DISCOVERY_RESULTS = _chunkEMB64AC3cjs.G; exports.ADMIN_DASH = _chunk4U57O4PScjs.o; exports.ADMIN_DASH_DATAPOINTS = _chunk4U57O4PScjs.q; exports.ADMIN_DASH_INTEGRATIONS = _chunk4U57O4PScjs.p; exports.AGENTS = _chunkEMB64AC3cjs.Gb; exports.AGENT_FILES = _chunkEMB64AC3cjs.Jb; exports.AGENT_FUNCTIONS = _chunkEMB64AC3cjs.Mb; exports.API_KEYS = _chunkEMB64AC3cjs.D; exports.APPROVE_PRIVACY_REQUEST = _chunkEMB64AC3cjs.W; exports.ASSESSMENTS = _chunkEMB64AC3cjs.ea; exports.ASSESSMENT_SECTION_FIELDS = _chunkEMB64AC3cjs.da; exports.ASSESSMENT_TEMPLATES = _chunkEMB64AC3cjs.ia; exports.ASSUME_ROLE = _chunkEMB64AC3cjs.Eb; exports.ATTRIBUTES = _chunkEMB64AC3cjs.Ka; exports.ATTRIBUTE_KEYS_REQUESTS = _chunkEMB64AC3cjs.L; exports.ATTRIBUTE_VALUES = _chunkEMB64AC3cjs.Oa; exports.ActionInput = _chunkQEM6S2W7cjs.G; exports.ActionItemCollectionInput = _chunkQEM6S2W7cjs.R; exports.ActionItemInput = _chunkQEM6S2W7cjs.S; exports.AgentFileInput = _chunkQEM6S2W7cjs.o; exports.AgentFunctionInput = _chunkQEM6S2W7cjs.n; exports.AgentInput = _chunkQEM6S2W7cjs.m; exports.ApiKeyInput = _chunkQEM6S2W7cjs.c; exports.AssessmentAction = _chunkEMB64AC3cjs.Ld; exports.AssessmentAnswerOptionInput = _chunkQEM6S2W7cjs.Y; exports.AssessmentDisplayLogicInput = _chunkQEM6S2W7cjs.V; exports.AssessmentInput = _chunkQEM6S2W7cjs.ca; exports.AssessmentNestedRule = _chunkEMB64AC3cjs.Kd; exports.AssessmentNestedRuleInput = _chunkQEM6S2W7cjs.U; exports.AssessmentResourceInput = _chunkQEM6S2W7cjs.ba; exports.AssessmentRetentionScheduleInput = _chunkQEM6S2W7cjs.$; exports.AssessmentRiskLogic = _chunkEMB64AC3cjs.Nd; exports.AssessmentRule = _chunkEMB64AC3cjs.Jd; exports.AssessmentRuleInput = _chunkQEM6S2W7cjs.T; exports.AssessmentSectionInput = _chunkQEM6S2W7cjs._; exports.AssessmentSectionQuestionInput = _chunkQEM6S2W7cjs.Z; exports.AssessmentTemplateInput = _chunkQEM6S2W7cjs.aa; exports.AttestedExtraIdentifiers = _chunkEMB64AC3cjs.kf; exports.AttributeInput = _chunkQEM6S2W7cjs.k; exports.AttributePreview = _chunkQEM6S2W7cjs.l; exports.AttributeValueInput = _chunkQEM6S2W7cjs.j; exports.BLANK = _chunkEMB64AC3cjs.cc; exports.BULK_APPLY = _chunkEMB64AC3cjs.bc; exports.BULK_REQUEST_FILES = _chunkEMB64AC3cjs.Ea; exports.BUSINESS_ENTITIES = _chunkEMB64AC3cjs.qb; exports.BusinessEntityInput = _chunkQEM6S2W7cjs.y; exports.CANCEL_PRIVACY_REQUEST = _chunkEMB64AC3cjs.X; exports.CAN_APPLY_IN_BULK = _chunkEMB64AC3cjs.gc; exports.CATALOGS = _chunkEMB64AC3cjs.r; exports.CHANGE_REQUEST_DATA_SILO_STATUS = _chunkEMB64AC3cjs.ua; exports.CODE_PACKAGES = _chunkEMB64AC3cjs.P; exports.CONSENT_MANAGER_ANALYTICS_DATA = _chunkEMB64AC3cjs.pb; exports.CONSENT_PARTITIONS = _chunkEMB64AC3cjs.Ta; exports.COOKIES = _chunkEMB64AC3cjs.Ya; exports.CREATE_ACTION_ITEMS = _chunkEMB64AC3cjs.xb; exports.CREATE_ACTION_ITEM_COLLECTION = _chunkEMB64AC3cjs.Ia; exports.CREATE_AGENT = _chunkEMB64AC3cjs.Hb; exports.CREATE_AGENT_FILE = _chunkEMB64AC3cjs.Kb; exports.CREATE_AGENT_FUNCTION = _chunkEMB64AC3cjs.Nb; exports.CREATE_API_KEY = _chunkEMB64AC3cjs.E; exports.CREATE_ATTRIBUTE = _chunkEMB64AC3cjs.Pa; exports.CREATE_ATTRIBUTE_VALUES = _chunkEMB64AC3cjs.La; exports.CREATE_BUSINESS_ENTITY = _chunkEMB64AC3cjs.rb; exports.CREATE_CODE_PACKAGE = _chunkEMB64AC3cjs.R; exports.CREATE_CONSENT_EXPERIENCE = _chunkEMB64AC3cjs.nb; exports.CREATE_CONSENT_MANAGER = _chunkEMB64AC3cjs.ab; exports.CREATE_CONSENT_PARTITION = _chunkEMB64AC3cjs.ob; exports.CREATE_DATA_FLOWS = _chunkEMB64AC3cjs.Ua; exports.CREATE_DATA_SILOS = _chunkEMB64AC3cjs.m; exports.CREATE_DATA_SUBJECT = _chunkEMB64AC3cjs.x; exports.CREATE_DATA_SUB_CATEGORY = _chunkEMB64AC3cjs.Tb; exports.CREATE_ENRICHER = _chunkEMB64AC3cjs.p; exports.CREATE_IDENTIFIER = _chunkEMB64AC3cjs.u; exports.CREATE_PROCESSING_ACTIVITY = _chunkEMB64AC3cjs.Zb; exports.CREATE_PROCESSING_PURPOSE_SUB_CATEGORY = _chunkEMB64AC3cjs.Wb; exports.CREATE_PROMPT = _chunkEMB64AC3cjs.oa; exports.CREATE_PROMPT_GROUP = _chunkEMB64AC3cjs.sa; exports.CREATE_PROMPT_PARTIAL = _chunkEMB64AC3cjs.qa; exports.CREATE_REPOSITORY = _chunkEMB64AC3cjs.C; exports.CREATE_SOFTWARE_DEVELOPMENT_KIT = _chunkEMB64AC3cjs.O; exports.CREATE_TEAM = _chunkEMB64AC3cjs.ya; exports.CREATE_TEMPLATE = _chunkEMB64AC3cjs.J; exports.CREATE_VENDOR = _chunkEMB64AC3cjs.Qb; exports.CachedFileState = _chunkEMB64AC3cjs.hc; exports.CachedRequestState = _chunkEMB64AC3cjs.jc; exports.CodePackageInput = _chunkQEM6S2W7cjs.D; exports.CodePackageSdk = _chunkQEM6S2W7cjs.C; exports.ColumnName = _chunkEMB64AC3cjs.ec; exports.ConsentManageExperienceInput = _chunkQEM6S2W7cjs.K; exports.ConsentManagerInput = _chunkQEM6S2W7cjs.M; exports.ConsentManagerMetricBin = _chunkEMB64AC3cjs.Qc; exports.ConsentManagerServiceMetadata = _chunkQEM6S2W7cjs.ka; exports.ConsentPreferenceResponse = _chunkV4GIAIGUcjs.i; exports.ConsentPreferenceTopic = _chunkQEM6S2W7cjs.ea; exports.ConsentPreferenceTopicOptionValue = _chunkQEM6S2W7cjs.da; exports.ConsentPurpose = _chunkQEM6S2W7cjs.fa; exports.CookieCsvInput = _chunkQEM6S2W7cjs.ja; exports.CookieInput = _chunkQEM6S2W7cjs.J; exports.CronIdentifier = _chunkE3HBS2DScjs.a; exports.CronIdentifierPush = _chunkE3HBS2DScjs.c; exports.DATAPOINT_EXPORT = _chunkEMB64AC3cjs.g; exports.DATA_FLOWS = _chunkEMB64AC3cjs.Xa; exports.DATA_POINTS = _chunkEMB64AC3cjs.a; exports.DATA_POINT_COUNT = _chunkEMB64AC3cjs.b; exports.DATA_SILOS = _chunkEMB64AC3cjs.i; exports.DATA_SILOS_ENRICHED = _chunkEMB64AC3cjs.k; exports.DATA_SILO_EXPORT = _chunkEMB64AC3cjs.j; exports.DATA_SUBJECTS = _chunkEMB64AC3cjs.w; exports.DATA_SUB_CATEGORIES = _chunkEMB64AC3cjs.Sb; exports.DEBUG = _chunk4U57O4PScjs.z; exports.DEFAULT_TRANSCEND_API = _chunk4U57O4PScjs.r; exports.DEFAULT_TRANSCEND_CONSENT_API = _chunk4U57O4PScjs.s; exports.DEFAULT_TRANSCEND_PULL_RESOURCES = _chunkEMB64AC3cjs.$d; exports.DELETE_API_KEY = _chunkEMB64AC3cjs.F; exports.DELETE_ATTRIBUTE_VALUE = _chunkEMB64AC3cjs.Na; exports.DEPLOYED_PRIVACY_CENTER_URL = _chunkEMB64AC3cjs.zb; exports.DEPLOY_CONSENT_MANAGER = _chunkEMB64AC3cjs.db; exports.DETERMINE_LOGIN_METHOD = _chunkEMB64AC3cjs.Cb; exports.DataCategoryGuessInput = _chunkQEM6S2W7cjs.h; exports.DataCategoryInput = _chunkQEM6S2W7cjs.q; exports.DataCategoryPreviewInput = _chunkQEM6S2W7cjs.g; exports.DataCategoryRecommendationInput = _chunkQEM6S2W7cjs.i; exports.DataFlowCsvInput = _chunkQEM6S2W7cjs.ia; exports.DataFlowInput = _chunkQEM6S2W7cjs.I; exports.DataSiloInput = _chunkQEM6S2W7cjs.Q; exports.DataSubjectInput = _chunkQEM6S2W7cjs.F; exports.DatapointInput = _chunkQEM6S2W7cjs.w; exports.ENABLED_PLUGINS = _chunkEMB64AC3cjs.H; exports.ENRICHERS = _chunkEMB64AC3cjs.n; exports.ENTRY_COUNT = _chunkEMB64AC3cjs.h; exports.EXPERIENCES = _chunkEMB64AC3cjs.Sa; exports.EnrichPrivacyRequest = _chunkFIPM3WX2cjs.b; exports.EnricherInput = _chunkQEM6S2W7cjs.e; exports.FETCH_CONSENT_MANAGER = _chunkEMB64AC3cjs._a; exports.FETCH_CONSENT_MANAGER_ID = _chunkEMB64AC3cjs.Za; exports.FETCH_CONSENT_MANAGER_THEME = _chunkEMB64AC3cjs.$a; exports.FETCH_PRIVACY_CENTER_ID = _chunkEMB64AC3cjs.yb; exports.FieldInput = _chunkQEM6S2W7cjs.v; exports.GLOBAL_ACTION_ITEMS = _chunkEMB64AC3cjs.vb; exports.GLOBAL_ACTION_ITEM_COLLECTIONS = _chunkEMB64AC3cjs.Ha; exports.IDENTIFIERS = _chunkEMB64AC3cjs.s; exports.IDENTIFIER_BLOCK_LIST = _chunkEMB64AC3cjs.dc; exports.IMPORT_ONE_TRUST_ASSESSMENT_FORMS = _chunkEMB64AC3cjs.fa; exports.INITIALIZER = _chunkEMB64AC3cjs.o; exports.IP_ADDRESS_REGEX = _chunkV4GIAIGUcjs.f; exports.IS_REQUIRED = _chunkEMB64AC3cjs.fc; exports.IdentifierInput = _chunkQEM6S2W7cjs.H; exports.ImportOnetrustAssessmentsInput = _chunkQEM6S2W7cjs.ra; exports.IntlMessage = _chunkEMB64AC3cjs.of; exports.IntlMessageInput = _chunkQEM6S2W7cjs.P; exports.LARGE_LANGUAGE_MODELS = _chunkEMB64AC3cjs.Fb; exports.LOGIN = _chunkEMB64AC3cjs.Db; exports.MESSAGES = _chunkEMB64AC3cjs._; exports.NEW_IDENTIFIER_TYPES = _chunkEMB64AC3cjs.t; exports.NONE = _chunkEMB64AC3cjs.ac; exports.NOTIFY_ADDITIONAL_TIME = _chunkEMB64AC3cjs.Z; exports.ORGANIZATION = _chunkEMB64AC3cjs.K; exports.OneTrustFileFormat = _chunkQ7I37FJVcjs.a; exports.OneTrustPullResource = _chunkQ7I37FJVcjs.b; exports.OneTrustPullSource = _chunkQ7I37FJVcjs.c; exports.OpenAIEnabledRoute = _chunkQEM6S2W7cjs.ma; exports.OpenAIEnabledRoutes = _chunkQEM6S2W7cjs.na; exports.OpenAIIntegration = _chunkQEM6S2W7cjs.oa; exports.OpenAIRouteName = _chunkQ7I37FJVcjs.f; exports.POLICIES = _chunkEMB64AC3cjs.T; exports.PREFERENCE_TOPICS = _chunkEMB64AC3cjs.ha; exports.PRIVACY_CENTER = _chunkEMB64AC3cjs.Ab; exports.PROCESSING_ACTIVITIES = _chunkEMB64AC3cjs.Yb; exports.PROCESSING_PURPOSE_SUB_CATEGORIES = _chunkEMB64AC3cjs.Vb; exports.PROMPTS = _chunkEMB64AC3cjs.ja; exports.PROMPTS_WITH_VARIABLES = _chunkEMB64AC3cjs.ma; exports.PROMPT_GROUPS = _chunkEMB64AC3cjs.la; exports.PROMPT_PARTIALS = _chunkEMB64AC3cjs.ka; exports.PROMPT_THREADS = _chunkEMB64AC3cjs.S; exports.PURPOSES = _chunkEMB64AC3cjs.ga; exports.ParsedAttributeInput = _chunkEMB64AC3cjs.oc; exports.PartitionInput = _chunkQEM6S2W7cjs.L; exports.PathfinderPolicy = _chunkQEM6S2W7cjs.pa; exports.PathfinderPolicyName = _chunkQ7I37FJVcjs.e; exports.PathfinderPolicyNameC = _chunkQEM6S2W7cjs.la; exports.PathfinderPromptRunMetadata = _chunkQEM6S2W7cjs.qa; exports.PolicyInput = _chunkQEM6S2W7cjs.O; exports.PrivacyCenterInput = _chunkQEM6S2W7cjs.N; exports.PrivacyRequest = _chunkEMB64AC3cjs.jd; exports.PrivacyRequestInput = _chunkEMB64AC3cjs.lf; exports.PrivacyRequestResponse = _chunkEMB64AC3cjs.uf; exports.ProcessingActivityInput = _chunkQEM6S2W7cjs.A; exports.ProcessingPurposeInput = _chunkQEM6S2W7cjs.r; exports.ProcessingPurposePreviewInput = _chunkQEM6S2W7cjs.f; exports.PromptAVendorEmailSettings = _chunkQEM6S2W7cjs.x; exports.PromptGroupInput = _chunkQEM6S2W7cjs.u; exports.PromptInput = _chunkQEM6S2W7cjs.s; exports.PromptPartialInput = _chunkQEM6S2W7cjs.t; exports.PurposeMap = _chunkBZI5QRMDcjs.e; exports.REDUCED_REQUESTS_FOR_DATA_SILO_COUNT = _chunkEMB64AC3cjs.wa; exports.REMOVE_REQUEST_IDENTIFIERS = _chunkEMB64AC3cjs.Aa; exports.REPORT_PROMPT_RUN = _chunkEMB64AC3cjs.Fa; exports.REPOSITORIES = _chunkEMB64AC3cjs.A; exports.REQUESTS = _chunkEMB64AC3cjs.V; exports.REQUEST_DATA_SILOS = _chunkEMB64AC3cjs.ta; exports.REQUEST_ENRICHERS = _chunkEMB64AC3cjs.aa; exports.REQUEST_FILES = _chunkEMB64AC3cjs.Da; exports.REQUEST_IDENTIFIERS = _chunkEMB64AC3cjs.Ba; exports.RETRYABLE_BATCH_STATUSES = _chunk4U57O4PScjs.y; exports.RETRY_REQUEST_DATA_SILO = _chunkEMB64AC3cjs.va; exports.RETRY_REQUEST_ENRICHER = _chunkEMB64AC3cjs.ba; exports.RateCounter = _chunkEMB64AC3cjs.Vf; exports.RegionInput = _chunkQEM6S2W7cjs.z; exports.RepositoryInput = _chunkQEM6S2W7cjs.E; exports.RequestFileMetadata = _chunkEMB64AC3cjs.pf; exports.RequestFileMetadataResponse = _chunkEMB64AC3cjs.qf; exports.RequestIdentifiersResponse = _chunkEMB64AC3cjs.hd; exports.RiskAssignmentInput = _chunkQEM6S2W7cjs.W; exports.RiskLogicInput = _chunkQEM6S2W7cjs.X; exports.SCOPES_BY_TITLE = _chunk4U57O4PScjs.w; exports.SCOPE_TITLES = _chunk4U57O4PScjs.x; exports.SET_RESOURCE_ATTRIBUTES = _chunkEMB64AC3cjs.Ra; exports.SKIP_REQUEST_ENRICHER = _chunkEMB64AC3cjs.ca; exports.SOFTWARE_DEVELOPMENT_KITS = _chunkEMB64AC3cjs.M; exports.SOMBRA_VERSION = _chunkEMB64AC3cjs.$b; exports.SUB_DATA_POINTS = _chunkEMB64AC3cjs.c; exports.SUB_DATA_POINTS_COUNT = _chunkEMB64AC3cjs.d; exports.SUB_DATA_POINTS_WITH_GUESSES = _chunkEMB64AC3cjs.e; exports.SYNC_ATTRIBUTE_TYPES = _chunkEMB64AC3cjs.Kc; exports.SoftwareDevelopmentKitInput = _chunkQEM6S2W7cjs.B; exports.StoredApiKey = _chunkQEM6S2W7cjs.ha; exports.SuccessfulRequest = _chunkEMB64AC3cjs.ic; exports.TEAMS = _chunkEMB64AC3cjs.xa; exports.TEMPLATES = _chunkEMB64AC3cjs.I; exports.TOGGLE_CONSENT_PRECEDENCE = _chunkEMB64AC3cjs.kb; exports.TOGGLE_DATA_SUBJECT = _chunkEMB64AC3cjs.z; exports.TOGGLE_TELEMETRY_PARTITION_STRATEGY = _chunkEMB64AC3cjs.jb; exports.TOGGLE_UNKNOWN_COOKIE_POLICY = _chunkEMB64AC3cjs.ib; exports.TOGGLE_UNKNOWN_REQUEST_POLICY = _chunkEMB64AC3cjs.hb; exports.TR_PULL_RESOURCE_SCOPE_MAP = _chunk4U57O4PScjs.u; exports.TR_PUSH_RESOURCE_SCOPE_MAP = _chunk4U57O4PScjs.t; exports.TR_YML_RESOURCE_TO_FIELD_NAME = _chunk4U57O4PScjs.v; exports.TeamInput = _chunkQEM6S2W7cjs.d; exports.TemplateInput = _chunkQEM6S2W7cjs.a; exports.TranscendInput = _chunkQEM6S2W7cjs.ga; exports.TranscendPromptManager = B; exports.TranscendPullResource = _chunkQ7I37FJVcjs.d; exports.UPDATE_ACTION = _chunkEMB64AC3cjs.ub; exports.UPDATE_ACTION_ITEMS = _chunkEMB64AC3cjs.wb; exports.UPDATE_ACTION_ITEM_COLLECTION = _chunkEMB64AC3cjs.Ja; exports.UPDATE_AGENTS = _chunkEMB64AC3cjs.Ib; exports.UPDATE_AGENT_FILES = _chunkEMB64AC3cjs.Lb; exports.UPDATE_AGENT_FUNCTIONS = _chunkEMB64AC3cjs.Ob; exports.UPDATE_ATTRIBUTE = _chunkEMB64AC3cjs.Qa; exports.UPDATE_ATTRIBUTE_VALUES = _chunkEMB64AC3cjs.Ma; exports.UPDATE_BUSINESS_ENTITIES = _chunkEMB64AC3cjs.sb; exports.UPDATE_CODE_PACKAGES = _chunkEMB64AC3cjs.Q; exports.UPDATE_CONSENT_EXPERIENCE = _chunkEMB64AC3cjs.mb; exports.UPDATE_CONSENT_MANAGER_DOMAINS = _chunkEMB64AC3cjs.eb; exports.UPDATE_CONSENT_MANAGER_PARTITION = _chunkEMB64AC3cjs.fb; exports.UPDATE_CONSENT_MANAGER_THEME = _chunkEMB64AC3cjs.lb; exports.UPDATE_CONSENT_MANAGER_TO_LATEST = _chunkEMB64AC3cjs.cb; exports.UPDATE_CONSENT_MANAGER_VERSION = _chunkEMB64AC3cjs.bb; exports.UPDATE_DATA_FLOWS = _chunkEMB64AC3cjs.Va; exports.UPDATE_DATA_SILOS = _chunkEMB64AC3cjs.l; exports.UPDATE_DATA_SUBJECT = _chunkEMB64AC3cjs.y; exports.UPDATE_DATA_SUB_CATEGORIES = _chunkEMB64AC3cjs.Ub; exports.UPDATE_ENRICHER = _chunkEMB64AC3cjs.q; exports.UPDATE_IDENTIFIER = _chunkEMB64AC3cjs.v; exports.UPDATE_INTL_MESSAGES = _chunkEMB64AC3cjs.$; exports.UPDATE_LOAD_OPTIONS = _chunkEMB64AC3cjs.gb; exports.UPDATE_OR_CREATE_COOKIES = _chunkEMB64AC3cjs.Wa; exports.UPDATE_OR_CREATE_DATA_POINT = _chunkEMB64AC3cjs.f; exports.UPDATE_POLICIES = _chunkEMB64AC3cjs.U; exports.UPDATE_PRIVACY_CENTER = _chunkEMB64AC3cjs.Bb; exports.UPDATE_PRIVACY_REQUEST = _chunkEMB64AC3cjs.Y; exports.UPDATE_PROCESSING_ACTIVITIES = _chunkEMB64AC3cjs._b; exports.UPDATE_PROCESSING_PURPOSE_SUB_CATEGORIES = _chunkEMB64AC3cjs.Xb; exports.UPDATE_PROMPTS = _chunkEMB64AC3cjs.na; exports.UPDATE_PROMPT_GROUPS = _chunkEMB64AC3cjs.ra; exports.UPDATE_PROMPT_PARTIALS = _chunkEMB64AC3cjs.pa; exports.UPDATE_REPOSITORIES = _chunkEMB64AC3cjs.B; exports.UPDATE_SOFTWARE_DEVELOPMENT_KITS = _chunkEMB64AC3cjs.N; exports.UPDATE_TEAM = _chunkEMB64AC3cjs.za; exports.UPDATE_VENDORS = _chunkEMB64AC3cjs.Rb; exports.USERS = _chunkEMB64AC3cjs.Ca; exports.USP_STRING_REGEX = _chunkBZI5QRMDcjs.d; exports.VARIABLE_PARAMETERS_NAME = _chunkSW5CIF5Dcjs.b; exports.VARIABLE_PARAMETERS_REGEXP = _chunkSW5CIF5Dcjs.a; exports.VENDORS = _chunkEMB64AC3cjs.Pb; exports.VendorInput = _chunkQEM6S2W7cjs.p; exports.WebhookHeader = _chunkQEM6S2W7cjs.b; exports.addMessagesToPromptRun = _chunkEMB64AC3cjs.tc; exports.appendCsvSync = _chunkLR3CPNDMcjs.b; exports.approvePrivacyRequests = _chunkEMB64AC3cjs.wf; exports.assumeRole = _chunkEMB64AC3cjs.Gd; exports.buildAIIntegrationType = _chunkLCDYXJN6cjs.b; exports.buildEnabledRouteType = _chunkLCDYXJN6cjs.a; exports.buildTranscendGraphQLClient = _chunkEMB64AC3cjs.vc; exports.buildTranscendGraphQLClientGeneric = _chunkEMB64AC3cjs.uc; exports.buildXdiSyncEndpoint = _chunkV4GIAIGUcjs.g; exports.bulkRestartRequests = _chunkEMB64AC3cjs.Ef; exports.bulkRetryEnrichers = _chunkEMB64AC3cjs.Gf; exports.cancelPrivacyRequests = _chunkEMB64AC3cjs.zf; exports.consentManagersToBusinessEntities = _chunkV4GIAIGUcjs.h; exports.convertToDataSubjectAllowlist = _chunkEMB64AC3cjs.vd; exports.convertToDataSubjectBlockList = _chunkEMB64AC3cjs.ud; exports.createActionItemCollection = _chunkEMB64AC3cjs.fe; exports.createActionItems = _chunkEMB64AC3cjs.ie; exports.createAgent = _chunkEMB64AC3cjs.re; exports.createAgentFile = _chunkEMB64AC3cjs.le; exports.createAgentFunction = _chunkEMB64AC3cjs.oe; exports.createApiKey = _chunkEMB64AC3cjs.Hd; exports.createBusinessEntity = _chunkEMB64AC3cjs.ve; exports.createCodePackage = _chunkEMB64AC3cjs.Ee; exports.createConsentToken = _chunkBZI5QRMDcjs.a; exports.createDataCategory = _chunkEMB64AC3cjs.Le; exports.createDataFlows = _chunkEMB64AC3cjs.Pe; exports.createProcessingPurpose = _chunkEMB64AC3cjs.Ze; exports.createPrompt = _chunkEMB64AC3cjs.af; exports.createRegexForTag = j; exports.createRepository = _chunkEMB64AC3cjs.Be; exports.createSoftwareDevelopmentKit = _chunkEMB64AC3cjs.ye; exports.createSombraGotInstance = _chunkEMB64AC3cjs.wc; exports.createTranscendConsentGotInstance = _chunkEMB64AC3cjs.xc; exports.createVendor = _chunkEMB64AC3cjs.df; exports.defineTranscendPrompts = Bm; exports.deleteApiKey = _chunkEMB64AC3cjs.Id; exports.deployConsentManager = _chunkEMB64AC3cjs.yc; exports.description = _chunk4U57O4PScjs.l; exports.domainToHost = _chunkV4GIAIGUcjs.e; exports.downloadPrivacyRequestFiles = _chunkEMB64AC3cjs.tf; exports.enrichPrivacyRequest = _chunkFIPM3WX2cjs.c; exports.ensureAllDataSubjectsExist = _chunkEMB64AC3cjs.td; exports.extractClientError = _chunkEMB64AC3cjs.Bf; exports.extractErrorMessage = _chunkEMB64AC3cjs.Qf; exports.fetchActiveSiloDiscoPlugin = _chunkEMB64AC3cjs.Ac; exports.fetchAllActionItems = _chunkEMB64AC3cjs.Bc; exports.fetchAllActions = _chunkEMB64AC3cjs.Cc; exports.fetchAllAgentFiles = _chunkEMB64AC3cjs.Dc; exports.fetchAllAgentFunctions = _chunkEMB64AC3cjs.Ec; exports.fetchAllAgents = _chunkEMB64AC3cjs.Fc; exports.fetchAllApiKeys = _chunkEMB64AC3cjs.od; exports.fetchAllAssessmentTemplates = _chunkEMB64AC3cjs.Hc; exports.fetchAllAssessments = _chunkEMB64AC3cjs.Gc; exports.fetchAllAttributeValues = _chunkEMB64AC3cjs.Jc; exports.fetchAllAttributes = _chunkEMB64AC3cjs.Lc; exports.fetchAllBusinessEntities = _chunkEMB64AC3cjs.Mc; exports.fetchAllCatalogs = _chunkEMB64AC3cjs.qd; exports.fetchAllCookies = _chunkEMB64AC3cjs.Tc; exports.fetchAllDataCategories = _chunkEMB64AC3cjs.Uc; exports.fetchAllDataFlows = _chunkEMB64AC3cjs.Vc; exports.fetchAllDataPoints = _chunkEMB64AC3cjs.Rd; exports.fetchAllDataSilos = _chunkEMB64AC3cjs.Pd; exports.fetchAllDataSubjects = _chunkEMB64AC3cjs.sd; exports.fetchAllEnrichers = _chunkEMB64AC3cjs.Vd; exports.fetchAllIdentifiers = _chunkEMB64AC3cjs.Yf; exports.fetchAllMessages = _chunkEMB64AC3cjs.Wc; exports.fetchAllPolicies = _chunkEMB64AC3cjs.Zc; exports.fetchAllPreferenceTopics = _chunkEMB64AC3cjs.$c; exports.fetchAllPrivacyCenters = _chunkEMB64AC3cjs.ad; exports.fetchAllProcessingActivities = _chunkEMB64AC3cjs.bd; exports.fetchAllProcessingPurposes = _chunkEMB64AC3cjs.cd; exports.fetchAllPromptGroups = _chunkEMB64AC3cjs.wd; exports.fetchAllPromptPartials = _chunkEMB64AC3cjs.xd; exports.fetchAllPromptThreads = _chunkEMB64AC3cjs.Ad; exports.fetchAllPrompts = _chunkEMB64AC3cjs.yd; exports.fetchAllPurposes = _chunkEMB64AC3cjs.dd; exports.fetchAllPurposesAndPreferences = _chunkEMB64AC3cjs.ed; exports.fetchAllRequestAttributeKeys = _chunkEMB64AC3cjs.Ic; exports.fetchAllRequestEnrichers = _chunkEMB64AC3cjs.fd; exports.fetchAllRequestIdentifierMetadata = _chunkEMB64AC3cjs.gd; exports.fetchAllRequestIdentifiers = _chunkEMB64AC3cjs.id; exports.fetchAllRequests = _chunkEMB64AC3cjs.kd; exports.fetchAllSubDataPoints = _chunkEMB64AC3cjs.Qd; exports.fetchAllTeams = _chunkEMB64AC3cjs.ld; exports.fetchAllTemplates = _chunkEMB64AC3cjs.Xd; exports.fetchAllUsers = _chunkEMB64AC3cjs.md; exports.fetchAllVendors = _chunkEMB64AC3cjs.nd; exports.fetchAndIndexCatalogs = _chunkEMB64AC3cjs.rd; exports.fetchApiKeys = _chunkEMB64AC3cjs.pd; exports.fetchConsentManager = _chunkEMB64AC3cjs.Nc; exports.fetchConsentManagerAnalyticsData = _chunkEMB64AC3cjs.Rc; exports.fetchConsentManagerExperiences = _chunkEMB64AC3cjs.Pc; exports.fetchConsentManagerId = _chunkEMB64AC3cjs.Oc; exports.fetchConsentManagerTheme = _chunkEMB64AC3cjs.Sc; exports.fetchConsentPreferences = _chunkV4GIAIGUcjs.j; exports.fetchEnrichedDataSilos = _chunkEMB64AC3cjs.Sd; exports.fetchIdentifiersAndCreateMissing = _chunkEMB64AC3cjs.Zf; exports.fetchPartitions = _chunkEMB64AC3cjs.Zd; exports.fetchPrivacyCenterId = _chunkEMB64AC3cjs.Yc; exports.fetchPrivacyCenterUrl = _chunkEMB64AC3cjs.Xc; exports.fetchPromptsWithVariables = _chunkEMB64AC3cjs.zd; exports.fetchRequestDataSilo = _chunkEMB64AC3cjs.Cd; exports.fetchRequestDataSiloActiveCount = _chunkEMB64AC3cjs.Dd; exports.fetchRequestDataSilos = _chunkEMB64AC3cjs.Bd; exports.fetchRequestFilesForRequest = _chunkEMB64AC3cjs.Ed; exports.filterNullishValuesFromObject = Um; exports.filterRows = _chunkEMB64AC3cjs.sc; exports.formatAttributeValues = _chunkEMB64AC3cjs._c; exports.fuzzyMatchColumns = _chunkEMB64AC3cjs.lc; exports.fuzzySearch = _chunkEMB64AC3cjs.kc; exports.generateCrossAccountApiKeys = _chunkDQ4R65RBcjs.a; exports.getErrorStatus = _chunkEMB64AC3cjs.Pf; exports.getFileMetadataForPrivacyRequests = _chunkEMB64AC3cjs.rf; exports.getGitFilesThatChanged = vm; exports.getUniqueValuesForColumn = _chunkEMB64AC3cjs.rc; exports.inquirerAutoComplete = _chunkEMB64AC3cjs.Nf; exports.inquirerConfirmBoolean = _chunkEMB64AC3cjs.Lf; exports.inquirerConfirmText = _chunkEMB64AC3cjs.Mf; exports.limitRecords = _chunkEMB64AC3cjs.Uf; exports.listDirectories = _chunkDQ4R65RBcjs.d; exports.listFiles = _chunkDQ4R65RBcjs.c; exports.loginUser = _chunkEMB64AC3cjs.Fd; exports.makeGraphQLRequest = _chunkEMB64AC3cjs.Xf; exports.mapColumnsToAttributes = _chunkEMB64AC3cjs.Af; exports.mapColumnsToIdentifiers = _chunkEMB64AC3cjs.yf; exports.mapCsvColumnsToApi = _chunkEMB64AC3cjs.if; exports.mapCsvRowsToRequestInputs = _chunkEMB64AC3cjs.nf; exports.mapEnumValues = _chunkEMB64AC3cjs.mc; exports.mapRequestEnumValues = _chunkEMB64AC3cjs.jf; exports.markCronIdentifierCompleted = _chunkE3HBS2DScjs.d; exports.markRequestDataSiloIdsCompleted = _chunkE3HBS2DScjs.f; exports.markSilentPrivacyRequests = _chunkEMB64AC3cjs.hf; exports.mergeTranscendInputs = _chunkIBTP5OXEcjs.a; exports.name = _chunk4U57O4PScjs.n; exports.normalizeIdentifierValue = _chunkEMB64AC3cjs.mf; exports.notifyPrivacyRequestsAdditionalTime = _chunkEMB64AC3cjs.xf; exports.parseAssessmentDisplayLogic = _chunkEMB64AC3cjs.Md; exports.parseAssessmentRiskLogic = _chunkEMB64AC3cjs.Od; exports.parseAttributesFromString = _chunkEMB64AC3cjs.pc; exports.parseFilePath = _chunkLR3CPNDMcjs.d; exports.parseVariablesFromString = _chunkEMB64AC3cjs.Of; exports.pullAllDatapoints = _chunkYYYG72XHcjs.a; exports.pullChunkedCustomSiloOutstandingIdentifiers = _chunkE3HBS2DScjs.g; exports.pullConsentManagerMetrics = _chunkV4GIAIGUcjs.d; exports.pullCronPageOfIdentifiers = _chunkE3HBS2DScjs.b; exports.pullManualEnrichmentIdentifiersToCsv = _chunkFIPM3WX2cjs.a; exports.pullPrivacyRequests = _chunkEMB64AC3cjs.If; exports.pullTranscendConfiguration = _chunkEMB64AC3cjs.ae; exports.pullUnstructuredSubDataPointRecommendations = _chunkYYYG72XHcjs.b; exports.pushCronIdentifiersFromCsv = _chunkE3HBS2DScjs.e; exports.pushManualEnrichmentIdentifiersFromCsv = _chunkFIPM3WX2cjs.d; exports.readCsv = _chunkEMB64AC3cjs.qc; exports.readSafe = _chunkEMB64AC3cjs.Wf; exports.readTranscendYaml = _chunkSW5CIF5Dcjs.d; exports.removeLinks = Qm; exports.removeUnverifiedRequestIdentifiers = _chunkEMB64AC3cjs.Kf; exports.replaceVariablesInYaml = _chunkSW5CIF5Dcjs.c; exports.reportPromptRun = _chunkEMB64AC3cjs.be; exports.restartPrivacyRequest = _chunkEMB64AC3cjs.Df; exports.retryRequestDataSilos = _chunkEMB64AC3cjs.Hf; exports.retryRequestEnricher = _chunkEMB64AC3cjs.ce; exports.retrySamePromise = _chunkEMB64AC3cjs.Tf; exports.setResourceAttributes = _chunkEMB64AC3cjs.de; exports.skipPreflightJobs = _chunkEMB64AC3cjs.Ff; exports.skipRequestDataSilos = _chunkEMB64AC3cjs.Jf; exports.sleepPromise = _chunkEMB64AC3cjs.Rf; exports.splitCsvToList = _chunkEMB64AC3cjs.nc; exports.splitInHalf = _chunkEMB64AC3cjs.Sf; exports.streamPrivacyRequestFiles = _chunkEMB64AC3cjs.sf; exports.submitPrivacyRequest = _chunkEMB64AC3cjs.vf; exports.syncAction = _chunkEMB64AC3cjs.ee; exports.syncActionItemCollections = _chunkEMB64AC3cjs.he; exports.syncActionItems = _chunkEMB64AC3cjs.ke; exports.syncAgentFiles = _chunkEMB64AC3cjs.ne; exports.syncAgentFunctions = _chunkEMB64AC3cjs.qe; exports.syncAgents = _chunkEMB64AC3cjs.te; exports.syncAttribute = _chunkEMB64AC3cjs.ue; exports.syncBusinessEntities = _chunkEMB64AC3cjs.xe; exports.syncCodePackages = _chunkEMB64AC3cjs.Ge; exports.syncConfigurationToTranscend = _chunkEMB64AC3cjs._f; exports.syncConsentManager = _chunkEMB64AC3cjs.Ie; exports.syncConsentManagerExperiences = _chunkEMB64AC3cjs.He; exports.syncCookies = _chunkEMB64AC3cjs.Ke; exports.syncDataCategories = _chunkEMB64AC3cjs.Ne; exports.syncDataFlows = _chunkEMB64AC3cjs.Qe; exports.syncDataSiloDependencies = _chunkEMB64AC3cjs.Ud; exports.syncDataSilos = _chunkEMB64AC3cjs.Td; exports.syncDataSubject = _chunkEMB64AC3cjs.Re; exports.syncEnricher = _chunkEMB64AC3cjs.Wd; exports.syncIdentifier = _chunkEMB64AC3cjs.Se; exports.syncIntlMessages = _chunkEMB64AC3cjs.Ue; exports.syncPartitions = _chunkEMB64AC3cjs._d; exports.syncPolicies = _chunkEMB64AC3cjs.We; exports.syncPrivacyCenter = _chunkEMB64AC3cjs.Xe; exports.syncProcessingActivities = _chunkEMB64AC3cjs.Ye; exports.syncProcessingPurposes = _chunkEMB64AC3cjs.$e; exports.syncPrompts = _chunkEMB64AC3cjs.cf; exports.syncRepositories = _chunkEMB64AC3cjs.De; exports.syncSoftwareDevelopmentKits = _chunkEMB64AC3cjs.Ae; exports.syncTemplate = _chunkEMB64AC3cjs.Yd; exports.syncVendors = _chunkEMB64AC3cjs.ff; exports.updateActionItem = _chunkEMB64AC3cjs.je; exports.updateActionItemCollection = _chunkEMB64AC3cjs.ge; exports.updateAgentFiles = _chunkEMB64AC3cjs.me; exports.updateAgentFunctions = _chunkEMB64AC3cjs.pe; exports.updateAgents = _chunkEMB64AC3cjs.se; exports.updateBusinessEntities = _chunkEMB64AC3cjs.we; exports.updateCodePackages = _chunkEMB64AC3cjs.Fe; exports.updateConsentManagerToLatest = _chunkEMB64AC3cjs.zc; exports.updateConsentManagerVersionToLatest = _chunkV4GIAIGUcjs.a; exports.updateDataCategories = _chunkEMB64AC3cjs.Me; exports.updateDataFlows = _chunkEMB64AC3cjs.Oe; exports.updateIntlMessages = _chunkEMB64AC3cjs.Te; exports.updateOrCreateCookies = _chunkEMB64AC3cjs.Je; exports.updatePolicies = _chunkEMB64AC3cjs.Ve; exports.updateProcessingPurposes = _chunkEMB64AC3cjs._e; exports.updatePrompts = _chunkEMB64AC3cjs.bf; exports.updateRepositories = _chunkEMB64AC3cjs.Ce; exports.updateSoftwareDevelopmentKits = _chunkEMB64AC3cjs.ze; exports.updateVendors = _chunkEMB64AC3cjs.ef; exports.uploadConsents = _chunkBZI5QRMDcjs.f; exports.uploadCookiesFromCsv = _chunkV4GIAIGUcjs.c; exports.uploadDataFlowsFromCsv = _chunkV4GIAIGUcjs.b; exports.uploadPrivacyRequestsFromCsv = _chunkEMB64AC3cjs.Cf; exports.uploadSiloDiscoveryResults = _chunkEMB64AC3cjs.gf; exports.validateTranscendAuth = _chunkDQ4R65RBcjs.b; exports.version = _chunk4U57O4PScjs.m; exports.writeCsv = _chunkLR3CPNDMcjs.c; exports.writeCsvSync = _chunkLR3CPNDMcjs.a; exports.writeLargeCsv = _chunkLR3CPNDMcjs.e; exports.writeTranscendYaml = _chunkSW5CIF5Dcjs.e;
3
+ `)[0];if(!o||!i)throw new Error("FAILED TO FIND COMMIT RANGE");let p=_child_process.execSync.call(void 0, `git fetch && git diff --name-only "${a||o}...${i}" -- ${e}`,{encoding:"utf-8"}),m=_chunkOFZ7ZSEVcjs.c.call(void 0, p.split(`
4
+ `).filter(d=>d),s),c=t.length>0?_fastglob2.default.sync(m,{ignore:t}):m,n={};c.forEach(d=>{let F=_child_process.execSync.call(void 0, `git show ${i}:${d}`,{encoding:"utf-8"});n[d]=F});let g=r.split("/").pop().split(".")[0];return{changedFiles:m,fileDiffs:n,repoName:g,commit:i}}exports.ACTIONS = _chunkJEH3FW7Jcjs.tb; exports.ADD_MESSAGES_TO_PROMPT_RUN = _chunkJEH3FW7Jcjs.Ga; exports.ADD_SILO_DISCOVERY_RESULTS = _chunkJEH3FW7Jcjs.G; exports.ADMIN_DASH = _chunkOFZ7ZSEVcjs.o; exports.ADMIN_DASH_DATAPOINTS = _chunkOFZ7ZSEVcjs.q; exports.ADMIN_DASH_INTEGRATIONS = _chunkOFZ7ZSEVcjs.p; exports.AGENTS = _chunkJEH3FW7Jcjs.Gb; exports.AGENT_FILES = _chunkJEH3FW7Jcjs.Jb; exports.AGENT_FUNCTIONS = _chunkJEH3FW7Jcjs.Mb; exports.API_KEYS = _chunkJEH3FW7Jcjs.D; exports.APPROVE_PRIVACY_REQUEST = _chunkJEH3FW7Jcjs.W; exports.ASSESSMENTS = _chunkJEH3FW7Jcjs.ea; exports.ASSESSMENT_SECTION_FIELDS = _chunkJEH3FW7Jcjs.da; exports.ASSESSMENT_TEMPLATES = _chunkJEH3FW7Jcjs.ia; exports.ASSUME_ROLE = _chunkJEH3FW7Jcjs.Eb; exports.ATTRIBUTES = _chunkJEH3FW7Jcjs.Ka; exports.ATTRIBUTE_KEYS_REQUESTS = _chunkJEH3FW7Jcjs.L; exports.ATTRIBUTE_VALUES = _chunkJEH3FW7Jcjs.Oa; exports.ActionInput = _chunkQEM6S2W7cjs.G; exports.ActionItemCollectionInput = _chunkQEM6S2W7cjs.R; exports.ActionItemInput = _chunkQEM6S2W7cjs.S; exports.AgentFileInput = _chunkQEM6S2W7cjs.o; exports.AgentFunctionInput = _chunkQEM6S2W7cjs.n; exports.AgentInput = _chunkQEM6S2W7cjs.m; exports.ApiKeyInput = _chunkQEM6S2W7cjs.c; exports.AssessmentAction = _chunkJEH3FW7Jcjs.Od; exports.AssessmentAnswerOptionInput = _chunkQEM6S2W7cjs.Y; exports.AssessmentDisplayLogicInput = _chunkQEM6S2W7cjs.V; exports.AssessmentInput = _chunkQEM6S2W7cjs.ca; exports.AssessmentNestedRule = _chunkJEH3FW7Jcjs.Nd; exports.AssessmentNestedRuleInput = _chunkQEM6S2W7cjs.U; exports.AssessmentResourceInput = _chunkQEM6S2W7cjs.ba; exports.AssessmentRetentionScheduleInput = _chunkQEM6S2W7cjs.$; exports.AssessmentRiskLogic = _chunkJEH3FW7Jcjs.Qd; exports.AssessmentRule = _chunkJEH3FW7Jcjs.Md; exports.AssessmentRuleInput = _chunkQEM6S2W7cjs.T; exports.AssessmentRuleWithOperands = _chunkJEH3FW7Jcjs.Kd; exports.AssessmentRuleWithoutOperands = _chunkJEH3FW7Jcjs.Ld; exports.AssessmentSectionInput = _chunkQEM6S2W7cjs._; exports.AssessmentSectionQuestionInput = _chunkQEM6S2W7cjs.Z; exports.AssessmentTemplateInput = _chunkQEM6S2W7cjs.aa; exports.AttestedExtraIdentifiers = _chunkJEH3FW7Jcjs.nf; exports.AttributeInput = _chunkQEM6S2W7cjs.k; exports.AttributePreview = _chunkQEM6S2W7cjs.l; exports.AttributeValueInput = _chunkQEM6S2W7cjs.j; exports.BLANK = _chunkJEH3FW7Jcjs.cc; exports.BULK_APPLY = _chunkJEH3FW7Jcjs.bc; exports.BULK_REQUEST_FILES = _chunkJEH3FW7Jcjs.Ea; exports.BUSINESS_ENTITIES = _chunkJEH3FW7Jcjs.qb; exports.BusinessEntityInput = _chunkQEM6S2W7cjs.y; exports.CANCEL_PRIVACY_REQUEST = _chunkJEH3FW7Jcjs.X; exports.CAN_APPLY_IN_BULK = _chunkJEH3FW7Jcjs.gc; exports.CATALOGS = _chunkJEH3FW7Jcjs.r; exports.CHANGE_REQUEST_DATA_SILO_STATUS = _chunkJEH3FW7Jcjs.ua; exports.CODE_PACKAGES = _chunkJEH3FW7Jcjs.P; exports.CONSENT_MANAGER_ANALYTICS_DATA = _chunkJEH3FW7Jcjs.pb; exports.CONSENT_PARTITIONS = _chunkJEH3FW7Jcjs.Ta; exports.COOKIES = _chunkJEH3FW7Jcjs.Ya; exports.CREATE_ACTION_ITEMS = _chunkJEH3FW7Jcjs.xb; exports.CREATE_ACTION_ITEM_COLLECTION = _chunkJEH3FW7Jcjs.Ia; exports.CREATE_AGENT = _chunkJEH3FW7Jcjs.Hb; exports.CREATE_AGENT_FILE = _chunkJEH3FW7Jcjs.Kb; exports.CREATE_AGENT_FUNCTION = _chunkJEH3FW7Jcjs.Nb; exports.CREATE_API_KEY = _chunkJEH3FW7Jcjs.E; exports.CREATE_ATTRIBUTE = _chunkJEH3FW7Jcjs.Pa; exports.CREATE_ATTRIBUTE_VALUES = _chunkJEH3FW7Jcjs.La; exports.CREATE_BUSINESS_ENTITY = _chunkJEH3FW7Jcjs.rb; exports.CREATE_CODE_PACKAGE = _chunkJEH3FW7Jcjs.R; exports.CREATE_CONSENT_EXPERIENCE = _chunkJEH3FW7Jcjs.nb; exports.CREATE_CONSENT_MANAGER = _chunkJEH3FW7Jcjs.ab; exports.CREATE_CONSENT_PARTITION = _chunkJEH3FW7Jcjs.ob; exports.CREATE_DATA_FLOWS = _chunkJEH3FW7Jcjs.Ua; exports.CREATE_DATA_SILOS = _chunkJEH3FW7Jcjs.m; exports.CREATE_DATA_SUBJECT = _chunkJEH3FW7Jcjs.x; exports.CREATE_DATA_SUB_CATEGORY = _chunkJEH3FW7Jcjs.Tb; exports.CREATE_ENRICHER = _chunkJEH3FW7Jcjs.p; exports.CREATE_IDENTIFIER = _chunkJEH3FW7Jcjs.u; exports.CREATE_PROCESSING_ACTIVITY = _chunkJEH3FW7Jcjs.Zb; exports.CREATE_PROCESSING_PURPOSE_SUB_CATEGORY = _chunkJEH3FW7Jcjs.Wb; exports.CREATE_PROMPT = _chunkJEH3FW7Jcjs.oa; exports.CREATE_PROMPT_GROUP = _chunkJEH3FW7Jcjs.sa; exports.CREATE_PROMPT_PARTIAL = _chunkJEH3FW7Jcjs.qa; exports.CREATE_REPOSITORY = _chunkJEH3FW7Jcjs.C; exports.CREATE_SOFTWARE_DEVELOPMENT_KIT = _chunkJEH3FW7Jcjs.O; exports.CREATE_TEAM = _chunkJEH3FW7Jcjs.ya; exports.CREATE_TEMPLATE = _chunkJEH3FW7Jcjs.J; exports.CREATE_VENDOR = _chunkJEH3FW7Jcjs.Qb; exports.CachedFileState = _chunkJEH3FW7Jcjs.hc; exports.CachedRequestState = _chunkJEH3FW7Jcjs.jc; exports.CodePackageInput = _chunkQEM6S2W7cjs.D; exports.CodePackageSdk = _chunkQEM6S2W7cjs.C; exports.ColumnName = _chunkJEH3FW7Jcjs.ec; exports.ConsentManageExperienceInput = _chunkQEM6S2W7cjs.K; exports.ConsentManagerInput = _chunkQEM6S2W7cjs.M; exports.ConsentManagerMetricBin = _chunkJEH3FW7Jcjs.Qc; exports.ConsentManagerServiceMetadata = _chunkQEM6S2W7cjs.ka; exports.ConsentPreferenceResponse = _chunkVXJ3QIONcjs.i; exports.ConsentPreferenceTopic = _chunkQEM6S2W7cjs.ea; exports.ConsentPreferenceTopicOptionValue = _chunkQEM6S2W7cjs.da; exports.ConsentPurpose = _chunkQEM6S2W7cjs.fa; exports.CookieCsvInput = _chunkQEM6S2W7cjs.ja; exports.CookieInput = _chunkQEM6S2W7cjs.J; exports.CronIdentifier = _chunk5CDEM565cjs.a; exports.CronIdentifierPush = _chunk5CDEM565cjs.c; exports.DATAPOINT_EXPORT = _chunkJEH3FW7Jcjs.g; exports.DATA_FLOWS = _chunkJEH3FW7Jcjs.Xa; exports.DATA_POINTS = _chunkJEH3FW7Jcjs.a; exports.DATA_POINT_COUNT = _chunkJEH3FW7Jcjs.b; exports.DATA_SILOS = _chunkJEH3FW7Jcjs.i; exports.DATA_SILOS_ENRICHED = _chunkJEH3FW7Jcjs.k; exports.DATA_SILO_EXPORT = _chunkJEH3FW7Jcjs.j; exports.DATA_SUBJECTS = _chunkJEH3FW7Jcjs.w; exports.DATA_SUB_CATEGORIES = _chunkJEH3FW7Jcjs.Sb; exports.DEBUG = _chunkOFZ7ZSEVcjs.z; exports.DEFAULT_TRANSCEND_API = _chunkOFZ7ZSEVcjs.r; exports.DEFAULT_TRANSCEND_CONSENT_API = _chunkOFZ7ZSEVcjs.s; exports.DEFAULT_TRANSCEND_PULL_RESOURCES = _chunkJEH3FW7Jcjs.ce; exports.DELETE_API_KEY = _chunkJEH3FW7Jcjs.F; exports.DELETE_ATTRIBUTE_VALUE = _chunkJEH3FW7Jcjs.Na; exports.DEPLOYED_PRIVACY_CENTER_URL = _chunkJEH3FW7Jcjs.zb; exports.DEPLOY_CONSENT_MANAGER = _chunkJEH3FW7Jcjs.db; exports.DETERMINE_LOGIN_METHOD = _chunkJEH3FW7Jcjs.Cb; exports.DataCategoryGuessInput = _chunkQEM6S2W7cjs.h; exports.DataCategoryInput = _chunkQEM6S2W7cjs.q; exports.DataCategoryPreviewInput = _chunkQEM6S2W7cjs.g; exports.DataCategoryRecommendationInput = _chunkQEM6S2W7cjs.i; exports.DataFlowCsvInput = _chunkQEM6S2W7cjs.ia; exports.DataFlowInput = _chunkQEM6S2W7cjs.I; exports.DataSiloInput = _chunkQEM6S2W7cjs.Q; exports.DataSubjectInput = _chunkQEM6S2W7cjs.F; exports.DatapointInput = _chunkQEM6S2W7cjs.w; exports.ENABLED_PLUGINS = _chunkJEH3FW7Jcjs.H; exports.ENRICHERS = _chunkJEH3FW7Jcjs.n; exports.ENTRY_COUNT = _chunkJEH3FW7Jcjs.h; exports.EXPERIENCES = _chunkJEH3FW7Jcjs.Sa; exports.EnrichPrivacyRequest = _chunk3BZWG5GJcjs.b; exports.EnricherInput = _chunkQEM6S2W7cjs.e; exports.FETCH_CONSENT_MANAGER = _chunkJEH3FW7Jcjs._a; exports.FETCH_CONSENT_MANAGER_ID = _chunkJEH3FW7Jcjs.Za; exports.FETCH_CONSENT_MANAGER_THEME = _chunkJEH3FW7Jcjs.$a; exports.FETCH_PRIVACY_CENTER_ID = _chunkJEH3FW7Jcjs.yb; exports.FieldInput = _chunkQEM6S2W7cjs.v; exports.GLOBAL_ACTION_ITEMS = _chunkJEH3FW7Jcjs.vb; exports.GLOBAL_ACTION_ITEM_COLLECTIONS = _chunkJEH3FW7Jcjs.Ha; exports.IDENTIFIERS = _chunkJEH3FW7Jcjs.s; exports.IDENTIFIER_BLOCK_LIST = _chunkJEH3FW7Jcjs.dc; exports.IMPORT_ONE_TRUST_ASSESSMENT_FORMS = _chunkJEH3FW7Jcjs.fa; exports.INITIALIZER = _chunkJEH3FW7Jcjs.o; exports.IP_ADDRESS_REGEX = _chunkVXJ3QIONcjs.f; exports.IS_REQUIRED = _chunkJEH3FW7Jcjs.fc; exports.IdentifierInput = _chunkQEM6S2W7cjs.H; exports.ImportOnetrustAssessmentsInput = _chunkQEM6S2W7cjs.ra; exports.IntlMessage = _chunkJEH3FW7Jcjs.rf; exports.IntlMessageInput = _chunkQEM6S2W7cjs.P; exports.LARGE_LANGUAGE_MODELS = _chunkJEH3FW7Jcjs.Fb; exports.LOGIN = _chunkJEH3FW7Jcjs.Db; exports.MESSAGES = _chunkJEH3FW7Jcjs._; exports.NEW_IDENTIFIER_TYPES = _chunkJEH3FW7Jcjs.t; exports.NONE = _chunkJEH3FW7Jcjs.ac; exports.NOTIFY_ADDITIONAL_TIME = _chunkJEH3FW7Jcjs.Z; exports.ORGANIZATION = _chunkJEH3FW7Jcjs.K; exports.OneTrustFileFormat = _chunkQ7I37FJVcjs.a; exports.OneTrustPullResource = _chunkQ7I37FJVcjs.b; exports.OneTrustPullSource = _chunkQ7I37FJVcjs.c; exports.OpenAIEnabledRoute = _chunkQEM6S2W7cjs.ma; exports.OpenAIEnabledRoutes = _chunkQEM6S2W7cjs.na; exports.OpenAIIntegration = _chunkQEM6S2W7cjs.oa; exports.OpenAIRouteName = _chunkQ7I37FJVcjs.f; exports.POLICIES = _chunkJEH3FW7Jcjs.T; exports.PREFERENCE_TOPICS = _chunkJEH3FW7Jcjs.ha; exports.PRIVACY_CENTER = _chunkJEH3FW7Jcjs.Ab; exports.PROCESSING_ACTIVITIES = _chunkJEH3FW7Jcjs.Yb; exports.PROCESSING_PURPOSE_SUB_CATEGORIES = _chunkJEH3FW7Jcjs.Vb; exports.PROMPTS = _chunkJEH3FW7Jcjs.ja; exports.PROMPTS_WITH_VARIABLES = _chunkJEH3FW7Jcjs.ma; exports.PROMPT_GROUPS = _chunkJEH3FW7Jcjs.la; exports.PROMPT_PARTIALS = _chunkJEH3FW7Jcjs.ka; exports.PROMPT_THREADS = _chunkJEH3FW7Jcjs.S; exports.PURPOSES = _chunkJEH3FW7Jcjs.ga; exports.ParsedAttributeInput = _chunkJEH3FW7Jcjs.oc; exports.PartitionInput = _chunkQEM6S2W7cjs.L; exports.PathfinderPolicy = _chunkQEM6S2W7cjs.pa; exports.PathfinderPolicyName = _chunkQ7I37FJVcjs.e; exports.PathfinderPolicyNameC = _chunkQEM6S2W7cjs.la; exports.PathfinderPromptRunMetadata = _chunkQEM6S2W7cjs.qa; exports.PolicyInput = _chunkQEM6S2W7cjs.O; exports.PrivacyCenterInput = _chunkQEM6S2W7cjs.N; exports.PrivacyRequest = _chunkJEH3FW7Jcjs.jd; exports.PrivacyRequestInput = _chunkJEH3FW7Jcjs.of; exports.PrivacyRequestResponse = _chunkJEH3FW7Jcjs.xf; exports.ProcessingActivityInput = _chunkQEM6S2W7cjs.A; exports.ProcessingPurposeInput = _chunkQEM6S2W7cjs.r; exports.ProcessingPurposePreviewInput = _chunkQEM6S2W7cjs.f; exports.PromptAVendorEmailSettings = _chunkQEM6S2W7cjs.x; exports.PromptGroupInput = _chunkQEM6S2W7cjs.u; exports.PromptInput = _chunkQEM6S2W7cjs.s; exports.PromptPartialInput = _chunkQEM6S2W7cjs.t; exports.PurposeMap = _chunkOAG7DICWcjs.e; exports.REDUCED_REQUESTS_FOR_DATA_SILO_COUNT = _chunkJEH3FW7Jcjs.wa; exports.REMOVE_REQUEST_IDENTIFIERS = _chunkJEH3FW7Jcjs.Aa; exports.REPORT_PROMPT_RUN = _chunkJEH3FW7Jcjs.Fa; exports.REPOSITORIES = _chunkJEH3FW7Jcjs.A; exports.REQUESTS = _chunkJEH3FW7Jcjs.V; exports.REQUEST_DATA_SILOS = _chunkJEH3FW7Jcjs.ta; exports.REQUEST_ENRICHERS = _chunkJEH3FW7Jcjs.aa; exports.REQUEST_FILES = _chunkJEH3FW7Jcjs.Da; exports.REQUEST_IDENTIFIERS = _chunkJEH3FW7Jcjs.Ba; exports.RETRYABLE_BATCH_STATUSES = _chunkOFZ7ZSEVcjs.y; exports.RETRY_REQUEST_DATA_SILO = _chunkJEH3FW7Jcjs.va; exports.RETRY_REQUEST_ENRICHER = _chunkJEH3FW7Jcjs.ba; exports.RateCounter = _chunkJEH3FW7Jcjs.Yf; exports.RegionInput = _chunkQEM6S2W7cjs.z; exports.RepositoryInput = _chunkQEM6S2W7cjs.E; exports.RequestFileMetadata = _chunkJEH3FW7Jcjs.sf; exports.RequestFileMetadataResponse = _chunkJEH3FW7Jcjs.tf; exports.RequestIdentifiersResponse = _chunkJEH3FW7Jcjs.hd; exports.RiskAssignmentInput = _chunkQEM6S2W7cjs.W; exports.RiskLogicInput = _chunkQEM6S2W7cjs.X; exports.SCOPES_BY_TITLE = _chunkOFZ7ZSEVcjs.w; exports.SCOPE_TITLES = _chunkOFZ7ZSEVcjs.x; exports.SET_RESOURCE_ATTRIBUTES = _chunkJEH3FW7Jcjs.Ra; exports.SKIP_REQUEST_ENRICHER = _chunkJEH3FW7Jcjs.ca; exports.SOFTWARE_DEVELOPMENT_KITS = _chunkJEH3FW7Jcjs.M; exports.SOMBRA_VERSION = _chunkJEH3FW7Jcjs.$b; exports.SUB_DATA_POINTS = _chunkJEH3FW7Jcjs.c; exports.SUB_DATA_POINTS_COUNT = _chunkJEH3FW7Jcjs.d; exports.SUB_DATA_POINTS_WITH_GUESSES = _chunkJEH3FW7Jcjs.e; exports.SYNC_ATTRIBUTE_TYPES = _chunkJEH3FW7Jcjs.Kc; exports.SoftwareDevelopmentKitInput = _chunkQEM6S2W7cjs.B; exports.StoredApiKey = _chunkQEM6S2W7cjs.ha; exports.SuccessfulRequest = _chunkJEH3FW7Jcjs.ic; exports.TEAMS = _chunkJEH3FW7Jcjs.xa; exports.TEMPLATES = _chunkJEH3FW7Jcjs.I; exports.TOGGLE_CONSENT_PRECEDENCE = _chunkJEH3FW7Jcjs.kb; exports.TOGGLE_DATA_SUBJECT = _chunkJEH3FW7Jcjs.z; exports.TOGGLE_TELEMETRY_PARTITION_STRATEGY = _chunkJEH3FW7Jcjs.jb; exports.TOGGLE_UNKNOWN_COOKIE_POLICY = _chunkJEH3FW7Jcjs.ib; exports.TOGGLE_UNKNOWN_REQUEST_POLICY = _chunkJEH3FW7Jcjs.hb; exports.TR_PULL_RESOURCE_SCOPE_MAP = _chunkOFZ7ZSEVcjs.u; exports.TR_PUSH_RESOURCE_SCOPE_MAP = _chunkOFZ7ZSEVcjs.t; exports.TR_YML_RESOURCE_TO_FIELD_NAME = _chunkOFZ7ZSEVcjs.v; exports.TeamInput = _chunkQEM6S2W7cjs.d; exports.TemplateInput = _chunkQEM6S2W7cjs.a; exports.TranscendInput = _chunkQEM6S2W7cjs.ga; exports.TranscendPromptManager = B; exports.TranscendPullResource = _chunkQ7I37FJVcjs.d; exports.UPDATE_ACTION = _chunkJEH3FW7Jcjs.ub; exports.UPDATE_ACTION_ITEMS = _chunkJEH3FW7Jcjs.wb; exports.UPDATE_ACTION_ITEM_COLLECTION = _chunkJEH3FW7Jcjs.Ja; exports.UPDATE_AGENTS = _chunkJEH3FW7Jcjs.Ib; exports.UPDATE_AGENT_FILES = _chunkJEH3FW7Jcjs.Lb; exports.UPDATE_AGENT_FUNCTIONS = _chunkJEH3FW7Jcjs.Ob; exports.UPDATE_ATTRIBUTE = _chunkJEH3FW7Jcjs.Qa; exports.UPDATE_ATTRIBUTE_VALUES = _chunkJEH3FW7Jcjs.Ma; exports.UPDATE_BUSINESS_ENTITIES = _chunkJEH3FW7Jcjs.sb; exports.UPDATE_CODE_PACKAGES = _chunkJEH3FW7Jcjs.Q; exports.UPDATE_CONSENT_EXPERIENCE = _chunkJEH3FW7Jcjs.mb; exports.UPDATE_CONSENT_MANAGER_DOMAINS = _chunkJEH3FW7Jcjs.eb; exports.UPDATE_CONSENT_MANAGER_PARTITION = _chunkJEH3FW7Jcjs.fb; exports.UPDATE_CONSENT_MANAGER_THEME = _chunkJEH3FW7Jcjs.lb; exports.UPDATE_CONSENT_MANAGER_TO_LATEST = _chunkJEH3FW7Jcjs.cb; exports.UPDATE_CONSENT_MANAGER_VERSION = _chunkJEH3FW7Jcjs.bb; exports.UPDATE_DATA_FLOWS = _chunkJEH3FW7Jcjs.Va; exports.UPDATE_DATA_SILOS = _chunkJEH3FW7Jcjs.l; exports.UPDATE_DATA_SUBJECT = _chunkJEH3FW7Jcjs.y; exports.UPDATE_DATA_SUB_CATEGORIES = _chunkJEH3FW7Jcjs.Ub; exports.UPDATE_ENRICHER = _chunkJEH3FW7Jcjs.q; exports.UPDATE_IDENTIFIER = _chunkJEH3FW7Jcjs.v; exports.UPDATE_INTL_MESSAGES = _chunkJEH3FW7Jcjs.$; exports.UPDATE_LOAD_OPTIONS = _chunkJEH3FW7Jcjs.gb; exports.UPDATE_OR_CREATE_COOKIES = _chunkJEH3FW7Jcjs.Wa; exports.UPDATE_OR_CREATE_DATA_POINT = _chunkJEH3FW7Jcjs.f; exports.UPDATE_POLICIES = _chunkJEH3FW7Jcjs.U; exports.UPDATE_PRIVACY_CENTER = _chunkJEH3FW7Jcjs.Bb; exports.UPDATE_PRIVACY_REQUEST = _chunkJEH3FW7Jcjs.Y; exports.UPDATE_PROCESSING_ACTIVITIES = _chunkJEH3FW7Jcjs._b; exports.UPDATE_PROCESSING_PURPOSE_SUB_CATEGORIES = _chunkJEH3FW7Jcjs.Xb; exports.UPDATE_PROMPTS = _chunkJEH3FW7Jcjs.na; exports.UPDATE_PROMPT_GROUPS = _chunkJEH3FW7Jcjs.ra; exports.UPDATE_PROMPT_PARTIALS = _chunkJEH3FW7Jcjs.pa; exports.UPDATE_REPOSITORIES = _chunkJEH3FW7Jcjs.B; exports.UPDATE_SOFTWARE_DEVELOPMENT_KITS = _chunkJEH3FW7Jcjs.N; exports.UPDATE_TEAM = _chunkJEH3FW7Jcjs.za; exports.UPDATE_VENDORS = _chunkJEH3FW7Jcjs.Rb; exports.USERS = _chunkJEH3FW7Jcjs.Ca; exports.USP_STRING_REGEX = _chunkOAG7DICWcjs.d; exports.VARIABLE_PARAMETERS_NAME = _chunkSW5CIF5Dcjs.b; exports.VARIABLE_PARAMETERS_REGEXP = _chunkSW5CIF5Dcjs.a; exports.VENDORS = _chunkJEH3FW7Jcjs.Pb; exports.VendorInput = _chunkQEM6S2W7cjs.p; exports.WebhookHeader = _chunkQEM6S2W7cjs.b; exports.addMessagesToPromptRun = _chunkJEH3FW7Jcjs.tc; exports.appendCsvSync = _chunkLR3CPNDMcjs.b; exports.approvePrivacyRequests = _chunkJEH3FW7Jcjs.zf; exports.assumeRole = _chunkJEH3FW7Jcjs.Hd; exports.buildAIIntegrationType = _chunkLCDYXJN6cjs.b; exports.buildEnabledRouteType = _chunkLCDYXJN6cjs.a; exports.buildTranscendGraphQLClient = _chunkJEH3FW7Jcjs.vc; exports.buildTranscendGraphQLClientGeneric = _chunkJEH3FW7Jcjs.uc; exports.buildXdiSyncEndpoint = _chunkVXJ3QIONcjs.g; exports.bulkRestartRequests = _chunkJEH3FW7Jcjs.Hf; exports.bulkRetryEnrichers = _chunkJEH3FW7Jcjs.Jf; exports.cancelPrivacyRequests = _chunkJEH3FW7Jcjs.Cf; exports.consentManagersToBusinessEntities = _chunkVXJ3QIONcjs.h; exports.convertToDataSubjectAllowlist = _chunkJEH3FW7Jcjs.vd; exports.convertToDataSubjectBlockList = _chunkJEH3FW7Jcjs.ud; exports.createActionItemCollection = _chunkJEH3FW7Jcjs.ie; exports.createActionItems = _chunkJEH3FW7Jcjs.le; exports.createAgent = _chunkJEH3FW7Jcjs.ue; exports.createAgentFile = _chunkJEH3FW7Jcjs.oe; exports.createAgentFunction = _chunkJEH3FW7Jcjs.re; exports.createApiKey = _chunkJEH3FW7Jcjs.Id; exports.createBusinessEntity = _chunkJEH3FW7Jcjs.ye; exports.createCodePackage = _chunkJEH3FW7Jcjs.He; exports.createConsentToken = _chunkOAG7DICWcjs.a; exports.createDataCategory = _chunkJEH3FW7Jcjs.Oe; exports.createDataFlows = _chunkJEH3FW7Jcjs.Se; exports.createProcessingPurpose = _chunkJEH3FW7Jcjs.af; exports.createPrompt = _chunkJEH3FW7Jcjs.df; exports.createRegexForTag = j; exports.createRepository = _chunkJEH3FW7Jcjs.Ee; exports.createSoftwareDevelopmentKit = _chunkJEH3FW7Jcjs.Be; exports.createSombraGotInstance = _chunkJEH3FW7Jcjs.wc; exports.createTranscendConsentGotInstance = _chunkJEH3FW7Jcjs.xc; exports.createVendor = _chunkJEH3FW7Jcjs.gf; exports.defineTranscendPrompts = Gm; exports.deleteApiKey = _chunkJEH3FW7Jcjs.Jd; exports.deployConsentManager = _chunkJEH3FW7Jcjs.yc; exports.description = _chunkOFZ7ZSEVcjs.l; exports.domainToHost = _chunkVXJ3QIONcjs.e; exports.downloadPrivacyRequestFiles = _chunkJEH3FW7Jcjs.wf; exports.enrichPrivacyRequest = _chunk3BZWG5GJcjs.c; exports.ensureAllDataSubjectsExist = _chunkJEH3FW7Jcjs.td; exports.extractClientError = _chunkJEH3FW7Jcjs.Ef; exports.extractErrorMessage = _chunkJEH3FW7Jcjs.Tf; exports.fetchActiveSiloDiscoPlugin = _chunkJEH3FW7Jcjs.Ac; exports.fetchAllActionItems = _chunkJEH3FW7Jcjs.Bc; exports.fetchAllActions = _chunkJEH3FW7Jcjs.Cc; exports.fetchAllAgentFiles = _chunkJEH3FW7Jcjs.Dc; exports.fetchAllAgentFunctions = _chunkJEH3FW7Jcjs.Ec; exports.fetchAllAgents = _chunkJEH3FW7Jcjs.Fc; exports.fetchAllApiKeys = _chunkJEH3FW7Jcjs.od; exports.fetchAllAssessmentTemplates = _chunkJEH3FW7Jcjs.Hc; exports.fetchAllAssessments = _chunkJEH3FW7Jcjs.Gc; exports.fetchAllAttributeValues = _chunkJEH3FW7Jcjs.Jc; exports.fetchAllAttributes = _chunkJEH3FW7Jcjs.Lc; exports.fetchAllBusinessEntities = _chunkJEH3FW7Jcjs.Mc; exports.fetchAllCatalogs = _chunkJEH3FW7Jcjs.qd; exports.fetchAllCookies = _chunkJEH3FW7Jcjs.Tc; exports.fetchAllDataCategories = _chunkJEH3FW7Jcjs.Uc; exports.fetchAllDataFlows = _chunkJEH3FW7Jcjs.Vc; exports.fetchAllDataPoints = _chunkJEH3FW7Jcjs.Ud; exports.fetchAllDataSilos = _chunkJEH3FW7Jcjs.Sd; exports.fetchAllDataSubjects = _chunkJEH3FW7Jcjs.sd; exports.fetchAllEnrichers = _chunkJEH3FW7Jcjs.Yd; exports.fetchAllIdentifiers = _chunkJEH3FW7Jcjs.$f; exports.fetchAllMessages = _chunkJEH3FW7Jcjs.Wc; exports.fetchAllPolicies = _chunkJEH3FW7Jcjs.Zc; exports.fetchAllPreferenceTopics = _chunkJEH3FW7Jcjs.$c; exports.fetchAllPrivacyCenters = _chunkJEH3FW7Jcjs.ad; exports.fetchAllProcessingActivities = _chunkJEH3FW7Jcjs.bd; exports.fetchAllProcessingPurposes = _chunkJEH3FW7Jcjs.cd; exports.fetchAllPromptGroups = _chunkJEH3FW7Jcjs.wd; exports.fetchAllPromptPartials = _chunkJEH3FW7Jcjs.xd; exports.fetchAllPromptThreads = _chunkJEH3FW7Jcjs.Ad; exports.fetchAllPrompts = _chunkJEH3FW7Jcjs.yd; exports.fetchAllPurposes = _chunkJEH3FW7Jcjs.dd; exports.fetchAllPurposesAndPreferences = _chunkJEH3FW7Jcjs.ed; exports.fetchAllRequestAttributeKeys = _chunkJEH3FW7Jcjs.Ic; exports.fetchAllRequestEnrichers = _chunkJEH3FW7Jcjs.fd; exports.fetchAllRequestIdentifierMetadata = _chunkJEH3FW7Jcjs.gd; exports.fetchAllRequestIdentifiers = _chunkJEH3FW7Jcjs.id; exports.fetchAllRequests = _chunkJEH3FW7Jcjs.kd; exports.fetchAllSubDataPoints = _chunkJEH3FW7Jcjs.Td; exports.fetchAllTeams = _chunkJEH3FW7Jcjs.ld; exports.fetchAllTemplates = _chunkJEH3FW7Jcjs._d; exports.fetchAllUsers = _chunkJEH3FW7Jcjs.md; exports.fetchAllVendors = _chunkJEH3FW7Jcjs.nd; exports.fetchAndIndexCatalogs = _chunkJEH3FW7Jcjs.rd; exports.fetchApiKeys = _chunkJEH3FW7Jcjs.pd; exports.fetchConsentManager = _chunkJEH3FW7Jcjs.Nc; exports.fetchConsentManagerAnalyticsData = _chunkJEH3FW7Jcjs.Rc; exports.fetchConsentManagerExperiences = _chunkJEH3FW7Jcjs.Pc; exports.fetchConsentManagerId = _chunkJEH3FW7Jcjs.Oc; exports.fetchConsentManagerTheme = _chunkJEH3FW7Jcjs.Sc; exports.fetchConsentPreferences = _chunkVXJ3QIONcjs.j; exports.fetchEnrichedDataSilos = _chunkJEH3FW7Jcjs.Vd; exports.fetchIdentifiersAndCreateMissing = _chunkJEH3FW7Jcjs.ag; exports.fetchPartitions = _chunkJEH3FW7Jcjs.ae; exports.fetchPrivacyCenterId = _chunkJEH3FW7Jcjs.Yc; exports.fetchPrivacyCenterUrl = _chunkJEH3FW7Jcjs.Xc; exports.fetchPromptsWithVariables = _chunkJEH3FW7Jcjs.zd; exports.fetchRequestDataSilo = _chunkJEH3FW7Jcjs.Dd; exports.fetchRequestDataSiloActiveCount = _chunkJEH3FW7Jcjs.Ed; exports.fetchRequestDataSilos = _chunkJEH3FW7Jcjs.Cd; exports.fetchRequestDataSilosCount = _chunkJEH3FW7Jcjs.Bd; exports.fetchRequestFilesForRequest = _chunkJEH3FW7Jcjs.Fd; exports.filterNullishValuesFromObject = Vm; exports.filterRows = _chunkJEH3FW7Jcjs.sc; exports.formatAttributeValues = _chunkJEH3FW7Jcjs._c; exports.fuzzyMatchColumns = _chunkJEH3FW7Jcjs.lc; exports.fuzzySearch = _chunkJEH3FW7Jcjs.kc; exports.generateCrossAccountApiKeys = _chunkGVK66NZAcjs.a; exports.getErrorStatus = _chunkJEH3FW7Jcjs.Sf; exports.getFileMetadataForPrivacyRequests = _chunkJEH3FW7Jcjs.uf; exports.getGitFilesThatChanged = Jm; exports.getUniqueValuesForColumn = _chunkJEH3FW7Jcjs.rc; exports.inquirerAutoComplete = _chunkJEH3FW7Jcjs.Qf; exports.inquirerConfirmBoolean = _chunkJEH3FW7Jcjs.Of; exports.inquirerConfirmText = _chunkJEH3FW7Jcjs.Pf; exports.limitRecords = _chunkJEH3FW7Jcjs.Xf; exports.listDirectories = _chunkGVK66NZAcjs.d; exports.listFiles = _chunkGVK66NZAcjs.c; exports.loginUser = _chunkJEH3FW7Jcjs.Gd; exports.makeGraphQLRequest = _chunkJEH3FW7Jcjs._f; exports.mapColumnsToAttributes = _chunkJEH3FW7Jcjs.Df; exports.mapColumnsToIdentifiers = _chunkJEH3FW7Jcjs.Bf; exports.mapCsvColumnsToApi = _chunkJEH3FW7Jcjs.lf; exports.mapCsvRowsToRequestInputs = _chunkJEH3FW7Jcjs.qf; exports.mapEnumValues = _chunkJEH3FW7Jcjs.mc; exports.mapRequestEnumValues = _chunkJEH3FW7Jcjs.mf; exports.markCronIdentifierCompleted = _chunk5CDEM565cjs.d; exports.markRequestDataSiloIdsCompleted = _chunk5CDEM565cjs.f; exports.markSilentPrivacyRequests = _chunkJEH3FW7Jcjs.kf; exports.mergeTranscendInputs = _chunkIBTP5OXEcjs.a; exports.name = _chunkOFZ7ZSEVcjs.n; exports.normalizeIdentifierValue = _chunkJEH3FW7Jcjs.pf; exports.notifyPrivacyRequestsAdditionalTime = _chunkJEH3FW7Jcjs.Af; exports.parseAssessmentDisplayLogic = _chunkJEH3FW7Jcjs.Pd; exports.parseAssessmentRiskLogic = _chunkJEH3FW7Jcjs.Rd; exports.parseAttributesFromString = _chunkJEH3FW7Jcjs.pc; exports.parseFilePath = _chunkLR3CPNDMcjs.d; exports.parseVariablesFromString = _chunkJEH3FW7Jcjs.Rf; exports.pullAllDatapoints = _chunkUW2YF6JMcjs.a; exports.pullChunkedCustomSiloOutstandingIdentifiers = _chunk5CDEM565cjs.g; exports.pullConsentManagerMetrics = _chunkVXJ3QIONcjs.d; exports.pullCronPageOfIdentifiers = _chunk5CDEM565cjs.b; exports.pullManualEnrichmentIdentifiersToCsv = _chunk3BZWG5GJcjs.a; exports.pullPrivacyRequests = _chunkJEH3FW7Jcjs.Lf; exports.pullTranscendConfiguration = _chunkJEH3FW7Jcjs.de; exports.pullUnstructuredSubDataPointRecommendations = _chunkUW2YF6JMcjs.b; exports.pushCronIdentifiersFromCsv = _chunk5CDEM565cjs.e; exports.pushManualEnrichmentIdentifiersFromCsv = _chunk3BZWG5GJcjs.d; exports.readCsv = _chunkJEH3FW7Jcjs.qc; exports.readSafe = _chunkJEH3FW7Jcjs.Zf; exports.readTranscendYaml = _chunkSW5CIF5Dcjs.d; exports.removeLinks = jm; exports.removeUnverifiedRequestIdentifiers = _chunkJEH3FW7Jcjs.Nf; exports.replaceVariablesInYaml = _chunkSW5CIF5Dcjs.c; exports.reportPromptRun = _chunkJEH3FW7Jcjs.ee; exports.restartPrivacyRequest = _chunkJEH3FW7Jcjs.Gf; exports.retryRequestDataSilos = _chunkJEH3FW7Jcjs.Kf; exports.retryRequestEnricher = _chunkJEH3FW7Jcjs.fe; exports.retrySamePromise = _chunkJEH3FW7Jcjs.Wf; exports.setResourceAttributes = _chunkJEH3FW7Jcjs.ge; exports.skipPreflightJobs = _chunkJEH3FW7Jcjs.If; exports.skipRequestDataSilos = _chunkJEH3FW7Jcjs.Mf; exports.sleepPromise = _chunkJEH3FW7Jcjs.Uf; exports.splitCsvToList = _chunkJEH3FW7Jcjs.nc; exports.splitInHalf = _chunkJEH3FW7Jcjs.Vf; exports.streamPrivacyRequestFiles = _chunkJEH3FW7Jcjs.vf; exports.submitPrivacyRequest = _chunkJEH3FW7Jcjs.yf; exports.syncAction = _chunkJEH3FW7Jcjs.he; exports.syncActionItemCollections = _chunkJEH3FW7Jcjs.ke; exports.syncActionItems = _chunkJEH3FW7Jcjs.ne; exports.syncAgentFiles = _chunkJEH3FW7Jcjs.qe; exports.syncAgentFunctions = _chunkJEH3FW7Jcjs.te; exports.syncAgents = _chunkJEH3FW7Jcjs.we; exports.syncAttribute = _chunkJEH3FW7Jcjs.xe; exports.syncBusinessEntities = _chunkJEH3FW7Jcjs.Ae; exports.syncCodePackages = _chunkJEH3FW7Jcjs.Je; exports.syncConfigurationToTranscend = _chunkJEH3FW7Jcjs.bg; exports.syncConsentManager = _chunkJEH3FW7Jcjs.Le; exports.syncConsentManagerExperiences = _chunkJEH3FW7Jcjs.Ke; exports.syncCookies = _chunkJEH3FW7Jcjs.Ne; exports.syncDataCategories = _chunkJEH3FW7Jcjs.Qe; exports.syncDataFlows = _chunkJEH3FW7Jcjs.Te; exports.syncDataSiloDependencies = _chunkJEH3FW7Jcjs.Xd; exports.syncDataSilos = _chunkJEH3FW7Jcjs.Wd; exports.syncDataSubject = _chunkJEH3FW7Jcjs.Ue; exports.syncEnricher = _chunkJEH3FW7Jcjs.Zd; exports.syncIdentifier = _chunkJEH3FW7Jcjs.Ve; exports.syncIntlMessages = _chunkJEH3FW7Jcjs.Xe; exports.syncPartitions = _chunkJEH3FW7Jcjs.be; exports.syncPolicies = _chunkJEH3FW7Jcjs.Ze; exports.syncPrivacyCenter = _chunkJEH3FW7Jcjs._e; exports.syncProcessingActivities = _chunkJEH3FW7Jcjs.$e; exports.syncProcessingPurposes = _chunkJEH3FW7Jcjs.cf; exports.syncPrompts = _chunkJEH3FW7Jcjs.ff; exports.syncRepositories = _chunkJEH3FW7Jcjs.Ge; exports.syncSoftwareDevelopmentKits = _chunkJEH3FW7Jcjs.De; exports.syncTemplate = _chunkJEH3FW7Jcjs.$d; exports.syncVendors = _chunkJEH3FW7Jcjs.if; exports.updateActionItem = _chunkJEH3FW7Jcjs.me; exports.updateActionItemCollection = _chunkJEH3FW7Jcjs.je; exports.updateAgentFiles = _chunkJEH3FW7Jcjs.pe; exports.updateAgentFunctions = _chunkJEH3FW7Jcjs.se; exports.updateAgents = _chunkJEH3FW7Jcjs.ve; exports.updateBusinessEntities = _chunkJEH3FW7Jcjs.ze; exports.updateCodePackages = _chunkJEH3FW7Jcjs.Ie; exports.updateConsentManagerToLatest = _chunkJEH3FW7Jcjs.zc; exports.updateConsentManagerVersionToLatest = _chunkVXJ3QIONcjs.a; exports.updateDataCategories = _chunkJEH3FW7Jcjs.Pe; exports.updateDataFlows = _chunkJEH3FW7Jcjs.Re; exports.updateIntlMessages = _chunkJEH3FW7Jcjs.We; exports.updateOrCreateCookies = _chunkJEH3FW7Jcjs.Me; exports.updatePolicies = _chunkJEH3FW7Jcjs.Ye; exports.updateProcessingPurposes = _chunkJEH3FW7Jcjs.bf; exports.updatePrompts = _chunkJEH3FW7Jcjs.ef; exports.updateRepositories = _chunkJEH3FW7Jcjs.Fe; exports.updateSoftwareDevelopmentKits = _chunkJEH3FW7Jcjs.Ce; exports.updateVendors = _chunkJEH3FW7Jcjs.hf; exports.uploadConsents = _chunkOAG7DICWcjs.f; exports.uploadCookiesFromCsv = _chunkVXJ3QIONcjs.c; exports.uploadDataFlowsFromCsv = _chunkVXJ3QIONcjs.b; exports.uploadPrivacyRequestsFromCsv = _chunkJEH3FW7Jcjs.Ff; exports.uploadSiloDiscoveryResults = _chunkJEH3FW7Jcjs.jf; exports.validateTranscendAuth = _chunkGVK66NZAcjs.b; exports.version = _chunkOFZ7ZSEVcjs.m; exports.writeCsv = _chunkLR3CPNDMcjs.c; exports.writeCsvSync = _chunkLR3CPNDMcjs.a; exports.writeLargeCsv = _chunkLR3CPNDMcjs.e; exports.writeTranscendYaml = _chunkSW5CIF5Dcjs.e;
5
5
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/cli/cli/dist/index.cjs","../src/lib/ai/TranscendPromptManager.ts","../src/lib/graphql/fetchLargeLanguageModels.ts","../src/lib/ai/getGitFilesThatChanged.ts"],"names":["PAGE_SIZE","fetchAllLargeLanguageModels","client","largeLanguageModels","offset","shouldContinue","nodes","makeGraphQLRequest","LARGE_LANGUAGE_MODELS","a","b","createRegexForTag","tagName","defineTranscendPrompts","prompts","jsonParseSafe","obj","TranscendPromptManager","handlebarsOptions","transcendUrl","DEFAULT_TRANSCEND_API","transcendApiKey","requireApproval","cacheDuration","defaultVariables","buildTranscendGraphQLClient","createHandlebarsWithHelpers","promptDefinitions","getValues","promptIds","id","x","promptTitles","title","agentNames","uniq_default","response","agents","fetchPromptsWithVariables","fetchAllAgents","keyBy_default","model","promptByTitle","promptById","acc","v","partial","apply","result","name","agent","remoteAgent","ts","thread","fetchAllPromptThreads","names","hasCache","missingCache","groupBy_default","cachedAgents","chunkedNames","chunk_default","remoteAgents","mapSeries","chunkedName","pageOfAgents","filterBy","fetchAllAgentFiles","largeLanguageModel","matching"],"mappings":"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","file":"/home/runner/work/cli/cli/dist/index.cjs","sourcesContent":[null,"/* eslint-disable max-lines */\nimport {\n Optionalize,\n Requirize,\n apply,\n decodeCodec,\n getValues,\n} from '@transcend-io/type-utils';\nimport type { Handlebars } from '@transcend-io/handlebars-utils';\nimport { Secret } from '@transcend-io/secret-value';\nimport * as t from 'io-ts';\nimport { DEFAULT_TRANSCEND_API } from '../../constants';\nimport {\n Agent,\n AgentFile,\n AgentFileFilterBy,\n ReportPromptRunInput,\n buildTranscendGraphQLClient,\n fetchAllAgentFiles,\n fetchAllAgents,\n reportPromptRun,\n} from '../graphql';\nimport {\n HandlebarsInput,\n createHandlebarsWithHelpers,\n} from '@transcend-io/handlebars-utils';\nimport {\n TranscendPromptTemplated,\n TranscendPromptsAndVariables,\n fetchPromptsWithVariables,\n} from '../graphql/fetchPrompts';\nimport { GraphQLClient } from 'graphql-request';\nimport {\n PromptStatus,\n ChatCompletionRole,\n PromptRunProductArea,\n QueueStatus,\n LargeLanguageModelClient,\n} from '@transcend-io/privacy-types';\nimport {\n LargeLanguageModel,\n fetchAllLargeLanguageModels,\n} from '../graphql/fetchLargeLanguageModels';\nimport { groupBy, keyBy, uniq, chunk } from 'lodash-es';\nimport { mapSeries } from 'bluebird';\nimport {\n PromptThread,\n fetchAllPromptThreads,\n} from '../graphql/fetchPromptThreads';\n\n/**\n * An LLM Prompt definition\n */\nexport type TranscendPrompt<\n TInputParams extends t.Any,\n TOutputCodec extends t.Any,\n> = (\n | {\n /** ID of the prompt */\n id: string;\n /** Title of the prompt */\n title?: string;\n }\n | {\n /** ID of the prompt */\n id?: string;\n /** Title of the prompt */\n title: string;\n }\n) & {\n /** The names of the agents that should be loaded along with the prompt */\n agentNames?: string[];\n /** Codec to validate runtime input shape */\n paramCodec: TInputParams;\n /** Codec to validate output response */\n outputCodec: TOutputCodec;\n /**\n * If the output that needs to be parsed is returned within a tag\n * e.g. <tag> or <json> - this is the name of the tag\n */\n extractFromTag?: string;\n};\n\nexport interface PromptRunResult {\n /** The ID of the prompt run created on Transcend */\n promptRunId: string;\n /** The URL of the prompt run on Transcend */\n promptRunUrl: string;\n}\n\n/**\n * Create a regex to extract data from a tag\n *\n * Input:\n * \"here is some data <tag>Data</tag>...\"\n *\n * @param tagName - Name of tag\n * @returns Data within the tag\n */\nexport function createRegexForTag(tagName: string): RegExp {\n return new RegExp(`<${tagName}>([\\\\s\\\\S]+?)<\\\\/${tagName}>`);\n}\n\n/**\n * Helper function to declare prompts\n *\n * @param prompts - Prompt config\n * @returns Prompts as identity function - but type enforced\n */\nexport function defineTranscendPrompts<\n TPromptNames extends string,\n TPrompts extends { [k in TPromptNames]: TranscendPrompt<t.Any, t.Any> },\n>(prompts: TPrompts): TPrompts {\n return prompts;\n}\n\n/**\n * Helper to get the type of the parameter for a given prompt\n */\nexport type GetPromptParamType<\n TPromptName extends keyof TPrompts,\n TPrompts extends { [k in TPromptName]: TranscendPrompt<t.Any, t.Any> },\n> = t.TypeOf<TPrompts[TPromptName]['paramCodec']>;\n\n/**\n * Helper to get the type of the parameter for a given prompt\n */\nexport type GetPromptResponseType<\n TPromptName extends keyof TPrompts,\n TPrompts extends { [k in TPromptName]: TranscendPrompt<t.Any, t.Any> },\n> = t.TypeOf<TPrompts[TPromptName]['outputCodec']>;\n\n/**\n * Input for reporting a prompt run\n */\nexport interface ReportPromptRunOptions\n extends Optionalize<\n Omit<ReportPromptRunInput, 'status' | 'promptId' | 'largeLanguageModelId'>,\n 'name' | 'productArea'\n > {\n /** The large language model being run. Either the ID of the LLM or the client/name pairing */\n largeLanguageModel:\n | string\n | {\n /** Name of client */\n client: LargeLanguageModelClient;\n /** Name of the model */\n name: string;\n };\n}\n\nconst jsonParseSafe = (obj: string): unknown => {\n try {\n return JSON.parse(obj);\n } catch (e) {\n return obj;\n }\n};\n\n/**\n * A class that is capable of loading and insert variables into prompts from\n * Transcend's Prompt Manager\n */\nexport class TranscendPromptManager<\n TPromptNames extends string,\n TPrompts extends { [k in TPromptNames]: TranscendPrompt<t.Any, t.Any> },\n> {\n /** Prompt definitions */\n public prompts: TPrompts;\n\n /** Options for configuring handlebars */\n public handlebarsOptions!: HandlebarsInput;\n\n /** Prompt name -> content map, populated by call to Transcend API */\n public promptContentMap?: { [k in TPromptNames]: TranscendPromptTemplated };\n\n /** The large language models that are registered to this organization for reporting */\n public largeLanguageModels: LargeLanguageModel[] = [];\n\n /** The agent definitions registered to this organization */\n private agentsByName: { [name in string]: Agent } = {};\n\n /** The agent definitions registered to this organization */\n private agentsByAgentId: { [id in string]: Agent } = {};\n\n /** The GraphQL client that can be used to call Transcend */\n public graphQLClient: GraphQLClient;\n\n /** The set of variables to expose in handlebars context specified at class initiation */\n public defaultVariables: { [k in string]: unknown };\n\n /**\n * The set of variables to expose in handlebars context,\n * merges defaults with calculated variables from the inventory\n */\n public variables: { [k in string]: unknown };\n\n /** Handlebars compiler */\n public handlebars: typeof Handlebars;\n\n /** The Transcend API key */\n public transcendApiKey: string | Secret<string>;\n\n /** API of Transcend to call */\n public transcendUrl: string;\n\n /** When true, throw an error if the prompt is not approved */\n public requireApproval: boolean;\n\n /**\n * The cache duration in ms for how long prompts and associated metadata should be cached\n * When undefined - prompts are cached indefinitely unless explicitly re-requested\n * When 0, prompts and metadata are fetched every time (not recommended)\n * Setting this to be an hour is a good rate that optimizes for performance and keeping up to date\n */\n public cacheDuration?: number;\n\n /**\n * The last time the metadata was fetched\n */\n public lastUpdatedAt?: Date;\n\n /**\n * Constructor\n *\n * @param options - Options\n */\n constructor({\n prompts,\n handlebarsOptions = {},\n transcendUrl = DEFAULT_TRANSCEND_API,\n transcendApiKey,\n requireApproval = true,\n cacheDuration,\n defaultVariables = {},\n }: {\n /** Prompt definitions to load */\n prompts: TPrompts;\n /** Options for configuring handlebars */\n handlebarsOptions?: HandlebarsInput;\n /** The Transcend API key */\n transcendApiKey: string | Secret<string>;\n /** API of Transcend to call */\n transcendUrl?: string;\n /** When true, throw an error if the prompt is not approved */\n requireApproval?: boolean;\n /** The set of variables to expose in handlebars context specified at class initiation */\n defaultVariables?: { [k in string]: unknown };\n /**\n * The cache duration in ms for how long prompts and associated metadata should be cached\n * When undefined - prompts are cached indefinitely unless explicitly re-requested\n * When 0, prompts and metadata are fetched every time (not recommended)\n * Setting this to be an hour is a good rate that optimizes for performance and keeping up to date\n */\n cacheDuration?: number;\n }) {\n this.prompts = prompts;\n this.transcendUrl = transcendUrl;\n this.transcendApiKey = transcendApiKey;\n this.variables = defaultVariables;\n this.defaultVariables = defaultVariables;\n this.graphQLClient = buildTranscendGraphQLClient(\n transcendUrl,\n typeof transcendApiKey === 'object'\n ? transcendApiKey.release()\n : transcendApiKey,\n );\n this.requireApproval = requireApproval;\n this.cacheDuration = cacheDuration;\n this.handlebarsOptions = handlebarsOptions;\n this.handlebars = createHandlebarsWithHelpers(handlebarsOptions);\n }\n\n /**\n * Fetch prompt metadata from Transcend and cache to the class definition\n *\n * @returns A function that can be used to call the prompt\n */\n async fetchPromptsAndMetadata(): Promise<TranscendPromptsAndVariables> {\n // Determine what to fetch\n const promptDefinitions = getValues(this.prompts) as TranscendPrompt<\n t.Any,\n t.Any\n >[];\n const promptIds = promptDefinitions\n .map(({ id }) => id)\n .filter((x): x is string => !!x);\n const promptTitles = promptDefinitions\n .map(({ title }) => title)\n .filter((x): x is string => !!x);\n const agentNames = uniq(\n promptDefinitions.map(({ agentNames }) => agentNames || []).flat(),\n );\n\n // Fetch prompts and data\n const [response, largeLanguageModels, agents] = await Promise.all([\n fetchPromptsWithVariables(this.graphQLClient, {\n promptIds,\n promptTitles,\n }),\n fetchAllLargeLanguageModels(this.graphQLClient),\n fetchAllAgents(this.graphQLClient, { names: agentNames }),\n ]);\n this.agentsByName = keyBy(agents, 'name');\n this.agentsByAgentId = keyBy(agents, 'agentId');\n this.largeLanguageModels = largeLanguageModels.filter(\n (model) => model.isTranscendHosted === false,\n );\n\n // Lookup prompts by id/title\n const promptByTitle = keyBy(response.prompts, 'title');\n const promptById = keyBy(response.prompts, 'id');\n\n // Update variables\n this.variables = {\n ...response.calculatedVariables.reduce(\n (acc, v) =>\n Object.assign(acc, {\n [v.name]: v.data ? JSON.parse(v.data) : v.data,\n }),\n {},\n ),\n ...this.defaultVariables,\n };\n\n // Update partials\n this.handlebars = createHandlebarsWithHelpers({\n ...this.handlebarsOptions,\n templates: [\n ...(this.handlebarsOptions.templates || []),\n ...response.promptPartials.map((partial) => ({\n name: partial.slug,\n content: partial.content,\n })),\n ],\n });\n\n // Create mapping from prompt to content\n this.promptContentMap = apply(this.prompts, ({ id, title }) => {\n const result = id\n ? promptById[id]\n : title\n ? promptByTitle[title]\n : undefined;\n if (!result) {\n throw new Error(\n `Failed to find prompt with title: \"${title}\" and id: \"${id}\"`,\n );\n }\n return result;\n });\n\n // For cache\n this.lastUpdatedAt = new Date();\n\n return response;\n }\n\n /**\n * Get an agent definition by name\n *\n * @param name - Name of the agent to grab\n * @returns Large language model configuration\n */\n async getAgentByName(name: string): Promise<Agent | undefined> {\n const agent = this.agentsByName[name];\n if (agent) {\n return agent;\n }\n const [remoteAgent] = await fetchAllAgents(this.graphQLClient, {\n names: [name],\n });\n if (!remoteAgent) {\n return undefined;\n }\n this.agentsByName[remoteAgent.name] = remoteAgent;\n this.agentsByAgentId[remoteAgent.agentId] = remoteAgent;\n return remoteAgent;\n }\n\n /**\n * Get a prompt thread by ts\n *\n * @param ts - the slack message timestamp to look up thread for\n * @returns Large language model configuration\n */\n async getPromptThreadBySlackTs(\n ts: string,\n ): Promise<PromptThread | undefined> {\n const [thread] = await fetchAllPromptThreads(this.graphQLClient, {\n slackMessageTs: [ts],\n });\n return thread;\n }\n\n /**\n * Get a list of agent definitions by name.\n * Pulls from cache and may return less agents\n * than requested if some are not found\n *\n * @param names - Names of agents to fetch\n * @returns The agents that were found matching the names\n */\n async getAgentsByName(names: string[]): Promise<Agent[]> {\n if (names.length < 1) {\n throw new Error('Expected at least one name to be provided');\n }\n const { hasCache = [], missingCache = [] } = groupBy(names, (name) =>\n this.agentsByName[name] ? 'hasCache' : 'missingCache',\n );\n const cachedAgents = hasCache.map((name) => this.agentsByName[name]);\n if (missingCache.length === 0) {\n return cachedAgents;\n }\n const chunkedNames = chunk(missingCache, 50);\n const remoteAgents: Agent[] = [];\n await mapSeries(chunkedNames, async (chunkedName) => {\n const pageOfAgents = await fetchAllAgents(this.graphQLClient, {\n names: chunkedName,\n });\n pageOfAgents.forEach((agent) => {\n this.agentsByName[agent.name] = agent;\n this.agentsByAgentId[agent.agentId] = agent;\n });\n remoteAgents.push(...pageOfAgents);\n });\n return [...cachedAgents, ...remoteAgents];\n }\n\n /**\n * Fetch metadata on agent files\n *\n * @param filterBy - Filter by parameters\n * @returns The files found matching the filter\n */\n getAgentFiles(filterBy: AgentFileFilterBy): Promise<AgentFile[]> {\n return fetchAllAgentFiles(this.graphQLClient, filterBy);\n }\n\n /**\n * Look up the large language model to report on\n *\n * @param largeLanguageModel - Input\n * @returns Large language model configuration\n */\n getLargeLanguageModel(\n largeLanguageModel: ReportPromptRunOptions['largeLanguageModel'],\n ): LargeLanguageModel {\n const matching = this.largeLanguageModels.find((model) =>\n typeof largeLanguageModel === 'string'\n ? model.id === largeLanguageModel\n : model.name === largeLanguageModel.name &&\n model.client === largeLanguageModel.client,\n );\n if (!matching) {\n throw new Error(\n `Failed to find model matching: ${\n typeof largeLanguageModel === 'string'\n ? largeLanguageModel\n : JSON.stringify(largeLanguageModel)\n }`,\n );\n }\n return matching;\n }\n\n /**\n * Get a prompt definition by name\n *\n * @param promptName - Prompt to compile\n * @returns Parsed content\n */\n async getPromptDefinition<TPromptName extends TPromptNames>(\n promptName: TPromptName,\n ): Promise<TranscendPromptTemplated> {\n // Determine if prompts need to be fetched\n if (\n // never been fetched\n !this.lastUpdatedAt ||\n // fetch every run\n this.cacheDuration === 0 ||\n // If cache duration met\n (this.cacheDuration &&\n Date.now() - this.lastUpdatedAt.getTime() > this.cacheDuration)\n ) {\n await this.fetchPromptsAndMetadata();\n }\n\n // Lookup prompt\n const { promptContentMap } = this;\n if (!promptContentMap) {\n throw new Error('Expected this.promptContentMap to be defined');\n }\n const promptTemplate = promptContentMap[promptName];\n if (!promptTemplate) {\n throw new Error(\n `Expected this.promptContentMap[${promptName}] to be defined`,\n );\n }\n return promptTemplate;\n }\n\n /**\n * Validate the shape of the response from AI\n *\n * @param promptName - Prompt to compile\n * @param params - Runtime parameters\n * @returns Parsed content\n */\n async compilePrompt<TPromptName extends TPromptNames>(\n promptName: TPromptName,\n params: t.TypeOf<TPrompts[TPromptName]['paramCodec']>,\n ): Promise<string> {\n // Grab the prompt\n const promptTemplate = await this.getPromptDefinition(promptName);\n const promptInput = this.prompts[promptName];\n if (!promptInput) {\n throw new Error(`Expected this.prompts[${promptName}] to be defined`);\n }\n\n // Ensure prompt is approved\n if (\n this.requireApproval &&\n promptTemplate.status !== PromptStatus.Approved\n ) {\n throw new Error(\n `Assessment \"${promptTemplate.title}\" cannot be used because its in status: \"${promptTemplate.status}\"`,\n );\n }\n\n // If prompt is rejected, throw error\n if (promptTemplate.status === PromptStatus.Rejected) {\n throw new Error(\n `Assessment \"${promptTemplate.title}\" cannot be used because it's in status: \"${promptTemplate.status}\"`,\n );\n }\n\n // Validate params\n decodeCodec(promptInput.paramCodec, params);\n\n // Compile prompt and template\n return this.handlebars.compile(promptTemplate.content)({\n // template in currentDate by default\n currentDate: new Date().toISOString(),\n ...this.variables,\n ...params,\n });\n }\n\n /**\n * Validate the shape of the response from AI\n *\n * @param promptName - Prompt to parse\n * @param response - AI response as string\n * @returns Parsed content\n */\n parseAiResponse<TPromptName extends TPromptNames>(\n promptName: TPromptName,\n response: string,\n ): t.TypeOf<TPrompts[TPromptName]['outputCodec']> {\n // Look up prompt info\n const promptInput = this.prompts[promptName];\n if (!promptInput) {\n throw new Error(`Expected this.prompts[${promptName}] to be defined`);\n }\n\n // Extract from tag if needed\n const extracted = promptInput.extractFromTag\n ? (createRegexForTag(promptInput.extractFromTag).exec(response) ||\n [])[1] || response\n : response;\n\n // Parse via codec\n return decodeCodec(\n promptInput.outputCodec,\n jsonParseSafe(extracted),\n false,\n );\n }\n\n /**\n * Parse the AI response and report back to Transcend\n *\n * @param promptName - Prompt to parse\n * @param options - Options for reporting\n * @returns Parsed content\n */\n async reportAndParsePromptRun<TPromptName extends TPromptNames>(\n promptName: TPromptName,\n { largeLanguageModel, ...options }: ReportPromptRunOptions,\n ): Promise<\n PromptRunResult & {\n /** Resulting prompt run */\n result: t.TypeOf<TPrompts[TPromptName]['outputCodec']>;\n }\n > {\n // Determine if prompts need to be fetched\n if (\n // never been fetched\n !this.lastUpdatedAt ||\n // fetch every run\n this.cacheDuration === 0 ||\n // If cache duration met\n (this.cacheDuration &&\n Date.now() - this.lastUpdatedAt.getTime() > this.cacheDuration)\n ) {\n await this.fetchPromptsAndMetadata();\n }\n\n const name =\n options.name ||\n `@transcend-io/cli-prompt-run-${new Date().toISOString()}`;\n\n if (!this.promptContentMap) {\n throw new Error('Expected this.promptContentMap to be defined');\n }\n // Look up prompt info\n const promptInput = this.promptContentMap[promptName];\n if (!promptInput) {\n throw new Error(`Expected this.prompts[${promptName}] to be defined`);\n }\n\n // Ensure the first message in `promptRunMessages` is of type=system\n if (options.promptRunMessages.length === 0) {\n throw new Error('promptRunMessages is expected to have length > 0');\n }\n if (options.promptRunMessages[0].role !== ChatCompletionRole.System) {\n throw new Error(\n `promptRunMessages[0].role is expected to be = ${ChatCompletionRole.System}`,\n );\n }\n if (\n options.promptRunMessages[options.promptRunMessages.length - 1].role !==\n ChatCompletionRole.Assistant\n ) {\n throw new Error(\n `promptRunMessages[${\n options.promptRunMessages.length - 1\n }].role is expected to be = ${ChatCompletionRole.Assistant}`,\n );\n }\n const response =\n options.promptRunMessages[options.promptRunMessages.length - 1].content;\n\n let parsed: t.TypeOf<TPrompts[TPromptName]['outputCodec']>;\n try {\n // Parse the response\n parsed = this.parseAiResponse(promptName, response);\n } catch (err) {\n await reportPromptRun(this.graphQLClient, {\n productArea: PromptRunProductArea.PromptManager,\n ...options,\n name,\n error: err.message,\n status: QueueStatus.Error,\n ...(typeof largeLanguageModel === 'string'\n ? { largeLanguageModelId: largeLanguageModel }\n : {\n largeLanguageModelName: largeLanguageModel.name,\n largeLanguageModelClient: largeLanguageModel.client,\n }),\n promptId: promptInput.id,\n promptRunMessages: options.promptRunMessages.map((message, ind) => ({\n ...message,\n ...(ind === 0 ? { template: promptInput.content } : {}),\n })),\n });\n throw err;\n }\n\n // report successful run\n const promptRunId = await reportPromptRun(this.graphQLClient, {\n productArea: PromptRunProductArea.PromptManager,\n ...options,\n name,\n status: QueueStatus.Resolved,\n ...(typeof largeLanguageModel === 'string'\n ? { largeLanguageModelId: largeLanguageModel }\n : {\n largeLanguageModelName: largeLanguageModel.name,\n largeLanguageModelClient: largeLanguageModel.client,\n }),\n promptId: promptInput.id,\n promptRunMessages: options.promptRunMessages.map((message, ind) => ({\n ...message,\n ...(ind === 0 ? { template: promptInput.content } : {}),\n })),\n });\n\n return {\n result: parsed,\n promptRunId,\n promptRunUrl: `https://app.transcend.io/prompts/runs/${promptRunId}`,\n };\n }\n\n /**\n * Report an error for a particular prompt\n *\n * @param promptName - Prompt to parse\n * @param options - Options for reporting\n * @returns Parsed content\n */\n async reportPromptRunError<TPromptName extends TPromptNames>(\n promptName: TPromptName,\n {\n largeLanguageModel,\n ...options\n }: Requirize<ReportPromptRunOptions, 'error'>,\n ): Promise<PromptRunResult> {\n // Determine if prompts need to be fetched\n if (\n // never been fetched\n !this.lastUpdatedAt ||\n // fetch every run\n this.cacheDuration === 0 ||\n // If cache duration met\n (this.cacheDuration &&\n Date.now() - this.lastUpdatedAt.getTime() > this.cacheDuration)\n ) {\n await this.fetchPromptsAndMetadata();\n }\n\n const name =\n options.name ||\n `@transcend-io/cli-prompt-run-${new Date().toISOString()}`;\n\n if (!this.promptContentMap) {\n throw new Error('Expected this.promptContentMap to be defined');\n }\n // Look up prompt info\n const promptInput = this.promptContentMap[promptName];\n if (!promptInput) {\n throw new Error(`Expected this.prompts[${promptName}] to be defined`);\n }\n\n // Ensure the first message in `promptRunMessages` is of type=system\n if (options.promptRunMessages.length === 0) {\n throw new Error('promptRunMessages is expected to have length > 0');\n }\n if (options.promptRunMessages[0].role !== ChatCompletionRole.System) {\n throw new Error(\n `promptRunMessages[0].role is expected to be = ${ChatCompletionRole.System}`,\n );\n }\n\n const promptRunId = await reportPromptRun(this.graphQLClient, {\n productArea: PromptRunProductArea.PromptManager,\n ...options,\n name,\n status: QueueStatus.Error,\n ...(typeof largeLanguageModel === 'string'\n ? { largeLanguageModelId: largeLanguageModel }\n : {\n largeLanguageModelName: largeLanguageModel.name,\n largeLanguageModelClient: largeLanguageModel.client,\n }),\n promptId: promptInput.id,\n promptRunMessages: options.promptRunMessages.map((message, ind) => ({\n ...message,\n ...(ind === 0 ? { template: promptInput.content } : {}),\n })),\n });\n\n return {\n promptRunId,\n promptRunUrl: `https://app.transcend.io/prompts/runs/${promptRunId}`,\n };\n }\n}\n/* eslint-enable max-lines */\n","import { GraphQLClient } from 'graphql-request';\nimport { LargeLanguageModelClient } from '@transcend-io/privacy-types';\nimport { LARGE_LANGUAGE_MODELS } from './gqls';\nimport { makeGraphQLRequest } from './makeGraphQLRequest';\n\nexport interface LargeLanguageModel {\n /** ID of prompts */\n id: string;\n /** The name of the large language model. */\n name: string;\n /** The content of the prompt template. */\n client: LargeLanguageModelClient;\n /** Whether hosted by Transcend or not */\n isTranscendHosted: boolean;\n}\n\nconst PAGE_SIZE = 20;\n\n/**\n * Fetch all LargeLanguageModels in the organization\n *\n * @param client - GraphQL client\n * @returns All LargeLanguageModels in the organization\n */\nexport async function fetchAllLargeLanguageModels(\n client: GraphQLClient,\n): Promise<LargeLanguageModel[]> {\n const largeLanguageModels: LargeLanguageModel[] = [];\n let offset = 0;\n\n // Whether to continue looping\n let shouldContinue = false;\n do {\n const {\n largeLanguageModels: { nodes },\n } = await makeGraphQLRequest<{\n /** LargeLanguageModels */\n largeLanguageModels: {\n /** List */\n nodes: LargeLanguageModel[];\n };\n }>(client, LARGE_LANGUAGE_MODELS, {\n first: PAGE_SIZE,\n offset,\n });\n largeLanguageModels.push(...nodes);\n offset += PAGE_SIZE;\n shouldContinue = nodes.length === PAGE_SIZE;\n } while (shouldContinue);\n\n return largeLanguageModels.sort((a, b) => a.name.localeCompare(b.name));\n}\n","import { difference } from 'lodash-es';\nimport fastGlob from 'fast-glob';\nimport { execSync } from 'child_process';\n\n/**\n * Function thats gets the git files that have changed\n * and returns the code\n *\n * @param options - Options\n * @returns Changes files and diffs\n */\nexport function getGitFilesThatChanged({\n baseBranch,\n rootDirectory,\n githubRepo,\n excludedGlob = [],\n fileBlockList = [],\n}: {\n /** Base branch */\n baseBranch: string;\n /** Github repo name */\n githubRepo: string;\n /** Root directory */\n rootDirectory: string;\n /** A glob that excludes files */\n excludedGlob?: string[];\n /** Block list of files to not process */\n fileBlockList?: string[];\n}): {\n /** The list of files that changed */\n changedFiles: string[];\n /** Github repo name */\n repoName: string;\n /** Current commit */\n commit: string;\n /** File diffs */\n fileDiffs: { [k in string]: string };\n} {\n // Pull base branch\n execSync(`git fetch origin ${baseBranch}`);\n\n // Latest commit on base branch. If we are on the base branch, we take the prior commit\n const latestBasedCommit = execSync(\n `git ls-remote ${githubRepo} \"refs/heads/${baseBranch}\" | cut -f 1`,\n { encoding: 'utf-8' },\n ).split('\\n')[0];\n\n // This commit\n const latestThisCommit = execSync('git rev-parse HEAD', {\n encoding: 'utf-8',\n }).split('\\n')[0];\n\n // Ensure commits are present\n if (!latestBasedCommit || !latestThisCommit) {\n throw new Error('FAILED TO FIND COMMIT RANGE');\n }\n\n // Get the diff between the given branch and base branch\n const diff = execSync(\n `git fetch && git diff --name-only \"${\n baseBranch || latestBasedCommit\n }...${latestThisCommit}\" -- ${rootDirectory}`,\n { encoding: 'utf-8' },\n );\n\n // Filter out block list\n const changedFiles = difference(\n diff.split('\\n').filter((f) => f),\n fileBlockList,\n );\n\n // Filter out globs\n const filteredChanges =\n excludedGlob.length > 0\n ? fastGlob.sync(changedFiles, { ignore: excludedGlob })\n : changedFiles;\n\n // Get the contents of only the changed files\n const fileDiffs: { [k in string]: string } = {};\n filteredChanges.forEach((file) => {\n const contents = execSync(`git show ${latestThisCommit}:${file}`, {\n encoding: 'utf-8',\n });\n fileDiffs[file] = contents;\n });\n\n // Pull the github repo name\n const repoName = githubRepo.split('/').pop()!.split('.')[0];\n\n return {\n changedFiles,\n fileDiffs,\n repoName,\n commit: latestThisCommit,\n };\n}\n"]}
1
+ {"version":3,"sources":["/home/runner/work/cli/cli/dist/index.cjs","../src/lib/ai/TranscendPromptManager.ts","../src/lib/graphql/fetchLargeLanguageModels.ts","../src/lib/ai/getGitFilesThatChanged.ts"],"names":["PAGE_SIZE","fetchAllLargeLanguageModels","client","largeLanguageModels","offset","shouldContinue","nodes","makeGraphQLRequest","LARGE_LANGUAGE_MODELS","a","b","createRegexForTag","tagName","defineTranscendPrompts","prompts","jsonParseSafe","obj","TranscendPromptManager","handlebarsOptions","transcendUrl","DEFAULT_TRANSCEND_API","transcendApiKey","requireApproval","cacheDuration","defaultVariables","buildTranscendGraphQLClient","createHandlebarsWithHelpers","promptDefinitions","getValues","promptIds","id","x","promptTitles","title","agentNames","uniq_default","response","agents","fetchPromptsWithVariables","fetchAllAgents","keyBy_default","model","promptByTitle","promptById","acc","v","partial","apply","result","name","agent","remoteAgent","ts","thread","fetchAllPromptThreads","names","hasCache","missingCache","groupBy_default","cachedAgents","chunkedNames","chunk_default","remoteAgents","mapSeries","chunkedName","pageOfAgents","filterBy","fetchAllAgentFiles","largeLanguageModel","matching"],"mappings":"AAAA,6OAAiE,wDAAkD,wDAA0C,wDAA0E,wDAA0F,wDAA0E,wDAAkH,wDAAkE,wDAAkE,wDAAknB,wDAAg0G,wDAAgD,gCAA6B,wDAAuL,wDAA4E,qDCO53J,iEAkBA,2DAaA,ICtBDA,CAAAA,CAAY,EAAA,CAQlB,MAAA,SAAsBC,CAAAA,CACpBC,CAAAA,CAC+B,CAC/B,IAAMC,CAAAA,CAA4C,CAAC,CAAA,CAC/CC,CAAAA,CAAS,CAAA,CAGTC,CAAAA,CAAiB,CAAA,CAAA,CACrB,EAAG,CACD,GAAM,CACJ,mBAAA,CAAqB,CAAE,KAAA,CAAAC,CAAM,CAC/B,CAAA,CAAI,MAAMC,kCAAAA,CAMPL,CAAQM,oBAAAA,CAAuB,CAChC,KAAA,CAAOR,CAAAA,CACP,MAAA,CAAAI,CACF,CAAC,CAAA,CACDD,CAAAA,CAAoB,IAAA,CAAK,GAAGG,CAAK,CAAA,CACjCF,CAAAA,EAAUJ,CAAAA,CACVK,CAAAA,CAAiBC,CAAAA,CAAM,MAAA,GAAWN,CACpC,CAAA,KAAA,CAASK,CAAAA,CAAAA,CAET,OAAOF,CAAAA,CAAoB,IAAA,CAAK,CAACM,CAAAA,CAAGC,CAAAA,CAAAA,EAAMD,CAAAA,CAAE,IAAA,CAAK,aAAA,CAAcC,CAAAA,CAAE,IAAI,CAAC,CACxE,CDPA,oCAA0B,SAuDVC,CAAAA,CAAkBC,CAAAA,CAAyB,CACzD,OAAO,IAAI,MAAA,CAAO,CAAA,CAAA,EAAIA,CAAO,CAAA,iBAAA,EAAoBA,CAAO,CAAA,CAAA,CAAG,CAC7D,CAQO,SAASC,EAAAA,CAGdC,CAAAA,CAA6B,CAC7B,OAAOA,CACT,CAqCA,IAAMC,CAAAA,CAAiBC,CAAAA,EAAyB,CAC9C,GAAI,CACF,OAAO,IAAA,CAAK,KAAA,CAAMA,CAAG,CACvB,CAAA,UAAY,CACV,OAAOA,CACT,CACF,CAAA,CAMaC,CAAAA,4CAAN,KAGL,CAEO,eASA,mBAAA,CAA4C,CAAC,EAAA,gBAG5C,YAAA,CAA4C,CAAC,EAAA,gBAG7C,eAAA,CAA6C,CAAC,EAAA,WA4CtD,CAAY,CACV,OAAA,CAAAH,CAAAA,CACA,iBAAA,CAAAI,CAAAA,CAAoB,CAAC,CAAA,CACrB,YAAA,CAAAC,CAAAA,CAAeC,mBAAAA,CACf,eAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CAAkB,CAAA,CAAA,CAClB,aAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CAAmB,CAAC,CACtB,CAAA,CAoBG,6GACD,IAAA,CAAK,OAAA,CAAUV,CAAAA,CACf,IAAA,CAAK,YAAA,CAAeK,CAAAA,CACpB,IAAA,CAAK,eAAA,CAAkBE,CAAAA,CACvB,IAAA,CAAK,SAAA,CAAYG,CAAAA,CACjB,IAAA,CAAK,gBAAA,CAAmBA,CAAAA,CACxB,IAAA,CAAK,aAAA,CAAgBC,kCAAAA,CACnBN,CACA,OAAOE,CAAAA,EAAoB,QAAA,CACvBA,CAAAA,CAAgB,OAAA,CAAQ,CAAA,CACxBA,CACN,CAAA,CACA,IAAA,CAAK,eAAA,CAAkBC,CAAAA,CACvB,IAAA,CAAK,aAAA,CAAgBC,CAAAA,CACrB,IAAA,CAAK,iBAAA,CAAoBL,CAAAA,CACzB,IAAA,CAAK,UAAA,CAAaQ,0DAAAA,CAA6C,CACjE,CAOA,MAAM,uBAAA,CAAA,CAAiE,CAErE,IAAMC,CAAAA,CAAoBC,kCAAAA,IAAU,CAAK,OAAO,CAAA,CAI1CC,CAAAA,CAAYF,CAAAA,CACf,GAAA,CAAI,CAAC,CAAE,EAAA,CAAAG,CAAG,CAAA,CAAA,EAAMA,CAAE,CAAA,CAClB,MAAA,CAAQC,CAAAA,EAAmB,CAAC,CAACA,CAAC,CAAA,CAC3BC,CAAAA,CAAeL,CAAAA,CAClB,GAAA,CAAI,CAAC,CAAE,KAAA,CAAAM,CAAM,CAAA,CAAA,EAAMA,CAAK,CAAA,CACxB,MAAA,CAAQF,CAAAA,EAAmB,CAAC,CAACA,CAAC,CAAA,CAC3BG,CAAAA,CAAaC,iCAAAA,CACjBR,CAAkB,GAAA,CAAI,CAAC,CAAE,UAAA,CAAAO,CAAW,CAAA,CAAA,EAAMA,CAAAA,EAAc,CAAC,CAAC,CAAA,CAAE,IAAA,CAAK,CACnE,CAAA,CAGM,CAACE,CAAAA,CAAUjC,CAAAA,CAAqBkC,CAAM,CAAA,CAAI,MAAM,OAAA,CAAQ,GAAA,CAAI,CAChEC,kCAAAA,IAA0B,CAAK,aAAA,CAAe,CAC5C,SAAA,CAAAT,CAAAA,CACA,YAAA,CAAAG,CACF,CAAC,CAAA,CACD/B,CAAAA,CAA4B,IAAA,CAAK,aAAa,CAAA,CAC9CsC,kCAAAA,IAAe,CAAK,aAAA,CAAe,CAAE,KAAA,CAAOL,CAAW,CAAC,CAC1D,CAAC,CAAA,CACD,IAAA,CAAK,YAAA,CAAeM,iCAAAA,CAAMH,CAAQ,MAAM,CAAA,CACxC,IAAA,CAAK,eAAA,CAAkBG,iCAAAA,CAAMH,CAAQ,SAAS,CAAA,CAC9C,IAAA,CAAK,mBAAA,CAAsBlC,CAAAA,CAAoB,MAAA,CAC5CsC,CAAAA,EAAUA,CAAAA,CAAM,iBAAA,GAAsB,CAAA,CACzC,CAAA,CAGA,IAAMC,CAAAA,CAAgBF,iCAAAA,CAAMJ,CAAS,OAAA,CAAS,OAAO,CAAA,CAC/CO,CAAAA,CAAaH,iCAAAA,CAAMJ,CAAS,OAAA,CAAS,IAAI,CAAA,CAG/C,OAAA,IAAA,CAAK,SAAA,CAAY,CACf,GAAGA,CAAAA,CAAS,mBAAA,CAAoB,MAAA,CAC9B,CAACQ,CAAAA,CAAKC,CAAAA,CAAAA,EACJ,MAAA,CAAO,MAAA,CAAOD,CAAAA,CAAK,CACjB,CAACC,CAAAA,CAAE,IAAI,CAAA,CAAGA,CAAAA,CAAE,IAAA,CAAO,IAAA,CAAK,KAAA,CAAMA,CAAAA,CAAE,IAAI,CAAA,CAAIA,CAAAA,CAAE,IAC5C,CAAC,CAAA,CACH,CAAC,CACH,CAAA,CACA,GAAG,IAAA,CAAK,gBACV,CAAA,CAGA,IAAA,CAAK,UAAA,CAAanB,0DAAAA,CAChB,GAAG,IAAA,CAAK,iBAAA,CACR,SAAA,CAAW,CACT,GAAI,IAAA,CAAK,iBAAA,CAAkB,SAAA,EAAa,CAAC,CAAA,CACzC,GAAGU,CAAAA,CAAS,cAAA,CAAe,GAAA,CAAKU,CAAAA,EAAAA,CAAa,CAC3C,IAAA,CAAMA,CAAAA,CAAQ,IAAA,CACd,OAAA,CAASA,CAAAA,CAAQ,OACnB,CAAA,CAAE,CACJ,CACF,CAAC,CAAA,CAGD,IAAA,CAAK,gBAAA,CAAmBC,8BAAAA,IAAM,CAAK,OAAA,CAAS,CAAC,CAAE,EAAA,CAAAjB,CAAAA,CAAI,KAAA,CAAAG,CAAM,CAAA,CAAA,EAAM,CAC7D,IAAMe,CAAAA,CAASlB,CAAAA,CACXa,CAAAA,CAAWb,CAAE,CAAA,CACbG,CAAAA,CACAS,CAAAA,CAAcT,CAAK,CAAA,CACnB,KAAA,CAAA,CACJ,EAAA,CAAI,CAACe,CAAAA,CACH,MAAM,IAAI,KAAA,CACR,CAAA,mCAAA,EAAsCf,CAAK,CAAA,WAAA,EAAcH,CAAE,CAAA,CAAA,CAC7D,CAAA,CAEF,OAAOkB,CACT,CAAC,CAAA,CAGD,IAAA,CAAK,aAAA,CAAgB,IAAI,IAAA,CAElBZ,CACT,CAQA,MAAM,cAAA,CAAea,CAAAA,CAA0C,CAC7D,IAAMC,CAAAA,CAAQ,IAAA,CAAK,YAAA,CAAaD,CAAI,CAAA,CACpC,EAAA,CAAIC,CAAAA,CACF,OAAOA,CAAAA,CAET,GAAM,CAACC,CAAW,CAAA,CAAI,MAAMZ,kCAAAA,IAAe,CAAK,aAAA,CAAe,CAC7D,KAAA,CAAO,CAACU,CAAI,CACd,CAAC,CAAA,CACD,EAAA,CAAKE,CAAAA,CAGL,OAAA,IAAA,CAAK,YAAA,CAAaA,CAAAA,CAAY,IAAI,CAAA,CAAIA,CAAAA,CACtC,IAAA,CAAK,eAAA,CAAgBA,CAAAA,CAAY,OAAO,CAAA,CAAIA,CAAAA,CACrCA,CACT,CAQA,MAAM,wBAAA,CACJC,CAAAA,CACmC,CACnC,GAAM,CAACC,CAAM,CAAA,CAAI,MAAMC,kCAAAA,IAAsB,CAAK,aAAA,CAAe,CAC/D,cAAA,CAAgB,CAACF,CAAE,CACrB,CAAC,CAAA,CACD,OAAOC,CACT,CAUA,MAAM,eAAA,CAAgBE,CAAAA,CAAmC,CACvD,EAAA,CAAIA,CAAAA,CAAM,MAAA,CAAS,CAAA,CACjB,MAAM,IAAI,KAAA,CAAM,2CAA2C,CAAA,CAE7D,GAAM,CAAE,QAAA,CAAAC,CAAAA,CAAW,CAAC,CAAA,CAAG,YAAA,CAAAC,CAAAA,CAAe,CAAC,CAAE,CAAA,CAAIC,iCAAAA,CAAQH,CAAQN,CAAAA,EAC3D,IAAA,CAAK,YAAA,CAAaA,CAAI,CAAA,CAAI,UAAA,CAAa,cACzC,CAAA,CACMU,CAAAA,CAAeH,CAAAA,CAAS,GAAA,CAAKP,CAAAA,EAAS,IAAA,CAAK,YAAA,CAAaA,CAAI,CAAC,CAAA,CACnE,EAAA,CAAIQ,CAAAA,CAAa,MAAA,GAAW,CAAA,CAC1B,OAAOE,CAAAA,CAET,IAAMC,CAAAA,CAAeC,iCAAAA,CAAMJ,CAAc,EAAE,CAAA,CACrCK,CAAAA,CAAwB,CAAC,CAAA,CAC/B,OAAA,MAAMC,iCAAAA,CAAUH,CAAc,MAAOI,CAAAA,EAAgB,CACnD,IAAMC,CAAAA,CAAe,MAAM1B,kCAAAA,IAAe,CAAK,aAAA,CAAe,CAC5D,KAAA,CAAOyB,CACT,CAAC,CAAA,CACDC,CAAAA,CAAa,OAAA,CAASf,CAAAA,EAAU,CAC9B,IAAA,CAAK,YAAA,CAAaA,CAAAA,CAAM,IAAI,CAAA,CAAIA,CAAAA,CAChC,IAAA,CAAK,eAAA,CAAgBA,CAAAA,CAAM,OAAO,CAAA,CAAIA,CACxC,CAAC,CAAA,CACDY,CAAAA,CAAa,IAAA,CAAK,GAAGG,CAAY,CACnC,CAAC,CAAA,CACM,CAAC,GAAGN,CAAAA,CAAc,GAAGG,CAAY,CAC1C,CAQA,aAAA,CAAcI,CAAAA,CAAmD,CAC/D,OAAOC,kCAAAA,IAAmB,CAAK,aAAA,CAAeD,CAAQ,CACxD,CAQA,qBAAA,CACEE,CAAAA,CACoB,CACpB,IAAMC,CAAAA,CAAW,IAAA,CAAK,mBAAA,CAAoB,IAAA,CAAM5B,CAAAA,EAC9C,OAAO2B,CAAAA,EAAuB,QAAA,CAC1B3B,CAAAA,CAAM,EAAA,GAAO2B,CAAAA,CACb3B,CAAAA,CAAM,IAAA,GAAS2B,CAAAA,CAAmB,IAAA,EAClC3B,CAAAA,CAAM,MAAA,GAAW2B,CAAAA,CAAmB,MAC1C,CAAA,CACA,EAAA,CAAI,CAACC,CAAAA,CACH,MAAM,IAAI,KAAA,CACR,CAAA,+BAAA,EACE,OAAOD,CAAAA,EAAuB,QAAA,CAC1BA,CAAAA,CACA,IAAA,CAAK,SAAA,CAAUA,CAAkB,CACvC,CAAA,CAAA;AE1ZG;AAiBI;AA4Bf","file":"/home/runner/work/cli/cli/dist/index.cjs","sourcesContent":[null,"/* eslint-disable max-lines */\nimport {\n Optionalize,\n Requirize,\n apply,\n decodeCodec,\n getValues,\n} from '@transcend-io/type-utils';\nimport type { Handlebars } from '@transcend-io/handlebars-utils';\nimport { Secret } from '@transcend-io/secret-value';\nimport * as t from 'io-ts';\nimport { DEFAULT_TRANSCEND_API } from '../../constants';\nimport {\n Agent,\n AgentFile,\n AgentFileFilterBy,\n ReportPromptRunInput,\n buildTranscendGraphQLClient,\n fetchAllAgentFiles,\n fetchAllAgents,\n reportPromptRun,\n} from '../graphql';\nimport {\n HandlebarsInput,\n createHandlebarsWithHelpers,\n} from '@transcend-io/handlebars-utils';\nimport {\n TranscendPromptTemplated,\n TranscendPromptsAndVariables,\n fetchPromptsWithVariables,\n} from '../graphql/fetchPrompts';\nimport { GraphQLClient } from 'graphql-request';\nimport {\n PromptStatus,\n ChatCompletionRole,\n PromptRunProductArea,\n QueueStatus,\n LargeLanguageModelClient,\n} from '@transcend-io/privacy-types';\nimport {\n LargeLanguageModel,\n fetchAllLargeLanguageModels,\n} from '../graphql/fetchLargeLanguageModels';\nimport { groupBy, keyBy, uniq, chunk } from 'lodash-es';\nimport { mapSeries } from 'bluebird';\nimport {\n PromptThread,\n fetchAllPromptThreads,\n} from '../graphql/fetchPromptThreads';\n\n/**\n * An LLM Prompt definition\n */\nexport type TranscendPrompt<\n TInputParams extends t.Any,\n TOutputCodec extends t.Any,\n> = (\n | {\n /** ID of the prompt */\n id: string;\n /** Title of the prompt */\n title?: string;\n }\n | {\n /** ID of the prompt */\n id?: string;\n /** Title of the prompt */\n title: string;\n }\n) & {\n /** The names of the agents that should be loaded along with the prompt */\n agentNames?: string[];\n /** Codec to validate runtime input shape */\n paramCodec: TInputParams;\n /** Codec to validate output response */\n outputCodec: TOutputCodec;\n /**\n * If the output that needs to be parsed is returned within a tag\n * e.g. <tag> or <json> - this is the name of the tag\n */\n extractFromTag?: string;\n};\n\nexport interface PromptRunResult {\n /** The ID of the prompt run created on Transcend */\n promptRunId: string;\n /** The URL of the prompt run on Transcend */\n promptRunUrl: string;\n}\n\n/**\n * Create a regex to extract data from a tag\n *\n * Input:\n * \"here is some data <tag>Data</tag>...\"\n *\n * @param tagName - Name of tag\n * @returns Data within the tag\n */\nexport function createRegexForTag(tagName: string): RegExp {\n return new RegExp(`<${tagName}>([\\\\s\\\\S]+?)<\\\\/${tagName}>`);\n}\n\n/**\n * Helper function to declare prompts\n *\n * @param prompts - Prompt config\n * @returns Prompts as identity function - but type enforced\n */\nexport function defineTranscendPrompts<\n TPromptNames extends string,\n TPrompts extends { [k in TPromptNames]: TranscendPrompt<t.Any, t.Any> },\n>(prompts: TPrompts): TPrompts {\n return prompts;\n}\n\n/**\n * Helper to get the type of the parameter for a given prompt\n */\nexport type GetPromptParamType<\n TPromptName extends keyof TPrompts,\n TPrompts extends { [k in TPromptName]: TranscendPrompt<t.Any, t.Any> },\n> = t.TypeOf<TPrompts[TPromptName]['paramCodec']>;\n\n/**\n * Helper to get the type of the parameter for a given prompt\n */\nexport type GetPromptResponseType<\n TPromptName extends keyof TPrompts,\n TPrompts extends { [k in TPromptName]: TranscendPrompt<t.Any, t.Any> },\n> = t.TypeOf<TPrompts[TPromptName]['outputCodec']>;\n\n/**\n * Input for reporting a prompt run\n */\nexport interface ReportPromptRunOptions\n extends Optionalize<\n Omit<ReportPromptRunInput, 'status' | 'promptId' | 'largeLanguageModelId'>,\n 'name' | 'productArea'\n > {\n /** The large language model being run. Either the ID of the LLM or the client/name pairing */\n largeLanguageModel:\n | string\n | {\n /** Name of client */\n client: LargeLanguageModelClient;\n /** Name of the model */\n name: string;\n };\n}\n\nconst jsonParseSafe = (obj: string): unknown => {\n try {\n return JSON.parse(obj);\n } catch (e) {\n return obj;\n }\n};\n\n/**\n * A class that is capable of loading and insert variables into prompts from\n * Transcend's Prompt Manager\n */\nexport class TranscendPromptManager<\n TPromptNames extends string,\n TPrompts extends { [k in TPromptNames]: TranscendPrompt<t.Any, t.Any> },\n> {\n /** Prompt definitions */\n public prompts: TPrompts;\n\n /** Options for configuring handlebars */\n public handlebarsOptions!: HandlebarsInput;\n\n /** Prompt name -> content map, populated by call to Transcend API */\n public promptContentMap?: { [k in TPromptNames]: TranscendPromptTemplated };\n\n /** The large language models that are registered to this organization for reporting */\n public largeLanguageModels: LargeLanguageModel[] = [];\n\n /** The agent definitions registered to this organization */\n private agentsByName: { [name in string]: Agent } = {};\n\n /** The agent definitions registered to this organization */\n private agentsByAgentId: { [id in string]: Agent } = {};\n\n /** The GraphQL client that can be used to call Transcend */\n public graphQLClient: GraphQLClient;\n\n /** The set of variables to expose in handlebars context specified at class initiation */\n public defaultVariables: { [k in string]: unknown };\n\n /**\n * The set of variables to expose in handlebars context,\n * merges defaults with calculated variables from the inventory\n */\n public variables: { [k in string]: unknown };\n\n /** Handlebars compiler */\n public handlebars: typeof Handlebars;\n\n /** The Transcend API key */\n public transcendApiKey: string | Secret<string>;\n\n /** API of Transcend to call */\n public transcendUrl: string;\n\n /** When true, throw an error if the prompt is not approved */\n public requireApproval: boolean;\n\n /**\n * The cache duration in ms for how long prompts and associated metadata should be cached\n * When undefined - prompts are cached indefinitely unless explicitly re-requested\n * When 0, prompts and metadata are fetched every time (not recommended)\n * Setting this to be an hour is a good rate that optimizes for performance and keeping up to date\n */\n public cacheDuration?: number;\n\n /**\n * The last time the metadata was fetched\n */\n public lastUpdatedAt?: Date;\n\n /**\n * Constructor\n *\n * @param options - Options\n */\n constructor({\n prompts,\n handlebarsOptions = {},\n transcendUrl = DEFAULT_TRANSCEND_API,\n transcendApiKey,\n requireApproval = true,\n cacheDuration,\n defaultVariables = {},\n }: {\n /** Prompt definitions to load */\n prompts: TPrompts;\n /** Options for configuring handlebars */\n handlebarsOptions?: HandlebarsInput;\n /** The Transcend API key */\n transcendApiKey: string | Secret<string>;\n /** API of Transcend to call */\n transcendUrl?: string;\n /** When true, throw an error if the prompt is not approved */\n requireApproval?: boolean;\n /** The set of variables to expose in handlebars context specified at class initiation */\n defaultVariables?: { [k in string]: unknown };\n /**\n * The cache duration in ms for how long prompts and associated metadata should be cached\n * When undefined - prompts are cached indefinitely unless explicitly re-requested\n * When 0, prompts and metadata are fetched every time (not recommended)\n * Setting this to be an hour is a good rate that optimizes for performance and keeping up to date\n */\n cacheDuration?: number;\n }) {\n this.prompts = prompts;\n this.transcendUrl = transcendUrl;\n this.transcendApiKey = transcendApiKey;\n this.variables = defaultVariables;\n this.defaultVariables = defaultVariables;\n this.graphQLClient = buildTranscendGraphQLClient(\n transcendUrl,\n typeof transcendApiKey === 'object'\n ? transcendApiKey.release()\n : transcendApiKey,\n );\n this.requireApproval = requireApproval;\n this.cacheDuration = cacheDuration;\n this.handlebarsOptions = handlebarsOptions;\n this.handlebars = createHandlebarsWithHelpers(handlebarsOptions);\n }\n\n /**\n * Fetch prompt metadata from Transcend and cache to the class definition\n *\n * @returns A function that can be used to call the prompt\n */\n async fetchPromptsAndMetadata(): Promise<TranscendPromptsAndVariables> {\n // Determine what to fetch\n const promptDefinitions = getValues(this.prompts) as TranscendPrompt<\n t.Any,\n t.Any\n >[];\n const promptIds = promptDefinitions\n .map(({ id }) => id)\n .filter((x): x is string => !!x);\n const promptTitles = promptDefinitions\n .map(({ title }) => title)\n .filter((x): x is string => !!x);\n const agentNames = uniq(\n promptDefinitions.map(({ agentNames }) => agentNames || []).flat(),\n );\n\n // Fetch prompts and data\n const [response, largeLanguageModels, agents] = await Promise.all([\n fetchPromptsWithVariables(this.graphQLClient, {\n promptIds,\n promptTitles,\n }),\n fetchAllLargeLanguageModels(this.graphQLClient),\n fetchAllAgents(this.graphQLClient, { names: agentNames }),\n ]);\n this.agentsByName = keyBy(agents, 'name');\n this.agentsByAgentId = keyBy(agents, 'agentId');\n this.largeLanguageModels = largeLanguageModels.filter(\n (model) => model.isTranscendHosted === false,\n );\n\n // Lookup prompts by id/title\n const promptByTitle = keyBy(response.prompts, 'title');\n const promptById = keyBy(response.prompts, 'id');\n\n // Update variables\n this.variables = {\n ...response.calculatedVariables.reduce(\n (acc, v) =>\n Object.assign(acc, {\n [v.name]: v.data ? JSON.parse(v.data) : v.data,\n }),\n {},\n ),\n ...this.defaultVariables,\n };\n\n // Update partials\n this.handlebars = createHandlebarsWithHelpers({\n ...this.handlebarsOptions,\n templates: [\n ...(this.handlebarsOptions.templates || []),\n ...response.promptPartials.map((partial) => ({\n name: partial.slug,\n content: partial.content,\n })),\n ],\n });\n\n // Create mapping from prompt to content\n this.promptContentMap = apply(this.prompts, ({ id, title }) => {\n const result = id\n ? promptById[id]\n : title\n ? promptByTitle[title]\n : undefined;\n if (!result) {\n throw new Error(\n `Failed to find prompt with title: \"${title}\" and id: \"${id}\"`,\n );\n }\n return result;\n });\n\n // For cache\n this.lastUpdatedAt = new Date();\n\n return response;\n }\n\n /**\n * Get an agent definition by name\n *\n * @param name - Name of the agent to grab\n * @returns Large language model configuration\n */\n async getAgentByName(name: string): Promise<Agent | undefined> {\n const agent = this.agentsByName[name];\n if (agent) {\n return agent;\n }\n const [remoteAgent] = await fetchAllAgents(this.graphQLClient, {\n names: [name],\n });\n if (!remoteAgent) {\n return undefined;\n }\n this.agentsByName[remoteAgent.name] = remoteAgent;\n this.agentsByAgentId[remoteAgent.agentId] = remoteAgent;\n return remoteAgent;\n }\n\n /**\n * Get a prompt thread by ts\n *\n * @param ts - the slack message timestamp to look up thread for\n * @returns Large language model configuration\n */\n async getPromptThreadBySlackTs(\n ts: string,\n ): Promise<PromptThread | undefined> {\n const [thread] = await fetchAllPromptThreads(this.graphQLClient, {\n slackMessageTs: [ts],\n });\n return thread;\n }\n\n /**\n * Get a list of agent definitions by name.\n * Pulls from cache and may return less agents\n * than requested if some are not found\n *\n * @param names - Names of agents to fetch\n * @returns The agents that were found matching the names\n */\n async getAgentsByName(names: string[]): Promise<Agent[]> {\n if (names.length < 1) {\n throw new Error('Expected at least one name to be provided');\n }\n const { hasCache = [], missingCache = [] } = groupBy(names, (name) =>\n this.agentsByName[name] ? 'hasCache' : 'missingCache',\n );\n const cachedAgents = hasCache.map((name) => this.agentsByName[name]);\n if (missingCache.length === 0) {\n return cachedAgents;\n }\n const chunkedNames = chunk(missingCache, 50);\n const remoteAgents: Agent[] = [];\n await mapSeries(chunkedNames, async (chunkedName) => {\n const pageOfAgents = await fetchAllAgents(this.graphQLClient, {\n names: chunkedName,\n });\n pageOfAgents.forEach((agent) => {\n this.agentsByName[agent.name] = agent;\n this.agentsByAgentId[agent.agentId] = agent;\n });\n remoteAgents.push(...pageOfAgents);\n });\n return [...cachedAgents, ...remoteAgents];\n }\n\n /**\n * Fetch metadata on agent files\n *\n * @param filterBy - Filter by parameters\n * @returns The files found matching the filter\n */\n getAgentFiles(filterBy: AgentFileFilterBy): Promise<AgentFile[]> {\n return fetchAllAgentFiles(this.graphQLClient, filterBy);\n }\n\n /**\n * Look up the large language model to report on\n *\n * @param largeLanguageModel - Input\n * @returns Large language model configuration\n */\n getLargeLanguageModel(\n largeLanguageModel: ReportPromptRunOptions['largeLanguageModel'],\n ): LargeLanguageModel {\n const matching = this.largeLanguageModels.find((model) =>\n typeof largeLanguageModel === 'string'\n ? model.id === largeLanguageModel\n : model.name === largeLanguageModel.name &&\n model.client === largeLanguageModel.client,\n );\n if (!matching) {\n throw new Error(\n `Failed to find model matching: ${\n typeof largeLanguageModel === 'string'\n ? largeLanguageModel\n : JSON.stringify(largeLanguageModel)\n }`,\n );\n }\n return matching;\n }\n\n /**\n * Get a prompt definition by name\n *\n * @param promptName - Prompt to compile\n * @returns Parsed content\n */\n async getPromptDefinition<TPromptName extends TPromptNames>(\n promptName: TPromptName,\n ): Promise<TranscendPromptTemplated> {\n // Determine if prompts need to be fetched\n if (\n // never been fetched\n !this.lastUpdatedAt ||\n // fetch every run\n this.cacheDuration === 0 ||\n // If cache duration met\n (this.cacheDuration &&\n Date.now() - this.lastUpdatedAt.getTime() > this.cacheDuration)\n ) {\n await this.fetchPromptsAndMetadata();\n }\n\n // Lookup prompt\n const { promptContentMap } = this;\n if (!promptContentMap) {\n throw new Error('Expected this.promptContentMap to be defined');\n }\n const promptTemplate = promptContentMap[promptName];\n if (!promptTemplate) {\n throw new Error(\n `Expected this.promptContentMap[${promptName}] to be defined`,\n );\n }\n return promptTemplate;\n }\n\n /**\n * Validate the shape of the response from AI\n *\n * @param promptName - Prompt to compile\n * @param params - Runtime parameters\n * @returns Parsed content\n */\n async compilePrompt<TPromptName extends TPromptNames>(\n promptName: TPromptName,\n params: t.TypeOf<TPrompts[TPromptName]['paramCodec']>,\n ): Promise<string> {\n // Grab the prompt\n const promptTemplate = await this.getPromptDefinition(promptName);\n const promptInput = this.prompts[promptName];\n if (!promptInput) {\n throw new Error(`Expected this.prompts[${promptName}] to be defined`);\n }\n\n // Ensure prompt is approved\n if (\n this.requireApproval &&\n promptTemplate.status !== PromptStatus.Approved\n ) {\n throw new Error(\n `Assessment \"${promptTemplate.title}\" cannot be used because its in status: \"${promptTemplate.status}\"`,\n );\n }\n\n // If prompt is rejected, throw error\n if (promptTemplate.status === PromptStatus.Rejected) {\n throw new Error(\n `Assessment \"${promptTemplate.title}\" cannot be used because it's in status: \"${promptTemplate.status}\"`,\n );\n }\n\n // Validate params\n decodeCodec(promptInput.paramCodec, params);\n\n // Compile prompt and template\n return this.handlebars.compile(promptTemplate.content)({\n // template in currentDate by default\n currentDate: new Date().toISOString(),\n ...this.variables,\n ...params,\n });\n }\n\n /**\n * Validate the shape of the response from AI\n *\n * @param promptName - Prompt to parse\n * @param response - AI response as string\n * @returns Parsed content\n */\n parseAiResponse<TPromptName extends TPromptNames>(\n promptName: TPromptName,\n response: string,\n ): t.TypeOf<TPrompts[TPromptName]['outputCodec']> {\n // Look up prompt info\n const promptInput = this.prompts[promptName];\n if (!promptInput) {\n throw new Error(`Expected this.prompts[${promptName}] to be defined`);\n }\n\n // Extract from tag if needed\n const extracted = promptInput.extractFromTag\n ? (createRegexForTag(promptInput.extractFromTag).exec(response) ||\n [])[1] || response\n : response;\n\n // Parse via codec\n return decodeCodec(\n promptInput.outputCodec,\n jsonParseSafe(extracted),\n false,\n );\n }\n\n /**\n * Parse the AI response and report back to Transcend\n *\n * @param promptName - Prompt to parse\n * @param options - Options for reporting\n * @returns Parsed content\n */\n async reportAndParsePromptRun<TPromptName extends TPromptNames>(\n promptName: TPromptName,\n { largeLanguageModel, ...options }: ReportPromptRunOptions,\n ): Promise<\n PromptRunResult & {\n /** Resulting prompt run */\n result: t.TypeOf<TPrompts[TPromptName]['outputCodec']>;\n }\n > {\n // Determine if prompts need to be fetched\n if (\n // never been fetched\n !this.lastUpdatedAt ||\n // fetch every run\n this.cacheDuration === 0 ||\n // If cache duration met\n (this.cacheDuration &&\n Date.now() - this.lastUpdatedAt.getTime() > this.cacheDuration)\n ) {\n await this.fetchPromptsAndMetadata();\n }\n\n const name =\n options.name ||\n `@transcend-io/cli-prompt-run-${new Date().toISOString()}`;\n\n if (!this.promptContentMap) {\n throw new Error('Expected this.promptContentMap to be defined');\n }\n // Look up prompt info\n const promptInput = this.promptContentMap[promptName];\n if (!promptInput) {\n throw new Error(`Expected this.prompts[${promptName}] to be defined`);\n }\n\n // Ensure the first message in `promptRunMessages` is of type=system\n if (options.promptRunMessages.length === 0) {\n throw new Error('promptRunMessages is expected to have length > 0');\n }\n if (options.promptRunMessages[0].role !== ChatCompletionRole.System) {\n throw new Error(\n `promptRunMessages[0].role is expected to be = ${ChatCompletionRole.System}`,\n );\n }\n if (\n options.promptRunMessages[options.promptRunMessages.length - 1].role !==\n ChatCompletionRole.Assistant\n ) {\n throw new Error(\n `promptRunMessages[${\n options.promptRunMessages.length - 1\n }].role is expected to be = ${ChatCompletionRole.Assistant}`,\n );\n }\n const response =\n options.promptRunMessages[options.promptRunMessages.length - 1].content;\n\n let parsed: t.TypeOf<TPrompts[TPromptName]['outputCodec']>;\n try {\n // Parse the response\n parsed = this.parseAiResponse(promptName, response);\n } catch (err) {\n await reportPromptRun(this.graphQLClient, {\n productArea: PromptRunProductArea.PromptManager,\n ...options,\n name,\n error: err.message,\n status: QueueStatus.Error,\n ...(typeof largeLanguageModel === 'string'\n ? { largeLanguageModelId: largeLanguageModel }\n : {\n largeLanguageModelName: largeLanguageModel.name,\n largeLanguageModelClient: largeLanguageModel.client,\n }),\n promptId: promptInput.id,\n promptRunMessages: options.promptRunMessages.map((message, ind) => ({\n ...message,\n ...(ind === 0 ? { template: promptInput.content } : {}),\n })),\n });\n throw err;\n }\n\n // report successful run\n const promptRunId = await reportPromptRun(this.graphQLClient, {\n productArea: PromptRunProductArea.PromptManager,\n ...options,\n name,\n status: QueueStatus.Resolved,\n ...(typeof largeLanguageModel === 'string'\n ? { largeLanguageModelId: largeLanguageModel }\n : {\n largeLanguageModelName: largeLanguageModel.name,\n largeLanguageModelClient: largeLanguageModel.client,\n }),\n promptId: promptInput.id,\n promptRunMessages: options.promptRunMessages.map((message, ind) => ({\n ...message,\n ...(ind === 0 ? { template: promptInput.content } : {}),\n })),\n });\n\n return {\n result: parsed,\n promptRunId,\n promptRunUrl: `https://app.transcend.io/prompts/runs/${promptRunId}`,\n };\n }\n\n /**\n * Report an error for a particular prompt\n *\n * @param promptName - Prompt to parse\n * @param options - Options for reporting\n * @returns Parsed content\n */\n async reportPromptRunError<TPromptName extends TPromptNames>(\n promptName: TPromptName,\n {\n largeLanguageModel,\n ...options\n }: Requirize<ReportPromptRunOptions, 'error'>,\n ): Promise<PromptRunResult> {\n // Determine if prompts need to be fetched\n if (\n // never been fetched\n !this.lastUpdatedAt ||\n // fetch every run\n this.cacheDuration === 0 ||\n // If cache duration met\n (this.cacheDuration &&\n Date.now() - this.lastUpdatedAt.getTime() > this.cacheDuration)\n ) {\n await this.fetchPromptsAndMetadata();\n }\n\n const name =\n options.name ||\n `@transcend-io/cli-prompt-run-${new Date().toISOString()}`;\n\n if (!this.promptContentMap) {\n throw new Error('Expected this.promptContentMap to be defined');\n }\n // Look up prompt info\n const promptInput = this.promptContentMap[promptName];\n if (!promptInput) {\n throw new Error(`Expected this.prompts[${promptName}] to be defined`);\n }\n\n // Ensure the first message in `promptRunMessages` is of type=system\n if (options.promptRunMessages.length === 0) {\n throw new Error('promptRunMessages is expected to have length > 0');\n }\n if (options.promptRunMessages[0].role !== ChatCompletionRole.System) {\n throw new Error(\n `promptRunMessages[0].role is expected to be = ${ChatCompletionRole.System}`,\n );\n }\n\n const promptRunId = await reportPromptRun(this.graphQLClient, {\n productArea: PromptRunProductArea.PromptManager,\n ...options,\n name,\n status: QueueStatus.Error,\n ...(typeof largeLanguageModel === 'string'\n ? { largeLanguageModelId: largeLanguageModel }\n : {\n largeLanguageModelName: largeLanguageModel.name,\n largeLanguageModelClient: largeLanguageModel.client,\n }),\n promptId: promptInput.id,\n promptRunMessages: options.promptRunMessages.map((message, ind) => ({\n ...message,\n ...(ind === 0 ? { template: promptInput.content } : {}),\n })),\n });\n\n return {\n promptRunId,\n promptRunUrl: `https://app.transcend.io/prompts/runs/${promptRunId}`,\n };\n }\n}\n/* eslint-enable max-lines */\n","import { GraphQLClient } from 'graphql-request';\nimport { LargeLanguageModelClient } from '@transcend-io/privacy-types';\nimport { LARGE_LANGUAGE_MODELS } from './gqls';\nimport { makeGraphQLRequest } from './makeGraphQLRequest';\n\nexport interface LargeLanguageModel {\n /** ID of prompts */\n id: string;\n /** The name of the large language model. */\n name: string;\n /** The content of the prompt template. */\n client: LargeLanguageModelClient;\n /** Whether hosted by Transcend or not */\n isTranscendHosted: boolean;\n}\n\nconst PAGE_SIZE = 20;\n\n/**\n * Fetch all LargeLanguageModels in the organization\n *\n * @param client - GraphQL client\n * @returns All LargeLanguageModels in the organization\n */\nexport async function fetchAllLargeLanguageModels(\n client: GraphQLClient,\n): Promise<LargeLanguageModel[]> {\n const largeLanguageModels: LargeLanguageModel[] = [];\n let offset = 0;\n\n // Whether to continue looping\n let shouldContinue = false;\n do {\n const {\n largeLanguageModels: { nodes },\n } = await makeGraphQLRequest<{\n /** LargeLanguageModels */\n largeLanguageModels: {\n /** List */\n nodes: LargeLanguageModel[];\n };\n }>(client, LARGE_LANGUAGE_MODELS, {\n first: PAGE_SIZE,\n offset,\n });\n largeLanguageModels.push(...nodes);\n offset += PAGE_SIZE;\n shouldContinue = nodes.length === PAGE_SIZE;\n } while (shouldContinue);\n\n return largeLanguageModels.sort((a, b) => a.name.localeCompare(b.name));\n}\n","import { difference } from 'lodash-es';\nimport fastGlob from 'fast-glob';\nimport { execSync } from 'child_process';\n\n/**\n * Function thats gets the git files that have changed\n * and returns the code\n *\n * @param options - Options\n * @returns Changes files and diffs\n */\nexport function getGitFilesThatChanged({\n baseBranch,\n rootDirectory,\n githubRepo,\n excludedGlob = [],\n fileBlockList = [],\n}: {\n /** Base branch */\n baseBranch: string;\n /** Github repo name */\n githubRepo: string;\n /** Root directory */\n rootDirectory: string;\n /** A glob that excludes files */\n excludedGlob?: string[];\n /** Block list of files to not process */\n fileBlockList?: string[];\n}): {\n /** The list of files that changed */\n changedFiles: string[];\n /** Github repo name */\n repoName: string;\n /** Current commit */\n commit: string;\n /** File diffs */\n fileDiffs: { [k in string]: string };\n} {\n // Pull base branch\n execSync(`git fetch origin ${baseBranch}`);\n\n // Latest commit on base branch. If we are on the base branch, we take the prior commit\n const latestBasedCommit = execSync(\n `git ls-remote ${githubRepo} \"refs/heads/${baseBranch}\" | cut -f 1`,\n { encoding: 'utf-8' },\n ).split('\\n')[0];\n\n // This commit\n const latestThisCommit = execSync('git rev-parse HEAD', {\n encoding: 'utf-8',\n }).split('\\n')[0];\n\n // Ensure commits are present\n if (!latestBasedCommit || !latestThisCommit) {\n throw new Error('FAILED TO FIND COMMIT RANGE');\n }\n\n // Get the diff between the given branch and base branch\n const diff = execSync(\n `git fetch && git diff --name-only \"${\n baseBranch || latestBasedCommit\n }...${latestThisCommit}\" -- ${rootDirectory}`,\n { encoding: 'utf-8' },\n );\n\n // Filter out block list\n const changedFiles = difference(\n diff.split('\\n').filter((f) => f),\n fileBlockList,\n );\n\n // Filter out globs\n const filteredChanges =\n excludedGlob.length > 0\n ? fastGlob.sync(changedFiles, { ignore: excludedGlob })\n : changedFiles;\n\n // Get the contents of only the changed files\n const fileDiffs: { [k in string]: string } = {};\n filteredChanges.forEach((file) => {\n const contents = execSync(`git show ${latestThisCommit}:${file}`, {\n encoding: 'utf-8',\n });\n fileDiffs[file] = contents;\n });\n\n // Pull the github repo name\n const repoName = githubRepo.split('/').pop()!.split('.')[0];\n\n return {\n changedFiles,\n fileDiffs,\n repoName,\n commit: latestThisCommit,\n };\n}\n"]}
package/dist/index.d.cts CHANGED
@@ -130752,6 +130752,26 @@ interface RequestDataSilo {
130752
130752
  /** ID of RequestDataSilo */
130753
130753
  id: string;
130754
130754
  }
130755
+ interface RequestDataSiloFilters {
130756
+ /** ID of request to filter on */
130757
+ requestId?: string;
130758
+ /** Data silo ID */
130759
+ dataSiloId?: string;
130760
+ /**
130761
+ * The statuses to filter on
130762
+ */
130763
+ statuses?: RequestDataSiloStatus[];
130764
+ /** The request statuses to filter on */
130765
+ requestStatuses?: RequestStatus[];
130766
+ }
130767
+ /**
130768
+ * Fetch a count of request data silos
130769
+ *
130770
+ * @param client - GraphQL client
130771
+ * @param options - Filter options
130772
+ * @returns List of request identifiers
130773
+ */
130774
+ declare function fetchRequestDataSilosCount(client: GraphQLClient, { requestId, dataSiloId, requestStatuses, statuses }: RequestDataSiloFilters): Promise<number>;
130755
130775
  /**
130756
130776
  * Fetch all request data silos by some filter criteria
130757
130777
  *
@@ -130759,7 +130779,7 @@ interface RequestDataSilo {
130759
130779
  * @param options - Filter options
130760
130780
  * @returns List of request identifiers
130761
130781
  */
130762
- declare function fetchRequestDataSilos(client: GraphQLClient, { requestId, dataSiloId, requestStatuses, statuses, skipLog, }: {
130782
+ declare function fetchRequestDataSilos(client: GraphQLClient, { requestId, dataSiloId, requestStatuses, statuses, limit, onProgress, }: {
130763
130783
  /** ID of request to filter on */
130764
130784
  requestId?: string;
130765
130785
  /** Data silo ID */
@@ -130770,8 +130790,10 @@ declare function fetchRequestDataSilos(client: GraphQLClient, { requestId, dataS
130770
130790
  statuses?: RequestDataSiloStatus[];
130771
130791
  /** The request statuses to filter on */
130772
130792
  requestStatuses?: RequestStatus[];
130773
- /** When true, skip logging */
130774
- skipLog?: boolean;
130793
+ /** Limit on number of requests */
130794
+ limit?: number;
130795
+ /** Handle progress updates */
130796
+ onProgress?: (numUpdated: number) => void;
130775
130797
  }): Promise<RequestDataSilo[]>;
130776
130798
  /**
130777
130799
  * Fetch all request identifiers for a particular request
@@ -131150,19 +131172,26 @@ declare function createApiKey(client: GraphQLClient, input: {
131150
131172
  */
131151
131173
  declare function deleteApiKey(client: GraphQLClient, id: string): Promise<void>;
131152
131174
 
131153
- declare const AssessmentRule: t.TypeC<{
131175
+ declare const AssessmentRuleWithOperands: t.TypeC<{
131154
131176
  dependsOnQuestionReferenceId: t.StringC;
131155
- comparisonOperator: t.KeyofC<{
131156
- IS_EQUAL_TO: unknown;
131157
- IS_NOT_EQUAL_TO: unknown;
131158
- IS_ONE_OF: unknown;
131159
- IS_NOT_ONE_OF: unknown;
131160
- CONTAINS: unknown;
131161
- IS_SHOWN: unknown;
131162
- IS_NOT_SHOWN: unknown;
131163
- }>;
131177
+ comparisonOperator: t.UnionC<[t.LiteralC<"IS_EQUAL_TO">, t.LiteralC<"IS_NOT_EQUAL_TO">, t.LiteralC<"IS_ONE_OF">, t.LiteralC<"IS_NOT_ONE_OF">, t.LiteralC<"CONTAINS">, t.LiteralC<"IS_SHOWN">]>;
131164
131178
  comparisonOperands: t.ArrayC<t.StringC>;
131165
131179
  }>;
131180
+ declare const AssessmentRuleWithoutOperands: t.TypeC<{
131181
+ dependsOnQuestionReferenceId: t.StringC;
131182
+ comparisonOperator: t.LiteralC<"IS_NOT_SHOWN">;
131183
+ }>;
131184
+ /**
131185
+ * The final, flexible codec that accepts EITHER a rule with operands OR a rule without them.
131186
+ */
131187
+ declare const AssessmentRule: t.UnionC<[t.TypeC<{
131188
+ dependsOnQuestionReferenceId: t.StringC;
131189
+ comparisonOperator: t.UnionC<[t.LiteralC<"IS_EQUAL_TO">, t.LiteralC<"IS_NOT_EQUAL_TO">, t.LiteralC<"IS_ONE_OF">, t.LiteralC<"IS_NOT_ONE_OF">, t.LiteralC<"CONTAINS">, t.LiteralC<"IS_SHOWN">]>;
131190
+ comparisonOperands: t.ArrayC<t.StringC>;
131191
+ }>, t.TypeC<{
131192
+ dependsOnQuestionReferenceId: t.StringC;
131193
+ comparisonOperator: t.LiteralC<"IS_NOT_SHOWN">;
131194
+ }>]>;
131166
131195
  /** Type override */
131167
131196
  type AssessmentRule = t.TypeOf<typeof AssessmentRule>;
131168
131197
  interface AssessmentNestedRule {
@@ -131179,19 +131208,14 @@ declare const AssessmentAction: t.PartialC<{
131179
131208
  SHOW: unknown;
131180
131209
  SKIP: unknown;
131181
131210
  }>;
131182
- rule: t.TypeC<{
131211
+ rule: t.UnionC<[t.TypeC<{
131183
131212
  dependsOnQuestionReferenceId: t.StringC;
131184
- comparisonOperator: t.KeyofC<{
131185
- IS_EQUAL_TO: unknown;
131186
- IS_NOT_EQUAL_TO: unknown;
131187
- IS_ONE_OF: unknown;
131188
- IS_NOT_ONE_OF: unknown;
131189
- CONTAINS: unknown;
131190
- IS_SHOWN: unknown;
131191
- IS_NOT_SHOWN: unknown;
131192
- }>;
131213
+ comparisonOperator: t.UnionC<[t.LiteralC<"IS_EQUAL_TO">, t.LiteralC<"IS_NOT_EQUAL_TO">, t.LiteralC<"IS_ONE_OF">, t.LiteralC<"IS_NOT_ONE_OF">, t.LiteralC<"CONTAINS">, t.LiteralC<"IS_SHOWN">]>;
131193
131214
  comparisonOperands: t.ArrayC<t.StringC>;
131194
- }>;
131215
+ }>, t.TypeC<{
131216
+ dependsOnQuestionReferenceId: t.StringC;
131217
+ comparisonOperator: t.LiteralC<"IS_NOT_SHOWN">;
131218
+ }>]>;
131195
131219
  nestedRule: t.RecursiveType<t.Type<AssessmentNestedRule, AssessmentNestedRule, unknown>, any, any, unknown>;
131196
131220
  }>;
131197
131221
  /** Type override */
@@ -143829,7 +143853,7 @@ declare function pullPrivacyRequests({ auth, sombraAuth, actions, statuses, iden
143829
143853
  * @param options - Options
143830
143854
  * @returns Number of items skipped
143831
143855
  */
143832
- declare function skipRequestDataSilos({ dataSiloId, auth, concurrency, status, transcendUrl, requestStatuses, }: {
143856
+ declare function skipRequestDataSilos({ dataSiloId, auth, concurrency, maxUploadPerChunk, status, transcendUrl, requestStatuses, }: {
143833
143857
  /** Transcend API key authentication */
143834
143858
  auth: string;
143835
143859
  /** Data Silo ID to pull down jobs for */
@@ -143842,6 +143866,8 @@ declare function skipRequestDataSilos({ dataSiloId, auth, concurrency, status, t
143842
143866
  transcendUrl?: string;
143843
143867
  /** Request statuses to mark as completed */
143844
143868
  requestStatuses?: RequestStatus[];
143869
+ /** Maximum number of items to mark skipped per go */
143870
+ maxUploadPerChunk?: number;
143845
143871
  }): Promise<number>;
143846
143872
 
143847
143873
  /**
@@ -143864,7 +143890,7 @@ declare function removeUnverifiedRequestIdentifiers({ requestActions, identifier
143864
143890
  }): Promise<number>;
143865
143891
 
143866
143892
  var description = "A command line interface for programmatic operations across Transcend.";
143867
- var version = "8.1.2";
143893
+ var version = "8.1.6";
143868
143894
 
143869
143895
  /**
143870
143896
  * The name of the main binary for the CLI
@@ -145145,4 +145171,4 @@ type EnrichPrivacyRequest = t.TypeOf<typeof EnrichPrivacyRequest>;
145145
145171
  */
145146
145172
  declare function enrichPrivacyRequest(sombra: Got, { id: rawId, ...rest }: EnrichPrivacyRequest, enricherId: string, index?: number): Promise<boolean>;
145147
145173
 
145148
- export { ACTIONS, ADD_MESSAGES_TO_PROMPT_RUN, ADD_SILO_DISCOVERY_RESULTS, ADMIN_DASH, ADMIN_DASH_DATAPOINTS, ADMIN_DASH_INTEGRATIONS, AGENTS, AGENT_FILES, AGENT_FUNCTIONS, type AIIntegrationC, API_KEYS, APPROVE_PRIVACY_REQUEST, ASSESSMENTS, ASSESSMENT_SECTION_FIELDS, ASSESSMENT_TEMPLATES, ASSUME_ROLE, ATTRIBUTES, ATTRIBUTE_KEYS_REQUESTS, ATTRIBUTE_VALUES, type Action, ActionInput, type ActionItem, ActionItemCollectionInput, ActionItemInput, type ActionItemRaw, type AddMessagesToPromptRunInput, type Agent, type AgentFile, type AgentFileFilterBy, AgentFileInput, type AgentFunction, AgentFunctionInput, AgentInput, type ApiKey, type ApiKeyGenerateError, ApiKeyInput, type Assessment, AssessmentAction, type AssessmentAnswer, type AssessmentAnswerOption, AssessmentAnswerOptionInput, type AssessmentComment, AssessmentDisplayLogicInput, type AssessmentGroup, AssessmentInput, AssessmentNestedRule, AssessmentNestedRuleInput, type AssessmentPreviousSubmission, type AssessmentQuestion, type AssessmentResource, AssessmentResourceInput, AssessmentRetentionScheduleInput, AssessmentRiskLogic, AssessmentRule, AssessmentRuleInput, type AssessmentSection, AssessmentSectionInput, AssessmentSectionQuestionInput, type AssessmentTemplate, AssessmentTemplateInput, AttestedExtraIdentifiers, type Attribute, AttributeInput, type AttributeKey, type AttributeNameMap, AttributePreview, type AttributeValue, AttributeValueInput, BLANK, BULK_APPLY, BULK_REQUEST_FILES, BUSINESS_ENTITIES, type BusinessEntity, BusinessEntityInput, CANCEL_PRIVACY_REQUEST, CAN_APPLY_IN_BULK, CATALOGS, CHANGE_REQUEST_DATA_SILO_STATUS, CODE_PACKAGES, CONSENT_MANAGER_ANALYTICS_DATA, CONSENT_PARTITIONS, COOKIES, CREATE_ACTION_ITEMS, CREATE_ACTION_ITEM_COLLECTION, CREATE_AGENT, CREATE_AGENT_FILE, CREATE_AGENT_FUNCTION, CREATE_API_KEY, CREATE_ATTRIBUTE, CREATE_ATTRIBUTE_VALUES, CREATE_BUSINESS_ENTITY, CREATE_CODE_PACKAGE, CREATE_CONSENT_EXPERIENCE, CREATE_CONSENT_MANAGER, CREATE_CONSENT_PARTITION, CREATE_DATA_FLOWS, CREATE_DATA_SILOS, CREATE_DATA_SUBJECT, CREATE_DATA_SUB_CATEGORY, CREATE_ENRICHER, CREATE_IDENTIFIER, CREATE_PROCESSING_ACTIVITY, CREATE_PROCESSING_PURPOSE_SUB_CATEGORY, CREATE_PROMPT, CREATE_PROMPT_GROUP, CREATE_PROMPT_PARTIAL, CREATE_REPOSITORY, CREATE_SOFTWARE_DEVELOPMENT_KIT, CREATE_TEAM, CREATE_TEMPLATE, CREATE_VENDOR, CachedFileState, CachedRequestState, type Catalog, CodePackageInput, CodePackageSdk, ColumnName, type ColumnNameMap, type ConsentExperience, ConsentManageExperienceInput, type ConsentManager, ConsentManagerInput, type ConsentManagerMetric, ConsentManagerMetricBin, ConsentManagerServiceMetadata, type ConsentManagerTheme, ConsentPreferenceResponse, ConsentPreferenceTopic, ConsentPreferenceTopicOptionValue, ConsentPurpose, type Cookie, CookieCsvInput, CookieInput, type CreatedApiKey, CronIdentifier, CronIdentifierPush, type CronIdentifierWithAction, type CsvFormattedIdentifier, DATAPOINT_EXPORT, DATA_FLOWS, DATA_POINTS, DATA_POINT_COUNT, DATA_SILOS, DATA_SILOS_ENRICHED, DATA_SILO_EXPORT, DATA_SUBJECTS, DATA_SUB_CATEGORIES, DEBUG, DEFAULT_TRANSCEND_API, DEFAULT_TRANSCEND_CONSENT_API, DEFAULT_TRANSCEND_PULL_RESOURCES, DELETE_API_KEY, DELETE_ATTRIBUTE_VALUE, DEPLOYED_PRIVACY_CENTER_URL, DEPLOY_CONSENT_MANAGER, DETERMINE_LOGIN_METHOD, DataCategoryGuessInput, DataCategoryInput, DataCategoryPreviewInput, DataCategoryRecommendationInput, type DataFlow, DataFlowCsvInput, DataFlowInput, type DataPointCsvPreview, type DataSilo, type DataSiloAttributeValue, type DataSiloCsvPreview, type DataSiloEnriched, DataSiloInput, type DataSubCategory, type DataSubject, DataSubjectInput, type DatapointFilterOptions, DatapointInput, ENABLED_PLUGINS, ENRICHERS, ENTRY_COUNT, EXPERIENCES, type EnabledRouteC, type EnabledRoutesC, EnrichPrivacyRequest, type Enricher, EnricherInput, type ExportedPrivacyRequest, type ExternalUser, FETCH_CONSENT_MANAGER, FETCH_CONSENT_MANAGER_ID, FETCH_CONSENT_MANAGER_THEME, FETCH_PRIVACY_CENTER_ID, FieldInput, type FormattedAttribute, GLOBAL_ACTION_ITEMS, GLOBAL_ACTION_ITEM_COLLECTIONS, type GetPromptParamType, type GetPromptResponseType, IDENTIFIERS, IDENTIFIER_BLOCK_LIST, IMPORT_ONE_TRUST_ASSESSMENT_FORMS, INITIALIZER, IP_ADDRESS_REGEX, IS_REQUIRED, type Identifier, IdentifierInput, type IdentifierNameMap, ImportOnetrustAssessmentsInput, type IndexedCatalogs, type Initializer, IntlMessage, IntlMessageInput, LARGE_LANGUAGE_MODELS, LOGIN, MESSAGES, type Message, NEW_IDENTIFIER_TYPES, NONE, NOTIFY_ADDITIONAL_TIME, ORGANIZATION, OneTrustFileFormat, OneTrustPullResource, OneTrustPullSource, OpenAIEnabledRoute, OpenAIEnabledRoutes, OpenAIIntegration, OpenAIRouteName, type OrganizationPreview, POLICIES, PREFERENCE_TOPICS, PRIVACY_CENTER, PROCESSING_ACTIVITIES, PROCESSING_PURPOSE_SUB_CATEGORIES, PROMPTS, PROMPTS_WITH_VARIABLES, PROMPT_GROUPS, PROMPT_PARTIALS, PROMPT_THREADS, PURPOSES, ParsedAttributeInput, PartitionInput, PathfinderPolicy, PathfinderPolicyName, PathfinderPolicyNameC, PathfinderPromptRunMetadata, type Plugin, type PluginResponse, type Policy, PolicyInput, type PreferenceTopic, type PrivacyCenter, PrivacyCenterInput, PrivacyRequest, PrivacyRequestInput, PrivacyRequestResponse, type PrivacyRequestWithIdentifiers, type ProcessingActivity, ProcessingActivityInput, ProcessingPurposeInput, ProcessingPurposePreviewInput, type ProcessingPurposeSubCategory, type Prompt, PromptAVendorEmailSettings, type PromptCalculatedVariable, type PromptGroup, PromptGroupInput, PromptInput, type PromptPartial, PromptPartialInput, type PromptRunResult, type PromptRuntimeVariable, type PromptThread, type Purpose, PurposeMap, type PurposeWithPreferences, REDUCED_REQUESTS_FOR_DATA_SILO_COUNT, REMOVE_REQUEST_IDENTIFIERS, REPORT_PROMPT_RUN, REPOSITORIES, REQUESTS, REQUEST_DATA_SILOS, REQUEST_ENRICHERS, REQUEST_FILES, REQUEST_IDENTIFIERS, RETRYABLE_BATCH_STATUSES, RETRY_REQUEST_DATA_SILO, RETRY_REQUEST_ENRICHER, RateCounter, RegionInput, type ReportPromptRunInput, type ReportPromptRunOptions, RepositoryInput, type RequestDataSilo, type RequestEnricher, type RequestFile, type RequestFileCursor, RequestFileMetadata, RequestFileMetadataResponse, type RequestFileResponse, RequestIdentifier, type RequestIdentifierMetadata, RequestIdentifiersResponse, type RetentionSchedule, type RetryPolicy, RiskAssignmentInput, type RiskCategory, type RiskFramework, type RiskLevel, RiskLogicInput, type RiskMatrix, type RiskMatrixColumn, type RiskMatrixRow, SCOPES_BY_TITLE, SCOPE_TITLES, SET_RESOURCE_ATTRIBUTES, SKIP_REQUEST_ENRICHER, SOFTWARE_DEVELOPMENT_KITS, SOMBRA_VERSION, SUB_DATA_POINTS, SUB_DATA_POINTS_COUNT, SUB_DATA_POINTS_WITH_GUESSES, SYNC_ATTRIBUTE_TYPES, SoftwareDevelopmentKitInput, StoredApiKey, type SubDataPoint, type SubDataPointCsvPreview, SuccessfulRequest, TEAMS, TEMPLATES, TOGGLE_CONSENT_PRECEDENCE, TOGGLE_DATA_SUBJECT, TOGGLE_TELEMETRY_PARTITION_STRATEGY, TOGGLE_UNKNOWN_COOKIE_POLICY, TOGGLE_UNKNOWN_REQUEST_POLICY, TR_PULL_RESOURCE_SCOPE_MAP, TR_PUSH_RESOURCE_SCOPE_MAP, TR_YML_RESOURCE_TO_FIELD_NAME, type Team, TeamInput, type Template, TemplateInput, TranscendInput, type TranscendPartition, type TranscendPrompt, TranscendPromptManager, type TranscendPromptPartialTemplated, type TranscendPromptTemplated, type TranscendPromptsAndVariables, type TranscendPullConfigurationInput, TranscendPullResource, UPDATE_ACTION, UPDATE_ACTION_ITEMS, UPDATE_ACTION_ITEM_COLLECTION, UPDATE_AGENTS, UPDATE_AGENT_FILES, UPDATE_AGENT_FUNCTIONS, UPDATE_ATTRIBUTE, UPDATE_ATTRIBUTE_VALUES, UPDATE_BUSINESS_ENTITIES, UPDATE_CODE_PACKAGES, UPDATE_CONSENT_EXPERIENCE, UPDATE_CONSENT_MANAGER_DOMAINS, UPDATE_CONSENT_MANAGER_PARTITION, UPDATE_CONSENT_MANAGER_THEME, UPDATE_CONSENT_MANAGER_TO_LATEST, UPDATE_CONSENT_MANAGER_VERSION, UPDATE_DATA_FLOWS, UPDATE_DATA_SILOS, UPDATE_DATA_SUBJECT, UPDATE_DATA_SUB_CATEGORIES, UPDATE_ENRICHER, UPDATE_IDENTIFIER, UPDATE_INTL_MESSAGES, UPDATE_LOAD_OPTIONS, UPDATE_OR_CREATE_COOKIES, UPDATE_OR_CREATE_DATA_POINT, UPDATE_POLICIES, UPDATE_PRIVACY_CENTER, UPDATE_PRIVACY_REQUEST, UPDATE_PROCESSING_ACTIVITIES, UPDATE_PROCESSING_PURPOSE_SUB_CATEGORIES, UPDATE_PROMPTS, UPDATE_PROMPT_GROUPS, UPDATE_PROMPT_PARTIALS, UPDATE_REPOSITORIES, UPDATE_SOFTWARE_DEVELOPMENT_KITS, UPDATE_TEAM, UPDATE_VENDORS, USERS, USP_STRING_REGEX, type User, type UserPreview, type UserRole, VARIABLE_PARAMETERS_NAME, VARIABLE_PARAMETERS_REGEXP, VENDORS, type Vendor, VendorInput, WebhookHeader, type XdiSyncGroups, addMessagesToPromptRun, appendCsvSync, approvePrivacyRequests, assumeRole, buildAIIntegrationType, buildEnabledRouteType, buildTranscendGraphQLClient, buildTranscendGraphQLClientGeneric, buildXdiSyncEndpoint, bulkRestartRequests, bulkRetryEnrichers, cancelPrivacyRequests, consentManagersToBusinessEntities, convertToDataSubjectAllowlist, convertToDataSubjectBlockList, createActionItemCollection, createActionItems, createAgent, createAgentFile, createAgentFunction, createApiKey, createBusinessEntity, createCodePackage, createConsentToken, createDataCategory, createDataFlows, createProcessingPurpose, createPrompt, createRegexForTag, createRepository, createSoftwareDevelopmentKit, createSombraGotInstance, createTranscendConsentGotInstance, createVendor, defineTranscendPrompts, deleteApiKey, deployConsentManager, description, domainToHost, downloadPrivacyRequestFiles, enrichPrivacyRequest, ensureAllDataSubjectsExist, extractClientError, extractErrorMessage, fetchActiveSiloDiscoPlugin, fetchAllActionItems, fetchAllActions, fetchAllAgentFiles, fetchAllAgentFunctions, fetchAllAgents, fetchAllApiKeys, fetchAllAssessmentTemplates, fetchAllAssessments, fetchAllAttributeValues, fetchAllAttributes, fetchAllBusinessEntities, fetchAllCatalogs, fetchAllCookies, fetchAllDataCategories, fetchAllDataFlows, fetchAllDataPoints, fetchAllDataSilos, fetchAllDataSubjects, fetchAllEnrichers, fetchAllIdentifiers, fetchAllMessages, fetchAllPolicies, fetchAllPreferenceTopics, fetchAllPrivacyCenters, fetchAllProcessingActivities, fetchAllProcessingPurposes, fetchAllPromptGroups, fetchAllPromptPartials, fetchAllPromptThreads, fetchAllPrompts, fetchAllPurposes, fetchAllPurposesAndPreferences, fetchAllRequestAttributeKeys, fetchAllRequestEnrichers, fetchAllRequestIdentifierMetadata, fetchAllRequestIdentifiers, fetchAllRequests, fetchAllSubDataPoints, fetchAllTeams, fetchAllTemplates, fetchAllUsers, fetchAllVendors, fetchAndIndexCatalogs, fetchApiKeys, fetchConsentManager, fetchConsentManagerAnalyticsData, fetchConsentManagerExperiences, fetchConsentManagerId, fetchConsentManagerTheme, fetchConsentPreferences, fetchEnrichedDataSilos, fetchIdentifiersAndCreateMissing, fetchPartitions, fetchPrivacyCenterId, fetchPrivacyCenterUrl, fetchPromptsWithVariables, fetchRequestDataSilo, fetchRequestDataSiloActiveCount, fetchRequestDataSilos, fetchRequestFilesForRequest, filterNullishValuesFromObject, filterRows, formatAttributeValues, fuzzyMatchColumns, fuzzySearch, generateCrossAccountApiKeys, getErrorStatus, getFileMetadataForPrivacyRequests, getGitFilesThatChanged, getUniqueValuesForColumn, inquirerAutoComplete, inquirerConfirmBoolean, inquirerConfirmText, limitRecords, listDirectories, listFiles, loginUser, makeGraphQLRequest, mapColumnsToAttributes, mapColumnsToIdentifiers, mapCsvColumnsToApi, mapCsvRowsToRequestInputs, mapEnumValues, mapRequestEnumValues, markCronIdentifierCompleted, markRequestDataSiloIdsCompleted, markSilentPrivacyRequests, mergeTranscendInputs, name, normalizeIdentifierValue, notifyPrivacyRequestsAdditionalTime, parseAssessmentDisplayLogic, parseAssessmentRiskLogic, parseAttributesFromString, parseFilePath, parseVariablesFromString, pullAllDatapoints, pullChunkedCustomSiloOutstandingIdentifiers, pullConsentManagerMetrics, pullCronPageOfIdentifiers, pullManualEnrichmentIdentifiersToCsv, pullPrivacyRequests, pullTranscendConfiguration, pullUnstructuredSubDataPointRecommendations, pushCronIdentifiersFromCsv, pushManualEnrichmentIdentifiersFromCsv, readCsv, readSafe, readTranscendYaml, removeLinks, removeUnverifiedRequestIdentifiers, replaceVariablesInYaml, reportPromptRun, restartPrivacyRequest, retryRequestDataSilos, retryRequestEnricher, retrySamePromise, setResourceAttributes, skipPreflightJobs, skipRequestDataSilos, sleepPromise, splitCsvToList, splitInHalf, streamPrivacyRequestFiles, submitPrivacyRequest, syncAction, syncActionItemCollections, syncActionItems, syncAgentFiles, syncAgentFunctions, syncAgents, syncAttribute, syncBusinessEntities, syncCodePackages, syncConfigurationToTranscend, syncConsentManager, syncConsentManagerExperiences, syncCookies, syncDataCategories, syncDataFlows, syncDataSiloDependencies, syncDataSilos, syncDataSubject, syncEnricher, syncIdentifier, syncIntlMessages, syncPartitions, syncPolicies, syncPrivacyCenter, syncProcessingActivities, syncProcessingPurposes, syncPrompts, syncRepositories, syncSoftwareDevelopmentKits, syncTemplate, syncVendors, updateActionItem, updateActionItemCollection, updateAgentFiles, updateAgentFunctions, updateAgents, updateBusinessEntities, updateCodePackages, updateConsentManagerToLatest, updateConsentManagerVersionToLatest, updateDataCategories, updateDataFlows, updateIntlMessages, updateOrCreateCookies, updatePolicies, updateProcessingPurposes, updatePrompts, updateRepositories, updateSoftwareDevelopmentKits, updateVendors, uploadConsents, uploadCookiesFromCsv, uploadDataFlowsFromCsv, uploadPrivacyRequestsFromCsv, uploadSiloDiscoveryResults, validateTranscendAuth, version, writeCsv, writeCsvSync, writeLargeCsv, writeTranscendYaml };
145174
+ export { ACTIONS, ADD_MESSAGES_TO_PROMPT_RUN, ADD_SILO_DISCOVERY_RESULTS, ADMIN_DASH, ADMIN_DASH_DATAPOINTS, ADMIN_DASH_INTEGRATIONS, AGENTS, AGENT_FILES, AGENT_FUNCTIONS, type AIIntegrationC, API_KEYS, APPROVE_PRIVACY_REQUEST, ASSESSMENTS, ASSESSMENT_SECTION_FIELDS, ASSESSMENT_TEMPLATES, ASSUME_ROLE, ATTRIBUTES, ATTRIBUTE_KEYS_REQUESTS, ATTRIBUTE_VALUES, type Action, ActionInput, type ActionItem, ActionItemCollectionInput, ActionItemInput, type ActionItemRaw, type AddMessagesToPromptRunInput, type Agent, type AgentFile, type AgentFileFilterBy, AgentFileInput, type AgentFunction, AgentFunctionInput, AgentInput, type ApiKey, type ApiKeyGenerateError, ApiKeyInput, type Assessment, AssessmentAction, type AssessmentAnswer, type AssessmentAnswerOption, AssessmentAnswerOptionInput, type AssessmentComment, AssessmentDisplayLogicInput, type AssessmentGroup, AssessmentInput, AssessmentNestedRule, AssessmentNestedRuleInput, type AssessmentPreviousSubmission, type AssessmentQuestion, type AssessmentResource, AssessmentResourceInput, AssessmentRetentionScheduleInput, AssessmentRiskLogic, AssessmentRule, AssessmentRuleInput, AssessmentRuleWithOperands, AssessmentRuleWithoutOperands, type AssessmentSection, AssessmentSectionInput, AssessmentSectionQuestionInput, type AssessmentTemplate, AssessmentTemplateInput, AttestedExtraIdentifiers, type Attribute, AttributeInput, type AttributeKey, type AttributeNameMap, AttributePreview, type AttributeValue, AttributeValueInput, BLANK, BULK_APPLY, BULK_REQUEST_FILES, BUSINESS_ENTITIES, type BusinessEntity, BusinessEntityInput, CANCEL_PRIVACY_REQUEST, CAN_APPLY_IN_BULK, CATALOGS, CHANGE_REQUEST_DATA_SILO_STATUS, CODE_PACKAGES, CONSENT_MANAGER_ANALYTICS_DATA, CONSENT_PARTITIONS, COOKIES, CREATE_ACTION_ITEMS, CREATE_ACTION_ITEM_COLLECTION, CREATE_AGENT, CREATE_AGENT_FILE, CREATE_AGENT_FUNCTION, CREATE_API_KEY, CREATE_ATTRIBUTE, CREATE_ATTRIBUTE_VALUES, CREATE_BUSINESS_ENTITY, CREATE_CODE_PACKAGE, CREATE_CONSENT_EXPERIENCE, CREATE_CONSENT_MANAGER, CREATE_CONSENT_PARTITION, CREATE_DATA_FLOWS, CREATE_DATA_SILOS, CREATE_DATA_SUBJECT, CREATE_DATA_SUB_CATEGORY, CREATE_ENRICHER, CREATE_IDENTIFIER, CREATE_PROCESSING_ACTIVITY, CREATE_PROCESSING_PURPOSE_SUB_CATEGORY, CREATE_PROMPT, CREATE_PROMPT_GROUP, CREATE_PROMPT_PARTIAL, CREATE_REPOSITORY, CREATE_SOFTWARE_DEVELOPMENT_KIT, CREATE_TEAM, CREATE_TEMPLATE, CREATE_VENDOR, CachedFileState, CachedRequestState, type Catalog, CodePackageInput, CodePackageSdk, ColumnName, type ColumnNameMap, type ConsentExperience, ConsentManageExperienceInput, type ConsentManager, ConsentManagerInput, type ConsentManagerMetric, ConsentManagerMetricBin, ConsentManagerServiceMetadata, type ConsentManagerTheme, ConsentPreferenceResponse, ConsentPreferenceTopic, ConsentPreferenceTopicOptionValue, ConsentPurpose, type Cookie, CookieCsvInput, CookieInput, type CreatedApiKey, CronIdentifier, CronIdentifierPush, type CronIdentifierWithAction, type CsvFormattedIdentifier, DATAPOINT_EXPORT, DATA_FLOWS, DATA_POINTS, DATA_POINT_COUNT, DATA_SILOS, DATA_SILOS_ENRICHED, DATA_SILO_EXPORT, DATA_SUBJECTS, DATA_SUB_CATEGORIES, DEBUG, DEFAULT_TRANSCEND_API, DEFAULT_TRANSCEND_CONSENT_API, DEFAULT_TRANSCEND_PULL_RESOURCES, DELETE_API_KEY, DELETE_ATTRIBUTE_VALUE, DEPLOYED_PRIVACY_CENTER_URL, DEPLOY_CONSENT_MANAGER, DETERMINE_LOGIN_METHOD, DataCategoryGuessInput, DataCategoryInput, DataCategoryPreviewInput, DataCategoryRecommendationInput, type DataFlow, DataFlowCsvInput, DataFlowInput, type DataPointCsvPreview, type DataSilo, type DataSiloAttributeValue, type DataSiloCsvPreview, type DataSiloEnriched, DataSiloInput, type DataSubCategory, type DataSubject, DataSubjectInput, type DatapointFilterOptions, DatapointInput, ENABLED_PLUGINS, ENRICHERS, ENTRY_COUNT, EXPERIENCES, type EnabledRouteC, type EnabledRoutesC, EnrichPrivacyRequest, type Enricher, EnricherInput, type ExportedPrivacyRequest, type ExternalUser, FETCH_CONSENT_MANAGER, FETCH_CONSENT_MANAGER_ID, FETCH_CONSENT_MANAGER_THEME, FETCH_PRIVACY_CENTER_ID, FieldInput, type FormattedAttribute, GLOBAL_ACTION_ITEMS, GLOBAL_ACTION_ITEM_COLLECTIONS, type GetPromptParamType, type GetPromptResponseType, IDENTIFIERS, IDENTIFIER_BLOCK_LIST, IMPORT_ONE_TRUST_ASSESSMENT_FORMS, INITIALIZER, IP_ADDRESS_REGEX, IS_REQUIRED, type Identifier, IdentifierInput, type IdentifierNameMap, ImportOnetrustAssessmentsInput, type IndexedCatalogs, type Initializer, IntlMessage, IntlMessageInput, LARGE_LANGUAGE_MODELS, LOGIN, MESSAGES, type Message, NEW_IDENTIFIER_TYPES, NONE, NOTIFY_ADDITIONAL_TIME, ORGANIZATION, OneTrustFileFormat, OneTrustPullResource, OneTrustPullSource, OpenAIEnabledRoute, OpenAIEnabledRoutes, OpenAIIntegration, OpenAIRouteName, type OrganizationPreview, POLICIES, PREFERENCE_TOPICS, PRIVACY_CENTER, PROCESSING_ACTIVITIES, PROCESSING_PURPOSE_SUB_CATEGORIES, PROMPTS, PROMPTS_WITH_VARIABLES, PROMPT_GROUPS, PROMPT_PARTIALS, PROMPT_THREADS, PURPOSES, ParsedAttributeInput, PartitionInput, PathfinderPolicy, PathfinderPolicyName, PathfinderPolicyNameC, PathfinderPromptRunMetadata, type Plugin, type PluginResponse, type Policy, PolicyInput, type PreferenceTopic, type PrivacyCenter, PrivacyCenterInput, PrivacyRequest, PrivacyRequestInput, PrivacyRequestResponse, type PrivacyRequestWithIdentifiers, type ProcessingActivity, ProcessingActivityInput, ProcessingPurposeInput, ProcessingPurposePreviewInput, type ProcessingPurposeSubCategory, type Prompt, PromptAVendorEmailSettings, type PromptCalculatedVariable, type PromptGroup, PromptGroupInput, PromptInput, type PromptPartial, PromptPartialInput, type PromptRunResult, type PromptRuntimeVariable, type PromptThread, type Purpose, PurposeMap, type PurposeWithPreferences, REDUCED_REQUESTS_FOR_DATA_SILO_COUNT, REMOVE_REQUEST_IDENTIFIERS, REPORT_PROMPT_RUN, REPOSITORIES, REQUESTS, REQUEST_DATA_SILOS, REQUEST_ENRICHERS, REQUEST_FILES, REQUEST_IDENTIFIERS, RETRYABLE_BATCH_STATUSES, RETRY_REQUEST_DATA_SILO, RETRY_REQUEST_ENRICHER, RateCounter, RegionInput, type ReportPromptRunInput, type ReportPromptRunOptions, RepositoryInput, type RequestDataSilo, type RequestDataSiloFilters, type RequestEnricher, type RequestFile, type RequestFileCursor, RequestFileMetadata, RequestFileMetadataResponse, type RequestFileResponse, RequestIdentifier, type RequestIdentifierMetadata, RequestIdentifiersResponse, type RetentionSchedule, type RetryPolicy, RiskAssignmentInput, type RiskCategory, type RiskFramework, type RiskLevel, RiskLogicInput, type RiskMatrix, type RiskMatrixColumn, type RiskMatrixRow, SCOPES_BY_TITLE, SCOPE_TITLES, SET_RESOURCE_ATTRIBUTES, SKIP_REQUEST_ENRICHER, SOFTWARE_DEVELOPMENT_KITS, SOMBRA_VERSION, SUB_DATA_POINTS, SUB_DATA_POINTS_COUNT, SUB_DATA_POINTS_WITH_GUESSES, SYNC_ATTRIBUTE_TYPES, SoftwareDevelopmentKitInput, StoredApiKey, type SubDataPoint, type SubDataPointCsvPreview, SuccessfulRequest, TEAMS, TEMPLATES, TOGGLE_CONSENT_PRECEDENCE, TOGGLE_DATA_SUBJECT, TOGGLE_TELEMETRY_PARTITION_STRATEGY, TOGGLE_UNKNOWN_COOKIE_POLICY, TOGGLE_UNKNOWN_REQUEST_POLICY, TR_PULL_RESOURCE_SCOPE_MAP, TR_PUSH_RESOURCE_SCOPE_MAP, TR_YML_RESOURCE_TO_FIELD_NAME, type Team, TeamInput, type Template, TemplateInput, TranscendInput, type TranscendPartition, type TranscendPrompt, TranscendPromptManager, type TranscendPromptPartialTemplated, type TranscendPromptTemplated, type TranscendPromptsAndVariables, type TranscendPullConfigurationInput, TranscendPullResource, UPDATE_ACTION, UPDATE_ACTION_ITEMS, UPDATE_ACTION_ITEM_COLLECTION, UPDATE_AGENTS, UPDATE_AGENT_FILES, UPDATE_AGENT_FUNCTIONS, UPDATE_ATTRIBUTE, UPDATE_ATTRIBUTE_VALUES, UPDATE_BUSINESS_ENTITIES, UPDATE_CODE_PACKAGES, UPDATE_CONSENT_EXPERIENCE, UPDATE_CONSENT_MANAGER_DOMAINS, UPDATE_CONSENT_MANAGER_PARTITION, UPDATE_CONSENT_MANAGER_THEME, UPDATE_CONSENT_MANAGER_TO_LATEST, UPDATE_CONSENT_MANAGER_VERSION, UPDATE_DATA_FLOWS, UPDATE_DATA_SILOS, UPDATE_DATA_SUBJECT, UPDATE_DATA_SUB_CATEGORIES, UPDATE_ENRICHER, UPDATE_IDENTIFIER, UPDATE_INTL_MESSAGES, UPDATE_LOAD_OPTIONS, UPDATE_OR_CREATE_COOKIES, UPDATE_OR_CREATE_DATA_POINT, UPDATE_POLICIES, UPDATE_PRIVACY_CENTER, UPDATE_PRIVACY_REQUEST, UPDATE_PROCESSING_ACTIVITIES, UPDATE_PROCESSING_PURPOSE_SUB_CATEGORIES, UPDATE_PROMPTS, UPDATE_PROMPT_GROUPS, UPDATE_PROMPT_PARTIALS, UPDATE_REPOSITORIES, UPDATE_SOFTWARE_DEVELOPMENT_KITS, UPDATE_TEAM, UPDATE_VENDORS, USERS, USP_STRING_REGEX, type User, type UserPreview, type UserRole, VARIABLE_PARAMETERS_NAME, VARIABLE_PARAMETERS_REGEXP, VENDORS, type Vendor, VendorInput, WebhookHeader, type XdiSyncGroups, addMessagesToPromptRun, appendCsvSync, approvePrivacyRequests, assumeRole, buildAIIntegrationType, buildEnabledRouteType, buildTranscendGraphQLClient, buildTranscendGraphQLClientGeneric, buildXdiSyncEndpoint, bulkRestartRequests, bulkRetryEnrichers, cancelPrivacyRequests, consentManagersToBusinessEntities, convertToDataSubjectAllowlist, convertToDataSubjectBlockList, createActionItemCollection, createActionItems, createAgent, createAgentFile, createAgentFunction, createApiKey, createBusinessEntity, createCodePackage, createConsentToken, createDataCategory, createDataFlows, createProcessingPurpose, createPrompt, createRegexForTag, createRepository, createSoftwareDevelopmentKit, createSombraGotInstance, createTranscendConsentGotInstance, createVendor, defineTranscendPrompts, deleteApiKey, deployConsentManager, description, domainToHost, downloadPrivacyRequestFiles, enrichPrivacyRequest, ensureAllDataSubjectsExist, extractClientError, extractErrorMessage, fetchActiveSiloDiscoPlugin, fetchAllActionItems, fetchAllActions, fetchAllAgentFiles, fetchAllAgentFunctions, fetchAllAgents, fetchAllApiKeys, fetchAllAssessmentTemplates, fetchAllAssessments, fetchAllAttributeValues, fetchAllAttributes, fetchAllBusinessEntities, fetchAllCatalogs, fetchAllCookies, fetchAllDataCategories, fetchAllDataFlows, fetchAllDataPoints, fetchAllDataSilos, fetchAllDataSubjects, fetchAllEnrichers, fetchAllIdentifiers, fetchAllMessages, fetchAllPolicies, fetchAllPreferenceTopics, fetchAllPrivacyCenters, fetchAllProcessingActivities, fetchAllProcessingPurposes, fetchAllPromptGroups, fetchAllPromptPartials, fetchAllPromptThreads, fetchAllPrompts, fetchAllPurposes, fetchAllPurposesAndPreferences, fetchAllRequestAttributeKeys, fetchAllRequestEnrichers, fetchAllRequestIdentifierMetadata, fetchAllRequestIdentifiers, fetchAllRequests, fetchAllSubDataPoints, fetchAllTeams, fetchAllTemplates, fetchAllUsers, fetchAllVendors, fetchAndIndexCatalogs, fetchApiKeys, fetchConsentManager, fetchConsentManagerAnalyticsData, fetchConsentManagerExperiences, fetchConsentManagerId, fetchConsentManagerTheme, fetchConsentPreferences, fetchEnrichedDataSilos, fetchIdentifiersAndCreateMissing, fetchPartitions, fetchPrivacyCenterId, fetchPrivacyCenterUrl, fetchPromptsWithVariables, fetchRequestDataSilo, fetchRequestDataSiloActiveCount, fetchRequestDataSilos, fetchRequestDataSilosCount, fetchRequestFilesForRequest, filterNullishValuesFromObject, filterRows, formatAttributeValues, fuzzyMatchColumns, fuzzySearch, generateCrossAccountApiKeys, getErrorStatus, getFileMetadataForPrivacyRequests, getGitFilesThatChanged, getUniqueValuesForColumn, inquirerAutoComplete, inquirerConfirmBoolean, inquirerConfirmText, limitRecords, listDirectories, listFiles, loginUser, makeGraphQLRequest, mapColumnsToAttributes, mapColumnsToIdentifiers, mapCsvColumnsToApi, mapCsvRowsToRequestInputs, mapEnumValues, mapRequestEnumValues, markCronIdentifierCompleted, markRequestDataSiloIdsCompleted, markSilentPrivacyRequests, mergeTranscendInputs, name, normalizeIdentifierValue, notifyPrivacyRequestsAdditionalTime, parseAssessmentDisplayLogic, parseAssessmentRiskLogic, parseAttributesFromString, parseFilePath, parseVariablesFromString, pullAllDatapoints, pullChunkedCustomSiloOutstandingIdentifiers, pullConsentManagerMetrics, pullCronPageOfIdentifiers, pullManualEnrichmentIdentifiersToCsv, pullPrivacyRequests, pullTranscendConfiguration, pullUnstructuredSubDataPointRecommendations, pushCronIdentifiersFromCsv, pushManualEnrichmentIdentifiersFromCsv, readCsv, readSafe, readTranscendYaml, removeLinks, removeUnverifiedRequestIdentifiers, replaceVariablesInYaml, reportPromptRun, restartPrivacyRequest, retryRequestDataSilos, retryRequestEnricher, retrySamePromise, setResourceAttributes, skipPreflightJobs, skipRequestDataSilos, sleepPromise, splitCsvToList, splitInHalf, streamPrivacyRequestFiles, submitPrivacyRequest, syncAction, syncActionItemCollections, syncActionItems, syncAgentFiles, syncAgentFunctions, syncAgents, syncAttribute, syncBusinessEntities, syncCodePackages, syncConfigurationToTranscend, syncConsentManager, syncConsentManagerExperiences, syncCookies, syncDataCategories, syncDataFlows, syncDataSiloDependencies, syncDataSilos, syncDataSubject, syncEnricher, syncIdentifier, syncIntlMessages, syncPartitions, syncPolicies, syncPrivacyCenter, syncProcessingActivities, syncProcessingPurposes, syncPrompts, syncRepositories, syncSoftwareDevelopmentKits, syncTemplate, syncVendors, updateActionItem, updateActionItemCollection, updateAgentFiles, updateAgentFunctions, updateAgents, updateBusinessEntities, updateCodePackages, updateConsentManagerToLatest, updateConsentManagerVersionToLatest, updateDataCategories, updateDataFlows, updateIntlMessages, updateOrCreateCookies, updatePolicies, updateProcessingPurposes, updatePrompts, updateRepositories, updateSoftwareDevelopmentKits, updateVendors, uploadConsents, uploadCookiesFromCsv, uploadDataFlowsFromCsv, uploadPrivacyRequestsFromCsv, uploadSiloDiscoveryResults, validateTranscendAuth, version, writeCsv, writeCsvSync, writeLargeCsv, writeTranscendYaml };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "author": "Transcend Inc.",
3
3
  "name": "@transcend-io/cli",
4
4
  "description": "A command line interface for programmatic operations across Transcend.",
5
- "version": "8.1.2",
5
+ "version": "8.1.6",
6
6
  "homepage": "https://github.com/transcend-io/cli",
7
7
  "repository": {
8
8
  "type": "git",