@swimmingkiim/api-sdk 0.1.6 → 0.1.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swimmingkiim/api-sdk",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/swimmingkiim/a2a-project.git"
@@ -1,9 +0,0 @@
1
- export interface LLMDiscovery {
2
- endpoints: string[];
3
- description?: string;
4
- }
5
- export declare class LLMsReader {
6
- fetchLLMsTxt(url: string): Promise<string>;
7
- extractEndpoints(content: string): LLMDiscovery;
8
- }
9
- //# sourceMappingURL=llms-reader.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"llms-reader.d.ts","sourceRoot":"","sources":["llms-reader.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IACzB,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,qBAAa,UAAU;IACb,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAQhD,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,YAAY;CAgBlD"}
@@ -1,24 +0,0 @@
1
- export class LLMsReader {
2
- async fetchLLMsTxt(url) {
3
- const response = await fetch(url);
4
- if (!response.ok) {
5
- throw new Error(`Failed to fetch llms.txt from ${url}`);
6
- }
7
- return await response.text();
8
- }
9
- extractEndpoints(content) {
10
- const links = [];
11
- // Simple regex to find markdown links that might be API endpoints
12
- // In a real implementation, this should parse specific sections defined in the spec
13
- const linkRegex = /\[.*?\]\((https?:\/\/.*?)\)/g;
14
- let match;
15
- while ((match = linkRegex.exec(content)) !== null) {
16
- links.push(match[1]);
17
- }
18
- return {
19
- endpoints: links,
20
- description: content.substring(0, 100) + '...'
21
- };
22
- }
23
- }
24
- //# sourceMappingURL=llms-reader.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"llms-reader.js","sourceRoot":"","sources":["llms-reader.ts"],"names":[],"mappings":"AAKA,MAAM,OAAO,UAAU;IACnB,KAAK,CAAC,YAAY,CAAC,GAAW;QAC1B,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,CAAA;QACjC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;YACf,MAAM,IAAI,KAAK,CAAC,iCAAiC,GAAG,EAAE,CAAC,CAAA;QAC3D,CAAC;QACD,OAAO,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;IAChC,CAAC;IAED,gBAAgB,CAAC,OAAe;QAC5B,MAAM,KAAK,GAAa,EAAE,CAAA;QAC1B,kEAAkE;QAClE,oFAAoF;QACpF,MAAM,SAAS,GAAG,8BAA8B,CAAA;QAChD,IAAI,KAAK,CAAA;QAET,OAAO,CAAC,KAAK,GAAG,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC;YAChD,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;QACxB,CAAC;QAED,OAAO;YACH,SAAS,EAAE,KAAK;YAChB,WAAW,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,KAAK;SACjD,CAAA;IACL,CAAC;CACJ"}
package/src/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from './mcp-server.js';
2
- export * from './discovery/llms-reader.js';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,4BAA4B,CAAA"}
package/src/index.js DELETED
@@ -1,3 +0,0 @@
1
- export * from './mcp-server.js';
2
- export * from './discovery/llms-reader.js';
3
- //# sourceMappingURL=index.js.map
package/src/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,4BAA4B,CAAA"}
@@ -1,9 +0,0 @@
1
- export declare class AgentServer {
2
- private server;
3
- private tools;
4
- constructor(name: string, version: string);
5
- registerTool(name: string, description: string, schema: any, handler: any): void;
6
- connect(transport: any): Promise<void>;
7
- startStdio(): Promise<void>;
8
- }
9
- //# sourceMappingURL=mcp-server.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mcp-server.d.ts","sourceRoot":"","sources":["mcp-server.ts"],"names":[],"mappings":"AAKA,qBAAa,WAAW;IACpB,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,KAAK,CAA8B;gBAE/B,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;IA+BzC,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG;IAInE,OAAO,CAAC,SAAS,EAAE,GAAG;IAItB,UAAU;CAInB"}
package/src/mcp-server.js DELETED
@@ -1,45 +0,0 @@
1
- import { Server } from "@modelcontextprotocol/sdk/server/index.js";
2
- import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
3
- import { CallToolRequestSchema, ListToolsRequestSchema } from "@modelcontextprotocol/sdk/types.js";
4
- export class AgentServer {
5
- constructor(name, version) {
6
- this.tools = new Map();
7
- this.server = new Server({
8
- name,
9
- version
10
- }, {
11
- capabilities: {
12
- tools: {}
13
- }
14
- });
15
- // Handle List Tools
16
- this.server.setRequestHandler(ListToolsRequestSchema, async () => {
17
- return {
18
- tools: Array.from(this.tools.values()).map(t => ({
19
- name: t.name,
20
- description: t.description,
21
- inputSchema: t.schema
22
- }))
23
- };
24
- });
25
- // Handle Call Tool
26
- this.server.setRequestHandler(CallToolRequestSchema, async (request) => {
27
- const tool = this.tools.get(request.params.name);
28
- if (!tool) {
29
- throw new Error(`Tool not found: ${request.params.name}`);
30
- }
31
- return await tool.handler(request.params.arguments);
32
- });
33
- }
34
- registerTool(name, description, schema, handler) {
35
- this.tools.set(name, { name, description, schema, handler });
36
- }
37
- async connect(transport) {
38
- await this.server.connect(transport);
39
- }
40
- async startStdio() {
41
- const transport = new StdioServerTransport();
42
- await this.server.connect(transport);
43
- }
44
- }
45
- //# sourceMappingURL=mcp-server.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mcp-server.js","sourceRoot":"","sources":["mcp-server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAA;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAA;AAChF,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAA;AAGlG,MAAM,OAAO,WAAW;IAIpB,YAAY,IAAY,EAAE,OAAe;QAFjC,UAAK,GAAqB,IAAI,GAAG,EAAE,CAAA;QAGvC,IAAI,CAAC,MAAM,GAAG,IAAI,MAAM,CAAC;YACrB,IAAI;YACJ,OAAO;SACV,EAAE;YACC,YAAY,EAAE;gBACV,KAAK,EAAE,EAAE;aACZ;SACJ,CAAC,CAAA;QAEF,oBAAoB;QACpB,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,sBAAsB,EAAE,KAAK,IAAI,EAAE;YAC7D,OAAO;gBACH,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;oBAC7C,IAAI,EAAE,CAAC,CAAC,IAAI;oBACZ,WAAW,EAAE,CAAC,CAAC,WAAW;oBAC1B,WAAW,EAAE,CAAC,CAAC,MAAM;iBACxB,CAAC,CAAC;aACN,CAAA;QACL,CAAC,CAAC,CAAA;QAEF,mBAAmB;QACnB,IAAI,C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