@astram/core 1.9.0 → 1.11.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/dist/audit/audit-recorder.d.ts +38 -2
- package/dist/audit/audit-recorder.d.ts.map +1 -1
- package/dist/audit/audit-recorder.js +39 -12
- package/dist/audit/audit-recorder.js.map +1 -1
- package/dist/audit/audit-row.d.ts +63 -0
- package/dist/audit/audit-row.d.ts.map +1 -0
- package/dist/audit/audit-row.js +99 -0
- package/dist/audit/audit-row.js.map +1 -0
- package/dist/audit/errors.d.ts +22 -0
- package/dist/audit/errors.d.ts.map +1 -1
- package/dist/audit/errors.js +18 -0
- package/dist/audit/errors.js.map +1 -1
- package/dist/audit/index.d.ts +1 -0
- package/dist/audit/index.d.ts.map +1 -1
- package/dist/audit/index.js +3 -0
- package/dist/audit/index.js.map +1 -1
- package/dist/audit/ports.d.ts +13 -8
- package/dist/audit/ports.d.ts.map +1 -1
- package/dist/audit/ports.js +7 -5
- package/dist/audit/ports.js.map +1 -1
- package/dist/authentication/captcha.d.ts +58 -0
- package/dist/authentication/captcha.d.ts.map +1 -0
- package/dist/authentication/captcha.js +37 -0
- package/dist/authentication/captcha.js.map +1 -0
- package/dist/authentication/index.d.ts +3 -0
- package/dist/authentication/index.d.ts.map +1 -1
- package/dist/authentication/index.js +6 -0
- package/dist/authentication/index.js.map +1 -1
- package/dist/authentication/login-name.d.ts +22 -0
- package/dist/authentication/login-name.d.ts.map +1 -0
- package/dist/authentication/login-name.js +35 -0
- package/dist/authentication/login-name.js.map +1 -0
- package/dist/authentication/mfa-requirement.d.ts +156 -0
- package/dist/authentication/mfa-requirement.d.ts.map +1 -0
- package/dist/authentication/mfa-requirement.js +122 -0
- package/dist/authentication/mfa-requirement.js.map +1 -0
- package/dist/database/framework-tables.d.ts.map +1 -1
- package/dist/database/framework-tables.js +3 -1
- package/dist/database/framework-tables.js.map +1 -1
- package/dist-cjs/audit/audit-recorder.js +40 -12
- package/dist-cjs/audit/audit-row.js +102 -0
- package/dist-cjs/audit/errors.js +20 -1
- package/dist-cjs/audit/index.js +3 -0
- package/dist-cjs/audit/ports.js +7 -5
- package/dist-cjs/authentication/captcha.js +40 -0
- package/dist-cjs/authentication/index.js +6 -0
- package/dist-cjs/authentication/login-name.js +39 -0
- package/dist-cjs/authentication/mfa-requirement.js +127 -0
- package/dist-cjs/database/framework-tables.js +3 -1
- package/package.json +6 -1
package/dist-cjs/audit/errors.js
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* ADR-0003: framework-agnostic — no framework / HTTP / DB / node imports.
|
|
19
19
|
*/
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.AuditValidationError = void 0;
|
|
21
|
+
exports.AuditRowError = exports.AuditValidationError = void 0;
|
|
22
22
|
/**
|
|
23
23
|
* Thrown by `record()` when an {@link import('./index.js').AuditEvent} fails the
|
|
24
24
|
* attribution / tenant-scope / UTC-time gate (AC-2): a blank/absent `actorId`, a
|
|
@@ -42,3 +42,22 @@ class AuditValidationError extends Error {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
exports.AuditValidationError = AuditValidationError;
|
|
45
|
+
/**
|
|
46
|
+
* Thrown by `auditEventFromRow` / `toSafeInteger` (`./audit-row.ts`) when a STORED
|
|
47
|
+
* row cannot be turned back into the exact `AuditEvent` that is hashed. A repeating
|
|
48
|
+
* error: the same row fails the same way on every retry, so the sealer parks that
|
|
49
|
+
* tenant until the next sweep (SPEC §5.G). Names the reason only; NEVER carries the
|
|
50
|
+
* offending value (it comes from the database and could be anything).
|
|
51
|
+
*/
|
|
52
|
+
class AuditRowError extends Error {
|
|
53
|
+
/** The specific row problem. */
|
|
54
|
+
reason;
|
|
55
|
+
constructor(reason) {
|
|
56
|
+
super(`audit_row_rejected:${reason}`);
|
|
57
|
+
this.name = 'AuditRowError';
|
|
58
|
+
this.reason = reason;
|
|
59
|
+
// Preserve the prototype chain when compiled down-level so `instanceof` works.
|
|
60
|
+
Object.setPrototypeOf(this, AuditRowError.prototype);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
exports.AuditRowError = AuditRowError;
|
package/dist-cjs/audit/index.js
CHANGED
|
@@ -37,3 +37,6 @@ __exportStar(require("./errors.js"), exports);
|
|
|
37
37
|
// - the tamper-evident recorder `createAuditRecorder` (IS an AuditSink) + the pure
|
|
38
38
|
// `verifyChain` primitive + the GENESIS chain constant:
|
|
39
39
|
__exportStar(require("./audit-recorder.js"), exports);
|
|
40
|
+
// - the stored-row mapping for the durable chain (`auditEventFromRow`, `toSafeInteger`,
|
|
41
|
+
// `AuditLogRow`); `linkEntry` / `ChainAnchor` come from `./audit-recorder.js` above:
|
|
42
|
+
__exportStar(require("./audit-row.js"), exports);
|
package/dist-cjs/audit/ports.js
CHANGED
|
@@ -6,11 +6,13 @@
|
|
|
6
6
|
* knowing which crypto / DB backs them.
|
|
7
7
|
*
|
|
8
8
|
* ADR-0003 (zero-dep Core): every concrete adapter (`node:crypto` SHA-256, the
|
|
9
|
-
* append-only MariaDB `
|
|
10
|
-
* CANNOT live here. The Core defines only these interfaces
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
9
|
+
* append-only MariaDB `<ns>_audit` tables) is a real runtime dependency and
|
|
10
|
+
* CANNOT live here. The Core defines only these interfaces. `@astram/guard` ships
|
|
11
|
+
* the SHA-256 `HashFunction` and the deferred sealer (`AuditChainSealer`,
|
|
12
|
+
* audit-chain-store SPEC §5.G), which chains committed `audit_log` rows with
|
|
13
|
+
* `linkEntry` instead of injecting a store into `createAuditRecorder(...)`. This
|
|
14
|
+
* keeps `@astram/core` at ZERO runtime dependencies (the load-bearing invariant)
|
|
15
|
+
* while the substrate stays swappable.
|
|
14
16
|
*
|
|
15
17
|
* ⛔ SECURITY — the audit engine records for INTEGRITY, not confidentiality. It
|
|
16
18
|
* NEVER persists a secret value (a denylist strips secret-bearing keys before a
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* CAPTCHA verification port (auth capabilities R7.1, R7.4, R7.5; G-017).
|
|
4
|
+
*
|
|
5
|
+
* Core names the contract only; the Turnstile and reCAPTCHA adapters live in `@astram/guard`
|
|
6
|
+
* (D-4: `fetch`, no new dependency). A verifier checks one client token with the provider and
|
|
7
|
+
* answers one of three outcomes:
|
|
8
|
+
* - passed: the provider accepted the token AND its hostname is expected, its action matches the
|
|
9
|
+
* endpoint and (reCAPTCHA v3) its score reaches the minimum;
|
|
10
|
+
* - rejected (`reason`): the token is missing, invalid, from another hostname, for another action,
|
|
11
|
+
* below the score, or already used (`timeout-or-duplicate`);
|
|
12
|
+
* - unavailable: the provider could not answer (network error, timeout, 5xx, unreadable body).
|
|
13
|
+
* This is NOT a rejection: the caller applies its fail mode (closed by default, R7.5).
|
|
14
|
+
*
|
|
15
|
+
* A verifier never logs or returns the secret or the token.
|
|
16
|
+
*
|
|
17
|
+
* ADR-0003: framework-agnostic, no I/O here.
|
|
18
|
+
*/
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.CAPTCHA_FAILURE_REASONS = exports.CAPTCHA_PROVIDERS = void 0;
|
|
21
|
+
exports.isCaptchaUnavailable = isCaptchaUnavailable;
|
|
22
|
+
/** The CAPTCHA providers the framework ships adapters for (`CAPTCHA_PROVIDER`). */
|
|
23
|
+
exports.CAPTCHA_PROVIDERS = Object.freeze([
|
|
24
|
+
'turnstile',
|
|
25
|
+
'recaptcha-v3',
|
|
26
|
+
'recaptcha-v2',
|
|
27
|
+
]);
|
|
28
|
+
/** Why a token was rejected. Never carries provider text. */
|
|
29
|
+
exports.CAPTCHA_FAILURE_REASONS = Object.freeze([
|
|
30
|
+
'invalid',
|
|
31
|
+
'hostname',
|
|
32
|
+
'action',
|
|
33
|
+
'score',
|
|
34
|
+
'reused',
|
|
35
|
+
'missing',
|
|
36
|
+
]);
|
|
37
|
+
/** True for the provider-outage outcome. */
|
|
38
|
+
function isCaptchaUnavailable(result) {
|
|
39
|
+
return result.ok === false && result.reason === 'unavailable';
|
|
40
|
+
}
|
|
@@ -42,3 +42,9 @@ __exportStar(require("./totp.js"), exports);
|
|
|
42
42
|
__exportStar(require("./authenticator.js"), exports);
|
|
43
43
|
// Service-account API-key authentication (ADR-0033) — the machine/agent/MCP auth path:
|
|
44
44
|
__exportStar(require("./service-account-authenticator.js"), exports);
|
|
45
|
+
// Login name (sign-in handle) rule: normalise + validate (auth capabilities R1.3, B-4):
|
|
46
|
+
__exportStar(require("./login-name.js"), exports);
|
|
47
|
+
// Mandatory 2FA requirement rule + `MfaRequirementSource` port (auth capabilities R2, B-1, B-2):
|
|
48
|
+
__exportStar(require("./mfa-requirement.js"), exports);
|
|
49
|
+
// CAPTCHA verifier port (auth capabilities R7.1; adapters live in guard, D-4):
|
|
50
|
+
__exportStar(require("./captcha.js"), exports);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Login name (the sign-in handle, `users.u_login_name`; auth capabilities R1.3, B-4).
|
|
4
|
+
*
|
|
5
|
+
* One rule shared by guard (login lookup), identity (admin create/update) and `bootstrap:org`:
|
|
6
|
+
* `[a-z0-9._-]`, 3–64 characters, stored lower-case. ASCII input is trimmed and lower-cased,
|
|
7
|
+
* nothing else. Input holding any non-ASCII character is returned as typed (not trimmed, not
|
|
8
|
+
* lower-cased) and so is never valid: the check runs BEFORE lower-casing, because Unicode case
|
|
9
|
+
* mapping can land on ASCII (KELVIN SIGN U+212A lower-cases to `k`). A valid login name never
|
|
10
|
+
* contains `@`, so it can never equal an email address.
|
|
11
|
+
*
|
|
12
|
+
* ADR-0003: framework-agnostic, no I/O.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.normalizeLoginName = normalizeLoginName;
|
|
16
|
+
exports.isValidLoginName = isValidLoginName;
|
|
17
|
+
exports.looksLikeEmail = looksLikeEmail;
|
|
18
|
+
/** The stored form: lower-case `[a-z0-9._-]`, 3–64 characters (never `@`). */
|
|
19
|
+
const LOGIN_NAME_PATTERN = /^[a-z0-9._-]{3,64}$/;
|
|
20
|
+
/** Any character outside 7-bit ASCII (astral characters are surrogate pairs, in range). */
|
|
21
|
+
const NON_ASCII = /[\u0080-\uffff]/;
|
|
22
|
+
/**
|
|
23
|
+
* Trim and lower-case typed ASCII input; no other transformation. Non-ASCII input comes back
|
|
24
|
+
* unchanged, so `isValidLoginName(normalizeLoginName(x))` is false for it.
|
|
25
|
+
*/
|
|
26
|
+
function normalizeLoginName(input) {
|
|
27
|
+
const typed = String(input);
|
|
28
|
+
if (NON_ASCII.test(typed))
|
|
29
|
+
return typed;
|
|
30
|
+
return typed.trim().toLowerCase();
|
|
31
|
+
}
|
|
32
|
+
/** True when `value` (already normalized) is an allowed login name. Never throws. */
|
|
33
|
+
function isValidLoginName(value) {
|
|
34
|
+
return typeof value === 'string' && LOGIN_NAME_PATTERN.test(value);
|
|
35
|
+
}
|
|
36
|
+
/** True when a typed sign-in hint is an email form (contains `@`); otherwise it may be a handle. */
|
|
37
|
+
function looksLikeEmail(hint) {
|
|
38
|
+
return typeof hint === 'string' && hint.includes('@');
|
|
39
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MFA_REQUIREMENT_FACTORS = exports.MS_PER_DAY = exports.MAX_MFA_GRACE_DAYS = exports.SECURITY_POLICY_TARGET_KINDS = void 0;
|
|
4
|
+
exports.permissionKeysOverlap = permissionKeysOverlap;
|
|
5
|
+
exports.isSecurityPolicyPermissionTarget = isSecurityPolicyPermissionTarget;
|
|
6
|
+
exports.evaluateMfaRequirement = evaluateMfaRequirement;
|
|
7
|
+
/** The target kinds, in their stable order. */
|
|
8
|
+
exports.SECURITY_POLICY_TARGET_KINDS = Object.freeze([
|
|
9
|
+
'tenant',
|
|
10
|
+
'role',
|
|
11
|
+
'permission',
|
|
12
|
+
]);
|
|
13
|
+
/** Longest grace a policy may give (R2.4). */
|
|
14
|
+
exports.MAX_MFA_GRACE_DAYS = 14;
|
|
15
|
+
/** One day in milliseconds (grace days → deadline). */
|
|
16
|
+
exports.MS_PER_DAY = 24 * 60 * 60 * 1000;
|
|
17
|
+
/**
|
|
18
|
+
* Factors that satisfy a mandatory-2FA policy (R2.8): TOTP today; passkey and email code join when
|
|
19
|
+
* they ship. Recovery codes never satisfy enrolment.
|
|
20
|
+
*/
|
|
21
|
+
exports.MFA_REQUIREMENT_FACTORS = Object.freeze(['totp']);
|
|
22
|
+
/** The prefix a wildcard key covers (`identity:*` and bare `identity` → `identity:`), else null. */
|
|
23
|
+
function wildcardPrefix(key) {
|
|
24
|
+
if (key.endsWith(':*'))
|
|
25
|
+
return key.slice(0, -1);
|
|
26
|
+
if (!key.includes(':'))
|
|
27
|
+
return `${key}:`;
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Whether two permission keys overlap under the grant wildcard forms (`module`, `module:*`,
|
|
32
|
+
* `module:type:*`), in either direction: exact = exact, a wildcard covers keys under its prefix,
|
|
33
|
+
* two wildcards overlap when one prefix contains the other. Empty or `*` keys match nothing.
|
|
34
|
+
*/
|
|
35
|
+
function permissionKeysOverlap(a, b) {
|
|
36
|
+
if (typeof a !== 'string' || typeof b !== 'string')
|
|
37
|
+
return false;
|
|
38
|
+
if (a === '' || b === '' || a === '*' || b === '*')
|
|
39
|
+
return false;
|
|
40
|
+
const pa = wildcardPrefix(a);
|
|
41
|
+
const pb = wildcardPrefix(b);
|
|
42
|
+
if (pa === null && pb === null)
|
|
43
|
+
return a === b;
|
|
44
|
+
if (pa !== null && pb === null)
|
|
45
|
+
return b.startsWith(pa);
|
|
46
|
+
if (pa === null && pb !== null)
|
|
47
|
+
return a.startsWith(pb);
|
|
48
|
+
return pa.startsWith(pb) || pb.startsWith(pa);
|
|
49
|
+
}
|
|
50
|
+
const SEGMENT = '[a-z][a-z0-9_]*';
|
|
51
|
+
const PERMISSION_TARGET = new RegExp(`^${SEGMENT}(?::\\*|:${SEGMENT}:\\*|:${SEGMENT}:${SEGMENT})?$`);
|
|
52
|
+
/**
|
|
53
|
+
* True when `key` may be named by a `permission` policy: an exact `module:type:action` key or a
|
|
54
|
+
* grant wildcard (`module`, `module:*`, `module:type:*`), segments `^[a-z][a-z0-9_]*$`, at most 255
|
|
55
|
+
* characters (the column width).
|
|
56
|
+
*/
|
|
57
|
+
function isSecurityPolicyPermissionTarget(key) {
|
|
58
|
+
return typeof key === 'string' && key.length <= 255 && PERMISSION_TARGET.test(key);
|
|
59
|
+
}
|
|
60
|
+
function graceOf(p) {
|
|
61
|
+
const g = p.graceDays;
|
|
62
|
+
return typeof g === 'number' && Number.isInteger(g) && g >= 0 && g <= exports.MAX_MFA_GRACE_DAYS ? g : 0;
|
|
63
|
+
}
|
|
64
|
+
function strings(xs) {
|
|
65
|
+
return Array.isArray(xs) ? xs.filter((x) => typeof x === 'string') : [];
|
|
66
|
+
}
|
|
67
|
+
function applies(p, subject, nodes) {
|
|
68
|
+
const platform = p.platform === true;
|
|
69
|
+
if (subject.isRoot === true && !platform)
|
|
70
|
+
return false; // D-11
|
|
71
|
+
if (!platform) {
|
|
72
|
+
if (typeof p.scopeNodeId !== 'string' || !nodes.has(p.scopeNodeId))
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
switch (p.kind) {
|
|
76
|
+
case 'tenant':
|
|
77
|
+
return true;
|
|
78
|
+
case 'role':
|
|
79
|
+
return (typeof p.target === 'string' &&
|
|
80
|
+
p.target !== '' &&
|
|
81
|
+
strings(subject.roleIds).includes(p.target));
|
|
82
|
+
case 'permission':
|
|
83
|
+
return (typeof p.target === 'string' &&
|
|
84
|
+
strings(subject.permissionKeys).some((k) => permissionKeysOverlap(p.target, k)));
|
|
85
|
+
default:
|
|
86
|
+
// An unknown kind is never silently ignored: it applies to its scope (fail closed).
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
/** Evaluate the mandatory-2FA requirement for one principal at one instant (see file header). */
|
|
91
|
+
function evaluateMfaRequirement(input) {
|
|
92
|
+
const { subject, nowMs } = input;
|
|
93
|
+
const nodes = new Set(strings(subject.nodeIds));
|
|
94
|
+
const applying = (Array.isArray(input.policies) ? input.policies : []).filter((p) => applies(p, subject, nodes));
|
|
95
|
+
const applied = Object.freeze({
|
|
96
|
+
kinds: Object.freeze([...new Set(applying.map((p) => p.kind))].sort()),
|
|
97
|
+
platformFloor: applying.some((p) => p.platform === true),
|
|
98
|
+
policyIds: Object.freeze([
|
|
99
|
+
...new Set(applying.map((p) => p.id).filter((id) => typeof id === 'string')),
|
|
100
|
+
].sort()),
|
|
101
|
+
});
|
|
102
|
+
const stored = typeof input.requiredSinceMs === 'number' &&
|
|
103
|
+
Number.isFinite(input.requiredSinceMs) &&
|
|
104
|
+
input.requiredSinceMs >= 0
|
|
105
|
+
? input.requiredSinceMs
|
|
106
|
+
: null;
|
|
107
|
+
const hadClock = input.requiredSinceMs !== null && input.requiredSinceMs !== undefined;
|
|
108
|
+
if (applying.length === 0) {
|
|
109
|
+
// Review round 1, item E: "no policy at the current node" never clears the clock (only
|
|
110
|
+
// enrolment does), so switching scope away and back cannot restart a grace period.
|
|
111
|
+
return Object.freeze({ status: 'not_required', clock: hadClock ? 'keep' : 'none', applied });
|
|
112
|
+
}
|
|
113
|
+
if (input.hasConfirmedFactor === true) {
|
|
114
|
+
return Object.freeze({ status: 'enrolled', clock: hadClock ? 'clear' : 'none', applied });
|
|
115
|
+
}
|
|
116
|
+
// A stored clock in the future (clock skew) cannot push the deadline out: it restarts at now,
|
|
117
|
+
// and `setRequiredSince` keeps the earlier of the two values.
|
|
118
|
+
const usable = stored !== null && stored <= nowMs;
|
|
119
|
+
const clock = usable ? 'keep' : 'start';
|
|
120
|
+
const requiredSinceMs = usable ? stored : nowMs;
|
|
121
|
+
const grace = Math.min(...applying.map(graceOf));
|
|
122
|
+
const deadlineMs = requiredSinceMs + grace * exports.MS_PER_DAY;
|
|
123
|
+
if (nowMs < deadlineMs) {
|
|
124
|
+
return Object.freeze({ status: 'grace', requiredSinceMs, deadlineMs, clock, applied });
|
|
125
|
+
}
|
|
126
|
+
return Object.freeze({ status: 'required', requiredSinceMs, clock, applied });
|
|
127
|
+
}
|
|
@@ -25,6 +25,7 @@ exports.FRAMEWORK_TABLES = Object.freeze({
|
|
|
25
25
|
'shared_resource',
|
|
26
26
|
'service_account',
|
|
27
27
|
'stored_file',
|
|
28
|
+
'security_policy',
|
|
28
29
|
]),
|
|
29
30
|
identity: Object.freeze([
|
|
30
31
|
'identity_credential',
|
|
@@ -34,6 +35,7 @@ exports.FRAMEWORK_TABLES = Object.freeze({
|
|
|
34
35
|
'password_reset_token',
|
|
35
36
|
'mfa_recovery_code',
|
|
36
37
|
'email_change_token',
|
|
38
|
+
'mfa_requirement_state',
|
|
37
39
|
]),
|
|
38
40
|
authz: Object.freeze([
|
|
39
41
|
'permission',
|
|
@@ -47,7 +49,7 @@ exports.FRAMEWORK_TABLES = Object.freeze({
|
|
|
47
49
|
'service_account_key',
|
|
48
50
|
'cross_tenant_grant',
|
|
49
51
|
]),
|
|
50
|
-
audit: Object.freeze(['audit_log']),
|
|
52
|
+
audit: Object.freeze(['audit_log', 'audit_chain', 'audit_chain_checkpoint']),
|
|
51
53
|
});
|
|
52
54
|
/** Framework stored routines. */
|
|
53
55
|
exports.FRAMEWORK_ROUTINES = Object.freeze(['prune_audit']);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astram/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Astram framework — sealed security core (Identity, Authentication, Session, Risk, Authorization, Audit). ZERO framework deps — the portable decision brain (ADR-0003). The frozen public contract consumers build against; installed, not edited (ADR-0023).",
|
|
6
6
|
"type": "module",
|
|
@@ -27,6 +27,11 @@
|
|
|
27
27
|
"typescript": "^5.7.0",
|
|
28
28
|
"vitest": "^2.1.8"
|
|
29
29
|
},
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "git+https://github.com/ASTRAM-2-0/astram-framework.git",
|
|
33
|
+
"directory": "packages/core"
|
|
34
|
+
},
|
|
30
35
|
"scripts": {
|
|
31
36
|
"build": "tsc -p tsconfig.json && tsc -p tsconfig.cjs.json && node scripts/write-cjs-marker.mjs",
|
|
32
37
|
"lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
|