@enhance-eng/enhance 0.1.15 → 0.1.16

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/main.mjs CHANGED
@@ -948,6 +948,7 @@ const GUIDE = {
948
948
  workflow: [
949
949
  "Keep the complete selection link as --canvas; only selected nodes and descendants are in scope.",
950
950
  "Unknown state: canvas inspect. When nodeCount=0, use target root and its version to create a populated screen using write-html --review none. No blank pre-render or empty shell.",
951
+ "Multiple screens: publish each populated screen before authoring the next so users see progress. Prepare only what that screen needs; do not prepare the whole set before the first write.",
951
952
  "Existing content: read only missing subtree structure or ids. Reuse useful context and product styles.",
952
953
  "Batch related text, style, rename, duplicate and move changes with canvas edit --edits. Existing focused commands also work.",
953
954
  "Use the version from the latest successful read or write as --base-version. After a conflict, reread and recompute the requested edit.",
@@ -2147,7 +2148,7 @@ const main = async () => {
2147
2148
  const credentials = createFileCredentialAdapter(CLI_CONFIG.configDirectory);
2148
2149
  const mutationKey = createMutationKeyAdapter();
2149
2150
  const cli = createCliProgram({
2150
- version: "0.1.15",
2151
+ version: "0.1.16",
2151
2152
  credentials,
2152
2153
  remote: createHttpRemoteAdapter(CLI_CONFIG.apiUrl, credentials, mutationKey),
2153
2154
  mutationKey,
package/dist/mcp-main.mjs CHANGED
@@ -3,7 +3,7 @@ import { d as createCapabilityCatalogAdapter, m as toCapabilityDefinition } from
3
3
  import { r as CLI_CONFIG } from "./mutation-key.adapter-Bc4p5ff4.mjs";
4
4
  import { t as createFileCredentialAdapter } from "./file-credential.adapter-rI5HpMEo.mjs";
5
5
  import { t as createMcpInvocationAdapter } from "./mcp-invocation.adapter-fYfIiCYu.mjs";
6
- import { t as createMcpServerAdapter } from "./mcp-server.adapter-DsjLVY2s.mjs";
6
+ import { t as createMcpServerAdapter } from "./mcp-server.adapter-C8plL5bs.mjs";
7
7
  import { z } from "zod";
8
8
  import process from "node:process";
9
9
  import { serveStdio } from "@modelcontextprotocol/server/stdio";
@@ -152,7 +152,7 @@ const capabilities = [
152
152
  exampleInput: {},
153
153
  exampleOutput: {
154
154
  status: "ok",
155
- runtimeVersion: "0.1.15",
155
+ runtimeVersion: "0.1.16",
156
156
  api: {
157
157
  reachable: true,
158
158
  status: 200
@@ -167,10 +167,10 @@ const createMcpTransportCapabilityAdapter = () => capabilities;
167
167
  //#endregion
168
168
  //#region src/mcp-main.ts
169
169
  const credentials = createFileCredentialAdapter(CLI_CONFIG.configDirectory);
170
- const invocation = createMcpInvocationAdapter(CLI_CONFIG.apiUrl, credentials, CLI_CONFIG.configDirectory, "0.1.15");
170
+ const invocation = createMcpInvocationAdapter(CLI_CONFIG.apiUrl, credentials, CLI_CONFIG.configDirectory, "0.1.16");
171
171
  const catalog = [...createCapabilityCatalogAdapter(), ...createMcpTransportCapabilityAdapter()];
172
172
  serveStdio(() => createMcpServerAdapter({
173
- version: "0.1.15",
173
+ version: "0.1.16",
174
174
  name: CLI_CONFIG.mcpServiceName,
175
175
  commandName: CLI_CONFIG.commandName,
176
176
  invocation,
@@ -151,7 +151,7 @@ const deliver = async (server, input, action) => {
151
151
  const registerWrite = (server, input) => {
152
152
  if (input.catalog.some((capability) => capability.id === "canvas.writeHtml")) server.registerTool("canvas_write_html", {
153
153
  title: "Design editable canvas content",
154
- description: "Create a populated screen or visual group from safe HTML/CSS. Returns the committed version and root node without an extra read or render. If starting state is unknown, call capability_query with {\"capability\":\"canvas.inspect\",\"input\":{\"canvasId\":\"<UUID from canvas URL>\"}}. When nodeCount is 0, use targetNodeId \"root\" and the returned version. Use flex, padding, gap, concrete inline CSS and layer-name. Give important rows/cards/buttons explicit dimensions; avoid implicit stretch, margins, grid, tables and inline badge backgrounds. Prefer one meaningful screen/group, not an empty shell. Reuse a returned version for subsequent edits; read a targeted subtree only when its ids or structure are unknown. Use canvas_edit for small changes, then canvas_render once at a useful review point. The schema here is executable; no search or describe is required.",
154
+ description: "Create a populated screen or visual group from safe HTML/CSS. For multiple screens, publish the first populated screen before authoring the next, then publish each subsequent screen separately so the user can see and steer progress. Prepare only what that screen needs; do not prepare the whole set before the first write. Returns the committed version and root node without an extra read or render. If starting state is unknown, call capability_query with {\"capability\":\"canvas.inspect\",\"input\":{\"canvasId\":\"<UUID from canvas URL>\"}}. When nodeCount is 0, use targetNodeId \"root\" and the returned version. Use flex, padding, gap, concrete inline CSS and layer-name. Give important rows/cards/buttons explicit dimensions; avoid implicit stretch, margins, grid, tables and inline badge backgrounds. Include real content, not an empty shell. Reuse a returned version for subsequent edits; read a targeted subtree only when its ids or structure are unknown. Use canvas_edit for small changes, then canvas_render once at a useful review point. The schema here is executable; no search or describe is required.",
155
155
  inputSchema: writeSchema,
156
156
  outputSchema: mcpDispatchedResultSchema,
157
157
  annotations: {
package/dist/mcp.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { c as toSharedCapabilities, d as createCapabilityCatalogAdapter } from "./cli-output-identity.lib-F9-nlguI.mjs";
3
3
  import { t as toCapabilityInventory } from "./capability-inventory.mapper-DyYXyVBJ.mjs";
4
- import { t as createMcpServerAdapter } from "./mcp-server.adapter-DsjLVY2s.mjs";
4
+ import { t as createMcpServerAdapter } from "./mcp-server.adapter-C8plL5bs.mjs";
5
5
 
6
6
  export { createCapabilityCatalogAdapter, createMcpServerAdapter as createEnhanceMcpServer, toCapabilityInventory, toSharedCapabilities };
@@ -2,7 +2,7 @@
2
2
  import { X as MCP_AUTH_SCOPE, Y as getMeOutputSchema, d as createCapabilityCatalogAdapter } from "./cli-output-identity.lib-F9-nlguI.mjs";
3
3
  import { i as readRemoteMcpEnvironment, n as createHttpRemoteAdapter, t as createMutationKeyAdapter } from "./mutation-key.adapter-Bc4p5ff4.mjs";
4
4
  import { t as createMcpInvocationAdapter } from "./mcp-invocation.adapter-fYfIiCYu.mjs";
5
- import { t as createMcpServerAdapter } from "./mcp-server.adapter-DsjLVY2s.mjs";
5
+ import { t as createMcpServerAdapter } from "./mcp-server.adapter-C8plL5bs.mjs";
6
6
  import os from "node:os";
7
7
  import process from "node:process";
8
8
  import path from "node:path";
@@ -145,7 +145,7 @@ const server = await createRemoteMcpHttpAdapter({
145
145
  configDirectory: path.join(os.tmpdir(), "enhance-remote-mcp"),
146
146
  allowedHosts: config.MCP_ALLOWED_HOSTS.split(",").map((value) => value.trim()),
147
147
  allowedOrigins: config.MCP_ALLOWED_ORIGINS.split(",").map((value) => value.trim()),
148
- version: "0.1.15",
148
+ version: "0.1.16",
149
149
  onerror: (error) => process.stderr.write(`${error.message}\n`)
150
150
  });
151
151
  await server.listen(config.PORT, config.MCP_HOST);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enhance-eng/enhance",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "private": false,
5
5
  "description": "Agent-first command-line interface for Enhance.",
6
6
  "keywords": [