This commit is contained in:
2025-08-25 06:09:51 +02:00
parent 77d9b5c869
commit 5f683ec4a8
57 changed files with 116 additions and 1681 deletions

View File

@@ -7,7 +7,7 @@ Chalk offers functions:- `console.color_fg(text string, color string)` - To chan
Example:
```vlang
```v
import freeflowuniverse.herolib.ui.console
# basic usage

View File

@@ -25,7 +25,7 @@ The parser supports various input formats:
4. **Comments**: `// this is a comment` (ignored during parsing)
Example:
```vlang
```v
text := "name:'John Doe' age:30 active:true // user details"
params := paramsparser.new(text)!
```

View File

@@ -4,7 +4,7 @@ has mechanisms to print better to console, see the methods below
import as
```vlang
```v
import freeflowuniverse.herolib.ui.console
```

View File

@@ -2,7 +2,7 @@
this is how we want example scripts to be, see the first line
```vlang
```v
#!/usr/bin/env -S v -cg -gc none -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib...

View File

@@ -926,7 +926,7 @@ The parser supports various input formats:
4. **Comments**: `// this is a comment` (ignored during parsing)
Example:
```vlang
```v
text := "name:'John Doe' age:30 active:true // user details"
params := paramsparser.new(text)!
```
@@ -1278,7 +1278,7 @@ has mechanisms to print better to console, see the methods below
import as
```vlang
```v
import freeflowuniverse.herolib.ui.console
```
@@ -1481,7 +1481,7 @@ File: /Users/despiegk/code/github/freeflowuniverse/herolib/aiprompts/herolib_cor
this is how we want example scripts to be, see the first line
```vlang
```v
#!/usr/bin/env -S v -cg -gc none -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib...

View File

@@ -83,7 +83,7 @@ fn main() {
}
```
```vlang
```v
module time

View File

@@ -6,7 +6,7 @@ To be able to run examples you need to install updated version of `griddriver`.
Create some `griddriver_install.vsh` file containing following code:
```vlang
```v
#!/usr/bin/env -S v -gc none -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.installers.tfgrid.griddriver as griddriverinstaller

View File

@@ -25,7 +25,7 @@ text in paragraph
| February | $80 |
| March | $420 |
```vlang
```v
fn main(){
println('hello world')
}

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v
import freeflowuniverse.herolib.clients. ipapi

View File

@@ -6,7 +6,7 @@ see https://jina.ai/
To get started
```vlang
```v
import freeflowuniverse.herolib.clients. jina

View File

@@ -2,7 +2,7 @@
To get started
```vlang
```v
import freeflowuniverse.herolib.clients.livekit

View File

@@ -3,7 +3,7 @@
To get started
```vlang
```v
import freeflowuniverse.herolib.clients.mailclient

View File

@@ -2,7 +2,7 @@
To get started
```vlang
```v
import freeflowuniverse.herolib.clients.openai
import freeflowuniverse.herolib.core.playcmds

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v
import freeflowuniverse.herolib.clients. vastai

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v
import freeflowuniverse.herolib.clients. wireguard

View File

@@ -4,7 +4,7 @@ ${args.title}
To get started
```vlang
```v
@if args.cat == .installer

View File

@@ -8,7 +8,51 @@ module codewalker
// - Lines starting with '#' are comments; empty lines ignored
// No negation support for simplicity
const default_gitignore = '.git/\n.svn/\n.hg/\n.bzr/\nnode_modules/\n__pycache__/\n*.py[cod]\n*.so\n.Python\nbuild/\ndevelop-eggs/\ndownloads/\neggs/\n.eggs/\nlib/\nlib64/\nparts/\nsdist/\nvar/\nwheels/\n*.egg-info/\n.installed.cfg\n*.egg\n.env\n.venv\nvenv/\n.tox/\n.nox/\n.coverage\n.coveragerc\ncoverage.xml\n*.cover\n*.gem\n*.pyc\n.cache\n.pytest_cache/\n.mypy_cache/\n.hypothesis/\n.DS_Store\nThumbs.db\n*.tmp\n*.temp\n*.log\n'
const default_gitignore = '
.git/
.svn/
.hg/
.bzr/
node_modules/
__pycache__/
*.py[cod]
*.so
.Python
build/
develop-eggs/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
.env
.venv
venv/
.tox/
.nox/
.coverage
.coveragerc
coverage.xml
*.cover
*.gem
*.pyc
.cache
.pytest_cache/
.mypy_cache/
.hypothesis/
.DS_Store
Thumbs.db
*.tmp
*.temp
*.log
'
struct IgnoreRule {
base string // relative dir from source root where the ignore file lives ('' means global)

View File

@@ -1,30 +1,28 @@
# heroprompt
To get started
```vlang
```v
import freeflowuniverse.herolib.clients. heroprompt
import freeflowuniverse.herolib.develop.heroprompt
mut client:= heroprompt.get()!
// Example Usage:
client...
// 1. Create a new workspace
mut workspace := heroprompt.new(name: 'my_workspace', path: os.getwd())!
// 2. Add a directory to the workspace
workspace.add_dir(path: './my_project_dir')!
// 3. Add a file to the workspace
workspace.add_file(path: './my_project_dir/main.v')!
// 4. Generate a prompt
user_instructions := 'Explain the code in main.v'
prompt_output := workspace.prompt(text: user_instructions)
println(prompt_output)
```
## example heroscript
```hero
!!heroprompt.configure
secret: '...'
host: 'localhost'
port: 8888
```

File diff suppressed because it is too large Load Diff

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v
import freeflowuniverse.herolib.installers.db.cometbft as cometbft_installer

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v
import freeflowuniverse.herolib.installers.db.meilisearch as meilisearchinstaller

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v

View File

@@ -4,7 +4,7 @@ Is a powerfull db for embedding for AI Agents.
To get started
```vlang
```v
import freeflowuniverse.herolib.installers.db.qdrant_installer

View File

@@ -4,7 +4,7 @@ coredns
To get started
```vlang
```v
import freeflowuniverse.herolib.installers.infra.coredns as coredns_installer

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v
import freeflowuniverse.herolib.installers.infra.gitea as gitea_installer

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v
import freeflowuniverse.herolib.installers.something.screen as screen_installer

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v
import freeflowuniverse.herolib.installers.something. zinit

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v
import freeflowuniverse.herolib.installers.lang.golang

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v
import freeflowuniverse.herolib.installers.something.nodejs as nodejs_installer

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v
import freeflowuniverse.herolib.installers.something.python as python_installer

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v
import freeflowuniverse.herolib.installers.something.rust as rust_installer

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v
import freeflowuniverse.herolib.installers.something.wireguard as wireguard_installer

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v
import freeflowuniverse.herolib.installers.something.yggdrasil as yggdrasil_installer

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v
import freeflowuniverse.herolib.installers.something.b2 as b2_installer

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v
import freeflowuniverse.herolib.installers.something.fungistor as fungistor_installer

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v
import freeflowuniverse.herolib.installers.something.grafana as grafana_installer

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v
import freeflowuniverse.herolib.installers.something.restic as restic_installer

View File

@@ -2,7 +2,7 @@
To use the installer:
```vlang
```v
import freeflowuniverse.herolib.installers.threefold.griddriver
fn main() {

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v
import freeflowuniverse.herolib.installers.something. cloudhypervisor

View File

@@ -2,7 +2,7 @@
To get started
```vlang
```v
import freeflowuniverse.herolib.installers.something.docker as docker_installer

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v
import freeflowuniverse.herolib.installers.virt.pacman

View File

@@ -7,7 +7,7 @@ Podman is a lightweight container manager that allows users to manage and run co
The following example demonstrates how to use the Podman installer in a VLang script. It checks if Podman is installed, removes it if found, or installs it if not.
### Example Code (VLang)
```vlang
```v
import freeflowuniverse.herolib.installers.virt.podman as podman_installer
mut podman := podman_installer.get()!

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v
import freeflowuniverse.herolib.installers.virt.youki

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v
import freeflowuniverse.herolib.installers.something.bun as bun_installer

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v
import freeflowuniverse.herolib.installers.something.imagemagick as imagemagick_installer

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v

View File

@@ -2,7 +2,7 @@
To get started
```vlang
```v

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v

View File

@@ -4,7 +4,7 @@ dify
To get started
```vlang
```v
import freeflowuniverse.herolib.installers.something.dify as dify_installer

View File

@@ -4,7 +4,7 @@
To get started
```vlang
```v