@nifrajs/cli 1.5.0 → 1.6.0

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/dist/cli.js CHANGED
@@ -75,7 +75,7 @@ routes/ from the current directory. Run from your project root.
75
75
  Port: \`dev\` and \`start\` share the default ${DEFAULT_DEV_PORT}. Override with \`--port <n>\` (alias \`-p\`) or the
76
76
  \`PORT\` env var (\`--port\` wins over \`PORT\`, which wins over the default).`;
77
77
  // Kept in lockstep with packages/cli/package.json by check:publish's version-consistency gate.
78
- const CLI_VERSION = "1.5.0";
78
+ const CLI_VERSION = "1.6.0";
79
79
  // A render adapter + nifra server are opaque to the CLI (it just forwards them); cast at the seam.
80
80
  const asAdapter = (v) => v;
81
81
  const asBunPlugins = (v) => v;
package/dist/mcp-http.js CHANGED
@@ -19,7 +19,7 @@ import { loadTypesCorpus } from "./types-search.js";
19
19
  // tool factory + the transport core from one entry: `import { respondMcpHttp, docsTools } from "@nifrajs/cli/mcp"`.
20
20
  export { docsTools } from "./mcp-docs-tools.js";
21
21
  // Kept in lockstep with packages/cli/package.json by check:publish's version-consistency gate.
22
- const VERSION = "1.5.0";
22
+ const VERSION = "1.6.0";
23
23
  const SERVER_INFO = { name: "nifra-docs", version: VERSION };
24
24
  const DOCS_HEALTH = "nifra docs MCP — POST JSON-RPC 2.0 here (methods: initialize, tools/list, tools/call). Tools: nifra_docs, nifra_example.";
25
25
  /** The two project-independent tools, reading the package's bundled corpus from disk (CLI use). */
package/docs/types.json CHANGED
@@ -31,7 +31,7 @@
31
31
  "name": "ActiveObservation",
32
32
  "kind": "interface",
33
33
  "package": "@nifrajs/otel",
34
- "signature": "export interface ActiveObservation {\n readonly span: NifraSpan;\n readonly context: ObservationContext;\n /** Adds a sink to this in-flight span. Re-adding the same adapter is idempotent. */\n addAdapter(adapter: ObservationAdapter): void;\n /** Starts a child that inherits this span's trace identity and sampling decision. */\n startChild(input: Omit<StartObservation, \"parent\" | \"traceparent\">, additionalAdapters?: readonly ObservationAdapter[]): ActiveObservation;\n /** Records failure evidence without deciding the final status until the response is known. */\n recordError(error: unknown): void;\n /** Ends and exports once. Repeated calls return the same completed span without notifying again. */\n end(input?: EndObservation): NifraSpan;\n}"
34
+ "signature": "export interface ActiveObservation {\n readonly span: NifraSpan;\n readonly context: ObservationContext;\n /** Adds a sink to this in-flight span. Re-adding the same adapter is idempotent. */\n addAdapter(adapter: ObservationAdapter): void;\n /** Starts a child that inherits this span's trace identity and sampling decision. */\n startChild(input: Omit<StartObservation, \"parent\" | \"traceparent\">, additionalAdapters?: readonly ObservationAdapter[]): ActiveObservation;\n /**\n * Merge attributes onto the in-flight span — the seam for plugins that learn something mid-request\n * (an authenticated principal, a feature-flag bucket, a cache verdict) after the span opened.\n * Silently ignored once the observation has ended (the exported span is immutable).\n */\n setAttributes(attributes: Readonly<Record<string, AttributeValue>>): void;\n /** Records failure evidence without deciding the final status until the response is known. */\n recordError(error: unknown): void;\n /** Ends and exports once. Repeated calls return the same completed span without notifying again. */\n end(input?: EndObservation): NifraSpan;\n}"
35
35
  },
36
36
  {
37
37
  "name": "AddRoute",
@@ -7273,7 +7273,7 @@
7273
7273
  "name": "VERSION",
7274
7274
  "kind": "const",
7275
7275
  "package": "@nifrajs/core",
7276
- "signature": "export declare const VERSION: \"1.5.0\";",
7276
+ "signature": "export declare const VERSION: \"1.6.0\";",
7277
7277
  "doc": "/**\n * Current package version. A hardcoded literal on purpose — core runs on the edge (no fs), so it can't\n * read its own package.json at runtime. `scripts/version.ts` rewrites it on every release bump and\n * `check:publish` asserts it equals `@nifrajs/core`'s package version, so the literal can't go stale\n * (it shipped at \"0.0.0\" through 1.0.0 before those guards existed). Kept narrow (`as const`) so\n * consumers can pin it at the type level — see `test/version.test-d.ts`.\n */"
7278
7278
  },
7279
7279
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nifrajs/cli",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "The nifra CLI — zero-config dev/build/start for a nifra app (`nifra dev`, `nifra build`, `nifra start`).",
5
5
  "keywords": [
6
6
  "bun",
@@ -41,13 +41,13 @@
41
41
  "access": "public"
42
42
  },
43
43
  "dependencies": {
44
- "@nifrajs/client": "1.5.0",
45
- "@nifrajs/core": "1.5.0",
46
- "@nifrajs/mcp": "1.5.0",
47
- "@nifrajs/runner": "1.5.0",
48
- "@nifrajs/schema": "1.5.0",
49
- "@nifrajs/web": "1.5.0",
50
- "create-nifra": "1.5.0"
44
+ "@nifrajs/client": "1.6.0",
45
+ "@nifrajs/core": "1.6.0",
46
+ "@nifrajs/mcp": "1.6.0",
47
+ "@nifrajs/runner": "1.6.0",
48
+ "@nifrajs/schema": "1.6.0",
49
+ "@nifrajs/web": "1.6.0",
50
+ "create-nifra": "1.6.0"
51
51
  },
52
52
  "repository": {
53
53
  "type": "git",
package/src/cli.ts CHANGED
@@ -89,7 +89,7 @@ Port: \`dev\` and \`start\` share the default ${DEFAULT_DEV_PORT}. Override with
89
89
  \`PORT\` env var (\`--port\` wins over \`PORT\`, which wins over the default).`
90
90
 
91
91
  // Kept in lockstep with packages/cli/package.json by check:publish's version-consistency gate.
92
- const CLI_VERSION = "1.5.0"
92
+ const CLI_VERSION = "1.6.0"
93
93
 
94
94
  // A render adapter + nifra server are opaque to the CLI (it just forwards them); cast at the seam.
95
95
  const asAdapter = (v: unknown): RenderAdapter => v as RenderAdapter
package/src/mcp-http.ts CHANGED
@@ -26,7 +26,7 @@ export { docsTools } from "./mcp-docs-tools.ts"
26
26
  export type { TypeEntry } from "./types-search.ts"
27
27
 
28
28
  // Kept in lockstep with packages/cli/package.json by check:publish's version-consistency gate.
29
- const VERSION = "1.5.0"
29
+ const VERSION = "1.6.0"
30
30
  const SERVER_INFO = { name: "nifra-docs", version: VERSION }
31
31
  const DOCS_HEALTH =
32
32
  "nifra docs MCP — POST JSON-RPC 2.0 here (methods: initialize, tools/list, tools/call). Tools: nifra_docs, nifra_example."