@dotdotgod/codex 0.1.19 → 0.1.21

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.
@@ -5,7 +5,7 @@
5
5
  "author": {
6
6
  "name": "dotdotgod"
7
7
  },
8
- "license": "MIT",
8
+ "license": "Elastic-2.0",
9
9
  "keywords": [
10
10
  "dotdotgod",
11
11
  "codex",
package/LICENSE CHANGED
@@ -1,21 +1,94 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 dotdot
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ Elastic License 2.0 (ELv2)
2
+
3
+ Copyright 2026 JooYoung Kim
4
+
5
+ ## Acceptance
6
+
7
+ By using the software, you agree to all of the terms and conditions below.
8
+
9
+ ## Copyright License
10
+
11
+ The licensor grants you a non-exclusive, royalty-free, worldwide,
12
+ non-sublicensable, non-transferable license to use, copy, distribute, make
13
+ available, and prepare derivative works of the software, in each case subject
14
+ to the limitations and conditions below.
15
+
16
+ ## Limitations
17
+
18
+ You may not provide the software to third parties as a hosted or managed
19
+ service, where the service provides users with access to any substantial set
20
+ of the features or functionality of the software.
21
+
22
+ You may not move, change, disable, or circumvent the license key
23
+ functionality in the software, and you may not remove or obscure any
24
+ functionality in the software that is protected by the license key.
25
+
26
+ You may not alter, remove, or obscure any licensing, copyright, or other
27
+ notices of the licensor in the software. Any use of the licensor's trademarks
28
+ is subject to applicable law.
29
+
30
+ ## Patents
31
+
32
+ The licensor grants you a license, under any patent claims the licensor can
33
+ license, or becomes able to license, to make, have made, use, sell, offer for
34
+ sale, import and have imported the software, in each case subject to the
35
+ limitations and conditions in this license. This license does not cover any
36
+ patent claims that you cause to be infringed by modifications or additions to
37
+ the software. If you or your company make any written claim that the software
38
+ infringes or contributes to infringement of any patent, your patent license
39
+ for the software granted under these terms ends immediately. If your company
40
+ makes such a claim, your patent license ends immediately for work on behalf
41
+ of your company.
42
+
43
+ ## Notices
44
+
45
+ You must ensure that anyone who gets a copy of any part of the software from
46
+ you also gets a copy of these terms.
47
+
48
+ If you modify the software, you must include in any modified copies of the
49
+ software prominent notices stating that you have modified the software.
50
+
51
+ ## No Other Rights
52
+
53
+ These terms do not imply any licenses other than those expressly granted in
54
+ these terms.
55
+
56
+ ## Termination
57
+
58
+ If you use the software in violation of these terms, such use is not
59
+ licensed, and your licenses will automatically terminate. If the licensor
60
+ provides you with a notice of your violation, and you cease all violation of
61
+ this license no later than 30 days after you receive that notice, your
62
+ licenses will be reinstated retroactively. However, if you violate these
63
+ terms after such reinstatement, any additional violation of these terms will
64
+ cause your licenses to terminate automatically and permanently.
65
+
66
+ ## No Liability
67
+
68
+ *As far as the law allows, the software comes as is, without any warranty or
69
+ condition, and the licensor will not be liable to you for any damages arising
70
+ out of these terms or the use or nature of the software, under any kind of
71
+ legal claim.*
72
+
73
+ ## Definitions
74
+
75
+ The **licensor** is the entity offering these terms, and the **software** is
76
+ the software the licensor makes available under these terms, including any
77
+ portion of it.
78
+
79
+ **you** refers to the individual or entity agreeing to these terms.
80
+
81
+ **your company** is any legal entity, sole proprietorship, or other kind of
82
+ organization that you work for, plus all organizations that have control over,
83
+ are under the control of, or are under common control with that organization.
84
+ **control** means ownership of substantially all the assets of an entity, or
85
+ the power to direct its management and policies by vote, contract, or
86
+ otherwise. Control can be direct or indirect.
87
+
88
+ **your licenses** are all the licenses granted to you for the software under
89
+ these terms.
90
+
91
+ **use** means anything you do with the software requiring one of your
92
+ licenses.
93
+
94
+ **trademark** means trademarks, service marks, and similar rights.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @dotdotgod/codex
2
2
 
3
- [![npm version](https://img.shields.io/npm/v/@dotdotgod/codex.svg)](https://www.npmjs.com/package/@dotdotgod/codex) [![GitHub](https://img.shields.io/badge/GitHub-dotdotgod%2Fdotdotgod-181717?logo=github)](https://github.com/dotdotgod/dotdotgod/tree/main/packages/codex) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](../../LICENSE)
3
+ [![npm version](https://img.shields.io/npm/v/@dotdotgod/codex.svg)](https://www.npmjs.com/package/@dotdotgod/codex) [![GitHub](https://img.shields.io/badge/GitHub-dotdotgod%2Fdotdotgod-kit-181717?logo=github)](https://github.com/dotdotgod/dotdotgod-kit/tree/main/packages/codex) [![License: Elastic 2.0](https://img.shields.io/badge/License-Elastic%202.0-blue.svg)](../../LICENSE)
4
4
 
5
5
  > **Change a file, know what else must be checked.**
6
6
 
@@ -25,13 +25,14 @@ files:
25
25
 
26
26
  `graph impact` ranks the specs, tests, architecture notes, config docs, and source files most likely to matter for a change. `--compact` keeps the result agent-facing: grouped by docs/tests/files and annotated with the reasons each item is likely relevant. It uses the project-memory graph built from Markdown links, README routes, headings, traceability blocks, package metadata, memory areas, and deterministic routing hints.
27
27
 
28
- Codex adapter for dotdotgod's context curation workflow. It packages reusable skills that help Codex initialize shared agent docs, load bounded project memory, and plan from docs before implementation.
28
+ Codex adapter for dotdotgod's context curation workflow. It packages reusable skills that help Codex initialize the fixed load-context surface, load bounded project memory, and plan from explicit maintained graph links before implementation.
29
29
 
30
30
  ## What Gets Better?
31
31
 
32
32
  - Codex can start from `AGENTS.md` and the dotdotgod docs map.
33
33
  - Load guidance prefers `dotdotgod load-snapshot <root> --json` when the CLI is available, then falls back to README-index reads.
34
34
  - Codex can use docs structure as retrieval intent: specs for behavior, architecture for rationale, tests for verification, plans for current work, and archive indexes for past decisions.
35
+ - Planning guidance encourages agents to keep README routes, traceability blocks, plans, and archives current so `graph impact` remains useful.
35
36
  - Planning work captures current intent in `docs/plan/<task-slug>/README.md` before implementation.
36
37
  - Completed plans and temporary reports use the same archive structure as Pi and Claude Code, turning outcomes into future context.
37
38
  - `dd:load`, `dd:plan`, and `dd:init` can be used as command-like trigger phrases where direct slash commands are unavailable.
@@ -81,8 +82,8 @@ pnpm --filter @dotdotgod/codex run pack:dry-run
81
82
 
82
83
  ## Learn More
83
84
 
84
- See the [root README](../../README.md), [GitHub repository](https://github.com/dotdotgod/dotdotgod), [`docs/concept/CONTEXT_CURATION.md`](../../docs/concept/CONTEXT_CURATION.md), [`docs/concept/CONTEXT_MECHANICS.md`](../../docs/concept/CONTEXT_MECHANICS.md), [`docs/spec/MEMORY_AREA_CONFIG.md`](../../docs/spec/MEMORY_AREA_CONFIG.md), and [`docs/spec/TRACEABILITY_CONFIG.md`](../../docs/spec/TRACEABILITY_CONFIG.md).
85
+ See the [root README](../../README.md), [GitHub repository](https://github.com/dotdotgod/dotdotgod-kit), [`docs/concept/CONTEXT_CURATION.md`](../../docs/concept/CONTEXT_CURATION.md), [`docs/concept/CONTEXT_MECHANICS.md`](../../docs/concept/CONTEXT_MECHANICS.md), [`docs/spec/MEMORY_AREA_CONFIG.md`](../../docs/spec/MEMORY_AREA_CONFIG.md), and [`docs/spec/TRACEABILITY_CONFIG.md`](../../docs/spec/TRACEABILITY_CONFIG.md).
85
86
 
86
87
  ## Compared with Graphify-Style Memory
87
88
 
88
- This adapter packages reusable workflow skills. It guides Codex to prefer a bounded dotdotgod load snapshot when available, avoid broad archive scans, and follow README indexes before reading raw files. The strength is structured retrieval from project-declared memory, not a giant graph report.
89
+ This adapter packages reusable workflow skills. It guides Codex to prefer a bounded dotdotgod load snapshot when available, avoid broad archive scans, and follow README indexes before reading raw files. The strength is structured retrieval from explicit project-maintained links and the fixed docs surface, not a giant graph report.
package/hooks/README.md CHANGED
@@ -8,6 +8,7 @@ Use hooks only when you want opt-in reminders, lightweight validation, or local
8
8
 
9
9
  - Use `dd:load` or the `project-load` skill when you intentionally want a curated project-memory load.
10
10
  - Use `dd:plan` or the `doc-first-planning` skill before implementation, refactors, migrations, or multi-step work.
11
+ - During planning, prefer bounded dotdotgod context/status helpers: `status`, `load-snapshot`, `resolve`, `expand`, `graph impact`, `graph communities`, read-only `config`, and intentional `index` refreshes. Do not run mutating scaffold/config commands such as `init` or `config init` from hooks unless the user explicitly requested that setup.
11
12
  - Use hooks for small reminders at session start, prompt submission, supported tool boundaries, or stop time.
12
13
 
13
14
  ## Opt-In Levels
@@ -118,6 +119,7 @@ A strict script must read hook JSON from stdin, confirm the session is explicitl
118
119
 
119
120
  - Do not run `pnpm run verify` after every tool call.
120
121
  - Do not run `dotdotgod index` as an automatic stop hook.
122
+ - Do not run `dotdotgod init` or `dotdotgod config init` automatically.
121
123
  - Do not move active plans to `docs/archive/` automatically.
122
124
  - Do not block all source writes without an explicit plan-only state signal.
123
125
  - Do not imply Codex has Claude/Pi slash-command parity.
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@dotdotgod/codex",
3
- "version": "0.1.19",
3
+ "version": "0.1.21",
4
4
  "description": "Codex adapter for dotdotgod project memory workflows.",
5
5
  "type": "module",
6
- "license": "MIT",
6
+ "license": "Elastic-2.0",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -31,13 +31,13 @@
31
31
  "README.md",
32
32
  "LICENSE"
33
33
  ],
34
- "homepage": "https://github.com/dotdotgod/dotdotgod/tree/main/packages/codex#readme",
34
+ "homepage": "https://github.com/dotdotgod/dotdotgod-kit/tree/main/packages/codex#readme",
35
35
  "repository": {
36
36
  "type": "git",
37
- "url": "git+https://github.com/dotdotgod/dotdotgod.git",
37
+ "url": "git+https://github.com/dotdotgod/dotdotgod-kit.git",
38
38
  "directory": "packages/codex"
39
39
  },
40
40
  "bugs": {
41
- "url": "https://github.com/dotdotgod/dotdotgod/issues"
41
+ "url": "https://github.com/dotdotgod/dotdotgod-kit/issues"
42
42
  }
43
43
  }
@@ -36,6 +36,7 @@ Prefer live repository docs in this order:
36
36
  - Read nearest README indexes and relevant focused docs.
37
37
  - For behavior changes, prefer specs with CLI-enforced fenced `json dotdotgod` traceability blocks in the final section; use their source, test, related-doc, and verification-command mappings before editing code.
38
38
  - When the dotdotgod CLI is available and likely target files are known, run `dotdotgod graph impact <root> --changed <path> --compact --json` for a small bounded set of those files. Use the related specs, tests, docs, commands, scores, and reasons to strengthen target files, risks, and verification steps. If impact lookup fails or the CLI is unavailable, continue with README-index and traceability fallback evidence.
39
+ - During planning, treat these dotdotgod commands as bounded context/status helpers: `status`, `load-snapshot`, `resolve`, `expand`, `graph impact`, `graph communities`, read-only `config`, and `index`. Do not run mutating scaffold/config commands such as `init` or `config init` unless the user explicitly asks for initialization or config creation.
39
40
  - Use `grep` or `find` after reference expansion, impact, and targeted reads when the task needs fallback discovery or raw source text search.
40
41
  - Read code only after docs identify likely module boundaries, impact output points to relevant files, or docs are missing/stale.
41
42
  3. Create or update the active plan at:
@@ -293,6 +293,8 @@ Dotdot code conventions for keeping implementation simple and maintainable.
293
293
  - Do not abstract code that is not reused.
294
294
  - If code grows beyond 150 lines, consider splitting or extracting focused units even when it is not reused.
295
295
  - Review files approaching 250 lines for focused extraction by responsibility.
296
+ - Treat repeated \`dotdotgod graph impact\` results that collapse onto one large file as a design signal to split mixed responsibilities by behavior.
297
+ - Dotdotgod impact reveals hotspots but does not replace focused module boundaries.
296
298
  - Prefer extracting pure helpers when behavior can be tested without runtime dependencies.
297
299
  - Keep runtime integration explicit and local until a stable reuse pattern appears.
298
300
  - Do not abstract reused code when the reused behavior is likely to split into separate features or flows later.
@@ -22,6 +22,7 @@ Do not modify files during the load pass unless the user explicitly asks for edi
22
22
  - If `dotdotgod` is installed or available in the repository, run `dotdotgod load-snapshot <root> --json`.
23
23
  - If the local environment allows package execution but no `dotdotgod` binary is available, optionally run `npx @dotdotgod/cli load-snapshot <root> --json`.
24
24
  - Treat the snapshot as the first-pass project-memory map for cache status, graph size, memory areas, related communities, and archive inclusion policy.
25
+ - During load/planning, treat `dotdotgod status`, `load-snapshot`, `resolve`, `expand`, `graph impact`, `graph communities`, read-only `config`, and `index` as bounded context/status helpers. Avoid mutating scaffold/config commands such as `init` or `config init` unless the user explicitly asks for initialization or config creation.
25
26
  - Use `dotdotgod graph impact <root> --changed <path> --compact --json` as a task-focused impact map when the user identifies a likely source/config/doc file.
26
27
  - Use `grep` or `find` after `expand`, impact, and targeted reads when the task needs fallback discovery or raw source text search.
27
28
  - Fall back to raw `dotdotgod graph impact <root> --changed <path> --json` only when diagnostics need the full payload.