@sweetoburrito/backstage-plugin-ai-assistant-node 0.0.0-snapshot-20251029150521
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 +5 -0
- package/dist/extensions.cjs.js +22 -0
- package/dist/extensions.cjs.js.map +1 -0
- package/dist/index.cjs.js +18 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +106 -0
- package/dist/utils/encrypt.cjs.js +32 -0
- package/dist/utils/encrypt.cjs.js.map +1 -0
- package/dist/utils/stream-to-string.cjs.js +24 -0
- package/dist/utils/stream-to-string.cjs.js.map +1 -0
- package/dist/utils/tool.cjs.js +8 -0
- package/dist/utils/tool.cjs.js.map +1 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var backendPluginApi = require('@backstage/backend-plugin-api');
|
|
4
|
+
|
|
5
|
+
const dataIngestorExtensionPoint = backendPluginApi.createExtensionPoint({
|
|
6
|
+
id: "ai-assistant.data-ingestor"
|
|
7
|
+
});
|
|
8
|
+
const embeddingsProviderExtensionPoint = backendPluginApi.createExtensionPoint({
|
|
9
|
+
id: "ai-assistant.embeddings-provider"
|
|
10
|
+
});
|
|
11
|
+
const modelProviderExtensionPoint = backendPluginApi.createExtensionPoint({
|
|
12
|
+
id: "ai-assistant.model-provider"
|
|
13
|
+
});
|
|
14
|
+
const toolExtensionPoint = backendPluginApi.createExtensionPoint({
|
|
15
|
+
id: "ai-assistant.tool"
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
exports.dataIngestorExtensionPoint = dataIngestorExtensionPoint;
|
|
19
|
+
exports.embeddingsProviderExtensionPoint = embeddingsProviderExtensionPoint;
|
|
20
|
+
exports.modelProviderExtensionPoint = modelProviderExtensionPoint;
|
|
21
|
+
exports.toolExtensionPoint = toolExtensionPoint;
|
|
22
|
+
//# sourceMappingURL=extensions.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extensions.cjs.js","sources":["../src/extensions.ts"],"sourcesContent":["import { createExtensionPoint } from '@backstage/backend-plugin-api';\nimport { Ingestor } from './types/ingestor';\nimport { Embeddings } from '@langchain/core/embeddings';\nimport { BaseChatModel } from '@langchain/core/language_models/chat_models';\nimport { Tool } from './types';\nimport { ZodType } from 'zod';\n\nexport type DataIngestorExtensionPoint = {\n registerIngestor: (ingestor: Ingestor) => void;\n};\n\nexport const dataIngestorExtensionPoint =\n createExtensionPoint<DataIngestorExtensionPoint>({\n id: 'ai-assistant.data-ingestor',\n });\n\nexport type EmbeddingsProvider = {\n getEmbeddings: () => Promise<Omit<Embeddings, 'caller'>>;\n};\n\nexport type EmbeddingsProviderExtensionPoint = {\n register: (provider: EmbeddingsProvider) => void;\n};\n\nexport const embeddingsProviderExtensionPoint =\n createExtensionPoint<EmbeddingsProviderExtensionPoint>({\n id: 'ai-assistant.embeddings-provider',\n });\n\nexport type Model = {\n id: string;\n chatModel: BaseChatModel;\n};\n\nexport type ModelProviderExtensionPoint = {\n register: (model: Model) => void;\n};\n\nexport const modelProviderExtensionPoint =\n createExtensionPoint<ModelProviderExtensionPoint>({\n id: 'ai-assistant.model-provider',\n });\n\nexport type ToolExtensionPoint = {\n register: (tool: Tool<ZodType>) => void;\n};\n\nexport const toolExtensionPoint = createExtensionPoint<ToolExtensionPoint>({\n id: 'ai-assistant.tool',\n});\n"],"names":["createExtensionPoint"],"mappings":";;;;AAWO,MAAM,6BACXA,qCAAA,CAAiD;AAAA,EAC/C,EAAA,EAAI;AACN,CAAC;AAUI,MAAM,mCACXA,qCAAA,CAAuD;AAAA,EACrD,EAAA,EAAI;AACN,CAAC;AAWI,MAAM,8BACXA,qCAAA,CAAkD;AAAA,EAChD,EAAA,EAAI;AACN,CAAC;AAMI,MAAM,qBAAqBA,qCAAA,CAAyC;AAAA,EACzE,EAAA,EAAI;AACN,CAAC;;;;;;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var extensions = require('./extensions.cjs.js');
|
|
4
|
+
var tool = require('./utils/tool.cjs.js');
|
|
5
|
+
var streamToString = require('./utils/stream-to-string.cjs.js');
|
|
6
|
+
var encrypt = require('./utils/encrypt.cjs.js');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.dataIngestorExtensionPoint = extensions.dataIngestorExtensionPoint;
|
|
11
|
+
exports.embeddingsProviderExtensionPoint = extensions.embeddingsProviderExtensionPoint;
|
|
12
|
+
exports.modelProviderExtensionPoint = extensions.modelProviderExtensionPoint;
|
|
13
|
+
exports.toolExtensionPoint = extensions.toolExtensionPoint;
|
|
14
|
+
exports.createAssistantTool = tool.createAssistantTool;
|
|
15
|
+
exports.streamToString = streamToString.streamToString;
|
|
16
|
+
exports.decrypt = encrypt.decrypt;
|
|
17
|
+
exports.encrypt = encrypt.encrypt;
|
|
18
|
+
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
|
|
2
|
+
import { LoggerService, RootConfigService, SchedulerService } from '@backstage/backend-plugin-api';
|
|
3
|
+
import { Embeddings } from '@langchain/core/embeddings';
|
|
4
|
+
import { ZodType, z } from 'zod';
|
|
5
|
+
import { BaseChatModel } from '@langchain/core/language_models/chat_models';
|
|
6
|
+
|
|
7
|
+
type EmbeddingsSource = string;
|
|
8
|
+
/**
|
|
9
|
+
* Metadata that is required for each document to be embedded.
|
|
10
|
+
* - `source`: The source of the document, e.g. 'github', 'azure-devops', etc.
|
|
11
|
+
* - `id`: A unique identifier for the document within the source. Does not necessarily need to be globally unique or a UUID.
|
|
12
|
+
* Additional metadata can be added as needed.
|
|
13
|
+
*/
|
|
14
|
+
type EmbeddingDocumentMetadata = {
|
|
15
|
+
source: EmbeddingsSource;
|
|
16
|
+
id: string;
|
|
17
|
+
[key: string]: string;
|
|
18
|
+
};
|
|
19
|
+
type Embedding = {
|
|
20
|
+
metadata: EmbeddingDocumentMetadata;
|
|
21
|
+
content: string;
|
|
22
|
+
vector: number[];
|
|
23
|
+
id: string;
|
|
24
|
+
};
|
|
25
|
+
type EmbeddingDocument = {
|
|
26
|
+
metadata: EmbeddingDocumentMetadata;
|
|
27
|
+
content: string;
|
|
28
|
+
};
|
|
29
|
+
type DeletionParams = {
|
|
30
|
+
ids?: string[];
|
|
31
|
+
filter?: Partial<EmbeddingDocumentMetadata>;
|
|
32
|
+
};
|
|
33
|
+
interface VectorStore {
|
|
34
|
+
connectEmbeddings(embeddings: Embeddings): void;
|
|
35
|
+
addDocuments(docs: EmbeddingDocument[]): Promise<void>;
|
|
36
|
+
deleteDocuments(deletionParams: DeletionParams): Promise<void>;
|
|
37
|
+
similaritySearch(query: string, filter?: Partial<EmbeddingDocumentMetadata>, amount?: number): Promise<EmbeddingDocument[]>;
|
|
38
|
+
}
|
|
39
|
+
type EntityFilterShape = Record<string, string | symbol | (string | symbol)[]>[] | Record<string, string | symbol | (string | symbol)[]> | undefined;
|
|
40
|
+
interface AugmentationIndexer {
|
|
41
|
+
vectorStore: VectorStore;
|
|
42
|
+
createEmbeddings(source: EmbeddingsSource, filter?: EntityFilterShape): Promise<number>;
|
|
43
|
+
deleteEmbeddings(source: EmbeddingsSource, filter: EntityFilterShape): Promise<void>;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
type IngestorOptions = {
|
|
47
|
+
saveDocumentsBatch: (documents: EmbeddingDocument[]) => Promise<void>;
|
|
48
|
+
};
|
|
49
|
+
type Ingestor = {
|
|
50
|
+
id: string;
|
|
51
|
+
ingest: (options: IngestorOptions) => Promise<EmbeddingDocument[] | void>;
|
|
52
|
+
};
|
|
53
|
+
type DataIngestionPipelineOptions = {
|
|
54
|
+
logger: LoggerService;
|
|
55
|
+
config: RootConfigService;
|
|
56
|
+
scheduler: SchedulerService;
|
|
57
|
+
vectorStore: VectorStore;
|
|
58
|
+
ingestors: Ingestor[];
|
|
59
|
+
};
|
|
60
|
+
type DataIngestionPipeline = {
|
|
61
|
+
start: () => Promise<void>;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
type Tool<T extends ZodType<any, any, any> = ZodType<any, any, any>> = {
|
|
65
|
+
name: string;
|
|
66
|
+
description: string;
|
|
67
|
+
schema: T;
|
|
68
|
+
func: (params: z.infer<T>) => Promise<string>;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
type DataIngestorExtensionPoint = {
|
|
72
|
+
registerIngestor: (ingestor: Ingestor) => void;
|
|
73
|
+
};
|
|
74
|
+
declare const dataIngestorExtensionPoint: _backstage_backend_plugin_api.ExtensionPoint<DataIngestorExtensionPoint>;
|
|
75
|
+
type EmbeddingsProvider = {
|
|
76
|
+
getEmbeddings: () => Promise<Omit<Embeddings, 'caller'>>;
|
|
77
|
+
};
|
|
78
|
+
type EmbeddingsProviderExtensionPoint = {
|
|
79
|
+
register: (provider: EmbeddingsProvider) => void;
|
|
80
|
+
};
|
|
81
|
+
declare const embeddingsProviderExtensionPoint: _backstage_backend_plugin_api.ExtensionPoint<EmbeddingsProviderExtensionPoint>;
|
|
82
|
+
type Model = {
|
|
83
|
+
id: string;
|
|
84
|
+
chatModel: BaseChatModel;
|
|
85
|
+
};
|
|
86
|
+
type ModelProviderExtensionPoint = {
|
|
87
|
+
register: (model: Model) => void;
|
|
88
|
+
};
|
|
89
|
+
declare const modelProviderExtensionPoint: _backstage_backend_plugin_api.ExtensionPoint<ModelProviderExtensionPoint>;
|
|
90
|
+
type ToolExtensionPoint = {
|
|
91
|
+
register: (tool: Tool<ZodType>) => void;
|
|
92
|
+
};
|
|
93
|
+
declare const toolExtensionPoint: _backstage_backend_plugin_api.ExtensionPoint<ToolExtensionPoint>;
|
|
94
|
+
|
|
95
|
+
type CreateAssistantToolOptions<T extends ZodType<any, any, any>> = {
|
|
96
|
+
tool: Tool<T>;
|
|
97
|
+
};
|
|
98
|
+
declare const createAssistantTool: <T extends ZodType<any, any, any>>(options: CreateAssistantToolOptions<T>) => Tool<T>;
|
|
99
|
+
|
|
100
|
+
declare function streamToString(readableStream: NodeJS.ReadableStream | null): Promise<string>;
|
|
101
|
+
|
|
102
|
+
declare const encrypt: (text: string, key: string) => string;
|
|
103
|
+
declare const decrypt: (encryptedText: string, key: string) => string;
|
|
104
|
+
|
|
105
|
+
export { createAssistantTool, dataIngestorExtensionPoint, decrypt, embeddingsProviderExtensionPoint, encrypt, modelProviderExtensionPoint, streamToString, toolExtensionPoint };
|
|
106
|
+
export type { AugmentationIndexer, DataIngestionPipeline, DataIngestionPipelineOptions, DataIngestorExtensionPoint, Embedding, EmbeddingDocument, EmbeddingDocumentMetadata, EmbeddingsProvider, EmbeddingsProviderExtensionPoint, EmbeddingsSource, EntityFilterShape, Ingestor, IngestorOptions, Model, ModelProviderExtensionPoint, Tool, ToolExtensionPoint, VectorStore };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var crypto = require('crypto');
|
|
4
|
+
|
|
5
|
+
const normalizeKey = (key) => {
|
|
6
|
+
return crypto.createHash("sha256").update(key).digest();
|
|
7
|
+
};
|
|
8
|
+
const encrypt = (text, key) => {
|
|
9
|
+
const iv = crypto.randomBytes(16);
|
|
10
|
+
const normalizedKey = normalizeKey(key);
|
|
11
|
+
const cipher = crypto.createCipheriv("aes-256-gcm", normalizedKey, iv);
|
|
12
|
+
let encrypted = cipher.update(text, "utf8", "hex");
|
|
13
|
+
encrypted += cipher.final("hex");
|
|
14
|
+
const authTag = cipher.getAuthTag();
|
|
15
|
+
return `${iv.toString("hex")}:${encrypted}:${authTag.toString("hex")}`;
|
|
16
|
+
};
|
|
17
|
+
const decrypt = (encryptedText, key) => {
|
|
18
|
+
const parts = encryptedText.split(":");
|
|
19
|
+
const iv = Buffer.from(parts[0], "hex");
|
|
20
|
+
const encrypted = parts[1];
|
|
21
|
+
const authTag = Buffer.from(parts[2], "hex");
|
|
22
|
+
const normalizedKey = normalizeKey(key);
|
|
23
|
+
const decipher = crypto.createDecipheriv("aes-256-gcm", normalizedKey, iv);
|
|
24
|
+
decipher.setAuthTag(authTag);
|
|
25
|
+
let decrypted = decipher.update(encrypted, "hex", "utf8");
|
|
26
|
+
decrypted += decipher.final("utf8");
|
|
27
|
+
return decrypted;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
exports.decrypt = decrypt;
|
|
31
|
+
exports.encrypt = encrypt;
|
|
32
|
+
//# sourceMappingURL=encrypt.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encrypt.cjs.js","sources":["../../src/utils/encrypt.ts"],"sourcesContent":["import {\n createCipheriv,\n createDecipheriv,\n randomBytes,\n createHash,\n} from 'crypto';\n\nconst normalizeKey = (key: string): Buffer => {\n // Hash the key to ensure it's always 32 bytes for AES-256\n return createHash('sha256').update(key).digest();\n};\n\nexport const encrypt = (text: string, key: string): string => {\n const iv = randomBytes(16);\n const normalizedKey = normalizeKey(key);\n const cipher = createCipheriv('aes-256-gcm', normalizedKey, iv);\n let encrypted = cipher.update(text, 'utf8', 'hex');\n encrypted += cipher.final('hex');\n const authTag = cipher.getAuthTag();\n return `${iv.toString('hex')}:${encrypted}:${authTag.toString('hex')}`;\n};\n\nexport const decrypt = (encryptedText: string, key: string): string => {\n const parts = encryptedText.split(':');\n const iv = Buffer.from(parts[0], 'hex');\n const encrypted = parts[1];\n const authTag = Buffer.from(parts[2], 'hex');\n const normalizedKey = normalizeKey(key);\n const decipher = createDecipheriv('aes-256-gcm', normalizedKey, iv);\n decipher.setAuthTag(authTag);\n let decrypted = decipher.update(encrypted, 'hex', 'utf8');\n decrypted += decipher.final('utf8');\n return decrypted;\n};\n"],"names":["createHash","randomBytes","createCipheriv","createDecipheriv"],"mappings":";;;;AAOA,MAAM,YAAA,GAAe,CAAC,GAAA,KAAwB;AAE5C,EAAA,OAAOA,kBAAW,QAAQ,CAAA,CAAE,MAAA,CAAO,GAAG,EAAE,MAAA,EAAO;AACjD,CAAA;AAEO,MAAM,OAAA,GAAU,CAAC,IAAA,EAAc,GAAA,KAAwB;AAC5D,EAAA,MAAM,EAAA,GAAKC,mBAAY,EAAE,CAAA;AACzB,EAAA,MAAM,aAAA,GAAgB,aAAa,GAAG,CAAA;AACtC,EAAA,MAAM,MAAA,GAASC,qBAAA,CAAe,aAAA,EAAe,aAAA,EAAe,EAAE,CAAA;AAC9D,EAAA,IAAI,SAAA,GAAY,MAAA,CAAO,MAAA,CAAO,IAAA,EAAM,QAAQ,KAAK,CAAA;AACjD,EAAA,SAAA,IAAa,MAAA,CAAO,MAAM,KAAK,CAAA;AAC/B,EAAA,MAAM,OAAA,GAAU,OAAO,UAAA,EAAW;AAClC,EAAA,OAAO,CAAA,EAAG,EAAA,CAAG,QAAA,CAAS,KAAK,CAAC,CAAA,CAAA,EAAI,SAAS,CAAA,CAAA,EAAI,OAAA,CAAQ,QAAA,CAAS,KAAK,CAAC,CAAA,CAAA;AACtE;AAEO,MAAM,OAAA,GAAU,CAAC,aAAA,EAAuB,GAAA,KAAwB;AACrE,EAAA,MAAM,KAAA,GAAQ,aAAA,CAAc,KAAA,CAAM,GAAG,CAAA;AACrC,EAAA,MAAM,KAAK,MAAA,CAAO,IAAA,CAAK,KAAA,CAAM,CAAC,GAAG,KAAK,CAAA;AACtC,EAAA,MAAM,SAAA,GAAY,MAAM,CAAC,CAAA;AACzB,EAAA,MAAM,UAAU,MAAA,CAAO,IAAA,CAAK,KAAA,CAAM,CAAC,GAAG,KAAK,CAAA;AAC3C,EAAA,MAAM,aAAA,GAAgB,aAAa,GAAG,CAAA;AACtC,EAAA,MAAM,QAAA,GAAWC,uBAAA,CAAiB,aAAA,EAAe,aAAA,EAAe,EAAE,CAAA;AAClE,EAAA,QAAA,CAAS,WAAW,OAAO,CAAA;AAC3B,EAAA,IAAI,SAAA,GAAY,QAAA,CAAS,MAAA,CAAO,SAAA,EAAW,OAAO,MAAM,CAAA;AACxD,EAAA,SAAA,IAAa,QAAA,CAAS,MAAM,MAAM,CAAA;AAClC,EAAA,OAAO,SAAA;AACT;;;;;"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
async function streamToString(readableStream) {
|
|
4
|
+
if (!readableStream) {
|
|
5
|
+
return "";
|
|
6
|
+
}
|
|
7
|
+
return new Promise((resolve, reject) => {
|
|
8
|
+
const chunks = [];
|
|
9
|
+
readableStream.on("data", (chunk) => {
|
|
10
|
+
if (typeof chunk === "string") {
|
|
11
|
+
chunks.push(Buffer.from(chunk, "utf-8"));
|
|
12
|
+
} else {
|
|
13
|
+
chunks.push(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk));
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
readableStream.on("end", () => {
|
|
17
|
+
resolve(Buffer.concat(chunks).toString("utf-8"));
|
|
18
|
+
});
|
|
19
|
+
readableStream.on("error", reject);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
exports.streamToString = streamToString;
|
|
24
|
+
//# sourceMappingURL=stream-to-string.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stream-to-string.cjs.js","sources":["../../src/utils/stream-to-string.ts"],"sourcesContent":["export async function streamToString(\n readableStream: NodeJS.ReadableStream | null,\n): Promise<string> {\n if (!readableStream) {\n return '';\n }\n return new Promise((resolve, reject) => {\n const chunks: Buffer[] = [];\n readableStream.on('data', chunk => {\n if (typeof chunk === 'string') {\n chunks.push(Buffer.from(chunk, 'utf-8'));\n } else {\n chunks.push(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk));\n }\n });\n readableStream.on('end', () => {\n resolve(Buffer.concat(chunks).toString('utf-8'));\n });\n readableStream.on('error', reject);\n });\n}\n"],"names":[],"mappings":";;AAAA,eAAsB,eACpB,cAAA,EACiB;AACjB,EAAA,IAAI,CAAC,cAAA,EAAgB;AACnB,IAAA,OAAO,EAAA;AAAA,EACT;AACA,EAAA,OAAO,IAAI,OAAA,CAAQ,CAAC,OAAA,EAAS,MAAA,KAAW;AACtC,IAAA,MAAM,SAAmB,EAAC;AAC1B,IAAA,cAAA,CAAe,EAAA,CAAG,QAAQ,CAAA,KAAA,KAAS;AACjC,MAAA,IAAI,OAAO,UAAU,QAAA,EAAU;AAC7B,QAAA,MAAA,CAAO,IAAA,CAAK,MAAA,CAAO,IAAA,CAAK,KAAA,EAAO,OAAO,CAAC,CAAA;AAAA,MACzC,CAAA,MAAO;AACL,QAAA,MAAA,CAAO,IAAA,CAAK,OAAO,QAAA,CAAS,KAAK,IAAI,KAAA,GAAQ,MAAA,CAAO,IAAA,CAAK,KAAK,CAAC,CAAA;AAAA,MACjE;AAAA,IACF,CAAC,CAAA;AACD,IAAA,cAAA,CAAe,EAAA,CAAG,OAAO,MAAM;AAC7B,MAAA,OAAA,CAAQ,OAAO,MAAA,CAAO,MAAM,CAAA,CAAE,QAAA,CAAS,OAAO,CAAC,CAAA;AAAA,IACjD,CAAC,CAAA;AACD,IAAA,cAAA,CAAe,EAAA,CAAG,SAAS,MAAM,CAAA;AAAA,EACnC,CAAC,CAAA;AACH;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool.cjs.js","sources":["../../src/utils/tool.ts"],"sourcesContent":["import { ZodType } from 'zod';\nimport { Tool } from '../types';\n\ntype CreateAssistantToolOptions<T extends ZodType<any, any, any>> = {\n tool: Tool<T>;\n};\n\nexport const createAssistantTool = <T extends ZodType<any, any, any>>(\n options: CreateAssistantToolOptions<T>,\n) => {\n return options.tool;\n};\n"],"names":[],"mappings":";;AAOO,MAAM,mBAAA,GAAsB,CACjC,OAAA,KACG;AACH,EAAA,OAAO,OAAA,CAAQ,IAAA;AACjB;;;;"}
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sweetoburrito/backstage-plugin-ai-assistant-node",
|
|
3
|
+
"version": "0.0.0-snapshot-20251029150521",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"description": "Node.js library for the ai-assistant plugin",
|
|
6
|
+
"main": "dist/index.cjs.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public",
|
|
10
|
+
"main": "dist/index.cjs.js",
|
|
11
|
+
"types": "dist/index.d.ts"
|
|
12
|
+
},
|
|
13
|
+
"backstage": {
|
|
14
|
+
"role": "node-library",
|
|
15
|
+
"pluginId": "ai-assistant",
|
|
16
|
+
"pluginPackages": [
|
|
17
|
+
"@sweetoburrito/backstage-plugin-ai-assistant",
|
|
18
|
+
"@sweetoburrito/backstage-plugin-ai-assistant-backend",
|
|
19
|
+
"@sweetoburrito/backstage-plugin-ai-assistant-common",
|
|
20
|
+
"@sweetoburrito/backstage-plugin-ai-assistant-node"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "backstage-cli package build",
|
|
25
|
+
"lint": "backstage-cli package lint",
|
|
26
|
+
"test": "backstage-cli package test",
|
|
27
|
+
"clean": "backstage-cli package clean",
|
|
28
|
+
"prepack": "backstage-cli package prepack",
|
|
29
|
+
"postpack": "backstage-cli package postpack"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@backstage/cli": "backstage:^"
|
|
33
|
+
},
|
|
34
|
+
"files": [
|
|
35
|
+
"dist"
|
|
36
|
+
],
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@backstage/backend-plugin-api": "backstage:^",
|
|
39
|
+
"@langchain/core": "^0.3.72",
|
|
40
|
+
"zod": "^4.1.11"
|
|
41
|
+
},
|
|
42
|
+
"typesVersions": {
|
|
43
|
+
"*": {
|
|
44
|
+
"package.json": [
|
|
45
|
+
"package.json"
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|