@fungi.computer/puffball 0.0.0-stage → 0.0.1

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 (110) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +443 -2
  3. package/dist/app-api.d.ts +7 -0
  4. package/dist/app-api.js +61 -0
  5. package/dist/app-backend-binding-vocabulary.d.ts +299 -0
  6. package/dist/app-backend-binding-vocabulary.js +257 -0
  7. package/dist/app-backend-bindings.d.ts +21 -0
  8. package/dist/app-backend-bindings.js +47 -0
  9. package/dist/app-declaration.d.ts +46 -0
  10. package/dist/app-declaration.js +115 -0
  11. package/dist/app-event-facts.d.ts +40 -0
  12. package/dist/app-event-facts.js +28 -0
  13. package/dist/app-method-context.d.ts +109 -0
  14. package/dist/app-method-context.js +9 -0
  15. package/dist/app-method-runtime.d.ts +86 -0
  16. package/dist/app-method-runtime.js +122 -0
  17. package/dist/app-origin-paths.d.ts +6 -0
  18. package/dist/app-origin-paths.js +6 -0
  19. package/dist/app-vocabulary.d.ts +189 -0
  20. package/dist/app-vocabulary.js +103 -0
  21. package/dist/app.d.ts +379 -0
  22. package/dist/app.js +71 -0
  23. package/dist/artifact-dispositions.d.ts +115 -0
  24. package/dist/artifact-dispositions.js +234 -0
  25. package/dist/assets.d.ts +54 -0
  26. package/dist/assets.js +89 -0
  27. package/dist/backend.d.ts +41 -0
  28. package/dist/backend.js +29 -0
  29. package/dist/background-replay.d.ts +115 -0
  30. package/dist/background-replay.js +175 -0
  31. package/dist/buyer-references.d.ts +69 -0
  32. package/dist/buyer-references.js +154 -0
  33. package/dist/cloudflare-assets.d.ts +48 -0
  34. package/dist/cloudflare-assets.js +105 -0
  35. package/dist/cloudflare.d.ts +254 -0
  36. package/dist/cloudflare.js +1619 -0
  37. package/dist/effect.d.ts +73 -0
  38. package/dist/effect.js +325 -0
  39. package/dist/git-representation.d.ts +13 -0
  40. package/dist/git-representation.js +16 -0
  41. package/dist/inbox.d.ts +132 -0
  42. package/dist/inbox.js +81 -0
  43. package/dist/index.d.ts +31 -0
  44. package/dist/index.js +85 -0
  45. package/dist/internal/app-description.d.ts +14 -0
  46. package/dist/internal/app-description.js +98 -0
  47. package/dist/internal/app-release-artifact-reader.d.ts +26 -0
  48. package/dist/internal/app-release-artifact-reader.js +1 -0
  49. package/dist/internal/app-release-contract.d.ts +540 -0
  50. package/dist/internal/app-release-contract.js +169 -0
  51. package/dist/internal/app-release-schema.d.ts +1676 -0
  52. package/dist/internal/app-release-schema.js +386 -0
  53. package/dist/internal/app-release-store.d.ts +47 -0
  54. package/dist/internal/app-release-store.js +1 -0
  55. package/dist/internal/background-sync.d.ts +7 -0
  56. package/dist/internal/background-sync.js +10 -0
  57. package/dist/internal/deterministic-memory-app-release-store.d.ts +14 -0
  58. package/dist/internal/deterministic-memory-app-release-store.js +319 -0
  59. package/dist/internal/failure.d.ts +2 -0
  60. package/dist/internal/failure.js +9 -0
  61. package/dist/internal/immutable-release-material.d.ts +3 -0
  62. package/dist/internal/immutable-release-material.js +13 -0
  63. package/dist/internal/promise-app-release-store-adapter.d.ts +9 -0
  64. package/dist/internal/promise-app-release-store-adapter.js +65 -0
  65. package/dist/internal/promise-artifact-reader-adapter.d.ts +9 -0
  66. package/dist/internal/promise-artifact-reader-adapter.js +18 -0
  67. package/dist/internal/public-route-sql.d.ts +10 -0
  68. package/dist/internal/public-route-sql.js +239 -0
  69. package/dist/internal/public-website-authority.d.ts +338 -0
  70. package/dist/internal/public-website-authority.js +50 -0
  71. package/dist/internal/public-website-delivery.d.ts +59 -0
  72. package/dist/internal/public-website-delivery.js +232 -0
  73. package/dist/internal/public-website-fetch.d.ts +8 -0
  74. package/dist/internal/public-website-fetch.js +54 -0
  75. package/dist/internal/release-transition-material.d.ts +3 -0
  76. package/dist/internal/release-transition-material.js +11 -0
  77. package/dist/internal/verified-artifact-snapshot.d.ts +41 -0
  78. package/dist/internal/verified-artifact-snapshot.js +91 -0
  79. package/dist/public-route-moderation.d.ts +83 -0
  80. package/dist/public-route-moderation.js +236 -0
  81. package/dist/public-route-policy.d.ts +51 -0
  82. package/dist/public-route-policy.js +88 -0
  83. package/dist/public-routes.d.ts +34 -0
  84. package/dist/public-routes.js +136 -0
  85. package/dist/publisher.d.ts +61 -0
  86. package/dist/publisher.js +16 -0
  87. package/dist/safety-takedown.d.ts +56 -0
  88. package/dist/safety-takedown.js +146 -0
  89. package/dist/seller-closure-notice.d.ts +14 -0
  90. package/dist/seller-closure-notice.js +14 -0
  91. package/dist/seller-closure.d.ts +15 -0
  92. package/dist/seller-closure.js +31 -0
  93. package/dist/testing.d.ts +8 -0
  94. package/dist/testing.js +47 -0
  95. package/docs/api/README.md +26 -0
  96. package/docs/api/app-backend-binding-vocabulary.md +276 -0
  97. package/docs/api/app-backend-bindings.md +141 -0
  98. package/docs/api/app-event-facts.md +110 -0
  99. package/docs/api/app-method-context.md +166 -0
  100. package/docs/api/app-method-runtime.md +330 -0
  101. package/docs/api/backend.md +108 -0
  102. package/docs/api/background-replay.md +516 -0
  103. package/docs/api/cloudflare.md +1044 -0
  104. package/docs/api/effect.md +2429 -0
  105. package/docs/api/git-representation.md +56 -0
  106. package/docs/api/inbox.md +289 -0
  107. package/docs/api/index.md +2868 -0
  108. package/docs/api/publisher.md +147 -0
  109. package/docs/api/testing.md +31 -0
  110. package/package.json +158 -3
@@ -0,0 +1,169 @@
1
+ /** Fixed, non-leaking input failure for one public parser boundary. */
2
+ export class AppReleaseInputError extends Error {
3
+ parserName;
4
+ constructor(parserName) {
5
+ super(`Invalid ${parserName}`);
6
+ this.name = "AppReleaseInputError";
7
+ this.parserName = parserName;
8
+ }
9
+ }
10
+ /** Fixed non-leaking input failure for one public catalog command. */
11
+ export class AppReleaseCommandInputError extends Error {
12
+ commandName;
13
+ constructor(commandName) {
14
+ super(`Invalid ${commandName} input`);
15
+ this.name = "AppReleaseCommandInputError";
16
+ this.commandName = commandName;
17
+ }
18
+ }
19
+ /** Fixed non-leaking failure when a foreign Store success is structurally invalid. */
20
+ export class AppReleaseInvalidStoreResultError extends Error {
21
+ constructor() {
22
+ super("App Release store result is invalid");
23
+ this.name = "AppReleaseInvalidStoreResultError";
24
+ }
25
+ }
26
+ /** Fixed conflict when one Release ID receives changed immutable input. */
27
+ export class AppReleaseImmutableConflictError extends Error {
28
+ constructor() {
29
+ super("Release immutable input conflicts with its existing record");
30
+ this.name = "AppReleaseImmutableConflictError";
31
+ }
32
+ }
33
+ /** Fixed failure when a new Release references an App that does not exist. */
34
+ export class AppReleaseOwnerAppAbsentError extends Error {
35
+ appId;
36
+ constructor(appId) {
37
+ super("Release owner App does not exist");
38
+ this.name = "AppReleaseOwnerAppAbsentError";
39
+ this.appId = appId;
40
+ }
41
+ }
42
+ /** Fixed failure when a new public Surface references an App that does not exist. */
43
+ export class AppReleaseSurfaceOwnerAppAbsentError extends Error {
44
+ appId;
45
+ constructor(appId) {
46
+ super("Public Surface owner App does not exist");
47
+ this.name = "AppReleaseSurfaceOwnerAppAbsentError";
48
+ this.appId = appId;
49
+ }
50
+ }
51
+ /** Fixed non-leaking failure when the injected App Release store is unavailable. */
52
+ export class AppReleaseStoreUnavailableError extends Error {
53
+ constructor() {
54
+ super("App Release store is unavailable");
55
+ this.name = "AppReleaseStoreUnavailableError";
56
+ }
57
+ }
58
+ /** Fixed failure when artifact verification names no stored Release. */
59
+ export class AppReleaseReleaseAbsentError extends Error {
60
+ constructor() {
61
+ super("Release does not exist");
62
+ this.name = "AppReleaseReleaseAbsentError";
63
+ }
64
+ }
65
+ /** Fixed non-leaking failure when the injected artifact reader is unavailable. */
66
+ export class AppReleaseArtifactUnavailableError extends Error {
67
+ constructor() {
68
+ super("Release artifact is unavailable");
69
+ this.name = "AppReleaseArtifactUnavailableError";
70
+ }
71
+ }
72
+ /** Fixed failure when the requested artifact cannot be found. */
73
+ export class AppReleaseArtifactMissingError extends Error {
74
+ constructor() {
75
+ super("Release artifact is missing");
76
+ this.name = "AppReleaseArtifactMissingError";
77
+ }
78
+ }
79
+ /** Fixed failure when resolved artifact bytes do not match the expected digest. */
80
+ export class AppReleaseArtifactDigestMismatchError extends Error {
81
+ constructor() {
82
+ super("Release artifact digest does not match");
83
+ this.name = "AppReleaseArtifactDigestMismatchError";
84
+ }
85
+ }
86
+ /** Fixed failure when a hostile artifact read cannot form a valid snapshot. */
87
+ export class AppReleaseArtifactInvalidSnapshotError extends Error {
88
+ constructor() {
89
+ super("Release artifact snapshot is invalid");
90
+ this.name = "AppReleaseArtifactInvalidSnapshotError";
91
+ }
92
+ }
93
+ /** Error thrown when a catalog operation is not implemented in this slice. */
94
+ export class AppReleaseUnimplementedError extends Error {
95
+ constructor() {
96
+ super("App Release operation is not implemented");
97
+ this.name = "AppReleaseUnimplementedError";
98
+ }
99
+ }
100
+ /** Fixed failure when a transition names no stored Release. */
101
+ export class AppReleaseTransitionReleaseAbsentError extends Error {
102
+ constructor() {
103
+ super("Transition Release does not exist");
104
+ this.name = "AppReleaseTransitionReleaseAbsentError";
105
+ }
106
+ }
107
+ /** Fixed failure when promotion or rollback names an unverified Release. */
108
+ export class AppReleaseTransitionReleaseUnverifiedError extends Error {
109
+ constructor() {
110
+ super("Transition Release is not verified");
111
+ this.name = "AppReleaseTransitionReleaseUnverifiedError";
112
+ }
113
+ }
114
+ /** Fixed failure when a website selection names a non-HTML artifact. */
115
+ export class AppReleaseTransitionArtifactIncompatibleError extends Error {
116
+ constructor() {
117
+ super("Transition artifact is not compatible with a public website");
118
+ this.name = "AppReleaseTransitionArtifactIncompatibleError";
119
+ }
120
+ }
121
+ /** Fixed failure when promotion or rollback names a revoked Release. */
122
+ export class AppReleaseTransitionReleaseRevokedError extends Error {
123
+ constructor() {
124
+ super("Transition Release is revoked");
125
+ this.name = "AppReleaseTransitionReleaseRevokedError";
126
+ }
127
+ }
128
+ /** Fixed failure when a transition names no stored public Surface. */
129
+ export class AppReleaseTransitionSurfaceAbsentError extends Error {
130
+ constructor() {
131
+ super("Transition public Surface does not exist");
132
+ this.name = "AppReleaseTransitionSurfaceAbsentError";
133
+ }
134
+ }
135
+ /** Fixed failure when a Release is owned by another App than its Surface. */
136
+ export class AppReleaseTransitionOwnershipConflictError extends Error {
137
+ constructor() {
138
+ super("Transition Release is not owned by the public Surface App");
139
+ this.name = "AppReleaseTransitionOwnershipConflictError";
140
+ }
141
+ }
142
+ /** Fixed failure when an idempotency key is reused for changed material input. */
143
+ export class AppReleaseTransitionIdempotencyConflictError extends Error {
144
+ constructor() {
145
+ super("Transition idempotency key conflicts with its original request");
146
+ this.name = "AppReleaseTransitionIdempotencyConflictError";
147
+ }
148
+ }
149
+ /** Fixed, non-leaking failure when Cairn cannot issue a transition identity. */
150
+ export class AppReleaseTransitionIdUnavailableError extends Error {
151
+ constructor() {
152
+ super("App Release transition identity is unavailable");
153
+ this.name = "AppReleaseTransitionIdUnavailableError";
154
+ }
155
+ }
156
+ /** Fixed non-leaking failure for malformed, absent, or unselected routes. */
157
+ export class AppReleasePublicWebsiteNotFoundError extends Error {
158
+ constructor() {
159
+ super("Public website was not found");
160
+ this.name = "AppReleasePublicWebsiteNotFoundError";
161
+ }
162
+ }
163
+ /** Fixed non-leaking failure when public delivery cannot be proven safe. */
164
+ export class AppReleasePublicWebsiteUnavailableError extends Error {
165
+ constructor() {
166
+ super("Public website is unavailable");
167
+ this.name = "AppReleasePublicWebsiteUnavailableError";
168
+ }
169
+ }