@keystrokehq/neuronwriter 0.1.0 → 0.1.3

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(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\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,\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 { 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 +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(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\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,\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 { 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"}
@@ -11,14 +11,14 @@ const NeuronwriterImportContentInput = zod.z.object({
11
11
  api_key: zod.z.string().describe("Override X-API-KEY header for authentication.").optional(),
12
12
  description: zod.z.string().describe("Meta description; overwrites description from HTML/URL if provided.").optional(),
13
13
  content_type: zod.z.string().describe("Override Content-Type header (defaults to application/json).").optional(),
14
- extra_headers: zod.z.object({}).describe("Additional headers to merge into the request (for testing).").optional(),
14
+ extra_headers: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional headers to merge into the request (for testing).").optional(),
15
15
  container_class: zod.z.string().describe("When using URL, the class of the container that holds the content.").optional()
16
16
  });
17
17
  const NeuronwriterImportContentOutput = zod.z.object({
18
18
  error: zod.z.string().describe("Error message if import fails.").nullable().optional(),
19
- status: zod.z.string().describe("Import status (e.g., 'ok')."),
19
+ status: zod.z.string().describe("Import status (e.g., 'ok').").nullable(),
20
20
  content_score: zod.z.number().describe("Content score returned after import, if available.").nullable().optional()
21
- });
21
+ }).passthrough();
22
22
  const neuronwriterImportContent = require_action.action("NEURONWRITER_IMPORT_CONTENT", {
23
23
  slug: "neuronwriter-import-content",
24
24
  name: "Import Content",
@@ -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.ZodTypeAny = 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.object({}).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.ZodTypeAny = z.object({\n error: z.string().describe(\"Error message if import fails.\").nullable().optional(),\n status: z.string().describe(\"Import status (e.g., 'ok').\"),\n content_score: z.number().describe(\"Content score returned after import, if available.\").nullable().optional(),\n});\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,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,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,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAC7G,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AACtH,CAAC;AACD,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACzD,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC;AAED,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 { 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,9 +1,37 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/import-content.d.ts
4
- declare const NeuronwriterImportContentInput: z.ZodTypeAny;
5
- declare const NeuronwriterImportContentOutput: z.ZodTypeAny;
6
- declare const neuronwriterImportContent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NeuronwriterImportContentInput: z.ZodObject<{
5
+ id: z.ZodOptional<z.ZodString>;
6
+ url: z.ZodOptional<z.ZodString>;
7
+ html: z.ZodOptional<z.ZodString>;
8
+ query: z.ZodString;
9
+ title: z.ZodOptional<z.ZodString>;
10
+ accept: z.ZodOptional<z.ZodString>;
11
+ api_key: z.ZodOptional<z.ZodString>;
12
+ description: z.ZodOptional<z.ZodString>;
13
+ content_type: z.ZodOptional<z.ZodString>;
14
+ extra_headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
15
+ container_class: z.ZodOptional<z.ZodString>;
16
+ }, z.core.$strip>;
17
+ declare const NeuronwriterImportContentOutput: z.ZodObject<{
18
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ status: z.ZodNullable<z.ZodString>;
20
+ content_score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
+ }, 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]>, readonly [import("@keystrokehq/shared").Credential]>;
7
35
  //#endregion
8
36
  export { neuronwriterImportContent };
9
37
  //# 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,EAAgC,CAAA,CAAE,UAY7C;AAAA,cACW,+BAAA,EAAiC,CAAA,CAAE,UAI9C;AAAA,cAEW,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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;;;;;;;;;;kBAMpC,MAAA"}
@@ -1,9 +1,37 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/import-content.d.ts
4
- declare const NeuronwriterImportContentInput: z.ZodTypeAny;
5
- declare const NeuronwriterImportContentOutput: z.ZodTypeAny;
6
- declare const neuronwriterImportContent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NeuronwriterImportContentInput: z.ZodObject<{
5
+ id: z.ZodOptional<z.ZodString>;
6
+ url: z.ZodOptional<z.ZodString>;
7
+ html: z.ZodOptional<z.ZodString>;
8
+ query: z.ZodString;
9
+ title: z.ZodOptional<z.ZodString>;
10
+ accept: z.ZodOptional<z.ZodString>;
11
+ api_key: z.ZodOptional<z.ZodString>;
12
+ description: z.ZodOptional<z.ZodString>;
13
+ content_type: z.ZodOptional<z.ZodString>;
14
+ extra_headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
15
+ container_class: z.ZodOptional<z.ZodString>;
16
+ }, z.core.$strip>;
17
+ declare const NeuronwriterImportContentOutput: z.ZodObject<{
18
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ status: z.ZodNullable<z.ZodString>;
20
+ content_score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
+ }, 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]>, readonly [import("@keystrokehq/shared").Credential]>;
7
35
  //#endregion
8
36
  export { neuronwriterImportContent };
9
37
  //# 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,EAAgC,CAAA,CAAE,UAY7C;AAAA,cACW,+BAAA,EAAiC,CAAA,CAAE,UAI9C;AAAA,cAEW,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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;;;;;;;;;;kBAMpC,MAAA"}
@@ -14,14 +14,14 @@ const neuronwriterImportContent = action("NEURONWRITER_IMPORT_CONTENT", {
14
14
  api_key: z.string().describe("Override X-API-KEY header for authentication.").optional(),
15
15
  description: z.string().describe("Meta description; overwrites description from HTML/URL if provided.").optional(),
16
16
  content_type: z.string().describe("Override Content-Type header (defaults to application/json).").optional(),
17
- extra_headers: z.object({}).describe("Additional headers to merge into the request (for testing).").optional(),
17
+ extra_headers: z.record(z.string(), z.unknown()).describe("Additional headers to merge into the request (for testing).").optional(),
18
18
  container_class: z.string().describe("When using URL, the class of the container that holds the content.").optional()
19
19
  }),
20
20
  output: z.object({
21
21
  error: z.string().describe("Error message if import fails.").nullable().optional(),
22
- status: z.string().describe("Import status (e.g., 'ok')."),
22
+ status: z.string().describe("Import status (e.g., 'ok').").nullable(),
23
23
  content_score: z.number().describe("Content score returned after import, if available.").nullable().optional()
24
- })
24
+ }).passthrough()
25
25
  });
26
26
  //#endregion
27
27
  export { neuronwriterImportContent };
@@ -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.ZodTypeAny = 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.object({}).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.ZodTypeAny = z.object({\n error: z.string().describe(\"Error message if import fails.\").nullable().optional(),\n status: z.string().describe(\"Import status (e.g., 'ok').\"),\n content_score: z.number().describe(\"Content score returned after import, if available.\").nullable().optional(),\n});\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,OAvB0D,EAAE,OAAO;EACnE,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,CAAC,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EAC7G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACtH,CAWS;CACP,QAX2D,EAAE,OAAO;EACpE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;EACzD,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,CAOU;AACV,CAAC"}
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"}
package/dist/catalog.cjs CHANGED
@@ -7,7 +7,13 @@ const neuronwriterCatalog = {
7
7
  "category": "Marketing Automation",
8
8
  "logo": "https://logos.composio.dev/api/neuronwriter",
9
9
  "authKind": "keystroke",
10
- "oauthScopes": []
10
+ "oauthScopes": [],
11
+ "credentialFields": { "api_key": {
12
+ "label": "NeuronWriter API Key",
13
+ "secret": true,
14
+ "description": "Your NeuronWriter API key, obtainable from your profile under the 'Neuron API access' tab."
15
+ } },
16
+ "credentialScheme": "API_KEY"
11
17
  };
12
18
  //#endregion
13
19
  exports.neuronwriterCatalog = neuronwriterCatalog;
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const neuronwriterCatalog = {\n \"slug\": \"neuronwriter\",\n \"name\": \"Neuronwriter\",\n \"description\": \"NeuronWriter is a content optimization tool that leverages semantic SEO and AI to enhance content creation and improve search engine rankings.\",\n \"category\": \"Marketing Automation\",\n \"logo\": \"https://logos.composio.dev/api/neuronwriter\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,sBAAsB;CACjC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
1
+ {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const neuronwriterCatalog = {\n \"slug\": \"neuronwriter\",\n \"name\": \"Neuronwriter\",\n \"description\": \"NeuronWriter is a content optimization tool that leverages semantic SEO and AI to enhance content creation and improve search engine rankings.\",\n \"category\": \"Marketing Automation\",\n \"logo\": \"https://logos.composio.dev/api/neuronwriter\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"NeuronWriter API Key\",\n \"secret\": true,\n \"description\": \"Your NeuronWriter API key, obtainable from your profile under the 'Neuron API access' tab.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,sBAAsB;CACjC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
@@ -8,6 +8,14 @@ declare const neuronwriterCatalog: {
8
8
  readonly logo: "https://logos.composio.dev/api/neuronwriter";
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
+ readonly credentialFields: {
12
+ readonly api_key: {
13
+ readonly label: "NeuronWriter API Key";
14
+ readonly secret: true;
15
+ readonly description: "Your NeuronWriter API key, obtainable from your profile under the 'Neuron API access' tab.";
16
+ };
17
+ };
18
+ readonly credentialScheme: "API_KEY";
11
19
  };
12
20
  //#endregion
13
21
  export { neuronwriterCatalog };
@@ -8,6 +8,14 @@ declare const neuronwriterCatalog: {
8
8
  readonly logo: "https://logos.composio.dev/api/neuronwriter";
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
+ readonly credentialFields: {
12
+ readonly api_key: {
13
+ readonly label: "NeuronWriter API Key";
14
+ readonly secret: true;
15
+ readonly description: "Your NeuronWriter API key, obtainable from your profile under the 'Neuron API access' tab.";
16
+ };
17
+ };
18
+ readonly credentialScheme: "API_KEY";
11
19
  };
12
20
  //#endregion
13
21
  export { neuronwriterCatalog };
package/dist/catalog.mjs CHANGED
@@ -7,7 +7,13 @@ const neuronwriterCatalog = {
7
7
  "category": "Marketing Automation",
8
8
  "logo": "https://logos.composio.dev/api/neuronwriter",
9
9
  "authKind": "keystroke",
10
- "oauthScopes": []
10
+ "oauthScopes": [],
11
+ "credentialFields": { "api_key": {
12
+ "label": "NeuronWriter API Key",
13
+ "secret": true,
14
+ "description": "Your NeuronWriter API key, obtainable from your profile under the 'Neuron API access' tab."
15
+ } },
16
+ "credentialScheme": "API_KEY"
11
17
  };
12
18
  //#endregion
13
19
  export { neuronwriterCatalog };
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const neuronwriterCatalog = {\n \"slug\": \"neuronwriter\",\n \"name\": \"Neuronwriter\",\n \"description\": \"NeuronWriter is a content optimization tool that leverages semantic SEO and AI to enhance content creation and improve search engine rankings.\",\n \"category\": \"Marketing Automation\",\n \"logo\": \"https://logos.composio.dev/api/neuronwriter\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,sBAAsB;CACjC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
1
+ {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const neuronwriterCatalog = {\n \"slug\": \"neuronwriter\",\n \"name\": \"Neuronwriter\",\n \"description\": \"NeuronWriter is a content optimization tool that leverages semantic SEO and AI to enhance content creation and improve search engine rankings.\",\n \"category\": \"Marketing Automation\",\n \"logo\": \"https://logos.composio.dev/api/neuronwriter\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"NeuronWriter API Key\",\n \"secret\": true,\n \"description\": \"Your NeuronWriter API key, obtainable from your profile under the 'Neuron API access' tab.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,sBAAsB;CACjC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/neuronwriter",
3
- "version": "0.1.0",
3
+ "version": "0.1.3",
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.4",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {