@maudecode/kanvil 0.2.0 → 0.2.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.
@@ -330,6 +330,9 @@ function createAccess(auth, domain, config, database) {
330
330
  };
331
331
  }
332
332
  //#endregion
333
+ //#region src/version.ts
334
+ const applicationVersion = "0.2.1";
335
+ //#endregion
333
336
  //#region src/realtime.ts
334
337
  async function createRealtime(config) {
335
338
  const emitter = new EventEmitter();
@@ -791,7 +794,7 @@ function registerInstanceRoutes(app, database, instance, blobs, search, delivery
791
794
  },
792
795
  deployment: {
793
796
  url: instance.config.KANVIL_URL,
794
- version: "0.1.0",
797
+ version: applicationVersion,
795
798
  oidc: instance.config.OIDC_DISCOVERY_URL ? {
796
799
  name: instance.config.OIDC_NAME,
797
800
  discoveryUrl: instance.config.OIDC_DISCOVERY_URL,
@@ -1013,7 +1016,7 @@ function createMcp(auth, domain, access, config, limitWrite) {
1013
1016
  const serve = (request, identity, limited = false) => createMcpHandler(() => {
1014
1017
  const server = new McpServer({
1015
1018
  name: "Kanvil",
1016
- version: "0.1.0"
1019
+ version: applicationVersion
1017
1020
  });
1018
1021
  for (const name of Object.keys(operations).filter(isOperation)) {
1019
1022
  const spec = operations[name];
@@ -1172,7 +1175,7 @@ async function createApplication(database, config, overrides = {}) {
1172
1175
  name: row.name,
1173
1176
  description: row.description
1174
1177
  })),
1175
- version: "0.1.0",
1178
+ version: applicationVersion,
1176
1179
  authentication: await instance.authentication(),
1177
1180
  setupRequired: await setupRequired(),
1178
1181
  push: config.KANVIL_PUSH_ENABLED,
@@ -1510,7 +1513,7 @@ async function createApplication(database, config, overrides = {}) {
1510
1513
  openapi: "3.1.0",
1511
1514
  info: {
1512
1515
  title: "Kanvil API",
1513
- version: "0.1.0"
1516
+ version: applicationVersion
1514
1517
  },
1515
1518
  servers: [{ url: config.KANVIL_URL }]
1516
1519
  });
package/docs/releasing.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  PRs and `main` pushes run `.github/workflows/ci.yml`. Independent suites and browser/native/Docker matrices run in parallel; only jobs consuming build artifacts wait for the build. The always-running `Checks` status requires every suite to succeed. Releases start on a `vX.Y.Z` tag and reuse that workflow against the tagged commit. Publishing jobs have registry write permissions; PR checks have read-only repository access.
4
4
 
5
- The public npm application package is `@maudecode/kanvil`; the workspace root and internal packages remain private. The release tag supplies the version for both npm and Docker: `v1.2.3` publishes `@maudecode/kanvil@1.2.3` and `ghcr.io/maudecode/kanvil:1.2.3`. No `package.json` version bump is needed. PR and local builds use the development version in `package.json`.
5
+ The public npm application package is `@maudecode/kanvil`; the workspace root and internal packages remain private. The release tag supplies the version for both npm and Docker: `v1.2.3` publishes `@maudecode/kanvil@1.2.3` and `ghcr.io/maudecode/kanvil:1.2.3`. The server build embeds that same version for Administration, public instance info, OpenAPI, and MCP. Installed artifacts need no Git checkout or release environment variables. No `package.json` version bump is needed. PR and local builds use the development version in `package.json`; custom Docker builds pass `--build-arg KANVIL_VERSION=X.Y.Z` to stamp the server and image label together. Native mobile app/store versions remain separate.
6
6
 
7
7
  ## Publish a version
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maudecode/kanvil",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Open-source, self-hosted ticketing for agents and people.",
5
5
  "license": "MIT",
6
6
  "engines": {