@g3nomaly/core 0.1.6 → 0.3.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/README.md +3 -0
- package/package.json +3 -50
- package/LICENSE +0 -95
- package/dist/config/config.d.ts +0 -33
- package/dist/config/config.d.ts.map +0 -1
- package/dist/config/config.js +0 -87
- package/dist/config/config.js.map +0 -1
- package/dist/config/index.d.ts +0 -4
- package/dist/config/index.d.ts.map +0 -1
- package/dist/config/index.js +0 -3
- package/dist/config/index.js.map +0 -1
- package/dist/config/types.d.ts +0 -141
- package/dist/config/types.d.ts.map +0 -1
- package/dist/config/types.js +0 -66
- package/dist/config/types.js.map +0 -1
- package/dist/hash/hash.d.ts +0 -25
- package/dist/hash/hash.d.ts.map +0 -1
- package/dist/hash/hash.js +0 -44
- package/dist/hash/hash.js.map +0 -1
- package/dist/hash/index.d.ts +0 -2
- package/dist/hash/index.d.ts.map +0 -1
- package/dist/hash/index.js +0 -2
- package/dist/hash/index.js.map +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +0 -1
- package/dist/registry/index.d.ts +0 -12
- package/dist/registry/index.d.ts.map +0 -1
- package/dist/registry/index.js +0 -12
- package/dist/registry/index.js.map +0 -1
- package/dist/registry/registry.handlers.d.ts +0 -9
- package/dist/registry/registry.handlers.d.ts.map +0 -1
- package/dist/registry/registry.handlers.js +0 -13
- package/dist/registry/registry.handlers.js.map +0 -1
- package/dist/registry/registry.io.d.ts +0 -22
- package/dist/registry/registry.io.d.ts.map +0 -1
- package/dist/registry/registry.io.js +0 -78
- package/dist/registry/registry.io.js.map +0 -1
- package/dist/registry/registry.mutations.d.ts +0 -12
- package/dist/registry/registry.mutations.d.ts.map +0 -1
- package/dist/registry/registry.mutations.js +0 -22
- package/dist/registry/registry.mutations.js.map +0 -1
- package/dist/registry/registry.selectors.d.ts +0 -27
- package/dist/registry/registry.selectors.d.ts.map +0 -1
- package/dist/registry/registry.selectors.js +0 -37
- package/dist/registry/registry.selectors.js.map +0 -1
- package/dist/registry/registry.store.d.ts +0 -34
- package/dist/registry/registry.store.d.ts.map +0 -1
- package/dist/registry/registry.store.js +0 -27
- package/dist/registry/registry.store.js.map +0 -1
- package/dist/registry/registry.template.d.ts +0 -23
- package/dist/registry/registry.template.d.ts.map +0 -1
- package/dist/registry/registry.template.js +0 -63
- package/dist/registry/registry.template.js.map +0 -1
- package/dist/registry/types.d.ts +0 -31
- package/dist/registry/types.d.ts.map +0 -1
- package/dist/registry/types.js +0 -20
- package/dist/registry/types.js.map +0 -1
- package/dist/security/index.d.ts +0 -2
- package/dist/security/index.d.ts.map +0 -1
- package/dist/security/index.js +0 -2
- package/dist/security/index.js.map +0 -1
- package/dist/security/securityParser.d.ts +0 -14
- package/dist/security/securityParser.d.ts.map +0 -1
- package/dist/security/securityParser.js +0 -89
- package/dist/security/securityParser.js.map +0 -1
- package/dist/security/securityWorker.d.ts +0 -8
- package/dist/security/securityWorker.d.ts.map +0 -1
- package/dist/security/securityWorker.js +0 -158
- package/dist/security/securityWorker.js.map +0 -1
- package/dist/utils/index.d.ts +0 -3
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js +0 -4
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/paths.d.ts +0 -16
- package/dist/utils/paths.d.ts.map +0 -1
- package/dist/utils/paths.js +0 -40
- package/dist/utils/paths.js.map +0 -1
- package/dist/utils/version.d.ts +0 -9
- package/dist/utils/version.d.ts.map +0 -1
- package/dist/utils/version.js +0 -103
- package/dist/utils/version.js.map +0 -1
package/README.md
ADDED
package/package.json
CHANGED
|
@@ -1,53 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@g3nomaly/core",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
6
|
-
"main": "./dist/index.js",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"types": "./dist/index.d.ts",
|
|
10
|
-
"default": "./dist/index.js"
|
|
11
|
-
},
|
|
12
|
-
"./hash": {
|
|
13
|
-
"types": "./dist/hash/index.d.ts",
|
|
14
|
-
"default": "./dist/hash/index.js"
|
|
15
|
-
},
|
|
16
|
-
"./registry": {
|
|
17
|
-
"types": "./dist/registry/index.d.ts",
|
|
18
|
-
"default": "./dist/registry/index.js"
|
|
19
|
-
},
|
|
20
|
-
"./security": {
|
|
21
|
-
"types": "./dist/security/index.d.ts",
|
|
22
|
-
"default": "./dist/security/index.js"
|
|
23
|
-
},
|
|
24
|
-
"./config": {
|
|
25
|
-
"types": "./dist/config/index.d.ts",
|
|
26
|
-
"default": "./dist/config/index.js"
|
|
27
|
-
},
|
|
28
|
-
"./utils": {
|
|
29
|
-
"types": "./dist/utils/index.d.ts",
|
|
30
|
-
"default": "./dist/utils/index.js"
|
|
31
|
-
},
|
|
32
|
-
"./package.json": "./package.json"
|
|
33
|
-
},
|
|
34
|
-
"files": [
|
|
35
|
-
"dist"
|
|
36
|
-
],
|
|
37
|
-
"scripts": {
|
|
38
|
-
"build": "tsc --project tsconfig.build.json",
|
|
39
|
-
"typecheck": "tsc --noEmit"
|
|
40
|
-
},
|
|
41
|
-
"dependencies": {
|
|
42
|
-
"@tanstack/store": "^0.11.1",
|
|
43
|
-
"zod": "^4.4.3"
|
|
44
|
-
},
|
|
45
|
-
"devDependencies": {
|
|
46
|
-
"@types/bun": "^1.4.0",
|
|
47
|
-
"typescript": "~7.0.2"
|
|
48
|
-
},
|
|
49
|
-
"license": "Elastic-2.0",
|
|
50
|
-
"publishConfig": {
|
|
51
|
-
"access": "public"
|
|
52
|
-
}
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "Placeholder. This package name is reserved; no functional release is currently published.",
|
|
5
|
+
"license": "MIT"
|
|
53
6
|
}
|
package/LICENSE
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2026 G3NTs - G3nomaly
|
|
2
|
-
|
|
3
|
-
Elastic License 2.0
|
|
4
|
-
|
|
5
|
-
URL: https://www.elastic.co/licensing/elastic-license
|
|
6
|
-
|
|
7
|
-
## Acceptance
|
|
8
|
-
|
|
9
|
-
By using the software, you agree to all of the terms and conditions below.
|
|
10
|
-
|
|
11
|
-
## Copyright License
|
|
12
|
-
|
|
13
|
-
The licensor grants you a non-exclusive, royalty-free, worldwide,
|
|
14
|
-
non-sublicensable, non-transferable license to use, copy, distribute, make
|
|
15
|
-
available, and prepare derivative works of the software, in each case subject to
|
|
16
|
-
the limitations and conditions below.
|
|
17
|
-
|
|
18
|
-
## Limitations
|
|
19
|
-
|
|
20
|
-
You may not provide the software to third parties as a hosted or managed
|
|
21
|
-
service, where the service provides users with access to any substantial set of
|
|
22
|
-
the features or functionality of the software.
|
|
23
|
-
|
|
24
|
-
You may not move, change, disable, or circumvent the license key functionality
|
|
25
|
-
in the software, and you may not remove or obscure any functionality in the
|
|
26
|
-
software that is protected by the license key.
|
|
27
|
-
|
|
28
|
-
You may not alter, remove, or obscure any licensing, copyright, or other notices
|
|
29
|
-
of the licensor in the software. Any use of the licensor’s trademarks is subject
|
|
30
|
-
to applicable law.
|
|
31
|
-
|
|
32
|
-
## Patents
|
|
33
|
-
|
|
34
|
-
The licensor grants you a license, under any patent claims the licensor can
|
|
35
|
-
license, or becomes able to license, to make, have made, use, sell, offer for
|
|
36
|
-
sale, import and have imported the software, in each case subject to the
|
|
37
|
-
limitations and conditions in this license. This license does not cover any
|
|
38
|
-
patent claims that you cause to be infringed by modifications or additions to
|
|
39
|
-
the software. If you or your company make any written claim that the software
|
|
40
|
-
infringes or contributes to infringement of any patent, your patent license for
|
|
41
|
-
the software granted under these terms ends immediately. If your company makes
|
|
42
|
-
such a claim, your patent license ends immediately for work on behalf of your
|
|
43
|
-
company.
|
|
44
|
-
|
|
45
|
-
## Notices
|
|
46
|
-
|
|
47
|
-
You must ensure that anyone who gets a copy of any part of the software from you
|
|
48
|
-
also gets a copy of these terms.
|
|
49
|
-
|
|
50
|
-
If you modify the software, you must include in any modified copies of the
|
|
51
|
-
software prominent notices stating that you have modified the software.
|
|
52
|
-
|
|
53
|
-
## No Other Rights
|
|
54
|
-
|
|
55
|
-
These terms do not imply any licenses other than those expressly granted in
|
|
56
|
-
these terms.
|
|
57
|
-
|
|
58
|
-
## Termination
|
|
59
|
-
|
|
60
|
-
If you use the software in violation of these terms, such use is not licensed,
|
|
61
|
-
and your licenses will automatically terminate. If the licensor provides you
|
|
62
|
-
with a notice of your violation, and you cease all violation of this license no
|
|
63
|
-
later than 30 days after you receive that notice, your licenses will be
|
|
64
|
-
reinstated retroactively. However, if you violate these terms after such
|
|
65
|
-
reinstatement, any additional violation of these terms will cause your licenses
|
|
66
|
-
to terminate automatically and permanently.
|
|
67
|
-
|
|
68
|
-
## No Liability
|
|
69
|
-
|
|
70
|
-
*As far as the law allows, the software comes as is, without any warranty or
|
|
71
|
-
condition, and the licensor will not be liable to you for any damages arising
|
|
72
|
-
out of these terms or the use or nature of the software, under any kind of
|
|
73
|
-
legal claim.*
|
|
74
|
-
|
|
75
|
-
## Definitions
|
|
76
|
-
|
|
77
|
-
The **licensor** is the entity offering these terms, and the **software** is the
|
|
78
|
-
software the licensor makes available under these terms, including any portion
|
|
79
|
-
of it.
|
|
80
|
-
|
|
81
|
-
**you** refers to the individual or entity agreeing to these terms.
|
|
82
|
-
|
|
83
|
-
**your company** is any legal entity, sole proprietorship, or other kind of
|
|
84
|
-
organization that you work for, plus all organizations that have control over,
|
|
85
|
-
are under the control of, or are under common control with that
|
|
86
|
-
organization. **control** means ownership of substantially all the assets of an
|
|
87
|
-
entity, or the power to direct its management and policies by vote, contract, or
|
|
88
|
-
otherwise. Control can be direct or indirect.
|
|
89
|
-
|
|
90
|
-
**your licenses** are all the licenses granted to you for the software under
|
|
91
|
-
these terms.
|
|
92
|
-
|
|
93
|
-
**use** means anything you do with the software requiring one of your licenses.
|
|
94
|
-
|
|
95
|
-
**trademark** means trademarks, service marks, and similar rights.
|
package/dist/config/config.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { type G3nConfig, type CoreConfig, type G3nuiConfig, type G3nerateConfig, type SkillsConfig } from "./types";
|
|
2
|
-
export declare function getConfigPath(projectRoot: string): string;
|
|
3
|
-
/**
|
|
4
|
-
* Directory that owns the project's `.g3n.config.json`: the nearest ancestor
|
|
5
|
-
* of `fromDir` holding the config file, else the root of the git repository
|
|
6
|
-
* containing `fromDir`. Returns null outside a git repository when no config
|
|
7
|
-
* exists on the way up — g3n projects are always anchored to a git repo.
|
|
8
|
-
*/
|
|
9
|
-
export declare function resolveProjectRoot(fromDir?: string): string | null;
|
|
10
|
-
/**
|
|
11
|
-
* Loads `.g3n.config.json` from the project root.
|
|
12
|
-
* Returns a fully-defaulted config if the file doesn't exist yet.
|
|
13
|
-
*/
|
|
14
|
-
export declare function loadConfig(projectRoot: string): Promise<G3nConfig>;
|
|
15
|
-
/** Every key optional at every depth, so a caller can name one setting alone. */
|
|
16
|
-
type DeepPartial<T> = T extends readonly unknown[] ? T : T extends object ? {
|
|
17
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
18
|
-
} : T;
|
|
19
|
-
/**
|
|
20
|
-
* Deep-merges updates into the existing config and writes back to disk.
|
|
21
|
-
* Pass any subset of the config — only the keys you provide are updated.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* await saveConfig(cwd, { g3nui: { settings: { componentsDir: "src/ui" } } })
|
|
25
|
-
*/
|
|
26
|
-
export declare function saveConfig(projectRoot: string, updates: DeepPartial<G3nConfig>): Promise<G3nConfig>;
|
|
27
|
-
export declare function loadCoreConfig(projectRoot: string): Promise<CoreConfig>;
|
|
28
|
-
export declare function loadG3nuiConfig(projectRoot: string): Promise<G3nuiConfig>;
|
|
29
|
-
export declare function loadG3nerateConfig(projectRoot: string): Promise<G3nerateConfig>;
|
|
30
|
-
export declare function loadSkillsConfig(projectRoot: string): Promise<SkillsConfig>;
|
|
31
|
-
export declare function configExists(projectRoot: string): Promise<boolean>;
|
|
32
|
-
export {};
|
|
33
|
-
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,YAAY,EAClB,MAAM,SAAS,CAAC;AAYjB,wBAAgB,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,GAAE,MAAsB,GAAG,MAAM,GAAG,IAAI,CASjF;AAMD;;;GAGG;AACH,wBAAsB,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CAWxE;AAMD,iFAAiF;AACjF,KAAK,WAAW,CAAC,CAAC,IAChB,CAAC,SAAS,SAAS,OAAO,EAAE,GAAG,CAAC,GAC9B,CAAC,SAAS,MAAM,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GACzD,CAAC,CAAC;AAEN;;;;;;GAMG;AACH,wBAAsB,UAAU,CAC9B,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,GAC9B,OAAO,CAAC,SAAS,CAAC,CAapB;AAMD,wBAAsB,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAE7E;AAED,wBAAsB,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAE/E;AAED,wBAAsB,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAErF;AAED,wBAAsB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAEjF;AAED,wBAAsB,YAAY,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAExE"}
|
package/dist/config/config.js
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
// packages/core/src/config/config.ts
|
|
2
|
-
import { existsSync } from "node:fs";
|
|
3
|
-
import { dirname, join } from "node:path";
|
|
4
|
-
import { G3nConfigSchema, } from "./types";
|
|
5
|
-
if ("window" in globalThis) {
|
|
6
|
-
throw new Error("@g3nomaly/core config utilities are CLI-only");
|
|
7
|
-
}
|
|
8
|
-
// ---------------------------------------------------------------------------
|
|
9
|
-
// Path helper
|
|
10
|
-
// ---------------------------------------------------------------------------
|
|
11
|
-
const CONFIG_FILE = ".g3n.config.json";
|
|
12
|
-
export function getConfigPath(projectRoot) {
|
|
13
|
-
return join(projectRoot, CONFIG_FILE);
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Directory that owns the project's `.g3n.config.json`: the nearest ancestor
|
|
17
|
-
* of `fromDir` holding the config file, else the root of the git repository
|
|
18
|
-
* containing `fromDir`. Returns null outside a git repository when no config
|
|
19
|
-
* exists on the way up — g3n projects are always anchored to a git repo.
|
|
20
|
-
*/
|
|
21
|
-
export function resolveProjectRoot(fromDir = process.cwd()) {
|
|
22
|
-
let dir = fromDir;
|
|
23
|
-
while (true) {
|
|
24
|
-
if (existsSync(join(dir, CONFIG_FILE)))
|
|
25
|
-
return dir;
|
|
26
|
-
if (existsSync(join(dir, ".git")))
|
|
27
|
-
return dir;
|
|
28
|
-
const parent = dirname(dir);
|
|
29
|
-
if (parent === dir)
|
|
30
|
-
return null;
|
|
31
|
-
dir = parent;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
// ---------------------------------------------------------------------------
|
|
35
|
-
// Read
|
|
36
|
-
// ---------------------------------------------------------------------------
|
|
37
|
-
/**
|
|
38
|
-
* Loads `.g3n.config.json` from the project root.
|
|
39
|
-
* Returns a fully-defaulted config if the file doesn't exist yet.
|
|
40
|
-
*/
|
|
41
|
-
export async function loadConfig(projectRoot) {
|
|
42
|
-
const configPath = getConfigPath(projectRoot);
|
|
43
|
-
const file = Bun.file(configPath);
|
|
44
|
-
const exists = await file.exists();
|
|
45
|
-
if (!exists) {
|
|
46
|
-
return G3nConfigSchema.parse({});
|
|
47
|
-
}
|
|
48
|
-
const raw = await file.json();
|
|
49
|
-
return G3nConfigSchema.parse(raw);
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Deep-merges updates into the existing config and writes back to disk.
|
|
53
|
-
* Pass any subset of the config — only the keys you provide are updated.
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* await saveConfig(cwd, { g3nui: { settings: { componentsDir: "src/ui" } } })
|
|
57
|
-
*/
|
|
58
|
-
export async function saveConfig(projectRoot, updates) {
|
|
59
|
-
const existing = await loadConfig(projectRoot);
|
|
60
|
-
const merged = G3nConfigSchema.parse({
|
|
61
|
-
core: { ...existing.core, ...updates.core },
|
|
62
|
-
g3nui: { ...existing.g3nui, ...updates.g3nui, settings: { ...existing.g3nui.settings, ...updates.g3nui?.settings } },
|
|
63
|
-
g3nerate: { ...existing.g3nerate, ...updates.g3nerate, settings: { ...existing.g3nerate.settings, ...updates.g3nerate?.settings } },
|
|
64
|
-
skills: { ...existing.skills, ...updates.skills, settings: { ...existing.skills.settings, ...updates.skills?.settings } },
|
|
65
|
-
});
|
|
66
|
-
await Bun.write(getConfigPath(projectRoot), JSON.stringify(merged, null, 2));
|
|
67
|
-
return merged;
|
|
68
|
-
}
|
|
69
|
-
// ---------------------------------------------------------------------------
|
|
70
|
-
// Section accessors
|
|
71
|
-
// ---------------------------------------------------------------------------
|
|
72
|
-
export async function loadCoreConfig(projectRoot) {
|
|
73
|
-
return (await loadConfig(projectRoot)).core;
|
|
74
|
-
}
|
|
75
|
-
export async function loadG3nuiConfig(projectRoot) {
|
|
76
|
-
return (await loadConfig(projectRoot)).g3nui;
|
|
77
|
-
}
|
|
78
|
-
export async function loadG3nerateConfig(projectRoot) {
|
|
79
|
-
return (await loadConfig(projectRoot)).g3nerate;
|
|
80
|
-
}
|
|
81
|
-
export async function loadSkillsConfig(projectRoot) {
|
|
82
|
-
return (await loadConfig(projectRoot)).skills;
|
|
83
|
-
}
|
|
84
|
-
export async function configExists(projectRoot) {
|
|
85
|
-
return Bun.file(getConfigPath(projectRoot)).exists();
|
|
86
|
-
}
|
|
87
|
-
//# sourceMappingURL=config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EACL,eAAe,GAMhB,MAAM,SAAS,CAAC;AAEjB,IAAI,QAAQ,IAAI,UAAU,EAAE,CAAC;IAC3B,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAC;AAClE,CAAC;AAED,8EAA8E;AAC9E,cAAc;AACd,8EAA8E;AAE9E,MAAM,WAAW,GAAG,kBAAkB,CAAC;AAEvC,MAAM,UAAU,aAAa,CAAC,WAAmB;IAC/C,OAAO,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;AACxC,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAAO,GAAW,OAAO,CAAC,GAAG,EAAE;IAChE,IAAI,GAAG,GAAG,OAAO,CAAC;IAClB,OAAO,IAAI,EAAE,CAAC;QACZ,IAAI,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;YAAE,OAAO,GAAG,CAAC;QACnD,IAAI,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;YAAE,OAAO,GAAG,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M,EAAE,CAAC;AACvD,CAAC"}
|
package/dist/config/index.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export type { CoreConfig, PackageMeta, G3nuiSettings, G3nuiConfig, G3nerateSettings, G3nerateConfig, SkillTarget, SkillsInstallDirs, SkillsSettings, SkillsConfig, G3nConfig, } from "./types";
|
|
2
|
-
export { CoreConfigSchema, PackageMetaSchema, G3nuiSettingsSchema, G3nuiConfigSchema, G3nerateSettingsSchema, G3nerateConfigSchema, SkillTargetSchema, SkillsInstallDirsSchema, SkillsSettingsSchema, SkillsConfigSchema, G3nConfigSchema, } from "./types";
|
|
3
|
-
export { getConfigPath, resolveProjectRoot, loadConfig, saveConfig, loadCoreConfig, loadG3nuiConfig, loadG3nerateConfig, loadSkillsConfig, configExists, } from "./config";
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,UAAU,EACV,WAAW,EACX,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,SAAS,GACV,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,EACjB,sBAAsB,EACtB,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,GAChB,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,UAAU,EACV,UAAU,EACV,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,GACb,MAAM,UAAU,CAAC"}
|
package/dist/config/index.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { CoreConfigSchema, PackageMetaSchema, G3nuiSettingsSchema, G3nuiConfigSchema, G3nerateSettingsSchema, G3nerateConfigSchema, SkillTargetSchema, SkillsInstallDirsSchema, SkillsSettingsSchema, SkillsConfigSchema, G3nConfigSchema, } from "./types";
|
|
2
|
-
export { getConfigPath, resolveProjectRoot, loadConfig, saveConfig, loadCoreConfig, loadG3nuiConfig, loadG3nerateConfig, loadSkillsConfig, configExists, } from "./config";
|
|
3
|
-
//# sourceMappingURL=index.js.map
|
package/dist/config/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAeA,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,EACjB,sBAAsB,EACtB,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,GAChB,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,UAAU,EACV,UAAU,EACV,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,GACb,MAAM,UAAU,CAAC"}
|
package/dist/config/types.d.ts
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const CoreConfigSchema: z.ZodObject<{
|
|
3
|
-
version: z.ZodDefault<z.ZodString>;
|
|
4
|
-
description: z.ZodDefault<z.ZodString>;
|
|
5
|
-
license: z.ZodDefault<z.ZodString>;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
/** Shared package metadata present on every non-core package section */
|
|
8
|
-
export declare const PackageMetaSchema: z.ZodObject<{
|
|
9
|
-
version: z.ZodDefault<z.ZodString>;
|
|
10
|
-
description: z.ZodDefault<z.ZodString>;
|
|
11
|
-
license: z.ZodDefault<z.ZodString>;
|
|
12
|
-
}, z.core.$strip>;
|
|
13
|
-
export declare const G3nuiSettingsSchema: z.ZodObject<{
|
|
14
|
-
componentsDir: z.ZodDefault<z.ZodString>;
|
|
15
|
-
includeDebugFiles: z.ZodDefault<z.ZodBoolean>;
|
|
16
|
-
includeMetaFiles: z.ZodDefault<z.ZodBoolean>;
|
|
17
|
-
manifestFormat: z.ZodDefault<z.ZodEnum<{
|
|
18
|
-
json: "json";
|
|
19
|
-
ts: "ts";
|
|
20
|
-
}>>;
|
|
21
|
-
registeredPackages: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
22
|
-
}, z.core.$strip>;
|
|
23
|
-
export declare const G3nuiConfigSchema: z.ZodObject<{
|
|
24
|
-
version: z.ZodDefault<z.ZodString>;
|
|
25
|
-
description: z.ZodDefault<z.ZodString>;
|
|
26
|
-
license: z.ZodDefault<z.ZodString>;
|
|
27
|
-
settings: z.ZodDefault<z.ZodObject<{
|
|
28
|
-
componentsDir: z.ZodDefault<z.ZodString>;
|
|
29
|
-
includeDebugFiles: z.ZodDefault<z.ZodBoolean>;
|
|
30
|
-
includeMetaFiles: z.ZodDefault<z.ZodBoolean>;
|
|
31
|
-
manifestFormat: z.ZodDefault<z.ZodEnum<{
|
|
32
|
-
json: "json";
|
|
33
|
-
ts: "ts";
|
|
34
|
-
}>>;
|
|
35
|
-
registeredPackages: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
36
|
-
}, z.core.$strip>>;
|
|
37
|
-
}, z.core.$strip>;
|
|
38
|
-
export declare const G3nerateSettingsSchema: z.ZodObject<{
|
|
39
|
-
outputDir: z.ZodDefault<z.ZodString>;
|
|
40
|
-
}, z.core.$strip>;
|
|
41
|
-
export declare const G3nerateConfigSchema: z.ZodObject<{
|
|
42
|
-
version: z.ZodDefault<z.ZodString>;
|
|
43
|
-
description: z.ZodDefault<z.ZodString>;
|
|
44
|
-
license: z.ZodDefault<z.ZodString>;
|
|
45
|
-
settings: z.ZodDefault<z.ZodObject<{
|
|
46
|
-
outputDir: z.ZodDefault<z.ZodString>;
|
|
47
|
-
}, z.core.$strip>>;
|
|
48
|
-
}, z.core.$strip>;
|
|
49
|
-
export declare const SkillTargetSchema: z.ZodEnum<{
|
|
50
|
-
claude: "claude";
|
|
51
|
-
codex: "codex";
|
|
52
|
-
}>;
|
|
53
|
-
export declare const SkillsInstallDirsSchema: z.ZodObject<{
|
|
54
|
-
claude: z.ZodDefault<z.ZodString>;
|
|
55
|
-
codex: z.ZodDefault<z.ZodString>;
|
|
56
|
-
}, z.core.$strip>;
|
|
57
|
-
export declare const SkillsSettingsSchema: z.ZodObject<{
|
|
58
|
-
filetreeRoot: z.ZodDefault<z.ZodString>;
|
|
59
|
-
targets: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
60
|
-
claude: "claude";
|
|
61
|
-
codex: "codex";
|
|
62
|
-
}>>>;
|
|
63
|
-
installDirs: z.ZodDefault<z.ZodObject<{
|
|
64
|
-
claude: z.ZodDefault<z.ZodString>;
|
|
65
|
-
codex: z.ZodDefault<z.ZodString>;
|
|
66
|
-
}, z.core.$strip>>;
|
|
67
|
-
}, z.core.$strip>;
|
|
68
|
-
export declare const SkillsConfigSchema: z.ZodObject<{
|
|
69
|
-
version: z.ZodDefault<z.ZodString>;
|
|
70
|
-
description: z.ZodDefault<z.ZodString>;
|
|
71
|
-
license: z.ZodDefault<z.ZodString>;
|
|
72
|
-
settings: z.ZodDefault<z.ZodObject<{
|
|
73
|
-
filetreeRoot: z.ZodDefault<z.ZodString>;
|
|
74
|
-
targets: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
75
|
-
claude: "claude";
|
|
76
|
-
codex: "codex";
|
|
77
|
-
}>>>;
|
|
78
|
-
installDirs: z.ZodDefault<z.ZodObject<{
|
|
79
|
-
claude: z.ZodDefault<z.ZodString>;
|
|
80
|
-
codex: z.ZodDefault<z.ZodString>;
|
|
81
|
-
}, z.core.$strip>>;
|
|
82
|
-
}, z.core.$strip>>;
|
|
83
|
-
}, z.core.$strip>;
|
|
84
|
-
export declare const G3nConfigSchema: z.ZodObject<{
|
|
85
|
-
core: z.ZodDefault<z.ZodObject<{
|
|
86
|
-
version: z.ZodDefault<z.ZodString>;
|
|
87
|
-
description: z.ZodDefault<z.ZodString>;
|
|
88
|
-
license: z.ZodDefault<z.ZodString>;
|
|
89
|
-
}, z.core.$strip>>;
|
|
90
|
-
g3nui: z.ZodDefault<z.ZodObject<{
|
|
91
|
-
version: z.ZodDefault<z.ZodString>;
|
|
92
|
-
description: z.ZodDefault<z.ZodString>;
|
|
93
|
-
license: z.ZodDefault<z.ZodString>;
|
|
94
|
-
settings: z.ZodDefault<z.ZodObject<{
|
|
95
|
-
componentsDir: z.ZodDefault<z.ZodString>;
|
|
96
|
-
includeDebugFiles: z.ZodDefault<z.ZodBoolean>;
|
|
97
|
-
includeMetaFiles: z.ZodDefault<z.ZodBoolean>;
|
|
98
|
-
manifestFormat: z.ZodDefault<z.ZodEnum<{
|
|
99
|
-
json: "json";
|
|
100
|
-
ts: "ts";
|
|
101
|
-
}>>;
|
|
102
|
-
registeredPackages: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
103
|
-
}, z.core.$strip>>;
|
|
104
|
-
}, z.core.$strip>>;
|
|
105
|
-
g3nerate: z.ZodDefault<z.ZodObject<{
|
|
106
|
-
version: z.ZodDefault<z.ZodString>;
|
|
107
|
-
description: z.ZodDefault<z.ZodString>;
|
|
108
|
-
license: z.ZodDefault<z.ZodString>;
|
|
109
|
-
settings: z.ZodDefault<z.ZodObject<{
|
|
110
|
-
outputDir: z.ZodDefault<z.ZodString>;
|
|
111
|
-
}, z.core.$strip>>;
|
|
112
|
-
}, z.core.$strip>>;
|
|
113
|
-
skills: z.ZodDefault<z.ZodObject<{
|
|
114
|
-
version: z.ZodDefault<z.ZodString>;
|
|
115
|
-
description: z.ZodDefault<z.ZodString>;
|
|
116
|
-
license: z.ZodDefault<z.ZodString>;
|
|
117
|
-
settings: z.ZodDefault<z.ZodObject<{
|
|
118
|
-
filetreeRoot: z.ZodDefault<z.ZodString>;
|
|
119
|
-
targets: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
120
|
-
claude: "claude";
|
|
121
|
-
codex: "codex";
|
|
122
|
-
}>>>;
|
|
123
|
-
installDirs: z.ZodDefault<z.ZodObject<{
|
|
124
|
-
claude: z.ZodDefault<z.ZodString>;
|
|
125
|
-
codex: z.ZodDefault<z.ZodString>;
|
|
126
|
-
}, z.core.$strip>>;
|
|
127
|
-
}, z.core.$strip>>;
|
|
128
|
-
}, z.core.$strip>>;
|
|
129
|
-
}, z.core.$strip>;
|
|
130
|
-
export type CoreConfig = z.infer<typeof CoreConfigSchema>;
|
|
131
|
-
export type PackageMeta = z.infer<typeof PackageMetaSchema>;
|
|
132
|
-
export type G3nuiSettings = z.infer<typeof G3nuiSettingsSchema>;
|
|
133
|
-
export type G3nuiConfig = z.infer<typeof G3nuiConfigSchema>;
|
|
134
|
-
export type G3nerateSettings = z.infer<typeof G3nerateSettingsSchema>;
|
|
135
|
-
export type G3nerateConfig = z.infer<typeof G3nerateConfigSchema>;
|
|
136
|
-
export type SkillTarget = z.infer<typeof SkillTargetSchema>;
|
|
137
|
-
export type SkillsInstallDirs = z.infer<typeof SkillsInstallDirsSchema>;
|
|
138
|
-
export type SkillsSettings = z.infer<typeof SkillsSettingsSchema>;
|
|
139
|
-
export type SkillsConfig = z.infer<typeof SkillsConfigSchema>;
|
|
140
|
-
export type G3nConfig = z.infer<typeof G3nConfigSchema>;
|
|
141
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/config/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,gBAAgB;;;;iBAI3B,CAAC;AAEH,wEAAwE;AACxE,eAAO,MAAM,iBAAiB;;;;iBAI5B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;iBAW9B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;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,MAAM,SAAS,GAAa,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
package/dist/config/types.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
// packages/core/src/config/types.ts
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
// ---------------------------------------------------------------------------
|
|
4
|
-
// Per-package section schemas
|
|
5
|
-
// ---------------------------------------------------------------------------
|
|
6
|
-
export const CoreConfigSchema = z.object({
|
|
7
|
-
version: z.string().default("0.1.0"),
|
|
8
|
-
description: z.string().default(""),
|
|
9
|
-
license: z.string().default("UNLICENSED"),
|
|
10
|
-
});
|
|
11
|
-
/** Shared package metadata present on every non-core package section */
|
|
12
|
-
export const PackageMetaSchema = z.object({
|
|
13
|
-
version: z.string().default("0.1.0"),
|
|
14
|
-
description: z.string().default(""),
|
|
15
|
-
license: z.string().default("UNLICENSED"),
|
|
16
|
-
});
|
|
17
|
-
export const G3nuiSettingsSchema = z.object({
|
|
18
|
-
/** Where components are installed in the user's project */
|
|
19
|
-
componentsDir: z.string().default("src/components/ui"),
|
|
20
|
-
/** Whether to copy .debug.ts files alongside components */
|
|
21
|
-
includeDebugFiles: z.boolean().default(false),
|
|
22
|
-
/** Whether to copy .meta.ts files alongside components */
|
|
23
|
-
includeMetaFiles: z.boolean().default(false),
|
|
24
|
-
/** Format of the user manifest file: json (default) or ts */
|
|
25
|
-
manifestFormat: z.enum(["json", "ts"]).default("json"),
|
|
26
|
-
/** External package adapters to load (e.g. ["shadcn"]) */
|
|
27
|
-
registeredPackages: z.array(z.string()).default([]),
|
|
28
|
-
});
|
|
29
|
-
export const G3nuiConfigSchema = PackageMetaSchema.extend({
|
|
30
|
-
settings: G3nuiSettingsSchema.default(() => G3nuiSettingsSchema.parse({})),
|
|
31
|
-
});
|
|
32
|
-
export const G3nerateSettingsSchema = z.object({
|
|
33
|
-
/** Output directory for generated files */
|
|
34
|
-
outputDir: z.string().default("src/generated"),
|
|
35
|
-
});
|
|
36
|
-
export const G3nerateConfigSchema = PackageMetaSchema.extend({
|
|
37
|
-
settings: G3nerateSettingsSchema.default(() => G3nerateSettingsSchema.parse({})),
|
|
38
|
-
});
|
|
39
|
-
export const SkillTargetSchema = z.enum(["claude", "codex"]);
|
|
40
|
-
export const SkillsInstallDirsSchema = z.object({
|
|
41
|
-
/** Skill install directory for Claude Code, relative to the project root */
|
|
42
|
-
claude: z.string().default(".claude/skills"),
|
|
43
|
-
/** Skill install directory for Codex (`.agents/skills`), relative to the project root */
|
|
44
|
-
codex: z.string().default(".agents/skills"),
|
|
45
|
-
});
|
|
46
|
-
export const SkillsSettingsSchema = z.object({
|
|
47
|
-
/** Where the plan, phase and task tree lives, relative to the project root */
|
|
48
|
-
filetreeRoot: z.string().default("docs/task-manager"),
|
|
49
|
-
/** Which agent harnesses skills are installed for */
|
|
50
|
-
targets: z.array(SkillTargetSchema).min(1).default(["claude"]),
|
|
51
|
-
/** Install directory per target; the skills.json registry sits next to each */
|
|
52
|
-
installDirs: SkillsInstallDirsSchema.default(() => SkillsInstallDirsSchema.parse({})),
|
|
53
|
-
});
|
|
54
|
-
export const SkillsConfigSchema = PackageMetaSchema.extend({
|
|
55
|
-
settings: SkillsSettingsSchema.default(() => SkillsSettingsSchema.parse({})),
|
|
56
|
-
});
|
|
57
|
-
// ---------------------------------------------------------------------------
|
|
58
|
-
// Root merged config schema
|
|
59
|
-
// ---------------------------------------------------------------------------
|
|
60
|
-
export const G3nConfigSchema = z.object({
|
|
61
|
-
core: CoreConfigSchema.default(() => CoreConfigSchema.parse({})),
|
|
62
|
-
g3nui: G3nuiConfigSchema.default(() => G3nuiConfigSchema.parse({})),
|
|
63
|
-
g3nerate: G3nerateConfigSchema.default(() => G3nerateConfigSchema.parse({})),
|
|
64
|
-
skills: SkillsConfigSchema.default(() => SkillsConfigSchema.parse({})),
|
|
65
|
-
});
|
|
66
|
-
//# sourceMappingURL=types.js.map
|
package/dist/config/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|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AAC;IACrD,qDAAqD;IACrD,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC;IAC9D,+EAA+E;IAC/E,WAAW,EAAE,uBAAuB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;CACtF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,MAAM,CAAC;IACzD,QAAQ,EAAE,oBAAoB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;CAC7E,CAAC,CAAC;AAEH,8EAA8E;AAC9E,4BAA4B;AAC5B,8EAA8E;AAE9E,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,IAAI,EAAM,gBAAgB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,gBAAgB,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACpE,KAAK,EAAK,iBAAiB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACtE,QAAQ,EAAE,oBAAoB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC5E,MAAM,EAAI,kBAAkB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;CACzE,CAAC,CAAC"}
|
package/dist/hash/hash.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Hashes a file's contents using SHA-256.
|
|
3
|
-
* Uses Bun's native file API + Web Crypto — no external dependencies.
|
|
4
|
-
*
|
|
5
|
-
* @param filePath - Absolute or relative path to the file
|
|
6
|
-
* @returns Lowercase hex SHA-256 digest
|
|
7
|
-
*/
|
|
8
|
-
export declare function hashFile(filePath: string): Promise<string>;
|
|
9
|
-
/**
|
|
10
|
-
* Hashes an arbitrary string using SHA-256.
|
|
11
|
-
* Useful for hashing in-memory content before writing to disk.
|
|
12
|
-
*
|
|
13
|
-
* @param content - String to hash
|
|
14
|
-
* @returns Lowercase hex SHA-256 digest
|
|
15
|
-
*/
|
|
16
|
-
export declare function hashString(content: string): Promise<string>;
|
|
17
|
-
/**
|
|
18
|
-
* Short (first 12 chars) SHA-256 hash of a file — for display purposes.
|
|
19
|
-
*/
|
|
20
|
-
export declare function hashFileShort(filePath: string): Promise<string>;
|
|
21
|
-
/**
|
|
22
|
-
* Short (first 12 chars) SHA-256 hash of a string — for display purposes.
|
|
23
|
-
*/
|
|
24
|
-
export declare function hashStringShort(content: string): Promise<string>;
|
|
25
|
-
//# sourceMappingURL=hash.d.ts.map
|
package/dist/hash/hash.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hash.d.ts","sourceRoot":"","sources":["../../src/hash/hash.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,wBAAsB,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAMhE;AAED;;;;;;GAMG;AACH,wBAAsB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAMjE;AAED;;GAEG;AACH,wBAAsB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAErE;AAED;;GAEG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAEtE"}
|
package/dist/hash/hash.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
if ("window" in globalThis) {
|
|
2
|
-
throw new Error("@g3nomaly/core hash utilities are CLI-only");
|
|
3
|
-
}
|
|
4
|
-
/**
|
|
5
|
-
* Hashes a file's contents using SHA-256.
|
|
6
|
-
* Uses Bun's native file API + Web Crypto — no external dependencies.
|
|
7
|
-
*
|
|
8
|
-
* @param filePath - Absolute or relative path to the file
|
|
9
|
-
* @returns Lowercase hex SHA-256 digest
|
|
10
|
-
*/
|
|
11
|
-
export async function hashFile(filePath) {
|
|
12
|
-
const file = Bun.file(filePath);
|
|
13
|
-
const buffer = await file.arrayBuffer();
|
|
14
|
-
const hashBuffer = await crypto.subtle.digest("SHA-256", buffer);
|
|
15
|
-
const hashArray = Array.from(new Uint8Array(hashBuffer));
|
|
16
|
-
return hashArray.map((b) => b.toString(16).padStart(2, "0")).join("");
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Hashes an arbitrary string using SHA-256.
|
|
20
|
-
* Useful for hashing in-memory content before writing to disk.
|
|
21
|
-
*
|
|
22
|
-
* @param content - String to hash
|
|
23
|
-
* @returns Lowercase hex SHA-256 digest
|
|
24
|
-
*/
|
|
25
|
-
export async function hashString(content) {
|
|
26
|
-
const encoder = new TextEncoder();
|
|
27
|
-
const buffer = encoder.encode(content);
|
|
28
|
-
const hashBuffer = await crypto.subtle.digest("SHA-256", buffer);
|
|
29
|
-
const hashArray = Array.from(new Uint8Array(hashBuffer));
|
|
30
|
-
return hashArray.map((b) => b.toString(16).padStart(2, "0")).join("");
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Short (first 12 chars) SHA-256 hash of a file — for display purposes.
|
|
34
|
-
*/
|
|
35
|
-
export async function hashFileShort(filePath) {
|
|
36
|
-
return (await hashFile(filePath)).substring(0, 12);
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Short (first 12 chars) SHA-256 hash of a string — for display purposes.
|
|
40
|
-
*/
|
|
41
|
-
export async function hashStringShort(content) {
|
|
42
|
-
return (await hashString(content)).substring(0, 12);
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=hash.js.map
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,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACxE,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,QAAgB;IAClD,OAAO,CAAC,MAAM,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AACrD,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,OAAe;IACnD,OAAO,CAAC,MAAM,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AACtD,CAAC"}
|
package/dist/hash/index.d.ts
DELETED
package/dist/hash/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hash/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC"}
|
package/dist/hash/index.js
DELETED
package/dist/hash/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/hash/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC"}
|
package/dist/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|
package/dist/index.js
DELETED
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|