@hikae/ledger-core 0.0.0-stage → 0.0.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/LICENSE +9 -0
- package/README.md +8 -2
- package/dist/holds.d.ts +21 -0
- package/dist/holds.js +30 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/ports.d.ts +10 -0
- package/dist/ports.js +3 -0
- package/dist/pr.d.ts +12 -0
- package/dist/pr.js +21 -0
- package/dist/stage.d.ts +10 -0
- package/dist/stage.js +19 -0
- package/dist/tiers.d.ts +70 -0
- package/dist/tiers.js +61 -0
- package/package.json +55 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Hikaru Egashira
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @hikae/ledger-core
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Pure core shared by the local ledger agent and the remote hikaevi host (the libghostty of ledger). No I/O, no cloud SDKs.
|
|
4
|
+
|
|
5
|
+
- `tiers`: ladder-based self-improving model routing (`seedFor`, `tierFor`, `evolve`).
|
|
6
|
+
- `stage`: Issue factory stage machine (`issueStage`, `ISSUE_STAGES`).
|
|
7
|
+
- `ports`: interfaces a host implements (`StateStore`, `Clock`).
|
|
8
|
+
|
|
9
|
+
Design: [docs/core-sdk.md](https://github.com/HikaruEgashira/ledger/blob/main/docs/core-sdk.md).
|
package/dist/holds.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const HOLD_REASONS: readonly ["draft", "scope_excluded", "approved_at_head", "merge_loop", "parked", "dispatched_to_human", "escalation_refused", "human_label", "bot_label", "provider", "repair_failures", "triage_failures", "lease", "lock", "owner_hold"];
|
|
2
|
+
export type HoldReason = (typeof HOLD_REASONS)[number];
|
|
3
|
+
export interface Hold {
|
|
4
|
+
/** Item URL, or "provider" for a provider-wide hold. */
|
|
5
|
+
key: string;
|
|
6
|
+
reason: HoldReason;
|
|
7
|
+
/** Who set it: a human answer, the agent, or the host. */
|
|
8
|
+
by: "human" | "auto" | "host";
|
|
9
|
+
at: string;
|
|
10
|
+
/** ISO time the hold expires (leases, provider back-off); absent = until cleared. */
|
|
11
|
+
until?: string;
|
|
12
|
+
/** For holds tied to a head (owner Hold, approved_at_head): a new head releases the hold. */
|
|
13
|
+
head_sha?: string;
|
|
14
|
+
note?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const HUMAN_HOLD_LABEL = "factory:paused";
|
|
17
|
+
export declare const BOT_HOLD_LABEL = "factory:held";
|
|
18
|
+
/** Active at `now` for the item's current head. */
|
|
19
|
+
export declare function holdActive(h: Hold, now: number, headSha?: string): boolean;
|
|
20
|
+
/** Holds a label set implies (hikaevi stores holds as labels). */
|
|
21
|
+
export declare function labelHolds(key: string, labels: Iterable<string>, at: string): Hold[];
|
package/dist/holds.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// Holds: why an item (or the whole provider) is not being worked on. The union of ledger's doctor holds, task HOLD
|
|
2
|
+
// answers and escalation refusals with hikaevi's label holds, provider hold, failure-count holds and leases.
|
|
3
|
+
export const HOLD_REASONS = [
|
|
4
|
+
// ledger
|
|
5
|
+
"draft", "scope_excluded", "approved_at_head", "merge_loop", "parked", "dispatched_to_human", "escalation_refused",
|
|
6
|
+
// hikaevi
|
|
7
|
+
"human_label", "bot_label", "provider", "repair_failures", "triage_failures", "lease", "lock",
|
|
8
|
+
// both
|
|
9
|
+
"owner_hold",
|
|
10
|
+
];
|
|
11
|
+
export const HUMAN_HOLD_LABEL = "factory:paused";
|
|
12
|
+
export const BOT_HOLD_LABEL = "factory:held";
|
|
13
|
+
/** Active at `now` for the item's current head. */
|
|
14
|
+
export function holdActive(h, now, headSha) {
|
|
15
|
+
if (h.until && Date.parse(h.until) <= now)
|
|
16
|
+
return false;
|
|
17
|
+
if (h.head_sha && headSha && h.head_sha !== headSha)
|
|
18
|
+
return false;
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
/** Holds a label set implies (hikaevi stores holds as labels). */
|
|
22
|
+
export function labelHolds(key, labels, at) {
|
|
23
|
+
const s = new Set([...labels].map((l) => l.toLowerCase()));
|
|
24
|
+
const out = [];
|
|
25
|
+
if (s.has(HUMAN_HOLD_LABEL))
|
|
26
|
+
out.push({ key, reason: "human_label", by: "human", at });
|
|
27
|
+
if (s.has(BOT_HOLD_LABEL))
|
|
28
|
+
out.push({ key, reason: "bot_label", by: "auto", at });
|
|
29
|
+
return out;
|
|
30
|
+
}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
package/dist/ports.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface StateStore {
|
|
2
|
+
get<T = unknown>(key: string): Promise<T | null>;
|
|
3
|
+
put<T = unknown>(key: string, value: T): Promise<void>;
|
|
4
|
+
/** Read-modify-write; implementations must make it atomic or retry on conflict. */
|
|
5
|
+
update<T = unknown>(key: string, fn: (prev: T | null) => T): Promise<T>;
|
|
6
|
+
}
|
|
7
|
+
export interface Clock {
|
|
8
|
+
now(): number;
|
|
9
|
+
}
|
|
10
|
+
export declare const systemClock: Clock;
|
package/dist/ports.js
ADDED
package/dist/pr.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const ACTIVE_STATUSES: readonly ["queued", "reviewing", "waiting_ci", "changes_requested", "ready_to_approve", "approval_pending_verification", "approved", "human_required", "merged_waiting_release", "release_in_progress", "post_release_monitoring", "recovering", "recovered_monitoring", "error"];
|
|
2
|
+
export declare const ALL_STATUSES: readonly ["queued", "reviewing", "waiting_ci", "changes_requested", "ready_to_approve", "approval_pending_verification", "approved", "human_required", "merged_waiting_release", "release_in_progress", "post_release_monitoring", "recovering", "recovered_monitoring", "error", "completed", "closed", "delivery_abandoned"];
|
|
3
|
+
export type PrStatus = (typeof ALL_STATUSES)[number];
|
|
4
|
+
/** Statuses before merge: a head change or draft sends these back to queued. */
|
|
5
|
+
export declare const PRE_MERGE: ReadonlySet<string>;
|
|
6
|
+
export declare const AUTHORED_STATUSES: readonly ["mine_ready_to_merge", "mine_changes_requested", "mine_review_requested"];
|
|
7
|
+
export declare const INVALIDATION_EVENTS: readonly ["CI_COMPLETED", "REQUESTED", "REOPENED", "DRAFTED", "HEAD_CHANGED", "OWNER_ANSWERED"];
|
|
8
|
+
/** A changed head, return to draft or owner answer: back to queued; the old head's decision, evidence and CI completion no longer apply, and an approval awaits re-verification. */
|
|
9
|
+
export declare function invalidate<R extends object>(row: R, event: string): R & {
|
|
10
|
+
status: "queued";
|
|
11
|
+
last_event: string;
|
|
12
|
+
};
|
package/dist/pr.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// PR ledger row statuses and the invalidation transition, shared by ledger (app/src/ledger.ts) and hikaevi
|
|
2
|
+
// (src/ledger.mjs). ledger's authored-PR statuses are part of the union.
|
|
3
|
+
export const ACTIVE_STATUSES = ["queued", "reviewing", "waiting_ci", "changes_requested", "ready_to_approve", "approval_pending_verification",
|
|
4
|
+
"approved", "human_required", "merged_waiting_release", "release_in_progress", "post_release_monitoring", "recovering",
|
|
5
|
+
"recovered_monitoring", "error"];
|
|
6
|
+
export const ALL_STATUSES = [...ACTIVE_STATUSES, "completed", "closed", "delivery_abandoned"];
|
|
7
|
+
/** Statuses before merge: a head change or draft sends these back to queued. */
|
|
8
|
+
export const PRE_MERGE = new Set(["queued", "reviewing", "waiting_ci", "changes_requested", "ready_to_approve",
|
|
9
|
+
"approval_pending_verification", "approved", "human_required", "error"]);
|
|
10
|
+
export const AUTHORED_STATUSES = ["mine_ready_to_merge", "mine_changes_requested", "mine_review_requested"];
|
|
11
|
+
export const INVALIDATION_EVENTS = ["CI_COMPLETED", "REQUESTED", "REOPENED", "DRAFTED", "HEAD_CHANGED", "OWNER_ANSWERED"];
|
|
12
|
+
/** A changed head, return to draft or owner answer: back to queued; the old head's decision, evidence and CI completion no longer apply, and an approval awaits re-verification. */
|
|
13
|
+
export function invalidate(row, event) {
|
|
14
|
+
const next = { ...row, status: "queued", last_event: event };
|
|
15
|
+
delete next.decision;
|
|
16
|
+
delete next.evidence_sha256;
|
|
17
|
+
delete next.ci_completed;
|
|
18
|
+
if (next.approval)
|
|
19
|
+
next.approval = { ...next.approval, verification: "pending" };
|
|
20
|
+
return next;
|
|
21
|
+
}
|
package/dist/stage.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const ISSUE_STAGES: readonly ["triage", "queued", "in_progress", "verifying", "human_required", "backlog", "completed", "closed"];
|
|
2
|
+
export type IssueStage = (typeof ISSUE_STAGES)[number];
|
|
3
|
+
export interface IssueLike {
|
|
4
|
+
state?: string;
|
|
5
|
+
state_reason?: string | null;
|
|
6
|
+
labels?: Array<string | {
|
|
7
|
+
name?: string | null;
|
|
8
|
+
} | null>;
|
|
9
|
+
}
|
|
10
|
+
export declare function issueStage(issue: IssueLike): IssueStage;
|
package/dist/stage.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Issue stage machine: the factory stage of an Issue derived from its state and labels. Shared by the local ledger and
|
|
2
|
+
// the remote hikaevi host so both boards read the same stage for the same Issue.
|
|
3
|
+
export const ISSUE_STAGES = ["triage", "queued", "in_progress", "verifying", "human_required", "backlog", "completed", "closed"];
|
|
4
|
+
export function issueStage(issue) {
|
|
5
|
+
const labels = new Set((issue.labels ?? []).map((l) => String((typeof l === "object" && l !== null ? l.name : l) ?? l).toLowerCase()));
|
|
6
|
+
if (issue.state === "closed")
|
|
7
|
+
return issue.state_reason === "not_planned" || labels.has("factory:duplicate") ? "closed" : "completed";
|
|
8
|
+
if ([...labels].some((l) => l.startsWith("done:")))
|
|
9
|
+
return "verifying";
|
|
10
|
+
if (labels.has("factory:paused") || labels.has("factory:blocked") || labels.has("needs-info"))
|
|
11
|
+
return "human_required";
|
|
12
|
+
if (labels.has("factory:backlog") || labels.has("improvement:observation"))
|
|
13
|
+
return "backlog";
|
|
14
|
+
if (labels.has("factory:tracking") || labels.has("factory:in-progress"))
|
|
15
|
+
return "in_progress";
|
|
16
|
+
if (labels.has("factory:queued") || labels.has("ready-for-doing"))
|
|
17
|
+
return "queued";
|
|
18
|
+
return "triage";
|
|
19
|
+
}
|
package/dist/tiers.d.ts
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export interface TierPolicy {
|
|
2
|
+
/** Models from cheapest (index 0) to most capable. */
|
|
3
|
+
ladder: string[];
|
|
4
|
+
/** Seed model of a scope not listed in `scopes`. */
|
|
5
|
+
default: string;
|
|
6
|
+
promote: {
|
|
7
|
+
min: number;
|
|
8
|
+
rate: number;
|
|
9
|
+
};
|
|
10
|
+
demote: {
|
|
11
|
+
min: number;
|
|
12
|
+
rate: number;
|
|
13
|
+
};
|
|
14
|
+
cooldown_days: number;
|
|
15
|
+
scopes: Record<string, {
|
|
16
|
+
model: string;
|
|
17
|
+
gated?: boolean;
|
|
18
|
+
effort?: string;
|
|
19
|
+
}>;
|
|
20
|
+
/** Default reasoning effort (ledger passes it to the worker; hikaevi omits it). */
|
|
21
|
+
effort?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface Outcome {
|
|
24
|
+
scope: string;
|
|
25
|
+
/** Model that served the run; empty when unknown (treated as the current tier). */
|
|
26
|
+
model: string;
|
|
27
|
+
ok: boolean;
|
|
28
|
+
/** ISO timestamp. */
|
|
29
|
+
at: string;
|
|
30
|
+
kind?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface LearnedEntry {
|
|
33
|
+
model: string;
|
|
34
|
+
at: string;
|
|
35
|
+
reason: string;
|
|
36
|
+
}
|
|
37
|
+
export type Learned = Record<string, LearnedEntry>;
|
|
38
|
+
export interface Tier {
|
|
39
|
+
model: string;
|
|
40
|
+
seed: string;
|
|
41
|
+
source: "seed" | "learned";
|
|
42
|
+
effort?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface EvolveOptions {
|
|
45
|
+
/** Which outcomes count as verifier evidence. Default: the scope is `gated` in the policy. */
|
|
46
|
+
gate?: (o: Outcome) => boolean;
|
|
47
|
+
}
|
|
48
|
+
export declare const seedFor: (scope: string, policy: TierPolicy) => string;
|
|
49
|
+
/** The learned tier when one is recorded and on the ladder, else the seed. */
|
|
50
|
+
export declare function tierFor(scope: string, learned: Learned | undefined, policy: TierPolicy): Tier;
|
|
51
|
+
/** One gated step per scope. Only outcomes since the scope's last change are judged, so a new tier is evaluated on its own runs. */
|
|
52
|
+
export declare function evolve(outcomes: Outcome[], learned: Learned, now: number, policy: TierPolicy, options?: EvolveOptions): {
|
|
53
|
+
learned: Learned;
|
|
54
|
+
changes: string[];
|
|
55
|
+
};
|
|
56
|
+
/** Route for a run: the tier, the seed as fallback when a provider refuses the tier, and a log-safe reason. */
|
|
57
|
+
export declare function route(scope: string, learned: Learned | undefined, policy: TierPolicy): {
|
|
58
|
+
model: string;
|
|
59
|
+
fallback: string;
|
|
60
|
+
reason: string;
|
|
61
|
+
effort?: string;
|
|
62
|
+
};
|
|
63
|
+
/** ledger's legacy learned entry {tier: {model, effort} | null} -> unified entry; null means demoted to `fallbackModel`. */
|
|
64
|
+
export declare function fromLegacyLearned(legacy: Record<string, {
|
|
65
|
+
tier: {
|
|
66
|
+
model: string;
|
|
67
|
+
} | null;
|
|
68
|
+
at: string;
|
|
69
|
+
reason: string;
|
|
70
|
+
}>, fallbackModel: string): Learned;
|
package/dist/tiers.js
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// Self-improving model routing. A scope starts on its seed model; evolve() moves a gated scope one step toward the
|
|
2
|
+
// cheap end of the ladder (promote) only past the verifier gate, and one step toward the expensive end (demote) when
|
|
3
|
+
// its success rate falls. A demoted scope is held for the cooldown before it may be promoted again.
|
|
4
|
+
const DAY_MS = 86_400_000;
|
|
5
|
+
export const seedFor = (scope, policy) => policy.scopes[scope]?.model || policy.default;
|
|
6
|
+
/** The learned tier when one is recorded and on the ladder, else the seed. */
|
|
7
|
+
export function tierFor(scope, learned, policy) {
|
|
8
|
+
const seed = seedFor(scope, policy);
|
|
9
|
+
const model = learned?.[scope]?.model;
|
|
10
|
+
const effort = policy.scopes[scope]?.effort ?? policy.effort;
|
|
11
|
+
const base = effort === undefined ? {} : { effort };
|
|
12
|
+
if (model !== undefined && policy.ladder.includes(model))
|
|
13
|
+
return { model, seed, source: model === seed ? "seed" : "learned", ...base };
|
|
14
|
+
return { model: seed, seed, source: "seed", ...base };
|
|
15
|
+
}
|
|
16
|
+
/** One gated step per scope. Only outcomes since the scope's last change are judged, so a new tier is evaluated on its own runs. */
|
|
17
|
+
export function evolve(outcomes, learned, now, policy, options = {}) {
|
|
18
|
+
const gate = options.gate ?? ((o) => !!policy.scopes[o.scope]?.gated);
|
|
19
|
+
const next = { ...learned };
|
|
20
|
+
const changes = [];
|
|
21
|
+
const byScope = new Map();
|
|
22
|
+
for (const o of outcomes)
|
|
23
|
+
if (gate(o))
|
|
24
|
+
byScope.set(o.scope, [...(byScope.get(o.scope) ?? []), o]);
|
|
25
|
+
const at = new Date(now).toISOString();
|
|
26
|
+
for (const [scope, all] of byScope) {
|
|
27
|
+
const last = learned[scope];
|
|
28
|
+
const since = last?.at ?? "";
|
|
29
|
+
const current = tierFor(scope, learned, policy).model;
|
|
30
|
+
const runs = all.filter((o) => o.at > since && (!o.model || o.model === current));
|
|
31
|
+
if (!runs.length)
|
|
32
|
+
continue;
|
|
33
|
+
const ok = runs.filter((r) => r.ok).length;
|
|
34
|
+
const rate = ok / runs.length;
|
|
35
|
+
const step = policy.ladder.indexOf(current);
|
|
36
|
+
const record = `${ok}/${runs.length}`;
|
|
37
|
+
if (step < policy.ladder.length - 1 && runs.length >= policy.demote.min && rate < policy.demote.rate) {
|
|
38
|
+
const model = policy.ladder[step + 1];
|
|
39
|
+
next[scope] = { model, at, reason: `demote: ${current} ok ${record}` };
|
|
40
|
+
changes.push(`${scope}: ${current} -> ${model} (${next[scope].reason})`);
|
|
41
|
+
}
|
|
42
|
+
else if (step > 0 && runs.length >= policy.promote.min && rate >= policy.promote.rate) {
|
|
43
|
+
if (last?.reason?.startsWith("demote") && now - Date.parse(last.at) < policy.cooldown_days * DAY_MS)
|
|
44
|
+
continue;
|
|
45
|
+
const model = policy.ladder[step - 1];
|
|
46
|
+
next[scope] = { model, at, reason: `promote: ${current} ok ${record}` };
|
|
47
|
+
changes.push(`${scope}: ${current} -> ${model} (${next[scope].reason})`);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return { learned: next, changes };
|
|
51
|
+
}
|
|
52
|
+
/** Route for a run: the tier, the seed as fallback when a provider refuses the tier, and a log-safe reason. */
|
|
53
|
+
export function route(scope, learned, policy) {
|
|
54
|
+
const t = tierFor(scope, learned, policy);
|
|
55
|
+
const name = String(scope).toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "").slice(0, 60) || "unknown";
|
|
56
|
+
return { model: t.model, fallback: t.seed, reason: `tier:${name}:${t.source}`, ...(t.effort === undefined ? {} : { effort: t.effort }) };
|
|
57
|
+
}
|
|
58
|
+
/** ledger's legacy learned entry {tier: {model, effort} | null} -> unified entry; null means demoted to `fallbackModel`. */
|
|
59
|
+
export function fromLegacyLearned(legacy, fallbackModel) {
|
|
60
|
+
return Object.fromEntries(Object.entries(legacy).map(([k, v]) => [k, { model: v.tier?.model ?? fallbackModel, at: v.at, reason: v.reason }]));
|
|
61
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,57 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hikae/ledger-core",
|
|
3
|
-
"version": "0.0.0
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "Pure core shared by the local ledger agent and the remote hikaevi host: model tier policy, issue stage machine, port interfaces.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/HikaruEgashira/ledger.git",
|
|
10
|
+
"directory": "packages/core"
|
|
11
|
+
},
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"default": "./dist/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./tiers": {
|
|
18
|
+
"types": "./dist/tiers.d.ts",
|
|
19
|
+
"default": "./dist/tiers.js"
|
|
20
|
+
},
|
|
21
|
+
"./stage": {
|
|
22
|
+
"types": "./dist/stage.d.ts",
|
|
23
|
+
"default": "./dist/stage.js"
|
|
24
|
+
},
|
|
25
|
+
"./ports": {
|
|
26
|
+
"types": "./dist/ports.d.ts",
|
|
27
|
+
"default": "./dist/ports.js"
|
|
28
|
+
},
|
|
29
|
+
"./pr": {
|
|
30
|
+
"types": "./dist/pr.d.ts",
|
|
31
|
+
"default": "./dist/pr.js"
|
|
32
|
+
},
|
|
33
|
+
"./holds": {
|
|
34
|
+
"types": "./dist/holds.d.ts",
|
|
35
|
+
"default": "./dist/holds.js"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"files": [
|
|
39
|
+
"dist",
|
|
40
|
+
"README.md",
|
|
41
|
+
"LICENSE"
|
|
42
|
+
],
|
|
43
|
+
"sideEffects": false,
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">=22"
|
|
46
|
+
},
|
|
47
|
+
"scripts": {
|
|
48
|
+
"build": "rm -rf dist && tsc -p .",
|
|
49
|
+
"test": "npm run build && node --test test/*.test.mjs"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"typescript": "5.9.3"
|
|
53
|
+
},
|
|
54
|
+
"publishConfig": {
|
|
55
|
+
"access": "public"
|
|
56
|
+
}
|
|
57
|
+
}
|