seniority 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,22 @@
1
+ # seniority
2
+
3
+ **Not yet released, and not yet on the roadmap.** This version reserves the name. The layer,
4
+ its incumbents and the measurements behind it are documented in
5
+ [`.sdlc/research/candidate-layers.md`](https://github.com/ofri-peretz/burgee/blob/main/.sdlc/research/candidate-layers.md).
6
+ An intent and a working release follow if and when the roadmap takes it up.
7
+
8
+ **Seniority** is ranking higher because of longer service or higher position — and therefore taking precedence when there is a conflict. Two people want the same shift; seniority decides.
9
+
10
+ Config sources have rank. A `--flag` outranks an environment variable, which outranks a project config file, which outranks a home config file, which outranks a default. When they disagree, seniority settles it.
11
+
12
+ ## What it will be
13
+
14
+ - **One declared order, not per-tool folklore.** Precedence is a truth table you can read and test, not a paragraph in a README.
15
+ - **Provenance for every value.** If `out` is `lib`, the answer to *which source set it* is a file and a line — not a shrug. An agent repairing a misconfiguration needs the origin, not just the value.
16
+ - **One package, not seven.** The incumbents split discovery and loading across `cosmiconfig`, `find-up`, `locate-path`, `p-locate`, `path-exists`, `import-fresh` and `parse-json`.
17
+ - **Drop-in paths** for `cosmiconfig`, `lilconfig`, `dotenv` and `rc`, graded by their own suites.
18
+ - **Zero external dependencies.**
19
+
20
+ ## Licence
21
+
22
+ MIT
@@ -0,0 +1,7 @@
1
+ /**
2
+ * seniority — name reserved, not yet on the roadmap. The layer and the measurements
3
+ * behind it are documented in .sdlc/research/candidate-layers.md in the burgee
4
+ * repository. Until an intent is opened this entry exports only its own name, so
5
+ * that importing it costs nothing and promises nothing.
6
+ */
7
+ export declare const name: "seniority";
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+ /**
2
+ * seniority — name reserved, not yet on the roadmap. The layer and the measurements
3
+ * behind it are documented in .sdlc/research/candidate-layers.md in the burgee
4
+ * repository. Until an intent is opened this entry exports only its own name, so
5
+ * that importing it costs nothing and promises nothing.
6
+ */
7
+ export const name = 'seniority';
8
+ //# sourceMappingURL=index.js.map
package/package.json ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "seniority",
3
+ "version": "0.0.1",
4
+ "description": "Which source outranks the others. One resolution for flags, environment, project and home config files and defaults \u2014 with provenance, so every value can say where it came from. Drop-in paths for cosmiconfig, dotenv and rc. Zero dependencies.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "engines": {
8
+ "node": ">=24"
9
+ },
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.js",
14
+ "default": "./dist/index.js"
15
+ }
16
+ },
17
+ "files": [
18
+ "dist",
19
+ "!dist/**/*.map",
20
+ "!dist/**/*.test.*"
21
+ ],
22
+ "scripts": {
23
+ "build": "tsc -p tsconfig.build.json",
24
+ "typecheck": "tsc -p tsconfig.json --noEmit",
25
+ "test": "vitest run --passWithNoTests",
26
+ "lint": "eslint src"
27
+ },
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "git+https://github.com/ofri-peretz/burgee.git",
31
+ "directory": "packages/seniority"
32
+ },
33
+ "homepage": "https://github.com/ofri-peretz/burgee/tree/main/packages/seniority#readme",
34
+ "bugs": {
35
+ "url": "https://github.com/ofri-peretz/burgee/issues"
36
+ },
37
+ "keywords": [
38
+ "cli",
39
+ "config",
40
+ "configuration",
41
+ "cosmiconfig",
42
+ "dotenv",
43
+ "rc",
44
+ "lilconfig",
45
+ "precedence",
46
+ "env",
47
+ "settings",
48
+ "provenance"
49
+ ],
50
+ "devDependencies": {
51
+ "vitest": "^4.0.0"
52
+ }
53
+ }