@uru-intelligence/app 1.0.0 → 2.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 +167 -13
- package/dist/dampers.d.ts +7 -74
- package/dist/dampers.js +36 -131
- package/dist/dataset-boundary.d.ts +31 -0
- package/dist/dataset-boundary.js +292 -0
- package/dist/datasets.d.ts +4 -4
- package/dist/datasets.js +111 -80
- package/dist/{errorResponse.d.ts → error-response.d.ts} +1 -1
- package/dist/error-response.js +11 -0
- package/dist/errors.js +1 -1
- package/dist/files.d.ts +2 -0
- package/dist/files.js +149 -0
- package/dist/index.d.ts +28 -12
- package/dist/index.js +96 -53
- package/dist/invocations.d.ts +7 -0
- package/dist/invocations.js +27 -0
- package/dist/jobs.d.ts +4 -0
- package/dist/jobs.js +35 -0
- package/dist/runtime.d.ts +5 -5
- package/dist/runtime.js +23 -23
- package/dist/transport-json.d.ts +9 -0
- package/dist/transport-json.js +101 -0
- package/dist/transport.d.ts +14 -13
- package/dist/transport.js +496 -443
- package/dist/types.d.ts +188 -42
- package/dist/types.js +2 -2
- package/dist/uploads.d.ts +32 -0
- package/dist/uploads.js +228 -0
- package/package.json +61 -59
- package/dist/errorResponse.js +0 -11
package/package.json
CHANGED
|
@@ -1,62 +1,64 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
"name": "@uru-intelligence/app",
|
|
3
|
+
"version": "2.1.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "Runtime client for Uru Gems: capability calls, Datasets, jobs and secrets",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"gem",
|
|
8
|
+
"runtime",
|
|
9
|
+
"sdk",
|
|
10
|
+
"uru"
|
|
11
|
+
],
|
|
12
|
+
"homepage": "https://github.com/Ignition-Forward/uru-workspace-platform/tree/development/packages/app#readme",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/Ignition-Forward/uru-workspace-platform/issues"
|
|
15
|
+
},
|
|
16
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/Ignition-Forward/uru-workspace-platform.git",
|
|
20
|
+
"directory": "packages/app"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"README.md",
|
|
25
|
+
"LICENSE"
|
|
26
|
+
],
|
|
27
|
+
"type": "module",
|
|
28
|
+
"sideEffects": false,
|
|
29
|
+
"main": "./dist/index.js",
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"exports": {
|
|
32
|
+
".": {
|
|
33
|
+
"types": "./dist/index.d.ts",
|
|
34
|
+
"default": "./dist/index.js"
|
|
18
35
|
},
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"check:package": "node ../../scripts/checks/check-app-package-publishable.mjs",
|
|
48
|
-
"check:node-floor": "node ../../scripts/checks/check-app-package-node-floor.mjs"
|
|
49
|
-
},
|
|
50
|
-
"packageManager": "bun@1.3.13",
|
|
51
|
-
"engines": {
|
|
52
|
-
"node": ">=22.12.0"
|
|
53
|
-
},
|
|
54
|
-
"devDependencies": {
|
|
55
|
-
"publint": "0.3.24",
|
|
56
|
-
"typescript": "7.0.2"
|
|
57
|
-
},
|
|
58
|
-
"publishConfig": {
|
|
59
|
-
"access": "public",
|
|
60
|
-
"provenance": false
|
|
61
|
-
}
|
|
36
|
+
"./package.json": "./package.json"
|
|
37
|
+
},
|
|
38
|
+
"publishConfig": {
|
|
39
|
+
"access": "public",
|
|
40
|
+
"provenance": false
|
|
41
|
+
},
|
|
42
|
+
"scripts": {
|
|
43
|
+
"build": "tsc -p tsconfig.build.json",
|
|
44
|
+
"clean": "rm -rf dist",
|
|
45
|
+
"prepack": "bun run clean && bun run build",
|
|
46
|
+
"type-check": "tsc --noEmit",
|
|
47
|
+
"lint": "node ../../scripts/run-with-repo-node.mjs oxlint --type-aware --deny-warnings -c ../../oxlint.config.mts .",
|
|
48
|
+
"lint:fix": "node ../../scripts/run-with-repo-node.mjs oxlint --type-aware --deny-warnings -c ../../oxlint.config.mts --fix .",
|
|
49
|
+
"test": "bun test",
|
|
50
|
+
"test:unit": "bun test",
|
|
51
|
+
"check:package": "node ../../scripts/checks/check-app-package-publishable.mjs",
|
|
52
|
+
"check:node-floor": "node ../../scripts/checks/check-app-package-node-floor.mjs"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@types/node": "24.13.3",
|
|
56
|
+
"bun-types": "1.3.13",
|
|
57
|
+
"publint": "0.3.24",
|
|
58
|
+
"typescript": "7.0.2"
|
|
59
|
+
},
|
|
60
|
+
"engines": {
|
|
61
|
+
"node": ">=22.12.0"
|
|
62
|
+
},
|
|
63
|
+
"packageManager": "bun@1.3.13"
|
|
62
64
|
}
|
package/dist/errorResponse.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
function isRecord(value) {
|
|
2
|
-
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
3
|
-
}
|
|
4
|
-
/** Read the canonical owned HTTP error envelope without accepting removed aliases. */
|
|
5
|
-
export function runtimeErrorMessage(body, fallback) {
|
|
6
|
-
if (!isRecord(body) || !isRecord(body.error)) {
|
|
7
|
-
return fallback;
|
|
8
|
-
}
|
|
9
|
-
const message = body.error.message;
|
|
10
|
-
return typeof message === 'string' && message.trim() ? message : fallback;
|
|
11
|
-
}
|