@miorin/dsh-atlas-atlas 0.0.0-stage → 0.2.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/AGENTS.local.md +103 -0
- package/AGENTS.md +111 -0
- package/CHANGELOG.md +14 -0
- package/LICENSE +21 -0
- package/README.md +13 -2
- package/README.zh.md +14 -0
- package/THIRD-PARTY-NOTICES.md +28 -0
- package/client.js +678 -0
- package/cordis.patch.yml +5 -0
- package/docs/DETAIL.de.md +2 -0
- package/docs/DETAIL.en.md +2 -0
- package/docs/DETAIL.es.md +2 -0
- package/docs/DETAIL.fr.md +2 -0
- package/docs/DETAIL.ja.md +2 -0
- package/docs/DETAIL.pt.md +2 -0
- package/docs/DETAIL.ru.md +2 -0
- package/docs/DETAIL.zh.md +1 -0
- package/docs/README.md +61 -0
- package/icon.svg +32 -0
- package/index.js +8 -0
- package/locale/de.json +7 -0
- package/locale/en.json +7 -0
- package/locale/es.json +7 -0
- package/locale/fr.json +7 -0
- package/locale/ja.json +7 -0
- package/locale/pt.json +7 -0
- package/locale/ru.json +7 -0
- package/locale/zh.json +7 -0
- package/package.json +86 -4
- package/scripts/build.mjs +178 -0
- package/scripts/build.mts +191 -0
- package/scripts/sync-atlas-icons.mjs +65 -0
- package/scripts/sync-atlas-icons.mts +77 -0
- package/scripts/sync-types.mjs +89 -0
- package/scripts/sync-types.mts +102 -0
- package/src/client/index.tsx +201 -0
- package/src/client/labels.ts +244 -0
- package/src/client/published-icons.ts +15 -0
- package/src/client/styles.ts +114 -0
- package/src/host/index.ts +2 -0
- package/src/lib/atlas.ts +115 -0
- package/tsconfig.json +18 -0
- package/tsconfig.tools.json +18 -0
package/AGENTS.local.md
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# AGENTS.local
|
|
2
|
+
|
|
3
|
+
Project rules for this DSH plugin bundle.
|
|
4
|
+
This file supplements [AGENTS.md](AGENTS.md); read that file first.
|
|
5
|
+
Adjust or extend this file for the project.
|
|
6
|
+
Where the two conflict, this file wins.
|
|
7
|
+
|
|
8
|
+
## Scope
|
|
9
|
+
|
|
10
|
+
This bundle provides one behavior.
|
|
11
|
+
Check whether new behavior belongs in its own bundle.
|
|
12
|
+
|
|
13
|
+
## Project documentation
|
|
14
|
+
|
|
15
|
+
- `README.md` is for users: installation, usage, commands, and limits.
|
|
16
|
+
Provide `README.zh.md` as its Chinese version.
|
|
17
|
+
- [docs/README.md](docs/README.md) records the package's behavior, build steps, and verification.
|
|
18
|
+
- [src/lib/atlas.ts](src/lib/atlas.ts) declares the member bundle names on npm and handles their installation
|
|
19
|
+
and selection.
|
|
20
|
+
- Keep the plugin detail page short.
|
|
21
|
+
Set `meta.title` and `meta.description` in `locale/*.json` for the DSH interface language.
|
|
22
|
+
Use `meta.detail` in each locale to select a short, packaged Markdown document when needed.
|
|
23
|
+
Link to the guide with an absolute HTTPS URL and put usage entry points, compatibility, and installation steps there.
|
|
24
|
+
Add one localized preview when it helps explain the feature.
|
|
25
|
+
Use DSH's detail page slots for interactive controls.
|
|
26
|
+
|
|
27
|
+
## Language
|
|
28
|
+
|
|
29
|
+
- For the main README, prefer English and provide a Chinese version.
|
|
30
|
+
- Prefer Chinese for designs and documentation.
|
|
31
|
+
- Keep user-facing text translatable through the project's localization mechanism,
|
|
32
|
+
and maintain all eight locales (`en`, `zh`, `ja`, `de`, `es`, `fr`, `pt`, `ru`) together.
|
|
33
|
+
- Use English for code identifiers and keep established technical terms in English when helpful
|
|
34
|
+
for precision or searchability.
|
|
35
|
+
|
|
36
|
+
## Structure
|
|
37
|
+
|
|
38
|
+
`npm run build:tools` compiles `.mts` tooling in `scripts/` to adjacent ignored `.mjs` files.
|
|
39
|
+
Node.js 22.18 or newer runs the `.test.mts` files directly.
|
|
40
|
+
|
|
41
|
+
- Use TypeScript for plugin source unless otherwise specified.
|
|
42
|
+
Use the workspace base for TypeScript plugins.
|
|
43
|
+
Put Host, Client, and private module sources under `src/host/`, `src/client/`, and `src/lib/` as needed.
|
|
44
|
+
The build generates `index.js`, `client.js`, and the `lib/atlas.js` test module.
|
|
45
|
+
Git ignores these outputs.
|
|
46
|
+
- Keep Plugin Manager metadata in `locale/*.json` and runtime translations in `LABELS` in the Client source.
|
|
47
|
+
- The client test uses a fake `ctx` to check registration, resources, and cleanup.
|
|
48
|
+
- `docs/scripts/reflow` is the standalone documentation formatter and requires Python 3.11 or newer.
|
|
49
|
+
|
|
50
|
+
## Reusing native DSH UI
|
|
51
|
+
|
|
52
|
+
- Prefer native DSH components, behavior, theme tokens, and layouts from comparable screens
|
|
53
|
+
to reduce code and maintenance.
|
|
54
|
+
- Prefer runtime reuse through supported slots, component factories,
|
|
55
|
+
or host-provided modules when performance is acceptable.
|
|
56
|
+
Let the host supply the implementation and write only the code needed to fill gaps in existing components
|
|
57
|
+
and extension points.
|
|
58
|
+
- When statically importing or bundling official code or assets, annotate the reference
|
|
59
|
+
with the upstream package, version or commit, source path, and symbol name.
|
|
60
|
+
Keep applicable licenses and attribution so future updates can be traced to the source.
|
|
61
|
+
|
|
62
|
+
## Implementation
|
|
63
|
+
|
|
64
|
+
- Keep the bundle independently installable and toggleable.
|
|
65
|
+
Keep runtime modules private to this bundle and put shared tools in the workspace `tools/` directory.
|
|
66
|
+
- Implement the feature through supported DSH plugin APIs and extension points.
|
|
67
|
+
Keep DSH source and installed files intact.
|
|
68
|
+
Do not patch global behavior or override DSH internals.
|
|
69
|
+
If the available extension points are insufficient, report the limitation and keep the implementation
|
|
70
|
+
within the supported scope.
|
|
71
|
+
- Reuse the DSH type declarations for the supported runtime version.
|
|
72
|
+
Preserve types across plugin interfaces, configuration, and events.
|
|
73
|
+
Validate and narrow unknown inputs, and keep the type dependencies in sync.
|
|
74
|
+
- Keep the factory free of side effects.
|
|
75
|
+
Register resources in `apply` with `ctx.effect` or `ctx.on` and return cleanup functions.
|
|
76
|
+
- Prefer recognizable icons for common action buttons, and use visible text only
|
|
77
|
+
when an icon alone would leave the action unclear.
|
|
78
|
+
- Replace the placeholder icon with original artwork and update the title and description
|
|
79
|
+
in all eight locale files before release.
|
|
80
|
+
- Resolve every scaffold placeholder before release.
|
|
81
|
+
|
|
82
|
+
## Versioning
|
|
83
|
+
|
|
84
|
+
Major version upgrades are the user's decision; regular iterations stay on the current major version.
|
|
85
|
+
Update `CHANGELOG.md` when releasing.
|
|
86
|
+
|
|
87
|
+
## Verification
|
|
88
|
+
|
|
89
|
+
- Follow the [development checks](docs/README.md#本地安装与开发检查).
|
|
90
|
+
- From the workspace root, run `node tools/new-dsh-plugin/cli.mts --check plugins/<id>` to check the manifest,
|
|
91
|
+
locale JSON, and the other scaffold files.
|
|
92
|
+
- Use a disposable profile for installation tests.
|
|
93
|
+
Distinguish fixture results from observations in the UI.
|
|
94
|
+
- After a DSH upgrade, run the tests and verify the behavior in the running UI.
|
|
95
|
+
Record what to verify.
|
|
96
|
+
|
|
97
|
+
## Markdown
|
|
98
|
+
|
|
99
|
+
- Run `docs/scripts/reflow md <path>` to format edited Markdown.
|
|
100
|
+
- Run `prek install` once per checkout to format staged Markdown at commit time.
|
|
101
|
+
Keep the generated `AGENTS.md` byte-for-byte identical to the shared template.
|
|
102
|
+
- When committing in the DSH sandbox, use `PREK_HOME="${TMPDIR:?}/prek-dsh" git commit -m "<commit message>"`
|
|
103
|
+
to run the reflow hook with a writable cache and log directory.
|
package/AGENTS.md
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# Agent Guidelines
|
|
2
|
+
|
|
3
|
+
> This file is auto-generated and should be immutable. NEVER edit it by hand.
|
|
4
|
+
|
|
5
|
+
Rules for assistant work in this project.
|
|
6
|
+
Project-specific rules live in `AGENTS.local.md`, `README.md`, and the documents they link.
|
|
7
|
+
Read them before starting, and let them take precedence within their scope.
|
|
8
|
+
Words `prefer` and `consider` mark defaults that allow task-specific judgment.
|
|
9
|
+
Otherwise, follow the general guidelines stated below.
|
|
10
|
+
|
|
11
|
+
## Language and Internationalization
|
|
12
|
+
|
|
13
|
+
- Communicate in the user's preferred language, following the current conversation when none is stated.
|
|
14
|
+
- Write `AGENTS.md` in English, and use English for code identifiers.
|
|
15
|
+
Keep established technical terms in English where precision benefits.
|
|
16
|
+
- Follow the README and design-document language conventions recorded in `AGENTS.local.md`.
|
|
17
|
+
- Keep user-facing text translatable through the project's localization mechanism.
|
|
18
|
+
|
|
19
|
+
## Working Principles
|
|
20
|
+
|
|
21
|
+
- When recurring cases support a shared rule, state it and suggest the abstraction or convention that follows.
|
|
22
|
+
Distinguish evidence from inference, and favor connections that simplify future decisions.
|
|
23
|
+
Do not invent abstractions merely to claim novelty.
|
|
24
|
+
- When replacing a design, update its callers and remove the superseded path in the same change.
|
|
25
|
+
Retain compatibility layers only when the user explicitly requests a compatibility boundary;
|
|
26
|
+
state its scope and intended removal condition.
|
|
27
|
+
- When changing validation or behavior with rejection cases, pair valid inputs with rejected counterparts.
|
|
28
|
+
Assert the intended error and relevant failure invariants.
|
|
29
|
+
Retain bug reproducers as regression tests.
|
|
30
|
+
- Before reporting a change as complete, run the project's documented build, lint, and test commands,
|
|
31
|
+
and report any failures with their output.
|
|
32
|
+
- Commit after each phase of work is done.
|
|
33
|
+
|
|
34
|
+
## Code Design
|
|
35
|
+
|
|
36
|
+
Where these rules are silent, follow the language's idioms and the project's existing conventions.
|
|
37
|
+
|
|
38
|
+
Represent semantic states, internal messages, and errors with domain types.
|
|
39
|
+
Parse external text into structured data early; use strings when the data itself is textual.
|
|
40
|
+
Before using a string-keyed map, distinguish text storage or interning from structured data better modeled
|
|
41
|
+
with records or interfaces.
|
|
42
|
+
|
|
43
|
+
Prefer declarative transformations such as map, filter, and fold over mutable accumulators.
|
|
44
|
+
Keep mutation for essential sequential state or when a functional rewrite would materially harm clarity or performance.
|
|
45
|
+
|
|
46
|
+
Prefer direct construction of plain data unless a constructor performs additional work,
|
|
47
|
+
enforces an invariant, or establishes a visibility boundary.
|
|
48
|
+
Do not add a constructor that merely repackages a literal.
|
|
49
|
+
|
|
50
|
+
Prefer generated implementations when their behavior exactly matches the intended semantics.
|
|
51
|
+
Write manual implementations only when additional local invariants require them.
|
|
52
|
+
|
|
53
|
+
## Project Documentation and Design Records
|
|
54
|
+
|
|
55
|
+
- Record the project's document layout, file roles, and canonical design location in `AGENTS.local.md`.
|
|
56
|
+
- Keep one home per canonical rule, in the document that owns its semantic boundary.
|
|
57
|
+
- Outside that home, prefer concise pointers over repeated explanations.
|
|
58
|
+
- Keep dependent examples and links consistent with the canonical rule.
|
|
59
|
+
- Adopting, changing, or promoting a canonical design requires user permission;
|
|
60
|
+
an approval given earlier in the conversation or recorded in the design record suffices.
|
|
61
|
+
- When moving or merging content, remove superseded sections or files and update incoming links in the same change.
|
|
62
|
+
|
|
63
|
+
## Documentation Style
|
|
64
|
+
|
|
65
|
+
Keep every README concise. State the purpose, give the reader what they need to get started,
|
|
66
|
+
and link to the appropriate home for detailed guidance.
|
|
67
|
+
|
|
68
|
+
Establish motivation and context before introducing machinery; explain which question each mechanism answers.
|
|
69
|
+
Introduce concepts before relying on them, and let information density rise gradually.
|
|
70
|
+
Use technical terminology where precise, explaining specialized terms at first use with source-level intuition
|
|
71
|
+
or a concrete example.
|
|
72
|
+
|
|
73
|
+
Connect paragraphs with reasoning that explains the next step, especially before increasing technical detail.
|
|
74
|
+
Use connectives that state the actual logical relationship.
|
|
75
|
+
Use direct subjects and verbs, and name concrete operations.
|
|
76
|
+
Prefer positive explanations. Retain negation that clarifies a live alternative, formal exclusion,
|
|
77
|
+
or implementation limit.
|
|
78
|
+
|
|
79
|
+
Give each paragraph one overarching point.
|
|
80
|
+
Develop it through motivation, mechanism, evidence, or consequence; split the paragraph when its question changes.
|
|
81
|
+
Use lists or tables for independent inventories.
|
|
82
|
+
Let paragraph and sentence lengths follow the argument, avoiding formulaic rhythms and repeated contrastive phrasing.
|
|
83
|
+
Use parallel construction when it clarifies a comparison, enumeration, or invariant.
|
|
84
|
+
|
|
85
|
+
During prose-only revisions, including compression, preserve technical scope, equations, examples,
|
|
86
|
+
established terminology, and the short explanations that connect technical facts.
|
|
87
|
+
After revising, read the document from beginning to end to check its progression and concept order.
|
|
88
|
+
|
|
89
|
+
Wrap English prose around 90–120 characters, breaking after sentence or clause punctuation, or before connectives.
|
|
90
|
+
Commas count as clause punctuation.
|
|
91
|
+
Keep complete sentences together when they fit and allow short final lines.
|
|
92
|
+
Preserve code blocks and other structural Markdown.
|
|
93
|
+
Use the project's documented reflow command where available.
|
|
94
|
+
|
|
95
|
+
## Commit Messages
|
|
96
|
+
|
|
97
|
+
Use `prefix: lowercase description`, on one line with no trailing period.
|
|
98
|
+
Describe what changed. For `feat`, name the capability directly; use a leading `add` only when it improves clarity.
|
|
99
|
+
|
|
100
|
+
| Prefix | When to use |
|
|
101
|
+
|--------|-------------|
|
|
102
|
+
| `feat` | A capability users did not have before. |
|
|
103
|
+
| `incr` | Incremental progress: fixes, polish, tuning, or extensions of an existing capability. |
|
|
104
|
+
| `sisy` | Mechanical changes or internal restructuring with no behavior change. |
|
|
105
|
+
| `vibe` | Exploratory or prototype work that may be revised or replaced. |
|
|
106
|
+
| `repo` | Repository housekeeping, dependencies, migrations, or file reorganization. |
|
|
107
|
+
| `docs` | Documentation-only changes, including doc comments and code comments. |
|
|
108
|
+
| `test` | Test changes without production code changes. |
|
|
109
|
+
|
|
110
|
+
Use the prefix of the commit's primary intent.
|
|
111
|
+
Split commits whose intents are independent.
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# 版本日志
|
|
2
|
+
|
|
3
|
+
## 0.2.0 · 2026-11-23
|
|
4
|
+
|
|
5
|
+
- 新增「运行时模块化改良计划」开关,支持从 npm 首次安装和独立启停。
|
|
6
|
+
开关显示运行时成员包的图标,标题与成员包的八语标题一致。
|
|
7
|
+
|
|
8
|
+
## 0.1.0 · 2026-11-23
|
|
9
|
+
|
|
10
|
+
- 详情页分别启停工作区、会话、插件和移动端模块化改良计划。
|
|
11
|
+
首次开启从 npm 安装,关闭保留安装和逐项设置。
|
|
12
|
+
- 各开关行显示对应成员包的 npm 发布图标和当前状态。
|
|
13
|
+
安装失败时可查看诊断并重试。
|
|
14
|
+
- 插件标题、详情和成员开关支持八种界面语言。
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 dsh-atlas-atlas contributors
|
|
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.
|
package/README.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Modular Improvement Plan Manager
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[简体中文](README.zh.md)
|
|
4
|
+
|
|
5
|
+
Manage the workspace, session, plugin, mobile, and runtime bundles for the current profile from one page.
|
|
6
|
+
In DeepSeek Harness Web or Desktop, open **Plugins → Add plugin** and enter `@miorin/dsh-atlas-atlas`.
|
|
7
|
+
Open **Plugins → Modular Improvement Plan Manager** to use the five switches.
|
|
8
|
+
|
|
9
|
+
The manager requires DSH `0.2.2-rc.5` or newer.
|
|
10
|
+
DSH checks each member bundle's version requirements when it installs.
|
|
11
|
+
The first time you turn on a bundle, DSH installs it from npm.
|
|
12
|
+
Turning it off keeps the installed copy and its plugin settings.
|
|
13
|
+
|
|
14
|
+
[Development and verification](docs/README.md)
|
package/README.zh.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# 模块模块化改良计划
|
|
2
|
+
|
|
3
|
+
[English](README.md)
|
|
4
|
+
|
|
5
|
+
在 DeepSeek Harness 的 **插件 → 添加插件** 中输入 `@miorin/dsh-atlas-atlas`,再打开 **插件 → 模块模块化改良计划**。
|
|
6
|
+
五个开关分别管理当前 profile 的工作区、会话、插件、移动端和运行时模块化改良计划。
|
|
7
|
+
|
|
8
|
+
管理器需要 DeepSeek Harness `0.2.2-rc.5` 或更新版本的 Web 或桌面界面。
|
|
9
|
+
DSH 在安装时会核对各成员包自己的版本要求。
|
|
10
|
+
|
|
11
|
+
首次开启时从 npm 安装并启用对应成员包。
|
|
12
|
+
关闭会停用整包并保留安装和逐项设置,再次开启直接复用已有安装。
|
|
13
|
+
|
|
14
|
+
[开发与验证](docs/README.md)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
Atlas manager adapts the switch markup and styling from `@deepseek-ai/dsh-client-ui-primitives@0.2.2-rc.5`,
|
|
4
|
+
`src/Switch.tsx` (`Switch`) and `src/Switch.module.css` (`switch` and `thumb`).
|
|
5
|
+
|
|
6
|
+
MIT License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2026 DeepSeek
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
|
|
11
|
+
and associated documentation files (the "Software"), to deal in the Software without restriction,
|
|
12
|
+
including without limitation the rights to use, copy, modify, merge, publish, distribute,
|
|
13
|
+
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
|
|
14
|
+
subject to the following conditions:
|
|
15
|
+
|
|
16
|
+
The above copyright notice and this permission notice shall be included in all copies
|
|
17
|
+
or substantial portions of the Software.
|
|
18
|
+
|
|
19
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
|
20
|
+
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
21
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
22
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
|
|
23
|
+
OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
24
|
+
|
|
25
|
+
## Published Atlas icons
|
|
26
|
+
|
|
27
|
+
Workspace, Session, Plugin, Mobile, and Runtime Atlas declare the MIT license.
|
|
28
|
+
The [generated artwork module](src/client/published-icons.ts) records each npm package, version, and icon path.
|