@transcend-io/cli 4.108.0 → 4.109.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +103 -3
- package/build/ai/TranscendPromptManager.d.ts +137 -0
- package/build/ai/TranscendPromptManager.d.ts.map +1 -0
- package/build/ai/TranscendPromptManager.js +159 -0
- package/build/ai/TranscendPromptManager.js.map +1 -0
- package/build/ai/index.d.ts +1 -1
- package/build/ai/index.d.ts.map +1 -1
- package/build/ai/index.js +1 -1
- package/build/ai/index.js.map +1 -1
- package/build/codecs.d.ts +95 -1
- package/build/codecs.d.ts.map +1 -1
- package/build/codecs.js +56 -2
- package/build/codecs.js.map +1 -1
- package/build/constants.d.ts.map +1 -1
- package/build/constants.js +8 -0
- package/build/constants.js.map +1 -1
- package/build/enums.d.ts +5 -1
- package/build/enums.d.ts.map +1 -1
- package/build/enums.js +4 -0
- package/build/enums.js.map +1 -1
- package/build/graphql/fetchAllActions.js +1 -1
- package/build/graphql/fetchAllActions.js.map +1 -1
- package/build/graphql/fetchAllAttributeKeys.js +1 -1
- package/build/graphql/fetchAllAttributeKeys.js.map +1 -1
- package/build/graphql/fetchAllBusinessEntities.js +1 -1
- package/build/graphql/fetchAllBusinessEntities.js.map +1 -1
- package/build/graphql/fetchAssessmentTemplates.js +1 -1
- package/build/graphql/fetchAssessmentTemplates.js.map +1 -1
- package/build/graphql/fetchAssessments.js +1 -1
- package/build/graphql/fetchAssessments.js.map +1 -1
- package/build/graphql/fetchIdentifiers.js +1 -1
- package/build/graphql/fetchIdentifiers.js.map +1 -1
- package/build/graphql/fetchPromptGroups.d.ts +22 -0
- package/build/graphql/fetchPromptGroups.d.ts.map +1 -0
- package/build/graphql/fetchPromptGroups.js +32 -0
- package/build/graphql/fetchPromptGroups.js.map +1 -0
- package/build/graphql/fetchPromptPartials.d.ts +17 -0
- package/build/graphql/fetchPromptPartials.d.ts.map +1 -0
- package/build/graphql/fetchPromptPartials.js +32 -0
- package/build/graphql/fetchPromptPartials.js.map +1 -0
- package/build/graphql/fetchPromptTemplates.d.ts +17 -0
- package/build/graphql/fetchPromptTemplates.d.ts.map +1 -0
- package/build/graphql/fetchPromptTemplates.js +32 -0
- package/build/graphql/fetchPromptTemplates.js.map +1 -0
- package/build/graphql/fetchPrompts.d.ts +83 -0
- package/build/graphql/fetchPrompts.d.ts.map +1 -0
- package/build/graphql/fetchPrompts.js +55 -0
- package/build/graphql/fetchPrompts.js.map +1 -0
- package/build/graphql/gqls/RequestDataSilo.js +1 -1
- package/build/graphql/gqls/RequestEnricher.js +1 -1
- package/build/graphql/gqls/RequestIdentifier.js +1 -1
- package/build/graphql/gqls/action.js +1 -1
- package/build/graphql/gqls/apiKey.js +1 -1
- package/build/graphql/gqls/assessment.js +3 -3
- package/build/graphql/gqls/attribute.d.ts.map +1 -1
- package/build/graphql/gqls/attribute.js +2 -3
- package/build/graphql/gqls/attribute.js.map +1 -1
- package/build/graphql/gqls/attributeKey.js +1 -1
- package/build/graphql/gqls/catalog.d.ts.map +1 -1
- package/build/graphql/gqls/catalog.js +1 -2
- package/build/graphql/gqls/catalog.js.map +1 -1
- package/build/graphql/gqls/consentManager.d.ts.map +1 -1
- package/build/graphql/gqls/consentManager.js +1 -2
- package/build/graphql/gqls/consentManager.js.map +1 -1
- package/build/graphql/gqls/dataPoint.js +1 -1
- package/build/graphql/gqls/enricher.js +1 -1
- package/build/graphql/gqls/identifier.js +1 -1
- package/build/graphql/gqls/index.d.ts +1 -0
- package/build/graphql/gqls/index.d.ts.map +1 -1
- package/build/graphql/gqls/index.js +1 -0
- package/build/graphql/gqls/index.js.map +1 -1
- package/build/graphql/gqls/prompt.d.ts +14 -0
- package/build/graphql/gqls/prompt.d.ts.map +1 -0
- package/build/graphql/gqls/prompt.js +183 -0
- package/build/graphql/gqls/prompt.js.map +1 -0
- package/build/graphql/gqls/template.d.ts.map +1 -1
- package/build/graphql/gqls/template.js +8 -4
- package/build/graphql/gqls/template.js.map +1 -1
- package/build/graphql/index.d.ts +5 -0
- package/build/graphql/index.d.ts.map +1 -1
- package/build/graphql/index.js +5 -0
- package/build/graphql/index.js.map +1 -1
- package/build/graphql/pullTranscendConfiguration.d.ts.map +1 -1
- package/build/graphql/pullTranscendConfiguration.js +50 -1
- package/build/graphql/pullTranscendConfiguration.js.map +1 -1
- package/build/graphql/syncConfigurationToTranscend.d.ts.map +1 -1
- package/build/graphql/syncConfigurationToTranscend.js +22 -1
- package/build/graphql/syncConfigurationToTranscend.js.map +1 -1
- package/build/graphql/syncDataSilos.js +2 -2
- package/build/graphql/syncDataSilos.js.map +1 -1
- package/build/graphql/syncEnrichers.js +2 -2
- package/build/graphql/syncEnrichers.js.map +1 -1
- package/build/graphql/syncPromptGroups.d.ts +34 -0
- package/build/graphql/syncPromptGroups.d.ts.map +1 -0
- package/build/graphql/syncPromptGroups.js +126 -0
- package/build/graphql/syncPromptGroups.js.map +1 -0
- package/build/graphql/syncPromptPartials.d.ts +32 -0
- package/build/graphql/syncPromptPartials.d.ts.map +1 -0
- package/build/graphql/syncPromptPartials.js +102 -0
- package/build/graphql/syncPromptPartials.js.map +1 -0
- package/build/graphql/syncPromptTemplates.d.ts +32 -0
- package/build/graphql/syncPromptTemplates.d.ts.map +1 -0
- package/build/graphql/syncPromptTemplates.js +102 -0
- package/build/graphql/syncPromptTemplates.js.map +1 -0
- package/build/graphql/syncPrompts.d.ts +32 -0
- package/build/graphql/syncPrompts.d.ts.map +1 -0
- package/build/graphql/syncPrompts.js +102 -0
- package/build/graphql/syncPrompts.js.map +1 -0
- package/build/tests/TranscendPromptManager.test.d.ts +2 -0
- package/build/tests/TranscendPromptManager.test.d.ts.map +1 -0
- package/build/tests/{TranscendAiPrompt.test.js → TranscendPromptManager.test.js} +25 -13
- package/build/tests/TranscendPromptManager.test.js.map +1 -0
- package/build/tsbuildinfo +1 -1
- package/package.json +2 -2
- package/build/ai/TranscendAiPrompt.d.ts +0 -59
- package/build/ai/TranscendAiPrompt.d.ts.map +0 -1
- package/build/ai/TranscendAiPrompt.js +0 -129
- package/build/ai/TranscendAiPrompt.js.map +0 -1
- package/build/tests/TranscendAiPrompt.test.d.ts +0 -2
- package/build/tests/TranscendAiPrompt.test.d.ts.map +0 -1
- package/build/tests/TranscendAiPrompt.test.js.map +0 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"author": "Transcend Inc.",
|
|
3
3
|
"name": "@transcend-io/cli",
|
|
4
4
|
"description": "Small package containing useful typescript utilities.",
|
|
5
|
-
"version": "4.
|
|
5
|
+
"version": "4.109.1",
|
|
6
6
|
"homepage": "https://github.com/transcend-io/cli",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@transcend-io/handlebars-utils": "^1.0.1",
|
|
62
62
|
"@transcend-io/internationalization": "^1.6.0",
|
|
63
63
|
"@transcend-io/persisted-state": "^1.0.2",
|
|
64
|
-
"@transcend-io/privacy-types": "^4.
|
|
64
|
+
"@transcend-io/privacy-types": "^4.46.0",
|
|
65
65
|
"@transcend-io/secret-value": "^1.1.1",
|
|
66
66
|
"@transcend-io/type-utils": "^1.1.1",
|
|
67
67
|
"bluebird": "^3.7.2",
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { ObjByString } from '@transcend-io/type-utils';
|
|
2
|
-
import type { Handlebars } from '@transcend-io/handlebars-utils';
|
|
3
|
-
import { Secret } from '@transcend-io/secret-value';
|
|
4
|
-
import * as t from 'io-ts';
|
|
5
|
-
import { HandlebarsInput } from '@transcend-io/handlebars-utils';
|
|
6
|
-
export declare const EXPECTED_ATTRIBUTE_PREFIX = "attribute-";
|
|
7
|
-
export declare const BUSINESS_ENTITIES_PREFIX = "businessEntities-";
|
|
8
|
-
/**
|
|
9
|
-
* Define an AI prompt that can be loaded from Transcend
|
|
10
|
-
*/
|
|
11
|
-
export declare class TranscendAiPrompt<TParams extends ObjByString, TOutputCodec extends t.Any> {
|
|
12
|
-
/** Title of prompt */
|
|
13
|
-
title: string;
|
|
14
|
-
/** Codec to validate output response */
|
|
15
|
-
codec: TOutputCodec;
|
|
16
|
-
/** Handlebars compiler */
|
|
17
|
-
handlebars: typeof Handlebars;
|
|
18
|
-
/** Extract response from this tag */
|
|
19
|
-
extractFromTagRegex?: RegExp;
|
|
20
|
-
/**
|
|
21
|
-
* Constructor
|
|
22
|
-
*
|
|
23
|
-
* @param options - Options
|
|
24
|
-
*/
|
|
25
|
-
constructor({ title, codec, extractFromTag, handlebarsOptions, }: {
|
|
26
|
-
/** Title of prompt in transcend */
|
|
27
|
-
title: string;
|
|
28
|
-
/** Codec to validate output shape of the prompt */
|
|
29
|
-
codec: TOutputCodec;
|
|
30
|
-
/** Options for configuring handlebars */
|
|
31
|
-
handlebarsOptions?: HandlebarsInput;
|
|
32
|
-
/** When provided, the response should be extracted from this tag name e.g. json */
|
|
33
|
-
extractFromTag?: string;
|
|
34
|
-
});
|
|
35
|
-
/**
|
|
36
|
-
* Fetch prompt from Transcend
|
|
37
|
-
*
|
|
38
|
-
* @param options - Additional options
|
|
39
|
-
* @returns A function that can be used to call the prompt
|
|
40
|
-
*/
|
|
41
|
-
fetchPromptFromTranscend({ fillTemplateFromInventory, transcendUrl, transcendApiKey, requireApproval, }: {
|
|
42
|
-
/** The Transcend API key */
|
|
43
|
-
transcendApiKey: string | Secret<string>;
|
|
44
|
-
/** When true, template in any attribute definitions in the prompt */
|
|
45
|
-
fillTemplateFromInventory?: boolean;
|
|
46
|
-
/** API of Transcend to call */
|
|
47
|
-
transcendUrl?: string;
|
|
48
|
-
/** When true, throw an error if the prompt is not approved */
|
|
49
|
-
requireApproval?: boolean;
|
|
50
|
-
}): Promise<(params: TParams) => string>;
|
|
51
|
-
/**
|
|
52
|
-
* Validate the shape of the response from AI
|
|
53
|
-
*
|
|
54
|
-
* @param response - AI response as string
|
|
55
|
-
* @returns Parsed content
|
|
56
|
-
*/
|
|
57
|
-
parseAiResponse(response: string): t.TypeOf<TOutputCodec>;
|
|
58
|
-
}
|
|
59
|
-
//# sourceMappingURL=TranscendAiPrompt.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TranscendAiPrompt.d.ts","sourceRoot":"","sources":["../../src/ai/TranscendAiPrompt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAe,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAEjE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAQ3B,OAAO,EACL,eAAe,EAGhB,MAAM,gCAAgC,CAAC;AAIxC,eAAO,MAAM,yBAAyB,eAAe,CAAC;AACtD,eAAO,MAAM,wBAAwB,sBAAsB,CAAC;AAE5D;;GAEG;AACH,qBAAa,iBAAiB,CAC5B,OAAO,SAAS,WAAW,EAC3B,YAAY,SAAS,CAAC,CAAC,GAAG;IAE1B,sBAAsB;IACf,KAAK,EAAE,MAAM,CAAC;IAErB,wCAAwC;IACjC,KAAK,EAAE,YAAY,CAAC;IAE3B,0BAA0B;IACnB,UAAU,EAAE,OAAO,UAAU,CAAC;IAErC,qCAAqC;IAC9B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAEpC;;;;OAIG;gBACS,EACV,KAAK,EACL,KAAK,EACL,cAAc,EACd,iBAAiB,GAClB,EAAE;QACD,mCAAmC;QACnC,KAAK,EAAE,MAAM,CAAC;QACd,mDAAmD;QACnD,KAAK,EAAE,YAAY,CAAC;QACpB,yCAAyC;QACzC,iBAAiB,CAAC,EAAE,eAAe,CAAC;QACpC,mFAAmF;QACnF,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB;IASD;;;;;OAKG;IACG,wBAAwB,CAAC,EAC7B,yBAAgC,EAChC,YAAoC,EACpC,eAAe,EACf,eAAe,GAChB,EAAE;QACD,4BAA4B;QAC5B,eAAe,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;QACzC,qEAAqE;QACrE,yBAAyB,CAAC,EAAE,OAAO,CAAC;QACpC,+BAA+B;QAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,8DAA8D;QAC9D,eAAe,CAAC,EAAE,OAAO,CAAC;KAC3B,GAAG,OAAO,CAAC,CAAC,MAAM,EAAE,OAAO,KAAK,MAAM,CAAC;IA4GxC;;;;;OAKG;IACH,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC;CAM1D"}
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.TranscendAiPrompt = exports.BUSINESS_ENTITIES_PREFIX = exports.EXPECTED_ATTRIBUTE_PREFIX = void 0;
|
|
7
|
-
const type_utils_1 = require("@transcend-io/type-utils");
|
|
8
|
-
const privacy_types_1 = require("@transcend-io/privacy-types");
|
|
9
|
-
const fetchAssessments_1 = require("../graphql/fetchAssessments");
|
|
10
|
-
const constants_1 = require("../constants");
|
|
11
|
-
const graphql_1 = require("../graphql");
|
|
12
|
-
const handlebars_utils_1 = require("@transcend-io/handlebars-utils");
|
|
13
|
-
const camelCase_1 = __importDefault(require("lodash/camelCase"));
|
|
14
|
-
const keyBy_1 = __importDefault(require("lodash/keyBy"));
|
|
15
|
-
exports.EXPECTED_ATTRIBUTE_PREFIX = 'attribute-';
|
|
16
|
-
exports.BUSINESS_ENTITIES_PREFIX = 'businessEntities-';
|
|
17
|
-
/**
|
|
18
|
-
* Define an AI prompt that can be loaded from Transcend
|
|
19
|
-
*/
|
|
20
|
-
class TranscendAiPrompt {
|
|
21
|
-
/**
|
|
22
|
-
* Constructor
|
|
23
|
-
*
|
|
24
|
-
* @param options - Options
|
|
25
|
-
*/
|
|
26
|
-
constructor({ title, codec, extractFromTag, handlebarsOptions, }) {
|
|
27
|
-
this.title = title;
|
|
28
|
-
this.codec = codec;
|
|
29
|
-
this.handlebars = (0, handlebars_utils_1.createHandlebarsWithHelpers)(handlebarsOptions);
|
|
30
|
-
this.extractFromTagRegex = extractFromTag
|
|
31
|
-
? new RegExp(`<${extractFromTag}>([\\s\\S]+?)<\\/${extractFromTag}>`)
|
|
32
|
-
: undefined;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Fetch prompt from Transcend
|
|
36
|
-
*
|
|
37
|
-
* @param options - Additional options
|
|
38
|
-
* @returns A function that can be used to call the prompt
|
|
39
|
-
*/
|
|
40
|
-
async fetchPromptFromTranscend({ fillTemplateFromInventory = true, transcendUrl = constants_1.DEFAULT_TRANSCEND_API, transcendApiKey, requireApproval, }) {
|
|
41
|
-
// construct GraphQL client
|
|
42
|
-
const client = (0, graphql_1.buildTranscendGraphQLClient)(transcendUrl, typeof transcendApiKey === 'string'
|
|
43
|
-
? transcendApiKey
|
|
44
|
-
: transcendApiKey.release());
|
|
45
|
-
// Fetch the assessments
|
|
46
|
-
const assessments = await (0, fetchAssessments_1.fetchAllAssessments)(client, { text: this.title });
|
|
47
|
-
// Ensure assessment exists with specified title
|
|
48
|
-
const assessment = assessments.find((row) => row.title === this.title);
|
|
49
|
-
if (!assessment) {
|
|
50
|
-
throw new Error(`Failed to find assessment with title: "${this.title}"`);
|
|
51
|
-
}
|
|
52
|
-
// Ensure assessment is approved
|
|
53
|
-
if (requireApproval && assessment.status !== privacy_types_1.AssessmentStatus.Approved) {
|
|
54
|
-
throw new Error(`Assessment "${this.title}" cannot be used because its in status: "${assessment.status}"`);
|
|
55
|
-
}
|
|
56
|
-
// If assessment is rejected, throw error
|
|
57
|
-
if (assessment.status === privacy_types_1.AssessmentStatus.Rejected) {
|
|
58
|
-
throw new Error(`Assessment "${this.title}" cannot be used because it's in status: "${assessment.status}"`);
|
|
59
|
-
}
|
|
60
|
-
// Template attributes into the template string
|
|
61
|
-
let extraParams = {};
|
|
62
|
-
// Template in attributes
|
|
63
|
-
if (fillTemplateFromInventory) {
|
|
64
|
-
// pull out the variables from the handlebar string
|
|
65
|
-
const schema = (0, handlebars_utils_1.getVariablesFromHandlebarsTemplate)(assessment.content);
|
|
66
|
-
// pull out the attributes to fetch
|
|
67
|
-
const attributeToFetch = Object.keys(schema).filter((key) => key.startsWith(exports.EXPECTED_ATTRIBUTE_PREFIX));
|
|
68
|
-
// Fetch attributes if there are template variables to fill
|
|
69
|
-
if (attributeToFetch.length > 0) {
|
|
70
|
-
// TODO: https://transcend.height.app/T-29886 - only fetch attributes needed
|
|
71
|
-
const attributeKeys = await (0, graphql_1.fetchAllAttributes)(client);
|
|
72
|
-
const attributeKeysAsCamel = attributeKeys.map((key) => ({
|
|
73
|
-
...key,
|
|
74
|
-
camelName: (0, camelCase_1.default)(key.name),
|
|
75
|
-
}));
|
|
76
|
-
const lookupAttributeKey = (0, keyBy_1.default)(attributeKeysAsCamel, 'camelName');
|
|
77
|
-
attributeToFetch.forEach((attributeNameWithPrefix) => {
|
|
78
|
-
const attributeName = attributeNameWithPrefix.replace(exports.EXPECTED_ATTRIBUTE_PREFIX, '');
|
|
79
|
-
const existingAttribute = lookupAttributeKey[attributeName];
|
|
80
|
-
if (!existingAttribute) {
|
|
81
|
-
throw new Error(`Failed to find attribute with name: "${attributeName}"`);
|
|
82
|
-
}
|
|
83
|
-
extraParams[attributeNameWithPrefix] = existingAttribute;
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
// pull out the attributes to fetch
|
|
87
|
-
const businessEntitiesToFetch = Object.keys(schema).filter((key) => key.startsWith(exports.BUSINESS_ENTITIES_PREFIX));
|
|
88
|
-
// Fetch business entities if there are template variables to fill
|
|
89
|
-
if (businessEntitiesToFetch.length > 0) {
|
|
90
|
-
// TODO: https://transcend.height.app/T-29886 - only fetch business needed
|
|
91
|
-
// and find a way to template when multiple entities
|
|
92
|
-
const businessEntities = await (0, graphql_1.fetchAllBusinessEntities)(client);
|
|
93
|
-
const businessEntity = businessEntities[0];
|
|
94
|
-
if (businessEntity) {
|
|
95
|
-
extraParams = {
|
|
96
|
-
...extraParams,
|
|
97
|
-
...Object.entries(businessEntity).reduce((acc, [key, value]) => Object.assign(acc, { [`businessEntities-${key}`]: value }), {}),
|
|
98
|
-
};
|
|
99
|
-
extraParams.dataProtectionOfficerName =
|
|
100
|
-
businessEntity.dataProtectionOfficerName;
|
|
101
|
-
extraParams.dataProtectionOfficerEmail =
|
|
102
|
-
businessEntity.dataProtectionOfficerEmail;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
// Return function that can compile template with attributes
|
|
107
|
-
// and provided parameters
|
|
108
|
-
return (params) => this.handlebars.compile(assessment.content)({
|
|
109
|
-
// template in currentDate by default
|
|
110
|
-
currentDate: new Date().toISOString(),
|
|
111
|
-
...extraParams,
|
|
112
|
-
...params,
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Validate the shape of the response from AI
|
|
117
|
-
*
|
|
118
|
-
* @param response - AI response as string
|
|
119
|
-
* @returns Parsed content
|
|
120
|
-
*/
|
|
121
|
-
parseAiResponse(response) {
|
|
122
|
-
const extracted = this.extractFromTagRegex
|
|
123
|
-
? (this.extractFromTagRegex.exec(response) || [])[1] || response
|
|
124
|
-
: response;
|
|
125
|
-
return (0, type_utils_1.decodeCodec)(this.codec, extracted);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
exports.TranscendAiPrompt = TranscendAiPrompt;
|
|
129
|
-
//# sourceMappingURL=TranscendAiPrompt.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TranscendAiPrompt.js","sourceRoot":"","sources":["../../src/ai/TranscendAiPrompt.ts"],"names":[],"mappings":";;;;;;AAAA,yDAAoE;AAEpE,+DA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C;iBAC7C;aACF;SACF;QAED,4DAA4D;QAC5D,0BAA0B;QAC1B,OAAO,CAAC,MAAM,EAAE,EAAE,CAChB,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;YAC1C,qCAAqC;YACrC,WAAW,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACrC,GAAG,WAAW;YACd,GAAG,MAAM;SACV,CAAC,CAAC;IACP,CAAC;IAED;;;;;OAKG;IACH,eAAe,CAAC,QAAgB;QAC9B,MAAM,SAAS,GAAG,IAAI,CAAC,mBAAmB;YACxC,CAAC,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,QAAQ;YAChE,CAAC,CAAC,QAAQ,CAAC;QACb,OAAO,IAAA,wBAAW,EAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;IAC5C,CAAC;CACF;AAxLD,8CAwLC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TranscendAiPrompt.test.d.ts","sourceRoot":"","sources":["../../src/tests/TranscendAiPrompt.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TranscendAiPrompt.test.js","sourceRoot":"","sources":["../../src/tests/TranscendAiPrompt.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA8B;AAC9B,yCAA2B;AAC3B,+DAA4D;AAE5D,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IACjC,MAAM,QAAQ,GAAG,IAAI,qCAAiB,CAAC;QACrC,KAAK,EAAE,MAAM;QACb,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;QACxB,cAAc,EAAE,MAAM;KACvB,CAAC,CAAC;IAEH,MAAM,SAAS,GAAG;;;;;;;CAOnB,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