@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.
Files changed (87) hide show
  1. package/README.md +54 -53
  2. package/dist/api/spec.cjs +30 -0
  3. package/dist/api/spec.d.mts +3 -0
  4. package/dist/api/spec.d.ts +3 -0
  5. package/dist/api/spec.mjs +12 -0
  6. package/dist/chunk-4ETHWSXJ.mjs +25 -0
  7. package/dist/client/index.cjs +2344 -0
  8. package/dist/client/index.d.mts +10368 -0
  9. package/dist/client/index.d.ts +10368 -0
  10. package/dist/client/index.mjs +2168 -0
  11. package/dist/clientConfig-WITO4T6L.mjs +12 -0
  12. package/dist/constants/index.cjs +30 -0
  13. package/dist/constants/index.d.mts +20 -0
  14. package/dist/constants/index.d.ts +20 -0
  15. package/dist/constants/index.mjs +5 -0
  16. package/dist/design/index.cjs +1523 -0
  17. package/dist/design/index.d.mts +561 -0
  18. package/dist/design/index.d.ts +561 -0
  19. package/dist/design/index.mjs +1468 -0
  20. package/dist/expo/chunk-DFVCS3QQ.mjs +246 -0
  21. package/dist/{react/chunk-MJJIYFAX.mjs → expo/chunk-GYKJOWEO.mjs} +13 -1
  22. package/dist/expo/chunk-PUKP5H4F.mjs +5278 -0
  23. package/dist/expo/chunk-Y7XT2VNQ.mjs +646 -0
  24. package/dist/expo/clientConfig-VPOGQRNP.mjs +12 -0
  25. package/dist/expo/consolidate-HEMQGOUD.mjs +131 -0
  26. package/dist/expo/index.cjs +16784 -6689
  27. package/dist/expo/index.d.mts +5746 -1474
  28. package/dist/expo/index.d.ts +5746 -1474
  29. package/dist/expo/index.mjs +9669 -6189
  30. package/dist/expo/recall-YRWAAU6K.mjs +8 -0
  31. package/dist/index.cjs +2992 -42
  32. package/dist/index.d.mts +7719 -1835
  33. package/dist/index.d.ts +7719 -1835
  34. package/dist/index.mjs +2859 -39
  35. package/dist/next/index.cjs +6 -2
  36. package/dist/next/index.d.mts +24 -1
  37. package/dist/next/index.d.ts +24 -1
  38. package/dist/next/index.mjs +6 -2
  39. package/dist/pii/transformers.cjs +126 -0
  40. package/dist/pii/transformers.d.mts +103 -0
  41. package/dist/pii/transformers.d.ts +103 -0
  42. package/dist/pii/transformers.mjs +90 -0
  43. package/dist/react/chunk-DFVCS3QQ.mjs +246 -0
  44. package/dist/{expo/chunk-MJJIYFAX.mjs → react/chunk-GYKJOWEO.mjs} +13 -1
  45. package/dist/react/chunk-Q2ANFWEP.mjs +5596 -0
  46. package/dist/react/chunk-TP6CJZ25.mjs +645 -0
  47. package/dist/react/clientConfig-VPOGQRNP.mjs +12 -0
  48. package/dist/react/consolidate-IJH7LD2T.mjs +131 -0
  49. package/dist/react/index.cjs +25453 -11029
  50. package/dist/react/index.d.mts +7388 -1406
  51. package/dist/react/index.d.ts +7388 -1406
  52. package/dist/react/index.mjs +16101 -8648
  53. package/dist/react/recall-YBC7YCNC.mjs +8 -0
  54. package/dist/server/chunk-FMGZTVXQ.mjs +62 -0
  55. package/dist/server/chunk-HPURS22B.mjs +19452 -0
  56. package/dist/server/chunk-PXN5Q3MD.mjs +643 -0
  57. package/dist/server/chunk-RCCKRTBI.mjs +230 -0
  58. package/dist/server/clientConfig-GMADOBPK.mjs +12 -0
  59. package/dist/server/consolidate-A2ZIX5WF.mjs +131 -0
  60. package/dist/server/index.cjs +32109 -0
  61. package/dist/server/index.d.mts +7310 -0
  62. package/dist/server/index.d.ts +7310 -0
  63. package/dist/server/index.mjs +11168 -0
  64. package/dist/server/recall-PFYFVYMS.mjs +8 -0
  65. package/dist/tools/index.cjs +12682 -34
  66. package/dist/tools/index.d.mts +2733 -18
  67. package/dist/tools/index.d.ts +2733 -18
  68. package/dist/tools/index.mjs +12565 -33
  69. package/dist/utils/index.cjs +165 -0
  70. package/dist/utils/index.d.mts +14 -0
  71. package/dist/utils/index.d.ts +14 -0
  72. package/dist/utils/index.mjs +145 -0
  73. package/dist/vercel/index.d.mts +0 -3
  74. package/dist/vercel/index.d.ts +0 -3
  75. package/package.json +127 -16
  76. package/dist/expo/chunk-LJYAMK62.mjs +0 -25
  77. package/dist/expo/chunk-PJCZO4BQ.mjs +0 -25
  78. package/dist/expo/clientConfig-2MI4KULF.mjs +0 -10
  79. package/dist/expo/clientConfig-QDAXFL3W.mjs +0 -10
  80. package/dist/expo/clientConfig-R4IOW7I2.mjs +0 -10
  81. package/dist/react/chunk-LJYAMK62.mjs +0 -25
  82. package/dist/react/chunk-PJCZO4BQ.mjs +0 -25
  83. package/dist/react/clientConfig-2MI4KULF.mjs +0 -10
  84. package/dist/react/clientConfig-QDAXFL3W.mjs +0 -10
  85. package/dist/react/clientConfig-R4IOW7I2.mjs +0 -10
  86. package/dist/tools/chunk-KDFGY4SK.mjs +0 -13
  87. package/dist/tools/clientConfig-RMDOT5YM.mjs +0 -10
@@ -0,0 +1,12 @@
1
+ import {
2
+ BASE_URL,
3
+ MCP_R2_DOMAIN,
4
+ createClientConfig,
5
+ resolveBaseUrl
6
+ } from "./chunk-4ETHWSXJ.mjs";
7
+ export {
8
+ BASE_URL,
9
+ MCP_R2_DOMAIN,
10
+ createClientConfig,
11
+ resolveBaseUrl
12
+ };
@@ -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 };
@@ -0,0 +1,5 @@
1
+ // src/constants/index.ts
2
+ var MULTILINE_FIELD_MAX = 5e4;
3
+ export {
4
+ MULTILINE_FIELD_MAX
5
+ };