@elaraai/e3-cloud-files 1.1.1 → 1.1.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/README.md +89 -46
- package/dist/src/check.d.ts +10 -2
- package/dist/src/check.d.ts.map +1 -1
- package/dist/src/check.js +31 -2
- package/dist/src/check.js.map +1 -1
- package/dist/src/s3/index.d.ts.map +1 -1
- package/dist/src/s3/index.js +2 -1
- package/dist/src/s3/index.js.map +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
# @elaraai/e3-cloud-files
|
|
2
2
|
|
|
3
|
-
Files for e3 cloud: a solution's inputs that come from files
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
-
|
|
3
|
+
Files for e3 cloud: a solution's inputs that come from files. The solution
|
|
4
|
+
says in its code which inputs the files fill. A deployed workspace keeps the
|
|
5
|
+
files in storage of its own, a folder for each source, which
|
|
6
|
+
`e3-cloud files push` puts them in: nothing to bind, no bucket to name. A
|
|
7
|
+
workspace may say a source's files are elsewhere instead, in a bucket of your
|
|
8
|
+
own (`s3://bucket/prefix/`), as a local repository always does.
|
|
9
|
+
`e3-cloud files sync` brings in what changed, the same way on a local
|
|
10
|
+
repository and on a deployed workspace.
|
|
11
|
+
|
|
12
|
+
- **Your data stays where it is.** Locally, a sync reads your bucket with
|
|
10
13
|
your own cloud credentials. The bytes land only in the local e3 repository,
|
|
11
14
|
never in your project.
|
|
12
15
|
- **A file arrives as it is**, a `Blob`, and a task decodes it in East: as
|
|
@@ -20,7 +23,8 @@ changed, the same way on a local repository and on a deployed workspace.
|
|
|
20
23
|
argument, applied once.
|
|
21
24
|
- **Push from disk, or from a workspace.** `e3-cloud files push` puts files
|
|
22
25
|
from your machine into a source and takes them in, with your e3 login
|
|
23
|
-
alone where the source is the
|
|
26
|
+
alone where the source is the workspace's own storage, as a source bound
|
|
27
|
+
to nothing is. A value an e3
|
|
24
28
|
workspace computes (`dataset:dev.customer_book`) pushes as the file of its
|
|
25
29
|
value would, with no file kept by hand, and the history names the dataset.
|
|
26
30
|
- **Nothing polls.** A sync runs when someone asks for it, and reads only the
|
|
@@ -43,15 +47,16 @@ peerDependencies`): `@elaraai/east` and `@elaraai/e3`. The `e3-cloud` CLI
|
|
|
43
47
|
|
|
44
48
|
## Declaring the files
|
|
45
49
|
|
|
46
|
-
A **source** is a place files come from, named in your code.
|
|
47
|
-
|
|
48
|
-
|
|
50
|
+
A **source** is a place files come from, named in your code. In a deployed
|
|
51
|
+
workspace it is the folder of its name in the workspace's own storage
|
|
52
|
+
(`upload/`), unless the workspace binds it elsewhere. Its shapes declare the
|
|
53
|
+
inputs its files fill:
|
|
49
54
|
|
|
50
55
|
```ts
|
|
51
56
|
// src/files.ts
|
|
52
57
|
import { Files } from '@elaraai/e3-cloud-files';
|
|
53
58
|
|
|
54
|
-
/** Where the partners' files are:
|
|
59
|
+
/** Where the partners' files are: a deployed workspace's own upload/, unless it binds the source elsewhere. */
|
|
55
60
|
export const upload = Files.source('upload');
|
|
56
61
|
|
|
57
62
|
/** One file: today's exchange rates. */
|
|
@@ -81,8 +86,9 @@ export default Files.manifest([upload]);
|
|
|
81
86
|
stays unassigned until a sync sets it. A task takes it like any input, and
|
|
82
87
|
a task that needs it waits until the first sync, as with any unassigned
|
|
83
88
|
input.
|
|
84
|
-
- **Keys and prefixes are relative to the
|
|
85
|
-
|
|
89
|
+
- **Keys and prefixes are relative to where the source's files are**: the
|
|
90
|
+
workspace's own folder for it, or where the workspace binds it. The code
|
|
91
|
+
never names a bucket. A prefix is `''` (everything there) or ends with `/`.
|
|
86
92
|
- **`include` is a glob** over each file's path under the prefix: `*` matches
|
|
87
93
|
within one folder, `**` across folders, `?` one character, `[abc]` or
|
|
88
94
|
`[a-z]` one of a set (`[!abc]` any but those), and `{csv,json}` any of its
|
|
@@ -208,7 +214,7 @@ them in: put, then one sync of what was put, idempotent and safe to repeat.
|
|
|
208
214
|
|
|
209
215
|
```
|
|
210
216
|
$ e3-cloud files push https://e3.example.com/repos/acme dev ./data/prices.beast2 ./data/deltas/2026-10-19.beast2
|
|
211
|
-
upload
|
|
217
|
+
upload own storage upload/
|
|
212
218
|
prices.beast2 → prices Array<Struct{sku, price}> 38 MiB put taken in 412,310 rows
|
|
213
219
|
2026-10-19.beast2 → mutation:price_book.load_prices load_prices 1 MiB put committed 9f2c1a0b7e3d
|
|
214
220
|
Next: e3 dataflow run https://e3.example.com/repos/acme dev
|
|
@@ -222,11 +228,11 @@ Next: e3 dataflow run https://e3.example.com/repos/acme dev
|
|
|
222
228
|
would, is refused naming them.
|
|
223
229
|
- **Checked before it is put**: against the mapping's type (the file's
|
|
224
230
|
header is read) and its limit.
|
|
225
|
-
- **The
|
|
231
|
+
- **The workspace's own storage needs no credentials of yours**: the
|
|
226
232
|
platform signs the upload, bound to the file's SHA-256, one PUT up to
|
|
227
|
-
5 GiB or a multipart upload in 64 MiB parts. A bucket
|
|
228
|
-
as a source is written with your own credentials
|
|
229
|
-
repository's sources, with the binding's profile.
|
|
233
|
+
5 GiB or a multipart upload in 64 MiB parts. A bucket of your own that the
|
|
234
|
+
deployment grants as a source is written with your own credentials
|
|
235
|
+
(`--profile`); a local repository's sources, with the binding's profile.
|
|
230
236
|
- **Unchanged once it is there**: a file the source holds already, by its
|
|
231
237
|
hash and ETag, is `unchanged`, and running the command again puts only
|
|
232
238
|
what is not there. `--dry-run` plans and puts nothing.
|
|
@@ -247,7 +253,7 @@ directories and datasets mix in one push.
|
|
|
247
253
|
|
|
248
254
|
```
|
|
249
255
|
$ e3-cloud files push https://e3.example.com/repos/acme dev dataset:dev.customers --from ./archive
|
|
250
|
-
upload
|
|
256
|
+
upload own storage upload/
|
|
251
257
|
dataset:dev.customers (task output) → record:customers seed 3 MiB put $init #1 12,004 rows
|
|
252
258
|
```
|
|
253
259
|
|
|
@@ -328,10 +334,19 @@ The plugin's example index holds one example of each (search
|
|
|
328
334
|
|
|
329
335
|
## Deploying and syncing
|
|
330
336
|
|
|
331
|
-
The package deploys as always. The declarations deploy beside it
|
|
332
|
-
against it
|
|
337
|
+
The package deploys as always. The declarations deploy beside it and are
|
|
338
|
+
checked against it. A deployed workspace's sources read its own storage, so a
|
|
339
|
+
push needs nothing more; a local repository binds each source to a bucket and
|
|
340
|
+
syncs it:
|
|
333
341
|
|
|
334
342
|
```bash
|
|
343
|
+
# A deployed workspace: upload reads its own storage, upload/
|
|
344
|
+
e3 workspace deploy https://e3.example.com/repos/acme dev --from-source src/package.ts
|
|
345
|
+
e3-cloud files deploy https://e3.example.com/repos/acme dev src/files.ts
|
|
346
|
+
e3-cloud files push https://e3.example.com/repos/acme dev ./data/rates.json
|
|
347
|
+
e3 dataflow run https://e3.example.com/repos/acme dev
|
|
348
|
+
|
|
349
|
+
# A local repository: upload bound to a bucket, read with your own credentials
|
|
335
350
|
e3 workspace deploy ./repo dev --from-source src/package.ts
|
|
336
351
|
e3-cloud files deploy ./repo dev src/files.ts
|
|
337
352
|
e3-cloud files bind ./repo dev upload s3://partner-drop/orders-team/ --profile partner --latest 30
|
|
@@ -345,12 +360,21 @@ e3 dataflow run ./repo dev
|
|
|
345
360
|
`Files.manifest(...)`) and checks the declarations against the package the
|
|
346
361
|
workspace runs. Each mapping's input must be in the package, writable, and
|
|
347
362
|
exactly its shape's type. `--dry-run` checks and keeps nothing.
|
|
348
|
-
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
363
|
+
- **Own storage**: a deployed workspace's source reads the folder of its
|
|
364
|
+
name in the workspace's own storage (`upload/`) until it is bound
|
|
365
|
+
elsewhere. Every command names it by that path (`own storage upload/`),
|
|
366
|
+
never by where the deployment keeps it.
|
|
367
|
+
- **`files bind`** says where a source's files are for this workspace, when
|
|
368
|
+
not there: another path of own storage, relative to the workspace
|
|
369
|
+
(`inbound/`; `./`, the workspace's own folder; `../production/upload/`,
|
|
370
|
+
another workspace's files), or `s3://bucket/prefix/`, a bucket of your own
|
|
371
|
+
that the deployment's configuration grants the repository. With no
|
|
372
|
+
location it binds the source to its own folder again. A local repository
|
|
373
|
+
has no storage of its own, so each of its bindings is a bucket's URL.
|
|
374
|
+
`--region` gives the bucket's region when it isn't your configured one. On
|
|
375
|
+
a local repository only: `--profile` names the profile to read with (one
|
|
376
|
+
of `~/.aws/config`'s), and `--latest n` takes only each folder's n
|
|
377
|
+
greatest keys, which caps what comes down to your machine.
|
|
354
378
|
- **`files sync`** lists each source and compares every file with what its
|
|
355
379
|
target took last, by ETag and size. It reads only what is new or changed,
|
|
356
380
|
writes only the targets whose files changed, and says what it did per
|
|
@@ -367,7 +391,8 @@ e3 dataflow run ./repo dev
|
|
|
367
391
|
source and takes them in (Pushing files from disk, above).
|
|
368
392
|
- **`files status`** shows each mapping with its shape, its type, the file
|
|
369
393
|
it holds and the commit it made (or `pending` for a record not yet
|
|
370
|
-
seeded), where each source
|
|
394
|
+
seeded), where each source's files are (`own storage upload/`, or a
|
|
395
|
+
bucket's URL), and the last sync.
|
|
371
396
|
|
|
372
397
|
A sync is safe to repeat and to stop. Each input is remembered only once it
|
|
373
398
|
is written, so a sync that stops part way takes the rest next time.
|
|
@@ -384,7 +409,8 @@ whole when:
|
|
|
384
409
|
keep-edited` keeps synced inputs while their type is unchanged;
|
|
385
410
|
- the input's declaration changed (`files deploy` says which), even when a
|
|
386
411
|
sync under the old one was still writing it;
|
|
387
|
-
- its source was bound somewhere else
|
|
412
|
+
- its source was bound somewhere else, its files no longer where the input
|
|
413
|
+
took them (`files bind` names the targets that took files where it was).
|
|
388
414
|
|
|
389
415
|
### Files a sync can't read
|
|
390
416
|
|
|
@@ -406,12 +432,13 @@ Where the files are is each workspace's own.
|
|
|
406
432
|
production the staging's declarations, with its package and apps. Its plan
|
|
407
433
|
says what happens to each input: added, changed, unchanged or removed. The
|
|
408
434
|
release is refused while the declarations don't fit the package production
|
|
409
|
-
will run
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
reading it
|
|
435
|
+
will run. Production's next sync takes an input whose declaration changed
|
|
436
|
+
again whole. A release syncs nothing: sync production after it.
|
|
437
|
+
- **Production's bindings are its own**: a release never changes them. A new
|
|
438
|
+
source reads production's own storage, the folder of its name; one whose
|
|
439
|
+
files are in a bucket of your own is bound there before the release that
|
|
440
|
+
brings the declarations reading it (`files bind` takes a source no
|
|
441
|
+
declaration reads yet).
|
|
415
442
|
- **A protected workspace refuses `files deploy`**: its declarations change
|
|
416
443
|
only by a release from its staging, or by a rollback. In an emergency an
|
|
417
444
|
admin can force a deploy past it (`--force`). Its history records the
|
|
@@ -420,20 +447,30 @@ Where the files are is each workspace's own.
|
|
|
420
447
|
declarations of the entry it goes back to, with that entry's package and
|
|
421
448
|
apps.
|
|
422
449
|
- **A copy** of production, such as a staging started from it, gives the
|
|
423
|
-
target
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
450
|
+
target production's declarations, bindings and last sync, and the target
|
|
451
|
+
keeps the values e3's copy gave it: its first sync wipes nothing. A binding is
|
|
452
|
+
relative to its workspace, so in the copy a source in own storage (bound
|
|
453
|
+
by a path like `upload/`, or to nothing) reads the copy's own storage,
|
|
454
|
+
which starts empty. A file put there adds to the value the copy holds or
|
|
455
|
+
replaces it; a seeded record is seeded again by one only while nothing has
|
|
456
|
+
mutated it since its seed; a feed never applies the same bytes twice. To
|
|
457
|
+
rehearse on production's files, bind the copy's source to
|
|
458
|
+
`../production/upload/`. A source bound to a bucket of your own, or by a
|
|
459
|
+
`../` path, reads the same files in the copy, which takes what each target
|
|
460
|
+
took of them, so its first sync takes only what changed since
|
|
461
|
+
production's.
|
|
427
462
|
- The workspace's history (`e3-cloud history`) lists every deploy of
|
|
428
|
-
declarations, every binding moved, and every forced change
|
|
463
|
+
declarations, every binding moved, and every forced change, own storage
|
|
464
|
+
named by its path.
|
|
429
465
|
|
|
430
466
|
```bash
|
|
431
|
-
# Try a change on staging
|
|
467
|
+
# Try a change on staging, on production's files
|
|
468
|
+
e3-cloud files bind https://e3.example.com/repos/acme staging upload ../production/upload/
|
|
432
469
|
e3-cloud files deploy https://e3.example.com/repos/acme staging src/files.ts
|
|
433
470
|
e3-cloud files sync https://e3.example.com/repos/acme staging
|
|
434
471
|
e3 dataflow run https://e3.example.com/repos/acme staging
|
|
435
472
|
|
|
436
|
-
# Then production:
|
|
473
|
+
# Then production: a new source in a bucket of your own bound first, the release, a sync
|
|
437
474
|
e3-cloud files bind https://e3.example.com/repos/acme production invoices s3://drop/acme/invoices/
|
|
438
475
|
e3-cloud release https://e3.example.com/repos/acme staging production
|
|
439
476
|
e3-cloud files sync https://e3.example.com/repos/acme production
|
|
@@ -480,7 +517,10 @@ and profile it was: `aws sso login --profile <name>` renews it.
|
|
|
480
517
|
a record of the file's type, a mutation of the record taking one argument
|
|
481
518
|
of the file's type;
|
|
482
519
|
- `checkBindings(manifest, bindings, policy)`: bindings against the
|
|
483
|
-
declarations, and in the cloud against
|
|
520
|
+
declarations, and in the cloud against where the deployment lets them
|
|
521
|
+
point: a path of the workspace's own storage (`policy.own`), or a bucket
|
|
522
|
+
it grants (`policy.granted`). A local repository's (`policy.local`) are
|
|
523
|
+
URLs alone, of any bucket.
|
|
484
524
|
|
|
485
525
|
Both answer `FilesProblem` values (from `@elaraai/e3-cloud-types`), each
|
|
486
526
|
rendered as one line by `filesProblemText`.
|
|
@@ -493,8 +533,11 @@ In `@elaraai/e3-cloud-types`, re-exported here:
|
|
|
493
533
|
(`FilesTargetType`: `input`, `record` or `mutation`), source and shape
|
|
494
534
|
(`FilesShapeType`: `file` and `latest`, each with an optional `type`;
|
|
495
535
|
`folder`, `listing`).
|
|
496
|
-
- `FilesBindingType`: a source's
|
|
497
|
-
`
|
|
536
|
+
- `FilesBindingType`: where a source's files are (`url`: a path of the
|
|
537
|
+
workspace's own storage, relative to it, or `s3://bucket/prefix/`), its
|
|
538
|
+
region, and, locally, profile and `latest`. `@elaraai/e3-cloud-types`
|
|
539
|
+
reads a path: `isOwnStoragePath`, `ownStoragePathProblem`,
|
|
540
|
+
`ownStoragePrefix`, `ownStorageDefaultPath`, `filesBindingPlace`.
|
|
498
541
|
- `FilesSyncReportType`: per target, the files new, changed, removed,
|
|
499
542
|
unchanged and refused (`FilesRefusalReasonType`: `too_large`,
|
|
500
543
|
`segment_too_large`, `unreadable`, `not_beast2`, `type_mismatch`,
|
package/dist/src/check.d.ts
CHANGED
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
* writable; a record's state type must be the type its file holds; a fed
|
|
12
12
|
* mutation must exist on its record, take exactly one argument, of the type
|
|
13
13
|
* its file holds, and be no `patch`. {@link checkBindings} is what a bind
|
|
14
|
-
* runs
|
|
14
|
+
* runs: a URL into a bucket the policy grants, or, where the deployment has
|
|
15
|
+
* storage of its own, a path in it relative to the workspace.
|
|
16
|
+
* {@link readPackageSurface} reads a package's inputs, records and
|
|
15
17
|
* mutations from its objects, through a reader: the store's on a server, a
|
|
16
18
|
* local repository's on a machine.
|
|
17
19
|
*
|
|
@@ -79,7 +81,7 @@ export declare function readPackageSurface(read: ObjectReader, packageHash: stri
|
|
|
79
81
|
* @returns Every problem
|
|
80
82
|
*/
|
|
81
83
|
export declare function checkFiles(manifest: FilesManifest, pkg: PackageSurface): FilesProblem[];
|
|
82
|
-
/** Where a binding may point: for a deployed workspace, the sources the deployment grants. */
|
|
84
|
+
/** Where a binding may point: for a deployed workspace, its own storage and the sources the deployment grants. */
|
|
83
85
|
export interface BindingPolicy {
|
|
84
86
|
/** Whether the bindings are a local repository's, where `profile` and `latest` apply */
|
|
85
87
|
readonly local: boolean;
|
|
@@ -88,6 +90,12 @@ export interface BindingPolicy {
|
|
|
88
90
|
readonly bucket: string;
|
|
89
91
|
readonly prefixes: readonly string[];
|
|
90
92
|
}[];
|
|
93
|
+
/**
|
|
94
|
+
* Whether the deployment has storage of its own, which a binding names by a
|
|
95
|
+
* path relative to its workspace (`upload/`, `../production/upload/`); a
|
|
96
|
+
* local repository has none
|
|
97
|
+
*/
|
|
98
|
+
readonly own?: boolean;
|
|
91
99
|
}
|
|
92
100
|
/**
|
|
93
101
|
* The problems of bindings against declarations, none when they fit.
|
package/dist/src/check.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../src/check.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH
|
|
1
|
+
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../src/check.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAoD,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AACrG,OAAO,EAAiE,KAAK,YAAY,EAAkB,MAAM,mBAAmB,CAAC;AACrI,OAAO,EAEL,KAAK,YAAY,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,KAAK,UAAU,EAC1E,MAAM,yBAAyB,CAAC;AAGjC,6BAA6B;AAC7B,MAAM,WAAW,YAAY;IAC3B,eAAe;IACf,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,2FAA2F;IAC3F,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B;AAED,wCAAwC;AACxC,MAAM,WAAW,eAAe;IAC9B,4CAA4C;IAC5C,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAC5B,iDAAiD;IACjD,QAAQ,CAAC,QAAQ,EAAE,SAAS,aAAa,EAAE,CAAC;CAC7C;AAED,6BAA6B;AAC7B,MAAM,WAAW,aAAa;IAC5B,mDAAmD;IACnD,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,6BAA6B;IAC7B,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;CAC1D;AAED,wGAAwG;AACxG,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,MAAM,EAAE,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7 +11,9 @@
|
|
|
11
11
|
* writable; a record's state type must be the type its file holds; a fed
|
|
12
12
|
* mutation must exist on its record, take exactly one argument, of the type
|
|
13
13
|
* its file holds, and be no `patch`. {@link checkBindings} is what a bind
|
|
14
|
-
* runs
|
|
14
|
+
* runs: a URL into a bucket the policy grants, or, where the deployment has
|
|
15
|
+
* storage of its own, a path in it relative to the workspace.
|
|
16
|
+
* {@link readPackageSurface} reads a package's inputs, records and
|
|
15
17
|
* mutations from its objects, through a reader: the store's on a server, a
|
|
16
18
|
* local repository's on a machine.
|
|
17
19
|
*
|
|
@@ -19,7 +21,7 @@
|
|
|
19
21
|
*/
|
|
20
22
|
import { EastTypeType, equalFor, toEastTypeValue, variant } from '@elaraai/east';
|
|
21
23
|
import { decodeMutationObject, decodePackageObject, decodeRecordObject } from '@elaraai/e3-types';
|
|
22
|
-
import { FilesFileType, FilesFolderType, FilesListingType, sameFilesTarget, } from '@elaraai/e3-cloud-types';
|
|
24
|
+
import { FilesFileType, FilesFolderType, FilesListingType, isOwnStoragePath, ownStoragePathProblem, sameFilesTarget, } from '@elaraai/e3-cloud-types';
|
|
23
25
|
import { includeProblem, keyProblem, parseBucketUrl, prefixProblem } from './paths.js';
|
|
24
26
|
const typesEqual = equalFor(EastTypeType);
|
|
25
27
|
/** The type a shape fills its target with: the type it names, else its `Blob` form. */
|
|
@@ -179,6 +181,20 @@ export function checkFiles(manifest, pkg) {
|
|
|
179
181
|
}
|
|
180
182
|
return problems;
|
|
181
183
|
}
|
|
184
|
+
/** Why a path of own storage cannot be bound under a policy, or `null` when it can: completing "'<path>' …". */
|
|
185
|
+
function ownStorageRefusal(binding, policy) {
|
|
186
|
+
if (policy.own !== true) {
|
|
187
|
+
return policy.local
|
|
188
|
+
? 'is no s3://bucket/prefix/ URL, and a local repository has no storage of its own to hold a path'
|
|
189
|
+
: 'is no s3://bucket/prefix/ URL, and this deployment has no storage of its own to hold a path';
|
|
190
|
+
}
|
|
191
|
+
const problem = ownStoragePathProblem(binding.url);
|
|
192
|
+
if (problem !== null)
|
|
193
|
+
return problem;
|
|
194
|
+
if (binding.region.type === 'some')
|
|
195
|
+
return "is the deployment's own storage, which is in its own region: name no region";
|
|
196
|
+
return null;
|
|
197
|
+
}
|
|
182
198
|
/**
|
|
183
199
|
* The problems of bindings against declarations, none when they fit.
|
|
184
200
|
*
|
|
@@ -194,6 +210,19 @@ export function checkBindings(manifest, bindings, policy) {
|
|
|
194
210
|
const { source, url } = binding;
|
|
195
211
|
if (!sources.has(source))
|
|
196
212
|
problems.push(variant('source_unknown', { source }));
|
|
213
|
+
if (isOwnStoragePath(url)) {
|
|
214
|
+
// A path of the deployment's own storage: under the repository's folder by its form, so granted
|
|
215
|
+
const reason = ownStorageRefusal(binding, policy);
|
|
216
|
+
if (reason !== null) {
|
|
217
|
+
problems.push(variant('invalid_url', { source, url, reason }));
|
|
218
|
+
continue;
|
|
219
|
+
}
|
|
220
|
+
if (binding.profile.type === 'some')
|
|
221
|
+
problems.push(variant('local_only', { source, option: 'profile' }));
|
|
222
|
+
if (binding.latest.type === 'some')
|
|
223
|
+
problems.push(variant('local_only', { source, option: 'latest' }));
|
|
224
|
+
continue;
|
|
225
|
+
}
|
|
197
226
|
const location = parseBucketUrl(url);
|
|
198
227
|
if ('problem' in location) {
|
|
199
228
|
problems.push(variant('invalid_url', { source, url, reason: location.problem }));
|
package/dist/src/check.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check.js","sourceRoot":"","sources":["../../src/check.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH
|
|
1
|
+
{"version":3,"file":"check.js","sourceRoot":"","sources":["../../src/check.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,eAAe,EAAE,OAAO,EAAsB,MAAM,eAAe,CAAC;AACrG,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,kBAA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,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/s3/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAiF,KAAK,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAElI,OAAO,EAA0C,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAE7F,sFAAsF;AACtF,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,+BAA+B;IAC/B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AA8CD;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,GAAG,WAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/s3/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAiF,KAAK,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAElI,OAAO,EAA0C,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAE7F,sFAAsF;AACtF,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,+BAA+B;IAC/B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AA8CD;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,GAAG,WAAW,CAiGjF"}
|
package/dist/src/s3/index.js
CHANGED
|
@@ -92,8 +92,9 @@ export function s3FilesReader(client, location) {
|
|
|
92
92
|
throw new FilesUnreadableError(file.key, reason);
|
|
93
93
|
throw err;
|
|
94
94
|
}
|
|
95
|
+
// Named by its key relative to the binding, as every refusal of a file is: a platform's own bucket is never named
|
|
95
96
|
if (object.Body === undefined)
|
|
96
|
-
throw new Error(
|
|
97
|
+
throw new Error(`${file.key}: the bucket answered no bytes`);
|
|
97
98
|
return object;
|
|
98
99
|
};
|
|
99
100
|
return {
|
package/dist/src/s3/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/s3/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,kBAAkB,EAAiB,MAAM,oBAAoB,CAAC;AAClI,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAsC,MAAM,mBAAmB,CAAC;AAS7F,yDAAyD;AACzD,SAAS,IAAI,CAAC,IAAwB;IACpC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;AAC5C,CAAC;AAED,6DAA6D;AAC7D,SAAS,OAAO,CAAC,GAAY;IAC3B,OAAO,GAAG,YAAY,kBAAkB,IAAI,CAAC,GAAG,CAAC,IAAI,KAAK,UAAU,IAAI,GAAG,CAAC,IAAI,KAAK,WAAW,IAAI,GAAG,CAAC,SAAS,CAAC,cAAc,KAAK,GAAG,CAAC,CAAC;AAC5I,CAAC;AAED,+DAA+D;AAC/D,SAAS,MAAM,CAAC,GAAY;IAC1B,OAAO,GAAG,YAAY,kBAAkB,IAAI,CAAC,GAAG,CAAC,IAAI,KAAK,cAAc,IAAI,GAAG,CAAC,SAAS,CAAC,cAAc,KAAK,GAAG,CAAC,CAAC;AACpH,CAAC;AAED;;;GAGG;AACH,SAAS,UAAU,CAAC,GAAY;IAC9B,IAAI,CAAC,CAAC,GAAG,YAAY,kBAAkB,CAAC;QAA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M,MAAM,CAAC,IAAI,CAAC,IAAI,iBAAiB,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,GAAG,EAAE,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,IAAI,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC;YACnI,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,MAAM,MAAM,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;gBACnC,IAAI,MAAM,KAAK,IAAI;oBAAE,MAAM,IAAI,oBAAoB,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;gBACtE,MAAM,GAAG,CAAC;YACZ,CAAC;YACD,OAAO,oBAAoB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC7C,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elaraai/e3-cloud-files",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "Files for e3 cloud: a solution's inputs that come from files in a bucket, declared in its code and synced on demand, locally and in the cloud",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
"node": ">=22.0.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@elaraai/e3-types": "1.0.
|
|
61
|
-
"@elaraai/e3-cloud-types": "1.1.
|
|
60
|
+
"@elaraai/e3-types": "1.0.102",
|
|
61
|
+
"@elaraai/e3-cloud-types": "1.1.3"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"@aws-sdk/client-s3": "^3.966.0",
|
|
65
|
-
"@elaraai/e3": "1.0.
|
|
66
|
-
"@elaraai/e3-core": "1.0.
|
|
67
|
-
"@elaraai/east": "1.0.
|
|
65
|
+
"@elaraai/e3": "1.0.102",
|
|
66
|
+
"@elaraai/e3-core": "1.0.102",
|
|
67
|
+
"@elaraai/east": "1.0.102"
|
|
68
68
|
},
|
|
69
69
|
"peerDependenciesMeta": {
|
|
70
70
|
"@aws-sdk/client-s3": {
|