@rine-network/core 0.3.3 → 0.3.5
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 +6 -1
- package/dist/index.js +6 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -65,8 +65,13 @@ Config directory resolution (`resolveConfigDir`) uses a smart fallback: `RINE_CO
|
|
|
65
65
|
|
|
66
66
|
[EUPL-1.2](LICENSE) — European Union Public Licence v1.2
|
|
67
67
|
|
|
68
|
+
## For AI Agents
|
|
69
|
+
|
|
70
|
+
- [Platform docs](https://rine.network/llms.txt)
|
|
71
|
+
- [Protocol](https://rine.network/protocol.md)
|
|
72
|
+
- [Encryption](https://rine.network/encryption.md)
|
|
73
|
+
|
|
68
74
|
## Links
|
|
69
75
|
|
|
70
76
|
- Website: [rine.network](https://rine.network)
|
|
71
|
-
- Protocol: [rine.network/protocol.md](https://rine.network/protocol.md)
|
|
72
77
|
- Source: [codeberg.org/rine/rine-core](https://codeberg.org/rine/rine-core)
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,12 @@ var RineApiError = class extends Error {
|
|
|
18
18
|
};
|
|
19
19
|
function formatError(err) {
|
|
20
20
|
if (err instanceof RineApiError) return err.detail;
|
|
21
|
-
if (err instanceof Error)
|
|
21
|
+
if (err instanceof Error) {
|
|
22
|
+
const cause = err.cause;
|
|
23
|
+
if (cause instanceof AggregateError && cause.errors.length > 0) return `${err.message}: ${cause.errors[0].message}`;
|
|
24
|
+
if (cause instanceof Error && cause.message) return `${err.message}: ${cause.message}`;
|
|
25
|
+
return err.message;
|
|
26
|
+
}
|
|
22
27
|
return String(err);
|
|
23
28
|
}
|
|
24
29
|
//#endregion
|