n8n-nodes-claude-code-cli 1.0.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.
Files changed (104) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +603 -0
  3. package/dist/credentials/ClaudeCodeDockerApi.credentials.d.ts +9 -0
  4. package/dist/credentials/ClaudeCodeDockerApi.credentials.d.ts.map +1 -0
  5. package/dist/credentials/ClaudeCodeDockerApi.credentials.js +82 -0
  6. package/dist/credentials/ClaudeCodeDockerApi.credentials.js.map +1 -0
  7. package/dist/credentials/ClaudeCodeLocalApi.credentials.d.ts +9 -0
  8. package/dist/credentials/ClaudeCodeLocalApi.credentials.d.ts.map +1 -0
  9. package/dist/credentials/ClaudeCodeLocalApi.credentials.js +35 -0
  10. package/dist/credentials/ClaudeCodeLocalApi.credentials.js.map +1 -0
  11. package/dist/credentials/ClaudeCodeSshApi.credentials.d.ts +9 -0
  12. package/dist/credentials/ClaudeCodeSshApi.credentials.d.ts.map +1 -0
  13. package/dist/credentials/ClaudeCodeSshApi.credentials.js +119 -0
  14. package/dist/credentials/ClaudeCodeSshApi.credentials.js.map +1 -0
  15. package/dist/icons/claudecode.svg +40 -0
  16. package/dist/index.d.ts +5 -0
  17. package/dist/index.d.ts.map +1 -0
  18. package/dist/index.js +21 -0
  19. package/dist/index.js.map +1 -0
  20. package/dist/nodes/ClaudeCode/ClaudeCode.node.d.ts +6 -0
  21. package/dist/nodes/ClaudeCode/ClaudeCode.node.d.ts.map +1 -0
  22. package/dist/nodes/ClaudeCode/ClaudeCode.node.js +131 -0
  23. package/dist/nodes/ClaudeCode/ClaudeCode.node.js.map +1 -0
  24. package/dist/nodes/ClaudeCode/descriptions/connectionModeDescription.d.ts +3 -0
  25. package/dist/nodes/ClaudeCode/descriptions/connectionModeDescription.d.ts.map +1 -0
  26. package/dist/nodes/ClaudeCode/descriptions/connectionModeDescription.js +30 -0
  27. package/dist/nodes/ClaudeCode/descriptions/connectionModeDescription.js.map +1 -0
  28. package/dist/nodes/ClaudeCode/descriptions/contextDescription.d.ts +3 -0
  29. package/dist/nodes/ClaudeCode/descriptions/contextDescription.d.ts.map +1 -0
  30. package/dist/nodes/ClaudeCode/descriptions/contextDescription.js +52 -0
  31. package/dist/nodes/ClaudeCode/descriptions/contextDescription.js.map +1 -0
  32. package/dist/nodes/ClaudeCode/descriptions/index.d.ts +9 -0
  33. package/dist/nodes/ClaudeCode/descriptions/index.d.ts.map +1 -0
  34. package/dist/nodes/ClaudeCode/descriptions/index.js +20 -0
  35. package/dist/nodes/ClaudeCode/descriptions/index.js.map +1 -0
  36. package/dist/nodes/ClaudeCode/descriptions/modelDescription.d.ts +3 -0
  37. package/dist/nodes/ClaudeCode/descriptions/modelDescription.d.ts.map +1 -0
  38. package/dist/nodes/ClaudeCode/descriptions/modelDescription.js +49 -0
  39. package/dist/nodes/ClaudeCode/descriptions/modelDescription.js.map +1 -0
  40. package/dist/nodes/ClaudeCode/descriptions/operationDescription.d.ts +3 -0
  41. package/dist/nodes/ClaudeCode/descriptions/operationDescription.d.ts.map +1 -0
  42. package/dist/nodes/ClaudeCode/descriptions/operationDescription.js +39 -0
  43. package/dist/nodes/ClaudeCode/descriptions/operationDescription.js.map +1 -0
  44. package/dist/nodes/ClaudeCode/descriptions/optionsDescription.d.ts +3 -0
  45. package/dist/nodes/ClaudeCode/descriptions/optionsDescription.d.ts.map +1 -0
  46. package/dist/nodes/ClaudeCode/descriptions/optionsDescription.js +67 -0
  47. package/dist/nodes/ClaudeCode/descriptions/optionsDescription.js.map +1 -0
  48. package/dist/nodes/ClaudeCode/descriptions/promptDescription.d.ts +3 -0
  49. package/dist/nodes/ClaudeCode/descriptions/promptDescription.d.ts.map +1 -0
  50. package/dist/nodes/ClaudeCode/descriptions/promptDescription.js +28 -0
  51. package/dist/nodes/ClaudeCode/descriptions/promptDescription.js.map +1 -0
  52. package/dist/nodes/ClaudeCode/descriptions/sessionDescription.d.ts +3 -0
  53. package/dist/nodes/ClaudeCode/descriptions/sessionDescription.d.ts.map +1 -0
  54. package/dist/nodes/ClaudeCode/descriptions/sessionDescription.js +20 -0
  55. package/dist/nodes/ClaudeCode/descriptions/sessionDescription.js.map +1 -0
  56. package/dist/nodes/ClaudeCode/descriptions/toolPermissionsDescription.d.ts +3 -0
  57. package/dist/nodes/ClaudeCode/descriptions/toolPermissionsDescription.d.ts.map +1 -0
  58. package/dist/nodes/ClaudeCode/descriptions/toolPermissionsDescription.js +31 -0
  59. package/dist/nodes/ClaudeCode/descriptions/toolPermissionsDescription.js.map +1 -0
  60. package/dist/nodes/ClaudeCode/interfaces/ClaudeCodeTypes.d.ts +143 -0
  61. package/dist/nodes/ClaudeCode/interfaces/ClaudeCodeTypes.d.ts.map +1 -0
  62. package/dist/nodes/ClaudeCode/interfaces/ClaudeCodeTypes.js +3 -0
  63. package/dist/nodes/ClaudeCode/interfaces/ClaudeCodeTypes.js.map +1 -0
  64. package/dist/nodes/ClaudeCode/interfaces/index.d.ts +2 -0
  65. package/dist/nodes/ClaudeCode/interfaces/index.d.ts.map +1 -0
  66. package/dist/nodes/ClaudeCode/interfaces/index.js +3 -0
  67. package/dist/nodes/ClaudeCode/interfaces/index.js.map +1 -0
  68. package/dist/nodes/ClaudeCode/transport/DockerExecutor.d.ts +29 -0
  69. package/dist/nodes/ClaudeCode/transport/DockerExecutor.d.ts.map +1 -0
  70. package/dist/nodes/ClaudeCode/transport/DockerExecutor.js +153 -0
  71. package/dist/nodes/ClaudeCode/transport/DockerExecutor.js.map +1 -0
  72. package/dist/nodes/ClaudeCode/transport/ExecutorFactory.d.ts +6 -0
  73. package/dist/nodes/ClaudeCode/transport/ExecutorFactory.d.ts.map +1 -0
  74. package/dist/nodes/ClaudeCode/transport/ExecutorFactory.js +22 -0
  75. package/dist/nodes/ClaudeCode/transport/ExecutorFactory.js.map +1 -0
  76. package/dist/nodes/ClaudeCode/transport/LocalExecutor.d.ts +18 -0
  77. package/dist/nodes/ClaudeCode/transport/LocalExecutor.d.ts.map +1 -0
  78. package/dist/nodes/ClaudeCode/transport/LocalExecutor.js +83 -0
  79. package/dist/nodes/ClaudeCode/transport/LocalExecutor.js.map +1 -0
  80. package/dist/nodes/ClaudeCode/transport/SshExecutor.d.ts +25 -0
  81. package/dist/nodes/ClaudeCode/transport/SshExecutor.d.ts.map +1 -0
  82. package/dist/nodes/ClaudeCode/transport/SshExecutor.js +174 -0
  83. package/dist/nodes/ClaudeCode/transport/SshExecutor.js.map +1 -0
  84. package/dist/nodes/ClaudeCode/transport/index.d.ts +5 -0
  85. package/dist/nodes/ClaudeCode/transport/index.d.ts.map +1 -0
  86. package/dist/nodes/ClaudeCode/transport/index.js +12 -0
  87. package/dist/nodes/ClaudeCode/transport/index.js.map +1 -0
  88. package/dist/nodes/ClaudeCode/utils/commandBuilder.d.ts +16 -0
  89. package/dist/nodes/ClaudeCode/utils/commandBuilder.d.ts.map +1 -0
  90. package/dist/nodes/ClaudeCode/utils/commandBuilder.js +100 -0
  91. package/dist/nodes/ClaudeCode/utils/commandBuilder.js.map +1 -0
  92. package/dist/nodes/ClaudeCode/utils/index.d.ts +4 -0
  93. package/dist/nodes/ClaudeCode/utils/index.d.ts.map +1 -0
  94. package/dist/nodes/ClaudeCode/utils/index.js +14 -0
  95. package/dist/nodes/ClaudeCode/utils/index.js.map +1 -0
  96. package/dist/nodes/ClaudeCode/utils/optionsBuilder.d.ts +7 -0
  97. package/dist/nodes/ClaudeCode/utils/optionsBuilder.d.ts.map +1 -0
  98. package/dist/nodes/ClaudeCode/utils/optionsBuilder.js +84 -0
  99. package/dist/nodes/ClaudeCode/utils/optionsBuilder.js.map +1 -0
  100. package/dist/nodes/ClaudeCode/utils/outputParser.d.ts +14 -0
  101. package/dist/nodes/ClaudeCode/utils/outputParser.d.ts.map +1 -0
  102. package/dist/nodes/ClaudeCode/utils/outputParser.js +80 -0
  103. package/dist/nodes/ClaudeCode/utils/outputParser.js.map +1 -0
  104. package/package.json +75 -0
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ClaudeCodeDockerApi = void 0;
4
+ class ClaudeCodeDockerApi {
5
+ name = "claudeCodeDockerApi";
6
+ displayName = "Claude Code Docker";
7
+ icon = { light: "file:claudecode.svg", dark: "file:claudecode.svg" };
8
+ documentationUrl = "https://github.com/ThomasTartrau/n8n-nodes-claude-code-cli";
9
+ properties = [
10
+ {
11
+ displayName: "Container Identifier Type",
12
+ name: "containerIdentifier",
13
+ type: "options",
14
+ options: [
15
+ { name: "Container Name", value: "name" },
16
+ { name: "Container ID", value: "id" },
17
+ ],
18
+ default: "name",
19
+ description: "How to identify the Docker container",
20
+ },
21
+ {
22
+ displayName: "Container Name",
23
+ name: "containerName",
24
+ type: "string",
25
+ default: "",
26
+ required: true,
27
+ displayOptions: {
28
+ show: {
29
+ containerIdentifier: ["name"],
30
+ },
31
+ },
32
+ placeholder: "claude-code-container",
33
+ description: "Name of the Docker container running Claude Code",
34
+ },
35
+ {
36
+ displayName: "Container ID",
37
+ name: "containerId",
38
+ type: "string",
39
+ default: "",
40
+ required: true,
41
+ displayOptions: {
42
+ show: {
43
+ containerIdentifier: ["id"],
44
+ },
45
+ },
46
+ placeholder: "abc123def456",
47
+ description: "ID of the Docker container running Claude Code",
48
+ },
49
+ {
50
+ displayName: "Docker Host",
51
+ name: "dockerHost",
52
+ type: "string",
53
+ default: "",
54
+ placeholder: "unix:///var/run/docker.sock or tcp://localhost:2375",
55
+ description: "Docker host URL. Leave empty for local Docker socket.",
56
+ },
57
+ {
58
+ displayName: "User",
59
+ name: "user",
60
+ type: "string",
61
+ default: "",
62
+ placeholder: "root or node",
63
+ description: "User to run commands as inside the container. Leave empty for default user.",
64
+ },
65
+ {
66
+ displayName: "Claude Code Path",
67
+ name: "claudePath",
68
+ type: "string",
69
+ default: "claude",
70
+ description: "Path to Claude Code inside the container",
71
+ },
72
+ {
73
+ displayName: "Default Working Directory",
74
+ name: "defaultWorkingDir",
75
+ type: "string",
76
+ default: "/workspace",
77
+ description: "Default working directory inside the container",
78
+ },
79
+ ];
80
+ }
81
+ exports.ClaudeCodeDockerApi = ClaudeCodeDockerApi;
82
+ //# sourceMappingURL=ClaudeCodeDockerApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClaudeCodeDockerApi.credentials.js","sourceRoot":"","sources":["../../credentials/ClaudeCodeDockerApi.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,mBAAmB;IAC/B,IAAI,GAAG,qBAAqB,CAAC;IAC7B,WAAW,GAAG,oBAAoB,CAAC;IACnC,IAAI,GAAS,EAAE,KAAK,EAAE,qBAAqB,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC;IAC3E,gBAAgB,GACf,4DAA4D,CAAC;IAE9D,UAAU,GAAsB;QAC/B;YACC,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,qBAAqB;YAC3B,IAAI,EAAE,SAAS;YACf,OAAO,EAAE;gBACR,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,EAAE;gBACzC,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,IAAI,EAAE;aACrC;YACD,OAAO,EAAE,MAAM;YACf,WAAW,EAAE,sCAAsC;SACnD;QACD;YACC,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,eAAe;YACrB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE,IAAI;YACd,cAAc,EAAE;gBACf,IAAI,EAAE;oBACL,mBAAmB,EAAE,CAAC,MAAM,CAAC;iBAC7B;aACD;YACD,WAAW,EAAE,uBAAuB;YACpC,WAAW,EAAE,kDAAkD;SAC/D;QACD;YACC,WAAW,EAAE,cAAc;YAC3B,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE,IAAI;YACd,cAAc,EAAE;gBACf,IAAI,EAAE;oBACL,mBAAmB,EAAE,CAAC,IAAI,CAAC;iBAC3B;aACD;YACD,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,gDAAgD;SAC7D;QACD;YACC,WAAW,EAAE,aAAa;YAC1B,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;YACX,WAAW,EAAE,qDAAqD;YAClE,WAAW,EAAE,uDAAuD;SACpE;QACD;YACC,WAAW,EAAE,MAAM;YACnB,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;YACX,WAAW,EAAE,cAAc;YAC3B,WAAW,EACV,6EAA6E;SAC9E;QACD;YACC,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,WAAW,EAAE,0CAA0C;SACvD;QACD;YACC,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,mBAAmB;YACzB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,YAAY;YACrB,WAAW,EAAE,gDAAgD;SAC7D;KACD,CAAC;CACF;AA/ED,kDA+EC"}
@@ -0,0 +1,9 @@
1
+ import type { ICredentialType, INodeProperties, Icon } from "n8n-workflow";
2
+ export declare class ClaudeCodeLocalApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ icon: Icon;
6
+ documentationUrl: string;
7
+ properties: INodeProperties[];
8
+ }
9
+ //# sourceMappingURL=ClaudeCodeLocalApi.credentials.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClaudeCodeLocalApi.credentials.d.ts","sourceRoot":"","sources":["../../credentials/ClaudeCodeLocalApi.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAE3E,qBAAa,kBAAmB,YAAW,eAAe;IACzD,IAAI,SAAwB;IAC5B,WAAW,SAAuB;IAClC,IAAI,EAAE,IAAI,CAAiE;IAC3E,gBAAgB,SAC8C;IAE9D,UAAU,EAAE,eAAe,EAAE,CA0B3B;CACF"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ClaudeCodeLocalApi = void 0;
4
+ class ClaudeCodeLocalApi {
5
+ name = "claudeCodeLocalApi";
6
+ displayName = "Claude Code Local";
7
+ icon = { light: "file:claudecode.svg", dark: "file:claudecode.svg" };
8
+ documentationUrl = "https://github.com/ThomasTartrau/n8n-nodes-claude-code-cli";
9
+ properties = [
10
+ {
11
+ displayName: "Claude Code Path",
12
+ name: "claudePath",
13
+ type: "string",
14
+ default: "claude",
15
+ description: 'Path to Claude Code CLI executable. Leave as "claude" if it is in your PATH.',
16
+ },
17
+ {
18
+ displayName: "Default Working Directory",
19
+ name: "defaultWorkingDir",
20
+ type: "string",
21
+ default: "",
22
+ placeholder: "/path/to/project",
23
+ description: "Default working directory for Claude Code operations. Can be overridden per operation.",
24
+ },
25
+ {
26
+ displayName: "Environment Variables",
27
+ name: "envVars",
28
+ type: "json",
29
+ default: "{}",
30
+ description: 'Additional environment variables as JSON object (e.g., {"ANTHROPIC_API_KEY": "sk-..."})',
31
+ },
32
+ ];
33
+ }
34
+ exports.ClaudeCodeLocalApi = ClaudeCodeLocalApi;
35
+ //# sourceMappingURL=ClaudeCodeLocalApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClaudeCodeLocalApi.credentials.js","sourceRoot":"","sources":["../../credentials/ClaudeCodeLocalApi.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,kBAAkB;IAC9B,IAAI,GAAG,oBAAoB,CAAC;IAC5B,WAAW,GAAG,mBAAmB,CAAC;IAClC,IAAI,GAAS,EAAE,KAAK,EAAE,qBAAqB,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC;IAC3E,gBAAgB,GACf,4DAA4D,CAAC;IAE9D,UAAU,GAAsB;QAC/B;YACC,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,WAAW,EACV,8EAA8E;SAC/E;QACD;YACC,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,mBAAmB;YACzB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;YACX,WAAW,EAAE,kBAAkB;YAC/B,WAAW,EACV,wFAAwF;SACzF;QACD;YACC,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,IAAI;YACb,WAAW,EACV,yFAAyF;SAC1F;KACD,CAAC;CACF;AAlCD,gDAkCC"}
@@ -0,0 +1,9 @@
1
+ import type { ICredentialType, INodeProperties, Icon } from "n8n-workflow";
2
+ export declare class ClaudeCodeSshApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ icon: Icon;
6
+ documentationUrl: string;
7
+ properties: INodeProperties[];
8
+ }
9
+ //# sourceMappingURL=ClaudeCodeSshApi.credentials.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClaudeCodeSshApi.credentials.d.ts","sourceRoot":"","sources":["../../credentials/ClaudeCodeSshApi.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAE3E,qBAAa,gBAAiB,YAAW,eAAe;IACvD,IAAI,SAAsB;IAC1B,WAAW,SAAqB;IAChC,IAAI,EAAE,IAAI,CAAiE;IAC3E,gBAAgB,SAC8C;IAE9D,UAAU,EAAE,eAAe,EAAE,CA8G3B;CACF"}
@@ -0,0 +1,119 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ClaudeCodeSshApi = void 0;
4
+ class ClaudeCodeSshApi {
5
+ name = "claudeCodeSshApi";
6
+ displayName = "Claude Code SSH";
7
+ icon = { light: "file:claudecode.svg", dark: "file:claudecode.svg" };
8
+ documentationUrl = "https://github.com/ThomasTartrau/n8n-nodes-claude-code-cli";
9
+ properties = [
10
+ {
11
+ displayName: "Host",
12
+ name: "host",
13
+ type: "string",
14
+ default: "",
15
+ required: true,
16
+ placeholder: "example.com or 192.168.1.100",
17
+ description: "SSH host address",
18
+ },
19
+ {
20
+ displayName: "Port",
21
+ name: "port",
22
+ type: "number",
23
+ default: 22,
24
+ description: "SSH port number",
25
+ },
26
+ {
27
+ displayName: "Username",
28
+ name: "username",
29
+ type: "string",
30
+ default: "",
31
+ required: true,
32
+ description: "SSH username",
33
+ },
34
+ {
35
+ displayName: "Authentication Method",
36
+ name: "authMethod",
37
+ type: "options",
38
+ options: [
39
+ { name: "Private Key", value: "privateKey" },
40
+ { name: "Password", value: "password" },
41
+ { name: "SSH Agent", value: "agent" },
42
+ ],
43
+ default: "privateKey",
44
+ description: "How to authenticate with the SSH server",
45
+ },
46
+ {
47
+ displayName: "Private Key",
48
+ name: "privateKey",
49
+ type: "string",
50
+ typeOptions: {
51
+ password: true,
52
+ rows: 5,
53
+ },
54
+ default: "",
55
+ displayOptions: {
56
+ show: {
57
+ authMethod: ["privateKey"],
58
+ },
59
+ },
60
+ description: "SSH private key content (PEM format). Paste the full key including BEGIN/END lines.",
61
+ },
62
+ {
63
+ displayName: "Private Key Path",
64
+ name: "privateKeyPath",
65
+ type: "string",
66
+ default: "",
67
+ displayOptions: {
68
+ show: {
69
+ authMethod: ["privateKey"],
70
+ },
71
+ },
72
+ placeholder: "~/.ssh/id_rsa",
73
+ description: "Path to SSH private key file on the n8n server. Alternative to pasting the key content.",
74
+ },
75
+ {
76
+ displayName: "Passphrase",
77
+ name: "passphrase",
78
+ type: "string",
79
+ typeOptions: { password: true },
80
+ default: "",
81
+ displayOptions: {
82
+ show: {
83
+ authMethod: ["privateKey"],
84
+ },
85
+ },
86
+ description: "Passphrase for private key (if the key is encrypted)",
87
+ },
88
+ {
89
+ displayName: "Password",
90
+ name: "password",
91
+ type: "string",
92
+ typeOptions: { password: true },
93
+ default: "",
94
+ displayOptions: {
95
+ show: {
96
+ authMethod: ["password"],
97
+ },
98
+ },
99
+ description: "SSH password",
100
+ },
101
+ {
102
+ displayName: "Claude Code Path",
103
+ name: "claudePath",
104
+ type: "string",
105
+ default: "claude",
106
+ description: "Path to Claude Code on the remote machine",
107
+ },
108
+ {
109
+ displayName: "Default Working Directory",
110
+ name: "defaultWorkingDir",
111
+ type: "string",
112
+ default: "",
113
+ placeholder: "/home/user/project",
114
+ description: "Default remote working directory for Claude Code operations",
115
+ },
116
+ ];
117
+ }
118
+ exports.ClaudeCodeSshApi = ClaudeCodeSshApi;
119
+ //# sourceMappingURL=ClaudeCodeSshApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClaudeCodeSshApi.credentials.js","sourceRoot":"","sources":["../../credentials/ClaudeCodeSshApi.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,gBAAgB;IAC5B,IAAI,GAAG,kBAAkB,CAAC;IAC1B,WAAW,GAAG,iBAAiB,CAAC;IAChC,IAAI,GAAS,EAAE,KAAK,EAAE,qBAAqB,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC;IAC3E,gBAAgB,GACf,4DAA4D,CAAC;IAE9D,UAAU,GAAsB;QAC/B;YACC,WAAW,EAAE,MAAM;YACnB,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,8BAA8B;YAC3C,WAAW,EAAE,kBAAkB;SAC/B;QACD;YACC,WAAW,EAAE,MAAM;YACnB,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;YACX,WAAW,EAAE,iBAAiB;SAC9B;QACD;YACC,WAAW,EAAE,UAAU;YACvB,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,QAAQ;YACd,O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,UAAU;YACvB,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC/B,OAAO,EAAE,EAAE;YACX,cAAc,EAAE;gBACf,IAAI,EAAE;oBACL,UAAU,EAAE,CAAC,UAAU,CAAC;iBACxB;aACD;YACD,WAAW,EAAE,cAAc;SAC3B;QACD;YACC,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,WAAW,EAAE,2CAA2C;SACxD;QACD;YACC,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,mBAAmB;YACzB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;YACX,WAAW,EAAE,oBAAoB;YACjC,WAAW,EACV,6DAA6D;SAC9D;KACD,CAAC;CACF;AAtHD,4CAsHC"}
@@ -0,0 +1,40 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="none">
2
+ <!-- Background rounded square - same coral color as Claude Code -->
3
+ <rect width="512" height="512" rx="100" fill="#D4856A"/>
4
+
5
+ <!-- Robot head -->
6
+ <rect x="156" y="130" width="200" height="150" rx="30" fill="white"/>
7
+
8
+ <!-- Robot eyes -->
9
+ <circle cx="210" cy="195" r="28" fill="#D4856A"/>
10
+ <circle cx="302" cy="195" r="28" fill="#D4856A"/>
11
+
12
+ <!-- Robot eye highlights -->
13
+ <circle cx="200" cy="185" r="10" fill="white"/>
14
+ <circle cx="292" cy="185" r="10" fill="white"/>
15
+
16
+ <!-- Robot mouth/speaker grille -->
17
+ <rect x="200" y="245" width="112" height="16" rx="8" fill="#D4856A"/>
18
+
19
+ <!-- Robot antenna -->
20
+ <rect x="244" y="85" width="24" height="55" rx="8" fill="white"/>
21
+ <circle cx="256" cy="70" r="20" fill="white"/>
22
+
23
+ <!-- Robot body -->
24
+ <rect x="176" y="295" width="160" height="110" rx="25" fill="white"/>
25
+
26
+ <!-- Robot body panel -->
27
+ <rect x="206" y="315" width="100" height="70" rx="12" fill="#D4856A" opacity="0.3"/>
28
+
29
+ <!-- Robot body buttons -->
30
+ <circle cx="230" cy="350" r="14" fill="#D4856A"/>
31
+ <circle cx="282" cy="350" r="14" fill="#D4856A"/>
32
+
33
+ <!-- Robot arms -->
34
+ <rect x="110" y="305" width="56" height="80" rx="20" fill="white"/>
35
+ <rect x="346" y="305" width="56" height="80" rx="20" fill="white"/>
36
+
37
+ <!-- Robot hands -->
38
+ <circle cx="138" cy="395" r="22" fill="white"/>
39
+ <circle cx="374" cy="395" r="22" fill="white"/>
40
+ </svg>
@@ -0,0 +1,5 @@
1
+ export * from "./nodes/ClaudeCode/ClaudeCode.node";
2
+ export * from "./credentials/ClaudeCodeLocalApi.credentials";
3
+ export * from "./credentials/ClaudeCodeSshApi.credentials";
4
+ export * from "./credentials/ClaudeCodeDockerApi.credentials";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC;AACnD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,+CAA+C,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./nodes/ClaudeCode/ClaudeCode.node"), exports);
18
+ __exportStar(require("./credentials/ClaudeCodeLocalApi.credentials"), exports);
19
+ __exportStar(require("./credentials/ClaudeCodeSshApi.credentials"), exports);
20
+ __exportStar(require("./credentials/ClaudeCodeDockerApi.credentials"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qEAAmD;AACnD,+EAA6D;AAC7D,6EAA2D;AAC3D,gFAA8D"}
@@ -0,0 +1,6 @@
1
+ import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from "n8n-workflow";
2
+ export declare class ClaudeCode implements INodeType {
3
+ description: INodeTypeDescription;
4
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
5
+ }
6
+ //# sourceMappingURL=ClaudeCode.node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClaudeCode.node.d.ts","sourceRoot":"","sources":["../../../nodes/ClaudeCode/ClaudeCode.node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,oBAAoB,EAEpB,MAAM,cAAc,CAAC;AAwBtB,qBAAa,UAAW,YAAW,SAAS;IAC3C,WAAW,EAAE,oBAAoB,CAqE/B;IAEI,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC;CAgGvE"}
@@ -0,0 +1,131 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ClaudeCode = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const index_js_1 = require("./descriptions/index.js");
6
+ const index_js_2 = require("./transport/index.js");
7
+ const index_js_3 = require("./utils/index.js");
8
+ class ClaudeCode {
9
+ description = {
10
+ displayName: "Claude Code",
11
+ name: "claudeCode",
12
+ icon: "file:../../icons/claudecode.svg",
13
+ group: ["transform"],
14
+ version: 0.1,
15
+ subtitle: '={{$parameter["operation"]}}',
16
+ description: "Execute Claude Code CLI commands for AI-assisted development tasks",
17
+ defaults: {
18
+ name: "Claude Code",
19
+ },
20
+ inputs: ["main"],
21
+ outputs: ["main"],
22
+ usableAsTool: true,
23
+ credentials: [
24
+ {
25
+ name: "claudeCodeLocalApi",
26
+ required: true,
27
+ displayOptions: {
28
+ show: {
29
+ connectionMode: ["local"],
30
+ },
31
+ },
32
+ },
33
+ {
34
+ name: "claudeCodeSshApi",
35
+ required: true,
36
+ displayOptions: {
37
+ show: {
38
+ connectionMode: ["ssh"],
39
+ },
40
+ },
41
+ },
42
+ {
43
+ name: "claudeCodeDockerApi",
44
+ required: true,
45
+ displayOptions: {
46
+ show: {
47
+ connectionMode: ["docker"],
48
+ },
49
+ },
50
+ },
51
+ ],
52
+ properties: [
53
+ // Connection Mode Selection
54
+ ...index_js_1.connectionModeDescription,
55
+ // Operation Selection
56
+ ...index_js_1.operationDescription,
57
+ // Prompt input
58
+ ...index_js_1.promptDescription,
59
+ // Context files (for executeWithContext)
60
+ ...index_js_1.contextDescription,
61
+ // Session ID (for resumeSession)
62
+ ...index_js_1.sessionDescription,
63
+ // Tool permissions
64
+ ...index_js_1.toolPermissionsDescription,
65
+ // Model selection
66
+ ...index_js_1.modelDescription,
67
+ // Additional options
68
+ ...index_js_1.optionsDescription,
69
+ ],
70
+ };
71
+ async execute() {
72
+ const items = this.getInputData();
73
+ const returnData = [];
74
+ for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
75
+ const connectionMode = this.getNodeParameter("connectionMode", itemIndex);
76
+ const operation = this.getNodeParameter("operation", itemIndex);
77
+ // Get credentials based on connection mode
78
+ let credentials;
79
+ switch (connectionMode) {
80
+ case "local":
81
+ credentials = await this.getCredentials("claudeCodeLocalApi", itemIndex);
82
+ break;
83
+ case "ssh":
84
+ credentials = await this.getCredentials("claudeCodeSshApi", itemIndex);
85
+ break;
86
+ case "docker":
87
+ credentials = await this.getCredentials("claudeCodeDockerApi", itemIndex);
88
+ break;
89
+ default:
90
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unsupported connection mode: ${connectionMode}`, { itemIndex });
91
+ }
92
+ // Create executor for the connection mode
93
+ const executor = (0, index_js_2.createExecutor)(connectionMode, credentials);
94
+ // Build execution options from parameters
95
+ const executionOptions = (0, index_js_3.buildExecutionOptions)(this, itemIndex, operation);
96
+ // Execute Claude Code
97
+ const result = await executor.execute(executionOptions);
98
+ // Handle errors
99
+ if (!result.success && !this.continueOnFail()) {
100
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), result.error || "Claude Code execution failed", { itemIndex });
101
+ }
102
+ // Build output JSON
103
+ const outputJson = {
104
+ success: result.success,
105
+ sessionId: result.sessionId,
106
+ output: result.output,
107
+ exitCode: result.exitCode,
108
+ duration: result.duration,
109
+ cost: result.cost,
110
+ numTurns: result.numTurns,
111
+ error: result.error,
112
+ };
113
+ // Add usage info if present
114
+ if (result.usage) {
115
+ outputJson.usage = result.usage;
116
+ }
117
+ // Add raw output if present
118
+ if (result.rawOutput) {
119
+ outputJson.rawOutput = result.rawOutput;
120
+ }
121
+ // Format output
122
+ returnData.push({
123
+ json: outputJson,
124
+ pairedItem: { item: itemIndex },
125
+ });
126
+ }
127
+ return [returnData];
128
+ }
129
+ }
130
+ exports.ClaudeCode = ClaudeCode;
131
+ //# sourceMappingURL=ClaudeCode.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClaudeCode.node.js","sourceRoot":"","sources":["../../../nodes/ClaudeCode/ClaudeCode.node.ts"],"names":[],"mappings":";;;AAOA,+CAAkD;AAElD,sDASiC;AAEjC,mDAAsD;AACtD,+CAAyD;AASzD,MAAa,UAAU;IACtB,WAAW,GAAyB;QACnC,WAAW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AAO,EAAE,EACd,MAAM,CAAC,KAAK,IAAI,8BAA8B,EAC9C,EAAE,SAAS,EAAE,CACb,CAAC;YACH,CAAC;YAED,oBAAoB;YACpB,MAAM,UAAU,GAAgB;gBAC/B,OAAO,EAAE,MAAM,CAAC,OAAO;gBACvB,SAAS,EAAE,MAAM,CAAC,SAAS;gBAC3B,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,QAAQ,EAAE,MAAM,CAAC,QAAQ;gBACzB,QAAQ,EAAE,MAAM,CAAC,QAAQ;gBACzB,IAAI,EAAE,MAAM,CAAC,IAAI;gBACjB,QAAQ,EAAE,MAAM,CAAC,QAAQ;gBACzB,KAAK,EAAE,MAAM,CAAC,KAAK;aACnB,CAAC;YAEF,4BAA4B;YAC5B,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;gBAClB,UAAU,CAAC,KAAK,GAAG,MAAM,CAAC,KAAoB,CAAC;YAChD,CAAC;YAED,4BAA4B;YAC5B,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC;gBACtB,UAAU,CAAC,SAAS,GAAG,MAAM,CAAC,SAAmC,CAAC;YACnE,CAAC;YAED,gBAAgB;YAChB,UAAU,CAAC,IAAI,CAAC;gBACf,IAAI,EAAE,UAAU;gBAChB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;aAC/B,CAAC,CAAC;QACJ,CAAC;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACrB,CAAC;CACD;AAxKD,gCAwKC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from "n8n-workflow";
2
+ export declare const connectionModeDescription: INodeProperties[];
3
+ //# sourceMappingURL=connectionModeDescription.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connectionModeDescription.d.ts","sourceRoot":"","sources":["../../../../nodes/ClaudeCode/descriptions/connectionModeDescription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,eAAO,MAAM,yBAAyB,EAAE,eAAe,EA0BtD,CAAC"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.connectionModeDescription = void 0;
4
+ exports.connectionModeDescription = [
5
+ {
6
+ displayName: "Connection Mode",
7
+ name: "connectionMode",
8
+ type: "options",
9
+ options: [
10
+ {
11
+ name: "Local",
12
+ value: "local",
13
+ description: "Claude Code installed on the same machine/container as n8n",
14
+ },
15
+ {
16
+ name: "SSH Remote",
17
+ value: "ssh",
18
+ description: "Claude Code on a remote machine accessible via SSH",
19
+ },
20
+ {
21
+ name: "Docker Exec",
22
+ value: "docker",
23
+ description: "Claude Code running in another Docker container",
24
+ },
25
+ ],
26
+ default: "local",
27
+ description: "How to connect to the Claude Code CLI",
28
+ },
29
+ ];
30
+ //# sourceMappingURL=connectionModeDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connectionModeDescription.js","sourceRoot":"","sources":["../../../../nodes/ClaudeCode/descriptions/connectionModeDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,yBAAyB,GAAsB;IAC3D;QACC,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,OAAO;gBACd,WAAW,EACV,4DAA4D;aAC7D;YACD;gBACC,IAAI,EAAE,YAAY;gBAClB,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,oDAAoD;aACjE;YACD;gBACC,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,iDAAiD;aAC9D;SACD;QACD,OAAO,EAAE,OAAO;QAChB,WAAW,EAAE,uCAAuC;KACpD;CACD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from "n8n-workflow";
2
+ export declare const contextDescription: INodeProperties[];
3
+ //# sourceMappingURL=contextDescription.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contextDescription.d.ts","sourceRoot":"","sources":["../../../../nodes/ClaudeCode/descriptions/contextDescription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,eAAO,MAAM,kBAAkB,EAAE,eAAe,EAgD/C,CAAC"}
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.contextDescription = void 0;
4
+ exports.contextDescription = [
5
+ {
6
+ displayName: "Context Files",
7
+ name: "contextFiles",
8
+ type: "fixedCollection",
9
+ typeOptions: {
10
+ multipleValues: true,
11
+ multipleValueButtonText: "Add Context File",
12
+ },
13
+ default: { files: [] },
14
+ displayOptions: {
15
+ show: {
16
+ operation: ["executeWithContext"],
17
+ },
18
+ },
19
+ options: [
20
+ {
21
+ name: "files",
22
+ displayName: "Files",
23
+ values: [
24
+ {
25
+ displayName: "File Path",
26
+ name: "path",
27
+ type: "string",
28
+ default: "",
29
+ required: true,
30
+ placeholder: "/path/to/file.ts",
31
+ description: "Path to the file to include as context",
32
+ },
33
+ ],
34
+ },
35
+ ],
36
+ description: "Files to include as context for the prompt",
37
+ },
38
+ {
39
+ displayName: "Additional Directories",
40
+ name: "additionalDirs",
41
+ type: "string",
42
+ default: "",
43
+ displayOptions: {
44
+ show: {
45
+ operation: ["executeWithContext"],
46
+ },
47
+ },
48
+ placeholder: "/path/to/dir1, /path/to/dir2",
49
+ description: "Additional directories to add as context (comma-separated paths)",
50
+ },
51
+ ];
52
+ //# sourceMappingURL=contextDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contextDescription.js","sourceRoot":"","sources":["../../../../nodes/ClaudeCode/descriptions/contextDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAsB;IACpD;QACC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,iBAAiB;QACvB,WAAW,EAAE;YACZ,cAAc,EAAE,IAAI;YACpB,uBAAuB,EAAE,kBAAkB;SAC3C;QACD,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,SAAS,EAAE,CAAC,oBAAoB,CAAC;aACjC;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,OAAO;gBACb,WAAW,EAAE,OAAO;gBACpB,MAAM,EAAE;oBACP;wBACC,WAAW,EAAE,WAAW;wBACxB,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,EAAE;wBACX,QAAQ,EAAE,IAAI;wBACd,WAAW,EAAE,kBAAkB;wBAC/B,WAAW,EAAE,wCAAwC;qBACrD;iBACD;aACD;SACD;QACD,WAAW,EAAE,4CAA4C;KACzD;IACD;QACC,WAAW,EAAE,wBAAwB;QACrC,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,SAAS,EAAE,CAAC,oBAAoB,CAAC;aACjC;SACD;QACD,WAAW,EAAE,8BAA8B;QAC3C,WAAW,EACV,kEAAkE;KACnE;CACD,CAAC"}
@@ -0,0 +1,9 @@
1
+ export { connectionModeDescription } from "./connectionModeDescription.js";
2
+ export { operationDescription } from "./operationDescription.js";
3
+ export { promptDescription } from "./promptDescription.js";
4
+ export { contextDescription } from "./contextDescription.js";
5
+ export { sessionDescription } from "./sessionDescription.js";
6
+ export { toolPermissionsDescription } from "./toolPermissionsDescription.js";
7
+ export { modelDescription } from "./modelDescription.js";
8
+ export { optionsDescription } from "./optionsDescription.js";
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../nodes/ClaudeCode/descriptions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC"}