@t4h.framework/dev 0.0.0-experimental-20261020114208 → 0.0.0-experimental-20261020150133
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/CHANGELOG.md +19 -14
- package/dist/models/JSONRPCServer.d.ts +0 -12
- package/dist/models/JSONRPCServer.js.map +1 -1
- package/dist/tools/to-workflow-run-activity-output.d.ts +0 -1
- package/dist/tools/to-workflow-run-output.d.ts +0 -1
- package/package.json +27 -26
- package/dist/tools/find-claim-by-constructor.d.ts +0 -1
- package/dist/tools/find-claim-by-constructor.js +0 -9
- package/dist/tools/find-claim-by-constructor.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,24 +1,29 @@
|
|
|
1
1
|
# @t4h.framework/dev
|
|
2
2
|
|
|
3
|
-
## 0.0.0-experimental-
|
|
3
|
+
## 0.0.0-experimental-20261020150133
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
+
- [#229](https://github.com/tech4humans-brasil/framework/pull/229) [`4395c90`](https://github.com/tech4humans-brasil/framework/commit/4395c9041b78ba0217e005d9e96f4a0e34867cd9) Thanks [@gusteycamargo](https://github.com/gusteycamargo)! - Fixes the published packages:
|
|
8
|
+
- harness: the published types import `typings/PublicProperties.js`, which was not in `dist`. `uuidv7` is now a dependency.
|
|
9
|
+
- dev: `tar` is now a dependency.
|
|
10
|
+
- fs: the published types of `FileSplitActivity` no longer import `typebox`, which `fs` does not depend on.
|
|
11
|
+
|
|
7
12
|
- [#227](https://github.com/tech4humans-brasil/framework/pull/227) [`40824ac`](https://github.com/tech4humans-brasil/framework/commit/40824ac2e2c4ad6102a5e887fd09e05c7cefeeea) Thanks [@gusteycamargo](https://github.com/gusteycamargo)! - Reads JSON-RPC messages, codec values and worker results as `unknown` and checks their shape. `tsBuild` returns `parsed` as `ts.ParsedCommandLine | null` in place of `any`.
|
|
8
13
|
|
|
9
|
-
- Updated dependencies [[`6d3ac91`](https://github.com/tech4humans-brasil/framework/commit/6d3ac91054fa3ecbe77fbe25d112439007e2df11), [`e11c2ee`](https://github.com/tech4humans-brasil/framework/commit/e11c2ee0d959dff4ea1c8861ec036f9f299b743c), [`
|
|
10
|
-
- @t4h.framework/
|
|
11
|
-
- @t4h.framework/
|
|
12
|
-
- @t4h.framework/
|
|
13
|
-
- @t4h.framework/
|
|
14
|
-
- @t4h.framework/
|
|
15
|
-
- @t4h.framework/
|
|
16
|
-
- @t4h.framework/
|
|
17
|
-
- @t4h.framework/
|
|
18
|
-
- @t4h.framework/
|
|
19
|
-
- @t4h.framework/
|
|
20
|
-
- @t4h.framework/vite-panel-plugin@0.0.0-experimental-
|
|
21
|
-
- @t4h.framework/cache@0.0.0-experimental-
|
|
14
|
+
- Updated dependencies [[`4395c90`](https://github.com/tech4humans-brasil/framework/commit/4395c9041b78ba0217e005d9e96f4a0e34867cd9), [`6d3ac91`](https://github.com/tech4humans-brasil/framework/commit/6d3ac91054fa3ecbe77fbe25d112439007e2df11), [`e11c2ee`](https://github.com/tech4humans-brasil/framework/commit/e11c2ee0d959dff4ea1c8861ec036f9f299b743c), [`d29e1ab`](https://github.com/tech4humans-brasil/framework/commit/d29e1ab29a039b13c3e4b075472bd615566ae75e)]:
|
|
15
|
+
- @t4h.framework/fs@0.0.0-experimental-20261020150133
|
|
16
|
+
- @t4h.framework/core@0.0.0-experimental-20261020150133
|
|
17
|
+
- @t4h.framework/orm@0.0.0-experimental-20261020150133
|
|
18
|
+
- @t4h.framework/http@0.0.0-experimental-20261020150133
|
|
19
|
+
- @t4h.framework/hmac@0.0.0-experimental-20261020150133
|
|
20
|
+
- @t4h.framework/oidc@0.0.0-experimental-20261020150133
|
|
21
|
+
- @t4h.framework/jwks@0.0.0-experimental-20261020150133
|
|
22
|
+
- @t4h.framework/smtp@0.0.0-experimental-20261020150133
|
|
23
|
+
- @t4h.framework/sftp@0.0.0-experimental-20261020150133
|
|
24
|
+
- @t4h.framework/webhook@0.0.0-experimental-20261020150133
|
|
25
|
+
- @t4h.framework/vite-panel-plugin@0.0.0-experimental-20261020150133
|
|
26
|
+
- @t4h.framework/cache@0.0.0-experimental-20261020150133
|
|
22
27
|
|
|
23
28
|
## 0.22.7
|
|
24
29
|
|
|
@@ -29,12 +29,6 @@ export declare class JSONRPCServerMethod<TParamsSchema extends readonly Type.TSc
|
|
|
29
29
|
constructor(name: string, config: JSONRPCServerServerMethodConfig<TParamsSchema>, fn: JSONRPCServerServerMethodFn<TParamsSchema, TOutput>);
|
|
30
30
|
call(params: unknown): Promise<TOutput>;
|
|
31
31
|
}
|
|
32
|
-
export type JSONRPCCall = {
|
|
33
|
-
jsonrpc: '2.0';
|
|
34
|
-
id: string;
|
|
35
|
-
method: string;
|
|
36
|
-
params: unknown[];
|
|
37
|
-
};
|
|
38
32
|
export type JSONRPCResponseFulfilled = {
|
|
39
33
|
jsonrpc: '2.0';
|
|
40
34
|
id: string;
|
|
@@ -49,12 +43,6 @@ export type JSONRPCResponseRejected = {
|
|
|
49
43
|
data?: JSONRPCErrorData;
|
|
50
44
|
};
|
|
51
45
|
};
|
|
52
|
-
export type JSONRPCResponseNotification = {
|
|
53
|
-
jsonrpc: '2.0';
|
|
54
|
-
method: string;
|
|
55
|
-
params: unknown[];
|
|
56
|
-
};
|
|
57
|
-
export type JSONRPCResponse = JSONRPCResponseFulfilled | JSONRPCResponseRejected | JSONRPCResponseNotification;
|
|
58
46
|
export type JSONRPCServerSend = (message: string) => void | Promise<void>;
|
|
59
47
|
/** The part of a {@link JSONRPCServerMethod} that the server uses, whatever its type arguments are. */
|
|
60
48
|
export interface AnyJSONRPCServerMethod {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JSONRPCServer.js","sourceRoot":"","sources":["../../src/models/JSONRPCServer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAyB,MAAM,KAAK,CAAA;AAChD,OAAO,IAAI,MAAM,SAAS,CAAA;AAE1B,OAAO,EAAE,YAAY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AC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;gBAC/D,GAAG,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aACnD;SACF,CAAC,CACH,CAAA;IACH,CAAC;IAEM,KAAK,CAAC,MAAM,CAAC,MAAc,EAAE,GAAG,MAAiB;QACtD,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,CAAA;IACrE,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@t4h.framework/dev",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-20261020150133",
|
|
4
4
|
"description": "Dev server for the T4H Framework",
|
|
5
5
|
"homepage": "https://github.com/tech4humans-brasil/framework/tree/main/packages/dev",
|
|
6
6
|
"bugs": "https://github.com/tech4humans-brasil/framework/issues",
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "tsc --project tsconfig.build.json",
|
|
38
38
|
"check-types": "tsc --noEmit",
|
|
39
|
+
"check-package": "publint --strict && attw --pack . --profile esm-only",
|
|
39
40
|
"lint": "eslint . --max-warnings 0",
|
|
40
41
|
"test": "vitest --run",
|
|
41
42
|
"test:watch": "vitest",
|
|
@@ -43,7 +44,7 @@
|
|
|
43
44
|
},
|
|
44
45
|
"dependencies": {
|
|
45
46
|
"@hono/node-server": "^2.1.1",
|
|
46
|
-
"@t4h.framework/vite-panel-plugin": "^0.0.0-experimental-
|
|
47
|
+
"@t4h.framework/vite-panel-plugin": "^0.0.0-experimental-20261020150133",
|
|
47
48
|
"ajv": "^8.18.0",
|
|
48
49
|
"dot-object": "^2.1.5",
|
|
49
50
|
"hono": "^4.13.5",
|
|
@@ -53,46 +54,46 @@
|
|
|
53
54
|
"reflect-metadata": "^0.2.2",
|
|
54
55
|
"sift": "^17.1.3",
|
|
55
56
|
"ssh2-sftp-client": "^12.1.1",
|
|
57
|
+
"tar": "^7.5.10",
|
|
56
58
|
"typebox": "^1.1.6",
|
|
57
59
|
"undici": "^7.22.0",
|
|
58
60
|
"uuidv7": "^1.2.1",
|
|
59
61
|
"vite": "^8.0.3"
|
|
60
62
|
},
|
|
61
63
|
"devDependencies": {
|
|
62
|
-
"@t4h.framework/cache": "^0.0.0-experimental-
|
|
63
|
-
"@t4h.framework/core": "^0.0.0-experimental-
|
|
64
|
-
"@t4h.framework/fs": "^0.0.0-experimental-
|
|
65
|
-
"@t4h.framework/hmac": "^0.0.0-experimental-
|
|
66
|
-
"@t4h.framework/http": "^0.0.0-experimental-
|
|
67
|
-
"@t4h.framework/jwks": "^0.0.0-experimental-
|
|
68
|
-
"@t4h.framework/oidc": "^0.0.0-experimental-
|
|
69
|
-
"@t4h.framework/orm": "^0.0.0-experimental-
|
|
64
|
+
"@t4h.framework/cache": "^0.0.0-experimental-20261020150133",
|
|
65
|
+
"@t4h.framework/core": "^0.0.0-experimental-20261020150133",
|
|
66
|
+
"@t4h.framework/fs": "^0.0.0-experimental-20261020150133",
|
|
67
|
+
"@t4h.framework/hmac": "^0.0.0-experimental-20261020150133",
|
|
68
|
+
"@t4h.framework/http": "^0.0.0-experimental-20261020150133",
|
|
69
|
+
"@t4h.framework/jwks": "^0.0.0-experimental-20261020150133",
|
|
70
|
+
"@t4h.framework/oidc": "^0.0.0-experimental-20261020150133",
|
|
71
|
+
"@t4h.framework/orm": "^0.0.0-experimental-20261020150133",
|
|
70
72
|
"@t4h.framework/runtime-claims": "^0.1.0",
|
|
71
|
-
"@t4h.framework/sftp": "^0.0.0-experimental-
|
|
72
|
-
"@t4h.framework/smtp": "^0.0.0-experimental-
|
|
73
|
-
"@t4h.framework/webhook": "^0.0.0-experimental-
|
|
73
|
+
"@t4h.framework/sftp": "^0.0.0-experimental-20261020150133",
|
|
74
|
+
"@t4h.framework/smtp": "^0.0.0-experimental-20261020150133",
|
|
75
|
+
"@t4h.framework/webhook": "^0.0.0-experimental-20261020150133",
|
|
74
76
|
"@types/dot-object": "^2.1.6",
|
|
75
|
-
"@types/json-schema": "^7.0.15",
|
|
76
77
|
"@types/mime-types": "^3",
|
|
77
78
|
"@types/node": "^25.3.5",
|
|
78
79
|
"@types/nodemailer": "^7.0.11",
|
|
79
|
-
"
|
|
80
|
+
"@types/ssh2-sftp-client": "^9.0.6",
|
|
80
81
|
"typescript": "^5.9.3",
|
|
81
82
|
"vitest": "^4.0.18"
|
|
82
83
|
},
|
|
83
84
|
"peerDependencies": {
|
|
84
|
-
"@t4h.framework/cache": "0.0.0-experimental-
|
|
85
|
-
"@t4h.framework/core": "0.0.0-experimental-
|
|
86
|
-
"@t4h.framework/fs": "0.0.0-experimental-
|
|
87
|
-
"@t4h.framework/hmac": "0.0.0-experimental-
|
|
88
|
-
"@t4h.framework/http": "0.0.0-experimental-
|
|
89
|
-
"@t4h.framework/jwks": "0.0.0-experimental-
|
|
90
|
-
"@t4h.framework/oidc": "0.0.0-experimental-
|
|
91
|
-
"@t4h.framework/orm": "0.0.0-experimental-
|
|
85
|
+
"@t4h.framework/cache": "0.0.0-experimental-20261020150133",
|
|
86
|
+
"@t4h.framework/core": "0.0.0-experimental-20261020150133",
|
|
87
|
+
"@t4h.framework/fs": "0.0.0-experimental-20261020150133",
|
|
88
|
+
"@t4h.framework/hmac": "0.0.0-experimental-20261020150133",
|
|
89
|
+
"@t4h.framework/http": "0.0.0-experimental-20261020150133",
|
|
90
|
+
"@t4h.framework/jwks": "0.0.0-experimental-20261020150133",
|
|
91
|
+
"@t4h.framework/oidc": "0.0.0-experimental-20261020150133",
|
|
92
|
+
"@t4h.framework/orm": "0.0.0-experimental-20261020150133",
|
|
92
93
|
"@t4h.framework/runtime-claims": "^0.1.0",
|
|
93
|
-
"@t4h.framework/sftp": "0.0.0-experimental-
|
|
94
|
-
"@t4h.framework/smtp": "0.0.0-experimental-
|
|
95
|
-
"@t4h.framework/webhook": "0.0.0-experimental-
|
|
94
|
+
"@t4h.framework/sftp": "0.0.0-experimental-20261020150133",
|
|
95
|
+
"@t4h.framework/smtp": "0.0.0-experimental-20261020150133",
|
|
96
|
+
"@t4h.framework/webhook": "0.0.0-experimental-20261020150133",
|
|
96
97
|
"typescript": "^5.9.3"
|
|
97
98
|
},
|
|
98
99
|
"peerDependenciesMeta": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function findClaimByConstructor<T>(constructor: new () => T): Promise<T>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { getClaims } from '../claims.js';
|
|
2
|
-
export async function findClaimByConstructor(constructor) {
|
|
3
|
-
const providers = await getClaims();
|
|
4
|
-
const provider = providers.find(claim => claim.value instanceof constructor);
|
|
5
|
-
if (!provider)
|
|
6
|
-
throw new Error(`Claim not found: ${constructor.name}`);
|
|
7
|
-
return provider.value;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=find-claim-by-constructor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-claim-by-constructor.js","sourceRoot":"","sources":["../../src/tools/find-claim-by-constructor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAExC,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAC1C,WAAwB;IAExB,MAAM,SAAS,GAAG,MAAM,SAAS,EAAE,CAAA;IAEnC,MAAM,QAAQ,GAAG,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,YAAY,WAAW,CAAC,CAAA;IAE5E,IAAI,CAAC,QAAQ;QAAE,MAAM,IAAI,KAAK,CAAC,oBAAoB,WAAW,CAAC,IAAI,EAAE,CAAC,CAAA;IAEtE,OAAO,QAAQ,CAAC,KAAU,CAAA;AAC5B,CAAC"}
|