flowise-invinoveritas 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/package.json +3 -3
- package/src/index.ts +112 -1
package/README.md
CHANGED
|
@@ -2,8 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Default posture: aggressive growth and PNL capture, bounded by Bitcoin/Lightning-only payments, budget limits, and explicit risk controls.
|
|
4
4
|
|
|
5
|
+
invinoveritas is a home for autonomous agents — a wallet-native residence (identity + wallet + memory + mailbox + capital-scale-aware governance + signed proofs).
|
|
6
|
+
|
|
5
7
|
Components:
|
|
6
8
|
|
|
9
|
+
- **invinoveritas Review (the proven front door)** — capital-scale-aware approve/revise/reject verdict on a trade, diff, command, or plan, the same gate our own live Bitcoin bot passes before every entry
|
|
10
|
+
- **invinoveritas Residence Act (the one-call governed bundle)** — your home reasons + governs + remembers your intent in one call, with deterministic house rules
|
|
11
|
+
- **invinoveritas Markets Bundle** — regime + live derivatives signals + ecosystem brief + optional governance review in one call, priced below the sum
|
|
12
|
+
- **invinoveritas Signals** — live Hyperliquid derivatives signals (funding + 24h delta, basis, open interest, the vol-expansion regime our bot enters on, realized vol, BTC DVOL); free BTC teaser + paid multi-coin set. Facts-only, never advice
|
|
13
|
+
- **invinoveritas Regime** — macro risk-off data feed (OOS-validated, facts-only)
|
|
7
14
|
- invinoveritas Reason
|
|
8
15
|
- invinoveritas Decision
|
|
9
16
|
- invinoveritas Growth + PNL Attack Plan
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowise-invinoveritas",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Default-aggressive Bitcoin/Lightning-native invinoveritas Flowise components for reasoning, decisions, paid persistent memory (store/get/list/delete), Sovereign Earner directives, and growth/PNL attack planning.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
|
-
"author": "invinoveritas <
|
|
6
|
+
"author": "invinoveritas <contact@agents.babyblueviper.com>",
|
|
7
7
|
"keywords": ["flowise", "bitcoin", "lightning", "l402", "ai-agents", "pnl", "marketplace"],
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "https://github.com/babyblueviper1/invinoveritas
|
|
10
|
+
"url": "https://github.com/babyblueviper1/invinoveritas.git",
|
|
11
11
|
"directory": "integrations/flowise/flowise-invinoveritas"
|
|
12
12
|
},
|
|
13
13
|
"main": "dist/index.js",
|
package/src/index.ts
CHANGED
|
@@ -11,7 +11,7 @@ async function post(config: InvinoConfig, path: string, body: unknown) {
|
|
|
11
11
|
headers: {
|
|
12
12
|
Authorization: `Bearer ${config.apiKey}`,
|
|
13
13
|
'Content-Type': 'application/json',
|
|
14
|
-
'User-Agent': 'flowise-invinoveritas/0.
|
|
14
|
+
'User-Agent': 'flowise-invinoveritas/0.4.0',
|
|
15
15
|
'X-Invino-Integration': config.integration || 'flowise',
|
|
16
16
|
},
|
|
17
17
|
body: JSON.stringify(body),
|
|
@@ -22,6 +22,20 @@ async function post(config: InvinoConfig, path: string, body: unknown) {
|
|
|
22
22
|
return response.json();
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
async function get(config: InvinoConfig, path: string, x402 = false) {
|
|
26
|
+
const headers: Record<string, string> = {
|
|
27
|
+
Authorization: `Bearer ${config.apiKey}`,
|
|
28
|
+
'User-Agent': 'flowise-invinoveritas/0.5.0',
|
|
29
|
+
'X-Invino-Integration': config.integration || 'flowise',
|
|
30
|
+
};
|
|
31
|
+
if (x402) headers['X-Payment-Scheme'] = 'x402';
|
|
32
|
+
const response = await fetch(`${BASE_URL}${path}`, { method: 'GET', headers });
|
|
33
|
+
if (!response.ok) {
|
|
34
|
+
throw new Error(`invinoveritas ${path} failed: ${response.status} ${await response.text()}`);
|
|
35
|
+
}
|
|
36
|
+
return response.json();
|
|
37
|
+
}
|
|
38
|
+
|
|
25
39
|
export async function invinoReason(config: InvinoConfig, question: string, style = 'normal') {
|
|
26
40
|
return post(config, '/reason', { question, style });
|
|
27
41
|
}
|
|
@@ -30,6 +44,78 @@ export async function invinoDecision(config: InvinoConfig, goal: string, questio
|
|
|
30
44
|
return post(config, '/decision', { goal, question, context });
|
|
31
45
|
}
|
|
32
46
|
|
|
47
|
+
export async function invinoReview(
|
|
48
|
+
config: InvinoConfig,
|
|
49
|
+
artifact: string,
|
|
50
|
+
artifactType = 'general',
|
|
51
|
+
context = '',
|
|
52
|
+
severityThreshold: 'low' | 'medium' | 'high' = 'medium',
|
|
53
|
+
includeTradingState = false,
|
|
54
|
+
) {
|
|
55
|
+
return post(config, '/review', {
|
|
56
|
+
artifact,
|
|
57
|
+
artifact_type: artifactType,
|
|
58
|
+
context,
|
|
59
|
+
severity_threshold: severityThreshold,
|
|
60
|
+
include_trading_state: includeTradingState,
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export async function invinoResidenceAct(
|
|
65
|
+
config: InvinoConfig,
|
|
66
|
+
intent: string,
|
|
67
|
+
artifact = '',
|
|
68
|
+
artifactType = 'general',
|
|
69
|
+
requireReview = true,
|
|
70
|
+
remember = true,
|
|
71
|
+
maxSpendSats?: number,
|
|
72
|
+
) {
|
|
73
|
+
const body: Record<string, unknown> = {
|
|
74
|
+
intent,
|
|
75
|
+
artifact_type: artifactType,
|
|
76
|
+
policy: {
|
|
77
|
+
require_review: requireReview,
|
|
78
|
+
remember,
|
|
79
|
+
max_spend_sats: maxSpendSats ?? null,
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
if (artifact) body.artifact = artifact;
|
|
83
|
+
return post(config, '/residence/act', body);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// ---- Markets / trading intelligence (facts-only, never P&L/advice) ----
|
|
87
|
+
|
|
88
|
+
export async function invinoRegime(config: InvinoConfig, x402 = false) {
|
|
89
|
+
return get(config, '/regime', x402);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export async function invinoSignalsTeaser(config: InvinoConfig) {
|
|
93
|
+
// Free shop-window: BTC vol-expansion regime read (the gate our live earner enters on).
|
|
94
|
+
return get(config, '/signals');
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export async function invinoSignals(config: InvinoConfig, x402 = false) {
|
|
98
|
+
// Paid full multi-coin live Hyperliquid derivatives set.
|
|
99
|
+
return get(config, '/signals/full', x402);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export async function invinoMarketsAct(
|
|
103
|
+
config: InvinoConfig,
|
|
104
|
+
artifact = '',
|
|
105
|
+
artifactType = 'general',
|
|
106
|
+
context = '',
|
|
107
|
+
coins?: string[],
|
|
108
|
+
maxSpendSats?: number,
|
|
109
|
+
) {
|
|
110
|
+
// The Markets Bundle: regime + live signals + brief + optional governance review.
|
|
111
|
+
const body: Record<string, unknown> = { artifact_type: artifactType };
|
|
112
|
+
if (coins && coins.length) body.coins = coins;
|
|
113
|
+
if (artifact) body.artifact = artifact;
|
|
114
|
+
if (context) body.context = context;
|
|
115
|
+
if (maxSpendSats !== undefined) body.max_spend_sats = maxSpendSats;
|
|
116
|
+
return post(config, '/markets/act', body);
|
|
117
|
+
}
|
|
118
|
+
|
|
33
119
|
export async function invinoGrowthAttackPlan(config: InvinoConfig, objective: string, context = '', budgetSats?: number) {
|
|
34
120
|
return invinoDecision(
|
|
35
121
|
config,
|
|
@@ -94,6 +180,31 @@ export const nodes = [
|
|
|
94
180
|
name: 'invinoveritasDecision',
|
|
95
181
|
description: 'Structured decisions with confidence and risk notes.',
|
|
96
182
|
},
|
|
183
|
+
{
|
|
184
|
+
label: 'invinoveritas Review (front door)',
|
|
185
|
+
name: 'invinoveritasReview',
|
|
186
|
+
description: 'Capital-scale-aware governed review of a trade, diff, command, or plan — the same gate our live Bitcoin bot passes before every entry. ~250 sats.',
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
label: 'invinoveritas Residence Act (governed bundle)',
|
|
190
|
+
name: 'invinoveritasResidenceAct',
|
|
191
|
+
description: 'One governed call — your home reasons + governs + remembers your intent. Deterministic house rules; priced below the sum of its parts.',
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
label: 'invinoveritas Regime (risk-off feed)',
|
|
195
|
+
name: 'invinoveritasRegime',
|
|
196
|
+
description: 'Macro risk-off DATA feed (OOS-validated, facts-only) — the regime signal our own bot scales risk by.',
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
label: 'invinoveritas Signals (live derivatives)',
|
|
200
|
+
name: 'invinoveritasSignals',
|
|
201
|
+
description: 'Live Hyperliquid derivatives signals — funding + 24h delta, basis, open interest, the vol-expansion regime our bot enters on, realized vol, BTC DVOL. Free BTC teaser + paid multi-coin set. Facts-only, never advice.',
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
label: 'invinoveritas Markets Bundle',
|
|
205
|
+
name: 'invinoveritasMarketsAct',
|
|
206
|
+
description: 'One governed call: regime + live signals + ecosystem brief + optional governance review of a proposed trade. Priced below the sum of its members.',
|
|
207
|
+
},
|
|
97
208
|
{
|
|
98
209
|
label: 'invinoveritas Growth + PNL Attack Plan',
|
|
99
210
|
name: 'invinoveritasGrowthAttackPlan',
|