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.
- package/LICENSE +21 -0
- package/README.md +603 -0
- package/dist/credentials/ClaudeCodeDockerApi.credentials.d.ts +9 -0
- package/dist/credentials/ClaudeCodeDockerApi.credentials.d.ts.map +1 -0
- package/dist/credentials/ClaudeCodeDockerApi.credentials.js +82 -0
- package/dist/credentials/ClaudeCodeDockerApi.credentials.js.map +1 -0
- package/dist/credentials/ClaudeCodeLocalApi.credentials.d.ts +9 -0
- package/dist/credentials/ClaudeCodeLocalApi.credentials.d.ts.map +1 -0
- package/dist/credentials/ClaudeCodeLocalApi.credentials.js +35 -0
- package/dist/credentials/ClaudeCodeLocalApi.credentials.js.map +1 -0
- package/dist/credentials/ClaudeCodeSshApi.credentials.d.ts +9 -0
- package/dist/credentials/ClaudeCodeSshApi.credentials.d.ts.map +1 -0
- package/dist/credentials/ClaudeCodeSshApi.credentials.js +119 -0
- package/dist/credentials/ClaudeCodeSshApi.credentials.js.map +1 -0
- package/dist/icons/claudecode.svg +40 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -0
- package/dist/nodes/ClaudeCode/ClaudeCode.node.d.ts +6 -0
- package/dist/nodes/ClaudeCode/ClaudeCode.node.d.ts.map +1 -0
- package/dist/nodes/ClaudeCode/ClaudeCode.node.js +131 -0
- package/dist/nodes/ClaudeCode/ClaudeCode.node.js.map +1 -0
- package/dist/nodes/ClaudeCode/descriptions/connectionModeDescription.d.ts +3 -0
- package/dist/nodes/ClaudeCode/descriptions/connectionModeDescription.d.ts.map +1 -0
- package/dist/nodes/ClaudeCode/descriptions/connectionModeDescription.js +30 -0
- package/dist/nodes/ClaudeCode/descriptions/connectionModeDescription.js.map +1 -0
- package/dist/nodes/ClaudeCode/descriptions/contextDescription.d.ts +3 -0
- package/dist/nodes/ClaudeCode/descriptions/contextDescription.d.ts.map +1 -0
- package/dist/nodes/ClaudeCode/descriptions/contextDescription.js +52 -0
- package/dist/nodes/ClaudeCode/descriptions/contextDescription.js.map +1 -0
- package/dist/nodes/ClaudeCode/descriptions/index.d.ts +9 -0
- package/dist/nodes/ClaudeCode/descriptions/index.d.ts.map +1 -0
- package/dist/nodes/ClaudeCode/descriptions/index.js +20 -0
- package/dist/nodes/ClaudeCode/descriptions/index.js.map +1 -0
- package/dist/nodes/ClaudeCode/descriptions/modelDescription.d.ts +3 -0
- package/dist/nodes/ClaudeCode/descriptions/modelDescription.d.ts.map +1 -0
- package/dist/nodes/ClaudeCode/descriptions/modelDescription.js +49 -0
- package/dist/nodes/ClaudeCode/descriptions/modelDescription.js.map +1 -0
- package/dist/nodes/ClaudeCode/descriptions/operationDescription.d.ts +3 -0
- package/dist/nodes/ClaudeCode/descriptions/operationDescription.d.ts.map +1 -0
- package/dist/nodes/ClaudeCode/descriptions/operationDescription.js +39 -0
- package/dist/nodes/ClaudeCode/descriptions/operationDescription.js.map +1 -0
- package/dist/nodes/ClaudeCode/descriptions/optionsDescription.d.ts +3 -0
- package/dist/nodes/ClaudeCode/descriptions/optionsDescription.d.ts.map +1 -0
- package/dist/nodes/ClaudeCode/descriptions/optionsDescription.js +67 -0
- package/dist/nodes/ClaudeCode/descriptions/optionsDescription.js.map +1 -0
- package/dist/nodes/ClaudeCode/descriptions/promptDescription.d.ts +3 -0
- package/dist/nodes/ClaudeCode/descriptions/promptDescription.d.ts.map +1 -0
- package/dist/nodes/ClaudeCode/descriptions/promptDescription.js +28 -0
- package/dist/nodes/ClaudeCode/descriptions/promptDescription.js.map +1 -0
- package/dist/nodes/ClaudeCode/descriptions/sessionDescription.d.ts +3 -0
- package/dist/nodes/ClaudeCode/descriptions/sessionDescription.d.ts.map +1 -0
- package/dist/nodes/ClaudeCode/descriptions/sessionDescription.js +20 -0
- package/dist/nodes/ClaudeCode/descriptions/sessionDescription.js.map +1 -0
- package/dist/nodes/ClaudeCode/descriptions/toolPermissionsDescription.d.ts +3 -0
- package/dist/nodes/ClaudeCode/descriptions/toolPermissionsDescription.d.ts.map +1 -0
- package/dist/nodes/ClaudeCode/descriptions/toolPermissionsDescription.js +31 -0
- package/dist/nodes/ClaudeCode/descriptions/toolPermissionsDescription.js.map +1 -0
- package/dist/nodes/ClaudeCode/interfaces/ClaudeCodeTypes.d.ts +143 -0
- package/dist/nodes/ClaudeCode/interfaces/ClaudeCodeTypes.d.ts.map +1 -0
- package/dist/nodes/ClaudeCode/interfaces/ClaudeCodeTypes.js +3 -0
- package/dist/nodes/ClaudeCode/interfaces/ClaudeCodeTypes.js.map +1 -0
- package/dist/nodes/ClaudeCode/interfaces/index.d.ts +2 -0
- package/dist/nodes/ClaudeCode/interfaces/index.d.ts.map +1 -0
- package/dist/nodes/ClaudeCode/interfaces/index.js +3 -0
- package/dist/nodes/ClaudeCode/interfaces/index.js.map +1 -0
- package/dist/nodes/ClaudeCode/transport/DockerExecutor.d.ts +29 -0
- package/dist/nodes/ClaudeCode/transport/DockerExecutor.d.ts.map +1 -0
- package/dist/nodes/ClaudeCode/transport/DockerExecutor.js +153 -0
- package/dist/nodes/ClaudeCode/transport/DockerExecutor.js.map +1 -0
- package/dist/nodes/ClaudeCode/transport/ExecutorFactory.d.ts +6 -0
- package/dist/nodes/ClaudeCode/transport/ExecutorFactory.d.ts.map +1 -0
- package/dist/nodes/ClaudeCode/transport/ExecutorFactory.js +22 -0
- package/dist/nodes/ClaudeCode/transport/ExecutorFactory.js.map +1 -0
- package/dist/nodes/ClaudeCode/transport/LocalExecutor.d.ts +18 -0
- package/dist/nodes/ClaudeCode/transport/LocalExecutor.d.ts.map +1 -0
- package/dist/nodes/ClaudeCode/transport/LocalExecutor.js +83 -0
- package/dist/nodes/ClaudeCode/transport/LocalExecutor.js.map +1 -0
- package/dist/nodes/ClaudeCode/transport/SshExecutor.d.ts +25 -0
- package/dist/nodes/ClaudeCode/transport/SshExecutor.d.ts.map +1 -0
- package/dist/nodes/ClaudeCode/transport/SshExecutor.js +174 -0
- package/dist/nodes/ClaudeCode/transport/SshExecutor.js.map +1 -0
- package/dist/nodes/ClaudeCode/transport/index.d.ts +5 -0
- package/dist/nodes/ClaudeCode/transport/index.d.ts.map +1 -0
- package/dist/nodes/ClaudeCode/transport/index.js +12 -0
- package/dist/nodes/ClaudeCode/transport/index.js.map +1 -0
- package/dist/nodes/ClaudeCode/utils/commandBuilder.d.ts +16 -0
- package/dist/nodes/ClaudeCode/utils/commandBuilder.d.ts.map +1 -0
- package/dist/nodes/ClaudeCode/utils/commandBuilder.js +100 -0
- package/dist/nodes/ClaudeCode/utils/commandBuilder.js.map +1 -0
- package/dist/nodes/ClaudeCode/utils/index.d.ts +4 -0
- package/dist/nodes/ClaudeCode/utils/index.d.ts.map +1 -0
- package/dist/nodes/ClaudeCode/utils/index.js +14 -0
- package/dist/nodes/ClaudeCode/utils/index.js.map +1 -0
- package/dist/nodes/ClaudeCode/utils/optionsBuilder.d.ts +7 -0
- package/dist/nodes/ClaudeCode/utils/optionsBuilder.d.ts.map +1 -0
- package/dist/nodes/ClaudeCode/utils/optionsBuilder.js +84 -0
- package/dist/nodes/ClaudeCode/utils/optionsBuilder.js.map +1 -0
- package/dist/nodes/ClaudeCode/utils/outputParser.d.ts +14 -0
- package/dist/nodes/ClaudeCode/utils/outputParser.d.ts.map +1 -0
- package/dist/nodes/ClaudeCode/utils/outputParser.js +80 -0
- package/dist/nodes/ClaudeCode/utils/outputParser.js.map +1 -0
- package/package.json +75 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.optionsDescription = exports.modelDescription = exports.toolPermissionsDescription = exports.sessionDescription = exports.contextDescription = exports.promptDescription = exports.operationDescription = exports.connectionModeDescription = void 0;
|
|
4
|
+
var connectionModeDescription_js_1 = require("./connectionModeDescription.js");
|
|
5
|
+
Object.defineProperty(exports, "connectionModeDescription", { enumerable: true, get: function () { return connectionModeDescription_js_1.connectionModeDescription; } });
|
|
6
|
+
var operationDescription_js_1 = require("./operationDescription.js");
|
|
7
|
+
Object.defineProperty(exports, "operationDescription", { enumerable: true, get: function () { return operationDescription_js_1.operationDescription; } });
|
|
8
|
+
var promptDescription_js_1 = require("./promptDescription.js");
|
|
9
|
+
Object.defineProperty(exports, "promptDescription", { enumerable: true, get: function () { return promptDescription_js_1.promptDescription; } });
|
|
10
|
+
var contextDescription_js_1 = require("./contextDescription.js");
|
|
11
|
+
Object.defineProperty(exports, "contextDescription", { enumerable: true, get: function () { return contextDescription_js_1.contextDescription; } });
|
|
12
|
+
var sessionDescription_js_1 = require("./sessionDescription.js");
|
|
13
|
+
Object.defineProperty(exports, "sessionDescription", { enumerable: true, get: function () { return sessionDescription_js_1.sessionDescription; } });
|
|
14
|
+
var toolPermissionsDescription_js_1 = require("./toolPermissionsDescription.js");
|
|
15
|
+
Object.defineProperty(exports, "toolPermissionsDescription", { enumerable: true, get: function () { return toolPermissionsDescription_js_1.toolPermissionsDescription; } });
|
|
16
|
+
var modelDescription_js_1 = require("./modelDescription.js");
|
|
17
|
+
Object.defineProperty(exports, "modelDescription", { enumerable: true, get: function () { return modelDescription_js_1.modelDescription; } });
|
|
18
|
+
var optionsDescription_js_1 = require("./optionsDescription.js");
|
|
19
|
+
Object.defineProperty(exports, "optionsDescription", { enumerable: true, get: function () { return optionsDescription_js_1.optionsDescription; } });
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../nodes/ClaudeCode/descriptions/index.ts"],"names":[],"mappings":";;;AAAA,+EAA2E;AAAlE,yIAAA,yBAAyB,OAAA;AAClC,qEAAiE;AAAxD,+HAAA,oBAAoB,OAAA;AAC7B,+DAA2D;AAAlD,yHAAA,iBAAiB,OAAA;AAC1B,iEAA6D;AAApD,2HAAA,kBAAkB,OAAA;AAC3B,iEAA6D;AAApD,2HAAA,kBAAkB,OAAA;AAC3B,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA;AACnC,6DAAyD;AAAhD,uHAAA,gBAAgB,OAAA;AACzB,iEAA6D;AAApD,2HAAA,kBAAkB,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modelDescription.d.ts","sourceRoot":"","sources":["../../../../nodes/ClaudeCode/descriptions/modelDescription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,eAAO,MAAM,gBAAgB,EAAE,eAAe,EA8C7C,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.modelDescription = void 0;
|
|
4
|
+
exports.modelDescription = [
|
|
5
|
+
{
|
|
6
|
+
displayName: "Model",
|
|
7
|
+
name: "model",
|
|
8
|
+
type: "options",
|
|
9
|
+
options: [
|
|
10
|
+
{ name: "Default (from Claude Code config)", value: "" },
|
|
11
|
+
// Aliases (Latest versions)
|
|
12
|
+
{ name: "Opus (Latest)", value: "opus" },
|
|
13
|
+
{ name: "Sonnet (Latest)", value: "sonnet" },
|
|
14
|
+
{ name: "Haiku (Latest)", value: "haiku" },
|
|
15
|
+
// Claude 4.5 Series
|
|
16
|
+
{ name: "Claude Opus 4.5", value: "claude-opus-4-5-20251101" },
|
|
17
|
+
{ name: "Claude Sonnet 4.5", value: "claude-sonnet-4-5-20250929" },
|
|
18
|
+
{ name: "Claude Haiku 4.5", value: "claude-haiku-4-5-20251001" },
|
|
19
|
+
// Claude 4.x Series
|
|
20
|
+
{ name: "Claude Opus 4.1", value: "claude-opus-4-1-20250805" },
|
|
21
|
+
{ name: "Claude Opus 4", value: "claude-opus-4-20250514" },
|
|
22
|
+
{ name: "Claude Sonnet 4", value: "claude-sonnet-4-20250514" },
|
|
23
|
+
// Claude 3.7 Series
|
|
24
|
+
{ name: "Claude Sonnet 3.7", value: "claude-3-7-sonnet-20250219" },
|
|
25
|
+
// Claude 3.5 Series (Legacy)
|
|
26
|
+
{ name: "Claude Sonnet 3.5 v2", value: "claude-3-5-sonnet-20241022" },
|
|
27
|
+
{ name: "Claude Sonnet 3.5 v1", value: "claude-3-5-sonnet-20240620" },
|
|
28
|
+
{ name: "Claude Haiku 3.5", value: "claude-3-5-haiku-20241022" },
|
|
29
|
+
// Custom
|
|
30
|
+
{ name: "Custom", value: "custom" },
|
|
31
|
+
],
|
|
32
|
+
default: "",
|
|
33
|
+
description: "Model to use for execution. Leave empty to use Claude Code default.",
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
displayName: "Custom Model ID",
|
|
37
|
+
name: "customModel",
|
|
38
|
+
type: "string",
|
|
39
|
+
default: "",
|
|
40
|
+
displayOptions: {
|
|
41
|
+
show: {
|
|
42
|
+
model: ["custom"],
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
placeholder: "claude-opus-4-5-20251101",
|
|
46
|
+
description: "Custom model ID to use. Useful for new models or specific versions.",
|
|
47
|
+
},
|
|
48
|
+
];
|
|
49
|
+
//# sourceMappingURL=modelDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modelDescription.js","sourceRoot":"","sources":["../../../../nodes/ClaudeCode/descriptions/modelDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,gBAAgB,GAAsB;IAClD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,SAAS;QACf,OAAO,EAAE;YACR,EAAE,IAAI,EAAE,mCAAmC,EAAE,KAAK,EAAE,EAAE,EAAE;YACxD,4BAA4B;YAC5B,EAAE,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,EAAE;YACxC,EAAE,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,QAAQ,EAAE;YAC5C,EAAE,IAAI,E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audeCode/descriptions/operationDescription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,eAAO,MAAM,oBAAoB,EAAE,eAAe,EAkCjD,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.operationDescription = void 0;
|
|
4
|
+
exports.operationDescription = [
|
|
5
|
+
{
|
|
6
|
+
displayName: "Operation",
|
|
7
|
+
name: "operation",
|
|
8
|
+
type: "options",
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
options: [
|
|
11
|
+
{
|
|
12
|
+
name: "Execute Prompt",
|
|
13
|
+
value: "executePrompt",
|
|
14
|
+
description: "Send a prompt to Claude Code and get a response",
|
|
15
|
+
action: "Execute a prompt",
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
name: "Execute with Context",
|
|
19
|
+
value: "executeWithContext",
|
|
20
|
+
description: "Execute a prompt with additional file context",
|
|
21
|
+
action: "Execute with file context",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: "Continue Session",
|
|
25
|
+
value: "continueSession",
|
|
26
|
+
description: "Continue the most recent Claude Code conversation",
|
|
27
|
+
action: "Continue last session",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: "Resume Session",
|
|
31
|
+
value: "resumeSession",
|
|
32
|
+
description: "Resume a specific Claude Code session by ID",
|
|
33
|
+
action: "Resume specific session",
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
default: "executePrompt",
|
|
37
|
+
},
|
|
38
|
+
];
|
|
39
|
+
//# sourceMappingURL=operationDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operationDescription.js","sourceRoot":"","sources":["../../../../nodes/ClaudeCode/descriptions/operationDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,oBAAoB,GAAsB;IACtD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,gBAAgB;gBACtB,KAAK,EAAE,eAAe;gBACtB,WAAW,EAAE,iDAAiD;gBAC9D,MAAM,EAAE,kBAAkB;aAC1B;YACD;gBACC,IAAI,EAAE,sBAAsB;gBAC5B,KAAK,EAAE,oBAAoB;gBAC3B,WAAW,EAAE,+CAA+C;gBAC5D,MAAM,EAAE,2BAA2B;aACnC;YACD;gBACC,IAAI,EAAE,kBAAkB;gBACxB,KAAK,EAAE,iBAAiB;gBACxB,WAAW,EAAE,mDAAmD;gBAChE,MAAM,EAAE,uBAAuB;aAC/B;YACD;gBACC,IAAI,EAAE,gBAAgB;gBACtB,KAAK,EAAE,eAAe;gBACtB,WAAW,EAAE,6CAA6C;gBAC1D,MAAM,EAAE,yBAAyB;aACjC;SACD;QACD,OAAO,EAAE,eAAe;KACxB;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"optionsDescription.d.ts","sourceRoot":"","sources":["../../../../nodes/ClaudeCode/descriptions/optionsDescription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,eAAO,MAAM,kBAAkB,EAAE,eAAe,EAkE/C,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.optionsDescription = void 0;
|
|
4
|
+
exports.optionsDescription = [
|
|
5
|
+
{
|
|
6
|
+
displayName: "Options",
|
|
7
|
+
name: "options",
|
|
8
|
+
type: "collection",
|
|
9
|
+
placeholder: "Add Option",
|
|
10
|
+
default: {},
|
|
11
|
+
options: [
|
|
12
|
+
{
|
|
13
|
+
displayName: "Working Directory",
|
|
14
|
+
name: "workingDirectory",
|
|
15
|
+
type: "string",
|
|
16
|
+
default: "",
|
|
17
|
+
placeholder: "/path/to/project",
|
|
18
|
+
description: "Working directory for Claude Code execution. Overrides the default from credentials.",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
displayName: "Output Format",
|
|
22
|
+
name: "outputFormat",
|
|
23
|
+
type: "options",
|
|
24
|
+
options: [
|
|
25
|
+
{ name: "JSON", value: "json" },
|
|
26
|
+
{ name: "Text", value: "text" },
|
|
27
|
+
],
|
|
28
|
+
default: "json",
|
|
29
|
+
description: "Output format for Claude Code response",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
displayName: "Max Turns",
|
|
33
|
+
name: "maxTurns",
|
|
34
|
+
type: "number",
|
|
35
|
+
default: 0,
|
|
36
|
+
description: "Maximum number of conversation turns. 0 means unlimited. Useful for limiting API costs.",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
displayName: "Timeout (Seconds)",
|
|
40
|
+
name: "timeout",
|
|
41
|
+
type: "number",
|
|
42
|
+
default: 300,
|
|
43
|
+
description: "Execution timeout in seconds. Maximum: 3600 (1 hour).",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
displayName: "System Prompt",
|
|
47
|
+
name: "systemPrompt",
|
|
48
|
+
type: "string",
|
|
49
|
+
typeOptions: {
|
|
50
|
+
rows: 4,
|
|
51
|
+
},
|
|
52
|
+
default: "",
|
|
53
|
+
placeholder: "You are a helpful code reviewer...",
|
|
54
|
+
description: "Additional system prompt to append to Claude Code default system prompt",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
displayName: "Additional Arguments",
|
|
58
|
+
name: "additionalArgs",
|
|
59
|
+
type: "string",
|
|
60
|
+
default: "",
|
|
61
|
+
placeholder: "--verbose --no-cache",
|
|
62
|
+
description: "Additional CLI arguments to pass to Claude Code (space-separated)",
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
},
|
|
66
|
+
];
|
|
67
|
+
//# sourceMappingURL=optionsDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"optionsDescription.js","sourceRoot":"","sources":["../../../../nodes/ClaudeCode/descriptions/optionsDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAsB;IACpD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,mBAAmB;gBAChC,IAAI,EAAE,kBAAkB;gBACxB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,kBAAkB;gBAC/B,WAAW,EACV,sFAAsF;aACvF;YACD;gBACC,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACR,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;oBAC/B,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;iBAC/B;gBACD,OAAO,EAAE,MAAM;gBACf,WAAW,EAAE,wCAAwC;aACrD;YACD;gBACC,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC;gBACV,WAAW,EACV,yFAAyF;aAC1F;YACD;gBACC,WAAW,EAAE,mBAAmB;gBAChC,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,GAAG;gBACZ,WAAW,EAAE,uDAAuD;aACpE;YACD;gBACC,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,IAAI,EAAE,CAAC;iBACP;gBACD,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,oCAAoC;gBACjD,WAAW,EACV,yEAAyE;aAC1E;YACD;gBACC,WAAW,EAAE,sBAAsB;gBACnC,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,sBAAsB;gBACnC,WAAW,EACV,mEAAmE;aACpE;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promptDescription.d.ts","sourceRoot":"","sources":["../../../../nodes/ClaudeCode/descriptions/promptDescription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,eAAO,MAAM,iBAAiB,EAAE,eAAe,EAuB9C,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.promptDescription = void 0;
|
|
4
|
+
exports.promptDescription = [
|
|
5
|
+
{
|
|
6
|
+
displayName: "Prompt",
|
|
7
|
+
name: "prompt",
|
|
8
|
+
type: "string",
|
|
9
|
+
typeOptions: {
|
|
10
|
+
rows: 6,
|
|
11
|
+
},
|
|
12
|
+
default: "",
|
|
13
|
+
required: true,
|
|
14
|
+
displayOptions: {
|
|
15
|
+
show: {
|
|
16
|
+
operation: [
|
|
17
|
+
"executePrompt",
|
|
18
|
+
"executeWithContext",
|
|
19
|
+
"continueSession",
|
|
20
|
+
"resumeSession",
|
|
21
|
+
],
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
placeholder: "Review this code and suggest improvements...",
|
|
25
|
+
description: "The prompt to send to Claude Code. Supports n8n expressions.",
|
|
26
|
+
},
|
|
27
|
+
];
|
|
28
|
+
//# sourceMappingURL=promptDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promptDescription.js","sourceRoot":"","sources":["../../../../nodes/ClaudeCode/descriptions/promptDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAsB;IACnD;QACC,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE;YACZ,IAAI,EAAE,CAAC;SACP;QACD,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,SAAS,EAAE;oBACV,eAAe;oBACf,oBAAoB;oBACpB,iBAAiB;oBACjB,eAAe;iBACf;aACD;SACD;QACD,WAAW,EAAE,8CAA8C;QAC3D,WAAW,EAAE,8DAA8D;KAC3E;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessionDescription.d.ts","sourceRoot":"","sources":["../../../../nodes/ClaudeCode/descriptions/sessionDescription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,eAAO,MAAM,kBAAkB,EAAE,eAAe,EAgB/C,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sessionDescription = void 0;
|
|
4
|
+
exports.sessionDescription = [
|
|
5
|
+
{
|
|
6
|
+
displayName: "Session ID",
|
|
7
|
+
name: "sessionId",
|
|
8
|
+
type: "string",
|
|
9
|
+
default: "",
|
|
10
|
+
required: true,
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
operation: ["resumeSession"],
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
placeholder: "abc123-def456-ghi789",
|
|
17
|
+
description: "The session ID to resume. This is returned from previous Claude Code executions.",
|
|
18
|
+
},
|
|
19
|
+
];
|
|
20
|
+
//# sourceMappingURL=sessionDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessionDescription.js","sourceRoot":"","sources":["../../../../nodes/ClaudeCode/descriptions/sessionDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAsB;IACpD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,SAAS,EAAE,CAAC,eAAe,CAAC;aAC5B;SACD;QACD,WAAW,EAAE,sBAAsB;QACnC,WAAW,EACV,kFAAkF;KACnF;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolPermissionsDescription.d.ts","sourceRoot":"","sources":["../../../../nodes/ClaudeCode/descriptions/toolPermissionsDescription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,eAAO,MAAM,0BAA0B,EAAE,eAAe,EA4BvD,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toolPermissionsDescription = void 0;
|
|
4
|
+
exports.toolPermissionsDescription = [
|
|
5
|
+
{
|
|
6
|
+
displayName: "Tool Permissions",
|
|
7
|
+
name: "toolPermissions",
|
|
8
|
+
type: "collection",
|
|
9
|
+
placeholder: "Add Permission",
|
|
10
|
+
default: {},
|
|
11
|
+
options: [
|
|
12
|
+
{
|
|
13
|
+
displayName: "Allowed Tools",
|
|
14
|
+
name: "allowedTools",
|
|
15
|
+
type: "string",
|
|
16
|
+
default: "",
|
|
17
|
+
placeholder: "Read, Edit, Bash(git:*), Bash(npm run *)",
|
|
18
|
+
description: "Tools Claude Code can use without prompting. Comma-separated. Examples: Read, Edit, Write, Bash(git:*), Bash(npm:*)",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
displayName: "Disallowed Tools",
|
|
22
|
+
name: "disallowedTools",
|
|
23
|
+
type: "string",
|
|
24
|
+
default: "",
|
|
25
|
+
placeholder: "Bash(rm:*), Write(.env)",
|
|
26
|
+
description: "Tools Claude Code cannot use. Comma-separated. Examples: Bash(curl:*), Read(.env), Write",
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
},
|
|
30
|
+
];
|
|
31
|
+
//# sourceMappingURL=toolPermissionsDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolPermissionsDescription.js","sourceRoot":"","sources":["../../../../nodes/ClaudeCode/descriptions/toolPermissionsDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,0BAA0B,GAAsB;IAC5D;QACC,WAAW,EAAE,kBAAkB;QAC/B,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,gBAAgB;QAC7B,OAAO,EAAE,EAAE;QACX,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,0CAA0C;gBACvD,WAAW,EACV,qHAAqH;aACtH;YACD;gBACC,WAAW,EAAE,kBAAkB;gBAC/B,IAAI,EAAE,iBAAiB;gBACvB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,yBAAyB;gBACtC,WAAW,EACV,0FAA0F;aAC3F;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Connection mode types for Claude Code execution
|
|
3
|
+
*/
|
|
4
|
+
export type ConnectionMode = "local" | "ssh" | "docker";
|
|
5
|
+
/**
|
|
6
|
+
* Output format types supported by Claude Code CLI
|
|
7
|
+
*/
|
|
8
|
+
export type OutputFormat = "json" | "text";
|
|
9
|
+
/**
|
|
10
|
+
* Available operations for the Claude Code node
|
|
11
|
+
*/
|
|
12
|
+
export type ClaudeCodeOperation = "executePrompt" | "executeWithContext" | "continueSession" | "resumeSession";
|
|
13
|
+
/**
|
|
14
|
+
* Tool permission configuration
|
|
15
|
+
*/
|
|
16
|
+
export interface ToolPermissions {
|
|
17
|
+
allowedTools?: string[];
|
|
18
|
+
disallowedTools?: string[];
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Session configuration for conversation management
|
|
22
|
+
*/
|
|
23
|
+
export interface SessionConfig {
|
|
24
|
+
sessionId?: string;
|
|
25
|
+
continueLastSession?: boolean;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Context file for execution with context
|
|
29
|
+
*/
|
|
30
|
+
export interface ContextFile {
|
|
31
|
+
path: string;
|
|
32
|
+
content?: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Claude Code execution options
|
|
36
|
+
*/
|
|
37
|
+
export interface ClaudeCodeExecutionOptions {
|
|
38
|
+
prompt: string;
|
|
39
|
+
workingDirectory?: string;
|
|
40
|
+
outputFormat: OutputFormat;
|
|
41
|
+
model?: string;
|
|
42
|
+
maxTurns?: number;
|
|
43
|
+
toolPermissions?: ToolPermissions;
|
|
44
|
+
session?: SessionConfig;
|
|
45
|
+
contextFiles?: ContextFile[];
|
|
46
|
+
additionalArgs?: string[];
|
|
47
|
+
timeout?: number;
|
|
48
|
+
systemPrompt?: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Executor interface for different connection modes
|
|
52
|
+
*/
|
|
53
|
+
export interface IClaudeCodeExecutor {
|
|
54
|
+
execute(options: ClaudeCodeExecutionOptions): Promise<ClaudeCodeResult>;
|
|
55
|
+
testConnection(): Promise<boolean>;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Claude Code JSON output structure from CLI
|
|
59
|
+
*/
|
|
60
|
+
export interface ClaudeCodeJsonOutput {
|
|
61
|
+
session_id: string;
|
|
62
|
+
result?: string;
|
|
63
|
+
is_error?: boolean;
|
|
64
|
+
total_cost_usd?: number;
|
|
65
|
+
total_duration_ms?: number;
|
|
66
|
+
total_duration_api_ms?: number;
|
|
67
|
+
num_turns?: number;
|
|
68
|
+
usage?: {
|
|
69
|
+
input_tokens: number;
|
|
70
|
+
output_tokens: number;
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Normalized result structure
|
|
75
|
+
*/
|
|
76
|
+
export interface ClaudeCodeResult {
|
|
77
|
+
success: boolean;
|
|
78
|
+
sessionId: string;
|
|
79
|
+
output: string;
|
|
80
|
+
rawOutput?: ClaudeCodeJsonOutput;
|
|
81
|
+
error?: string;
|
|
82
|
+
exitCode: number;
|
|
83
|
+
duration?: number;
|
|
84
|
+
cost?: number;
|
|
85
|
+
usage?: {
|
|
86
|
+
inputTokens: number;
|
|
87
|
+
outputTokens: number;
|
|
88
|
+
};
|
|
89
|
+
numTurns?: number;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Local connection credentials
|
|
93
|
+
*/
|
|
94
|
+
export interface LocalCredentials {
|
|
95
|
+
claudePath: string;
|
|
96
|
+
defaultWorkingDir: string;
|
|
97
|
+
envVars: string;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* SSH connection credentials
|
|
101
|
+
*/
|
|
102
|
+
export interface SshCredentials {
|
|
103
|
+
host: string;
|
|
104
|
+
port: number;
|
|
105
|
+
username: string;
|
|
106
|
+
authMethod: "privateKey" | "password" | "agent";
|
|
107
|
+
privateKey?: string;
|
|
108
|
+
privateKeyPath?: string;
|
|
109
|
+
passphrase?: string;
|
|
110
|
+
password?: string;
|
|
111
|
+
claudePath: string;
|
|
112
|
+
defaultWorkingDir: string;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Docker exec credentials
|
|
116
|
+
*/
|
|
117
|
+
export interface DockerCredentials {
|
|
118
|
+
containerIdentifier: "name" | "id";
|
|
119
|
+
containerName?: string;
|
|
120
|
+
containerId?: string;
|
|
121
|
+
dockerHost: string;
|
|
122
|
+
user: string;
|
|
123
|
+
claudePath: string;
|
|
124
|
+
defaultWorkingDir: string;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Command builder result
|
|
128
|
+
*/
|
|
129
|
+
export interface CommandParts {
|
|
130
|
+
command: string;
|
|
131
|
+
args: string[];
|
|
132
|
+
env?: Record<string, string>;
|
|
133
|
+
cwd?: string;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Execution context passed to executors
|
|
137
|
+
*/
|
|
138
|
+
export interface ExecutionContext {
|
|
139
|
+
connectionMode: ConnectionMode;
|
|
140
|
+
credentials: LocalCredentials | SshCredentials | DockerCredentials;
|
|
141
|
+
options: ClaudeCodeExecutionOptions;
|
|
142
|
+
}
|
|
143
|
+
//# sourceMappingURL=ClaudeCodeTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClaudeCodeTypes.d.ts","sourceRoot":"","sources":["../../../../nodes/ClaudeCode/interfaces/ClaudeCodeTypes.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;AAExD;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,CAAC;AAE3C;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAC5B,eAAe,GACf,oBAAoB,GACpB,iBAAiB,GACjB,eAAe,CAAC;AAEnB;;GAEG;AACH,MAAM,WAAW,eAAe;IAC/B,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,C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E,MAAM,CAAC;CACb;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAChC,cAAc,EAAE,cAAc,CAAC;IAC/B,WAAW,EAAE,gBAAgB,GAAG,cAAc,GAAG,iBAAiB,CAAC;IACnE,OAAO,EAAE,0BAA0B,CAAC;CACpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClaudeCodeTypes.js","sourceRoot":"","sources":["../../../../nodes/ClaudeCode/interfaces/ClaudeCodeTypes.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export type { ConnectionMode, OutputFormat, ClaudeCodeOperation, ToolPermissions, SessionConfig, ContextFile, ClaudeCodeExecutionOptions, IClaudeCodeExecutor, ClaudeCodeJsonOutput, ClaudeCodeResult, LocalCredentials, SshCredentials, DockerCredentials, CommandParts, ExecutionContext, } from "./ClaudeCodeTypes.js";
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../nodes/ClaudeCode/interfaces/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACX,cAAc,EACd,YAAY,EACZ,mBAAmB,EACnB,eAAe,EACf,aAAa,EACb,WAAW,EACX,0BAA0B,EAC1B,mBAAmB,EACnB,oBAAoB,EACpB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,GAChB,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../nodes/ClaudeCode/interfaces/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { IClaudeCodeExecutor, ClaudeCodeExecutionOptions, ClaudeCodeResult } from "../interfaces/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Executor for Claude Code CLI execution via Docker exec
|
|
4
|
+
*/
|
|
5
|
+
export declare class DockerExecutor implements IClaudeCodeExecutor {
|
|
6
|
+
private credentials;
|
|
7
|
+
constructor(credentials: unknown);
|
|
8
|
+
/**
|
|
9
|
+
* Get the container reference (name or ID)
|
|
10
|
+
*/
|
|
11
|
+
private getContainerRef;
|
|
12
|
+
/**
|
|
13
|
+
* Build docker exec arguments
|
|
14
|
+
*/
|
|
15
|
+
private buildDockerExecArgs;
|
|
16
|
+
/**
|
|
17
|
+
* Get environment for docker command
|
|
18
|
+
*/
|
|
19
|
+
private getDockerEnv;
|
|
20
|
+
/**
|
|
21
|
+
* Execute a Claude Code command via Docker exec
|
|
22
|
+
*/
|
|
23
|
+
execute(options: ClaudeCodeExecutionOptions): Promise<ClaudeCodeResult>;
|
|
24
|
+
/**
|
|
25
|
+
* Test Docker connection and Claude Code availability
|
|
26
|
+
*/
|
|
27
|
+
testConnection(): Promise<boolean>;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=DockerExecutor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DockerExecutor.d.ts","sourceRoot":"","sources":["../../../../nodes/ClaudeCode/transport/DockerExecutor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,mBAAmB,EACnB,0BAA0B,EAC1B,gBAAgB,EAEhB,MAAM,wBAAwB,CAAC;AAQhC;;GAEG;AACH,qBAAa,cAAe,YAAW,mBAAmB;IACzD,OAAO,CAAC,WAAW,CAAoB;gBAE3B,WAAW,EAAE,OAAO;IAIhC;;OAEG;IACH,OAAO,CAAC,eAAe;IAMvB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAwB3B;;OAEG;IACH,OAAO,CAAC,YAAY;IAOpB;;OAEG;IACH,OAAO,CAAC,OAAO,EAAE,0BAA0B,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAkGvE;;OAEG;IACH,cAAc,IAAI,OAAO,CAAC,OAAO,CAAC;CA0BlC"}
|