@anuma/sdk 1.0.0 → 1.1.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 +54 -53
- package/dist/api/spec.cjs +30 -0
- package/dist/api/spec.d.mts +3 -0
- package/dist/api/spec.d.ts +3 -0
- package/dist/api/spec.mjs +12 -0
- package/dist/chunk-4ETHWSXJ.mjs +25 -0
- package/dist/client/index.cjs +2344 -0
- package/dist/client/index.d.mts +10368 -0
- package/dist/client/index.d.ts +10368 -0
- package/dist/client/index.mjs +2168 -0
- package/dist/clientConfig-WITO4T6L.mjs +12 -0
- package/dist/constants/index.cjs +30 -0
- package/dist/constants/index.d.mts +20 -0
- package/dist/constants/index.d.ts +20 -0
- package/dist/constants/index.mjs +5 -0
- package/dist/design/index.cjs +1523 -0
- package/dist/design/index.d.mts +561 -0
- package/dist/design/index.d.ts +561 -0
- package/dist/design/index.mjs +1468 -0
- package/dist/expo/chunk-DFVCS3QQ.mjs +246 -0
- package/dist/{react/chunk-MJJIYFAX.mjs → expo/chunk-GYKJOWEO.mjs} +13 -1
- package/dist/expo/chunk-PUKP5H4F.mjs +5278 -0
- package/dist/expo/chunk-Y7XT2VNQ.mjs +646 -0
- package/dist/expo/clientConfig-VPOGQRNP.mjs +12 -0
- package/dist/expo/consolidate-HEMQGOUD.mjs +131 -0
- package/dist/expo/index.cjs +16784 -6689
- package/dist/expo/index.d.mts +5746 -1474
- package/dist/expo/index.d.ts +5746 -1474
- package/dist/expo/index.mjs +9669 -6189
- package/dist/expo/recall-YRWAAU6K.mjs +8 -0
- package/dist/index.cjs +2992 -42
- package/dist/index.d.mts +7719 -1835
- package/dist/index.d.ts +7719 -1835
- package/dist/index.mjs +2859 -39
- package/dist/next/index.cjs +6 -2
- package/dist/next/index.d.mts +24 -1
- package/dist/next/index.d.ts +24 -1
- package/dist/next/index.mjs +6 -2
- package/dist/pii/transformers.cjs +126 -0
- package/dist/pii/transformers.d.mts +103 -0
- package/dist/pii/transformers.d.ts +103 -0
- package/dist/pii/transformers.mjs +90 -0
- package/dist/react/chunk-DFVCS3QQ.mjs +246 -0
- package/dist/{expo/chunk-MJJIYFAX.mjs → react/chunk-GYKJOWEO.mjs} +13 -1
- package/dist/react/chunk-Q2ANFWEP.mjs +5596 -0
- package/dist/react/chunk-TP6CJZ25.mjs +645 -0
- package/dist/react/clientConfig-VPOGQRNP.mjs +12 -0
- package/dist/react/consolidate-IJH7LD2T.mjs +131 -0
- package/dist/react/index.cjs +25453 -11029
- package/dist/react/index.d.mts +7388 -1406
- package/dist/react/index.d.ts +7388 -1406
- package/dist/react/index.mjs +16101 -8648
- package/dist/react/recall-YBC7YCNC.mjs +8 -0
- package/dist/server/chunk-FMGZTVXQ.mjs +62 -0
- package/dist/server/chunk-HPURS22B.mjs +19452 -0
- package/dist/server/chunk-PXN5Q3MD.mjs +643 -0
- package/dist/server/chunk-RCCKRTBI.mjs +230 -0
- package/dist/server/clientConfig-GMADOBPK.mjs +12 -0
- package/dist/server/consolidate-A2ZIX5WF.mjs +131 -0
- package/dist/server/index.cjs +32109 -0
- package/dist/server/index.d.mts +7310 -0
- package/dist/server/index.d.ts +7310 -0
- package/dist/server/index.mjs +11168 -0
- package/dist/server/recall-PFYFVYMS.mjs +8 -0
- package/dist/tools/index.cjs +12682 -34
- package/dist/tools/index.d.mts +2733 -18
- package/dist/tools/index.d.ts +2733 -18
- package/dist/tools/index.mjs +12565 -33
- package/dist/utils/index.cjs +165 -0
- package/dist/utils/index.d.mts +14 -0
- package/dist/utils/index.d.ts +14 -0
- package/dist/utils/index.mjs +145 -0
- package/dist/vercel/index.d.mts +0 -3
- package/dist/vercel/index.d.ts +0 -3
- package/package.json +127 -16
- package/dist/expo/chunk-LJYAMK62.mjs +0 -25
- package/dist/expo/chunk-PJCZO4BQ.mjs +0 -25
- package/dist/expo/clientConfig-2MI4KULF.mjs +0 -10
- package/dist/expo/clientConfig-QDAXFL3W.mjs +0 -10
- package/dist/expo/clientConfig-R4IOW7I2.mjs +0 -10
- package/dist/react/chunk-LJYAMK62.mjs +0 -25
- package/dist/react/chunk-PJCZO4BQ.mjs +0 -25
- package/dist/react/clientConfig-2MI4KULF.mjs +0 -10
- package/dist/react/clientConfig-QDAXFL3W.mjs +0 -10
- package/dist/react/clientConfig-R4IOW7I2.mjs +0 -10
- package/dist/tools/chunk-KDFGY4SK.mjs +0 -13
- package/dist/tools/clientConfig-RMDOT5YM.mjs +0 -10
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/constants/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
MULTILINE_FIELD_MAX: () => MULTILINE_FIELD_MAX
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(index_exports);
|
|
26
|
+
var MULTILINE_FIELD_MAX = 5e4;
|
|
27
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
28
|
+
0 && (module.exports = {
|
|
29
|
+
MULTILINE_FIELD_MAX
|
|
30
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cross-platform primitive constants.
|
|
3
|
+
*
|
|
4
|
+
* This module is intentionally dependency-free and side-effect-free so it can
|
|
5
|
+
* be loaded by *any* consumer — including React Native / Hermes — without
|
|
6
|
+
* pulling in the rest of the SDK. It is published as the `@anuma/sdk/constants`
|
|
7
|
+
* subpath (which carries a `react-native` export condition); slim consumers
|
|
8
|
+
* such as the agent packages import values from here instead of the bare
|
|
9
|
+
* `@anuma/sdk` entry, whose Node/web bundle is not RN-safe.
|
|
10
|
+
*
|
|
11
|
+
* Only add genuinely pure, cross-platform constants here (numeric/string
|
|
12
|
+
* literals, default IDs, size caps). No classes, no runtime APIs, no imports.
|
|
13
|
+
*/
|
|
14
|
+
/** Character cap for multiline / textarea fields. Agent gateways (e.g. cf-tasks)
|
|
15
|
+
* truncate values to this length before interpolating them into prompt templates.
|
|
16
|
+
* Shared across all agent packages so a single change updates every journey
|
|
17
|
+
* declaration simultaneously. */
|
|
18
|
+
declare const MULTILINE_FIELD_MAX = 50000;
|
|
19
|
+
|
|
20
|
+
export { MULTILINE_FIELD_MAX };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cross-platform primitive constants.
|
|
3
|
+
*
|
|
4
|
+
* This module is intentionally dependency-free and side-effect-free so it can
|
|
5
|
+
* be loaded by *any* consumer — including React Native / Hermes — without
|
|
6
|
+
* pulling in the rest of the SDK. It is published as the `@anuma/sdk/constants`
|
|
7
|
+
* subpath (which carries a `react-native` export condition); slim consumers
|
|
8
|
+
* such as the agent packages import values from here instead of the bare
|
|
9
|
+
* `@anuma/sdk` entry, whose Node/web bundle is not RN-safe.
|
|
10
|
+
*
|
|
11
|
+
* Only add genuinely pure, cross-platform constants here (numeric/string
|
|
12
|
+
* literals, default IDs, size caps). No classes, no runtime APIs, no imports.
|
|
13
|
+
*/
|
|
14
|
+
/** Character cap for multiline / textarea fields. Agent gateways (e.g. cf-tasks)
|
|
15
|
+
* truncate values to this length before interpolating them into prompt templates.
|
|
16
|
+
* Shared across all agent packages so a single change updates every journey
|
|
17
|
+
* declaration simultaneously. */
|
|
18
|
+
declare const MULTILINE_FIELD_MAX = 50000;
|
|
19
|
+
|
|
20
|
+
export { MULTILINE_FIELD_MAX };
|