flowise-invinoveritas 0.4.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 CHANGED
@@ -8,6 +8,9 @@ Components:
8
8
 
9
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
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)
11
14
  - invinoveritas Reason
12
15
  - invinoveritas Decision
13
16
  - invinoveritas Growth + PNL Attack Plan
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowise-invinoveritas",
3
- "version": "0.4.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
6
  "author": "invinoveritas <contact@agents.babyblueviper.com>",
package/src/index.ts CHANGED
@@ -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
  }
@@ -69,6 +83,39 @@ export async function invinoResidenceAct(
69
83
  return post(config, '/residence/act', body);
70
84
  }
71
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
+
72
119
  export async function invinoGrowthAttackPlan(config: InvinoConfig, objective: string, context = '', budgetSats?: number) {
73
120
  return invinoDecision(
74
121
  config,
@@ -143,6 +190,21 @@ export const nodes = [
143
190
  name: 'invinoveritasResidenceAct',
144
191
  description: 'One governed call — your home reasons + governs + remembers your intent. Deterministic house rules; priced below the sum of its parts.',
145
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
+ },
146
208
  {
147
209
  label: 'invinoveritas Growth + PNL Attack Plan',
148
210
  name: 'invinoveritasGrowthAttackPlan',