Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions cmd/project/create_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ func getSelectionOptions(categoryID string) []promptObject {
Repository: "slack-cli#ai-apps/support-agent",
},
{
Title: fmt.Sprintf("Custom Agent %s", style.Secondary("Start from scratch")),
Repository: "slack-cli#ai-apps/custom-agent",
Title: fmt.Sprintf("Starter Agent %s", style.Secondary("Start from scratch")),
Repository: "slack-cli#ai-apps/starter-agent",
},
},
"slack-cli#automation-apps": {
Expand Down Expand Up @@ -91,14 +91,14 @@ func getFrameworkOptions(template string) []promptObject {
Subdir: "pydantic-ai",
},
},
"slack-cli#ai-apps/custom-agent": {
"slack-cli#ai-apps/starter-agent": {
{
Title: fmt.Sprintf("Bolt for JavaScript %s", style.Secondary("Node.js")),
Repository: "slack-samples/bolt-js-assistant-template",
Repository: "slack-samples/bolt-js-starter-agent",
},
{
Title: fmt.Sprintf("Bolt for Python %s", style.Secondary("Python")),
Repository: "slack-samples/bolt-python-assistant-template",
Repository: "slack-samples/bolt-python-starter-agent",
},
},
}
Expand Down Expand Up @@ -301,13 +301,13 @@ func listTemplates(ctx context.Context, clients *shared.ClientFactory, categoryS
if categoryShortcut == "agent" {
categories = []categoryInfo{
{id: "slack-cli#ai-apps/support-agent", name: "Support agent"},
{id: "slack-cli#ai-apps/custom-agent", name: "Custom agent"},
{id: "slack-cli#ai-apps/starter-agent", name: "Starter agent"},
}
} else {
categories = []categoryInfo{
{id: "slack-cli#getting-started", name: "Getting started"},
{id: "slack-cli#ai-apps/support-agent", name: "Support agent"},
{id: "slack-cli#ai-apps/custom-agent", name: "Custom agent"},
{id: "slack-cli#ai-apps/starter-agent", name: "Starter agent"},
{id: "slack-cli#automation-apps", name: "Automation apps"},
}
}
Expand Down
28 changes: 14 additions & 14 deletions cmd/project/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func TestCreateCommand(t *testing.T) {
Return(
iostreams.SelectPromptResponse{
Prompt: true,
Index: 1, // Select Custom Agent
Index: 1, // Select Starter Agent
},
nil,
)
Expand All @@ -144,7 +144,7 @@ func TestCreateCommand(t *testing.T) {
CreateFunc = createClientMock.Create
},
ExpectedAsserts: func(t *testing.T, ctx context.Context, cm *shared.ClientsMock) {
template, err := create.ResolveTemplateURL("slack-samples/bolt-js-assistant-template")
template, err := create.ResolveTemplateURL("slack-samples/bolt-js-starter-agent")
require.NoError(t, err)
expected := create.CreateArgs{
AppName: "my-agent",
Expand All @@ -164,7 +164,7 @@ func TestCreateCommand(t *testing.T) {
Return(
iostreams.SelectPromptResponse{
Prompt: true,
Index: 1, // Select Custom Agent
Index: 1, // Select Starter Agent
},
nil,
)
Expand All @@ -181,7 +181,7 @@ func TestCreateCommand(t *testing.T) {
CreateFunc = createClientMock.Create
},
ExpectedAsserts: func(t *testing.T, ctx context.Context, cm *shared.ClientsMock) {
template, err := create.ResolveTemplateURL("slack-samples/bolt-python-assistant-template")
template, err := create.ResolveTemplateURL("slack-samples/bolt-python-starter-agent")
require.NoError(t, err)
expected := create.CreateArgs{
AppName: "my-agent-app",
Expand Down Expand Up @@ -300,7 +300,7 @@ func TestCreateCommand(t *testing.T) {
Return(
iostreams.SelectPromptResponse{
Prompt: true,
Index: 1, // Select Custom Agent
Index: 1, // Select Starter Agent
},
nil,
)
Expand All @@ -317,7 +317,7 @@ func TestCreateCommand(t *testing.T) {
CreateFunc = createClientMock.Create
},
ExpectedAsserts: func(t *testing.T, ctx context.Context, cm *shared.ClientsMock) {
template, err := create.ResolveTemplateURL("slack-samples/bolt-js-assistant-template")
template, err := create.ResolveTemplateURL("slack-samples/bolt-js-starter-agent")
require.NoError(t, err)
expected := create.CreateArgs{
AppName: "my-custom-name", // --name flag overrides
Expand Down Expand Up @@ -371,7 +371,7 @@ func TestCreateCommand(t *testing.T) {
Return(
iostreams.SelectPromptResponse{
Prompt: true,
Index: 1, // Select Custom Agent
Index: 1, // Select Starter Agent
},
nil,
)
Expand All @@ -388,7 +388,7 @@ func TestCreateCommand(t *testing.T) {
CreateFunc = createClientMock.Create
},
ExpectedAsserts: func(t *testing.T, ctx context.Context, cm *shared.ClientsMock) {
template, err := create.ResolveTemplateURL("slack-samples/bolt-js-assistant-template")
template, err := create.ResolveTemplateURL("slack-samples/bolt-js-starter-agent")
require.NoError(t, err)
expected := create.CreateArgs{
AppName: "my-name", // --name flag overrides "my-project" positional arg
Expand Down Expand Up @@ -604,9 +604,9 @@ func TestCreateCommand(t *testing.T) {
"slack-samples/bolt-python-support-agent --subdir claude-agent-sdk",
"slack-samples/bolt-python-support-agent --subdir openai-agents-sdk",
"slack-samples/bolt-python-support-agent --subdir pydantic-ai",
"Custom agent",
"slack-samples/bolt-js-assistant-template",
"slack-samples/bolt-python-assistant-template",
"Starter agent",
"slack-samples/bolt-js-starter-agent",
"slack-samples/bolt-python-starter-agent",
"Automation apps",
"slack-samples/bolt-js-custom-function-template",
"slack-samples/bolt-python-custom-function-template",
Expand All @@ -627,9 +627,9 @@ func TestCreateCommand(t *testing.T) {
"slack-samples/bolt-python-support-agent --subdir claude-agent-sdk",
"slack-samples/bolt-python-support-agent --subdir openai-agents-sdk",
"slack-samples/bolt-python-support-agent --subdir pydantic-ai",
"Custom agent",
"slack-samples/bolt-js-assistant-template",
"slack-samples/bolt-python-assistant-template",
"Starter agent",
"slack-samples/bolt-js-starter-agent",
"slack-samples/bolt-python-starter-agent",
},
ExpectedAsserts: func(t *testing.T, ctx context.Context, cm *shared.ClientsMock) {
createClientMock.AssertNotCalled(t, "Create", mock.Anything, mock.Anything, mock.Anything)
Expand Down
Loading