flowise-invinoveritas 0.2.0 → 0.4.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.
Files changed (3) hide show
  1. package/README.md +6 -0
  2. package/package.json +3 -3
  3. package/src/index.ts +113 -1
package/README.md CHANGED
@@ -2,11 +2,17 @@
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
7
11
  - invinoveritas Reason
8
12
  - invinoveritas Decision
9
13
  - invinoveritas Growth + PNL Attack Plan
14
+ - invinoveritas Sovereign Earner Execute
15
+ - invinoveritas Memory Store / Get / List / Delete (paid persistent agent memory — ~2 sats/KB store, ~1 sat/KB get, list & delete free)
10
16
 
11
17
  Use these components to route Flowise agents toward registration, top-up, paid reasoning, marketplace purchases, Premium Spawn Kit conversion, referrals, seller withdrawals, and Sovereign Earner support workflows.
12
18
 
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "flowise-invinoveritas",
3
- "version": "0.2.0",
4
- "description": "Default-aggressive Bitcoin/Lightning-native invinoveritas Flowise components for reasoning, decisions, and growth/PNL attack planning.",
3
+ "version": "0.4.0",
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 <babyblueviperbusiness@gmail.com>",
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",
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.2.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),
@@ -30,6 +30,45 @@ export async function invinoDecision(config: InvinoConfig, goal: string, questio
30
30
  return post(config, '/decision', { goal, question, context });
31
31
  }
32
32
 
33
+ export async function invinoReview(
34
+ config: InvinoConfig,
35
+ artifact: string,
36
+ artifactType = 'general',
37
+ context = '',
38
+ severityThreshold: 'low' | 'medium' | 'high' = 'medium',
39
+ includeTradingState = false,
40
+ ) {
41
+ return post(config, '/review', {
42
+ artifact,
43
+ artifact_type: artifactType,
44
+ context,
45
+ severity_threshold: severityThreshold,
46
+ include_trading_state: includeTradingState,
47
+ });
48
+ }
49
+
50
+ export async function invinoResidenceAct(
51
+ config: InvinoConfig,
52
+ intent: string,
53
+ artifact = '',
54
+ artifactType = 'general',
55
+ requireReview = true,
56
+ remember = true,
57
+ maxSpendSats?: number,
58
+ ) {
59
+ const body: Record<string, unknown> = {
60
+ intent,
61
+ artifact_type: artifactType,
62
+ policy: {
63
+ require_review: requireReview,
64
+ remember,
65
+ max_spend_sats: maxSpendSats ?? null,
66
+ },
67
+ };
68
+ if (artifact) body.artifact = artifact;
69
+ return post(config, '/residence/act', body);
70
+ }
71
+
33
72
  export async function invinoGrowthAttackPlan(config: InvinoConfig, objective: string, context = '', budgetSats?: number) {
34
73
  return invinoDecision(
35
74
  config,
@@ -45,6 +84,44 @@ export async function invinoGrowthAttackPlan(config: InvinoConfig, objective: st
45
84
  );
46
85
  }
47
86
 
87
+ export async function invinoMemoryStore(config: InvinoConfig, agentId: string, key: string, value: string) {
88
+ return post(config, '/memory/store', { agent_id: agentId, key, value });
89
+ }
90
+
91
+ export async function invinoMemoryGet(config: InvinoConfig, agentId: string, key: string) {
92
+ return post(config, '/memory/get', { agent_id: agentId, key });
93
+ }
94
+
95
+ export async function invinoMemoryList(config: InvinoConfig, agentId: string) {
96
+ return post(config, '/memory/list', { agent_id: agentId });
97
+ }
98
+
99
+ export async function invinoMemoryDelete(config: InvinoConfig, agentId: string, key: string) {
100
+ return post(config, '/memory/delete', { agent_id: agentId, key });
101
+ }
102
+
103
+ export async function invinoSovereignExecute(
104
+ config: InvinoConfig,
105
+ thesis: string,
106
+ feeSats = 1000,
107
+ direction: 'auto' | 'long' | 'short' = 'auto',
108
+ leverage = 3,
109
+ durationHours = 2,
110
+ stopLossPct = 0.35,
111
+ takeProfitPct = 0.7,
112
+ ) {
113
+ return post(config, '/sovereign/execute', {
114
+ fee_sats: feeSats,
115
+ direction,
116
+ leverage,
117
+ duration_hours: durationHours,
118
+ stop_loss_pct: stopLossPct,
119
+ take_profit_pct: takeProfitPct,
120
+ thesis,
121
+ agent_id: 'flowise',
122
+ });
123
+ }
124
+
48
125
  export const nodes = [
49
126
  {
50
127
  label: 'invinoveritas Reason',
@@ -56,9 +133,44 @@ export const nodes = [
56
133
  name: 'invinoveritasDecision',
57
134
  description: 'Structured decisions with confidence and risk notes.',
58
135
  },
136
+ {
137
+ label: 'invinoveritas Review (front door)',
138
+ name: 'invinoveritasReview',
139
+ 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.',
140
+ },
141
+ {
142
+ label: 'invinoveritas Residence Act (governed bundle)',
143
+ name: 'invinoveritasResidenceAct',
144
+ description: 'One governed call — your home reasons + governs + remembers your intent. Deterministic house rules; priced below the sum of its parts.',
145
+ },
59
146
  {
60
147
  label: 'invinoveritas Growth + PNL Attack Plan',
61
148
  name: 'invinoveritasGrowthAttackPlan',
62
149
  description: 'Default-aggressive growth and revenue planning for agent workflows.',
63
150
  },
151
+ {
152
+ label: 'invinoveritas Sovereign Earner Execute',
153
+ name: 'invinoveritasSovereignExecute',
154
+ description: 'Pay sats to queue an aggressive, risk-bounded Sovereign Earner directive.',
155
+ },
156
+ {
157
+ label: 'invinoveritas Memory Store',
158
+ name: 'invinoveritasMemoryStore',
159
+ description: 'Persist key/value agent context across sessions. ~2 sats/KB (min 50), 200 KB max per entry.',
160
+ },
161
+ {
162
+ label: 'invinoveritas Memory Get',
163
+ name: 'invinoveritasMemoryGet',
164
+ description: 'Retrieve a stored memory entry by key. ~1 sat/KB (min 20).',
165
+ },
166
+ {
167
+ label: 'invinoveritas Memory List',
168
+ name: 'invinoveritasMemoryList',
169
+ description: 'List all memory keys stored for this agent. Free.',
170
+ },
171
+ {
172
+ label: 'invinoveritas Memory Delete',
173
+ name: 'invinoveritasMemoryDelete',
174
+ description: 'Delete a stored memory entry by key. Free.',
175
+ },
64
176
  ];