fix: Rename freeflowuniverse to incubaid

This commit is contained in:
Mahmoud-Emad
2025-10-12 12:30:19 +03:00
parent 801c4abb43
commit 8f2d187b17
1593 changed files with 8753 additions and 8300 deletions

View File

@@ -1,8 +1,8 @@
module giteaclient
import freeflowuniverse.herolib.core.base
import freeflowuniverse.herolib.core.playbook { PlayBook }
import freeflowuniverse.herolib.ui.console
import incubaid.herolib.core.base
import incubaid.herolib.core.playbook { PlayBook }
import incubaid.herolib.ui.console
import json
__global (

View File

@@ -1,9 +1,9 @@
// File: lib/clients/giteaclient/giteaclient_model.v
module giteaclient
import freeflowuniverse.herolib.data.paramsparser
import freeflowuniverse.herolib.data.encoderhero
import freeflowuniverse.herolib.core.httpconnection
import incubaid.herolib.data.paramsparser
import incubaid.herolib.data.encoderhero
import incubaid.herolib.core.httpconnection
import os
pub const version = '0.0.0'

View File

@@ -1,7 +1,7 @@
// File: lib/clients/giteaclient/methods.v
module giteaclient
import freeflowuniverse.herolib.core.httpconnection
import incubaid.herolib.core.httpconnection
import json
import net.http

View File

@@ -1,4 +1,5 @@
// File: lib/clients/giteaclient/readme.md
# giteaclient
This library provides a client for interacting with the Gitea API.
@@ -19,31 +20,31 @@ You can configure the client using a HeroScript file:
Here's how to get the client and use its methods.
```v
import freeflowuniverse.herolib.clients.giteaclient
import freeflowuniverse.herolib.core.base
import incubaid.herolib.clients.giteaclient
import incubaid.herolib.core.base
fn main() ! {
// Make sure hero is initialized
base.init()!
// Example configuration (can also be loaded from file)
heroscript_config := "!!giteaclient.configure url:'https://gitea.com' secret:'...your_token...'"
mut plbook := playbook.new(text: heroscript_config)!
giteaclient.play(mut plbook)!
// Example configuration (can also be loaded from file)
heroscript_config := "!!giteaclient.configure url:'https://gitea.com' secret:'...your_token...'"
mut plbook := playbook.new(text: heroscript_config)!
giteaclient.play(mut plbook)!
// Get the default configured client
mut client := giteaclient.get()!
// Get the default configured client
mut client := giteaclient.get()!
// Get the authenticated user
user := client.get_current_user()!
println('Authenticated as: ${user.login}')
// Get the authenticated user
user := client.get_current_user()!
println('Authenticated as: ${user.login}')
// List repositories for the authenticated user
repos := client.user_list_repos()!
println('Found ${repos.len} repositories:')
for repo in repos {
println('- ${repo.full_name}')
}
// List repositories for the authenticated user
repos := client.user_list_repos()!
println('Found ${repos.len} repositories:')
for repo in repos {
println('- ${repo.full_name}')
}
// Get a specific repository's issues
owner := 'gitea'
@@ -59,4 +60,4 @@ fn main() ! {
## tips
- to see the admin api: https://git.ourworld.tf/api/swagger
- to see the admin api: https://git.ourworld.tf/api/swagger

View File

@@ -1,8 +1,8 @@
module ipapi
import freeflowuniverse.herolib.core.base
import freeflowuniverse.herolib.core.playbook { PlayBook }
import freeflowuniverse.herolib.ui.console
import incubaid.herolib.core.base
import incubaid.herolib.core.playbook { PlayBook }
import incubaid.herolib.ui.console
import json
__global (

View File

@@ -1,7 +1,7 @@
module ipapi
import freeflowuniverse.herolib.data.paramsparser
import freeflowuniverse.herolib.core.httpconnection
import incubaid.herolib.data.paramsparser
import incubaid.herolib.core.httpconnection
import os
pub const version = '1.14.3'

View File

@@ -1,13 +1,11 @@
# ipapi
To get started
```v
import freeflowuniverse.herolib.clients. ipapi
import incubaid.herolib.clients. ipapi
mut client:= ipapi.get()!
@@ -26,5 +24,3 @@ client...
host: 'localhost'
port: 8888
```

View File

@@ -1,7 +1,7 @@
module jina
import json
import freeflowuniverse.herolib.core.httpconnection
import incubaid.herolib.core.httpconnection
// ClassificationTrainAccess represents the accessibility of the classifier
pub enum ClassificationTrainAccess {

View File

@@ -1,6 +1,6 @@
module jina
import freeflowuniverse.herolib.core.httpconnection
import incubaid.herolib.core.httpconnection
import json
// JinaModel represents the available Jina models

View File

@@ -1,8 +1,8 @@
module jina
import freeflowuniverse.herolib.core.base
import freeflowuniverse.herolib.core.playbook { PlayBook }
import freeflowuniverse.herolib.ui.console
import incubaid.herolib.core.base
import incubaid.herolib.core.playbook { PlayBook }
import incubaid.herolib.ui.console
import json
__global (

View File

@@ -1,7 +1,7 @@
module jina
import freeflowuniverse.herolib.data.encoderhero
import freeflowuniverse.herolib.core.httpconnection
import incubaid.herolib.data.encoderhero
import incubaid.herolib.core.httpconnection
// import net.http
import os

View File

@@ -1,7 +1,7 @@
module jina
import json
import freeflowuniverse.herolib.core.httpconnection
import incubaid.herolib.core.httpconnection
// Enum for available Jina multi-vector models
pub enum MultiVectorModel {

View File

@@ -1,6 +1,6 @@
module jina
import freeflowuniverse.herolib.core.httpconnection
import incubaid.herolib.core.httpconnection
import json
pub enum JinaRerankModel {

View File

@@ -1,15 +1,13 @@
# jina
see https://jina.ai/
see <https://jina.ai/>
To get started
```v
import freeflowuniverse.herolib.clients. jina
import incubaid.herolib.clients. jina
mut client:= jina.get()!
@@ -28,5 +26,3 @@ client...
host: 'localhost'
port: 8888
```

View File

@@ -1,6 +1,6 @@
module livekit
import freeflowuniverse.herolib.data.caching
import incubaid.herolib.data.caching
import os
// const CACHING_METHOD = caching.CachingMethod.once_per_process

View File

@@ -1,8 +1,8 @@
module livekit
import freeflowuniverse.herolib.core.base
import freeflowuniverse.herolib.core.playbook { PlayBook }
import freeflowuniverse.herolib.ui.console
import incubaid.herolib.core.base
import incubaid.herolib.core.playbook { PlayBook }
import incubaid.herolib.ui.console
import json
__global (

View File

@@ -1,7 +1,7 @@
module livekit
import freeflowuniverse.herolib.data.paramsparser
import freeflowuniverse.herolib.data.encoderhero
import incubaid.herolib.data.paramsparser
import incubaid.herolib.data.encoderhero
import os
pub const version = '0.0.0'

View File

@@ -1,8 +1,8 @@
module livekit
import freeflowuniverse.herolib.core.playbook { PlayBook }
import freeflowuniverse.herolib.core.texttools
import freeflowuniverse.herolib.ui.console
import incubaid.herolib.core.playbook { PlayBook }
import incubaid.herolib.core.texttools
import incubaid.herolib.ui.console
pub fn play(mut plbook PlayBook) ! {
if !plbook.exists(filter: 'livekit.') {

View File

@@ -4,7 +4,7 @@ To get started
```v
import freeflowuniverse.herolib.clients.livekit
import incubaid.herolib.clients.livekit
mut client:= livekit.get()!
@@ -14,12 +14,9 @@ client...
## example heroscript
```hero
!!livekit.configure
livekit_url:''
livekit_api_key:''
livekit_api_secret:''
```

View File

@@ -1,7 +1,7 @@
module livekit
import os
import freeflowuniverse.herolib.osal.core as osal
import incubaid.herolib.osal.core as osal
const env_file = '${os.dir(@FILE)}/.env'

View File

@@ -1,6 +1,6 @@
module mailclient
import freeflowuniverse.herolib.core.texttools
import incubaid.herolib.core.texttools
import net.smtp
import time

View File

@@ -1,8 +1,8 @@
module mailclient
import freeflowuniverse.herolib.core.base
import freeflowuniverse.herolib.core.playbook { PlayBook }
import freeflowuniverse.herolib.ui.console
import incubaid.herolib.core.base
import incubaid.herolib.core.playbook { PlayBook }
import incubaid.herolib.ui.console
import json
__global (

View File

@@ -1,6 +1,6 @@
module mailclient
import freeflowuniverse.herolib.data.paramsparser
import incubaid.herolib.data.paramsparser
import os
pub const version = '0.0.0'

View File

@@ -1,11 +1,10 @@
# mailclient
To get started
```v
import freeflowuniverse.herolib.clients.mailclient
import incubaid.herolib.clients.mailclient
//remove the previous one, otherwise the env variables are not read
@@ -52,12 +51,11 @@ following env variables are supported
- MAIL_PASSWORD=
- MAIL_PORT=465
- MAIL_SERVER=smtp-relay.brevo.com
- MAIL_USERNAME=kristof@incubaid.com
- MAIL_USERNAME=<kristof@incubaid.com>
these variables will only be set at configure time
## brevo remark
- use ssl
- use port: 465
- use port: 465

View File

@@ -1,6 +1,6 @@
module meilisearch
import freeflowuniverse.herolib.core.httpconnection
import incubaid.herolib.core.httpconnection
import x.json2
import json

View File

@@ -1,6 +1,6 @@
module meilisearch
import freeflowuniverse.herolib.core.httpconnection
import incubaid.herolib.core.httpconnection
import x.json2
import json

View File

@@ -1,8 +1,8 @@
module meilisearch
import freeflowuniverse.herolib.core.base
import freeflowuniverse.herolib.core.playbook { PlayBook }
import freeflowuniverse.herolib.ui.console
import incubaid.herolib.core.base
import incubaid.herolib.core.playbook { PlayBook }
import incubaid.herolib.ui.console
import json
__global (

View File

@@ -1,7 +1,7 @@
module meilisearch
import freeflowuniverse.herolib.data.paramsparser
import freeflowuniverse.herolib.core.httpconnection
import incubaid.herolib.data.paramsparser
import incubaid.herolib.core.httpconnection
import os
pub const version = '1.0.0'

View File

@@ -4,7 +4,7 @@ This is a simple V client for interacting with a [self-hosted Meilisearch instan
### Getting Started with Self-Hosted Meilisearch
To use this V client, ensure you have a **self-hosted Meilisearch instance installed and running**.
To use this V client, ensure you have a **self-hosted Meilisearch instance installed and running**.
This quick start will walk you through installing Meilisearch, adding documents, and performing your first search.
@@ -29,6 +29,7 @@ Start Meilisearch with the following command, replacing `"aSampleMasterKey"` wit
# Launch Meilisearch
meilisearch --master-key="aSampleMasterKey"
```
---
### Running the V Client Tests
@@ -48,7 +49,7 @@ v -enable-globals -stats herolib/clients/meilisearch/index_test.v
Here is a quick example of how to retrieve the Meilisearch server version using this V client:
```v
import freeflowuniverse.herolib.clients.meilisearch
import incubaid.herolib.clients.meilisearch
mut client := meilisearch.get() or { panic(err) }
version := client.version() or { panic(err) }

View File

@@ -2,7 +2,7 @@ module mycelium
import json
import encoding.base64
import freeflowuniverse.herolib.core.httpconnection
import incubaid.herolib.core.httpconnection
// Represents a destination for a message, can be either IP or public key
pub struct MessageDestination {

View File

@@ -1,7 +1,7 @@
module mycelium
import freeflowuniverse.herolib.osal.core as osal
import freeflowuniverse.herolib.ui.console
import incubaid.herolib.osal.core as osal
import incubaid.herolib.ui.console
import os
import json

View File

@@ -1,7 +1,7 @@
module mycelium
import freeflowuniverse.herolib.core.base
import freeflowuniverse.herolib.core.playbook { PlayBook }
import incubaid.herolib.core.base
import incubaid.herolib.core.playbook { PlayBook }
import json
__global (

View File

@@ -1,7 +1,7 @@
module mycelium
import freeflowuniverse.herolib.core.httpconnection
import freeflowuniverse.herolib.data.encoderhero
import incubaid.herolib.core.httpconnection
import incubaid.herolib.data.encoderhero
pub const version = '0.0.0'
const singleton = true

View File

@@ -16,7 +16,7 @@ The client can be configured either through V code or using heroscript.
### V Code Configuration
```v
import freeflowuniverse.herolib.clients.mycelium
import incubaid.herolib.clients.mycelium
// Get default client instance
mut client := mycelium.get()!
@@ -32,7 +32,7 @@ mut client := mycelium.get(name: "custom")!
Get information about the local Mycelium node:
```v
import freeflowuniverse.herolib.clients.mycelium
import incubaid.herolib.clients.mycelium
// Get node info including public key and address
result := mycelium.inspect()!
@@ -49,7 +49,7 @@ println('IP Address: ${addr}')
Check if the Mycelium node is running and reachable:
```v
import freeflowuniverse.herolib.clients.mycelium
import incubaid.herolib.clients.mycelium
is_running := mycelium.check()
if is_running {
@@ -64,7 +64,7 @@ if is_running {
The client provides several functions for sending and receiving messages between nodes:
```v
import freeflowuniverse.herolib.clients.mycelium
import incubaid.herolib.clients.mycelium
mut client := mycelium.get()!
@@ -100,6 +100,7 @@ println('Expires at: ${status.deadline}')
```
The messaging API supports:
- Sending messages to nodes identified by public key
- Optional message topics for filtering
- Waiting for replies when sending messages

View File

@@ -1,7 +1,7 @@
module mycelium_rpc
import freeflowuniverse.herolib.schemas.jsonrpc
import freeflowuniverse.herolib.core.httpconnection
import incubaid.herolib.schemas.jsonrpc
import incubaid.herolib.core.httpconnection
import encoding.base64
// Helper function to get or create the RPC client

View File

@@ -1,8 +1,8 @@
module mycelium_rpc
import freeflowuniverse.herolib.core.base
import freeflowuniverse.herolib.core.playbook { PlayBook }
import freeflowuniverse.herolib.ui.console
import incubaid.herolib.core.base
import incubaid.herolib.core.playbook { PlayBook }
import incubaid.herolib.ui.console
import json
__global (

View File

@@ -1,7 +1,7 @@
module mycelium_rpc
import freeflowuniverse.herolib.data.encoderhero
import freeflowuniverse.herolib.schemas.jsonrpc
import incubaid.herolib.data.encoderhero
import incubaid.herolib.schemas.jsonrpc
pub const version = '0.0.0'
const singleton = true

View File

@@ -25,7 +25,7 @@ Mycelium is a mesh networking system that creates secure, encrypted connections
### Basic Example
```v
import freeflowuniverse.herolib.clients.mycelium_rpc
import incubaid.herolib.clients.mycelium_rpc
// Create a new client
mut client := mycelium_rpc.new_client(
@@ -51,7 +51,7 @@ for peer in peers {
The client can be configured with:
- `name`: Client instance name (default: 'default')
- `url`: Mycelium node API URL (default: 'http://localhost:8990')
- `url`: Mycelium node API URL (default: '<http://localhost:8990>')
### Available Methods
@@ -94,6 +94,7 @@ The client can be configured with:
## Data Types
### Info
```v
struct Info {
node_subnet string // The subnet owned by the node
@@ -102,6 +103,7 @@ struct Info {
```
### PeerStats
```v
struct PeerStats {
endpoint Endpoint // Peer endpoint
@@ -113,6 +115,7 @@ struct PeerStats {
```
### InboundMessage
```v
struct InboundMessage {
id string // Message ID (hex encoded)
@@ -150,6 +153,7 @@ v run examples/clients/mycelium_rpc.vsh
```
The example will:
1. Install Mycelium if needed
2. Start a Mycelium node with API enabled
3. Demonstrate various RPC operations
@@ -176,5 +180,3 @@ info := client.get_info() or {
## License
This client follows the same license as the HeroLib project.

View File

@@ -2,7 +2,7 @@
```v
import freeflowuniverse.herolib.clients.openai
import incubaid.herolib.clients.openai
mut client:= openai.get()! //will be the default client, key is in `AIKEY` on environment variable or `OPENROUTER_API_KEY`
@@ -16,4 +16,3 @@ resp := client.audio.create_transcription(
)!
```

View File

@@ -1,10 +1,10 @@
module audio
import json
import freeflowuniverse.herolib.core.httpconnection
import incubaid.herolib.core.httpconnection
import os
import net.http
import freeflowuniverse.herolib.clients.openai { OpenAI }
import incubaid.herolib.clients.openai { OpenAI }
type OpenAIAlias = OpenAI

View File

@@ -4,7 +4,7 @@ import os
import clients.openai
import clients.openai.audio
import clients.openai.openai_factory_ { get }
import freeflowuniverse.crystallib.osal { play }
import incubaid.crystallib.osal { play }
fn test_audio() {
key := os.getenv('OPENAI_API_KEY')

View File

@@ -3,7 +3,7 @@
```v
import freeflowuniverse.herolib.clients.openai
import incubaid.herolib.clients.openai
mut client:= openai.get()! //will be the default client, key is in `AIKEY` on environment variable or `OPENROUTER_API_KEY`
@@ -14,4 +14,4 @@ resp := client.embeddings.create_embedding(
model: 'text-embedding-ada-002'
)!
```
```

View File

@@ -1,7 +1,7 @@
module embeddings
import json
import freeflowuniverse.herolib.clients.openai { OpenAI, Usage }
import incubaid.herolib.clients.openai { OpenAI, Usage }
type OpenAIAlias = OpenAI

View File

@@ -4,7 +4,7 @@ import os
import clients.openai
import clients.openai.embeddings
import clients.openai.openai_factory_ { get }
import freeflowuniverse.crystallib.osal { play }
import incubaid.crystallib.osal { play }
fn test_embeddings() {
key := os.getenv('OPENAI_API_KEY')

View File

@@ -2,7 +2,7 @@
# Example: Uploading a File
```v
import freeflowuniverse.herolib.clients.openai
import incubaid.herolib.clients.openai
mut client:= openai.get()! //will be the default client, key is in `AIKEY` on environment variable or `OPENROUTER_API_KEY`
@@ -22,4 +22,4 @@ if resp.id.len > 0 {
}
```
```

View File

@@ -1,10 +1,10 @@
module files
import json
import freeflowuniverse.herolib.core.httpconnection
import incubaid.herolib.core.httpconnection
import os
import net.http
import freeflowuniverse.herolib.clients.openai { OpenAI }
import incubaid.herolib.clients.openai { OpenAI }
type OpenAIAlias = OpenAI

View File

@@ -1,8 +1,7 @@
# OpenAI Fine-tuning Client
```v
import freeflowuniverse.herolib.clients.openai
import incubaid.herolib.clients.openai
mut client:= openai.get()! //will be the default client, key is in `AIKEY` on environment variable or `OPENROUTER_API_KEY`
@@ -19,4 +18,4 @@ if resp.id.len > 0 {
} else {
eprintln('Failed to create fine-tuning job.')
}
```
```

View File

@@ -1,7 +1,7 @@
module finetune
import freeflowuniverse.herolib.clients.openai { OpenAI }
import freeflowuniverse.herolib.clients.openai.files { File }
import incubaid.herolib.clients.openai { OpenAI }
import incubaid.herolib.clients.openai.files { File }
import json
type OpenAIAlias = OpenAI

View File

@@ -1,9 +1,9 @@
# Example: Creating an Image
# Example: Creating an Image
```v
import freeflowuniverse.herolib.clients.openai
import incubaid.herolib.clients.openai
mut client:= openai.get()! //will be the default client, key is in `AIKEY` on environment variable or `OPENROUTER_API_KEY`

View File

@@ -3,8 +3,8 @@ module openai
import json
import net.http
import os
import freeflowuniverse.herolib.core.httpconnection
import freeflowuniverse.herolib.clients.openai { OpenAI }
import incubaid.herolib.core.httpconnection
import incubaid.herolib.clients.openai { OpenAI }
type OpenAIAlias = OpenAI

View File

@@ -2,10 +2,9 @@
This directory contains the V client for OpenAI's Moderation API.
```v
import freeflowuniverse.herolib.clients.openai
import incubaid.herolib.clients.openai
mut client:= openai.get()! //will be the default client, key is in `AIKEY` on environment variable or `OPENROUTER_API_KEY`
@@ -27,4 +26,3 @@ if resp.results.len > 0 {
}
```

View File

@@ -1,7 +1,7 @@
module moderation
import json
import freeflowuniverse.herolib.clients.openai { OpenAI }
import incubaid.herolib.clients.openai { OpenAI }
type OpenAIAlias = OpenAI

View File

@@ -1,8 +1,8 @@
module openai
import freeflowuniverse.herolib.core.base
import freeflowuniverse.herolib.core.playbook { PlayBook }
import freeflowuniverse.herolib.ui.console
import incubaid.herolib.core.base
import incubaid.herolib.core.playbook { PlayBook }
import incubaid.herolib.ui.console
import json
__global (

View File

@@ -1,7 +1,7 @@
module openai
import freeflowuniverse.herolib.data.encoderhero
import freeflowuniverse.herolib.core.httpconnection
import incubaid.herolib.data.encoderhero
import incubaid.herolib.core.httpconnection
import os
pub const version = '0.0.0'

View File

@@ -4,8 +4,8 @@ To get started
```v
import freeflowuniverse.herolib.clients.openai
import freeflowuniverse.herolib.core.playcmds
import incubaid.herolib.clients.openai
import incubaid.herolib.core.playcmds
playcmds.run(
heroscript:'
@@ -21,10 +21,10 @@ playcmds.run(
mut client:= openai.get()!
mut r:=client.chat_completion(
model: "gpt-3.5-turbo",
message: 'Hello, world!'
temperature: 0.5
max_completion_tokens: 1024
model: "gpt-3.5-turbo",
message: 'Hello, world!'
temperature: 0.5
max_completion_tokens: 1024
)!
```

View File

@@ -1,10 +1,10 @@
module postgresql_client
import db.pg
import freeflowuniverse.herolib.core.texttools
import freeflowuniverse.herolib.osal.core as osal
import incubaid.herolib.core.texttools
import incubaid.herolib.osal.core as osal
import os
import freeflowuniverse.herolib.ui.console
import incubaid.herolib.ui.console
pub fn (mut self PostgresqlClient) check() ! {
mut db := self.db()!

View File

@@ -1,8 +1,8 @@
module postgresql_client
import freeflowuniverse.herolib.core.base
import freeflowuniverse.herolib.core.playbook { PlayBook }
import freeflowuniverse.herolib.ui.console
import incubaid.herolib.core.base
import incubaid.herolib.core.playbook { PlayBook }
import incubaid.herolib.ui.console
import json
__global (

View File

@@ -1,8 +1,8 @@
module postgresql_client
import freeflowuniverse.herolib.data.paramsparser
import freeflowuniverse.herolib.data.encoderhero
import freeflowuniverse.herolib.ui.console
import incubaid.herolib.data.paramsparser
import incubaid.herolib.data.encoderhero
import incubaid.herolib.ui.console
import os
import db.pg

View File

@@ -11,19 +11,19 @@ The PostgreSQL client can be configured using HeroScript. Configuration settings
```v
#!/usr/bin/env -S v -n -w -gc none -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.core
import freeflowuniverse.herolib.clients.postgresql_client
import incubaid.herolib.core
import incubaid.herolib.clients.postgresql_client
// Configure PostgreSQL client
heroscript := "
!!postgresql_client.configure
name:'test'
user: 'postgres'
port: 5432
host: 'localhost'
password: '1234'
dbname: 'postgres'
name:'test'
user: 'postgres'
port: 5432
host: 'localhost'
password: '1234'
dbname: 'postgres'
"
// Process the heroscript configuration
@@ -34,8 +34,8 @@ mut db_client := postgresql_client.get(name: "test")!
// Check if test database exists, create if not
if !db_client.db_exists('test')! {
println('Creating database test...')
db_client.db_create('test')!
println('Creating database test...')
db_client.db_create('test')!
}
// Switch to test database
@@ -43,10 +43,10 @@ db_client.dbname = 'test'
// Create table if not exists
create_table_sql := "CREATE TABLE IF NOT EXISTS users (
id SERIAL PRIMARY KEY,
name VARCHAR(100) NOT NULL,
email VARCHAR(255) UNIQUE NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
id SERIAL PRIMARY KEY,
name VARCHAR(100) NOT NULL,
email VARCHAR(255) UNIQUE NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
)"
println('Creating table users if not exists...')
@@ -117,10 +117,10 @@ db_client.backup(dest: '/path/to/backup/dir')!
Backups are created in custom PostgreSQL format (.bak files) which can be restored using pg_restore.
## OS supporting
OSX
```
## supporting
@@ -132,4 +132,4 @@ brew install libpq
brew link --force libpq
export PATH="/usr/local/opt/libpq/bin:$PATH"
```
```

View File

@@ -1,6 +1,6 @@
module qdrant
import freeflowuniverse.herolib.core.httpconnection
import incubaid.herolib.core.httpconnection
import json
// Configuration of the collection

View File

@@ -1,6 +1,6 @@
module qdrant
import freeflowuniverse.herolib.core.httpconnection
import incubaid.herolib.core.httpconnection
import json
import rand

View File

@@ -1,6 +1,6 @@
module qdrant
import freeflowuniverse.herolib.core.httpconnection
import incubaid.herolib.core.httpconnection
import json
// QDrant usage

View File

@@ -1,8 +1,8 @@
module qdrant
import freeflowuniverse.herolib.core.base
import freeflowuniverse.herolib.core.playbook { PlayBook }
import freeflowuniverse.herolib.ui.console
import incubaid.herolib.core.base
import incubaid.herolib.core.playbook { PlayBook }
import incubaid.herolib.ui.console
import json
__global (

View File

@@ -1,7 +1,7 @@
module qdrant
// import freeflowuniverse.herolib.data.paramsparser
import freeflowuniverse.herolib.data.encoderhero
// import incubaid.herolib.data.paramsparser
import incubaid.herolib.data.encoderhero
// import json
// import os

View File

@@ -15,7 +15,7 @@ This is a V client for [Qdrant](https://qdrant.tech/), a high-performance vector
```v
// Create a new Qdrant client
import freeflowuniverse.herolib.clients.qdrant
import incubaid.herolib.clients.qdrant
mut client := qdrant.get()!

View File

@@ -1,7 +1,7 @@
module rclone
import freeflowuniverse.herolib.core.playbook
import freeflowuniverse.herolib.core.texttools
import incubaid.herolib.core.playbook
import incubaid.herolib.core.texttools
import os
const configfile = '${os.home_dir()}/.config/rclone/rclone.conf'

View File

@@ -1,8 +1,8 @@
module rclone
import freeflowuniverse.herolib.core.base
import freeflowuniverse.herolib.core.playbook { PlayBook }
import freeflowuniverse.herolib.ui.console
import incubaid.herolib.core.base
import incubaid.herolib.core.playbook { PlayBook }
import incubaid.herolib.ui.console
import json
__global (

View File

@@ -1,7 +1,7 @@
module rclone
import freeflowuniverse.herolib.data.paramsparser
import freeflowuniverse.herolib.data.encoderhero
import incubaid.herolib.data.paramsparser
import incubaid.herolib.data.encoderhero
import os
pub const version = '0.0.0'

View File

@@ -2,31 +2,30 @@
Rclone is this incredible swiss army knive to deal with S3 storage servers.
## Example
```golang
import freeflowuniverse.herolib.osal.core.rclone
import incubaid.herolib.osal.core.rclone
fn main() {
do() or { panic(err) }
do() or { panic(err) }
}
fn do() ! {
mut z:=rclone.new()!
mut z:=rclone.new()!
// name string @[required]
// cmd string @[required]
// cmd_file bool //if we wanna force to run it as a file which is given to bash -c (not just a cmd in rclone)
// test string
// test_file bool
// after []string
// env map[string]string
// oneshot bool
p:=z.new(
name:"test"
cmd:'/bin/bash'
)!
// name string @[required]
// cmd string @[required]
// cmd_file bool //if we wanna force to run it as a file which is given to bash -c (not just a cmd in rclone)
// test string
// test_file bool
// after []string
// env map[string]string
// oneshot bool
p:=z.new(
name:"test"
cmd:'/bin/bash'
)!
}
@@ -34,7 +33,6 @@ fn do() ! {
## protocol defined in
sal on top of <https://github.com/threefoldtech/rclone/tree/master>
sal on top of https://github.com/threefoldtech/rclone/tree/master
https://github.com/threefoldtech/rclone/blob/master/docs/protocol.md
<https://github.com/threefoldtech/rclone/blob/master/docs/protocol.md>

View File

@@ -12,12 +12,12 @@ This module provides a V language interface to RCloneClient, a command line prog
## Prerequisites
RCloneClient must be installed on your system. Visit https://rclone.org/install/ for installation instructions.
RCloneClient must be installed on your system. Visit <https://rclone.org/install/> for installation instructions.
## Usage
```v
import freeflowuniverse.herolib.osal.core.rclone
import incubaid.herolib.osal.core.rclone
fn main() {
// Create a new RCloneClient instance

View File

@@ -1,14 +1,12 @@
# runpod
To get started
```v
import freeflowuniverse.herolib.clients. runpod
import incubaid.herolib.clients. runpod
mut client:= runpod.get()!
@@ -21,7 +19,6 @@ client...
## example heroscript
```hero
!!runpod.configure
secret: '...'
@@ -39,4 +36,4 @@ This script demonstrates creating, stopping, starting, and terminating RunPod po
**How to Run**
- Find out our example in: examples/develop/runpod/runpod_example.vsh
* Find out our example in: examples/develop/runpod/runpod_example.vsh

View File

@@ -1,8 +1,8 @@
module runpod
import freeflowuniverse.herolib.core.base
import freeflowuniverse.herolib.core.playbook { PlayBook }
import freeflowuniverse.herolib.ui.console
import incubaid.herolib.core.base
import incubaid.herolib.core.playbook { PlayBook }
import incubaid.herolib.ui.console
import json
__global (

View File

@@ -2,7 +2,7 @@ module runpod
import x.json2
import net.http { Method }
import freeflowuniverse.herolib.core.httpconnection
import incubaid.herolib.core.httpconnection
// GraphQL response wrapper
struct GqlResponse[T] {

View File

@@ -1,6 +1,6 @@
module runpod
import freeflowuniverse.herolib.data.paramsparser
import incubaid.herolib.data.paramsparser
import os
pub const version = '1.14.3'

View File

@@ -1,6 +1,6 @@
module runpod
import freeflowuniverse.herolib.core.httpconnection
import incubaid.herolib.core.httpconnection
import x.json2
enum OperationType {

View File

@@ -1,8 +1,8 @@
module sendgrid
import freeflowuniverse.herolib.core.base
import freeflowuniverse.herolib.core.playbook { PlayBook }
import freeflowuniverse.herolib.ui.console
import incubaid.herolib.core.base
import incubaid.herolib.core.playbook { PlayBook }
import incubaid.herolib.ui.console
import json
__global (

View File

@@ -1,6 +1,6 @@
module sendgrid
import freeflowuniverse.herolib.data.paramsparser
import incubaid.herolib.data.paramsparser
import os
pub const version = '0.0.0'

View File

@@ -1,8 +1,8 @@
module traefik
import freeflowuniverse.herolib.core.texttools
import freeflowuniverse.herolib.core.redisclient
import freeflowuniverse.herolib.osal.traefik as osal_traefik
import incubaid.herolib.core.texttools
import incubaid.herolib.core.redisclient
import incubaid.herolib.osal.traefik as osal_traefik
__global (
traefik_managers map[string]&TraefikManager

View File

@@ -1,8 +1,8 @@
module traefik
import freeflowuniverse.herolib.core.redisclient
import freeflowuniverse.herolib.osal.traefik as osal_traefik
import freeflowuniverse.herolib.core.texttools
import incubaid.herolib.core.redisclient
import incubaid.herolib.osal.traefik as osal_traefik
import incubaid.herolib.core.texttools
@[heap]
pub struct TraefikManager {

View File

@@ -1,8 +1,8 @@
module traefik
import freeflowuniverse.herolib.core.playbook { PlayBook }
import freeflowuniverse.herolib.core.texttools
import freeflowuniverse.herolib.ui.console
import incubaid.herolib.core.playbook { PlayBook }
import incubaid.herolib.core.texttools
import incubaid.herolib.ui.console
pub fn play(mut plbook PlayBook) ! {
if !plbook.exists(filter: 'traefik.') {

View File

@@ -1,13 +1,11 @@
# vastai
To get started
```v
import freeflowuniverse.herolib.clients. vastai
import incubaid.herolib.clients. vastai
mut client:= vastai.get()!
@@ -26,5 +24,3 @@ client...
host: 'localhost'
port: 8888
```

View File

@@ -1,8 +1,8 @@
module vastai
import freeflowuniverse.herolib.core.base
import freeflowuniverse.herolib.core.playbook { PlayBook }
import freeflowuniverse.herolib.ui.console
import incubaid.herolib.core.base
import incubaid.herolib.core.playbook { PlayBook }
import incubaid.herolib.ui.console
import json
__global (

View File

@@ -1,7 +1,7 @@
module vastai
import freeflowuniverse.herolib.data.paramsparser
import freeflowuniverse.herolib.core.httpconnection
import incubaid.herolib.data.paramsparser
import incubaid.herolib.core.httpconnection
import os
pub const version = '1.14.3'

View File

@@ -1,13 +1,11 @@
# wireguard
To get started
```v
import freeflowuniverse.herolib.clients. wireguard
import incubaid.herolib.clients. wireguard
mut client:= wireguard.get()!
@@ -26,5 +24,3 @@ client...
host: 'localhost'
port: 8888
```

View File

@@ -1,8 +1,8 @@
module wireguard
import freeflowuniverse.herolib.core.base
import freeflowuniverse.herolib.core.playbook { PlayBook }
import freeflowuniverse.herolib.ui.console
import incubaid.herolib.core.base
import incubaid.herolib.core.playbook { PlayBook }
import incubaid.herolib.ui.console
import json
__global (

View File

@@ -1,6 +1,6 @@
module wireguard
import freeflowuniverse.herolib.data.paramsparser
import incubaid.herolib.data.paramsparser
pub const version = '1.14.3'
const singleton = false

View File

@@ -1,7 +1,7 @@
module zerodb_client
import freeflowuniverse.herolib.core.redisclient
import freeflowuniverse.herolib.ui.console
import incubaid.herolib.core.redisclient
import incubaid.herolib.ui.console
pub struct ZDB {
pub mut:

View File

@@ -1,8 +1,8 @@
module zerodb_client
import freeflowuniverse.herolib.core.base
import freeflowuniverse.herolib.core.playbook { PlayBook }
import freeflowuniverse.herolib.ui.console
import incubaid.herolib.core.base
import incubaid.herolib.core.playbook { PlayBook }
import incubaid.herolib.ui.console
import json
__global (

View File

@@ -1,6 +1,6 @@
module zerodb_client
import freeflowuniverse.herolib.data.paramsparser
import incubaid.herolib.data.paramsparser
import os
pub const version = '0.0.0'

View File

@@ -26,7 +26,7 @@ Zinit is a process manager that provides service monitoring, dependency manageme
### Basic Example
```v
import freeflowuniverse.herolib.clients.zinit
import incubaid.herolib.clients.zinit
// Create a new client
mut client := zinit.get(create:true)!
@@ -54,7 +54,7 @@ client.service_stop('redis')!
### Service Configuration Management
```v
import freeflowuniverse.herolib.clients.zinit
import incubaid.herolib.clients.zinit
mut client := zinit.new_client()!
@@ -86,7 +86,7 @@ println('Delete result: ${result}')
### Service Statistics
```v
import freeflowuniverse.herolib.clients.zinit
import incubaid.herolib.clients.zinit
mut client := zinit.new_client()!
@@ -106,7 +106,7 @@ for child in stats.children {
### Log Streaming
```v
import freeflowuniverse.herolib.clients.zinit
import incubaid.herolib.clients.zinit
mut client := zinit.new_client()!
@@ -170,7 +170,7 @@ println('Subscribed to logs with ID: ${subscription_id}')
### Using the Factory Pattern
```v
import freeflowuniverse.herolib.clients.zinit
import incubaid.herolib.clients.zinit
// Get client using factory (recommended)
mut client := zinit.get()!
@@ -202,7 +202,7 @@ The client provides comprehensive error handling for all Zinit-specific error co
- `-32008`: Service file error
```v
import freeflowuniverse.herolib.clients.zinit
import incubaid.herolib.clients.zinit
mut client := zinit.new_client()!
@@ -215,5 +215,3 @@ client.service_start('nonexistent') or {
}
}
```

View File

@@ -1,8 +1,8 @@
module zinit
import json
import freeflowuniverse.herolib.schemas.jsonrpc
import freeflowuniverse.herolib.schemas.openrpc
import incubaid.herolib.schemas.jsonrpc
import incubaid.herolib.schemas.openrpc
// Helper function to get or create the RPC client
fn (mut c ZinitRPC) client_() !&jsonrpc.Client {

View File

@@ -1,8 +1,8 @@
module zinit
import freeflowuniverse.herolib.core.base
import freeflowuniverse.herolib.core.playbook { PlayBook }
import freeflowuniverse.herolib.ui.console
import incubaid.herolib.core.base
import incubaid.herolib.core.playbook { PlayBook }
import incubaid.herolib.ui.console
import json
__global (

View File

@@ -1,7 +1,7 @@
module zinit
import freeflowuniverse.herolib.data.encoderhero
import freeflowuniverse.herolib.schemas.jsonrpc
import incubaid.herolib.data.encoderhero
import incubaid.herolib.schemas.jsonrpc
import os
pub const version = '0.0.0'