@keystrokehq/neuronwriter 0.1.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/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/import-content.cjs +32 -0
- package/dist/actions/import-content.cjs.map +1 -0
- package/dist/actions/import-content.d.cts +9 -0
- package/dist/actions/import-content.d.cts.map +1 -0
- package/dist/actions/import-content.d.mts +9 -0
- package/dist/actions/import-content.d.mts.map +1 -0
- package/dist/actions/import-content.mjs +29 -0
- package/dist/actions/import-content.mjs.map +1 -0
- package/dist/actions/index.cjs +3 -0
- package/dist/actions/index.d.cts +2 -0
- package/dist/actions/index.d.mts +2 -0
- package/dist/actions/index.mjs +2 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +8 -0
- package/dist/index.d.cts +4 -0
- package/dist/index.d.mts +4 -0
- package/dist/index.mjs +5 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @keystrokehq/neuronwriter
|
|
2
|
+
|
|
3
|
+
Keystroke-managed integration.
|
|
4
|
+
|
|
5
|
+
**App:** `neuronwriter`
|
|
6
|
+
**Version:** `20260615_00`
|
|
7
|
+
**Actions:** 1
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { defineAgent } from "@keystrokehq/keystroke/agent";
|
|
11
|
+
import { neuronwriterImportContent } from "@keystrokehq/neuronwriter/actions";
|
|
12
|
+
|
|
13
|
+
export default defineAgent({
|
|
14
|
+
key: "neuronwriter-agent",
|
|
15
|
+
tools: [neuronwriterImportContent],
|
|
16
|
+
});
|
|
17
|
+
```
|
package/dist/action.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_app = require("./app.cjs");
|
|
2
|
+
const require_execute = require("./execute.cjs");
|
|
3
|
+
require("zod");
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return require_app.neuronwriter.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await require_execute.executeNeuronwriterTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.action = action;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.cjs.map
|
|
@@ -0,0 +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"}
|
package/dist/action.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { neuronwriter } from "./app.mjs";
|
|
2
|
+
import { executeNeuronwriterTool } from "./execute.mjs";
|
|
3
|
+
import "zod";
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return neuronwriter.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await executeNeuronwriterTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { action };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.mjs.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/import-content.ts
|
|
4
|
+
const NeuronwriterImportContentInput = zod.z.object({
|
|
5
|
+
id: zod.z.string().describe("When using URL, the id of the container that holds the content.").optional(),
|
|
6
|
+
url: zod.z.string().describe("URL to import and parse content from. Required if 'html' not provided.").optional(),
|
|
7
|
+
html: zod.z.string().describe("HTML content to import. Required if 'url' not provided.").optional(),
|
|
8
|
+
query: zod.z.string().describe("The ID of your query."),
|
|
9
|
+
title: zod.z.string().describe("Title of your article; overwrites title from HTML/URL if provided.").optional(),
|
|
10
|
+
accept: zod.z.string().describe("Override Accept header (defaults to application/json).").optional(),
|
|
11
|
+
api_key: zod.z.string().describe("Override X-API-KEY header for authentication.").optional(),
|
|
12
|
+
description: zod.z.string().describe("Meta description; overwrites description from HTML/URL if provided.").optional(),
|
|
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(),
|
|
15
|
+
container_class: zod.z.string().describe("When using URL, the class of the container that holds the content.").optional()
|
|
16
|
+
});
|
|
17
|
+
const NeuronwriterImportContentOutput = zod.z.object({
|
|
18
|
+
error: zod.z.string().describe("Error message if import fails.").nullable().optional(),
|
|
19
|
+
status: zod.z.string().describe("Import status (e.g., 'ok')."),
|
|
20
|
+
content_score: zod.z.number().describe("Content score returned after import, if available.").nullable().optional()
|
|
21
|
+
});
|
|
22
|
+
const neuronwriterImportContent = require_action.action("NEURONWRITER_IMPORT_CONTENT", {
|
|
23
|
+
slug: "neuronwriter-import-content",
|
|
24
|
+
name: "Import Content",
|
|
25
|
+
description: "Tool to import content into the editor. Use when updating editor content via HTML or URL.",
|
|
26
|
+
input: NeuronwriterImportContentInput,
|
|
27
|
+
output: NeuronwriterImportContentOutput
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
exports.neuronwriterImportContent = neuronwriterImportContent;
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=import-content.cjs.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
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]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { neuronwriterImportContent };
|
|
9
|
+
//# sourceMappingURL=import-content.d.cts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
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]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { neuronwriterImportContent };
|
|
9
|
+
//# sourceMappingURL=import-content.d.mts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const neuronwriterImportContent = action("NEURONWRITER_IMPORT_CONTENT", {
|
|
4
|
+
slug: "neuronwriter-import-content",
|
|
5
|
+
name: "Import Content",
|
|
6
|
+
description: "Tool to import content into the editor. Use when updating editor content via HTML or URL.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
id: z.string().describe("When using URL, the id of the container that holds the content.").optional(),
|
|
9
|
+
url: z.string().describe("URL to import and parse content from. Required if 'html' not provided.").optional(),
|
|
10
|
+
html: z.string().describe("HTML content to import. Required if 'url' not provided.").optional(),
|
|
11
|
+
query: z.string().describe("The ID of your query."),
|
|
12
|
+
title: z.string().describe("Title of your article; overwrites title from HTML/URL if provided.").optional(),
|
|
13
|
+
accept: z.string().describe("Override Accept header (defaults to application/json).").optional(),
|
|
14
|
+
api_key: z.string().describe("Override X-API-KEY header for authentication.").optional(),
|
|
15
|
+
description: z.string().describe("Meta description; overwrites description from HTML/URL if provided.").optional(),
|
|
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(),
|
|
18
|
+
container_class: z.string().describe("When using URL, the class of the container that holds the content.").optional()
|
|
19
|
+
}),
|
|
20
|
+
output: z.object({
|
|
21
|
+
error: z.string().describe("Error message if import fails.").nullable().optional(),
|
|
22
|
+
status: z.string().describe("Import status (e.g., 'ok')."),
|
|
23
|
+
content_score: z.number().describe("Content score returned after import, if available.").nullable().optional()
|
|
24
|
+
})
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
export { neuronwriterImportContent };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=import-content.mjs.map
|
|
@@ -0,0 +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"}
|
package/dist/app.cjs
ADDED
package/dist/app.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const neuronwriter = defineApp({\n slug: \"neuronwriter\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,gBAAA,uCAAA,CAAA,CAAA,UAAA,CAAyB;CACpC,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/app.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,YAAA,6BAAY,GAAA,+BAAA,UAAA"}
|
package/dist/app.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,YAAA,6BAAY,GAAA,+BAAA,UAAA"}
|
package/dist/app.mjs
ADDED
package/dist/app.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const neuronwriter = defineApp({\n slug: \"neuronwriter\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,eAAe,UAAU;CACpC,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/catalog.cjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const neuronwriterCatalog = {
|
|
4
|
+
"slug": "neuronwriter",
|
|
5
|
+
"name": "Neuronwriter",
|
|
6
|
+
"description": "NeuronWriter is a content optimization tool that leverages semantic SEO and AI to enhance content creation and improve search engine rankings.",
|
|
7
|
+
"category": "Marketing Automation",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/neuronwriter",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.neuronwriterCatalog = neuronwriterCatalog;
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.cjs.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const neuronwriterCatalog: {
|
|
4
|
+
readonly slug: "neuronwriter";
|
|
5
|
+
readonly name: "Neuronwriter";
|
|
6
|
+
readonly description: "NeuronWriter is a content optimization tool that leverages semantic SEO and AI to enhance content creation and improve search engine rankings.";
|
|
7
|
+
readonly category: "Marketing Automation";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/neuronwriter";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { neuronwriterCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.cts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,mBAAA;EAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const neuronwriterCatalog: {
|
|
4
|
+
readonly slug: "neuronwriter";
|
|
5
|
+
readonly name: "Neuronwriter";
|
|
6
|
+
readonly description: "NeuronWriter is a content optimization tool that leverages semantic SEO and AI to enhance content creation and improve search engine rankings.";
|
|
7
|
+
readonly category: "Marketing Automation";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/neuronwriter";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { neuronwriterCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.mts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,mBAAA;EAAA"}
|
package/dist/catalog.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const neuronwriterCatalog = {
|
|
4
|
+
"slug": "neuronwriter",
|
|
5
|
+
"name": "Neuronwriter",
|
|
6
|
+
"description": "NeuronWriter is a content optimization tool that leverages semantic SEO and AI to enhance content creation and improve search engine rankings.",
|
|
7
|
+
"category": "Marketing Automation",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/neuronwriter",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { neuronwriterCatalog };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.mjs.map
|
|
@@ -0,0 +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"}
|
package/dist/execute.cjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "neuronwriter";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeNeuronwriterTool(tool, args) {
|
|
7
|
+
const { result } = await (0, _keystrokehq_keystroke_client.createKeystrokeClient)().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.executeNeuronwriterTool = executeNeuronwriterTool;
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"neuronwriter\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeNeuronwriterTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,wBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,OAAA,GAAA,8BAAA,sBAAA,CAA4B,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/execute.mjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createKeystrokeClient } from "@keystrokehq/keystroke/client";
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "neuronwriter";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeNeuronwriterTool(tool, args) {
|
|
7
|
+
const { result } = await createKeystrokeClient().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { executeNeuronwriterTool };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.mjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"neuronwriter\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeNeuronwriterTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,wBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,MAAM,sBAAsB,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_app = require("./app.cjs");
|
|
3
|
+
const require_catalog = require("./catalog.cjs");
|
|
4
|
+
const require_import_content = require("./actions/import-content.cjs");
|
|
5
|
+
require("./actions/index.cjs");
|
|
6
|
+
exports.neuronwriter = require_app.neuronwriter;
|
|
7
|
+
exports.neuronwriterCatalog = require_catalog.neuronwriterCatalog;
|
|
8
|
+
exports.neuronwriterImportContent = require_import_content.neuronwriterImportContent;
|
package/dist/index.d.cts
ADDED
package/dist/index.d.mts
ADDED
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { neuronwriter } from "./app.mjs";
|
|
2
|
+
import { neuronwriterCatalog } from "./catalog.mjs";
|
|
3
|
+
import { neuronwriterImportContent } from "./actions/import-content.mjs";
|
|
4
|
+
import "./actions/index.mjs";
|
|
5
|
+
export { neuronwriter, neuronwriterCatalog, neuronwriterImportContent };
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@keystrokehq/neuronwriter",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public",
|
|
6
|
+
"registry": "https://registry.npmjs.org"
|
|
7
|
+
},
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/keystrokehq/keystroke.git",
|
|
11
|
+
"directory": "packages/integrations/neuronwriter"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"sideEffects": false,
|
|
17
|
+
"type": "module",
|
|
18
|
+
"main": "./dist/index.cjs",
|
|
19
|
+
"module": "./dist/index.mjs",
|
|
20
|
+
"types": "./dist/index.d.mts",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/index.d.mts",
|
|
24
|
+
"import": "./dist/index.mjs",
|
|
25
|
+
"require": "./dist/index.cjs"
|
|
26
|
+
},
|
|
27
|
+
"./actions": {
|
|
28
|
+
"types": "./dist/actions/index.d.mts",
|
|
29
|
+
"import": "./dist/actions/index.mjs",
|
|
30
|
+
"require": "./dist/actions/index.cjs"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"@keystrokehq/keystroke": "^0.1.4",
|
|
35
|
+
"zod": "^4.4.3"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@keystrokehq/keystroke": "link:../../keystroke",
|
|
39
|
+
"@types/node": "^25.9.1",
|
|
40
|
+
"tsdown": "^0.22.0",
|
|
41
|
+
"typescript": "^6.0.3",
|
|
42
|
+
"zod": "^4.4.3"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "tsdown",
|
|
46
|
+
"dev": "tsdown --watch --no-clean",
|
|
47
|
+
"typecheck": "tsc --noEmit"
|
|
48
|
+
}
|
|
49
|
+
}
|