junr-test1-plugin-minimax 0.0.2 → 0.0.4

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/dist/index.d.ts CHANGED
@@ -1,18 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import type { XpertPlugin } from '@xpert-ai/plugin-sdk';
3
- declare const ConfigSchema: z.ZodObject<{
4
- api_key: z.ZodString;
5
- group_id: z.ZodString;
6
- base_url: z.ZodOptional<z.ZodString>;
7
- }, "strip", z.ZodTypeAny, {
8
- api_key?: string;
9
- group_id?: string;
10
- base_url?: string;
11
- }, {
12
- api_key?: string;
13
- group_id?: string;
14
- base_url?: string;
15
- }>;
3
+ declare const ConfigSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
16
4
  declare const plugin: XpertPlugin<z.infer<typeof ConfigSchema>>;
17
5
  export { ConfigSchema };
18
6
  export default plugin;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAOxD,QAAA,MAAM,YAAY;;;;;;;;;;;;EAIhB,CAAC;AAQH,QAAA,MAAM,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAsBrD,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAUxD,QAAA,MAAM,YAAY,gDAAe,CAAC;AAQlC,QAAA,MAAM,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAsBrD,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,eAAe,MAAM,CAAC"}
package/dist/index.js CHANGED
@@ -1,13 +1,12 @@
1
1
  import { readFileSync } from 'fs';
2
- import { join } from 'path';
2
+ import { dirname, join } from 'path';
3
+ import { fileURLToPath } from 'url';
3
4
  import { z } from 'zod';
4
5
  import { MiniMaxModule } from './minimax.module.js';
5
- const pkg = JSON.parse(readFileSync(join(process.cwd(), 'package.json'), 'utf8'));
6
- const ConfigSchema = z.object({
7
- api_key: z.string().min(1, 'API Key is required'),
8
- group_id: z.string().min(1, 'Group ID is required'),
9
- base_url: z.string().url().optional().describe('Optional base URL, defaults to https://api.minimaxi.com')
10
- });
6
+ const __filename = fileURLToPath(import.meta.url);
7
+ const __dirname = dirname(__filename);
8
+ const pkg = JSON.parse(readFileSync(join(__dirname, '../package.json'), 'utf8'));
9
+ const ConfigSchema = z.object({});
11
10
  const SvgIcon = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
12
11
  <rect width="24" height="24" rx="6" fill="#111827"/>
13
12
  <path d="M12 4C12 4 8 8 8 12C8 16 12 20 12 20C12 20 16 16 16 12C16 8 12 4 12 4Z" fill="white" fill-opacity="0.88"/>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "junr-test1-plugin-minimax",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "MiniMax AI model plugin for XpertAI platform",
5
5
  "author": {
6
6
  "name": "XpertAI",
@@ -36,13 +36,16 @@
36
36
  "prepack": "node ./scripts/copy-assets.mjs"
37
37
  },
38
38
  "peerDependencies": {
39
+ "@langchain/core": "^0.3.72",
40
+ "@langchain/openai": "^0.6.9",
39
41
  "@metad/contracts": "^3.7.0",
40
42
  "@nestjs/common": "^11.1.6",
41
43
  "@nestjs/config": "^4.0.2",
42
44
  "@xpert-ai/plugin-sdk": "^3.7.1",
43
- "@langchain/core": "^0.3.72",
44
- "@langchain/openai": "^0.6.9",
45
- "zod": "^3.22.4",
46
- "tslib": "^2.6.2"
45
+ "tslib": "^2.6.2",
46
+ "zod": "^3.22.4"
47
+ },
48
+ "dependencies": {
49
+ "junr-test1-plugin-minimax": "^0.0.2"
47
50
  }
48
- }
51
+ }