Skip to content
Draft
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
2a15bd1
add app and both option to module generate form
allisonschiang Apr 16, 2026
51dfc00
add all app options
allisonschiang Apr 16, 2026
9423686
split form into shared and app and module
allisonschiang Apr 16, 2026
c2f4a15
add shared app and module path
allisonschiang Apr 16, 2026
07cdfe6
local server only shows on go
allisonschiang Apr 16, 2026
3bf2f98
AI templates
allisonschiang Apr 20, 2026
0324a00
add flag inputs options if want to skip interactive
allisonschiang Apr 20, 2026
8c58f4a
create own local server code instead of using erhutils
allisonschiang Apr 20, 2026
750e304
verify front end builds
allisonschiang Apr 20, 2026
a99ed72
readme + bugs
allisonschiang Apr 21, 2026
2181865
fix registration and reload support
stuqdog Apr 21, 2026
543fe26
make viamapplication usage easier with tar.gz compilation
allisonschiang Apr 21, 2026
3d106a6
remove yarn and bun package mangement support
allisonschiang Apr 21, 2026
7349ec8
Merge branch 'main' of ssh://github.com/viamrobotics/rdk into RSDK-13773
allisonschiang Apr 21, 2026
fa01c8f
Merge remote-tracking branch 'refs/remotes/origin/RSDK-13773' into RS…
allisonschiang Apr 21, 2026
11a7d8f
Revert to vmodutils for local server
allisonschiang Apr 21, 2026
8b3b8c8
Remove accidentally committed dist assets
allisonschiang Apr 21, 2026
4737eff
support for offline app potentially lets find out
stuqdog Apr 21, 2026
2979c84
Merge branch 'RSDK-13773' of ssh://github.com/allisonschiang/rdk into…
stuqdog Apr 21, 2026
32d54b5
remove front end + local server + initial readme
allisonschiang Apr 22, 2026
79bd0f4
lint
allisonschiang Apr 22, 2026
05b6b42
add auth.ts
allisonschiang Apr 22, 2026
db01d82
next steps + test fix
allisonschiang Apr 22, 2026
02d9225
fix tests
stuqdog Apr 22, 2026
5b0f723
Merge branch 'RSDK-13773' of ssh://github.com/allisonschiang/rdk into…
stuqdog Apr 22, 2026
0029eac
always generate local server
allisonschiang Apr 22, 2026
2d9d68e
Merge branch 'RSDK-13773' of https://github.com/allisonschiang/rdk in…
allisonschiang Apr 22, 2026
fb6fdad
move auth.ts our of src/lib
allisonschiang Apr 22, 2026
38ca9e8
make it easier to update entrypoint
allisonschiang Apr 22, 2026
8cb9121
use meta.json generator instead of template
allisonschiang Apr 22, 2026
36d1f32
lint fixes
stuqdog Apr 22, 2026
7a070d9
pr comments
stuqdog Apr 22, 2026
baa8ba8
remove path for generation module+app
allisonschiang Apr 22, 2026
22bc0be
no markdown link in meta.json
allisonschiang Apr 22, 2026
ab2742e
rm copyAppTemplate and use copyLanguageTemplate in generateApp
allisonschiang Apr 22, 2026
6e44891
flyby resource.Named
stuqdog Apr 22, 2026
53e5ac5
specify usage for particular flags
stuqdog Apr 22, 2026
2d9e988
add back make language
stuqdog Apr 22, 2026
7a2d4dd
add make setup line
stuqdog Apr 22, 2026
f5b4d06
closing next steps
stuqdog Apr 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
23 changes: 23 additions & 0 deletions cli/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ const (
moduleFlagVisibility = "visibility"
moduleFlagResourceType = "resource-type"
moduleFlagRegister = "register"
moduleFlagGenerateType = "generate-type"
moduleFlagAppName = "app-name"
moduleFlagAppType = "app-type"
moduleFlagLocalServer = "local-server"
moduleFlagUpload = "upload"

moduleBuildFlagRef = "ref"
Expand Down Expand Up @@ -3438,6 +3442,10 @@ After creation, use 'viam module update' to push your new module to app.viam.com
Usage: "generate a new modular resource via prompts",
UsageText: createUsageText("module generate", nil, true, false),
Flags: []cli.Flag{
&cli.StringFlag{
Name: moduleFlagGenerateType,
Usage: formatAcceptedValues("type of project to generate", "module", "app", "both"),
},
&cli.StringFlag{
Name: generalFlagName,
Usage: "name to use for module. for example, a module that contains sensor implementations might be named 'sensors'",
Expand Down Expand Up @@ -3481,6 +3489,21 @@ After creation, use 'viam module update' to push your new module to app.viam.com
Usage: "indicate a dry test run, so skip regular checks",
Hidden: true,
},
&cli.StringFlag{
Name: moduleFlagAppName,
Usage: "name for the app",
Hidden: true,
},
&cli.StringFlag{
Name: moduleFlagAppType,
Usage: formatAcceptedValues("app type", "single_machine", "multi_machine"),
Hidden: true,
},
&cli.BoolFlag{
Name: moduleFlagLocalServer,
Usage: "enable local server for serving the app on the local network",
Hidden: true,
},
},
Action: createActionCommandWithT[generateModuleArgs](GenerateModuleAction),
},
Expand Down
7 changes: 7 additions & 0 deletions cli/module_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,13 @@ func (c *viamClient) createGitArchive(repoPath string) (string, error) {
return nil
}

// Skip symlinks — filepath.Walk doesn't follow them, so they appear as
// non-directory entries, but os.ReadFile would follow the link and fail
// if the target is a directory (common in pnpm node_modules).
if info.Mode()&os.ModeSymlink != 0 {
return nil
}

if c.shouldIgnore(relPath, matcher, false) {
return nil
}
Expand Down
Loading
Loading