briefcase-wasm 2.0.4 → 2.1.4
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 +5 -4
- package/briefcase_wasm.d.ts +29 -0
- package/briefcase_wasm.js +29 -0
- package/briefcase_wasm_bg.wasm +0 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -226,13 +226,14 @@ This package is part of the [Briefcase AI Core](https://github.com/briefcasebrai
|
|
|
226
226
|
|
|
227
227
|
## Support
|
|
228
228
|
|
|
229
|
-
- **
|
|
230
|
-
- **Documentation**: [
|
|
231
|
-
- **
|
|
229
|
+
- **Homepage**: [briefcasebrain.com](https://briefcasebrain.com)
|
|
230
|
+
- **Documentation**: [docs.briefcasebrain.com](https://docs.briefcasebrain.com)
|
|
231
|
+
- **Contact**: support@briefcasebrain.com
|
|
232
|
+
- **Commercial Support**: Available for enterprise customers
|
|
232
233
|
|
|
233
234
|
## License
|
|
234
235
|
|
|
235
|
-
|
|
236
|
+
GPL-3.0 License - see [LICENSE](https://github.com/briefcasebrain/briefcase-ai-core/blob/main/LICENSE) file for details.
|
|
236
237
|
|
|
237
238
|
## Related Packages
|
|
238
239
|
|
package/briefcase_wasm.d.ts
CHANGED
|
@@ -3,6 +3,23 @@
|
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* JavaScript-friendly wrapper for DecisionSnapshot
|
|
6
|
+
*
|
|
7
|
+
* Represents a snapshot of an AI decision with inputs, outputs, and metadata.
|
|
8
|
+
* This is the main data structure for tracking AI decisions in JavaScript/TypeScript.
|
|
9
|
+
*
|
|
10
|
+
* # Examples
|
|
11
|
+
*
|
|
12
|
+
* ```javascript
|
|
13
|
+
* import { JsDecisionSnapshot, JsInput, JsOutput } from 'briefcase-wasm';
|
|
14
|
+
*
|
|
15
|
+
* const decision = new JsDecisionSnapshot("my_ai_function");
|
|
16
|
+
* const input = new JsInput("user_query", "Hello", "string");
|
|
17
|
+
* const output = new JsOutput("ai_response", "Hi there!", "string");
|
|
18
|
+
*
|
|
19
|
+
* decision.add_input(input);
|
|
20
|
+
* decision.add_output(output);
|
|
21
|
+
* decision.set_execution_time(123.5);
|
|
22
|
+
* ```
|
|
6
23
|
*/
|
|
7
24
|
export class JsDecisionSnapshot {
|
|
8
25
|
free(): void;
|
|
@@ -29,6 +46,18 @@ export class JsMemoryStorage {
|
|
|
29
46
|
|
|
30
47
|
/**
|
|
31
48
|
* Initialize the Briefcase AI WASM module
|
|
49
|
+
*
|
|
50
|
+
* This function sets up panic hooks for better error reporting in WebAssembly environments.
|
|
51
|
+
* Call this function once at the start of your application.
|
|
52
|
+
*
|
|
53
|
+
* # Examples
|
|
54
|
+
*
|
|
55
|
+
* ```javascript
|
|
56
|
+
* import { init } from 'briefcase-wasm';
|
|
57
|
+
*
|
|
58
|
+
* await init();
|
|
59
|
+
* console.log('Briefcase AI ready!');
|
|
60
|
+
* ```
|
|
32
61
|
*/
|
|
33
62
|
export function init(): void;
|
|
34
63
|
|
package/briefcase_wasm.js
CHANGED
|
@@ -2,6 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* JavaScript-friendly wrapper for DecisionSnapshot
|
|
5
|
+
*
|
|
6
|
+
* Represents a snapshot of an AI decision with inputs, outputs, and metadata.
|
|
7
|
+
* This is the main data structure for tracking AI decisions in JavaScript/TypeScript.
|
|
8
|
+
*
|
|
9
|
+
* # Examples
|
|
10
|
+
*
|
|
11
|
+
* ```javascript
|
|
12
|
+
* import { JsDecisionSnapshot, JsInput, JsOutput } from 'briefcase-wasm';
|
|
13
|
+
*
|
|
14
|
+
* const decision = new JsDecisionSnapshot("my_ai_function");
|
|
15
|
+
* const input = new JsInput("user_query", "Hello", "string");
|
|
16
|
+
* const output = new JsOutput("ai_response", "Hi there!", "string");
|
|
17
|
+
*
|
|
18
|
+
* decision.add_input(input);
|
|
19
|
+
* decision.add_output(output);
|
|
20
|
+
* decision.set_execution_time(123.5);
|
|
21
|
+
* ```
|
|
5
22
|
*/
|
|
6
23
|
export class JsDecisionSnapshot {
|
|
7
24
|
static __wrap(ptr) {
|
|
@@ -168,6 +185,18 @@ if (Symbol.dispose) JsMemoryStorage.prototype[Symbol.dispose] = JsMemoryStorage.
|
|
|
168
185
|
|
|
169
186
|
/**
|
|
170
187
|
* Initialize the Briefcase AI WASM module
|
|
188
|
+
*
|
|
189
|
+
* This function sets up panic hooks for better error reporting in WebAssembly environments.
|
|
190
|
+
* Call this function once at the start of your application.
|
|
191
|
+
*
|
|
192
|
+
* # Examples
|
|
193
|
+
*
|
|
194
|
+
* ```javascript
|
|
195
|
+
* import { init } from 'briefcase-wasm';
|
|
196
|
+
*
|
|
197
|
+
* await init();
|
|
198
|
+
* console.log('Briefcase AI ready!');
|
|
199
|
+
* ```
|
|
171
200
|
*/
|
|
172
201
|
export function init() {
|
|
173
202
|
wasm.init();
|
package/briefcase_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
"Briefcase AI Team"
|
|
6
6
|
],
|
|
7
7
|
"description": "WebAssembly bindings for Briefcase AI",
|
|
8
|
-
"version": "2.
|
|
9
|
-
"license": "
|
|
8
|
+
"version": "2.1.4",
|
|
9
|
+
"license": "GPL-3.0",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "https://github.com/briefcasebrain/briefcase-ai-core"
|