create-kai 0.1.1 → 0.1.3

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.
Files changed (2) hide show
  1. package/dist/index.js +14 -4
  2. package/package.json +2 -1
package/dist/index.js CHANGED
@@ -3471,6 +3471,7 @@ function buildKaiJson(plan, framework) {
3471
3471
  version: KAI_JSON_VERSION,
3472
3472
  framework: plan.frameworkId,
3473
3473
  kit: plan.kit,
3474
+ kitBuiltAgainst: plan.kitBuiltAgainst,
3474
3475
  layout: plan.layout,
3475
3476
  widgetStyle: plan.widgetStyle,
3476
3477
  features: [...plan.featureIds],
@@ -4221,7 +4222,7 @@ function detectPackageManager(userAgent = process.env.npm_config_user_agent) {
4221
4222
  }
4222
4223
 
4223
4224
  // src/index.ts
4224
- var DEFAULT_KIT_RANGE = `^${"0.24.0"}`;
4225
+ var DEFAULT_KIT_RANGE = "^0.25.1";
4225
4226
  var HELP = `
4226
4227
  ${import_picocolors3.default.bold("create-kai")} \u2014 scaffold a runnable @kitn.ai/ui chat app
4227
4228
 
@@ -4252,7 +4253,7 @@ async function main() {
4252
4253
  return 0;
4253
4254
  }
4254
4255
  if (args.version) {
4255
- console.log("0.1.1");
4256
+ console.log("0.1.3");
4256
4257
  return 0;
4257
4258
  }
4258
4259
  if (args.list) {
@@ -4342,7 +4343,12 @@ async function main() {
4342
4343
  widgetStyle: null,
4343
4344
  featureIds,
4344
4345
  gatewayId,
4345
- kit: args.kit ?? DEFAULT_KIT_RANGE
4346
+ kit: args.kit ?? DEFAULT_KIT_RANGE,
4347
+ // NOT `args.kit`, deliberately, and not derived from it either. This records
4348
+ // which kit the CLI was built against, which stays true when `--kit` sends
4349
+ // the dependency somewhere else — the emitted files are this version's shape
4350
+ // whatever the project ends up installing.
4351
+ kitBuiltAgainst: "0.25.1"
4346
4352
  };
4347
4353
  const spinner = Y2();
4348
4354
  spinner.start("Scaffolding");
@@ -4408,8 +4414,12 @@ function run(command, cwd) {
4408
4414
  }
4409
4415
  function printMatrix(asJson) {
4410
4416
  const matrix = {
4411
- cli: "0.1.1",
4417
+ cli: "0.1.3",
4412
4418
  kit: DEFAULT_KIT_RANGE,
4419
+ // The same pair `kai.json` carries. An agent reading this to decide what to
4420
+ // install gets the range; one reasoning about which kit the templates match
4421
+ // gets the exact version, without having to parse the range for a floor.
4422
+ kitBuiltAgainst: "0.25.1",
4413
4423
  frameworks: FRAMEWORKS.map((f) => ({
4414
4424
  id: f.id,
4415
4425
  label: f.label,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-kai",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "description": "Scaffold a runnable @kitn.ai/ui chat app. `npm create kai@latest`",
6
6
  "license": "MIT",
@@ -54,6 +54,7 @@
54
54
  "test": "vitest run",
55
55
  "test:watch": "vitest",
56
56
  "verify:pack": "node scripts/verify-pack.mjs",
57
+ "verify:pin": "node scripts/verify-pin.mjs",
57
58
  "smoke": "node scripts/smoke.mjs"
58
59
  },
59
60
  "devDependencies": {