katanakit-js 2.14.1 → 2.14.2

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/README.md +3 -3
  2. package/package.json +7 -6
package/README.md CHANGED
@@ -195,7 +195,7 @@ await usePost("myApi", "upload", form);
195
195
 
196
196
  ### Full example
197
197
 
198
- See [`examples/api-manager/demo.ts`](examples/api-manager/) for a runnable demo
198
+ See [`examples/api-manager/demo.ts`](https://github.com/senseikatana/katanakit-js/tree/main/examples/api-manager) for a runnable demo
199
199
  covering all CRUD operations, auth injection, URL building, and error handling
200
200
  against a real API (JSONPlaceholder).
201
201
 
@@ -291,7 +291,7 @@ Also on the main barrel:
291
291
  | `useResetSession` | `(sessionId) => Promise<void>` |
292
292
  | `useCreateMemoryStore` | `() => ConversationStore` |
293
293
 
294
- Then start a channel (see below). Copy keys from [`.env.example`](.env.example):
294
+ Then start a channel (see below). Copy keys from [`.env.example`](https://github.com/senseikatana/katanakit-js/blob/main/.env.example):
295
295
 
296
296
  ```env
297
297
  DASHSCOPE_API_KEY=
@@ -426,7 +426,7 @@ owns the database, run `prisma contract emit` then `prisma db init` in that app.
426
426
 
427
427
  ### Real use case
428
428
 
429
- [`examples/assistant/`](examples/assistant/) is a generic digital assistant with two demo tools:
429
+ [`examples/assistant/`](https://github.com/senseikatana/katanakit-js/tree/main/examples/assistant) is a generic digital assistant with two demo tools:
430
430
  `readFile` on `knowledge-base.md` and `saveNote` to `notes.jsonl`.
431
431
 
432
432
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "katanakit-js",
3
- "version": "2.14.1",
3
+ "version": "2.14.2",
4
4
  "description": "KatanaKit — a sharp, framework-agnostic TypeScript service toolkit organized with hexagonal architecture.",
5
5
  "type": "module",
6
6
  "workspaces": [
@@ -75,15 +75,16 @@
75
75
  "assistant:demo": "tsx examples/assistant/demo.ts",
76
76
  "api:demo": "tsx examples/api-manager/demo.ts",
77
77
  "clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
78
- "check": "biome check ./src && tsc --noEmit && vitest run",
79
- "fix": "biome check --write ./src && tsc --noEmit && vitest run",
78
+ "check": "biome check ./src ./scripts && tsc --noEmit && vitest run",
79
+ "fix": "biome check --write ./src ./scripts && tsc --noEmit && vitest run",
80
80
  "build": "yarn clean && yarn run check && tsc -p tsconfig.json",
81
81
  "bump:patch": "yarn version patch --all && git commit -am \"chore: release v$(node -p \"require('./package.json').version\")\" && git tag \"v$(node -p \"require('./package.json').version\")\"",
82
82
  "bump:minor": "yarn version minor --all && git commit -am \"chore: release v$(node -p \"require('./package.json').version\")\" && git tag \"v$(node -p \"require('./package.json').version\")\"",
83
83
  "bump:major": "yarn version major --all && git commit -am \"chore: release v$(node -p \"require('./package.json').version\")\" && git tag \"v$(node -p \"require('./package.json').version\")\"",
84
- "release": "yarn build && yarn bump:patch && npm publish --access public && git push && git push --tags && gh release create \"v$(node -p \"require('./package.json').version\")\" --generate-notes",
85
- "release:minor": "yarn build && yarn bump:minor && npm publish --access public && git push && git push --tags && gh release create \"v$(node -p \"require('./package.json').version\")\" --generate-notes",
86
- "release:major": "yarn build && yarn bump:major && npm publish --access public && git push && git push --tags && gh release create \"v$(node -p \"require('./package.json').version\")\" --generate-notes",
84
+ "release": "yarn build && yarn bump:patch && npm publish --access public && git push && git push --tags && node scripts/generate-release-notes.mjs \"v$(node -p \"require('./package.json').version\")\" | gh release create \"v$(node -p \"require('./package.json').version\")\" --notes-file -",
85
+ "release:minor": "yarn build && yarn bump:minor && npm publish --access public && git push && git push --tags && node scripts/generate-release-notes.mjs \"v$(node -p \"require('./package.json').version\")\" | gh release create \"v$(node -p \"require('./package.json').version\")\" --notes-file -",
86
+ "release:major": "yarn build && yarn bump:major && npm publish --access public && git push && git push --tags && node scripts/generate-release-notes.mjs \"v$(node -p \"require('./package.json').version\")\" | gh release create \"v$(node -p \"require('./package.json').version\")\" --notes-file -",
87
+ "notes": "node scripts/generate-release-notes.mjs",
87
88
  "version:sync": "node -e \"const v=require('child_process').execSync('git tag --sort=-v:refname').toString().split('\\n')[0].replace('v',''); ['package.json','docs/package.json'].forEach(f=>{const p=require('./'+f); p.version=v; require('fs').writeFileSync(f,JSON.stringify(p,null,2)+'\\n')}); console.log('Synced to v'+v)\"",
88
89
  "docs:dev": "yarn workspace katanakit-docs run dev",
89
90
  "docs:build": "yarn workspace katanakit-docs run build",