Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
26b8410
test charm lib impelentation for cre init
ejacquier Jan 30, 2026
4a7699d
Add shared UI package with Charm ecosystem for styled CLI output
ejacquier Jan 30, 2026
c37b25c
Add spinner to cre init and fix layout issues
ejacquier Jan 30, 2026
26ec16a
Style help page with Lipgloss
ejacquier Jan 30, 2026
46d61de
Apply Chainlink Blocks color palette to CLI
ejacquier Jan 30, 2026
fbfda62
Modernize cre login command with Charm UI components
ejacquier Jan 30, 2026
6ebd121
Add styled error display for CLI using ui.Error()
ejacquier Jan 30, 2026
3d819a4
Improve CLI error display with styled output and smart usage handling
ejacquier Jan 30, 2026
744e5de
Add login prompt when authentication is required
ejacquier Jan 30, 2026
ebe0091
Fix tests broken by Charm UI changes
ejacquier Jan 30, 2026
eb5a70e
Fix cre logout to skip credential check and handle nil credentials
ejacquier Jan 30, 2026
3b0f685
Modernize cre version command with Charm UI styling
ejacquier Jan 30, 2026
137594c
Modernize cre update command with progress bar and Charm UI
ejacquier Jan 30, 2026
f56168f
Fix creinit tests to provide all inputs via flags
ejacquier Jan 30, 2026
214ed37
Update the list-key command to use the shared Charm UI components for
ejacquier Jan 30, 2026
f2ba1ae
Update test assertions for Charm UI output changes
ejacquier Jan 30, 2026
dc83bff
Update the generate-bindings command to use the shared Charm UI
ejacquier Jan 30, 2026
4dd218d
Update the secrets list command to use the shared Charm UI component
ejacquier Jan 30, 2026
a6dde07
Update the secrets delete command to use the shared Charm UI components
ejacquier Jan 30, 2026
ac70c74
Modernize workflow pause, activate, delete with Charm UI
ejacquier Jan 30, 2026
277e84b
updated styling for workflow deploy, pause, delete and transaction
ejacquier Jan 31, 2026
d76bdc3
mondernized link and unlink command using charm lib
ejacquier Jan 31, 2026
30ecbde
updated missing charm console output in creinit.go
ejacquier Jan 31, 2026
c32a002
fixed build output ui
ejacquier Jan 31, 2026
932908c
updated fmt.print with new ui that were not replaced
ejacquier Jan 31, 2026
182ae41
mondernized simulate command with charm ui output
ejacquier Jan 31, 2026
620e035
1. Updated internal/settings/settings_generate.go:
ejacquier Jan 31, 2026
6daa25a
improved prompt behavior with autocomplete and default value
ejacquier Jan 31, 2026
81bbfc9
added error helpers
ejacquier Jan 31, 2026
bee55e8
improved login command with cancellation / escape
ejacquier Jan 31, 2026
1856e4e
fixed logout issue that was not flushing credentials
ejacquier Jan 31, 2026
2b6a6f6
updated login to remove the esc logic
ejacquier Jan 31, 2026
e8c8cb8
updated secret tests that were failing
ejacquier Jan 31, 2026
2d89b8d
fixed lint error: unused functions and returns
ejacquier Feb 2, 2026
0678640
Refactored credentials.go for deploy access status and added deploy a…
ejacquier Jan 30, 2026
9981c7b
Updated gated message with the command to request access
ejacquier Jan 30, 2026
42a5c48
added new account access command
ejacquier Jan 30, 2026
ff49d9a
added account access command to settings exclusion
ejacquier Jan 30, 2026
6ca89a8
access command logic to submit form to zendesk
ejacquier Jan 30, 2026
0882d73
added prompt to request access when running cre account access cmd
ejacquier Jan 30, 2026
1a5eb0a
Refactor access request logic into shared package and add deploy acce…
ejacquier Jan 30, 2026
6222ef6
Fix background goroutine error appearing during deploy access prompt
ejacquier Jan 30, 2026
4af0fa9
Update account command description to mention deploy access
ejacquier Jan 30, 2026
6d74f56
Show deploy access hint after successful workflow simulation
ejacquier Jan 30, 2026
5a24a1c
Add deploy access hint to global help template for gated users
ejacquier Jan 30, 2026
80834e9
Added prompt to describe use cases when request access request
ejacquier Jan 30, 2026
ef2d10c
update code so that request is sent to a proxy that will take care of…
ejacquier Jan 30, 2026
1a26d58
updated deploy request changes to be compatible with new charm lib re…
ejacquier Feb 2, 2026
4153aef
updated simulator deploy message to use box layout
ejacquier Feb 2, 2026
1b261c9
Yes is now selected by default for cre deploy access request prompt
ejacquier Feb 2, 2026
1f992ad
updated creinit to use bubbletea wizard
ejacquier Feb 3, 2026
6ec58c1
fixed linter issues
ejacquier Feb 4, 2026
0a0b4c0
Merge branch 'main' into feature/charm-lib-refactoring
ejacquier Feb 4, 2026
29eb300
fixed weird spacing in creinit.go
ejacquier Feb 4, 2026
7fbd64d
cre init: wizard now display files created in <workflow directory> and
ejacquier Feb 4, 2026
3a785ef
restored original comments in creinit.go
ejacquier Feb 4, 2026
9a3af2c
fixed update cmd progress indicator issue
ejacquier Feb 4, 2026
df51dfa
Merge branch 'feature/charm-lib-refactoring' into feature/DEVSVCS-372…
ejacquier Feb 4, 2026
16a2c0c
Temp mock access request behavior before API implementation
ejacquier Feb 4, 2026
d99f261
Added ascii logo in creinit wizard
ejacquier Feb 4, 2026
72eceef
Merge branch 'feature/charm-lib-refactoring' into feature/DEVSVCS-372…
ejacquier Feb 4, 2026
4fc6d6e
Spinner do not display in verbose mode to avoid stdout and stderr con…
ejacquier Feb 5, 2026
516444c
Merge branch 'feature/charm-lib-refactoring' into feature/DEVSVCS-372…
ejacquier Feb 6, 2026
96a477f
replaced temp REST HTTP client with GraphQL client
ejacquier Feb 6, 2026
83f2225
added tests for access cmd
ejacquier Feb 6, 2026
5a022b9
Replace embedded templates with dynamic GitHub-based template fetching
ejacquier Feb 6, 2026
463d73a
fix & log for extracing templates
ejacquier Feb 7, 2026
ab3a99e
Built-in hello-world template — always available, even offline:
ejacquier Feb 9, 2026
5819e38
Remove template-repo flag from cre init, added template-id as a depre…
ejacquier Feb 9, 2026
1551d58
Added back builtin TS hello world template, updated template-id behavior
ejacquier Feb 9, 2026
0c781bf
Added networks field to template metadata (internal/templaterepo/type…
ejacquier Feb 9, 2026
dab9ff1
Patch RPC when template arleady have rpc configured in project.yaml
ejacquier Feb 10, 2026
504ff36
Fixed go init for default embed template
ejacquier Feb 10, 2026
e8b4512
Fixed TS template default template (same as main branch now)
ejacquier Feb 10, 2026
09f9f1a
Updated init wizard for better layout
ejacquier Feb 10, 2026
f12da0a
Add multi-workflow support and preserve template-shipped workflow.yaml
ejacquier Feb 10, 2026
c154dfa
added in wizard check for cre init - folder and rpc url
ejacquier Feb 11, 2026
d1db769
updated cre init list layout
ejacquier Feb 11, 2026
d5ba0ec
cre init search wizard stay displayed
ejacquier Feb 11, 2026
e15d582
updated template.yaml local to .cre/template.yaml
ejacquier Feb 12, 2026
a78377b
added a flag to pass new repository url, made ~/.cre/template.yaml so…
ejacquier Feb 17, 2026
a139159
Root-level template repo extraction fix
ejacquier Feb 19, 2026
99bfbb8
added cre templates list/add/remove to manage repo sources
ejacquier Feb 19, 2026
c32f1ee
template.yaml now has projectDir to specify the cre project dir, upda…
ejacquier Feb 20, 2026
0166159
Added prediction market repo as default
ejacquier Feb 20, 2026
6ea8496
fix go mod tidy for dynamic template in go
ejacquier Feb 20, 2026
33fd168
Merge branch 'main' into feature/dynamic-templates
ejacquier Feb 20, 2026
5f68805
fix linter
ejacquier Feb 20, 2026
92c55a7
cre init create .env file if not present
ejacquier Feb 20, 2026
7a6c4ac
updated default template source repo to main
ejacquier Feb 20, 2026
501ef46
Merge branch 'main' into feature/dynamic-templates
ejacquier Feb 23, 2026
e0f8199
handle error for relative path in builtin.go
ejacquier Feb 23, 2026
160a85c
Sanitize template repo external values
ejacquier Feb 23, 2026
523636b
prevent zip slip
ejacquier Feb 23, 2026
2a4412f
Fixed setAuthHeader for fetching template metadata
ejacquier Feb 23, 2026
5cd268b
gendoc
ejacquier Feb 23, 2026
1284a01
Fix dir rename that was failing tests
ejacquier Feb 23, 2026
32970fe
Updated tests now that templates are dynamic
ejacquier Feb 23, 2026
ff77eb9
Fix linter issues
ejacquier Feb 23, 2026
f49a45b
fixed linter
ejacquier Feb 23, 2026
3893e4f
Fix deprecated template id
ejacquier Feb 23, 2026
ade04c0
Fix zip slip warning
ejacquier Feb 23, 2026
052135c
Fix zip slip
ejacquier Feb 23, 2026
27afc96
Merge branch 'main' into feature/dynamic-templates
ejacquier Feb 23, 2026
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
713 changes: 276 additions & 437 deletions cmd/creinit/creinit.go

Large diffs are not rendered by default.

696 changes: 568 additions & 128 deletions cmd/creinit/creinit_test.go

Large diffs are not rendered by default.

25 changes: 10 additions & 15 deletions cmd/creinit/go_module_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,8 @@ import (
"path/filepath"

"github.com/rs/zerolog"
)

const (
SdkVersion = "v1.2.0"
EVMCapabilitiesVersion = "v1.0.0-beta.5"
HTTPCapabilitiesVersion = "v1.0.0-beta.0"
CronCapabilitiesVersion = "v1.0.0-beta.0"
"github.com/smartcontractkit/cre-cli/internal/constants"
)

// InstalledDependencies contains info about installed Go dependencies
Expand All @@ -26,10 +21,10 @@ func initializeGoModule(logger *zerolog.Logger, workingDirectory, moduleName str
result := &InstalledDependencies{
ModuleName: moduleName,
Deps: []string{
"cre-sdk-go@" + SdkVersion,
"capabilities/blockchain/evm@" + EVMCapabilitiesVersion,
"capabilities/networking/http@" + HTTPCapabilitiesVersion,
"capabilities/scheduler/cron@" + CronCapabilitiesVersion,
"cre-sdk-go@" + constants.SdkVersion,
"capabilities/blockchain/evm@" + constants.EVMCapabilitiesVersion,
"capabilities/networking/http@" + constants.HTTPCapabilitiesVersion,
"capabilities/scheduler/cron@" + constants.CronCapabilitiesVersion,
},
}

Expand All @@ -40,16 +35,16 @@ func initializeGoModule(logger *zerolog.Logger, workingDirectory, moduleName str
}
}

if err := runCommand(logger, workingDirectory, "go", "get", "github.com/smartcontractkit/cre-sdk-go@"+SdkVersion); err != nil {
if err := runCommand(logger, workingDirectory, "go", "get", "github.com/smartcontractkit/cre-sdk-go@"+constants.SdkVersion); err != nil {
return nil, err
}
if err := runCommand(logger, workingDirectory, "go", "get", "github.com/smartcontractkit/cre-sdk-go/capabilities/blockchain/evm@"+EVMCapabilitiesVersion); err != nil {
if err := runCommand(logger, workingDirectory, "go", "get", "github.com/smartcontractkit/cre-sdk-go/capabilities/blockchain/evm@"+constants.EVMCapabilitiesVersion); err != nil {
return nil, err
}
if err := runCommand(logger, workingDirectory, "go", "get", "github.com/smartcontractkit/cre-sdk-go/capabilities/networking/http@"+HTTPCapabilitiesVersion); err != nil {
if err := runCommand(logger, workingDirectory, "go", "get", "github.com/smartcontractkit/cre-sdk-go/capabilities/networking/http@"+constants.HTTPCapabilitiesVersion); err != nil {
return nil, err
}
if err := runCommand(logger, workingDirectory, "go", "get", "github.com/smartcontractkit/cre-sdk-go/capabilities/scheduler/cron@"+CronCapabilitiesVersion); err != nil {
if err := runCommand(logger, workingDirectory, "go", "get", "github.com/smartcontractkit/cre-sdk-go/capabilities/scheduler/cron@"+constants.CronCapabilitiesVersion); err != nil {
return nil, err
}

Expand All @@ -75,7 +70,7 @@ func runCommand(logger *zerolog.Logger, dir, command string, args ...string) err

output, err := cmd.CombinedOutput()
if err != nil {
logger.Error().Err(err).Msgf("Command failed: %s %v\nOutput:\n%s", command, args, output)
logger.Info().Msgf("%s", string(output))
return err
}

Expand Down
162 changes: 0 additions & 162 deletions cmd/creinit/go_module_init_test.go

This file was deleted.

This file was deleted.

This file was deleted.

150 changes: 0 additions & 150 deletions cmd/creinit/template/workflow/porExampleDev/README.md

This file was deleted.

This file was deleted.

Loading
Loading