@ariestools/aries-dapp-core 0.1.7 → 0.1.8

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.
Files changed (75) hide show
  1. package/README.md +253 -32
  2. package/dist/bin/dappServer.mjs +614 -100
  3. package/dist/node/DappActor.d.ts +28 -7
  4. package/dist/node/DappActor.d.ts.map +1 -1
  5. package/dist/node/actor/AbstractActor.d.ts +13 -8
  6. package/dist/node/actor/AbstractActor.d.ts.map +1 -1
  7. package/dist/node/actor/types.d.ts +7 -0
  8. package/dist/node/actor/types.d.ts.map +1 -1
  9. package/dist/node/bin/dappServer.d.ts +8 -4
  10. package/dist/node/bin/dappServer.d.ts.map +1 -1
  11. package/dist/node/boot/bootDappActors.d.ts +12 -1
  12. package/dist/node/boot/bootDappActors.d.ts.map +1 -1
  13. package/dist/node/consumer/api.d.ts +56 -0
  14. package/dist/node/consumer/api.d.ts.map +1 -0
  15. package/dist/node/consumer/hash.d.ts +6 -0
  16. package/dist/node/consumer/hash.d.ts.map +1 -0
  17. package/dist/node/consumer/parse.d.ts +18 -0
  18. package/dist/node/consumer/parse.d.ts.map +1 -0
  19. package/dist/node/consumer.d.ts +9 -0
  20. package/dist/node/consumer.d.ts.map +1 -0
  21. package/dist/node/consumer.mjs +330 -0
  22. package/dist/node/consumer.mjs.map +7 -0
  23. package/dist/node/examples/productionComposition.d.ts +114 -0
  24. package/dist/node/examples/productionComposition.d.ts.map +1 -0
  25. package/dist/node/index.d.ts +25 -3
  26. package/dist/node/index.d.ts.map +1 -1
  27. package/dist/node/index.mjs +1730 -68
  28. package/dist/node/index.mjs.map +4 -4
  29. package/dist/node/locator/createDappLocator.d.ts +32 -5
  30. package/dist/node/locator/createDappLocator.d.ts.map +1 -1
  31. package/dist/node/providers/DappBucketStore.d.ts +26 -21
  32. package/dist/node/providers/DappBucketStore.d.ts.map +1 -1
  33. package/dist/node/providers/capabilities.d.ts +49 -0
  34. package/dist/node/providers/capabilities.d.ts.map +1 -0
  35. package/dist/node/providers/errors.d.ts +11 -0
  36. package/dist/node/providers/errors.d.ts.map +1 -0
  37. package/dist/node/providers/hashBytes.d.ts +3 -0
  38. package/dist/node/providers/hashBytes.d.ts.map +1 -0
  39. package/dist/node/providers/joinKey.d.ts +11 -0
  40. package/dist/node/providers/joinKey.d.ts.map +1 -0
  41. package/dist/node/providers/memoryBucketStore.d.ts +14 -0
  42. package/dist/node/providers/memoryBucketStore.d.ts.map +1 -0
  43. package/dist/node/providers/types.d.ts +99 -0
  44. package/dist/node/providers/types.d.ts.map +1 -0
  45. package/dist/node/publication/canonicalHead.d.ts +7 -0
  46. package/dist/node/publication/canonicalHead.d.ts.map +1 -0
  47. package/dist/node/publication/commitHead.d.ts +9 -0
  48. package/dist/node/publication/commitHead.d.ts.map +1 -0
  49. package/dist/node/publication/constants.d.ts +27 -0
  50. package/dist/node/publication/constants.d.ts.map +1 -0
  51. package/dist/node/publication/gc.d.ts +42 -0
  52. package/dist/node/publication/gc.d.ts.map +1 -0
  53. package/dist/node/publication/incremental.d.ts +83 -0
  54. package/dist/node/publication/incremental.d.ts.map +1 -0
  55. package/dist/node/publication/publishGeneration.d.ts +18 -0
  56. package/dist/node/publication/publishGeneration.d.ts.map +1 -0
  57. package/dist/node/publication/putCreateOnly.d.ts +11 -0
  58. package/dist/node/publication/putCreateOnly.d.ts.map +1 -0
  59. package/dist/node/publication/releases.d.ts +49 -0
  60. package/dist/node/publication/releases.d.ts.map +1 -0
  61. package/dist/node/publication/safety.d.ts +55 -0
  62. package/dist/node/publication/safety.d.ts.map +1 -0
  63. package/dist/node/publication/shard.d.ts +7 -0
  64. package/dist/node/publication/shard.d.ts.map +1 -0
  65. package/dist/node/publication/status.d.ts +27 -0
  66. package/dist/node/publication/status.d.ts.map +1 -0
  67. package/dist/node/publication/statusPatch.d.ts +10 -0
  68. package/dist/node/publication/statusPatch.d.ts.map +1 -0
  69. package/dist/node/publication/types.d.ts +138 -0
  70. package/dist/node/publication/types.d.ts.map +1 -0
  71. package/dist/node/publication/writeGenerationObjects.d.ts +5 -0
  72. package/dist/node/publication/writeGenerationObjects.d.ts.map +1 -0
  73. package/dist/node/reducer/DappReducer.d.ts +37 -14
  74. package/dist/node/reducer/DappReducer.d.ts.map +1 -1
  75. package/package.json +12 -5
@@ -0,0 +1,138 @@
1
+ import type { DappObjectWriter } from '../providers/capabilities.ts';
2
+ import type { GENERATION_MANIFEST_SCHEMA, HEAD_MANIFEST_SCHEMA, INDEXER_STATUS_SCHEMA } from './constants.ts';
3
+ import type { PublicationConflict, PublicationSafety, PublicationTrust } from './safety.ts';
4
+ /** One published object within a generation. */
5
+ export interface GenerationObjectRef {
6
+ contentType?: string;
7
+ /** SHA-256 hex of the object body. */
8
+ hash: string;
9
+ /** Relative key under the role store (includes `generations/<id>/...`). */
10
+ key: string;
11
+ /** Optional public URL when the role has a CDN base configured. */
12
+ publicUrl?: string;
13
+ role: 'state' | 'index';
14
+ size: number;
15
+ }
16
+ /**
17
+ * Immutable generation manifest. Identifies and hashes every state/index
18
+ * object in the generation and records source progress plus reducer/schema
19
+ * versions so clients can verify coherence.
20
+ */
21
+ export interface GenerationManifest {
22
+ generation: string;
23
+ objects: GenerationObjectRef[];
24
+ publishedAt: string;
25
+ reducer: {
26
+ name: string;
27
+ version?: string;
28
+ };
29
+ schema: typeof GENERATION_MANIFEST_SCHEMA;
30
+ schemaVersion?: string;
31
+ source: {
32
+ completedPosition?: string;
33
+ cursor?: string;
34
+ floor?: string;
35
+ observedHead?: string;
36
+ };
37
+ }
38
+ /**
39
+ * Small mutable head object written last. Points at one complete generation
40
+ * so readers never observe a partial publication.
41
+ */
42
+ export type PublicationLayout = 'full' | 'incremental-cas';
43
+ export interface HeadManifest {
44
+ generation: string;
45
+ /** Publication layout; omit/`full` for classic generations/ manifests. */
46
+ layout?: PublicationLayout;
47
+ /** SHA-256 of the generation manifest (full) or map root (incremental). */
48
+ manifestHash: string;
49
+ /** Relative key of the generation manifest or map root on the state store. */
50
+ manifestKey: string;
51
+ /** Prior generation id when this head advances a chain. */
52
+ previousGeneration?: string;
53
+ publishedAt: string;
54
+ /** Monotonic revision when known (1 for first head). */
55
+ revision?: number;
56
+ schema: typeof HEAD_MANIFEST_SCHEMA;
57
+ /** Detached signature over canonical head bytes (signed trust mode). */
58
+ signature?: string;
59
+ trust?: 'trusted-origin' | 'signed';
60
+ }
61
+ /**
62
+ * Machine-readable indexer status published through object storage so a
63
+ * backend with no inbound listener can still expose progress to operators and
64
+ * CDN readers.
65
+ */
66
+ export interface IndexerStatus {
67
+ consecutiveFailures: number;
68
+ cursor?: string;
69
+ floor?: string;
70
+ generation?: string;
71
+ /** Relative key or public URL of the generation root/manifest. */
72
+ generationRoot?: string;
73
+ lastCompletedPosition?: string;
74
+ lastError?: string;
75
+ lastErrorAt?: string;
76
+ lastSuccessAt?: string;
77
+ observedSourceHead?: string;
78
+ schema: typeof INDEXER_STATUS_SCHEMA;
79
+ updatedAt: string;
80
+ }
81
+ export interface PublishObjectInput {
82
+ body: string | Uint8Array;
83
+ contentType?: string;
84
+ /** Relative path under the generation root (not including `generations/<id>/`). */
85
+ key: string;
86
+ metadata?: Record<string, string>;
87
+ }
88
+ export interface PublishGenerationInput {
89
+ /**
90
+ * When false, skip the capability probe (tests with known-good stores).
91
+ * Default true when safety is conditional-head.
92
+ */
93
+ assertSafety?: boolean;
94
+ /**
95
+ * ETag of the current head for CAS update. Omit when creating the first head
96
+ * (If-None-Match: *). Required for non-first conditional-head publishes.
97
+ */
98
+ expectedHeadEtag?: string;
99
+ generation?: string;
100
+ index: DappObjectWriter;
101
+ indexObjects?: readonly PublishObjectInput[];
102
+ /** Prior generation id recorded on the new head. */
103
+ previousGeneration?: string;
104
+ reducer: {
105
+ name: string;
106
+ version?: string;
107
+ };
108
+ /** Monotonic revision for the new head (defaults to 1 or previous+1 when known). */
109
+ revision?: number;
110
+ /**
111
+ * Fencing mode. Required for production-safe publication. Use
112
+ * `{ mode: 'conditional-head' }` when the provider supports CAS, or inject a
113
+ * lease adapter.
114
+ */
115
+ safety: PublicationSafety;
116
+ schemaVersion?: string;
117
+ signal?: AbortSignal;
118
+ source?: GenerationManifest['source'];
119
+ state: DappObjectWriter;
120
+ stateObjects?: readonly PublishObjectInput[];
121
+ trust?: PublicationTrust;
122
+ }
123
+ export interface PublishGenerationSuccess {
124
+ generation: string;
125
+ head: HeadManifest;
126
+ headEtag?: string;
127
+ headKey: string;
128
+ manifest: GenerationManifest;
129
+ manifestHash: string;
130
+ manifestKey: string;
131
+ ok: true;
132
+ }
133
+ export interface PublishGenerationConflict {
134
+ conflict: PublicationConflict;
135
+ ok: false;
136
+ }
137
+ export type PublishGenerationResult = PublishGenerationSuccess | PublishGenerationConflict;
138
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/publication/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AACpE,OAAO,KAAK,EACV,0BAA0B,EAAE,oBAAoB,EAAE,qBAAqB,EACxE,MAAM,gBAAgB,CAAA;AACvB,OAAO,KAAK,EACV,mBAAmB,EAAE,iBAAiB,EAAE,gBAAgB,EACzD,MAAM,aAAa,CAAA;AAEpB,gDAAgD;AAChD,MAAM,WAAW,mBAAmB;IAClC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,sCAAsC;IACtC,IAAI,EAAE,MAAM,CAAA;IACZ,2EAA2E;IAC3E,GAAG,EAAE,MAAM,CAAA;IACX,mEAAmE;IACnE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,OAAO,GAAG,OAAO,CAAA;IACvB,IAAI,EAAE,MAAM,CAAA;CACb;AAED;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,mBAAmB,EAAE,CAAA;IAC9B,WAAW,EAAE,MAAM,CAAA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AQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,EAAE,EAAE,IAAI,CAAA;CACT;AAED,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,mBAAmB,CAAA;IAC7B,EAAE,EAAE,KAAK,CAAA;CACV;AAED,MAAM,MAAM,uBAAuB,GAAG,wBAAwB,GAAG,yBAAyB,CAAA"}
@@ -0,0 +1,5 @@
1
+ import type { DappObjectWriter } from '../providers/capabilities.ts';
2
+ import type { GenerationObjectRef, PublishObjectInput } from './types.ts';
3
+ export declare function writeImmutableObjects(store: DappObjectWriter, role: 'state' | 'index', generation: string, objects: readonly PublishObjectInput[], signal: AbortSignal | undefined, fenced: boolean): Promise<GenerationObjectRef[]>;
4
+ export declare function writeManifest(store: DappObjectWriter, manifestKey: string, manifestBody: string, fenced: boolean): Promise<void>;
5
+ //# sourceMappingURL=writeGenerationObjects.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"writeGenerationObjects.d.ts","sourceRoot":"","sources":["../../../src/publication/writeGenerationObjects.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAIpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAYzE,wBAAsB,qBAAqB,CACzC,KAAK,EAAE,gBAAgB,EACvB,IAAI,EAAE,OAAO,GAAG,OAAO,EACvB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,SAAS,kBAAkB,EAAE,EACtC,MAAM,EAAE,WAAW,GAAG,SAAS,EAC/B,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,mBAAmB,EAAE,CAAC,CA8BhC;AAED,wBAAsB,aAAa,CACjC,KAAK,EAAE,gBAAgB,EACvB,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,IAAI,CAAC,CAUf"}
@@ -1,29 +1,52 @@
1
1
  import type { Logger } from '@ariestools/sdk';
2
- import type { DappBucketStore } from '../providers/DappBucketStore.ts';
2
+ import type { DappObjectReader, DappObjectWriter } from '../providers/capabilities.ts';
3
+ /**
4
+ * Optional progress a reducer may return after a successful pass. The actor
5
+ * uses it to publish durable indexer status; the cursor must not advance past
6
+ * a fully published generation (the publication helper writes head last).
7
+ */
8
+ export interface DappReduceProgress {
9
+ cursor?: string;
10
+ floor?: string;
11
+ generation?: string;
12
+ generationRoot?: string;
13
+ lastCompletedPosition?: string;
14
+ observedSourceHead?: string;
15
+ }
3
16
  /** What a reducer is handed each pass: the three bucket stores plus a logger. */
4
17
  export interface DappReduceContext {
5
- /** Immutable source of truth. */
6
- data: DappBucketStore;
7
- /** Derived, query-optimized views. */
8
- index: DappBucketStore;
18
+ /**
19
+ * Immutable reducer input / materialization (may be a datalake replica).
20
+ * Read-only: reducers must not write through this principal.
21
+ */
22
+ data: DappObjectReader;
23
+ /** Derived, query-optimized views (writable). */
24
+ index: DappObjectWriter;
9
25
  logger: Logger;
10
- /** Derived current view. */
11
- state: DappBucketStore;
26
+ /**
27
+ * Abort signal cancelled when the actor stops. Long reducers should check
28
+ * `signal.aborted` or pass it into fetches so shutdown can bound in-flight work.
29
+ */
30
+ signal: AbortSignal;
31
+ /** Derived current view (writable). */
32
+ state: DappObjectWriter;
12
33
  }
13
34
  /**
14
35
  * The pluggable unit of dapp logic. The DappActor timer calls `reduce` on an
15
- * interval; an implementation reads the immutable `data` bucket and rebuilds
16
- * `state` and `index`. Passes should be idempotent and resume from a watermark
17
- * so a slow or interrupted pass is safe to repeat.
36
+ * interval; an implementation reads the immutable `data` bucket (and/or other
37
+ * authoritative sources) and rebuilds `state` and `index`. Passes should be
38
+ * idempotent and resume from a watermark so a slow or interrupted pass is safe
39
+ * to repeat.
18
40
  */
19
41
  export interface DappReducer {
20
42
  readonly name: string;
21
- reduce(context: DappReduceContext): Promise<void>;
43
+ readonly version?: string;
44
+ reduce(context: DappReduceContext): Promise<void | DappReduceProgress>;
22
45
  }
23
46
  /**
24
- * Default reducer: does nothing. The harness runs the full timer/provider
25
- * spine with this in place; supply a real reducer to derive `state` and
26
- * `index` from `data`.
47
+ * Default reducer: does nothing. The local harness runs the full timer/provider
48
+ * spine with this in place; production entrypoints must supply a real reducer.
49
+ * **Development only** — not a production indexer.
27
50
  */
28
51
  export declare const noopReducer: DappReducer;
29
52
  //# sourceMappingURL=DappReducer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DappReducer.d.ts","sourceRoot":"","sources":["../../../src/reducer/DappReducer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAE7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AAEtE,iFAAiF;AACjF,MAAM,WAAW,iBAAiB;IAChC,iCAAiC;IACjC,IAAI,EAAE,eAAe,CAAA;IACrB,sCAAsC;IACtC,KAAK,EAAE,eAAe,CAAA;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,4BAA4B;IAC5B,KAAK,EAAE,eAAe,CAAA;CACvB;AAED;;;;;GAKG;AACH,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,MAAM,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAClD;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAAE,WAKzB,CAAA"}
1
+ {"version":3,"file":"DappReducer.d.ts","sourceRoot":"","sources":["../../../src/reducer/DappReducer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAE7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAEtF;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED,iFAAiF;AACjF,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,IAAI,EAAE,gBAAgB,CAAA;IACtB,iDAAiD;IACjD,KAAK,EAAE,gBAAgB,CAAA;IACvB,MAAM,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,MAAM,EAAE,WAAW,CAAA;IACnB,uCAAuC;IACvC,KAAK,EAAE,gBAAgB,CAAA;CACxB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,MAAM,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,GAAG,kBAAkB,CAAC,CAAA;CACvE;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAAE,WAKzB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ariestools/aries-dapp-core",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Aries dapp backend core: the DappActor (forked xl1 actor pattern), process-wide provider locator, pluggable reducer, and the composed daemon that runs the storage server plus actors",
5
5
  "keywords": [
6
6
  "ariestools",
@@ -24,6 +24,10 @@
24
24
  "types": "./dist/node/index.d.ts",
25
25
  "default": "./dist/node/index.mjs"
26
26
  },
27
+ "./consumer": {
28
+ "types": "./dist/node/consumer.d.ts",
29
+ "default": "./dist/node/consumer.mjs"
30
+ },
27
31
  "./package.json": "./package.json"
28
32
  },
29
33
  "bin": {
@@ -33,14 +37,11 @@
33
37
  "dist",
34
38
  "README.md"
35
39
  ],
36
- "publishConfig": {
37
- "access": "public"
38
- },
39
40
  "dependencies": {
40
41
  "@ariestools/sdk": "~8.1.1",
41
42
  "@aws-sdk/client-s3": "~3.1090.0",
42
43
  "tslib": "~2.8.1",
43
- "@ariestools/aries-dapp-serve": "~0.1.7"
44
+ "@ariestools/aries-dapp-serve": "~0.1.8"
44
45
  },
45
46
  "devDependencies": {
46
47
  "@ariestools/toolchain": "~8.7.16",
@@ -52,10 +53,16 @@
52
53
  "vite": "~8.1.5",
53
54
  "vitest": "~4.1.10"
54
55
  },
56
+ "peerDependencies": {
57
+ "@ariestools/sdk": "^8.1"
58
+ },
55
59
  "engines": {
56
60
  "node": ">=18.17.1"
57
61
  },
58
62
  "engineStrict": true,
63
+ "publishConfig": {
64
+ "access": "public"
65
+ },
59
66
  "scripts": {
60
67
  "package-compile": "package-compile-only && rolldown -c rolldown.config.ts"
61
68
  }