@kya-os/create-mcpi-app 1.11.0 → 1.11.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/.turbo/turbo-build.log +7 -7
- package/dist/bundles/blank.js +1746 -875
- package/dist/bundles/ecommerce.js +1749 -878
- package/dist/bundles/hardware-world.js +1754 -883
- package/dist/bundles/manifest.json +12 -11
- package/dist/bundles/mix-station.js +1776 -902
- package/dist/cli-runner.d.ts.map +1 -1
- package/dist/cli-runner.js +25 -2
- package/dist/cli-runner.js.map +1 -1
- package/dist/helpers/apply-identity-preset.d.ts.map +1 -1
- package/dist/helpers/apply-identity-preset.js +6 -1
- package/dist/helpers/apply-identity-preset.js.map +1 -1
- package/dist/helpers/fetch-cloudflare-mcpi-template.d.ts +2 -2
- package/dist/helpers/fetch-cloudflare-mcpi-template.d.ts.map +1 -1
- package/dist/helpers/fetch-cloudflare-mcpi-template.js +69 -56
- package/dist/helpers/fetch-cloudflare-mcpi-template.js.map +1 -1
- package/dist/helpers/fetch-mcpi-template.d.ts.map +1 -1
- package/dist/helpers/fetch-mcpi-template.js +7 -3
- package/dist/helpers/fetch-mcpi-template.js.map +1 -1
- package/dist/helpers/generate-cloudflare-files.d.ts.map +1 -1
- package/dist/helpers/generate-cloudflare-files.js +181 -89
- package/dist/helpers/generate-cloudflare-files.js.map +1 -1
- package/dist/helpers/get-package-versions.js +2 -2
- package/dist/helpers/get-package-versions.js.map +1 -1
- package/dist/helpers/kta-registration.d.ts.map +1 -1
- package/dist/helpers/kta-registration.js +14 -1
- package/dist/helpers/kta-registration.js.map +1 -1
- package/dist/helpers/pinned-dependencies.d.ts +39 -0
- package/dist/helpers/pinned-dependencies.d.ts.map +1 -0
- package/dist/helpers/pinned-dependencies.js +46 -0
- package/dist/helpers/pinned-dependencies.js.map +1 -0
- package/package.json +4 -12
- package/dist/helpers/generate-openapi-project.d.ts +0 -36
- package/dist/helpers/generate-openapi-project.d.ts.map +0 -1
- package/dist/helpers/generate-openapi-project.js +0 -114
- package/dist/helpers/generate-openapi-project.js.map +0 -1
- package/dist/helpers/generate-openapi-tools.d.ts +0 -43
- package/dist/helpers/generate-openapi-tools.d.ts.map +0 -1
- package/dist/helpers/generate-openapi-tools.js +0 -572
- package/dist/helpers/generate-openapi-tools.js.map +0 -1
- package/dist/helpers/generate-runtime-config.d.ts +0 -16
- package/dist/helpers/generate-runtime-config.d.ts.map +0 -1
- package/dist/helpers/generate-runtime-config.js +0 -49
- package/dist/helpers/generate-runtime-config.js.map +0 -1
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import crypto from "crypto";
|
|
13
13
|
import { generateIdentity, } from "./generate-identity.js";
|
|
14
14
|
import { getPackageVersions } from "./get-package-versions.js";
|
|
15
|
+
import { applyPinnedDependencyOverrides } from "./pinned-dependencies.js";
|
|
15
16
|
/**
|
|
16
17
|
* Unified KV binding name (matches env-mapper.ts UNIFIED_KV_BINDING_NAME)
|
|
17
18
|
*
|
|
@@ -84,9 +85,12 @@ export async function generateCloudflareProjectFiles(options) {
|
|
|
84
85
|
const auditReferenceSecret = crypto.randomBytes(32).toString("hex");
|
|
85
86
|
const files = [];
|
|
86
87
|
// 1. package.json
|
|
88
|
+
// applyPinnedDependencyOverrides adds npm/pnpm/yarn overrides for
|
|
89
|
+
// json-canonicalize: a broken upstream 2.0.1 publish plus npm's hoisting
|
|
90
|
+
// order otherwise puts 2.0.1 at the root of every fresh install.
|
|
87
91
|
files.push({
|
|
88
92
|
path: "package.json",
|
|
89
|
-
content: JSON.stringify({
|
|
93
|
+
content: JSON.stringify(applyPinnedDependencyOverrides({
|
|
90
94
|
name: projectName,
|
|
91
95
|
version: "0.1.0",
|
|
92
96
|
private: true,
|
|
@@ -112,7 +116,7 @@ export async function generateCloudflareProjectFiles(options) {
|
|
|
112
116
|
vitest: "^2.0.5",
|
|
113
117
|
wrangler: "^4.53.0",
|
|
114
118
|
},
|
|
115
|
-
}, null, 2),
|
|
119
|
+
}), null, 2),
|
|
116
120
|
encoding: "utf-8",
|
|
117
121
|
});
|
|
118
122
|
// 2. wrangler.toml (NO private key - that goes to GitHub Secrets)
|
|
@@ -193,16 +197,16 @@ dist/
|
|
|
193
197
|
content: generateIndexTs(doClassName),
|
|
194
198
|
encoding: "utf-8",
|
|
195
199
|
});
|
|
196
|
-
// 7. src/agent.ts
|
|
200
|
+
// 7. src/agent.ts (includes getRuntimeConfig)
|
|
197
201
|
files.push({
|
|
198
202
|
path: "src/agent.ts",
|
|
199
|
-
content: generateAgentTs(projectName, doClassName),
|
|
203
|
+
content: generateAgentTs(projectName, doClassName, template),
|
|
200
204
|
encoding: "utf-8",
|
|
201
205
|
});
|
|
202
|
-
// 8. src/
|
|
206
|
+
// 8. src/tools/index.ts (tool registry)
|
|
203
207
|
files.push({
|
|
204
|
-
path: "src/
|
|
205
|
-
content:
|
|
208
|
+
path: "src/tools/index.ts",
|
|
209
|
+
content: generateToolsIndexTs(template),
|
|
206
210
|
encoding: "utf-8",
|
|
207
211
|
});
|
|
208
212
|
// 9. src/tools/greet.ts (included for templates that use it)
|
|
@@ -358,8 +362,7 @@ ${templateVars}
|
|
|
358
362
|
}
|
|
359
363
|
function generateIndexTs(doClassName) {
|
|
360
364
|
return `import { createMCPIApp } from "@kya-os/mcp-i-cloudflare";
|
|
361
|
-
import { ${doClassName} } from "./agent";
|
|
362
|
-
import { getRuntimeConfig } from "./mcpi-runtime-config";
|
|
365
|
+
import { ${doClassName}, getRuntimeConfig } from "./agent";
|
|
363
366
|
|
|
364
367
|
export default createMCPIApp({
|
|
365
368
|
AgentClass: ${doClassName},
|
|
@@ -372,61 +375,23 @@ export { ${doClassName} };
|
|
|
372
375
|
export { AuditProducer } from "@kya-os/mcp-i-cloudflare";
|
|
373
376
|
`;
|
|
374
377
|
}
|
|
375
|
-
function generateAgentTs(projectName, doClassName) {
|
|
376
|
-
return `import { MCPICloudflareAgent, type CloudflareEnv } from "@kya-os/mcp-i-cloudflare";
|
|
377
|
-
import { getRuntimeConfig, getTools } from "./mcpi-runtime-config";
|
|
378
|
-
import type { CloudflareRuntimeConfig } from "@kya-os/mcp-i-cloudflare";
|
|
379
|
-
|
|
380
|
-
/**
|
|
381
|
-
* MCP-I Agent Implementation
|
|
382
|
-
*/
|
|
383
|
-
export class ${doClassName} extends MCPICloudflareAgent {
|
|
384
|
-
protected getAgentName(): string {
|
|
385
|
-
return (this.env as CloudflareEnv).MCP_SERVER_NAME || "${projectName}";
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
protected getAgentVersion(): string {
|
|
389
|
-
return "1.0.0";
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
protected getRuntimeConfigInternal(env: CloudflareEnv): CloudflareRuntimeConfig {
|
|
393
|
-
return getRuntimeConfig(env);
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
protected async registerTools(): Promise<void> {
|
|
397
|
-
const tools = getTools();
|
|
398
|
-
for (const toolDef of tools) {
|
|
399
|
-
this.registerToolWithProof(
|
|
400
|
-
toolDef.name,
|
|
401
|
-
toolDef.description,
|
|
402
|
-
toolDef.inputSchema,
|
|
403
|
-
toolDef.handler
|
|
404
|
-
);
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
`;
|
|
409
|
-
}
|
|
410
|
-
function generateRuntimeConfigTs(template) {
|
|
411
|
-
// Hardware World has different imports and tool protection
|
|
378
|
+
function generateAgentTs(projectName, doClassName, template) {
|
|
412
379
|
if (template === "hardware-world") {
|
|
413
|
-
return
|
|
380
|
+
return generateHardwareWorldAgentTs(projectName, doClassName);
|
|
414
381
|
}
|
|
415
|
-
// Mix Station has its own runtime config with Mixer API client
|
|
416
382
|
if (template === "mix-station") {
|
|
417
|
-
return
|
|
383
|
+
return generateMixStationAgentTs(projectName, doClassName);
|
|
418
384
|
}
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
import
|
|
429
|
-
${imports.join("\n")}
|
|
385
|
+
return generateDefaultAgentTs(projectName, doClassName);
|
|
386
|
+
}
|
|
387
|
+
function generateDefaultAgentTs(projectName, doClassName) {
|
|
388
|
+
return `import {
|
|
389
|
+
MCPICloudflareAgent,
|
|
390
|
+
defineConfig,
|
|
391
|
+
type CloudflareEnv,
|
|
392
|
+
type CloudflareRuntimeConfig,
|
|
393
|
+
} from "@kya-os/mcp-i-cloudflare";
|
|
394
|
+
import { getTools } from "./tools";
|
|
430
395
|
|
|
431
396
|
export function getRuntimeConfig(env: CloudflareEnv): CloudflareRuntimeConfig {
|
|
432
397
|
const environment = (env.MCPI_ENV || env.ENVIRONMENT || "development") as "development" | "production";
|
|
@@ -458,15 +423,46 @@ export function getRuntimeConfig(env: CloudflareEnv): CloudflareRuntimeConfig {
|
|
|
458
423
|
});
|
|
459
424
|
}
|
|
460
425
|
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
426
|
+
/**
|
|
427
|
+
* MCP-I Agent Implementation
|
|
428
|
+
*/
|
|
429
|
+
export class ${doClassName} extends MCPICloudflareAgent {
|
|
430
|
+
protected getAgentName(): string {
|
|
431
|
+
return (this.env as CloudflareEnv).MCP_SERVER_NAME || "${projectName}";
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
protected getAgentVersion(): string {
|
|
435
|
+
return "1.0.0";
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
protected getRuntimeConfigInternal(env: CloudflareEnv): CloudflareRuntimeConfig {
|
|
439
|
+
return getRuntimeConfig(env);
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
protected async registerTools(): Promise<void> {
|
|
443
|
+
const tools = getTools();
|
|
444
|
+
for (const toolDef of tools) {
|
|
445
|
+
this.registerToolWithProof(
|
|
446
|
+
toolDef.name,
|
|
447
|
+
toolDef.description,
|
|
448
|
+
toolDef.inputSchema,
|
|
449
|
+
toolDef.handler
|
|
450
|
+
);
|
|
451
|
+
}
|
|
452
|
+
}
|
|
465
453
|
}
|
|
466
454
|
`;
|
|
467
455
|
}
|
|
468
|
-
function
|
|
469
|
-
return
|
|
456
|
+
function generateHardwareWorldAgentTs(projectName, doClassName) {
|
|
457
|
+
return `import {
|
|
458
|
+
MCPICloudflareAgent,
|
|
459
|
+
defineConfig,
|
|
460
|
+
type CloudflareEnv,
|
|
461
|
+
type CloudflareRuntimeConfig,
|
|
462
|
+
} from "@kya-os/mcp-i-cloudflare";
|
|
463
|
+
import { getTools } from "./tools";
|
|
464
|
+
|
|
465
|
+
/**
|
|
470
466
|
* MCP-I Runtime Configuration
|
|
471
467
|
*
|
|
472
468
|
* Defines tool protection, proofing, and other runtime settings.
|
|
@@ -474,21 +470,6 @@ function generateHardwareWorldRuntimeConfig() {
|
|
|
474
470
|
* AgentShield's auto-generated scope validation issues.
|
|
475
471
|
*/
|
|
476
472
|
|
|
477
|
-
import {
|
|
478
|
-
defineConfig,
|
|
479
|
-
type CloudflareRuntimeConfig,
|
|
480
|
-
type CloudflareEnv,
|
|
481
|
-
} from "@kya-os/mcp-i-cloudflare";
|
|
482
|
-
|
|
483
|
-
// Import tools
|
|
484
|
-
import { greetTool } from "./tools/greet";
|
|
485
|
-
import { getProductsTool } from "./tools/get-products";
|
|
486
|
-
import { getBrandsTool } from "./tools/get-brands";
|
|
487
|
-
import { getBrandTool } from "./tools/get-brand";
|
|
488
|
-
import { addToCartTool } from "./tools/add-to-cart";
|
|
489
|
-
import { getCartTool } from "./tools/get-cart";
|
|
490
|
-
import { getCustomerTool } from "./tools/get-customer";
|
|
491
|
-
|
|
492
473
|
/**
|
|
493
474
|
* Tool Protection Configuration
|
|
494
475
|
*
|
|
@@ -581,6 +562,69 @@ export function getRuntimeConfig(env: CloudflareEnv): CloudflareRuntimeConfig {
|
|
|
581
562
|
});
|
|
582
563
|
}
|
|
583
564
|
|
|
565
|
+
/**
|
|
566
|
+
* MCP-I Agent Implementation
|
|
567
|
+
*/
|
|
568
|
+
export class ${doClassName} extends MCPICloudflareAgent {
|
|
569
|
+
protected getAgentName(): string {
|
|
570
|
+
return (this.env as CloudflareEnv).MCP_SERVER_NAME || "${projectName}";
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
protected getAgentVersion(): string {
|
|
574
|
+
return "1.0.0";
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
protected getRuntimeConfigInternal(env: CloudflareEnv): CloudflareRuntimeConfig {
|
|
578
|
+
return getRuntimeConfig(env);
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
protected async registerTools(): Promise<void> {
|
|
582
|
+
const tools = getTools();
|
|
583
|
+
for (const toolDef of tools) {
|
|
584
|
+
this.registerToolWithProof(
|
|
585
|
+
toolDef.name,
|
|
586
|
+
toolDef.description,
|
|
587
|
+
toolDef.inputSchema,
|
|
588
|
+
toolDef.handler
|
|
589
|
+
);
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
`;
|
|
594
|
+
}
|
|
595
|
+
function generateToolsIndexTs(template) {
|
|
596
|
+
if (template === "hardware-world") {
|
|
597
|
+
return generateHardwareWorldToolsIndexTs();
|
|
598
|
+
}
|
|
599
|
+
if (template === "mix-station") {
|
|
600
|
+
return generateMixStationToolsIndexTs();
|
|
601
|
+
}
|
|
602
|
+
const imports = [`import { greetTool } from "./greet";`];
|
|
603
|
+
const tools = ["greetTool"];
|
|
604
|
+
if (template === "ecommerce") {
|
|
605
|
+
imports.push(`import { addToCartTool } from "./add-to-cart";`);
|
|
606
|
+
imports.push(`import { getCartTool } from "./get-cart";`);
|
|
607
|
+
imports.push(`import { checkoutTool } from "./checkout";`);
|
|
608
|
+
tools.push("addToCartTool", "getCartTool", "checkoutTool");
|
|
609
|
+
}
|
|
610
|
+
return `${imports.join("\n")}
|
|
611
|
+
|
|
612
|
+
export function getTools() {
|
|
613
|
+
return [
|
|
614
|
+
${tools.join(",\n ")},
|
|
615
|
+
];
|
|
616
|
+
}
|
|
617
|
+
`;
|
|
618
|
+
}
|
|
619
|
+
function generateHardwareWorldToolsIndexTs() {
|
|
620
|
+
return `import { greetTool } from "./greet";
|
|
621
|
+
import { getProductsTool } from "./get-products";
|
|
622
|
+
import { getBrandsTool } from "./get-brands";
|
|
623
|
+
import { getBrandTool } from "./get-brand";
|
|
624
|
+
import { addToCartTool } from "./add-to-cart";
|
|
625
|
+
import { getCartTool } from "./get-cart";
|
|
626
|
+
import { getCustomerTool } from "./get-customer";
|
|
627
|
+
|
|
584
628
|
/**
|
|
585
629
|
* Get all tools for this agent
|
|
586
630
|
*
|
|
@@ -1453,14 +1497,20 @@ export const addToCartTool: ToolDefinition = {
|
|
|
1453
1497
|
},
|
|
1454
1498
|
];
|
|
1455
1499
|
}
|
|
1456
|
-
function
|
|
1457
|
-
return `import {
|
|
1458
|
-
|
|
1500
|
+
function generateMixStationAgentTs(projectName, doClassName) {
|
|
1501
|
+
return `import {
|
|
1502
|
+
MCPICloudflareAgent,
|
|
1503
|
+
defineConfig,
|
|
1504
|
+
type CloudflareEnv,
|
|
1505
|
+
type CloudflareRuntimeConfig,
|
|
1506
|
+
} from "@kya-os/mcp-i-cloudflare";
|
|
1459
1507
|
import { createMixerClient } from "./lib/mixer-client";
|
|
1508
|
+
import { getTools } from "./tools";
|
|
1460
1509
|
|
|
1461
1510
|
// Cached env values for tool access (initialized by getRuntimeConfig)
|
|
1462
1511
|
let cachedProjectId: string | null = null;
|
|
1463
1512
|
let cachedMixerApiUrl: string | undefined = undefined;
|
|
1513
|
+
let cachedStationToken: string | undefined = undefined;
|
|
1464
1514
|
|
|
1465
1515
|
/**
|
|
1466
1516
|
* Get runtime configuration for MCP-I Cloudflare Worker
|
|
@@ -1468,6 +1518,7 @@ let cachedMixerApiUrl: string | undefined = undefined;
|
|
|
1468
1518
|
export function getRuntimeConfig(env: CloudflareEnv): CloudflareRuntimeConfig {
|
|
1469
1519
|
cachedProjectId = env.AGENTSHIELD_PROJECT_ID || null;
|
|
1470
1520
|
cachedMixerApiUrl = env.MIXER_API_URL || undefined;
|
|
1521
|
+
cachedStationToken = env.MIXER_STATION_TOKEN || undefined;
|
|
1471
1522
|
|
|
1472
1523
|
const environment = (env.MCPI_ENV || env.ENVIRONMENT || "development") as "development" | "production";
|
|
1473
1524
|
|
|
@@ -1498,11 +1549,45 @@ export function getRuntimeConfig(env: CloudflareEnv): CloudflareRuntimeConfig {
|
|
|
1498
1549
|
* Get mixer client lazily at execution time.
|
|
1499
1550
|
* Uses cached env values set by getRuntimeConfig.
|
|
1500
1551
|
*/
|
|
1501
|
-
function getMixerClientLazy(): { projectId: string; mixer: ReturnType<typeof createMixerClient> } | null {
|
|
1552
|
+
export function getMixerClientLazy(): { projectId: string; mixer: ReturnType<typeof createMixerClient> } | null {
|
|
1502
1553
|
const projectId = cachedProjectId;
|
|
1503
1554
|
if (!projectId) return null;
|
|
1504
|
-
return { projectId, mixer: createMixerClient(projectId, cachedMixerApiUrl) };
|
|
1555
|
+
return { projectId, mixer: createMixerClient(projectId, cachedMixerApiUrl, cachedStationToken) };
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
/**
|
|
1559
|
+
* MCP-I Agent Implementation
|
|
1560
|
+
*/
|
|
1561
|
+
export class ${doClassName} extends MCPICloudflareAgent {
|
|
1562
|
+
protected getAgentName(): string {
|
|
1563
|
+
return (this.env as CloudflareEnv).MCP_SERVER_NAME || "${projectName}";
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
protected getAgentVersion(): string {
|
|
1567
|
+
return "1.0.0";
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
protected getRuntimeConfigInternal(env: CloudflareEnv): CloudflareRuntimeConfig {
|
|
1571
|
+
return getRuntimeConfig(env);
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
protected async registerTools(): Promise<void> {
|
|
1575
|
+
const tools = getTools();
|
|
1576
|
+
for (const toolDef of tools) {
|
|
1577
|
+
this.registerToolWithProof(
|
|
1578
|
+
toolDef.name,
|
|
1579
|
+
toolDef.description,
|
|
1580
|
+
toolDef.inputSchema,
|
|
1581
|
+
toolDef.handler
|
|
1582
|
+
);
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1505
1585
|
}
|
|
1586
|
+
`;
|
|
1587
|
+
}
|
|
1588
|
+
function generateMixStationToolsIndexTs() {
|
|
1589
|
+
return `import type { ToolDefinition } from "@kya-os/mcp-i-cloudflare";
|
|
1590
|
+
import { getMixerClientLazy } from "../agent";
|
|
1506
1591
|
|
|
1507
1592
|
/**
|
|
1508
1593
|
* Get all tools for this agent
|
|
@@ -1781,6 +1866,12 @@ function generateMixStationTools() {
|
|
|
1781
1866
|
* Provides typed access to Mixer's MCP API endpoints.
|
|
1782
1867
|
* The project ID is passed via X-AgentShield-Project-Id header,
|
|
1783
1868
|
* which Mixer uses to look up the associated station.
|
|
1869
|
+
*
|
|
1870
|
+
* When the MIXER_STATION_TOKEN secret is present (injected by Checkpoint
|
|
1871
|
+
* at deploy time), it is also sent via the X-Station-Token header so
|
|
1872
|
+
* Mixer can authenticate the callback with a real secret instead of the
|
|
1873
|
+
* guessable project ID alone. Workers deployed without the secret simply
|
|
1874
|
+
* omit the header (backward compatible).
|
|
1784
1875
|
*/
|
|
1785
1876
|
|
|
1786
1877
|
const DEFAULT_MIXER_API_URL = "https://mixer-vouched.vercel.app";
|
|
@@ -1794,11 +1885,12 @@ export interface MixerApiClient {
|
|
|
1794
1885
|
graph: (args: { action: string; nodeId?: string; targetNodeId?: string; direction?: string; hops?: number; nodeTypes?: string; limit?: number }) => Promise<any>;
|
|
1795
1886
|
}
|
|
1796
1887
|
|
|
1797
|
-
export function createMixerClient(projectId: string, apiUrl?: string): MixerApiClient {
|
|
1888
|
+
export function createMixerClient(projectId: string, apiUrl?: string, stationToken?: string): MixerApiClient {
|
|
1798
1889
|
const mixerUrl = apiUrl || DEFAULT_MIXER_API_URL;
|
|
1799
|
-
const headers = {
|
|
1890
|
+
const headers: Record<string, string> = {
|
|
1800
1891
|
"Content-Type": "application/json",
|
|
1801
1892
|
"X-AgentShield-Project-Id": projectId,
|
|
1893
|
+
...(stationToken ? { "X-Station-Token": stationToken } : {}),
|
|
1802
1894
|
};
|
|
1803
1895
|
|
|
1804
1896
|
return {
|
|
@@ -2030,7 +2122,7 @@ export const myTool: ToolDefinition = {
|
|
|
2030
2122
|
};
|
|
2031
2123
|
\`\`\`
|
|
2032
2124
|
|
|
2033
|
-
Then register in \`src/
|
|
2125
|
+
Then register it in \`src/tools/index.ts\`.
|
|
2034
2126
|
|
|
2035
2127
|
## License
|
|
2036
2128
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-cloudflare-files.js","sourceRoot":"","sources":["../../src/helpers/generate-cloudflare-files.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACL,gBAAgB,GAEjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"generate-cloudflare-files.js","sourceRoot":"","sources":["../../src/helpers/generate-cloudflare-files.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACL,gBAAgB,GAEjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,8BAA8B,EAAE,MAAM,0BAA0B,CAAC;AAkD1E;;;;;;GAMG;AACH,MAAM,kBAAkB,GAAG,SAAkB,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,CAAC,KAAK,UAAU,8BAA8B,CAClD,OAA6B;IAE7B,MAAM,EACJ,WAAW,EACX,QAAQ,GAAG,OAAO,EAClB,oBAAoB,EACpB,iBAAiB,GAAG,w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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2QR,CAAC;AACF,CAAC;AAED,SAAS,uBAAuB;IAC9B,OAAO;QACL,mBAAmB;QACnB;YACE,IAAI,EAAE,yBAAyB;YAC/B,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkGd;YACK,QAAQ,EAAE,OAAO;SAClB;KACF,CAAC;AACJ,CAAC;AAED,SAAS,sBAAsB;IAC7B,6EAA6E;IAC7E,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiER,CAAC;AACF,CAAC;AAED,SAAS,cAAc,CAAC,WAAmB,EAAE,SAAkB;IAC7D,MAAM,YAAY,GAAG,SAAS;QAC5B,CAAC,CAAC,4CAA4C,SAAS,EAAE;QACzD,CAAC,CAAC,0CAA0C,CAAC;IAE/C,OAAO,KAAK,WAAW;;;;;;;;gDAQuB,WAAW;QACnD,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;2BA0BQ,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwDtC,CAAC;AACF,CAAC"}
|
|
@@ -67,7 +67,7 @@ export async function getPackageVersions() {
|
|
|
67
67
|
cachedVersions = {
|
|
68
68
|
"@kya-os/mcp-i": normalizeVersion(deps["@kya-os/mcp-i"] || "^1.7.13"),
|
|
69
69
|
"@kya-os/cli": normalizeVersion(deps["@kya-os/cli"] || "^1.5.9"),
|
|
70
|
-
"@kya-os/mcp-i-cloudflare": normalizeVersion(deps["@kya-os/mcp-i-cloudflare"] || "^1.
|
|
70
|
+
"@kya-os/mcp-i-cloudflare": normalizeVersion(deps["@kya-os/mcp-i-cloudflare"] || "^1.13.5"),
|
|
71
71
|
"@kya-os/contracts": normalizeVersion(deps["@kya-os/contracts"] || "^1.7.21"),
|
|
72
72
|
};
|
|
73
73
|
return cachedVersions;
|
|
@@ -78,7 +78,7 @@ export async function getPackageVersions() {
|
|
|
78
78
|
return {
|
|
79
79
|
"@kya-os/mcp-i": "^1.7.13",
|
|
80
80
|
"@kya-os/cli": "^1.5.9",
|
|
81
|
-
"@kya-os/mcp-i-cloudflare": "^1.
|
|
81
|
+
"@kya-os/mcp-i-cloudflare": "^1.13.5",
|
|
82
82
|
"@kya-os/contracts": "^1.9.2",
|
|
83
83
|
};
|
|
84
84
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-package-versions.js","sourceRoot":"","sources":["../../src/helpers/get-package-versions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,MAAM,UAAU,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEpC,mCAAmC;AACnC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;AAS3C,kDAAkD;AAClD,IAAI,cAAc,GAA2B,IAAI,CAAC;AAElD;;;;;;;;;;GAUG;AACH,SAAS,gBAAgB,CAAC,OAAe;IACvC,gCAAgC;IAChC,MAAM,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;IAEnD,oDAAoD;IACpD,wDAAwD;IACxD,IAAI,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AkE;QAClE,OAAO,CAAC,IAAI,CACV,2EAA2E,CAC5E,CAAC;QAEF,OAAO;YACL,eAAe,EAAE,SAAS;YAC1B,aAAa,EAAE,QAAQ;YACvB,0BAA0B,EAAE,SAAS;YACrC,mBAAmB,EAAE,QAAQ;SAC9B,CAAC;IACJ,CAAC;AACH,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,iBAAiB;IAC/B,cAAc,GAAG,IAAI,CAAC;AACxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kta-registration.d.ts","sourceRoot":"","sources":["../../src/helpers/kta-registration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,0CAA0C;IAC1C,UAAU,EAAE,OAAO,CAAC;IACpB,yCAAyC;IACzC,YAAY,EAAE,MAAM,CAAC;IACrB,0EAA0E;IAC1E,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;
|
|
1
|
+
{"version":3,"file":"kta-registration.d.ts","sourceRoot":"","sources":["../../src/helpers/kta-registration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,0CAA0C;IAC1C,UAAU,EAAE,OAAO,CAAC;IACpB,yCAAyC;IACzC,YAAY,EAAE,MAAM,CAAC;IACrB,0EAA0E;IAC1E,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAmCD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,iBAAiB;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,6CAA6C;IAC7C,SAAS,EAAE,MAAM,CAAC;IAClB,kBAAkB;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,iCAAiC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;;GASG;AACH,wBAAsB,eAAe,CACnC,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC,kBAAkB,CAAC,CAyC7B;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,MAAM,GAAG,IAAI,GACtB,eAAe,CAMjB"}
|
|
@@ -15,6 +15,19 @@ const REGISTRY_URL = "https://knowthat.ai";
|
|
|
15
15
|
const REPUTATION_API_PATHS = {
|
|
16
16
|
CLI_REGISTER: "/api/agents/cli-register",
|
|
17
17
|
};
|
|
18
|
+
/**
|
|
19
|
+
* Resolve the cli-register endpoint, honouring an explicit override.
|
|
20
|
+
* Mirrors the same override contract as `@kya-os/cli`'s register command
|
|
21
|
+
* (packages/cli/src/commands/register.ts): KTA_REGISTER_ENDPOINT, then
|
|
22
|
+
* KTA_API_URL, then the production default. This lets a build point
|
|
23
|
+
* registration at a staging registry instead of production.
|
|
24
|
+
*/
|
|
25
|
+
function resolveRegisterEndpoint() {
|
|
26
|
+
return (process.env.KTA_REGISTER_ENDPOINT ??
|
|
27
|
+
(process.env.KTA_API_URL
|
|
28
|
+
? new URL(REPUTATION_API_PATHS.CLI_REGISTER, process.env.KTA_API_URL).toString()
|
|
29
|
+
: `${REGISTRY_URL}${REPUTATION_API_PATHS.CLI_REGISTER}`));
|
|
30
|
+
}
|
|
18
31
|
/**
|
|
19
32
|
* Register an agent with Know That AI
|
|
20
33
|
*
|
|
@@ -28,7 +41,7 @@ const REPUTATION_API_PATHS = {
|
|
|
28
41
|
export async function registerWithKTA(options) {
|
|
29
42
|
const { name, publicKey, did, description } = options;
|
|
30
43
|
try {
|
|
31
|
-
const response = await fetch(
|
|
44
|
+
const response = await fetch(resolveRegisterEndpoint(), {
|
|
32
45
|
method: "POST",
|
|
33
46
|
headers: {
|
|
34
47
|
"Content-Type": "application/json",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kta-registration.js","sourceRoot":"","sources":["../../src/helpers/kta-registration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAmBH;;;GAGG;AACH,MAAM,YAAY,GAAG,qBAA8B,CAAC;AAEpD;;;GAGG;AACH,MAAM,oBAAoB,GAAG;IAC3B,YAAY,EAAE,0BAA0B;CAChC,CAAC;
|
|
1
|
+
{"version":3,"file":"kta-registration.js","sourceRoot":"","sources":["../../src/helpers/kta-registration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAmBH;;;GAGG;AACH,MAAM,YAAY,GAAG,qBAA8B,CAAC;AAEpD;;;GAGG;AACH,MAAM,oBAAoB,GAAG;IAC3B,YAAY,EAAE,0BAA0B;CAChC,CAAC;AAEX;;;;;;GAMG;AACH,SAAS,uBAAuB;IAC9B,OAAO,CACL,OAAO,CAAC,GAAG,CAAC,qBAAqB;QACjC,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW;YACtB,CAAC,CAAC,IAAI,GAAG,CACL,oBAAoB,CAAC,YAAY,EACjC,OAAO,CAAC,GAAG,CAAC,WAAW,CACxB,CAAC,QAAQ,EAAE;YACd,CAAC,CAAC,GAAG,YAAY,GAAG,oBAAoB,CAAC,YAAY,EAAE,CAAC,CAC3D,CAAC;AACJ,CAAC;AA0BD;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,OAAwB;IAExB,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC;IAEtD,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,uBAAuB,EAAE,EAAE;YACtD,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;YACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;gBACnB,IAAI;gBACJ,SAAS;gBACT,GAAG;gBACH,WAAW;aACZ,CAAC;SACH,CAAC,CAAC;QAEH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;YACjB,MAAM,SAAS,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;YACxC,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,KAAK,EAAE,wBAAwB,QAAQ,CAAC,MAAM,MAAM,SAAS,EAAE;aAChE,CAAC;QACJ,CAAC;QAED,MAAM,IAAI,GAAG,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAGlC,CAAC;QAEF,OAAO;YACL,OAAO,EAAE,IAAI;YACb,GAAG,EAAE,IAAI,CAAC,GAAG,IAAI,GAAG;YACpB,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE,yCAAyC;SAC3E,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO;YACL,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe;SAChE,CAAC;IACJ,CAAC;AACH,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,qBAAqB,CACnC,QAAuB;IAEvB,OAAO;QACL,UAAU,EAAE,IAAI;QAChB,YAAY,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QACtC,QAAQ;KACT,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dependency versions the scaffolder forces onto every generated project.
|
|
3
|
+
*
|
|
4
|
+
* Single source of truth for the monorepo is the repository-root
|
|
5
|
+
* pinned-dependencies.json. The published CLI bundle cannot read that file,
|
|
6
|
+
* so the value is duplicated here and a test asserts the two agree
|
|
7
|
+
* (src/__tests__/helpers/pinned-dependencies.test.ts).
|
|
8
|
+
*
|
|
9
|
+
* Why json-canonicalize is pinned in generated projects, not only in our own
|
|
10
|
+
* packages: json-canonicalize@2.0.1 (2026-08-14) is a source-only publish
|
|
11
|
+
* whose `main` points at a missing bundles/index.umd.js. Our packages declare
|
|
12
|
+
* 2.0.0 exactly, but a consumer tree still reaches 2.0.1 through
|
|
13
|
+
* @kya-os/cli -> @kya-os/mcp@1.11.0 (^2.0.0): npm hoists depth-1 nodes in
|
|
14
|
+
* path order and "@kya-os/mcp" sorts before "@kya-os/mcp-i", so mcp's caret
|
|
15
|
+
* edge claims the root node_modules slot and webpack resolves mcp's
|
|
16
|
+
* canonical-json against the broken copy. pnpm does not hoist at all, so each
|
|
17
|
+
* range resolves independently. Only a package-manager override fixes both,
|
|
18
|
+
* hence all three fields below (npm, pnpm, yarn).
|
|
19
|
+
*/
|
|
20
|
+
export declare const PINNED_DEPENDENCY_OVERRIDES: Readonly<Record<string, string>>;
|
|
21
|
+
/** The three package-manager override fields the scaffolder writes. */
|
|
22
|
+
export interface PackageManagerOverrideFields {
|
|
23
|
+
/** npm */
|
|
24
|
+
overrides: Record<string, string>;
|
|
25
|
+
/** pnpm (nested under the "pnpm" key; other pnpm settings are preserved) */
|
|
26
|
+
pnpm: {
|
|
27
|
+
overrides: Record<string, string>;
|
|
28
|
+
} & Record<string, unknown>;
|
|
29
|
+
/** yarn */
|
|
30
|
+
resolutions: Record<string, string>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Return a copy of `manifest` with the pinned overrides merged into the npm,
|
|
34
|
+
* pnpm, and yarn override fields. Existing user entries are kept; for a
|
|
35
|
+
* pinned name the pin wins, since the pin exists to defeat a broken upstream
|
|
36
|
+
* publish.
|
|
37
|
+
*/
|
|
38
|
+
export declare function applyPinnedDependencyOverrides<T extends object>(manifest: T): T & PackageManagerOverrideFields;
|
|
39
|
+
//# sourceMappingURL=pinned-dependencies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pinned-dependencies.d.ts","sourceRoot":"","sources":["../../src/helpers/pinned-dependencies.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAExE,CAAC;AAEF,uEAAuE;AACvE,MAAM,WAAW,4BAA4B;IAC3C,UAAU;IACV,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,4EAA4E;IAC5E,IAAI,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;KAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtE,WAAW;IACX,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACrC;AAQD;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAAC,CAAC,SAAS,MAAM,EAC7D,QAAQ,EAAE,CAAC,GACV,CAAC,GAAG,4BAA4B,CAkBlC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dependency versions the scaffolder forces onto every generated project.
|
|
3
|
+
*
|
|
4
|
+
* Single source of truth for the monorepo is the repository-root
|
|
5
|
+
* pinned-dependencies.json. The published CLI bundle cannot read that file,
|
|
6
|
+
* so the value is duplicated here and a test asserts the two agree
|
|
7
|
+
* (src/__tests__/helpers/pinned-dependencies.test.ts).
|
|
8
|
+
*
|
|
9
|
+
* Why json-canonicalize is pinned in generated projects, not only in our own
|
|
10
|
+
* packages: json-canonicalize@2.0.1 (2026-08-14) is a source-only publish
|
|
11
|
+
* whose `main` points at a missing bundles/index.umd.js. Our packages declare
|
|
12
|
+
* 2.0.0 exactly, but a consumer tree still reaches 2.0.1 through
|
|
13
|
+
* @kya-os/cli -> @kya-os/mcp@1.11.0 (^2.0.0): npm hoists depth-1 nodes in
|
|
14
|
+
* path order and "@kya-os/mcp" sorts before "@kya-os/mcp-i", so mcp's caret
|
|
15
|
+
* edge claims the root node_modules slot and webpack resolves mcp's
|
|
16
|
+
* canonical-json against the broken copy. pnpm does not hoist at all, so each
|
|
17
|
+
* range resolves independently. Only a package-manager override fixes both,
|
|
18
|
+
* hence all three fields below (npm, pnpm, yarn).
|
|
19
|
+
*/
|
|
20
|
+
export const PINNED_DEPENDENCY_OVERRIDES = {
|
|
21
|
+
"json-canonicalize": "2.0.0",
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Return a copy of `manifest` with the pinned overrides merged into the npm,
|
|
25
|
+
* pnpm, and yarn override fields. Existing user entries are kept; for a
|
|
26
|
+
* pinned name the pin wins, since the pin exists to defeat a broken upstream
|
|
27
|
+
* publish.
|
|
28
|
+
*/
|
|
29
|
+
export function applyPinnedDependencyOverrides(manifest) {
|
|
30
|
+
const existing = manifest;
|
|
31
|
+
const existingPnpm = existing.pnpm ?? {};
|
|
32
|
+
const existingPnpmOverrides = existing.pnpm?.overrides ?? {};
|
|
33
|
+
return {
|
|
34
|
+
...manifest,
|
|
35
|
+
overrides: { ...(existing.overrides ?? {}), ...PINNED_DEPENDENCY_OVERRIDES },
|
|
36
|
+
pnpm: {
|
|
37
|
+
...existingPnpm,
|
|
38
|
+
overrides: { ...existingPnpmOverrides, ...PINNED_DEPENDENCY_OVERRIDES },
|
|
39
|
+
},
|
|
40
|
+
resolutions: {
|
|
41
|
+
...(existing.resolutions ?? {}),
|
|
42
|
+
...PINNED_DEPENDENCY_OVERRIDES,
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=pinned-dependencies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pinned-dependencies.js","sourceRoot":"","sources":["../../src/helpers/pinned-dependencies.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAqC;IAC3E,mBAAmB,EAAE,OAAO;CAC7B,CAAC;AAkBF;;;;;GAKG;AACH,MAAM,UAAU,8BAA8B,CAC5C,QAAW;IAEX,MAAM,QAAQ,GAAG,QAAsC,CAAC;IACxD,MAAM,YAAY,GAA4B,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;IAClE,MAAM,qBAAqB,GACzB,QAAQ,CAAC,IAAI,EAAE,SAAS,IAAI,EAAE,CAAC;IAEjC,OAAO;QACL,GAAG,QAAQ;QACX,SAAS,EAAE,EAAE,GAAG,CAAC,QAAQ,CAAC,SAAS,IAAI,EAAE,CAAC,EAAE,GAAG,2BAA2B,EAAE;QAC5E,IAAI,EAAE;YACJ,GAAG,YAAY;YACf,SAAS,EAAE,EAAE,GAAG,qBAAqB,EAAE,GAAG,2BAA2B,EAAE;SACxE;QACD,WAAW,EAAE;YACX,GAAG,CAAC,QAAQ,CAAC,WAAW,IAAI,EAAE,CAAC;YAC/B,GAAG,2BAA2B;SAC/B;KACF,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kya-os/create-mcpi-app",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.1",
|
|
4
4
|
"description": "Scaffold a new MCP-I application",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/helpers/index.js",
|
|
@@ -22,14 +22,6 @@
|
|
|
22
22
|
"types": "./dist/helpers/openapi-ingestion.d.ts",
|
|
23
23
|
"import": "./dist/helpers/openapi-ingestion.js"
|
|
24
24
|
},
|
|
25
|
-
"./helpers/generate-openapi-tools": {
|
|
26
|
-
"types": "./dist/helpers/generate-openapi-tools.d.ts",
|
|
27
|
-
"import": "./dist/helpers/generate-openapi-tools.js"
|
|
28
|
-
},
|
|
29
|
-
"./helpers/generate-openapi-project": {
|
|
30
|
-
"types": "./dist/helpers/generate-openapi-project.d.ts",
|
|
31
|
-
"import": "./dist/helpers/generate-openapi-project.js"
|
|
32
|
-
},
|
|
33
25
|
"./helpers/generate-identity": {
|
|
34
26
|
"types": "./dist/helpers/generate-identity.d.ts",
|
|
35
27
|
"import": "./dist/helpers/generate-identity.js"
|
|
@@ -57,9 +49,9 @@
|
|
|
57
49
|
"@apidevtools/swagger-parser": "^10.1.1",
|
|
58
50
|
"@kya-os/cli": "^1.7.0",
|
|
59
51
|
"@kya-os/cli-effects": "^1.0.19",
|
|
60
|
-
"@kya-os/contracts": "^1.
|
|
61
|
-
"@kya-os/mcp-i": "^1.12.
|
|
62
|
-
"@kya-os/mcp-i-cloudflare": "^1.13.
|
|
52
|
+
"@kya-os/contracts": "^1.12.1",
|
|
53
|
+
"@kya-os/mcp-i": "^1.12.2",
|
|
54
|
+
"@kya-os/mcp-i-cloudflare": "^1.13.6",
|
|
63
55
|
"base-x": "^5.0.0",
|
|
64
56
|
"chalk": "^4.1.2",
|
|
65
57
|
"commander": "^12.1.0",
|