Skip to content

Open source AI coding agent. Designed for large projects and real world tasks.

tygo config for generating typescript types

Dane Schneider7d10a9af3dce
diff --git a/app/shared/tygo.yaml b/app/shared/tygo.yaml
new file mode 100644
index 00000000..b4855fef
--- /dev/null
+++ b/app/shared/tygo.yaml
@@ -0,0 +1,18 @@
+# You can specify more than one package
+packages:
+ # The package path just like you would import it in Go
+ - path: "shared"
+
+ # Where this output should be written to.
+ # If you specify a folder it will be written to a file `index.ts` within that folder. By default it is written into the Golang package folder.
+ output_path: "../server/cloud/ui/node/src/types/generated.ts"
+ include_files:
+ - "data_models.go"
+ - "plan_settings.go"
+ - "streamed_change.go"
+ - "plan_status.go"
+
+ type_mappings:
+ time.Time: "string /* RFC3339 */"
+ decimal.Decimal: "string /* decimal.Decimal */"
+ openai.ImageURLDetail: '"high" | "low" | "auto"'
diff --git a/plandex-cursor.code-workspace b/plandex-cursor.code-workspace
index 9d561fbe..423bdbef 100644
--- a/plandex-cursor.code-workspace
+++ b/plandex-cursor.code-workspace
@@ -26,9 +26,6 @@
},
{
"path": "./app/server/cloud/ui/node"
- },
- {
- "path": "../wizard-fork"
}
],
"settings": {