auxiora 1.3.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 (91) hide show
  1. package/LICENSE +191 -0
  2. package/README.md +37 -0
  3. package/dist/commands/ambient.d.ts +3 -0
  4. package/dist/commands/ambient.d.ts.map +1 -0
  5. package/dist/commands/ambient.js +86 -0
  6. package/dist/commands/ambient.js.map +1 -0
  7. package/dist/commands/audit.d.ts +3 -0
  8. package/dist/commands/audit.d.ts.map +1 -0
  9. package/dist/commands/audit.js +57 -0
  10. package/dist/commands/audit.js.map +1 -0
  11. package/dist/commands/auth.d.ts +3 -0
  12. package/dist/commands/auth.d.ts.map +1 -0
  13. package/dist/commands/auth.js +130 -0
  14. package/dist/commands/auth.js.map +1 -0
  15. package/dist/commands/cloud.d.ts +3 -0
  16. package/dist/commands/cloud.d.ts.map +1 -0
  17. package/dist/commands/cloud.js +102 -0
  18. package/dist/commands/cloud.js.map +1 -0
  19. package/dist/commands/connect.d.ts +3 -0
  20. package/dist/commands/connect.d.ts.map +1 -0
  21. package/dist/commands/connect.js +103 -0
  22. package/dist/commands/connect.js.map +1 -0
  23. package/dist/commands/daemon.d.ts +3 -0
  24. package/dist/commands/daemon.d.ts.map +1 -0
  25. package/dist/commands/daemon.js +190 -0
  26. package/dist/commands/daemon.js.map +1 -0
  27. package/dist/commands/desktop.d.ts +3 -0
  28. package/dist/commands/desktop.d.ts.map +1 -0
  29. package/dist/commands/desktop.js +111 -0
  30. package/dist/commands/desktop.js.map +1 -0
  31. package/dist/commands/doctor.d.ts +12 -0
  32. package/dist/commands/doctor.d.ts.map +1 -0
  33. package/dist/commands/doctor.js +531 -0
  34. package/dist/commands/doctor.js.map +1 -0
  35. package/dist/commands/init.d.ts +3 -0
  36. package/dist/commands/init.d.ts.map +1 -0
  37. package/dist/commands/init.js +89 -0
  38. package/dist/commands/init.js.map +1 -0
  39. package/dist/commands/memory.d.ts +3 -0
  40. package/dist/commands/memory.d.ts.map +1 -0
  41. package/dist/commands/memory.js +194 -0
  42. package/dist/commands/memory.js.map +1 -0
  43. package/dist/commands/models.d.ts +3 -0
  44. package/dist/commands/models.d.ts.map +1 -0
  45. package/dist/commands/models.js +157 -0
  46. package/dist/commands/models.js.map +1 -0
  47. package/dist/commands/orchestration.d.ts +3 -0
  48. package/dist/commands/orchestration.d.ts.map +1 -0
  49. package/dist/commands/orchestration.js +50 -0
  50. package/dist/commands/orchestration.js.map +1 -0
  51. package/dist/commands/paths.d.ts +3 -0
  52. package/dist/commands/paths.d.ts.map +1 -0
  53. package/dist/commands/paths.js +27 -0
  54. package/dist/commands/paths.js.map +1 -0
  55. package/dist/commands/personality.d.ts +3 -0
  56. package/dist/commands/personality.d.ts.map +1 -0
  57. package/dist/commands/personality.js +315 -0
  58. package/dist/commands/personality.js.map +1 -0
  59. package/dist/commands/plugin.d.ts +3 -0
  60. package/dist/commands/plugin.d.ts.map +1 -0
  61. package/dist/commands/plugin.js +198 -0
  62. package/dist/commands/plugin.js.map +1 -0
  63. package/dist/commands/start.d.ts +3 -0
  64. package/dist/commands/start.d.ts.map +1 -0
  65. package/dist/commands/start.js +71 -0
  66. package/dist/commands/start.js.map +1 -0
  67. package/dist/commands/team.d.ts +3 -0
  68. package/dist/commands/team.d.ts.map +1 -0
  69. package/dist/commands/team.js +90 -0
  70. package/dist/commands/team.js.map +1 -0
  71. package/dist/commands/trust.d.ts +3 -0
  72. package/dist/commands/trust.d.ts.map +1 -0
  73. package/dist/commands/trust.js +107 -0
  74. package/dist/commands/trust.js.map +1 -0
  75. package/dist/commands/vault.d.ts +3 -0
  76. package/dist/commands/vault.d.ts.map +1 -0
  77. package/dist/commands/vault.js +295 -0
  78. package/dist/commands/vault.js.map +1 -0
  79. package/dist/commands/workflow.d.ts +3 -0
  80. package/dist/commands/workflow.d.ts.map +1 -0
  81. package/dist/commands/workflow.js +116 -0
  82. package/dist/commands/workflow.js.map +1 -0
  83. package/dist/index.d.ts +3 -0
  84. package/dist/index.d.ts.map +1 -0
  85. package/dist/index.js +62 -0
  86. package/dist/index.js.map +1 -0
  87. package/dist/process-guard.d.ts +7 -0
  88. package/dist/process-guard.d.ts.map +1 -0
  89. package/dist/process-guard.js +114 -0
  90. package/dist/process-guard.js.map +1 -0
  91. package/package.json +77 -0
package/LICENSE ADDED
@@ -0,0 +1,191 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to the Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by the Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding any notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ Copyright 2026 Auxiora Contributors
180
+
181
+ Licensed under the Apache License, Version 2.0 (the "License");
182
+ you may not use this file except in compliance with the License.
183
+ You may obtain a copy of the License at
184
+
185
+ http://www.apache.org/licenses/LICENSE-2.0
186
+
187
+ Unless required by applicable law or agreed to in writing, software
188
+ distributed under the License is distributed on an "AS IS" BASIS,
189
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
190
+ See the License for the specific language governing permissions and
191
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # Auxiora
2
+
3
+ Security-first self-hosted AI assistant. Encrypted credential vault, multi-provider LLM support, plugin system, and a web dashboard — all running on your own machine.
4
+
5
+ ## Quick start
6
+
7
+ ```bash
8
+ npx auxiora start
9
+ ```
10
+
11
+ Or install globally:
12
+
13
+ ```bash
14
+ npm install -g auxiora
15
+ auxiora start
16
+ ```
17
+
18
+ ## Requirements
19
+
20
+ - **Node.js >= 22** (uses built-in SQLite and other modern Node APIs)
21
+
22
+ ## What you get
23
+
24
+ - **Encrypted vault** — API keys and secrets stored with Argon2 + AES-256
25
+ - **Multi-provider** — OpenAI, Anthropic, Google, Ollama, and more
26
+ - **Web dashboard** — manage conversations, providers, and settings from your browser
27
+ - **Plugin system** — extend with custom tools, connectors, and behaviors
28
+ - **Personality engine** — configurable response style with The Architect system
29
+ - **Privacy** — everything stays on your machine, no telemetry
30
+
31
+ ## Documentation
32
+
33
+ Visit [auxiora.dev](https://auxiora.dev) for full documentation.
34
+
35
+ ## License
36
+
37
+ MIT
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function createAmbientCommand(): Command;
3
+ //# sourceMappingURL=ambient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ambient.d.ts","sourceRoot":"","sources":["../../src/commands/ambient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,wBAAgB,oBAAoB,IAAI,OAAO,CAiG9C"}
@@ -0,0 +1,86 @@
1
+ import { Command } from 'commander';
2
+ export function createAmbientCommand() {
3
+ const ambientCmd = new Command('ambient').description('Ambient intelligence — patterns, briefings, notifications');
4
+ ambientCmd
5
+ .command('status')
6
+ .description('Show ambient intelligence status')
7
+ .action(async () => {
8
+ const { AmbientPatternEngine } = await import('@auxiora/ambient');
9
+ const { QuietNotificationManager } = await import('@auxiora/ambient');
10
+ const engine = new AmbientPatternEngine();
11
+ const notifications = new QuietNotificationManager();
12
+ console.log('Ambient Intelligence Status:');
13
+ console.log(` Observed events: ${engine.getEventCount()}`);
14
+ console.log(` Detected patterns: ${engine.getPatterns().length}`);
15
+ console.log(` Pending notifications: ${notifications.getPendingCount()}`);
16
+ });
17
+ ambientCmd
18
+ .command('briefing')
19
+ .description('Generate a personalized briefing')
20
+ .option('-t, --time <time>', 'Time of day (morning/evening)', 'morning')
21
+ .action(async (opts) => {
22
+ const { BriefingGenerator } = await import('@auxiora/ambient');
23
+ const generator = new BriefingGenerator();
24
+ const time = opts.time === 'evening' ? 'evening' : 'morning';
25
+ const briefing = generator.generateBriefing('cli-user', time, {});
26
+ console.log(`\n${time.charAt(0).toUpperCase() + time.slice(1)} Briefing`);
27
+ console.log('='.repeat(40));
28
+ if (briefing.sections.length === 0) {
29
+ console.log('No items for your briefing yet.');
30
+ console.log('As you use Auxiora, patterns and data will be collected.');
31
+ }
32
+ else {
33
+ for (const section of briefing.sections) {
34
+ console.log(`\n## ${section.title}`);
35
+ for (const item of section.items) {
36
+ console.log(` - ${item}`);
37
+ }
38
+ }
39
+ }
40
+ console.log('');
41
+ });
42
+ ambientCmd
43
+ .command('patterns')
44
+ .description('Show detected behavioral patterns')
45
+ .option('-l, --limit <n>', 'Max patterns to show', '10')
46
+ .action(async (opts) => {
47
+ const { AmbientPatternEngine } = await import('@auxiora/ambient');
48
+ const engine = new AmbientPatternEngine();
49
+ const patterns = engine.getPatterns();
50
+ const limit = parseInt(opts.limit, 10) || 10;
51
+ const shown = patterns.slice(0, limit);
52
+ if (shown.length === 0) {
53
+ console.log('No patterns detected yet.');
54
+ console.log('Patterns emerge as Auxiora observes your usage over time.');
55
+ return;
56
+ }
57
+ console.log('Detected Patterns:');
58
+ for (const pattern of shown) {
59
+ const confidence = Math.round(pattern.confidence * 100);
60
+ console.log(` [${pattern.type}] ${pattern.description} (${confidence}% confidence)`);
61
+ console.log(` Occurrences: ${pattern.occurrences} | Last: ${new Date(pattern.lastConfirmedAt).toISOString()}`);
62
+ }
63
+ });
64
+ ambientCmd
65
+ .command('notifications')
66
+ .description('Show quiet notifications')
67
+ .action(async () => {
68
+ const { QuietNotificationManager } = await import('@auxiora/ambient');
69
+ const manager = new QuietNotificationManager();
70
+ const queue = manager.getQueue();
71
+ if (queue.length === 0) {
72
+ console.log('No notifications.');
73
+ return;
74
+ }
75
+ console.log('Notifications:');
76
+ for (const n of queue) {
77
+ const date = new Date(n.createdAt).toLocaleTimeString();
78
+ console.log(` [${n.priority}] ${n.message} (${date})`);
79
+ if (n.detail) {
80
+ console.log(` ${n.detail}`);
81
+ }
82
+ }
83
+ });
84
+ return ambientCmd;
85
+ }
86
+ //# sourceMappingURL=ambient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ambient.js","sourceRoot":"","sources":["../../src/commands/ambient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,UAAU,oBAAoB;IAClC,MAAM,UAAU,GAAG,IAAI,OAAO,CAAC,SAAS,CAAC,CAAC,WAAW,CACnD,2DAA2D,CAC5D,CAAC;IAEF,UAAU;SACP,OAAO,CAAC,QAAQ,CAAC;SACjB,WAAW,CAAC,kCAAkC,CAAC;SAC/C,MAAM,CAAC,KAAK,IAAI,EAAE;QACjB,MAAM,EAAE,oBAAoB,EAAE,GAAG,MAAM,MAAM,CAAC,kBAAkB,CAAC,CAAC;QAClE,MAAM,EAAE,wBAAwB,EAAE,GAAG,MAAM,MAAM,CAAC,kBAAkB,CAAC,CAAC;QACtE,MAAM,MAAM,GAAG,IAAI,oBAAoB,EAAE,CAAC;QAC1C,MAAM,aAAa,GAAG,IAAI,wBAAwB,EAAE,CAAC;QAErD,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,CAAC;QAC5C,OAAO,CAAC,GAAG,CAAC,sBAAsB,MAAM,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;QAC5D,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it.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../src/commands/audit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAiBpC,wBAAgB,kBAAkB,IAAI,OAAO,CAmD5C"}
@@ -0,0 +1,57 @@
1
+ import { Command } from 'commander';
2
+ import { AuditLogger } from '@auxiora/audit';
3
+ function formatEntry(entry) {
4
+ const date = new Date(entry.timestamp);
5
+ const time = date.toLocaleTimeString();
6
+ const dateStr = date.toLocaleDateString();
7
+ let details = '';
8
+ const detailKeys = Object.keys(entry.details);
9
+ if (detailKeys.length > 0) {
10
+ details = ' ' + JSON.stringify(entry.details);
11
+ }
12
+ return `[${dateStr} ${time}] ${entry.event}${details}`;
13
+ }
14
+ export function createAuditCommand() {
15
+ const auditCmd = new Command('audit').description('View and verify audit logs');
16
+ auditCmd
17
+ .command('list')
18
+ .description('List recent audit log entries')
19
+ .option('-n, --limit <number>', 'Number of entries to show', '20')
20
+ .action(async (options) => {
21
+ const logger = new AuditLogger();
22
+ const limit = parseInt(options.limit, 10);
23
+ const entries = await logger.getEntries(limit);
24
+ if (entries.length === 0) {
25
+ console.log('No audit log entries');
26
+ return;
27
+ }
28
+ console.log(`Last ${entries.length} audit log entries:\n`);
29
+ for (const entry of entries) {
30
+ console.log(formatEntry(entry));
31
+ }
32
+ });
33
+ auditCmd
34
+ .command('verify')
35
+ .description('Verify audit log chain integrity')
36
+ .action(async () => {
37
+ console.log('Verifying audit log integrity...\n');
38
+ const logger = new AuditLogger();
39
+ const result = await logger.verify();
40
+ if (result.entries === 0) {
41
+ console.log('No audit log entries to verify');
42
+ return;
43
+ }
44
+ if (result.valid) {
45
+ console.log(`\x1b[32m✓ Chain intact\x1b[0m`);
46
+ console.log(` ${result.entries} entries verified`);
47
+ }
48
+ else {
49
+ console.log(`\x1b[31m✗ Chain broken at entry ${result.brokenAt}\x1b[0m`);
50
+ console.log(` ${result.entries} total entries`);
51
+ console.log('\nThe audit log may have been tampered with or corrupted.');
52
+ process.exit(1);
53
+ }
54
+ });
55
+ return auditCmd;
56
+ }
57
+ //# sourceMappingURL=audit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audit.js","sourceRoot":"","sources":["../../src/commands/audit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAmB,MAAM,gBAAgB,CAAC;AAE9D,SAAS,WAAW,CAAC,KAAiB;IACpC,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IACvC,MAAM,IAAI,GAAG,IAAI,CAAC,kBAAkB,EAAE,CAAC;IACvC,MAAM,OAAO,GAAG,IAAI,CAAC,kBAAkB,EAAE,CAAC;IAE1C,IAAI,OAAO,GAAG,EAAE,CAAC;IACjB,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC9C,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC1B,OAAO,GAAG,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAChD,CAAC;IAED,OAAO,IAAI,OAAO,IAAI,IAAI,KAAK,KAAK,CAAC,KAAK,GAAG,OAAO,EAAE,CAAC;AACzD,CAAC;AAED,MAAM,UAAU,kBAAkB;IAChC,MAAM,QAAQ,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,4BAA4B,CAAC,CAAC;IAEhF,QAAQ;SACL,OAAO,CAAC,MAAM,CAAC;SACf,WAAW,CAAC,+BAA+B,CAAC;SAC5C,MAAM,CAAC,sBAAsB,EAAE,2BAA2B,EAAE,IAAI,CAAC;SACjE,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;QACxB,MAAM,MAAM,GAAG,IAAI,WAAW,EAA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AAO,gBAAgB,CAAC,CAAC;YACjD,OAAO,CAAC,GAAG,CACT,2DAA2D,CAC5D,CAAC;YACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;IACH,CAAC,CAAC,CAAC;IAEL,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function createAuthCommand(): Command;
3
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/commands/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQpC,wBAAgB,iBAAiB,IAAI,OAAO,CAwJ3C"}
@@ -0,0 +1,130 @@
1
+ import { Command } from 'commander';
2
+ import { password as passwordPrompt } from '@inquirer/prompts';
3
+ import * as argon2 from 'argon2';
4
+ import jwt from 'jsonwebtoken';
5
+ import * as crypto from 'node:crypto';
6
+ import { loadConfig, saveConfig } from '@auxiora/config';
7
+ import { audit } from '@auxiora/audit';
8
+ export function createAuthCommand() {
9
+ const authCmd = new Command('auth').description('Manage gateway authentication');
10
+ authCmd
11
+ .command('set-password')
12
+ .description('Set the gateway password for webchat authentication')
13
+ .action(async () => {
14
+ const config = await loadConfig();
15
+ const password = await passwordPrompt({
16
+ message: 'Enter new gateway password:',
17
+ });
18
+ const confirmPassword = await passwordPrompt({
19
+ message: 'Confirm gateway password:',
20
+ });
21
+ if (password !== confirmPassword) {
22
+ console.error('Passwords do not match');
23
+ process.exit(1);
24
+ }
25
+ if (password.length < 8) {
26
+ console.error('Password must be at least 8 characters');
27
+ process.exit(1);
28
+ }
29
+ // Hash the password with Argon2id
30
+ const hash = await argon2.hash(password, {
31
+ type: argon2.argon2id,
32
+ memoryCost: 65536, // 64 MB
33
+ timeCost: 3,
34
+ parallelism: 1,
35
+ });
36
+ config.auth.mode = 'password';
37
+ config.auth.passwordHash = hash;
38
+ await saveConfig(config);
39
+ await audit('auth.password_set', {});
40
+ console.log('Gateway password set successfully');
41
+ console.log('Authentication mode set to: password');
42
+ });
43
+ authCmd
44
+ .command('setup-jwt')
45
+ .description('Configure JWT authentication for the gateway')
46
+ .option('-s, --secret <secret>', 'JWT secret (min 32 chars, auto-generated if not provided)')
47
+ .action(async (options) => {
48
+ const config = await loadConfig();
49
+ let secret = options.secret;
50
+ if (!secret) {
51
+ // Generate a secure random secret
52
+ secret = crypto.randomBytes(32).toString('base64url');
53
+ console.log('Generated JWT secret (save this securely):');
54
+ console.log(` ${secret}\n`);
55
+ }
56
+ else if (secret.length < 32) {
57
+ console.error('JWT secret must be at least 32 characters');
58
+ process.exit(1);
59
+ }
60
+ config.auth.mode = 'jwt';
61
+ config.auth.jwtSecret = secret;
62
+ await saveConfig(config);
63
+ await audit('auth.jwt_configured', {});
64
+ console.log('JWT authentication configured successfully');
65
+ console.log('Authentication mode set to: jwt');
66
+ console.log('\nGenerate tokens with: auxiora auth generate-token');
67
+ });
68
+ authCmd
69
+ .command('generate-token')
70
+ .description('Generate a JWT token for authentication')
71
+ .option('-s, --subject <subject>', 'Token subject/user identifier', 'user')
72
+ .option('-e, --expires <duration>', 'Token expiration (e.g., 7d, 24h)', '7d')
73
+ .action(async (options) => {
74
+ const config = await loadConfig();
75
+ if (config.auth.mode !== 'jwt') {
76
+ console.error('JWT mode not configured. Run: auxiora auth setup-jwt');
77
+ process.exit(1);
78
+ }
79
+ if (!config.auth.jwtSecret) {
80
+ console.error('JWT secret not set. Run: auxiora auth setup-jwt');
81
+ process.exit(1);
82
+ }
83
+ const token = jwt.sign({ sub: options.subject }, config.auth.jwtSecret, { expiresIn: options.expires });
84
+ await audit('auth.token_generated', { subject: options.subject });
85
+ console.log('Generated JWT token:\n');
86
+ console.log(token);
87
+ console.log(`\nSubject: ${options.subject}`);
88
+ console.log(`Expires: ${options.expires}`);
89
+ });
90
+ authCmd
91
+ .command('disable')
92
+ .description('Disable authentication (allow anonymous access)')
93
+ .action(async () => {
94
+ const config = await loadConfig();
95
+ config.auth.mode = 'none';
96
+ await saveConfig(config);
97
+ await audit('auth.disabled', {});
98
+ console.log('Authentication disabled');
99
+ console.log('Warning: Anyone can access the gateway without authentication');
100
+ });
101
+ authCmd
102
+ .command('status')
103
+ .description('Show current authentication configuration')
104
+ .action(async () => {
105
+ const config = await loadConfig();
106
+ console.log('\nAuthentication Status\n');
107
+ console.log(`Mode: ${config.auth.mode}`);
108
+ switch (config.auth.mode) {
109
+ case 'none':
110
+ console.log('Status: No authentication required (open access)');
111
+ break;
112
+ case 'password':
113
+ console.log(`Status: Password authentication ${config.auth.passwordHash ? 'configured' : 'NOT configured'}`);
114
+ if (!config.auth.passwordHash) {
115
+ console.log('\nRun: auxiora auth set-password');
116
+ }
117
+ break;
118
+ case 'jwt':
119
+ console.log(`Status: JWT authentication ${config.auth.jwtSecret ? 'configured' : 'NOT configured'}`);
120
+ console.log(`Token expiry: ${config.auth.jwtExpiresIn}`);
121
+ if (!config.auth.jwtSecret) {
122
+ console.log('\nRun: auxiora auth setup-jwt');
123
+ }
124
+ break;
125
+ }
126
+ console.log('');
127
+ });
128
+ return authCmd;
129
+ }
130
+ //# sourceMappingURL=auth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../src/commands/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,GAAG,MAAM,cAAc,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,MAAM,UAAU,iBAAiB;IAC/B,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G,CAAC,iBAAiB,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC;gBACzD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;oBAC3B,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC;gBAC/C,CAAC;gBACD,MAAM;QACV,CAAC;QACD,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;IAEL,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function createCloudCommand(): Command;
3
+ //# sourceMappingURL=cloud.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloud.d.ts","sourceRoot":"","sources":["../../src/commands/cloud.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAsBpC,wBAAgB,kBAAkB,IAAI,OAAO,CA8F5C"}