@allma/core-sdk 1.2.0 → 1.3.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 +19 -0
- package/dist/cloudformation-utils.d.ts.map +1 -1
- package/dist/cloudformation-utils.js +3 -2
- package/dist/cloudformation-utils.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/logger.d.ts +20 -0
- package/dist/logger.d.ts.map +1 -1
- package/dist/logger.js +90 -8
- package/dist/logger.js.map +1 -1
- package/package.json +6 -4
- package/dist/cdk-utils.d.ts +0 -42
- package/dist/cdk-utils.d.ts.map +0 -1
- package/dist/cdk-utils.js +0 -62
- package/dist/cdk-utils.js.map +0 -1
package/README.md
CHANGED
|
@@ -54,6 +54,25 @@ export const handler: Handler = async (event, context) => {
|
|
|
54
54
|
};
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
+
## Redacting log output
|
|
58
|
+
|
|
59
|
+
Register one redactor and every `log_*` call passes through it. It runs on the `details` object (it must return a plain object) and on the `message` string (it must return a string). If it throws or returns the wrong type, the line is written with `message` and `details` set to `'[REDACTION_FAILED]'`. The raw values are never written.
|
|
60
|
+
|
|
61
|
+
```typescript
|
|
62
|
+
import { createKeyPatternRedactor, setLogRedactor } from '@allma/core-sdk';
|
|
63
|
+
|
|
64
|
+
setLogRedactor(createKeyPatternRedactor({
|
|
65
|
+
keys: ['email', 'phone'], // case-insensitive key names; their values are replaced
|
|
66
|
+
patterns: ['[^@\\s]+@[^@\\s]+'], // regexes (flags "gi") replaced inside every string and the message
|
|
67
|
+
replacement: '[PII]', // optional, defaults to '[REDACTED]'
|
|
68
|
+
}));
|
|
69
|
+
|
|
70
|
+
// Or pass your own function: setLogRedactor((value) => myRedact(value));
|
|
71
|
+
// setLogRedactor(undefined) removes it.
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
The redactor is process-wide and is shared by every copy of `@allma/core-sdk` in the bundle. If the `LOG_REDACTION_CONFIG` environment variable holds a JSON `{ keys, patterns, replacement? }` object, the logger registers `createKeyPatternRedactor` with it when it loads, unless a redactor is already registered. If that config is invalid, every line is masked and one warning is logged.
|
|
75
|
+
|
|
57
76
|
## Contributing
|
|
58
77
|
|
|
59
78
|
This package is part of the `allma-core` monorepo. We welcome contributions! Please see our main [repository](https://github.com/ALLMA-dev/allma-core) and [contribution guide](https://docs.allma.dev/docs/community/contribution-guide) for more details.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloudformation-utils.d.ts","sourceRoot":"","sources":["../src/cloudformation-utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cloudformation-utils.d.ts","sourceRoot":"","sources":["../src/cloudformation-utils.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAC5C,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC3C,qBAAqB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CAChD;AAED,wBAAsB,0BAA0B,CAC9C,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,SAAS,GAAG,QAAQ,EAC5B,IAAI,CAAC,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GAC5B,OAAO,CAAC,IAAI,CAAC,CA0Bf"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { log_error, log_info } from './logger.js';
|
|
1
2
|
export async function sendCloudFormationResponse(event, status, data) {
|
|
2
3
|
const responseBody = JSON.stringify({
|
|
3
4
|
Status: status,
|
|
@@ -18,10 +19,10 @@ export async function sendCloudFormationResponse(event, status, data) {
|
|
|
18
19
|
};
|
|
19
20
|
try {
|
|
20
21
|
const response = await fetch(event.ResponseURL, responseOptions);
|
|
21
|
-
|
|
22
|
+
log_info('CloudFormation response sent', { status: response.status }, event.RequestId);
|
|
22
23
|
}
|
|
23
24
|
catch (error) {
|
|
24
|
-
|
|
25
|
+
log_error('Failed to send CloudFormation response', { error: error instanceof Error ? error.message : String(error) }, event.RequestId);
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
28
|
//# sourceMappingURL=cloudformation-utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloudformation-utils.js","sourceRoot":"","sources":["../src/cloudformation-utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cloudformation-utils.js","sourceRoot":"","sources":["../src/cloudformation-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAelD,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,KAA0B,EAC1B,MAA4B,EAC5B,IAA6B;IAE7B,MAAM,YAAY,GAAG,IAAI,CAAC,SAAS,CAAC;QAClC,MAAM,EAAE,MAAM;QACd,MAAM,EAAE,6CAA6C,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE;QAC7F,kBAAkB,EAAE,KAAK,CAAC,kBAAkB,IAAI,mBAAmB,IAAI,CAAC,GAAG,EAAE,EAAE;QAC/E,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;QAC1C,IAAI,EAAE,IAAI;KACX,CAAC,CAAC;IAEH,MAAM,eAAe,GAAG;QACtB,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE;YACP,cAAc,EAAE,EAAE;YAClB,gBAAgB,EAAE,YAAY,CAAC,MAAM,CAAC,QAAQ,EAAE;SACjD;KACF,CAAC;IAEF,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,KAAK,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC;QACjE,QAAQ,CAAC,8BAA8B,EAAE,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IACzF,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,SAAS,CAAC,wCAAwC,EAAE,EAAE,KAAK,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAC1I,CAAC;AACH,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC"}
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC"}
|
package/dist/logger.d.ts
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
import { type LogRedactionConfig } from '@allma/core-types';
|
|
2
|
+
/**
|
|
3
|
+
* Transforms a log value before it is written. Called once with the `details` object (must return a
|
|
4
|
+
* plain object) and once with the `message` string (must return a string).
|
|
5
|
+
*/
|
|
6
|
+
export type LogRedactor = (value: unknown) => unknown;
|
|
7
|
+
/**
|
|
8
|
+
* Registers the process-wide redactor applied to every log line at every level; `undefined` clears it.
|
|
9
|
+
* The redactor is stored on `globalThis`, so every copy of `@allma/core-sdk` in a bundle shares it.
|
|
10
|
+
* If it throws or returns the wrong type, the line is written with `message` and `details` set to
|
|
11
|
+
* `'[REDACTION_FAILED]'` and the raw values are dropped.
|
|
12
|
+
*/
|
|
13
|
+
export declare const setLogRedactor: (fn: LogRedactor | undefined) => void;
|
|
14
|
+
/**
|
|
15
|
+
* Builds a redactor that replaces the value of every key named in `keys` (case-insensitive) and every
|
|
16
|
+
* match of `patterns` (compiled with `gi`) inside strings with `replacement` (default `'[REDACTED]'`).
|
|
17
|
+
* It recurses only into arrays and plain objects, so Dates, Errors and Buffers serialise as before.
|
|
18
|
+
* Cycles become `'[Circular]'`. The input is never mutated.
|
|
19
|
+
*/
|
|
20
|
+
export declare const createKeyPatternRedactor: ({ keys, patterns, replacement }: LogRedactionConfig) => LogRedactor;
|
|
1
21
|
export declare const log_debug: (message: string, details?: object, correlationId?: string) => void;
|
|
2
22
|
export declare const log_info: (message: string, details?: object, correlationId?: string) => void;
|
|
3
23
|
export declare const log_warn: (message: string, details?: object, correlationId?: string) => void;
|
package/dist/logger.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqD,KAAK,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAgB/G;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC;AAItD;;;;;GAKG;AACH,eAAO,MAAM,cAAc,OAAQ,WAAW,GAAG,SAAS,KAAG,IAE5D,CAAC;AAQF;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,oCAAqE,kBAAkB,KAAG,WAe9H,CAAC;AAmCF,eAAO,MAAM,SAAS,YAAa,MAAM,YAAW,MAAM,kBAAuB,MAAM,SAAyD,CAAC;AACjJ,eAAO,MAAM,QAAQ,YAAa,MAAM,YAAW,MAAM,kBAAuB,MAAM,SAAwD,CAAC;AAC/I,eAAO,MAAM,QAAQ,YAAa,MAAM,YAAW,MAAM,kBAAuB,MAAM,SAAwD,CAAC;AAC/I,eAAO,MAAM,SAAS,YAAa,MAAM,YAAW,MAAM,kBAAuB,MAAM,SAAyD,CAAC;AACjJ,eAAO,MAAM,YAAY,YAAa,MAAM,YAAW,MAAM,kBAAuB,MAAM,SAA4D,CAAC"}
|
package/dist/logger.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LogLevel } from '@allma/core-types';
|
|
1
|
+
import { ENV_VAR_NAMES, LogLevel, LogRedactionConfigSchema } from '@allma/core-types';
|
|
2
2
|
const LOG_LEVELS = Object.values(LogLevel);
|
|
3
3
|
// Default to 'INFO' if LOG_LEVEL is not set or is invalid
|
|
4
4
|
let currentLogLevel = process.env.LOG_LEVEL?.toUpperCase() || LogLevel.INFO;
|
|
@@ -7,18 +7,78 @@ if (!LOG_LEVELS.includes(currentLogLevel)) {
|
|
|
7
7
|
currentLogLevel = LogLevel.INFO;
|
|
8
8
|
}
|
|
9
9
|
const LOG_LEVEL_NUMERIC = LOG_LEVELS.indexOf(currentLogLevel);
|
|
10
|
+
const REDACTOR_SLOT = Symbol.for('allma.core-sdk.logRedactor');
|
|
11
|
+
const REDACTION_FAILED = '[REDACTION_FAILED]';
|
|
12
|
+
const DEFAULT_REDACTION_REPLACEMENT = '[REDACTED]';
|
|
13
|
+
const slot = globalThis;
|
|
14
|
+
/**
|
|
15
|
+
* Registers the process-wide redactor applied to every log line at every level; `undefined` clears it.
|
|
16
|
+
* The redactor is stored on `globalThis`, so every copy of `@allma/core-sdk` in a bundle shares it.
|
|
17
|
+
* If it throws or returns the wrong type, the line is written with `message` and `details` set to
|
|
18
|
+
* `'[REDACTION_FAILED]'` and the raw values are dropped.
|
|
19
|
+
*/
|
|
20
|
+
export const setLogRedactor = (fn) => {
|
|
21
|
+
slot[REDACTOR_SLOT] = fn;
|
|
22
|
+
};
|
|
23
|
+
const isPlainObject = (value) => {
|
|
24
|
+
if (typeof value !== 'object' || value === null)
|
|
25
|
+
return false;
|
|
26
|
+
const proto = Object.getPrototypeOf(value);
|
|
27
|
+
return proto === Object.prototype || proto === null;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Builds a redactor that replaces the value of every key named in `keys` (case-insensitive) and every
|
|
31
|
+
* match of `patterns` (compiled with `gi`) inside strings with `replacement` (default `'[REDACTED]'`).
|
|
32
|
+
* It recurses only into arrays and plain objects, so Dates, Errors and Buffers serialise as before.
|
|
33
|
+
* Cycles become `'[Circular]'`. The input is never mutated.
|
|
34
|
+
*/
|
|
35
|
+
export const createKeyPatternRedactor = ({ keys, patterns, replacement = DEFAULT_REDACTION_REPLACEMENT }) => {
|
|
36
|
+
const keySet = new Set(keys.map((key) => key.toLowerCase()));
|
|
37
|
+
const regexes = patterns.map((pattern) => new RegExp(pattern, 'gi'));
|
|
38
|
+
const walk = (value, ancestors) => {
|
|
39
|
+
if (typeof value === 'string')
|
|
40
|
+
return regexes.reduce((text, regex) => text.replace(regex, () => replacement), value);
|
|
41
|
+
if (!Array.isArray(value) && !isPlainObject(value))
|
|
42
|
+
return value;
|
|
43
|
+
if (ancestors.has(value))
|
|
44
|
+
return '[Circular]';
|
|
45
|
+
ancestors.add(value);
|
|
46
|
+
const result = Array.isArray(value)
|
|
47
|
+
? value.map((item) => walk(item, ancestors))
|
|
48
|
+
: Object.fromEntries(Object.entries(value).map(([key, item]) => [key, keySet.has(key.toLowerCase()) ? replacement : walk(item, ancestors)]));
|
|
49
|
+
ancestors.delete(value);
|
|
50
|
+
return result;
|
|
51
|
+
};
|
|
52
|
+
return (value) => walk(value, new WeakSet());
|
|
53
|
+
};
|
|
54
|
+
const redactEntry = (redactor, level, message, details, correlationId, timestamp) => {
|
|
55
|
+
const failed = { level, message: REDACTION_FAILED, correlationId, details: REDACTION_FAILED, timestamp };
|
|
56
|
+
try {
|
|
57
|
+
const redactedDetails = redactor(details);
|
|
58
|
+
const redactedMessage = redactor(message);
|
|
59
|
+
if (!isPlainObject(redactedDetails) || typeof redactedMessage !== 'string')
|
|
60
|
+
return failed;
|
|
61
|
+
return { level, message: redactedMessage, correlationId, ...redactedDetails, timestamp };
|
|
62
|
+
}
|
|
63
|
+
catch {
|
|
64
|
+
return failed;
|
|
65
|
+
}
|
|
66
|
+
};
|
|
10
67
|
const log = (level, message, details = {}, correlationId) => {
|
|
11
68
|
const messageLevelNumeric = LOG_LEVELS.indexOf(level);
|
|
12
69
|
// Only log if the message's level is at or above the current log level
|
|
13
70
|
if (messageLevelNumeric >= LOG_LEVEL_NUMERIC) {
|
|
14
71
|
const timestamp = new Date().toISOString();
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
message,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
72
|
+
const redactor = slot[REDACTOR_SLOT];
|
|
73
|
+
const logEntry = redactor
|
|
74
|
+
? redactEntry(redactor, level, message, details, correlationId || 'N/A', timestamp)
|
|
75
|
+
: {
|
|
76
|
+
level: level,
|
|
77
|
+
message,
|
|
78
|
+
correlationId: correlationId || 'N/A',
|
|
79
|
+
...details,
|
|
80
|
+
timestamp,
|
|
81
|
+
};
|
|
22
82
|
// Using console.log for all levels; CloudWatch will handle them as log events.
|
|
23
83
|
console.log(JSON.stringify(logEntry));
|
|
24
84
|
}
|
|
@@ -28,4 +88,26 @@ export const log_info = (message, details = {}, correlationId) => log(LogLevel.I
|
|
|
28
88
|
export const log_warn = (message, details = {}, correlationId) => log(LogLevel.WARN, message, details, correlationId);
|
|
29
89
|
export const log_error = (message, details = {}, correlationId) => log(LogLevel.ERROR, message, details, correlationId);
|
|
30
90
|
export const log_critical = (message, details = {}, correlationId) => log(LogLevel.CRITICAL, message, details, correlationId);
|
|
91
|
+
const registerRedactorFromEnv = () => {
|
|
92
|
+
const rawConfig = process.env[ENV_VAR_NAMES.LOG_REDACTION_CONFIG];
|
|
93
|
+
if (!rawConfig || slot[REDACTOR_SLOT])
|
|
94
|
+
return;
|
|
95
|
+
let errorKind;
|
|
96
|
+
try {
|
|
97
|
+
const parsed = LogRedactionConfigSchema.safeParse(JSON.parse(rawConfig));
|
|
98
|
+
if (parsed.success) {
|
|
99
|
+
setLogRedactor(createKeyPatternRedactor(parsed.data));
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
errorKind = 'SchemaValidationError';
|
|
103
|
+
}
|
|
104
|
+
catch {
|
|
105
|
+
errorKind = 'JsonParseError';
|
|
106
|
+
}
|
|
107
|
+
log_warn(`Invalid ${ENV_VAR_NAMES.LOG_REDACTION_CONFIG}; every log line will be masked.`, { errorKind });
|
|
108
|
+
setLogRedactor(() => {
|
|
109
|
+
throw new Error(`Invalid ${ENV_VAR_NAMES.LOG_REDACTION_CONFIG}`);
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
registerRedactorFromEnv();
|
|
31
113
|
//# sourceMappingURL=logger.js.map
|
package/dist/logger.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,wBAAwB,EAA2B,MAAM,mBAAmB,CAAC;AAE/G,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAE3C,0DAA0D;AAC1D,IAAI,eAAe,GAAc,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,WAAW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G,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAAC;IAClE,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,aAAa,CAAC;QAAE,OAAO;IAC9C,IAAI,SAAiB,CAAC;IACtB,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,wBAAwB,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;QACzE,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;YACnB,cAAc,CAAC,wBAAwB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;YACtD,OAAO;QACT,CAAC;QACD,SAAS,GAAG,uBAAuB,CAAC;IACtC,CAAC;IAAC,MAAM,CAAC;QACP,SAAS,GAAG,gBAAgB,CAAC;IAC/B,CAAC;IACD,QAAQ,CAAC,WAAW,aAAa,CAAC,oBAAoB,kCAAkC,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC;IACzG,cAAc,CAAC,GAAG,EAAE;QAClB,MAAM,IAAI,KAAK,CAAC,WAAW,aAAa,CAAC,oBAAoB,EAAE,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,uBAAuB,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allma/core-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Core SDK with shared utilities (logging, auth, S3 utils) for building on the Allma serverless AI orchestration platform.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
],
|
|
11
11
|
"scripts": {
|
|
12
12
|
"build": "tsc",
|
|
13
|
+
"test": "vitest run",
|
|
13
14
|
"lint": "eslint ."
|
|
14
15
|
},
|
|
15
16
|
"author": "@webjema",
|
|
@@ -34,7 +35,7 @@
|
|
|
34
35
|
"access": "public"
|
|
35
36
|
},
|
|
36
37
|
"dependencies": {
|
|
37
|
-
"@allma/core-types": "^1.
|
|
38
|
+
"@allma/core-types": "^2.1.0",
|
|
38
39
|
"@aws-sdk/client-s3": "^3.500.0",
|
|
39
40
|
"@aws-sdk/client-secrets-manager": "^3.1101.0",
|
|
40
41
|
"@aws-sdk/client-sns": "^3.1101.0",
|
|
@@ -50,9 +51,10 @@
|
|
|
50
51
|
"devDependencies": {
|
|
51
52
|
"typescript": "~5.7.3",
|
|
52
53
|
"eslint": "^9.8.0",
|
|
53
|
-
"typescript-eslint": "^8.0.0"
|
|
54
|
+
"typescript-eslint": "^8.0.0",
|
|
55
|
+
"vitest": "^1.2.0"
|
|
54
56
|
},
|
|
55
57
|
"peerDependencies": {
|
|
56
58
|
"zod": "^3.22.4"
|
|
57
59
|
}
|
|
58
|
-
}
|
|
60
|
+
}
|
package/dist/cdk-utils.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { Construct } from 'constructs';
|
|
2
|
-
import { StepType } from '@allma/core-types';
|
|
3
|
-
export interface ExternalStepRegistrationProps {
|
|
4
|
-
/**
|
|
5
|
-
The name of the central Allma configuration table.
|
|
6
|
-
*/
|
|
7
|
-
configTableName: string;
|
|
8
|
-
/**
|
|
9
|
-
The unique identifier for the step (e.g., 'my-module/my-step').
|
|
10
|
-
*/
|
|
11
|
-
moduleIdentifier: string;
|
|
12
|
-
/**
|
|
13
|
-
The user-friendly name for the step in the UI.
|
|
14
|
-
*/
|
|
15
|
-
displayName: string;
|
|
16
|
-
/**
|
|
17
|
-
A short description of what the step does.
|
|
18
|
-
*/
|
|
19
|
-
description: string;
|
|
20
|
-
/**
|
|
21
|
-
The step's functional type (e.g., DATA_LOAD).
|
|
22
|
-
*/
|
|
23
|
-
stepType: StepType;
|
|
24
|
-
/**
|
|
25
|
-
The ARN of the Lambda function that executes the step's logic.
|
|
26
|
-
*/
|
|
27
|
-
lambdaArn: string;
|
|
28
|
-
/**
|
|
29
|
-
A default configuration object for the step instance when dragged onto the canvas.
|
|
30
|
-
It will be automatically merged with the moduleIdentifier.
|
|
31
|
-
*/
|
|
32
|
-
defaultConfig: Record<string, any>;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
A reusable CDK utility to register an external step in the Allma DynamoDB registry.
|
|
36
|
-
Creates an AwsCustomResource that handles putting the item on deploy/update and deleting it on destroy.
|
|
37
|
-
@param scope The CDK Construct scope.
|
|
38
|
-
@param id The unique ID for this construct.
|
|
39
|
-
@param props The properties for the step registration.
|
|
40
|
-
*/
|
|
41
|
-
export declare function createExternalStepRegistration(scope: Construct, id: string, props: ExternalStepRegistrationProps): void;
|
|
42
|
-
//# sourceMappingURL=cdk-utils.d.ts.map
|
package/dist/cdk-utils.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cdk-utils.d.ts","sourceRoot":"","sources":["../src/cdk-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAKvC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,MAAM,WAAW,6BAA6B;IAC1C;;MAEE;IACF,eAAe,EAAE,MAAM,CAAC;IACxB;;MAEE;IACF,gBAAgB,EAAE,MAAM,CAAC;IACzB;;MAEE;IACF,WAAW,EAAE,MAAM,CAAC;IACpB;;MAEE;IACF,WAAW,EAAE,MAAM,CAAC;IACpB;;MAEE;IACF,QAAQ,EAAE,QAAQ,CAAC;IACnB;;MAEE;IACF,SAAS,EAAE,MAAM,CAAC;IAClB;;;MAGE;IACF,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACtC;AACD;;;;;;EAME;AACF,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,6BAA6B,QAiDhH"}
|
package/dist/cdk-utils.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import * as cdk from 'aws-cdk-lib';
|
|
2
|
-
import * as iam from 'aws-cdk-lib/aws-iam';
|
|
3
|
-
import { AwsCustomResource, PhysicalResourceId } from 'aws-cdk-lib/custom-resources';
|
|
4
|
-
import { RetentionDays } from 'aws-cdk-lib/aws-logs';
|
|
5
|
-
/**
|
|
6
|
-
A reusable CDK utility to register an external step in the Allma DynamoDB registry.
|
|
7
|
-
Creates an AwsCustomResource that handles putting the item on deploy/update and deleting it on destroy.
|
|
8
|
-
@param scope The CDK Construct scope.
|
|
9
|
-
@param id The unique ID for this construct.
|
|
10
|
-
@param props The properties for the step registration.
|
|
11
|
-
*/
|
|
12
|
-
export function createExternalStepRegistration(scope, id, props) {
|
|
13
|
-
const { configTableName, moduleIdentifier, displayName, description, stepType, lambdaArn, defaultConfig } = props;
|
|
14
|
-
const registrationId = `EXTERNAL_STEP#${moduleIdentifier}`;
|
|
15
|
-
const stack = cdk.Stack.of(scope);
|
|
16
|
-
const sdkCall = {
|
|
17
|
-
service: 'DynamoDB',
|
|
18
|
-
action: 'putItem',
|
|
19
|
-
parameters: {
|
|
20
|
-
TableName: configTableName,
|
|
21
|
-
Item: {
|
|
22
|
-
PK: { S: registrationId },
|
|
23
|
-
SK: { S: 'METADATA' },
|
|
24
|
-
itemType: { S: 'ALLMA_EXTERNAL_STEP_REGISTRY' },
|
|
25
|
-
moduleIdentifier: { S: moduleIdentifier },
|
|
26
|
-
lambdaArn: { S: lambdaArn },
|
|
27
|
-
displayName: { S: displayName },
|
|
28
|
-
description: { S: description },
|
|
29
|
-
stepType: { S: stepType },
|
|
30
|
-
defaultConfig: { S: JSON.stringify({ moduleIdentifier, ...defaultConfig }) },
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
physicalResourceId: PhysicalResourceId.of(registrationId),
|
|
34
|
-
};
|
|
35
|
-
const deleteCall = {
|
|
36
|
-
service: 'DynamoDB',
|
|
37
|
-
action: 'deleteItem',
|
|
38
|
-
parameters: {
|
|
39
|
-
TableName: configTableName,
|
|
40
|
-
Key: {
|
|
41
|
-
PK: { S: registrationId },
|
|
42
|
-
SK: { S: 'METADATA' },
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
};
|
|
46
|
-
new AwsCustomResource(scope, id, {
|
|
47
|
-
onCreate: sdkCall,
|
|
48
|
-
onUpdate: sdkCall,
|
|
49
|
-
onDelete: deleteCall,
|
|
50
|
-
logRetention: RetentionDays.ONE_WEEK,
|
|
51
|
-
installLatestAwsSdk: true, // Ensures SDK is up-to-date for DynamoDB calls
|
|
52
|
-
policy: {
|
|
53
|
-
statements: [
|
|
54
|
-
new iam.PolicyStatement({
|
|
55
|
-
actions: ['dynamodb:PutItem', 'dynamodb:DeleteItem'],
|
|
56
|
-
resources: [`arn:aws:dynamodb:${stack.region}:${stack.account}:table/${configTableName}`],
|
|
57
|
-
}),
|
|
58
|
-
],
|
|
59
|
-
},
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
//# sourceMappingURL=cdk-utils.js.map
|
package/dist/cdk-utils.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cdk-utils.js","sourceRoot":"","sources":["../src/cdk-utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC;AACnC,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAc,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AACjG,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAiCrD;;;;;;EAME;AACF,MAAM,UAAU,8BAA8B,CAAC,KAAgB,EAAE,EAAU,EAAE,KAAoC;IAC7G,MAAM,EAAE,eAAe,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IAClH,MAAM,cAAc,GAAG,iBAAkB,gBAA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