@keystrokehq/neuronwriter 0.1.5 → 0.1.6

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.
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["neuronwriter","executeNeuronwriterTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { neuronwriter } from \"./app\";\nimport { executeNeuronwriterTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return neuronwriter.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeNeuronwriterTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,aAAa,OAAO;EACzB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,wBAAwB,MAAM,KAAgC,CAAC;EAC/F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["neuronwriter","executeNeuronwriterTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { neuronwriter } from \"./app\";\nimport { executeNeuronwriterTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof neuronwriter.credential> {\n return neuronwriter.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeNeuronwriterTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAO4D;CAC5D,OAAOA,YAAAA,aAAa,OAAO;EACzB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,wBAAwB,MAAM,KAAgC,CAAC;EAC/F;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { neuronwriter } from \"./app\";\nimport { executeNeuronwriterTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return neuronwriter.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeNeuronwriterTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,aAAa,OAAO;EACzB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,wBAAwB,MAAM,KAAgC,CAAC;EAC/F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { neuronwriter } from \"./app\";\nimport { executeNeuronwriterTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof neuronwriter.credential> {\n return neuronwriter.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeNeuronwriterTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAO4D;CAC5D,OAAO,aAAa,OAAO;EACzB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,wBAAwB,MAAM,KAAgC,CAAC;EAC/F;CACF,CAAC;AACH"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/import-content.ts
@@ -1 +1 @@
1
- {"version":3,"file":"import-content.cjs","names":["z","action"],"sources":["../../src/actions/import-content.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeuronwriterImportContentInput = z.object({\n id: z.string().describe(\"When using URL, the id of the container that holds the content.\").optional(),\n url: z.string().describe(\"URL to import and parse content from. Required if 'html' not provided.\").optional(),\n html: z.string().describe(\"HTML content to import. Required if 'url' not provided.\").optional(),\n query: z.string().describe(\"The ID of your query.\"),\n title: z.string().describe(\"Title of your article; overwrites title from HTML/URL if provided.\").optional(),\n accept: z.string().describe(\"Override Accept header (defaults to application/json).\").optional(),\n api_key: z.string().describe(\"Override X-API-KEY header for authentication.\").optional(),\n description: z.string().describe(\"Meta description; overwrites description from HTML/URL if provided.\").optional(),\n content_type: z.string().describe(\"Override Content-Type header (defaults to application/json).\").optional(),\n extra_headers: z.record(z.string(), z.unknown()).describe(\"Additional headers to merge into the request (for testing).\").optional(),\n container_class: z.string().describe(\"When using URL, the class of the container that holds the content.\").optional(),\n});\nexport const NeuronwriterImportContentOutput = z.object({\n error: z.string().describe(\"Error message if import fails.\").nullable().optional(),\n status: z.string().describe(\"Import status (e.g., 'ok').\").nullable(),\n content_score: z.number().describe(\"Content score returned after import, if available.\").nullable().optional(),\n}).passthrough();\n\nexport const neuronwriterImportContent = action(\"NEURONWRITER_IMPORT_CONTENT\", {\n slug: \"neuronwriter-import-content\",\n name: \"Import Content\",\n description: \"Tool to import content into the editor. Use when updating editor content via HTML or URL.\",\n input: NeuronwriterImportContentInput,\n output: NeuronwriterImportContentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACpG,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAC5G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CAClD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC1G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC/F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACvF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACjH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC3G,eAAeA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAClI,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AACtH,CAAC;AACD,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACpE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,4BAA4BC,eAAAA,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"import-content.cjs","names":["z","action"],"sources":["../../src/actions/import-content.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { neuronwriter } from \"../app\";\n\nexport const NeuronwriterImportContentInput = z.object({\n id: z.string().describe(\"When using URL, the id of the container that holds the content.\").optional(),\n url: z.string().describe(\"URL to import and parse content from. Required if 'html' not provided.\").optional(),\n html: z.string().describe(\"HTML content to import. Required if 'url' not provided.\").optional(),\n query: z.string().describe(\"The ID of your query.\"),\n title: z.string().describe(\"Title of your article; overwrites title from HTML/URL if provided.\").optional(),\n accept: z.string().describe(\"Override Accept header (defaults to application/json).\").optional(),\n api_key: z.string().describe(\"Override X-API-KEY header for authentication.\").optional(),\n description: z.string().describe(\"Meta description; overwrites description from HTML/URL if provided.\").optional(),\n content_type: z.string().describe(\"Override Content-Type header (defaults to application/json).\").optional(),\n extra_headers: z.record(z.string(), z.unknown()).describe(\"Additional headers to merge into the request (for testing).\").optional(),\n container_class: z.string().describe(\"When using URL, the class of the container that holds the content.\").optional(),\n});\nexport const NeuronwriterImportContentOutput = z.object({\n error: z.string().describe(\"Error message if import fails.\").nullable().optional(),\n status: z.string().describe(\"Import status (e.g., 'ok').\").nullable(),\n content_score: z.number().describe(\"Content score returned after import, if available.\").nullable().optional(),\n}).passthrough();\n\nexport const neuronwriterImportContent: AppAction<\n typeof NeuronwriterImportContentInput,\n typeof NeuronwriterImportContentOutput,\n typeof neuronwriter.credential\n> = action(\"NEURONWRITER_IMPORT_CONTENT\", {\n slug: \"neuronwriter-import-content\",\n name: \"Import Content\",\n description: \"Tool to import content into the editor. Use when updating editor content via HTML or URL.\",\n input: NeuronwriterImportContentInput,\n output: NeuronwriterImportContentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACpG,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAC5G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CAClD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC1G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC/F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACvF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACjH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC3G,eAAeA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAClI,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AACtH,CAAC;AACD,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACpE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,4BAITC,eAAAA,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { neuronwriter } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/import-content.d.ts
@@ -19,31 +21,7 @@ declare const NeuronwriterImportContentOutput: z.ZodObject<{
19
21
  status: z.ZodNullable<z.ZodString>;
20
22
  content_score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
23
  }, z.core.$loose>;
22
- declare const neuronwriterImportContent: import("@keystrokehq/action").WorkflowActionDefinition<{
23
- query: string;
24
- id?: string | undefined;
25
- url?: string | undefined;
26
- html?: string | undefined;
27
- title?: string | undefined;
28
- accept?: string | undefined;
29
- api_key?: string | undefined;
30
- description?: string | undefined;
31
- content_type?: string | undefined;
32
- extra_headers?: Record<string, unknown> | undefined;
33
- container_class?: string | undefined;
34
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"neuronwriter", z.ZodObject<{
35
- connectionId: z.ZodString;
36
- entityId: z.ZodString;
37
- instanceId: z.ZodString;
38
- }, z.core.$strip>, z.ZodObject<{
39
- generic_api_key: z.ZodString;
40
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"neuronwriter", z.ZodObject<{
41
- connectionId: z.ZodString;
42
- entityId: z.ZodString;
43
- instanceId: z.ZodString;
44
- }, z.core.$strip>, z.ZodObject<{
45
- generic_api_key: z.ZodString;
46
- }, z.core.$strip>>]>;
24
+ declare const neuronwriterImportContent: AppAction<typeof NeuronwriterImportContentInput, typeof NeuronwriterImportContentOutput, typeof neuronwriter.credential>;
47
25
  //#endregion
48
26
  export { neuronwriterImportContent };
49
27
  //# sourceMappingURL=import-content.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"import-content.d.cts","names":[],"sources":["../../src/actions/import-content.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAa9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAM/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"import-content.d.cts","names":[],"sources":["../../src/actions/import-content.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAa9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAM/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,YAAA,CAAa,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { neuronwriter } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/import-content.d.ts
@@ -19,31 +21,7 @@ declare const NeuronwriterImportContentOutput: z.ZodObject<{
19
21
  status: z.ZodNullable<z.ZodString>;
20
22
  content_score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
23
  }, z.core.$loose>;
22
- declare const neuronwriterImportContent: import("@keystrokehq/action").WorkflowActionDefinition<{
23
- query: string;
24
- id?: string | undefined;
25
- url?: string | undefined;
26
- html?: string | undefined;
27
- title?: string | undefined;
28
- accept?: string | undefined;
29
- api_key?: string | undefined;
30
- description?: string | undefined;
31
- content_type?: string | undefined;
32
- extra_headers?: Record<string, unknown> | undefined;
33
- container_class?: string | undefined;
34
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"neuronwriter", z.ZodObject<{
35
- connectionId: z.ZodString;
36
- entityId: z.ZodString;
37
- instanceId: z.ZodString;
38
- }, z.core.$strip>, z.ZodObject<{
39
- generic_api_key: z.ZodString;
40
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"neuronwriter", z.ZodObject<{
41
- connectionId: z.ZodString;
42
- entityId: z.ZodString;
43
- instanceId: z.ZodString;
44
- }, z.core.$strip>, z.ZodObject<{
45
- generic_api_key: z.ZodString;
46
- }, z.core.$strip>>]>;
24
+ declare const neuronwriterImportContent: AppAction<typeof NeuronwriterImportContentInput, typeof NeuronwriterImportContentOutput, typeof neuronwriter.credential>;
47
25
  //#endregion
48
26
  export { neuronwriterImportContent };
49
27
  //# sourceMappingURL=import-content.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"import-content.d.mts","names":[],"sources":["../../src/actions/import-content.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAa9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAM/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"import-content.d.mts","names":[],"sources":["../../src/actions/import-content.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAa9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAM/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,YAAA,CAAa,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const neuronwriterImportContent = action("NEURONWRITER_IMPORT_CONTENT", {
@@ -1 +1 @@
1
- {"version":3,"file":"import-content.mjs","names":[],"sources":["../../src/actions/import-content.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeuronwriterImportContentInput = z.object({\n id: z.string().describe(\"When using URL, the id of the container that holds the content.\").optional(),\n url: z.string().describe(\"URL to import and parse content from. Required if 'html' not provided.\").optional(),\n html: z.string().describe(\"HTML content to import. Required if 'url' not provided.\").optional(),\n query: z.string().describe(\"The ID of your query.\"),\n title: z.string().describe(\"Title of your article; overwrites title from HTML/URL if provided.\").optional(),\n accept: z.string().describe(\"Override Accept header (defaults to application/json).\").optional(),\n api_key: z.string().describe(\"Override X-API-KEY header for authentication.\").optional(),\n description: z.string().describe(\"Meta description; overwrites description from HTML/URL if provided.\").optional(),\n content_type: z.string().describe(\"Override Content-Type header (defaults to application/json).\").optional(),\n extra_headers: z.record(z.string(), z.unknown()).describe(\"Additional headers to merge into the request (for testing).\").optional(),\n container_class: z.string().describe(\"When using URL, the class of the container that holds the content.\").optional(),\n});\nexport const NeuronwriterImportContentOutput = z.object({\n error: z.string().describe(\"Error message if import fails.\").nullable().optional(),\n status: z.string().describe(\"Import status (e.g., 'ok').\").nullable(),\n content_score: z.number().describe(\"Content score returned after import, if available.\").nullable().optional(),\n}).passthrough();\n\nexport const neuronwriterImportContent = action(\"NEURONWRITER_IMPORT_CONTENT\", {\n slug: \"neuronwriter-import-content\",\n name: \"Import Content\",\n description: \"Tool to import content into the editor. Use when updating editor content via HTML or URL.\",\n input: NeuronwriterImportContentInput,\n output: NeuronwriterImportContentOutput,\n});\n"],"mappings":";;AAuBA,MAAa,4BAA4B,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvB4C,EAAE,OAAO;EACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EACpG,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;EAC5G,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EAC9F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EAClD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;EAC1G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EAC/F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACvF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EACjH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EAC3G,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EAClI,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACtH,CAWS;CACP,QAX6C,EAAE,OAAO;EACtD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACpE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"import-content.mjs","names":[],"sources":["../../src/actions/import-content.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { neuronwriter } from \"../app\";\n\nexport const NeuronwriterImportContentInput = z.object({\n id: z.string().describe(\"When using URL, the id of the container that holds the content.\").optional(),\n url: z.string().describe(\"URL to import and parse content from. Required if 'html' not provided.\").optional(),\n html: z.string().describe(\"HTML content to import. Required if 'url' not provided.\").optional(),\n query: z.string().describe(\"The ID of your query.\"),\n title: z.string().describe(\"Title of your article; overwrites title from HTML/URL if provided.\").optional(),\n accept: z.string().describe(\"Override Accept header (defaults to application/json).\").optional(),\n api_key: z.string().describe(\"Override X-API-KEY header for authentication.\").optional(),\n description: z.string().describe(\"Meta description; overwrites description from HTML/URL if provided.\").optional(),\n content_type: z.string().describe(\"Override Content-Type header (defaults to application/json).\").optional(),\n extra_headers: z.record(z.string(), z.unknown()).describe(\"Additional headers to merge into the request (for testing).\").optional(),\n container_class: z.string().describe(\"When using URL, the class of the container that holds the content.\").optional(),\n});\nexport const NeuronwriterImportContentOutput = z.object({\n error: z.string().describe(\"Error message if import fails.\").nullable().optional(),\n status: z.string().describe(\"Import status (e.g., 'ok').\").nullable(),\n content_score: z.number().describe(\"Content score returned after import, if available.\").nullable().optional(),\n}).passthrough();\n\nexport const neuronwriterImportContent: AppAction<\n typeof NeuronwriterImportContentInput,\n typeof NeuronwriterImportContentOutput,\n typeof neuronwriter.credential\n> = action(\"NEURONWRITER_IMPORT_CONTENT\", {\n slug: \"neuronwriter-import-content\",\n name: \"Import Content\",\n description: \"Tool to import content into the editor. Use when updating editor content via HTML or URL.\",\n input: NeuronwriterImportContentInput,\n output: NeuronwriterImportContentOutput,\n});\n"],"mappings":";;;AAyBA,MAAa,4BAIT,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3B4C,EAAE,OAAO;EACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EACpG,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;EAC5G,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EAC9F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EAClD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;EAC1G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EAC/F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACvF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EACjH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EAC3G,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EAClI,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACtH,CAeS;CACP,QAf6C,EAAE,OAAO;EACtD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACpE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
package/dist/app.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
2
- let zod = require("zod");
3
2
  //#region src/app.ts
3
+ const credential = { generic_api_key: require("zod").z.string() };
4
4
  const neuronwriter = (0, _keystrokehq_keystroke_app.defineApp)({
5
5
  slug: "neuronwriter",
6
6
  auth: "keystroke",
7
- credential: { generic_api_key: zod.z.string() }
7
+ credential
8
8
  });
9
9
  //#endregion
10
10
  exports.neuronwriter = neuronwriter;
package/dist/app.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const neuronwriter = defineApp({\n slug: \"neuronwriter\",\n auth: \"keystroke\",\n credential: {\n generic_api_key: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,gBAAA,GAAA,2BAAA,UAAA,CAAyB;CACpC,MAAM;CACN,MAAM;CACN,YAAY,EACV,iBAAiBA,IAAAA,EAAE,OAAO,EAC5B;AACF,CAAC"}
1
+ {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const neuronwriter: KeystrokeApp<\"neuronwriter\", typeof credential> = defineApp({\n slug: \"neuronwriter\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,8BAAiBA,CAAAA,CAAAA,EAAE,OAAO,EAC5B;AAEA,MAAa,gBAAA,GAAA,2BAAA,UAAA,CAA0E;CACrF,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
package/dist/app.d.cts CHANGED
@@ -1,13 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
1
2
  import { z } from "zod";
2
3
 
3
4
  //#region src/app.d.ts
4
- declare const neuronwriter: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"neuronwriter", z.ZodObject<{
5
- connectionId: z.ZodString;
6
- entityId: z.ZodString;
7
- instanceId: z.ZodString;
8
- }, z.core.$strip>, z.ZodObject<{
5
+ declare const credential: {
9
6
  generic_api_key: z.ZodString;
10
- }, z.core.$strip>>>;
7
+ };
8
+ declare const neuronwriter: KeystrokeApp<"neuronwriter", typeof credential>;
11
9
  //#endregion
12
10
  export { neuronwriter };
13
11
  //# sourceMappingURL=app.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,YAAA,6BAAY,GAAA,+BAAA,UAAA,iBAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,YAAA,EAAc,YAAY,wBAAwB,UAAA"}
package/dist/app.d.mts CHANGED
@@ -1,13 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
1
2
  import { z } from "zod";
2
3
 
3
4
  //#region src/app.d.ts
4
- declare const neuronwriter: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"neuronwriter", z.ZodObject<{
5
- connectionId: z.ZodString;
6
- entityId: z.ZodString;
7
- instanceId: z.ZodString;
8
- }, z.core.$strip>, z.ZodObject<{
5
+ declare const credential: {
9
6
  generic_api_key: z.ZodString;
10
- }, z.core.$strip>>>;
7
+ };
8
+ declare const neuronwriter: KeystrokeApp<"neuronwriter", typeof credential>;
11
9
  //#endregion
12
10
  export { neuronwriter };
13
11
  //# sourceMappingURL=app.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,YAAA,6BAAY,GAAA,+BAAA,UAAA,iBAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,YAAA,EAAc,YAAY,wBAAwB,UAAA"}
package/dist/app.mjs CHANGED
@@ -1,6 +1,5 @@
1
1
  import { defineApp } from "@keystrokehq/keystroke/app";
2
2
  import { z } from "zod";
3
- //#region src/app.ts
4
3
  const neuronwriter = defineApp({
5
4
  slug: "neuronwriter",
6
5
  auth: "keystroke",
package/dist/app.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const neuronwriter = defineApp({\n slug: \"neuronwriter\",\n auth: \"keystroke\",\n credential: {\n generic_api_key: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,eAAe,UAAU;CACpC,MAAM;CACN,MAAM;CACN,YAAY,EACV,iBAAiB,EAAE,OAAO,EAC5B;AACF,CAAC"}
1
+ {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const neuronwriter: KeystrokeApp<\"neuronwriter\", typeof credential> = defineApp({\n slug: \"neuronwriter\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,eAAgE,UAAU;CACrF,MAAM;CACN,MAAM;CACN,cANA,iBAAiB,EAAE,OAAO,EAM1B;AACF,CAAC"}
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { neuronwriterImportContent } from "./actions/import-content.cjs";
2
1
  import { neuronwriter } from "./app.cjs";
2
+ import { neuronwriterImportContent } from "./actions/import-content.cjs";
3
3
  import { neuronwriterCatalog } from "./catalog.cjs";
4
4
  export { neuronwriter, neuronwriterCatalog, neuronwriterImportContent };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { neuronwriterImportContent } from "./actions/import-content.mjs";
2
1
  import { neuronwriter } from "./app.mjs";
2
+ import { neuronwriterImportContent } from "./actions/import-content.mjs";
3
3
  import { neuronwriterCatalog } from "./catalog.mjs";
4
4
  export { neuronwriter, neuronwriterCatalog, neuronwriterImportContent };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/neuronwriter",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  "peerDependencies": {
34
- "@keystrokehq/keystroke": ">=0.1.4",
34
+ "@keystrokehq/keystroke": ">=0.1.104",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {