Skip to content

Commit 2c1950f

Browse files
committed
Add Codex provider, auto-populate project name, add model TODO
1 parent 3c84834 commit 2c1950f

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
### Changelog
2+
3+
All notable changes to this project will be documented in this file. Dates are displayed in UTC.
4+
5+
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6+
7+
#### 1.0.5
8+
9+
- Initial commit: n8n community node for Cloud CLI [`fb0500b`](https://github.com/cloudcli-ai/n8n-nodes-cloud-cli/commit/fb0500b11c5de5de918e83843da82aae312ed41c)
10+
- Initial commit: n8n community node for Cloud CLI [`8db6855`](https://github.com/cloudcli-ai/n8n-nodes-cloud-cli/commit/8db6855df07f5ac9a724a0629df1aeb87ba8a49f)

nodes/CloudCli/CloudCli.node.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,9 @@ export class CloudCli implements INodeType {
316316
operation: ['execute'],
317317
},
318318
},
319-
default: '',
319+
default: '={{$parameter["agentEnvironmentId"].cachedResultName?.split(" ")[0] || ""}}',
320320
placeholder: 'e.g. backend',
321-
description: 'Name of the project inside /workspace/ directory (just the folder name, not the full path)',
321+
description: 'Name of the project inside /workspace/ directory. Defaults to the environment subdomain. Only change this if you know what you are doing.',
322322
},
323323
{
324324
displayName: 'Message',
@@ -353,6 +353,10 @@ export class CloudCli implements INodeType {
353353
name: 'Claude',
354354
value: 'claude',
355355
},
356+
{
357+
name: 'Codex',
358+
value: 'codex',
359+
},
356360
{
357361
name: 'Cursor',
358362
value: 'cursor',
@@ -361,6 +365,7 @@ export class CloudCli implements INodeType {
361365
default: 'claude',
362366
description: 'AI provider to use',
363367
},
368+
// TODO: Add a model parameter to allow users to select the AI model
364369
{
365370
displayName: 'Additional Options',
366371
name: 'additionalOptions',
@@ -428,13 +433,14 @@ export class CloudCli implements INodeType {
428433
if (!filter) return true;
429434
const name = (env.name as string) || '';
430435
const id = (env.id as string) || '';
436+
const subdomain = (env.subdomain as string) || '';
431437
const filterLower = filter.toLowerCase();
432-
return name.toLowerCase().includes(filterLower) || id.toLowerCase().includes(filterLower);
438+
return name.toLowerCase().includes(filterLower) || id.toLowerCase().includes(filterLower) || subdomain.toLowerCase().includes(filterLower);
433439
})
434440
.map((env) => ({
435441
name: `${env.name} (${env.status})`,
436442
value: env.id as string,
437-
url: env.url as string,
443+
url: env.access_url as string,
438444
}));
439445

440446
return { results };

0 commit comments

Comments
 (0)