@eraserlabs/eraser-mcp 0.4.0 → 0.5.0

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.
@@ -52,10 +52,12 @@ export declare const renderPromptSchema: z.ZodObject<{
52
52
  standard: "standard";
53
53
  premium: "premium";
54
54
  }>>;
55
- git: z.ZodOptional<z.ZodObject<{
55
+ gitContexts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
56
+ publicRepoUrl: z.ZodString;
57
+ }, z.core.$strip>, z.ZodObject<{
56
58
  repoName: z.ZodString;
57
59
  orgName: z.ZodString;
58
- }, z.core.$strip>>;
60
+ }, z.core.$strip>]>>>;
59
61
  }, z.core.$loose>;
60
62
  export type RenderPromptInput = z.infer<typeof renderPromptSchema>;
61
63
  //# sourceMappingURL=renderPrompt.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderPrompt.d.ts","sourceRoot":"","sources":["../../src/schemas/renderPrompt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUf,CAAC;AAEjB,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
1
+ {"version":3,"file":"renderPrompt.d.ts","sourceRoot":"","sources":["../../src/schemas/renderPrompt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUf,CAAC;AAEjB,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -11,6 +11,6 @@ exports.renderPromptSchema = shared_1.renderOptionsSchema
11
11
  attachments: zod_1.z.array(zod_1.z.unknown()).optional(),
12
12
  contextId: zod_1.z.string().optional().describe('ID of an AI preset belonging to the team.'),
13
13
  mode: zod_1.z.enum(shared_1.aiModeSettings).optional(),
14
- git: shared_1.gitRepoSchema.optional(),
14
+ gitContexts: zod_1.z.array(shared_1.gitRepoSchema).optional().describe('Git repository contexts for diagram generation. Supports one or more repositories.'),
15
15
  })
16
16
  .passthrough();
@@ -38,10 +38,12 @@ export declare const diagramElementSchema: z.ZodObject<{
38
38
  x: z.ZodOptional<z.ZodNumber>;
39
39
  y: z.ZodOptional<z.ZodNumber>;
40
40
  }, z.core.$strip>;
41
- export declare const gitRepoSchema: z.ZodObject<{
41
+ export declare const gitRepoSchema: z.ZodUnion<readonly [z.ZodObject<{
42
+ publicRepoUrl: z.ZodString;
43
+ }, z.core.$strip>, z.ZodObject<{
42
44
  repoName: z.ZodString;
43
45
  orgName: z.ZodString;
44
- }, z.core.$strip>;
46
+ }, z.core.$strip>]>;
45
47
  export declare const fileOptionsSchema: z.ZodObject<{
46
48
  create: z.ZodOptional<z.ZodBoolean>;
47
49
  linkAccess: z.ZodOptional<z.ZodEnum<{
@@ -1 +1 @@
1
- {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/schemas/shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,eAAO,MAAM,iBAAiB,wCAAyC,CAAC;AACxE,eAAO,MAAM,iBAAiB,4CAA6C,CAAC;AAC5E,eAAO,MAAM,gBAAgB,qCAAsC,CAAC;AACpE,eAAO,MAAM,iBAAiB,0CAA2C,CAAC;AAC1E,eAAO,MAAM,kBAAkB,oIAOrB,CAAC;AACX,eAAO,MAAM,cAAc,kCAAmC,CAAC;AAC/D,eAAO,MAAM,aAAa,4BAA6B,CAAC;AACxD,eAAO,MAAM,kBAAkB,0BAA2B,CAAC;AAE3D;;;GAGG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AAM,cAAc;;;;;;;EAA6B,CAAC;AAEzD,eAAO,MAAM,oBAAoB;;;;;;iBAM/B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;mBAQxB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;iBAG5B,CAAC;AAEH,eAAO,MAAM,kBAAkB,0EAAsD,CAAC;AAEtF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAahB,CAAC;AAGjB,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -42,10 +42,15 @@ exports.diagramElementSchema = zod_1.z.object({
42
42
  x: zod_1.z.number().optional(),
43
43
  y: zod_1.z.number().optional(),
44
44
  });
45
- exports.gitRepoSchema = zod_1.z.object({
46
- repoName: zod_1.z.string().describe('Name of the repository.'),
47
- orgName: zod_1.z.string().describe('Name of the organization.'),
48
- });
45
+ exports.gitRepoSchema = zod_1.z.union([
46
+ zod_1.z.object({
47
+ publicRepoUrl: zod_1.z.string().describe('Full URL of a public GitHub repository (e.g. https://github.com/org/repo).'),
48
+ }),
49
+ zod_1.z.object({
50
+ repoName: zod_1.z.string().describe('Name of the repository.'),
51
+ orgName: zod_1.z.string().describe('Name of the organization.'),
52
+ }),
53
+ ]);
49
54
  exports.fileOptionsSchema = zod_1.z.object({
50
55
  create: zod_1.z.boolean().optional().describe('Whether to create a new file. Defaults to false.'),
51
56
  linkAccess: exports.LinkAccessEnum.optional().describe('Optional link sharing access level. Defaults to using team config.'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eraserlabs/eraser-mcp",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "MCP server for generating diagrams with Eraser.io",
5
5
  "private": false,
6
6
  "main": "dist/index.js",