@miorin/dsh-atlas-workspace 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.
@@ -0,0 +1,53 @@
1
+ # AGENTS.local
2
+
3
+ 本文件补充 [AGENTS.md](AGENTS.md),记录本聚合包的局部约定。
4
+
5
+ ## 定位
6
+
7
+ - 这是工作区插件的组合层,不是行为插件。
8
+ - 行仍然指向各源插件,成员见 [聚合清单](aggregate.yml)。
9
+ 各插件的 Host 和 Client 代码由源插件维护。
10
+ - 独立 bundle 与聚合包互斥;重复行 id 是 DSH 启动级错误。
11
+
12
+ ## 新增工作区功能
13
+
14
+ 任何新的、主要面向工作区的功能都应加入本聚合包:更新 `aggregate.yml`,重新生成并校验,
15
+ 保持源插件的行 id 稳定,并同步更新 locale 标题、描述与文档;源插件仍可独立安装,但必须同时加入本聚合包。
16
+ 与工作区无关的功能仍独立成包。
17
+
18
+ - 在源插件中编写源码时,除非有特殊说明,否则使用 TypeScript。
19
+ 复用与目标 DSH 版本匹配的官方类型,在接口、配置和事件中保留类型信息,对未知输入先校验再收窄,并同步维护类型依赖。
20
+ - 聚合与源插件只使用 DSH 支持的插件 API 和扩展点。
21
+ 禁止修改 DSH 源码或安装产物,也禁止用全局猴子补丁或覆写内部实现绕过边界。
22
+ 扩展点不足时说明缺口,并将实现限制在插件能力内。
23
+ - 源插件界面的常见操作按钮优先使用易识别的图标,仅在图标无法明确表达操作含义时使用可见文字。
24
+
25
+ ## 构建与发布
26
+
27
+ 开发、版本变更和独立检出的发布命令见[生成与校验](docs/README.md#生成与校验)。
28
+
29
+ ## 文档
30
+
31
+ - 设计与安装细节写在 [docs/README.md](docs/README.md),用中文。
32
+ - 面向读者的安装说明维护在 `README.md` 与 `README.zh.md`。
33
+ - 插件详情页要整体短、每项一眼能懂。
34
+ 只展示用户当下需要知道或操作的内容,细节按需展开。
35
+ - Markdown 用 `docs/scripts/reflow` 重排;`prek install` 后可交给本地钩子。
36
+
37
+ ## 变更
38
+
39
+ - `aggregate.yml` 定义聚合成员和行顺序。
40
+ 增删插件时先改清单,再生成并检查漂移。
41
+ - 保持源插件的行 id 稳定,profile 按行 id 匹配逐行覆盖。
42
+ 生成文件的范围见[项目文档](docs/README.md#结构)。
43
+ - 修改安装或迁移行为前,先读[安装与迁移](docs/README.md#安装与迁移)。
44
+ - 卡片标题、描述和图标分别改 `locale/` 与 `icon.svg`。
45
+
46
+ ## 复用 DSH 原生界面
47
+
48
+ - 优先复用 DSH 原生组件、行为、主题 token 和同类界面布局,以减少自写代码和维护成本。
49
+ - 当前版本有受支持的运行时入口且性能可接受时,优先通过公开插槽、
50
+ 组件工厂或宿主提供的可加载模块动态复用,让宿主提供组件实现。
51
+ 只有现有组件和扩展点无法满足需求时,才补足必要的插件实现。
52
+ - 静态引入或打包官方代码或资源时,在引用处标注上游包名、版本或提交、源码路径及符号名,便于升级时回看和同步,
53
+ 并保留适用的许可证与署名。
package/AGENTS.md ADDED
@@ -0,0 +1,121 @@
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.
112
+
113
+ ## Release Versioning
114
+
115
+ Follow [Semantic Versioning 2.0.0](https://semver.org/) for every new release.
116
+
117
+ - For `0.x.x`, agents may choose only a patch increment on their own.
118
+ A minor increment requires explicit user authorization.
119
+ - When the current major version is `1` or higher, default to a patch increment.
120
+ Agents may choose a minor increment when the scope of the changes warrants one under SemVer.
121
+ - A major increment always requires explicit direction from the user.
package/README.de.md ADDED
@@ -0,0 +1,8 @@
1
+ # Modularer Plan zur Verbesserung der Arbeitsbereiche
2
+
3
+ Finden Sie Sitzungen, wechseln Sie den Arbeitsbereich und sehen Sie sich Dateien in der Vorschau an.
4
+ Neben dem Sitzungstitel steht der Name des Arbeitsbereichs.
5
+ Für jeden Arbeitsbereich lässt sich eine Standard-Agent-Voreinstellung festlegen.
6
+ Jede Funktion lässt sich separat ein- und ausschalten.
7
+
8
+ [Vollständige Dokumentation](docs/README.md#usage)
package/README.es.md ADDED
@@ -0,0 +1,8 @@
1
+ # Plan modular de mejora de los espacios de trabajo
2
+
3
+ Encuentra sesiones, cambia de espacio de trabajo y previsualiza archivos.
4
+ Consulta el nombre del espacio junto al título de la sesión y elige un ajuste preestablecido
5
+ del agente para cada espacio.
6
+ Puedes activar o desactivar cada función por separado.
7
+
8
+ [Documentación completa](docs/README.md#usage)
package/README.fr.md ADDED
@@ -0,0 +1,8 @@
1
+ # Plan modulaire d’amélioration des espaces de travail
2
+
3
+ Retrouvez vos sessions, changez d’espace de travail et prévisualisez vos fichiers.
4
+ Retrouvez le nom de l’espace à côté du titre de la session et définissez un préréglage
5
+ d’agent par défaut pour chaque espace.
6
+ Chaque fonction peut être activée ou désactivée séparément.
7
+
8
+ [Documentation complète](docs/README.md#usage)
package/README.ja.md ADDED
@@ -0,0 +1,8 @@
1
+ # ワークスペースのモジュール式改善計画
2
+
3
+ セッションを探したり、ワークスペースを切り替えたり、ファイルをプレビューしたりできます。
4
+ セッションのタイトル横にワークスペース名が表示されます。
5
+ ワークスペースごとに既定のエージェントプリセットを設定できます。
6
+ 各機能は個別にオン・オフを切り替えられます。
7
+
8
+ [詳しいドキュメント](docs/README.md#usage)
package/README.md CHANGED
@@ -1,3 +1,9 @@
1
- # Temporary Holding Version
1
+ # Workspace Modular Improvement Plan
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ [简体中文](README.zh.md)
4
+
5
+ Find sessions, switch workspaces, and preview files.
6
+ See the workspace name beside session titles and set a default Agent preset for each workspace.
7
+ Each feature has its own switch.
8
+
9
+ [Full documentation](docs/README.md#usage)
package/README.pt.md ADDED
@@ -0,0 +1,8 @@
1
+ # Plano modular de melhorias para os espaços de trabalho
2
+
3
+ Encontre sessões, alterne entre espaços de trabalho e visualize arquivos.
4
+ Veja o nome do espaço de trabalho ao lado do título da sessão e defina uma predefinição
5
+ padrão do agente para cada espaço.
6
+ Você pode ativar ou desativar cada função separadamente.
7
+
8
+ [Documentação completa](docs/README.md#usage)
package/README.ru.md ADDED
@@ -0,0 +1,8 @@
1
+ # Модульный план улучшения рабочих пространств
2
+
3
+ Находите сеансы, переключайтесь между рабочими пространствами и просматривайте файлы.
4
+ Рядом с заголовком сеанса отображается имя рабочего пространства.
5
+ Для каждого пространства можно задать предустановку агента по умолчанию.
6
+ Каждую функцию можно включать и выключать отдельно.
7
+
8
+ [Полная документация](docs/README.md#usage)
package/README.zh.md ADDED
@@ -0,0 +1,8 @@
1
+ # 工作区模块化改良计划
2
+
3
+ [English](README.md)
4
+
5
+ 查找会话、切换工作区、浏览和预览文件,在会话标题旁查看工作区名,并为各工作区设置默认 Agent preset。
6
+ 各项功能可独立开关。
7
+
8
+ [详细文档](docs/README.md#使用)
package/aggregate.yml ADDED
@@ -0,0 +1,20 @@
1
+ # Any new workspace-facing feature belongs in this aggregate. Add its package,
2
+ # then install its pinned version and run `npm run build` and `npm run check`.
3
+ name: '@miorin/dsh-atlas-workspace'
4
+ version: 0.2.0
5
+ description: 'Workspace switching, file browsing, title badges, and default Agent presets.'
6
+ engines:
7
+ dsh: '>=0.2.2-rc.5'
8
+ plugins:
9
+ - name: '@miorin/dsh-workspace-switcher'
10
+ spec: 0.1.1
11
+ enabled: true
12
+ - name: '@miorin/dsh-preview-file-navigation'
13
+ spec: 0.1.1
14
+ enabled: true
15
+ - name: '@miorin/dsh-workspace-title-badge'
16
+ spec: 0.1.1
17
+ enabled: true
18
+ - name: '@miorin/dsh-workspace-default-preset'
19
+ spec: 0.1.1
20
+ enabled: true