@honua/react 0.1.7-beta.0 → 0.1.10-beta.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.
Files changed (249) hide show
  1. package/control-plane/admin-client.d.ts +89 -0
  2. package/control-plane/admin-client.d.ts.map +1 -0
  3. package/control-plane/admin-client.js +200 -0
  4. package/control-plane/client.d.ts +1 -1
  5. package/control-plane/client.d.ts.map +1 -1
  6. package/control-plane/client.js +145 -11
  7. package/control-plane/commands/catalog.d.ts +133 -0
  8. package/control-plane/commands/catalog.d.ts.map +1 -0
  9. package/control-plane/commands/catalog.js +365 -0
  10. package/control-plane/commands/errors.d.ts +96 -0
  11. package/control-plane/commands/errors.d.ts.map +1 -0
  12. package/control-plane/commands/errors.js +130 -0
  13. package/control-plane/commands/identity.d.ts +71 -0
  14. package/control-plane/commands/identity.d.ts.map +1 -0
  15. package/control-plane/commands/identity.js +0 -0
  16. package/control-plane/commands/index.d.ts +39 -0
  17. package/control-plane/commands/index.d.ts.map +1 -0
  18. package/control-plane/commands/index.js +34 -0
  19. package/control-plane/commands/runtime.d.ts +146 -0
  20. package/control-plane/commands/runtime.d.ts.map +1 -0
  21. package/control-plane/commands/runtime.js +330 -0
  22. package/control-plane/commands/types.d.ts +228 -0
  23. package/control-plane/commands/types.d.ts.map +1 -0
  24. package/control-plane/commands/types.js +30 -0
  25. package/control-plane/commands/validate.d.ts +27 -0
  26. package/control-plane/commands/validate.d.ts.map +1 -0
  27. package/control-plane/commands/validate.js +132 -0
  28. package/control-plane/generated/admin-api.d.ts +30265 -0
  29. package/control-plane/generated/admin-api.d.ts.map +1 -0
  30. package/control-plane/generated/admin-api.js +5 -0
  31. package/control-plane/generated/admin-operations.d.ts +4053 -0
  32. package/control-plane/generated/admin-operations.d.ts.map +1 -0
  33. package/control-plane/generated/admin-operations.js +820 -0
  34. package/control-plane/index.d.ts +11 -0
  35. package/control-plane/index.d.ts.map +1 -1
  36. package/control-plane/index.js +8 -0
  37. package/control-plane/types.d.ts +14 -0
  38. package/control-plane/types.d.ts.map +1 -1
  39. package/core/client.d.ts.map +1 -1
  40. package/core/client.js +29 -31
  41. package/core/credential-redaction.d.ts +163 -0
  42. package/core/credential-redaction.d.ts.map +1 -0
  43. package/core/credential-redaction.js +389 -0
  44. package/core/error-classifications.d.ts +15 -0
  45. package/core/error-classifications.d.ts.map +1 -1
  46. package/core/error-classifications.js +15 -0
  47. package/core/error-code-registry.d.ts +15 -0
  48. package/core/error-code-registry.d.ts.map +1 -1
  49. package/core/error-code-registry.js +15 -0
  50. package/core/error-envelope.d.ts +31 -0
  51. package/core/error-envelope.d.ts.map +1 -1
  52. package/core/error-envelope.js +11 -0
  53. package/core/errors.d.ts +15 -3
  54. package/core/errors.d.ts.map +1 -1
  55. package/core/errors.js +254 -2
  56. package/core/geometry-input-sr.d.ts +3 -0
  57. package/core/geometry-input-sr.d.ts.map +1 -0
  58. package/core/geometry-input-sr.js +28 -0
  59. package/core/geoservices.d.ts.map +1 -1
  60. package/core/geoservices.js +33 -6
  61. package/core/grpc-adapter.d.ts +2 -2
  62. package/core/grpc-adapter.d.ts.map +1 -1
  63. package/core/grpc-adapter.js +41 -9
  64. package/core/job-run-errors.d.ts +10 -0
  65. package/core/job-run-errors.d.ts.map +1 -0
  66. package/core/job-run-errors.js +14 -0
  67. package/core/job-run-lifecycle.d.ts +34 -0
  68. package/core/job-run-lifecycle.d.ts.map +1 -0
  69. package/core/job-run-lifecycle.js +193 -0
  70. package/core/ogc-processes.d.ts +38 -31
  71. package/core/ogc-processes.d.ts.map +1 -1
  72. package/core/ogc-processes.js +123 -173
  73. package/core/pbf-decoder.d.ts.map +1 -1
  74. package/core/pbf-decoder.js +16 -4
  75. package/core/process-runner.js +15 -100
  76. package/core/protocol-transport.d.ts +6 -1
  77. package/core/protocol-transport.d.ts.map +1 -1
  78. package/core/request-pipeline.d.ts +6 -3
  79. package/core/request-pipeline.d.ts.map +1 -1
  80. package/core/request-pipeline.js +28 -11
  81. package/core/spatial-filter.d.ts +4 -4
  82. package/core/spatial-filter.d.ts.map +1 -1
  83. package/core/spatial-filter.js +7 -7
  84. package/core/surfaces.d.ts +2 -8
  85. package/core/surfaces.d.ts.map +1 -1
  86. package/core/surfaces.js +21 -112
  87. package/core/types.d.ts +21 -9
  88. package/core/types.d.ts.map +1 -1
  89. package/esri-compat/class-breaks-renderer.d.ts +2 -0
  90. package/esri-compat/class-breaks-renderer.d.ts.map +1 -1
  91. package/esri-compat/class-breaks-renderer.js +7 -0
  92. package/esri-compat/controls.d.ts +10 -1
  93. package/esri-compat/controls.d.ts.map +1 -1
  94. package/esri-compat/controls.js +86 -2
  95. package/esri-compat/directions.d.ts +35 -0
  96. package/esri-compat/directions.d.ts.map +1 -1
  97. package/esri-compat/directions.js +153 -2
  98. package/esri-compat/expand.d.ts +1 -0
  99. package/esri-compat/expand.d.ts.map +1 -1
  100. package/esri-compat/expand.js +61 -0
  101. package/esri-compat/feature-layer.d.ts +29 -4
  102. package/esri-compat/feature-layer.d.ts.map +1 -1
  103. package/esri-compat/feature-layer.js +335 -13
  104. package/esri-compat/geometry-engine.d.ts +4 -0
  105. package/esri-compat/geometry-engine.d.ts.map +1 -1
  106. package/esri-compat/geometry-engine.js +8 -1
  107. package/esri-compat/graphic.d.ts +7 -4
  108. package/esri-compat/graphic.d.ts.map +1 -1
  109. package/esri-compat/legend.d.ts +2 -1
  110. package/esri-compat/legend.d.ts.map +1 -1
  111. package/esri-compat/legend.js +15 -0
  112. package/esri-compat/map-view-mount.d.ts +48 -0
  113. package/esri-compat/map-view-mount.d.ts.map +1 -0
  114. package/esri-compat/map-view-mount.js +344 -0
  115. package/esri-compat/map-view.d.ts +38 -6
  116. package/esri-compat/map-view.d.ts.map +1 -1
  117. package/esri-compat/map-view.js +467 -33
  118. package/esri-compat/portal.d.ts +2 -0
  119. package/esri-compat/portal.d.ts.map +1 -1
  120. package/esri-compat/portal.js +7 -2
  121. package/esri-compat/renderer-objects.d.ts +7 -2
  122. package/esri-compat/renderer-objects.d.ts.map +1 -1
  123. package/esri-compat/renderer-objects.js +16 -5
  124. package/esri-compat/route-layer.d.ts +8 -0
  125. package/esri-compat/route-layer.d.ts.map +1 -1
  126. package/esri-compat/route-layer.js +24 -4
  127. package/esri-compat/route-task.d.ts +5 -1
  128. package/esri-compat/route-task.d.ts.map +1 -1
  129. package/esri-compat/route-task.js +119 -7
  130. package/esri-compat/scene-view.d.ts.map +1 -1
  131. package/esri-compat/scene-view.js +1 -0
  132. package/esri-compat/search.d.ts +2 -1
  133. package/esri-compat/search.d.ts.map +1 -1
  134. package/esri-compat/search.js +52 -2
  135. package/esri-compat/unique-value-renderer.d.ts +2 -0
  136. package/esri-compat/unique-value-renderer.d.ts.map +1 -1
  137. package/esri-compat/unique-value-renderer.js +7 -0
  138. package/esri-compat/web-map.d.ts +10 -0
  139. package/esri-compat/web-map.d.ts.map +1 -1
  140. package/esri-compat/web-map.js +102 -0
  141. package/gen/geospatial/v1/common_pb.d.ts +514 -0
  142. package/gen/geospatial/v1/common_pb.d.ts.map +1 -0
  143. package/gen/geospatial/v1/common_pb.js +335 -0
  144. package/gen/geospatial/v1/execution_types_pb.d.ts +1186 -0
  145. package/gen/geospatial/v1/execution_types_pb.d.ts.map +1 -0
  146. package/gen/geospatial/v1/execution_types_pb.js +396 -0
  147. package/gen/geospatial/v1/feature_service_pb.d.ts +403 -0
  148. package/gen/geospatial/v1/feature_service_pb.d.ts.map +1 -0
  149. package/gen/geospatial/v1/feature_service_pb.js +47 -0
  150. package/gen/geospatial/v1/index.d.ts +5 -0
  151. package/gen/geospatial/v1/index.d.ts.map +1 -0
  152. package/gen/geospatial/v1/index.js +9 -0
  153. package/gen/geospatial/v1/spatial_types_pb.d.ts +285 -0
  154. package/gen/geospatial/v1/spatial_types_pb.d.ts.map +1 -0
  155. package/gen/geospatial/v1/spatial_types_pb.js +58 -0
  156. package/gen/geospatial/v1/workspace_artifact_types_pb.d.ts +379 -0
  157. package/gen/geospatial/v1/workspace_artifact_types_pb.d.ts.map +1 -0
  158. package/gen/geospatial/v1/workspace_artifact_types_pb.js +151 -0
  159. package/generated-app/projection.d.ts.map +1 -1
  160. package/generated-app/projection.js +10 -1
  161. package/map/webmap-maplibre.d.ts +2 -1
  162. package/map/webmap-maplibre.d.ts.map +1 -1
  163. package/map/webmap-maplibre.js +3 -0
  164. package/package.json +3 -3
  165. package/query-planner/geoservices.d.ts.map +1 -1
  166. package/query-planner/geoservices.js +2 -0
  167. package/query-planner/grpc.d.ts +4 -4
  168. package/query-planner/grpc.d.ts.map +1 -1
  169. package/query-planner/grpc.js +11 -11
  170. package/query-planner/types.d.ts +6 -4
  171. package/query-planner/types.d.ts.map +1 -1
  172. package/realtime/honua-server.d.ts +4 -0
  173. package/realtime/honua-server.d.ts.map +1 -1
  174. package/realtime/honua-server.js +10 -0
  175. package/realtime/resumable.js +9 -0
  176. package/realtime/types.d.ts +8 -0
  177. package/realtime/types.d.ts.map +1 -1
  178. package/runtime/errors.d.ts +1 -1
  179. package/runtime/errors.d.ts.map +1 -1
  180. package/runtime/errors.js +2 -0
  181. package/runtime/generated/map-package-schema-meta.d.ts +11 -0
  182. package/runtime/generated/map-package-schema-meta.d.ts.map +1 -0
  183. package/runtime/generated/map-package-schema-meta.js +12 -0
  184. package/runtime/generated/map-package-schema-validator.d.ts +16 -0
  185. package/runtime/generated/map-package-schema-validator.d.ts.map +1 -0
  186. package/runtime/generated/map-package-schema-validator.js +1422 -0
  187. package/runtime/index.d.ts +5 -1
  188. package/runtime/index.d.ts.map +1 -1
  189. package/runtime/index.js +6 -0
  190. package/runtime/map-package-export.d.ts +151 -0
  191. package/runtime/map-package-export.d.ts.map +1 -0
  192. package/runtime/map-package-export.js +636 -0
  193. package/runtime/map-package-validation.d.ts +21 -1
  194. package/runtime/map-package-validation.d.ts.map +1 -1
  195. package/runtime/map-package-validation.js +132 -95
  196. package/runtime/map-package.d.ts +80 -0
  197. package/runtime/map-package.d.ts.map +1 -1
  198. package/studio/capability-manifest.d.ts +10 -0
  199. package/studio/capability-manifest.d.ts.map +1 -1
  200. package/studio/capability-manifest.js +38 -0
  201. package/studio/chart-spec.d.ts +6 -6
  202. package/studio/chart-spec.d.ts.map +1 -1
  203. package/studio/chart-spec.js +6 -6
  204. package/studio/command-adapter.d.ts +35 -0
  205. package/studio/command-adapter.d.ts.map +1 -0
  206. package/studio/command-adapter.js +36 -0
  207. package/studio/generated/studio-api.d.ts +1062 -0
  208. package/studio/generated/studio-api.d.ts.map +1 -0
  209. package/studio/generated/studio-api.js +4 -0
  210. package/studio/index.d.ts +25 -13
  211. package/studio/index.d.ts.map +1 -1
  212. package/studio/index.js +21 -10
  213. package/studio/lifecycle-client.d.ts +262 -22
  214. package/studio/lifecycle-client.d.ts.map +1 -1
  215. package/studio/lifecycle-client.js +543 -24
  216. package/studio/lifecycle-errors.d.ts +8 -2
  217. package/studio/lifecycle-errors.d.ts.map +1 -1
  218. package/studio/lifecycle-errors.js +6 -1
  219. package/studio/lifecycle-types.d.ts +237 -38
  220. package/studio/lifecycle-types.d.ts.map +1 -1
  221. package/studio/lifecycle-types.js +5 -12
  222. package/studio/publication-status.d.ts +55 -0
  223. package/studio/publication-status.d.ts.map +1 -0
  224. package/studio/publication-status.js +103 -0
  225. package/studio/types.d.ts +37 -7
  226. package/studio/types.d.ts.map +1 -1
  227. package/studio/types.js +5 -3
  228. package/studio/validate.d.ts.map +1 -1
  229. package/studio/validate.js +104 -7
  230. package/style/renderers.d.ts +6 -1
  231. package/style/renderers.d.ts.map +1 -1
  232. package/style/renderers.js +11 -6
  233. package/style/visual-variables.d.ts +43 -0
  234. package/style/visual-variables.d.ts.map +1 -0
  235. package/style/visual-variables.js +183 -0
  236. package/webmap/convert-layer.d.ts +2 -1
  237. package/webmap/convert-layer.d.ts.map +1 -1
  238. package/webmap/convert-layer.js +20 -3
  239. package/webmap/convert-renderer.d.ts +10 -3
  240. package/webmap/convert-renderer.d.ts.map +1 -1
  241. package/webmap/convert-renderer.js +190 -36
  242. package/webmap/index.d.ts +1 -0
  243. package/webmap/index.d.ts.map +1 -1
  244. package/webmap/parse.d.ts +2 -1
  245. package/webmap/parse.d.ts.map +1 -1
  246. package/webmap/parse.js +1 -1
  247. package/gen/honua/v1/feature_service_pb.d.ts +0 -918
  248. package/gen/honua/v1/feature_service_pb.d.ts.map +0 -1
  249. package/gen/honua/v1/feature_service_pb.js +0 -375
@@ -0,0 +1,34 @@
1
+ import type { JobProgress, JobResult, JobResultsOptions, JobSnapshot, JobSnapshotListener, JobStatus } from "../contract/jobs.js";
2
+ export interface JobRunLifecycleOptions<T> {
3
+ readonly id: string;
4
+ readonly initialStatus: JobStatus;
5
+ readonly initialProgress?: JobProgress;
6
+ readonly pollIntervalMs: number | (() => number);
7
+ readonly pollBudget?: JobResultsOptions;
8
+ readonly poll: (signal?: AbortSignal) => Promise<JobSnapshot<T>>;
9
+ }
10
+ /** Internal protocol-neutral state machine shared by every remote IJobRun. */
11
+ export declare class JobRunLifecycle<T> {
12
+ private readonly options;
13
+ private currentStatus;
14
+ private currentProgress;
15
+ private terminalSnapshot;
16
+ private terminalPromise;
17
+ private cancelPromise;
18
+ private readonly listeners;
19
+ constructor(options: JobRunLifecycleOptions<T>);
20
+ get status(): JobStatus;
21
+ get progress(): JobProgress | undefined;
22
+ get terminal(): JobSnapshot<T> | undefined;
23
+ watch(listener: JobSnapshotListener<T>): () => void;
24
+ poll(): Promise<JobSnapshot<T>>;
25
+ observe(snapshot: JobSnapshot<T>): JobSnapshot<T>;
26
+ cancel(cancel: () => Promise<JobSnapshot<T>>): Promise<JobStatus>;
27
+ results(overrides?: JobResultsOptions): Promise<JobResult<T>>;
28
+ private resolveBudget;
29
+ private runUntilTerminal;
30
+ private pollWithinBudget;
31
+ private assertWithinBudget;
32
+ private throwTimeout;
33
+ }
34
+ //# sourceMappingURL=job-run-lifecycle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"job-run-lifecycle.d.ts","sourceRoot":"","sources":["../../../src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AAW,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC;IAc3C,MAAM,CAAC,MAAM,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC;IAqBvE,OAAO,CAAC,SAAS,GAAE,iBAAsB,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IAWxE,OAAO,CAAC,aAAa;YAOP,gBAAgB;YAkChB,gBAAgB;IAgC9B,OAAO,CAAC,kBAAkB;IAQ1B,OAAO,CAAC,YAAY;CASrB"}
@@ -0,0 +1,193 @@
1
+ import { HonuaJobPollTimeoutError, isJobTerminal } from "../contract/jobs.js";
2
+ import { HonuaJobFailedError } from "./job-run-errors.js";
3
+ const DEFAULT_JOB_DEADLINE_MS = 600_000;
4
+ /** Internal protocol-neutral state machine shared by every remote IJobRun. */
5
+ export class JobRunLifecycle {
6
+ options;
7
+ currentStatus;
8
+ currentProgress;
9
+ terminalSnapshot;
10
+ terminalPromise;
11
+ cancelPromise;
12
+ listeners = new Set();
13
+ constructor(options) {
14
+ this.options = options;
15
+ this.currentStatus = options.initialStatus;
16
+ this.currentProgress = options.initialProgress;
17
+ }
18
+ get status() {
19
+ return this.currentStatus;
20
+ }
21
+ get progress() {
22
+ return this.currentProgress;
23
+ }
24
+ get terminal() {
25
+ return this.terminalSnapshot;
26
+ }
27
+ watch(listener) {
28
+ this.listeners.add(listener);
29
+ return () => this.listeners.delete(listener);
30
+ }
31
+ async poll() {
32
+ if (this.terminalSnapshot)
33
+ return this.terminalSnapshot;
34
+ return this.observe(await this.options.poll());
35
+ }
36
+ observe(snapshot) {
37
+ this.currentStatus = snapshot.status;
38
+ this.currentProgress = snapshot.progress;
39
+ if (isJobTerminal(snapshot.status))
40
+ this.terminalSnapshot = snapshot;
41
+ for (const listener of this.listeners) {
42
+ try {
43
+ listener(snapshot);
44
+ }
45
+ catch {
46
+ /* Observers cannot disrupt the lifecycle. */
47
+ }
48
+ }
49
+ return snapshot;
50
+ }
51
+ async cancel(cancel) {
52
+ if (this.terminalSnapshot)
53
+ return this.currentStatus;
54
+ if (!this.cancelPromise) {
55
+ this.cancelPromise = cancel()
56
+ .then((snapshot) => {
57
+ // A poll may have observed an authoritative terminal while the
58
+ // transport cancellation was in flight. Never let the older cancel
59
+ // response overwrite that terminal race winner.
60
+ if (this.terminalSnapshot)
61
+ return this.currentStatus;
62
+ const status = this.observe(snapshot).status;
63
+ if (!isJobTerminal(status))
64
+ this.cancelPromise = undefined;
65
+ return status;
66
+ })
67
+ .catch((error) => {
68
+ this.cancelPromise = undefined;
69
+ throw error;
70
+ });
71
+ }
72
+ return this.cancelPromise;
73
+ }
74
+ results(overrides = {}) {
75
+ if (!this.terminalPromise) {
76
+ const options = this.resolveBudget(overrides);
77
+ this.terminalPromise = this.runUntilTerminal(options).catch((error) => {
78
+ this.terminalPromise = undefined;
79
+ throw error;
80
+ });
81
+ }
82
+ return this.terminalPromise;
83
+ }
84
+ resolveBudget(overrides) {
85
+ const merged = { ...this.options.pollBudget, ...overrides };
86
+ return merged.deadlineMs !== undefined || merged.maxAttempts !== undefined
87
+ ? merged
88
+ : { ...merged, deadlineMs: DEFAULT_JOB_DEADLINE_MS };
89
+ }
90
+ async runUntilTerminal(options) {
91
+ const configuredInterval = typeof this.options.pollIntervalMs === "function" ? this.options.pollIntervalMs() : this.options.pollIntervalMs;
92
+ const baseIntervalMs = options.pollIntervalMs ?? configuredInterval;
93
+ const maxIntervalMs = options.maxPollIntervalMs ?? Math.max(baseIntervalMs, 30_000);
94
+ const startedAt = Date.now();
95
+ let attempts = 0;
96
+ while (!this.terminalSnapshot) {
97
+ this.assertWithinBudget(options, attempts, startedAt);
98
+ let snapshot;
99
+ try {
100
+ snapshot = await this.pollWithinBudget(options, startedAt);
101
+ }
102
+ catch (error) {
103
+ if (options.signal?.aborted)
104
+ this.throwTimeout("aborted", options);
105
+ throw error;
106
+ }
107
+ attempts += 1;
108
+ this.observe(snapshot);
109
+ if (this.terminalSnapshot)
110
+ break;
111
+ this.assertWithinBudget(options, attempts, startedAt);
112
+ const intervalMs = Math.min(maxIntervalMs, baseIntervalMs * 2 ** (attempts - 1));
113
+ if (intervalMs > 0)
114
+ await abortableDelay(intervalMs, options.signal);
115
+ }
116
+ const terminal = this.terminalSnapshot;
117
+ if (terminal.status === "successful" && terminal.result)
118
+ return terminal.result;
119
+ const error = terminal.error;
120
+ throw new HonuaJobFailedError(error?.message ?? `Job ended in non-success terminal state: ${terminal.status}`, terminal.status, error?.code, error?.details);
121
+ }
122
+ async pollWithinBudget(options, startedAt) {
123
+ if (options.signal === undefined && options.deadlineMs === undefined)
124
+ return this.options.poll();
125
+ const controller = new AbortController();
126
+ let timer;
127
+ let rejectBoundary;
128
+ const boundary = new Promise((_resolve, reject) => {
129
+ rejectBoundary = reject;
130
+ });
131
+ const reachBoundary = (reason) => {
132
+ controller.abort();
133
+ rejectBoundary(new PollBoundaryReached(reason));
134
+ };
135
+ const onAbort = () => reachBoundary("aborted");
136
+ options.signal?.addEventListener("abort", onAbort, { once: true });
137
+ if (options.deadlineMs !== undefined) {
138
+ const remainingMs = Math.max(0, options.deadlineMs - (Date.now() - startedAt));
139
+ timer = setTimeout(() => reachBoundary("deadline"), remainingMs);
140
+ }
141
+ try {
142
+ return await Promise.race([this.options.poll(controller.signal), boundary]);
143
+ }
144
+ catch (error) {
145
+ if (error instanceof PollBoundaryReached)
146
+ this.throwTimeout(error.reason, options);
147
+ throw error;
148
+ }
149
+ finally {
150
+ if (timer !== undefined)
151
+ clearTimeout(timer);
152
+ options.signal?.removeEventListener("abort", onAbort);
153
+ }
154
+ }
155
+ assertWithinBudget(options, attempts, startedAt) {
156
+ if (options.signal?.aborted)
157
+ this.throwTimeout("aborted", options);
158
+ if (options.maxAttempts !== undefined && attempts >= options.maxAttempts)
159
+ this.throwTimeout("max-attempts", options);
160
+ if (options.deadlineMs !== undefined && Date.now() - startedAt >= options.deadlineMs)
161
+ this.throwTimeout("deadline", options);
162
+ }
163
+ throwTimeout(reason, options) {
164
+ const suffix = reason === "aborted"
165
+ ? "poll aborted"
166
+ : reason === "deadline"
167
+ ? `did not reach a terminal state within ${options.deadlineMs}ms`
168
+ : `did not reach a terminal state within ${options.maxAttempts} poll attempt(s)`;
169
+ throw new HonuaJobPollTimeoutError(`Job ${this.options.id} ${suffix}`, reason, this.options.id, this.currentStatus);
170
+ }
171
+ }
172
+ class PollBoundaryReached extends Error {
173
+ reason;
174
+ constructor(reason) {
175
+ super(reason);
176
+ this.reason = reason;
177
+ }
178
+ }
179
+ function abortableDelay(ms, signal) {
180
+ return new Promise((resolve) => {
181
+ if (signal?.aborted)
182
+ return resolve();
183
+ const onAbort = () => {
184
+ clearTimeout(timer);
185
+ resolve();
186
+ };
187
+ const timer = setTimeout(() => {
188
+ signal?.removeEventListener("abort", onAbort);
189
+ resolve();
190
+ }, ms);
191
+ signal?.addEventListener("abort", onAbort, { once: true });
192
+ });
193
+ }
@@ -25,7 +25,6 @@
25
25
  */
26
26
  import type { IJobRun, JobProgress, JobResult, JobResultsOptions, JobSnapshot, JobSnapshotListener, JobStatus } from "../contract/jobs.js";
27
27
  import type { HonuaClient } from "./client.js";
28
- import { HonuaSdkError } from "./error-envelope.js";
29
28
  import type { HonuaProtocolTransport } from "./protocol-transport.js";
30
29
  import type { HonuaOgcConformanceResponse, HonuaOgcLandingResponse, HonuaOgcProcessDescription, HonuaOgcProcessJobAccepted, HonuaOgcProcessJobResults, HonuaOgcProcessJobStatus, HonuaOgcProcessesResponse, OgcMetadataRequest, OgcProcessExecuteRequest, OgcProcessJobRequest, OgcProcessStatus } from "./types.js";
31
30
  /**
@@ -52,14 +51,21 @@ export interface HonuaOgcProcessesOptions {
52
51
  * How hard to gate on server declarations.
53
52
  *
54
53
  * - `"advertised"` (default) — gate on declarations already in hand
55
- * (`conformance`, a `describe()` already performed on this handle, or an
56
- * explicit `jobControlOptions`), and fall back to the Core-mandated route
57
- * templates when a server advertises no link. No extra requests; existing
58
- * callers and the Honua facade are unaffected.
54
+ * (`conformance`, a `describe()`/`list()` already performed on this handle,
55
+ * or an explicit `jobControlOptions`), and fall back to the Core-mandated
56
+ * route templates when a server advertises no link. No extra requests.
57
+ * What was read counts, including silence: a description this handle has
58
+ * seen that carries no `jobControlOptions` advertises no execution mode,
59
+ * and an explicit `mode` against it is refused. Only a process this handle
60
+ * has never read is treated as unknown rather than undeclared. Sources are
61
+ * ranked, not merged: a full description outranks a listing summary, so a
62
+ * later `list()` never downgrades what `describe()` established.
59
63
  * - `"strict"` — resolve the conformance declaration and the process
60
64
  * description first (both through the metadata cache) and refuse anything
61
- * the server has not declared, including a job lifecycle whose status and
62
- * results routes are not advertised as links.
65
+ * the server has not declared, including a `/conformance` document that
66
+ * declares no Core class, a description that declares no execution mode, a
67
+ * `cancel()` nothing declared as `dismiss`, and a job lifecycle whose
68
+ * status and results routes are not advertised as links.
63
69
  */
64
70
  capabilityPolicy?: "advertised" | "strict";
65
71
  /**
@@ -103,9 +109,12 @@ export declare class HonuaOgcProcesses {
103
109
  private declaredConformance;
104
110
  private conformancePromise;
105
111
  /**
106
- * `jobControlOptions` learned from `describe()` calls made through this
107
- * handle. Callers that follow the natural discover → describe → execute flow
108
- * therefore get process-level gating for free, with no extra round trip.
112
+ * `jobControlOptions` learned from `describe()` / `list()` calls made through
113
+ * this handle. Callers that follow the natural discover → describe → execute
114
+ * flow therefore get process-level gating for free, with no extra round trip.
115
+ *
116
+ * Each entry remembers which source taught it, because a later listing must
117
+ * not be able to downgrade what a description already established.
109
118
  */
110
119
  private readonly jobControlByProcess;
111
120
  constructor(options: HonuaOgcProcessesOptions);
@@ -114,6 +123,17 @@ export declare class HonuaOgcProcesses {
114
123
  conformance(request?: OgcMetadataRequest): Promise<HonuaOgcConformanceResponse>;
115
124
  list(request?: OgcMetadataRequest): Promise<HonuaOgcProcessesResponse>;
116
125
  describe(processId: string, request?: OgcMetadataRequest): Promise<HonuaOgcProcessDescription>;
126
+ /**
127
+ * Record what a process advertises, keeping the more authoritative source.
128
+ *
129
+ * Silence is still not consent — an omitted `jobControlOptions` is stored as
130
+ * an empty declaration, and an explicit mode against it is refused. But a
131
+ * process summary may legally omit what the full description declares, so a
132
+ * `list()` refresh after a `describe()` must not overwrite the description's
133
+ * answer with the listing's silence. Refusing an execution the server did
134
+ * declare is as wrong as permitting one it did not.
135
+ */
136
+ private rememberJobControl;
117
137
  /**
118
138
  * Submit a process for execution and return an `IJobRun` — always, so the
119
139
  * caller reads results through one surface whichever Core response shape the
@@ -175,11 +195,7 @@ export declare class HonuaOgcProcessJobRun<T = unknown> implements IJobRun<T> {
175
195
  /** Server-advertised routes, refreshed from every `links[]` the job reports. */
176
196
  private statusPath;
177
197
  private resultsPath;
178
- private currentStatus;
179
- private currentProgress;
180
- private terminalSnapshot;
181
- private terminalPromise;
182
- private readonly listeners;
198
+ private readonly lifecycle;
183
199
  constructor(options: HonuaOgcProcessJobOptions);
184
200
  private fetchStatus;
185
201
  /**
@@ -193,22 +209,15 @@ export declare class HonuaOgcProcessJobRun<T = unknown> implements IJobRun<T> {
193
209
  poll(): Promise<JobSnapshot<T>>;
194
210
  watch(listener: JobSnapshotListener<T>): () => void;
195
211
  results(options?: JobResultsOptions): Promise<JobResult<T>>;
196
- /**
197
- * Layer the caller's bounds over the handle's default budget, then guarantee
198
- * a bound exists. NFR-001: `results()` is never an unbounded retry loop, so a
199
- * caller that names neither a deadline nor an attempt cap still inherits
200
- * {@link DEFAULT_POLL_DEADLINE_MS}.
201
- */
202
- private resolveBudget;
203
212
  cancel(): Promise<JobStatus>;
204
- private runUntilTerminal;
213
+ private cancelSnapshot;
205
214
  /**
206
215
  * Translate an OGC `statusInfo` payload onto the canonical snapshot
207
216
  * surface, fire watchers, and (for `successful` terminals) fetch the
208
217
  * result document inline so the snapshot's `result.outputs` is
209
218
  * populated by the time `runUntilTerminal` / `poll` resolves.
210
219
  */
211
- private handleOgcStatus;
220
+ private translateOgcStatus;
212
221
  /**
213
222
  * Job-route envelope pinned to the root the job was created against,
214
223
  * preferring a route the server advertised over the Core path template.
@@ -219,9 +228,12 @@ export declare class HonuaOgcProcessJobRun<T = unknown> implements IJobRun<T> {
219
228
  * in hand and neither the Dismiss conformance class nor the process's
220
229
  * `jobControlOptions` includes `dismiss`, refuse before issuing a DELETE the
221
230
  * server never advertised.
231
+ *
232
+ * Under `"strict"` the absence of any declaration refuses too: a handle that
233
+ * resolves declarations for itself has no honest reason to DELETE a job on a
234
+ * server that never said it could be dismissed.
222
235
  */
223
236
  private assertDismissDeclared;
224
- private notify;
225
237
  }
226
238
  /**
227
239
  * `IJobRun` for a synchronous execution (Core §7.11: `200` with the results
@@ -245,12 +257,7 @@ export declare class HonuaOgcProcessSyncRun<T = unknown> implements IJobRun<T> {
245
257
  cancel(): Promise<JobStatus>;
246
258
  }
247
259
  /** Error thrown when `IJobRun.results()` resolves a non-success terminal. */
248
- export declare class HonuaJobFailedError extends HonuaSdkError {
249
- readonly status: JobStatus;
250
- readonly errorCode: string | undefined;
251
- readonly details: unknown;
252
- constructor(message: string, status: JobStatus, errorCode?: string, details?: unknown);
253
- }
260
+ export { HonuaJobFailedError } from "./job-run-errors.js";
254
261
  export declare function createHonuaOgcProcesses(client: HonuaClient): HonuaOgcProcesses;
255
262
  export type HonuaOgcProcessesAdapter = HonuaOgcProcesses;
256
263
  export type { OgcProcessStatus };
@@ -1 +1 @@
1
- {"version":3,"file":"ogc-processes.d.ts","sourceRoot":"","sources":["../../../src/core/ogc-processes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,KAAK,EACV,OAAO,EAEP,WAAW,EACX,SAAS,EACT,iBAAiB,EACjB,WAAW,EACX,mBAAmB,EACnB,SAAS,EACV,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGpD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