Skip to content

Commit 5ccbcb7

Browse files
authored
fix: image type in template issue (#41)
* update skills too * fix: correct import paths from github/ to github.com/
1 parent b313e1b commit 5ccbcb7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+147
-130
lines changed

cmd/verda/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"os"
77
"strings"
88

9-
cmd "github/verda-cloud/verda-cli/internal/verda-cli/cmd"
10-
cmdutil "github/verda-cloud/verda-cli/internal/verda-cli/cmd/util"
9+
cmd "github.com/verda-cloud/verda-cli/internal/verda-cli/cmd"
10+
cmdutil "github.com/verda-cloud/verda-cli/internal/verda-cli/cmd/util"
1111
)
1212

1313
func main() {

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github/verda-cloud/verda-cli
1+
module github.com/verda-cloud/verda-cli
22

33
go 1.25.9
44

@@ -9,7 +9,7 @@ require (
99
github.com/spf13/pflag v1.0.10
1010
github.com/spf13/viper v1.21.0
1111
github.com/verda-cloud/verdacloud-sdk-go v1.4.2
12-
github.com/verda-cloud/verdagostack v1.3.1
12+
github.com/verda-cloud/verdagostack v1.3.2
1313
go.yaml.in/yaml/v3 v3.0.4
1414
)
1515

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8
104104
github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU=
105105
github.com/verda-cloud/verdacloud-sdk-go v1.4.2 h1:oVb8fHVQOY+YPuuMYMee9gYCkPTwAw01LmkqxM21T/Y=
106106
github.com/verda-cloud/verdacloud-sdk-go v1.4.2/go.mod h1:pmlpiCL9fTSikZ3qWLJPpHOG0E8PKkQVUX5s4Z+SktY=
107-
github.com/verda-cloud/verdagostack v1.3.1 h1:OFDW1TMEwdspVmYZWnl5ONhZqllXOT6xQIiyLlw8KS4=
108-
github.com/verda-cloud/verdagostack v1.3.1/go.mod h1:eWTGv3kbBUGVCjNKZYLzzK9+UwpNWoPN3B2vebN2otY=
107+
github.com/verda-cloud/verdagostack v1.3.2 h1:2WLFm2IQITL3HnsEuy7L2ZGD4eySMXHXairHMScI9/w=
108+
github.com/verda-cloud/verdagostack v1.3.2/go.mod h1:eWTGv3kbBUGVCjNKZYLzzK9+UwpNWoPN3B2vebN2otY=
109109
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavMF/ppJZNG9ZpyihvCd0w101no=
110110
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM=
111111
github.com/yosida95/uritemplate/v3 v3.0.2 h1:Ed3Oyj9yrmi9087+NczuL5BwkIc4wvTb5zIM+UJPGz4=

internal/skills/files/verda-cloud.md

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,24 @@ description: Use when the user mentions Verda Cloud, GPU/CPU VMs, cloud instance
3333
| **Explore** | "what's available", "show me", "how much" | Discovery only. Do NOT create anything |
3434
| **Deploy** | "create", "deploy", "spin up", "launch" | Deploy workflow below |
3535
| **Manage** | "start", "stop", "delete", "SSH" | Find VM first, then act |
36-
| **Status** | "overview", "status", "what's wrong" | `verda --agent status -o json` for overview; `vm describe` for specific VM |
37-
38-
### Explore
39-
40-
- What's available now: `verda --agent vm availability -o json` → shows what's **in stock** with location and pricing. Filter with `--kind gpu` or `--kind cpu` (NOT `--type gpu`). If result is empty or null, tell the user **nothing is in stock** for that kind — do NOT fall back to showing a different kind. **Stop.**
41-
- Full catalog (all types, not just in stock): `verda --agent instance-types [--gpu|--cpu] -o json` → specs and pricing. **Stop.**
42-
- Overview/dashboard: `verda --agent status -o json` → instances, volumes, balance, burn rate. **Stop.**
43-
- Running costs: `verda --agent cost running -o json` → per-instance breakdown. **Stop.**
36+
| **VM Info** | "my VMs", "instances", "what's running", "what's offline" | `verda --agent vm list -o json` (add `--status` to filter). Use `vm describe <id>` for a specific VM |
37+
| **Cost** | "balance", "burn rate", "spending", "how much" | `verda --agent cost balance -o json` and/or `cost running -o json` |
38+
| **Storage** | "volumes", "disks", "storage" | `verda --agent volume list -o json` |
39+
40+
### Explore — Use Specific Commands, Not `status`
41+
42+
Prefer the most specific command for the question. Do NOT use `verda status` as a catch-all.
43+
44+
| Question | Command |
45+
|----------|---------|
46+
| What's available / in stock? | `vm availability -o json` (filter: `--kind gpu\|cpu`) |
47+
| Full catalog / specs / pricing? | `instance-types [--gpu\|--cpu] -o json` |
48+
| My VMs / instances? | `vm list -o json` (filter: `--status running\|offline`) |
49+
| Specific VM details? | `vm describe <id> -o json` |
50+
| Balance / credits? | `cost balance -o json` |
51+
| Running costs / spend? | `cost running -o json` |
52+
| My volumes / storage? | `volume list -o json` |
53+
| Overview / dashboard? | Combine: `vm list` + `cost balance` + `volume list` |
4454

4555
## Deploy Workflow
4656

internal/skills/files/verda-reference.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ All commands: `--agent -o json` (except `verda ssh` and `verda auth show`).
2020
| "delete VM", "delete instance", "remove", "destroy", "terminate" | `vm delete <id>` (alias: `rm`) |
2121
| "template", "saved config", "preset", "my templates" | `template list` (alias: `tmpl`) |
2222
| "deploy from template", "use template", "quick deploy" | `vm create --from <name>` |
23-
| "status", "overview", "dashboard", "summary" | `status` (alias: `dash`) |
23+
| "status", "overview", "dashboard", "summary" | Prefer `vm list` + `cost balance` + `volume list`. Use `status` only if user explicitly wants a single dashboard summary |
2424
| "what's available", "in stock", "can I get", "available right now" | `vm availability` (real-time stock + pricing by location) |
2525
| "instance types", "GPU types", "CPU types", "specs", "flavors", "catalog" | `instance-types` (full catalog, not filtered by stock) |
2626
| "pricing", "how much", "cost per hour" | `instance-types` or `cost estimate` |
@@ -71,15 +71,22 @@ Example: `verda --agent vm shutdown --all --status running --yes --wait -o json`
7171

7272
Note: `shutdown` alias is `stop`. `delete` alias is `rm`.
7373

74-
## Status & Cost
74+
## Cost
7575

7676
| Command | Key Flags | Output Fields |
7777
|---------|-----------|---------------|
78-
| `verda status -o json` || `instances` (total, running, offline, spot), `volumes` (total, attached, detached, total_size_gb), `financials` (burn_rate_hourly, balance, runway_days), `locations[]` |
7978
| `verda cost balance -o json` || `amount`, `currency` |
8079
| `verda cost estimate -o json` | `--type` (required), `--os-volume`, `--storage`, `--storage-type`, `--spot`, `--location` | `total.hourly`, `instance.hourly`, `os_volume.hourly` |
8180
| `verda cost running -o json` || `instances[]` (each: `hostname`, `hourly`, `daily`, `monthly`), `total.hourly` |
8281

82+
## Status (Low Priority)
83+
84+
Prefer specific commands (`vm list`, `cost balance`, `volume list`) over `status`. Only use `status` when the user explicitly asks for a dashboard summary.
85+
86+
| Command | Key Flags | Output Fields |
87+
|---------|-----------|---------------|
88+
| `verda status -o json` || `instances` (total, running, offline, spot), `volumes` (total, attached, detached, total_size_gb), `financials` (burn_rate_hourly, balance, runway_days), `locations[]` |
89+
8390
## SSH (Interactive — Do NOT Run)
8491

8592
Tell user to run in their terminal:

internal/verda-cli/cmd/auth/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package auth
33
import (
44
"github.com/spf13/cobra"
55

6-
cmdutil "github/verda-cloud/verda-cli/internal/verda-cli/cmd/util"
6+
cmdutil "github.com/verda-cloud/verda-cli/internal/verda-cli/cmd/util"
77
)
88

99
// NewCmdAuth creates the parent auth command.

internal/verda-cli/cmd/auth/auth_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"path/filepath"
66
"testing"
77

8-
"github/verda-cloud/verda-cli/internal/verda-cli/options"
8+
"github.com/verda-cloud/verda-cli/internal/verda-cli/options"
99
)
1010

1111
func TestWriteActiveProfile(t *testing.T) {

internal/verda-cli/cmd/auth/login.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import (
1111

1212
"github.com/verda-cloud/verdagostack/pkg/tui/wizard"
1313

14-
cmdutil "github/verda-cloud/verda-cli/internal/verda-cli/cmd/util"
15-
"github/verda-cloud/verda-cli/internal/verda-cli/options"
14+
cmdutil "github.com/verda-cloud/verda-cli/internal/verda-cli/cmd/util"
15+
"github.com/verda-cloud/verda-cli/internal/verda-cli/options"
1616
)
1717

1818
type loginOptions struct {

internal/verda-cli/cmd/auth/path.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"os"
55
"path/filepath"
66

7-
"github/verda-cloud/verda-cli/internal/verda-cli/options"
7+
"github.com/verda-cloud/verda-cli/internal/verda-cli/options"
88
)
99

1010
func defaultConfigFilePath() (string, error) {

internal/verda-cli/cmd/auth/show.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66

77
"github.com/spf13/cobra"
88

9-
cmdutil "github/verda-cloud/verda-cli/internal/verda-cli/cmd/util"
10-
"github/verda-cloud/verda-cli/internal/verda-cli/options"
9+
cmdutil "github.com/verda-cloud/verda-cli/internal/verda-cli/cmd/util"
10+
"github.com/verda-cloud/verda-cli/internal/verda-cli/options"
1111
)
1212

1313
// NewCmdShow creates the auth show command.

0 commit comments

Comments
 (0)