@ghostlytools/sdk 1.10.2 → 1.10.3
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/core.js +2 -2
- package/dist/{fakes-Bj5HAJFV.js → fakes-Dbw01Dk9.js} +2 -2
- package/dist/{fakes-Bj5HAJFV.js.map → fakes-Dbw01Dk9.js.map} +1 -1
- package/dist/fakes.js +1 -1
- package/dist/index.js +2 -2
- package/dist/{keet-identity-key-BgbqG2dL.js → keet-identity-key-BT3p-YEj.js} +2 -2
- package/dist/{keet-identity-key-BgbqG2dL.js.map → keet-identity-key-BT3p-YEj.js.map} +1 -1
- package/dist/{src-DHR2fUGx.js → src-CCGK1Q_h.js} +249 -72
- package/dist/src-CCGK1Q_h.js.map +1 -0
- package/dist/testing.js +3 -3
- package/dist/types/core/src/chatFiles.d.ts +6 -0
- package/dist/types/core/src/dhtDelivery.d.ts +5 -0
- package/dist/types/core/src/ghostlink.d.ts +2 -0
- package/dist/types/core/src/groupCommunity.d.ts +3 -1
- package/dist/types/core/src/groupSession.d.ts +26 -2
- package/dist/types/core/src/identityProofs.d.ts +2 -0
- package/dist/{verify-aVAh4GtV.js → verify-DXMSqZzR.js} +2 -2
- package/dist/{verify-aVAh4GtV.js.map → verify-DXMSqZzR.js.map} +1 -1
- package/package.json +1 -1
- package/dist/src-DHR2fUGx.js.map +0 -1
package/dist/testing.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Mw as createIdentity, Pu as emptyIdentityLedger, Ru as identityStatement, Vu as newIdentityBinding, ia as isBitcoinAddress, ju as IdentityExchange, ka as decodeBolt11, xu as IDENTITY_MAX_EVIDENCE } from "./src-CCGK1Q_h.js";
|
|
2
2
|
import { l as providerDescriptorProblems, o as isNothingSpentError } from "./types-DvtCy3WB.js";
|
|
3
|
-
import { i as verifyIdentity, r as descriptorProblems } from "./verify-
|
|
4
|
-
import { _ as fakeAddress, a as fakeAccount, b as fakeOnchain, c as fakeKeySign, d as fakeRecord, f as fakeRecordText, g as TEST_PROVIDERS_FLAG, h as FakeOnchainProvider, i as TEST_IDENTITIES_FLAG, l as fakeKeySubject, m as FakeLightningProvider, n as FAKE_ISSUER, o as fakeAccountToken, p as testIdentitiesEnabled, r as FAKE_RECORD_HOST, s as fakeKey, t as FAKE_IDENTITY_PROVIDERS, u as fakeKeyring, v as fakeInvoice, x as testProvidersEnabled, y as fakeLightning } from "./fakes-
|
|
3
|
+
import { i as verifyIdentity, r as descriptorProblems } from "./verify-DXMSqZzR.js";
|
|
4
|
+
import { _ as fakeAddress, a as fakeAccount, b as fakeOnchain, c as fakeKeySign, d as fakeRecord, f as fakeRecordText, g as TEST_PROVIDERS_FLAG, h as FakeOnchainProvider, i as TEST_IDENTITIES_FLAG, l as fakeKeySubject, m as FakeLightningProvider, n as FAKE_ISSUER, o as fakeAccountToken, p as testIdentitiesEnabled, r as FAKE_RECORD_HOST, s as fakeKey, t as FAKE_IDENTITY_PROVIDERS, u as fakeKeyring, v as fakeInvoice, x as testProvidersEnabled, y as fakeLightning } from "./fakes-Dbw01Dk9.js";
|
|
5
5
|
import { afterEach, describe, expect, it, vi } from "vitest";
|
|
6
6
|
//#region ../browser/src/engine/paymentAdapters/providers/contractSuite.ts
|
|
7
7
|
var WAIT = 1e4;
|
|
@@ -436,6 +436,12 @@ export declare class ChatFiles {
|
|
|
436
436
|
/** Takes an offered file. */
|
|
437
437
|
accept(id: string): void;
|
|
438
438
|
decline(id: string): void;
|
|
439
|
+
/**
|
|
440
|
+
* An offer taken here whose record or message the host could not store: refused, so its sender does not count it
|
|
441
|
+
* delivered and keeps its Retry, and forgotten, so that retry is a new offer here. Nothing of it is reported changed
|
|
442
|
+
* (there is nothing to write it to); what was stored of it is removed.
|
|
443
|
+
*/
|
|
444
|
+
refuse(id: string, why: RefuseReason): void;
|
|
439
445
|
pause(direction: "in" | "out", id: string): void;
|
|
440
446
|
resume(direction: "in" | "out", id: string): void;
|
|
441
447
|
cancel(direction: "in" | "out", id: string): void;
|
|
@@ -264,6 +264,11 @@ export declare class DhtDelivery {
|
|
|
264
264
|
/** The contact took this side's reactions up to number `n`. */
|
|
265
265
|
reactionsTaken?(n: number): Promise<void>;
|
|
266
266
|
pollMs?: number;
|
|
267
|
+
/**
|
|
268
|
+
* How often a contact that chose DHT only is read with the chat in the background, where every chat counts as open
|
|
269
|
+
* (a CLI daemon: `ACTIVE_DHT_POLL_MS`). Absent: at the background pace (WISP 403, poll pace).
|
|
270
|
+
*/
|
|
271
|
+
peerDhtPollMs?: number;
|
|
267
272
|
/**
|
|
268
273
|
* A chat already paired, started again: its first control envelope goes this long after the start, not in the
|
|
269
274
|
* burst of an app coming back (bug hunt r7a). A text, a receipt, a new mode or a new capability revision still go at once.
|
|
@@ -549,6 +549,8 @@ export interface GhostLinkOptions {
|
|
|
549
549
|
state?: DhtDeliveryState;
|
|
550
550
|
save(state: DhtDeliveryState): Promise<void>;
|
|
551
551
|
pollMs?: number;
|
|
552
|
+
/** How often a contact that chose DHT only is read with the chat in the background (a CLI daemon's, `DhtDelivery`). */
|
|
553
|
+
peerDhtPollMs?: number;
|
|
552
554
|
/** A chat already paired, started again: its first control envelope waits this long (`DhtDelivery`). */
|
|
553
555
|
firstControlAfterMs?: number;
|
|
554
556
|
/** This side's capability-record revision, told in every envelope (WISP 03). */
|
|
@@ -648,7 +648,8 @@ export declare class CommunitySession {
|
|
|
648
648
|
* it was in. What one who left wrote while in the group is taken and handed on, its goodbye included, up to what the
|
|
649
649
|
* member who committed the leave had heard of it then (its `group-left` mark), never past it: the leaver still holds
|
|
650
650
|
* those epochs' secrets, and anything it signs later is not heard (WISP 903 § Leaving and removal). No mark here
|
|
651
|
-
* (one not come yet, or a committer's app before it) and nothing of it is heard.
|
|
651
|
+
* (one not come yet, or a committer's app before it) and nothing of it is heard. A key let in only on a branch that
|
|
652
|
+
* lost is heard no more either, as one removed, once this member knows it lost.
|
|
652
653
|
*/
|
|
653
654
|
private heardAfterOut;
|
|
654
655
|
/** The mark of a leave on my branch, as a frame to hand on (see `heardAfterOut`). */
|
|
@@ -769,6 +770,7 @@ export declare class CommunitySession {
|
|
|
769
770
|
/** Whether this device may sign commits for the group now (`CommunitySessionHooks.adminWork`). */
|
|
770
771
|
get adminWork(): boolean;
|
|
771
772
|
private requireAdmin;
|
|
773
|
+
/** `alongside`: what else the commit changes in the state, saved in the same write (only once the commit is signed). */
|
|
772
774
|
private commit;
|
|
773
775
|
/** What an entry session sends a joiner first. */
|
|
774
776
|
inviteFrame(): CommunityInviteFrame;
|
|
@@ -73,6 +73,15 @@ export declare const GROUP_LIMITS: {
|
|
|
73
73
|
readonly saveWithinMs: 1000;
|
|
74
74
|
/** New name records of one member taken in `syncWindowMs` (WISP 902 § Messages, "The name record"): one a rename. */
|
|
75
75
|
readonly namesPerMember: 4;
|
|
76
|
+
/**
|
|
77
|
+
* Messages of one member taken per `messageWindowMs`, and the bytes of their frames, past a burst of twice its whole
|
|
78
|
+
* log (`AuthorPace`); its edits the same, counted apart. As a community's (`COMMUNITY_LIMITS.messagesPerAuthor`): each
|
|
79
|
+
* one taken is a row in every member's app and a frame each hub passes on. The rest are not taken now and come again
|
|
80
|
+
* in a catch-up.
|
|
81
|
+
*/
|
|
82
|
+
readonly messagesPerAuthor: 30;
|
|
83
|
+
readonly messageBytesPerAuthor: number;
|
|
84
|
+
readonly messageWindowMs: 10000;
|
|
76
85
|
};
|
|
77
86
|
/** What every member should know about who can read what, in the words the apps show. */
|
|
78
87
|
export declare const GROUP_READ_NOTE: string;
|
|
@@ -401,6 +410,11 @@ export interface GroupSessionHooks {
|
|
|
401
410
|
* after one parent halt the group. Absent: true.
|
|
402
411
|
*/
|
|
403
412
|
adminWork?(): boolean;
|
|
413
|
+
/**
|
|
414
|
+
* The hubs I count on (WISP 902 · Group Mesh § Hubs), when the group runs on them: they carry my edits on even of a
|
|
415
|
+
* message from before they were let in, which they cannot read. Absent or empty: a full mesh.
|
|
416
|
+
*/
|
|
417
|
+
carriers?(): readonly string[];
|
|
404
418
|
/**
|
|
405
419
|
* Whether a fresh turn read says this device is the active one (WISP 06 § When a device checks), asked before every
|
|
406
420
|
* commit: two devices that both think they are active would each commit after one parent, and the group halts. No:
|
|
@@ -466,6 +480,9 @@ export declare class GroupSession {
|
|
|
466
480
|
private nameSaid;
|
|
467
481
|
/** New name records taken per member, a few a minute (`GROUP_LIMITS.namesPerMember`). In memory only. */
|
|
468
482
|
private namesTaken;
|
|
483
|
+
/** Messages, and apart from them edits, taken per author (`AuthorPace`). In memory only. */
|
|
484
|
+
private messagePace;
|
|
485
|
+
private editPace;
|
|
469
486
|
private queue;
|
|
470
487
|
/** One metadata frame that names a commit or an epoch I do not have yet: tried again when the chain moves. */
|
|
471
488
|
private pendingMeta;
|
|
@@ -640,7 +657,12 @@ export declare class GroupSession {
|
|
|
640
657
|
private pruneRelay;
|
|
641
658
|
/** Whether a kept edit is a removal (WISP 400 § Delete for everyone): its box, under its epoch's key, says `rm`. */
|
|
642
659
|
private isRemovalEdit;
|
|
643
|
-
/**
|
|
660
|
+
/**
|
|
661
|
+
* Another member's edit, kept to hand on: the latest per message. Full (in count or in bytes), the oldest of the author
|
|
662
|
+
* who holds the most of it goes (the one just kept's own on a tie): an author's edits of messages that are not there,
|
|
663
|
+
* which no keeper can tell (a hub cannot even open them), as many as it likes, push out only its own. False: one as
|
|
664
|
+
* new was kept, or this one went.
|
|
665
|
+
*/
|
|
644
666
|
private keepEdit;
|
|
645
667
|
/** A frame of another member, kept to hand on; the oldest go once the log is full. */
|
|
646
668
|
private keep;
|
|
@@ -748,7 +770,8 @@ export declare class GroupSession {
|
|
|
748
770
|
/**
|
|
749
771
|
* Says an edit of one of my messages (WISP 902 § Edits): edit `v`, the whole new text and its mentions, sealed under
|
|
750
772
|
* the key of the message's epoch and signed, to every member of that epoch still in the group, or to `to` alone (an
|
|
751
|
-
* edge that just opened). Someone admitted after the message cannot open it and is not sent it
|
|
773
|
+
* edge that just opened). Someone admitted after the message cannot open it and is not sent it, but a hub I count on
|
|
774
|
+
* (`hooks.carriers`), which carries it on to the members who can. The message's
|
|
752
775
|
* epoch key must still be here: past `GROUP_LIMITS.secrets` epochs a message cannot be edited.
|
|
753
776
|
*/
|
|
754
777
|
sendEdit(messageId: string, edit: {
|
|
@@ -875,6 +898,7 @@ export declare class GroupSession {
|
|
|
875
898
|
*/
|
|
876
899
|
private receiveEdit;
|
|
877
900
|
private parkEdit;
|
|
901
|
+
private paced;
|
|
878
902
|
private wholeSigned;
|
|
879
903
|
/**
|
|
880
904
|
* The author's name in a message (`nk`), when the author's signature over it (`ns`) holds: any copy, handed on or
|
|
@@ -120,6 +120,8 @@ export declare function signIdentityPresentation(seed: Uint8Array, proofId: stri
|
|
|
120
120
|
export declare function verifyIdentityPresentation(key: string, sig: string, proofId: string, scope: IdentityScope, nonce: string, issuedAt: number): boolean;
|
|
121
121
|
/** Bounds a provider's result so a buggy provider cannot store or show arbitrary data. */
|
|
122
122
|
export declare function boundVerifiedIdentity(v: VerifiedIdentity): VerifiedIdentity;
|
|
123
|
+
/** Bounds a provider's public name/picture (from a proof or `lookupDisplay`): a name with nothing visible left is dropped. */
|
|
124
|
+
export declare function boundIdentityDisplay(d: IdentityDisplay): IdentityDisplay;
|
|
123
125
|
/** Sharer side, one per proof shared in this conversation. */
|
|
124
126
|
export interface SharedIdentity {
|
|
125
127
|
id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Au as IdentityCheckUnavailable,
|
|
1
|
+
import { Au as IdentityCheckUnavailable, Nu as boundVerifiedIdentity } from "./src-CCGK1Q_h.js";
|
|
2
2
|
//#region ../browser/src/proofs/verify.ts
|
|
3
3
|
var DAY = 86400;
|
|
4
4
|
/**
|
|
@@ -103,4 +103,4 @@ function boundedIdentityFetch(options = { online: () => true }) {
|
|
|
103
103
|
//#endregion
|
|
104
104
|
export { verifyIdentity as i, boundedIdentityFetch as n, descriptorProblems as r, availableSigners as t };
|
|
105
105
|
|
|
106
|
-
//# sourceMappingURL=verify-
|
|
106
|
+
//# sourceMappingURL=verify-DXMSqZzR.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-
|
|
1
|
+
{"version":3,"file":"verify-DXMSqZzR.js","names":[],"sources":["../../browser/src/proofs/verify.ts"],"sourcesContent":["import { boundVerifiedIdentity, IdentityCheckUnavailable, IDENTITY_MAX_EVIDENCE, IDENTITY_MAX_VALIDITY, type IdentityStatement, type VerifiedIdentity } from \"@ghostly/core\";\nimport type { IdentityFetch, IdentityProofProvider, IdentitySigner, VerifyContext } from \"./contract\";\n\nconst DAY = 86_400;\n\n/**\n * The checks every proof goes through, whatever its provider: known provider, validity within the\n * provider's limit, bounded evidence, strict parsing, the provider's own check, and the category rule\n * (a self-custodied proof proves exactly the subject it names; an attested one says who attests it).\n * The engine verifies a contact's proof, and the person's own proof before saving it, only through this.\n */\nexport async function verifyIdentity(providers: readonly IdentityProofProvider[], statement: IdentityStatement, evidence: unknown, ctx: VerifyContext): Promise<VerifiedIdentity> {\n const { binding } = statement;\n const provider = providers.find(p => p.id === binding.provider);\n if (!provider) throw new Error(\"This app cannot verify this kind of identity\");\n if (binding.expiresAt - binding.issuedAt > Math.min(provider.validity.maxDays * DAY, IDENTITY_MAX_VALIDITY)) throw new Error(\"The proof lasts longer than this kind of identity allows\");\n if (JSON.stringify(evidence ?? null).length > IDENTITY_MAX_EVIDENCE) throw new Error(\"Evidence too large\");\n const parsed = provider.parseEvidence(evidence);\n const verified = boundVerifiedIdentity(await provider.verify(statement, parsed, ctx));\n if (provider.category === \"self-custodied\" && verified.subject !== binding.subject) throw new Error(\"The evidence is for another identity\");\n if (provider.category === \"provider-attested\" && !verified.attester) throw new Error(\"The evidence does not say who attests it\");\n return verified;\n}\n\n/** Problems with a provider's descriptor, empty when it is well-formed. The registry and the contract suite use it. */\nexport function descriptorProblems(p: IdentityProofProvider): string[] {\n const problems: string[] = [];\n if (!/^[a-z][a-z0-9-]{0,31}$/.test(p.id)) problems.push(\"id must match ^[a-z][a-z0-9-]{0,31}$\");\n if (!p.label?.trim()) problems.push(\"label is empty\");\n if (!p.description?.trim()) problems.push(\"description is empty\");\n if (!p.privacy?.trim()) problems.push(\"privacy is empty: say what verify contacts\");\n if (p.category !== \"self-custodied\" && p.category !== \"provider-attested\") problems.push(\"category is unknown\");\n if (!p.platforms.length) problems.push(\"no platforms\");\n const { defaultDays, maxDays } = p.validity;\n if (!(Number.isInteger(defaultDays) && Number.isInteger(maxDays) && defaultDays >= 1 && defaultDays <= maxDays && maxDays * DAY <= IDENTITY_MAX_VALIDITY)) problems.push(\"validity must be whole days, 1 ≤ default ≤ max ≤ 400\");\n if (p.recheck && !(Number.isInteger(p.recheck.afterSeconds) && p.recheck.afterSeconds >= 60)) problems.push(\"recheck.afterSeconds must be at least 60\");\n if (!p.signers.length) problems.push(\"no signers\");\n const ids = p.signers.map(s => s.id);\n if (new Set(ids).size !== ids.length) problems.push(\"signer ids are not unique\");\n for (const s of p.signers as readonly IdentitySigner<unknown>[]) {\n if (![\"in-app\", \"external-tool\", \"redirect\", \"publish\"].includes(s.kind)) problems.push(`signer ${s.id} has an unknown kind`);\n if (s.kind === \"in-app\" && typeof s.run !== \"function\") problems.push(`signer ${s.id} has no run()`);\n if (s.kind === \"external-tool\" && (typeof s.instructions !== \"function\" || typeof s.parse !== \"function\")) problems.push(`signer ${s.id} needs instructions() and parse()`);\n if (s.kind === \"redirect\" && typeof s.start !== \"function\") problems.push(`signer ${s.id} has no start()`);\n if (s.kind === \"publish\" && (typeof s.instructions !== \"function\" || typeof s.evidence !== \"function\")) problems.push(`signer ${s.id} needs instructions() and evidence()`);\n }\n return problems;\n}\n\n/** Signers of a provider that run on this platform and are available in this window. */\nexport function availableSigners<E>(p: IdentityProofProvider<E>, platform: IdentityProofProvider[\"platforms\"][number]): IdentitySigner<E>[] {\n return p.signers.filter(s => (s.platforms ?? p.platforms).includes(platform) && (s.available?.() ?? true));\n}\n\n/**\n * The engine's `ctx.fetch`: HTTPS GET only, no credentials or referrer, a time-out, a size cap,\n * redirects refused unless asked for.\n * `online` false refuses everything (the person turned the network off).\n */\nexport function boundedIdentityFetch(options: { online: () => boolean; timeoutMs?: number; fetcher?: typeof fetch } = { online: () => true }): IdentityFetch {\n return async (url, { headers, maxBytes = 64 * 1024, signal, redirect = \"error\" } = {}) => {\n if (!options.online()) throw new IdentityCheckUnavailable(\"Offline: this identity cannot be checked now\");\n const target = new URL(url);\n if (target.protocol !== \"https:\" || target.username || target.password) throw new Error(\"Identity checks use HTTPS only\");\n const timeout = AbortSignal.timeout(options.timeoutMs ?? 10_000);\n const response = await (options.fetcher ?? fetch)(target.href, {\n headers, signal: signal ? AbortSignal.any([signal, timeout]) : timeout,\n credentials: \"omit\", referrerPolicy: \"no-referrer\", cache: \"no-store\", redirect,\n });\n if (Number(response.headers.get(\"content-length\")) > maxBytes) throw new Error(\"Identity check response too large\");\n const reader = response.body?.getReader();\n const parts: Uint8Array[] = [];\n let length = 0;\n if (reader) {\n try {\n for (;;) {\n const { done, value } = await reader.read();\n if (done) break;\n length += value.length;\n if (length > maxBytes) throw new Error(\"Identity check response too large\");\n parts.push(value);\n }\n } finally { await reader.cancel().catch(() => {}); }\n }\n const bytes = new Uint8Array(length);\n let offset = 0;\n for (const part of parts) { bytes.set(part, offset); offset += part.length; }\n return { status: response.status, contentType: response.headers.get(\"content-type\") ?? \"\", text: new TextDecoder().decode(bytes), bytes };\n };\n}\n"],"mappings":";;AAGA,IAAM,MAAM;;;;;;;AAQZ,eAAsB,eAAe,WAA6C,WAA8B,UAAmB,KAA+C;CAChL,MAAM,EAAE,YAAY;CACpB,MAAM,WAAW,UAAU,MAAK,MAAK,EAAE,OAAO,QAAQ,QAAQ;CAC9D,IAAI,CAAC,UAAU,MAAM,IAAI,MAAM,8CAA8C;CAC7E,IAAI,QAAQ,YAAY,QAAQ,WAAW,KAAK,IAAI,SAAS,SAAS,UAAU,KAAA,MAA0B,GAAG,MAAM,I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;EAC/D,MAAM,WAAW,OAAO,QAAQ,WAAW,MAAA,CAAO,OAAO,MAAM;GAC7D;GAAS,QAAQ,SAAS,YAAY,IAAI,CAAC,QAAQ,OAAO,CAAC,IAAI;GAC/D,aAAa;GAAQ,gBAAgB;GAAe,OAAO;GAAY;EACzE,CAAC;EACD,IAAI,OAAO,SAAS,QAAQ,IAAI,gBAAgB,CAAC,IAAI,UAAU,MAAM,IAAI,MAAM,mCAAmC;EAClH,MAAM,SAAS,SAAS,MAAM,UAAU;EACxC,MAAM,QAAsB,CAAC;EAC7B,IAAI,SAAS;EACb,IAAI,QACF,IAAI;GACF,SAAS;IACP,MAAM,EAAE,MAAM,UAAU,MAAM,OAAO,KAAK;IAC1C,IAAI,MAAM;IACV,UAAU,MAAM;IAChB,IAAI,SAAS,UAAU,MAAM,IAAI,MAAM,mCAAmC;IAC1E,MAAM,KAAK,KAAK;GAClB;EACF,UAAU;GAAE,MAAM,OAAO,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC;EAAG;EAErD,MAAM,QAAQ,IAAI,WAAW,MAAM;EACnC,IAAI,SAAS;EACb,KAAK,MAAM,QAAQ,OAAO;GAAE,MAAM,IAAI,MAAM,MAAM;GAAG,UAAU,KAAK;EAAQ;EAC5E,OAAO;GAAE,QAAQ,SAAS;GAAQ,aAAa,SAAS,QAAQ,IAAI,cAAc,KAAK;GAAI,MAAM,IAAI,YAAY,CAAC,CAAC,OAAO,KAAK;GAAG;EAAM;CAC1I;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ghostlytools/sdk",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Build a wallet source, an identity proof, a mini-app or a client for Ghostly without reading its internals: the adapter contracts, their fakes and contract test suites, the plugin registry, and the mini-app API types (Apps run in Ghostly 1.2 and later).",
|
|
6
6
|
"license": "MIT",
|