@ecmaos/types 0.6.1 → 0.7.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.
- package/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +37 -0
- package/dist/filesystem.d.ts +27 -0
- package/dist/filesystem.d.ts.map +1 -1
- package/filesystem.ts +30 -0
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# @ecmaos/types
|
|
2
2
|
|
|
3
|
+
## 0.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- c6d3ea8: Filesystem & Mount System
|
|
8
|
+
|
|
9
|
+
- Added fstab file processing and parsing utilities
|
|
10
|
+
- Implemented mount and umount commands with full filesystem support
|
|
11
|
+
- Changed environment variable prefix handling
|
|
12
|
+
- Enhanced filesystem configuration and mount management
|
|
13
|
+
|
|
14
|
+
Environment Management
|
|
15
|
+
|
|
16
|
+
- Added support for global /etc/env file
|
|
17
|
+
- Fixed env command argument handling
|
|
18
|
+
- New env command implementation in core/utils
|
|
19
|
+
|
|
20
|
+
Documentation & SEO
|
|
21
|
+
|
|
22
|
+
- Enhanced HTML metadata and SEO improvements
|
|
23
|
+
- Added AI and passkey tutorials
|
|
24
|
+
- Updated README with expanded documentation
|
|
25
|
+
- Added lighthouse performance report
|
|
26
|
+
- Updated project description
|
|
27
|
+
|
|
28
|
+
Bug Fixes & Enhancements
|
|
29
|
+
|
|
30
|
+
- Enhanced cron command with improved parsing and functionality
|
|
31
|
+
- Fixed readline bug in terminal
|
|
32
|
+
- Fixed less command first-line offset display issue
|
|
33
|
+
|
|
34
|
+
Miscellaneous
|
|
35
|
+
|
|
36
|
+
- Removed offers metadata from HTML
|
|
37
|
+
- Sorted package.json scripts
|
|
38
|
+
- Synced documentation across codebase
|
|
39
|
+
|
|
3
40
|
## 0.6.1
|
|
4
41
|
|
|
5
42
|
### Patch Changes
|
package/dist/filesystem.d.ts
CHANGED
|
@@ -35,6 +35,33 @@ export interface FilesystemDescriptions {
|
|
|
35
35
|
*/
|
|
36
36
|
descriptions: (t?: TFunction | ((key: string) => string)) => Map<string, string>;
|
|
37
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Represents an entry in the fstab (filesystem table).
|
|
40
|
+
* Analogous to /etc/fstab in Linux, but simplified for our use.
|
|
41
|
+
*/
|
|
42
|
+
export interface FstabEntry {
|
|
43
|
+
/**
|
|
44
|
+
* The source of the mount, e.g., device, URL, database name, etc.
|
|
45
|
+
* For memory/webstorage/dropbox/googledrive, this may be empty/ignored.
|
|
46
|
+
*/
|
|
47
|
+
source: string;
|
|
48
|
+
/**
|
|
49
|
+
* The target mount point (absolute path in the virtual FS)
|
|
50
|
+
*/
|
|
51
|
+
target: string;
|
|
52
|
+
/**
|
|
53
|
+
* Filesystem type (e.g., 'memory', 'fetch', 'indexeddb', 'webstorage', 'zip', 'iso', 'dropbox', 'googledrive', etc.)
|
|
54
|
+
*/
|
|
55
|
+
type: string;
|
|
56
|
+
/**
|
|
57
|
+
* Optional comma-separated mount options (e.g., "size=1048576,storage=localStorage")
|
|
58
|
+
*/
|
|
59
|
+
options?: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* fstab table: a list of fstab entries.
|
|
63
|
+
*/
|
|
64
|
+
export type Fstab = FstabEntry[];
|
|
38
65
|
/**
|
|
39
66
|
* Interface for filesystem functionality
|
|
40
67
|
*/
|
package/dist/filesystem.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filesystem.d.ts","sourceRoot":"","sources":["../filesystem.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC;;GAEG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CAAC,EAAE,MAAM,CAAA;CACjB;AAED;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG,UAAU,EAAE,CAAA;AAGhC;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,uCAAuC;IACvC,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAC,YAAY,CAAC,CAAA;IAChD,+BAA+B;IAC/B,QAAQ,CAAC,SAAS,EAAE,GAAG,CAAA;IACvB,iCAAiC;IAEjC,gCAAgC;IAEhC,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,EAAE,OAAO,EAAE,CAAC,QAAQ,CAAA;IAC/B,8CAA8C;IAC9C,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,CAAA;IAC1B,8BAA8B;IAG9B;;;OAGG;IACH,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAE3E;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IAEtC;;;;OAIG;IACH,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAEvE;;;OAGG;IACH,YAAY,CAAC,CAAC,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAC7E"}
|
package/filesystem.ts
CHANGED
|
@@ -42,6 +42,36 @@ export interface FilesystemDescriptions {
|
|
|
42
42
|
descriptions: (t?: TFunction | ((key: string) => string)) => Map<string, string>
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
/**
|
|
46
|
+
* Represents an entry in the fstab (filesystem table).
|
|
47
|
+
* Analogous to /etc/fstab in Linux, but simplified for our use.
|
|
48
|
+
*/
|
|
49
|
+
export interface FstabEntry {
|
|
50
|
+
/**
|
|
51
|
+
* The source of the mount, e.g., device, URL, database name, etc.
|
|
52
|
+
* For memory/webstorage/dropbox/googledrive, this may be empty/ignored.
|
|
53
|
+
*/
|
|
54
|
+
source: string
|
|
55
|
+
/**
|
|
56
|
+
* The target mount point (absolute path in the virtual FS)
|
|
57
|
+
*/
|
|
58
|
+
target: string
|
|
59
|
+
/**
|
|
60
|
+
* Filesystem type (e.g., 'memory', 'fetch', 'indexeddb', 'webstorage', 'zip', 'iso', 'dropbox', 'googledrive', etc.)
|
|
61
|
+
*/
|
|
62
|
+
type: string
|
|
63
|
+
/**
|
|
64
|
+
* Optional comma-separated mount options (e.g., "size=1048576,storage=localStorage")
|
|
65
|
+
*/
|
|
66
|
+
options?: string
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* fstab table: a list of fstab entries.
|
|
71
|
+
*/
|
|
72
|
+
export type Fstab = FstabEntry[]
|
|
73
|
+
|
|
74
|
+
|
|
45
75
|
/**
|
|
46
76
|
* Interface for filesystem functionality
|
|
47
77
|
*/
|