Skip to content

Commit edd1656

Browse files
zimegClaude
andcommitted
feat: rename Custom Agent to Starter Agent in create template selection
Update the create command's AI agent template option from "Custom Agent" to "Starter Agent" and update the corresponding sample repository paths from assistant-template to starter-agent naming convention. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
1 parent da61007 commit edd1656

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

cmd/project/create_template.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ func getSelectionOptions(categoryID string) []promptObject {
4949
Repository: "slack-cli#ai-apps/support-agent",
5050
},
5151
{
52-
Title: fmt.Sprintf("Custom Agent %s", style.Secondary("Start from scratch")),
53-
Repository: "slack-cli#ai-apps/custom-agent",
52+
Title: fmt.Sprintf("Starter Agent %s", style.Secondary("Start from scratch")),
53+
Repository: "slack-cli#ai-apps/starter-agent",
5454
},
5555
},
5656
"slack-cli#automation-apps": {
@@ -91,14 +91,14 @@ func getFrameworkOptions(template string) []promptObject {
9191
Subdir: "pydantic-ai",
9292
},
9393
},
94-
"slack-cli#ai-apps/custom-agent": {
94+
"slack-cli#ai-apps/starter-agent": {
9595
{
9696
Title: fmt.Sprintf("Bolt for JavaScript %s", style.Secondary("Node.js")),
97-
Repository: "slack-samples/bolt-js-assistant-template",
97+
Repository: "slack-samples/bolt-js-starter-agent",
9898
},
9999
{
100100
Title: fmt.Sprintf("Bolt for Python %s", style.Secondary("Python")),
101-
Repository: "slack-samples/bolt-python-assistant-template",
101+
Repository: "slack-samples/bolt-python-starter-agent",
102102
},
103103
},
104104
}
@@ -301,13 +301,13 @@ func listTemplates(ctx context.Context, clients *shared.ClientFactory, categoryS
301301
if categoryShortcut == "agent" {
302302
categories = []categoryInfo{
303303
{id: "slack-cli#ai-apps/support-agent", name: "Support agent"},
304-
{id: "slack-cli#ai-apps/custom-agent", name: "Custom agent"},
304+
{id: "slack-cli#ai-apps/starter-agent", name: "Starter agent"},
305305
}
306306
} else {
307307
categories = []categoryInfo{
308308
{id: "slack-cli#getting-started", name: "Getting started"},
309309
{id: "slack-cli#ai-apps/support-agent", name: "Support agent"},
310-
{id: "slack-cli#ai-apps/custom-agent", name: "Custom agent"},
310+
{id: "slack-cli#ai-apps/starter-agent", name: "Starter agent"},
311311
{id: "slack-cli#automation-apps", name: "Automation apps"},
312312
}
313313
}

cmd/project/create_test.go

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func TestCreateCommand(t *testing.T) {
125125
Return(
126126
iostreams.SelectPromptResponse{
127127
Prompt: true,
128-
Index: 1, // Select Custom Agent
128+
Index: 1, // Select Starter Agent
129129
},
130130
nil,
131131
)
@@ -144,7 +144,7 @@ func TestCreateCommand(t *testing.T) {
144144
CreateFunc = createClientMock.Create
145145
},
146146
ExpectedAsserts: func(t *testing.T, ctx context.Context, cm *shared.ClientsMock) {
147-
template, err := create.ResolveTemplateURL("slack-samples/bolt-js-assistant-template")
147+
template, err := create.ResolveTemplateURL("slack-samples/bolt-js-starter-agent")
148148
require.NoError(t, err)
149149
expected := create.CreateArgs{
150150
AppName: "my-agent",
@@ -164,7 +164,7 @@ func TestCreateCommand(t *testing.T) {
164164
Return(
165165
iostreams.SelectPromptResponse{
166166
Prompt: true,
167-
Index: 1, // Select Custom Agent
167+
Index: 1, // Select Starter Agent
168168
},
169169
nil,
170170
)
@@ -181,7 +181,7 @@ func TestCreateCommand(t *testing.T) {
181181
CreateFunc = createClientMock.Create
182182
},
183183
ExpectedAsserts: func(t *testing.T, ctx context.Context, cm *shared.ClientsMock) {
184-
template, err := create.ResolveTemplateURL("slack-samples/bolt-python-assistant-template")
184+
template, err := create.ResolveTemplateURL("slack-samples/bolt-python-starter-agent")
185185
require.NoError(t, err)
186186
expected := create.CreateArgs{
187187
AppName: "my-agent-app",
@@ -300,7 +300,7 @@ func TestCreateCommand(t *testing.T) {
300300
Return(
301301
iostreams.SelectPromptResponse{
302302
Prompt: true,
303-
Index: 1, // Select Custom Agent
303+
Index: 1, // Select Starter Agent
304304
},
305305
nil,
306306
)
@@ -317,7 +317,7 @@ func TestCreateCommand(t *testing.T) {
317317
CreateFunc = createClientMock.Create
318318
},
319319
ExpectedAsserts: func(t *testing.T, ctx context.Context, cm *shared.ClientsMock) {
320-
template, err := create.ResolveTemplateURL("slack-samples/bolt-js-assistant-template")
320+
template, err := create.ResolveTemplateURL("slack-samples/bolt-js-starter-agent")
321321
require.NoError(t, err)
322322
expected := create.CreateArgs{
323323
AppName: "my-custom-name", // --name flag overrides
@@ -371,7 +371,7 @@ func TestCreateCommand(t *testing.T) {
371371
Return(
372372
iostreams.SelectPromptResponse{
373373
Prompt: true,
374-
Index: 1, // Select Custom Agent
374+
Index: 1, // Select Starter Agent
375375
},
376376
nil,
377377
)
@@ -388,7 +388,7 @@ func TestCreateCommand(t *testing.T) {
388388
CreateFunc = createClientMock.Create
389389
},
390390
ExpectedAsserts: func(t *testing.T, ctx context.Context, cm *shared.ClientsMock) {
391-
template, err := create.ResolveTemplateURL("slack-samples/bolt-js-assistant-template")
391+
template, err := create.ResolveTemplateURL("slack-samples/bolt-js-starter-agent")
392392
require.NoError(t, err)
393393
expected := create.CreateArgs{
394394
AppName: "my-name", // --name flag overrides "my-project" positional arg
@@ -604,9 +604,9 @@ func TestCreateCommand(t *testing.T) {
604604
"slack-samples/bolt-python-support-agent --subdir claude-agent-sdk",
605605
"slack-samples/bolt-python-support-agent --subdir openai-agents-sdk",
606606
"slack-samples/bolt-python-support-agent --subdir pydantic-ai",
607-
"Custom agent",
608-
"slack-samples/bolt-js-assistant-template",
609-
"slack-samples/bolt-python-assistant-template",
607+
"Starter agent",
608+
"slack-samples/bolt-js-starter-agent",
609+
"slack-samples/bolt-python-starter-agent",
610610
"Automation apps",
611611
"slack-samples/bolt-js-custom-function-template",
612612
"slack-samples/bolt-python-custom-function-template",
@@ -627,9 +627,9 @@ func TestCreateCommand(t *testing.T) {
627627
"slack-samples/bolt-python-support-agent --subdir claude-agent-sdk",
628628
"slack-samples/bolt-python-support-agent --subdir openai-agents-sdk",
629629
"slack-samples/bolt-python-support-agent --subdir pydantic-ai",
630-
"Custom agent",
631-
"slack-samples/bolt-js-assistant-template",
632-
"slack-samples/bolt-python-assistant-template",
630+
"Starter agent",
631+
"slack-samples/bolt-js-starter-agent",
632+
"slack-samples/bolt-python-starter-agent",
633633
},
634634
ExpectedAsserts: func(t *testing.T, ctx context.Context, cm *shared.ClientsMock) {
635635
createClientMock.AssertNotCalled(t, "Create", mock.Anything, mock.Anything, mock.Anything)

0 commit comments

Comments
 (0)