@sidequest-007/dsh-atlas 1.0.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/CHANGELOG.md +269 -0
- package/CONTRIBUTING.md +50 -0
- package/LICENSE +21 -0
- package/LICENSE-ORIGINAL +21 -0
- package/NOTICE +29 -0
- package/README.md +297 -0
- package/README.zh.md +289 -0
- package/assets/diagrams/atlas-overview.svg +53 -0
- package/assets/diagrams/atlas-seam.svg +32 -0
- package/assets/screenshots/file-mention-composer.png +0 -0
- package/assets/screenshots/file-mention-settings.png +0 -0
- package/assets/screenshots/menu-mixed.png +0 -0
- package/cordis.patch.yml +14 -0
- package/dsh.plugin.json +12 -0
- package/lib/client.js +20615 -0
- package/lib/index.js +17458 -0
- package/lib/invariant.js +13 -0
- package/lib/types/abort.d.ts +22 -0
- package/lib/types/atlas.d.ts +181 -0
- package/lib/types/client/DraftLinks.d.ts +21 -0
- package/lib/types/client/FilesDock.d.ts +75 -0
- package/lib/types/client/FolderPicker.d.ts +66 -0
- package/lib/types/client/FolderTab.d.ts +50 -0
- package/lib/types/client/MentionNavigator.d.ts +96 -0
- package/lib/types/client/MenuIcons.d.ts +16 -0
- package/lib/types/client/ReferenceLinks.d.ts +85 -0
- package/lib/types/client/SettingsSection.d.ts +31 -0
- package/lib/types/client/draft-links.d.ts +205 -0
- package/lib/types/client/draft-scope.d.ts +22 -0
- package/lib/types/client/git-provider.d.ts +45 -0
- package/lib/types/client/icons.d.ts +48 -0
- package/lib/types/client/index.d.ts +8 -0
- package/lib/types/client/locales.d.ts +267 -0
- package/lib/types/client/model.d.ts +38 -0
- package/lib/types/client/reference-links.d.ts +100 -0
- package/lib/types/client/remote.d.ts +54 -0
- package/lib/types/client/search.d.ts +9 -0
- package/lib/types/client/source.d.ts +325 -0
- package/lib/types/client/styles.d.ts +15 -0
- package/lib/types/contract.d.ts +512 -0
- package/lib/types/defaults.d.ts +115 -0
- package/lib/types/external.d.ts +58 -0
- package/lib/types/files.d.ts +76 -0
- package/lib/types/git.d.ts +44 -0
- package/lib/types/index.d.ts +88 -0
- package/lib/types/invariant.d.ts +15 -0
- package/lib/types/mention.d.ts +80 -0
- package/lib/types/paste.d.ts +13 -0
- package/lib/types/reference.d.ts +16 -0
- package/lib/types/references.d.ts +126 -0
- package/lib/types/runtime-info.d.ts +30 -0
- package/lib/types/runtime.d.ts +180 -0
- package/lib/types/settings.d.ts +25 -0
- package/lib/types/tokens.d.ts +35 -0
- package/lib/types/tools.d.ts +94 -0
- package/lib/types/typert.d.ts +13 -0
- package/lib/types/types.d.ts +12 -0
- package/package.json +208 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="880" height="300" viewBox="0 0 880 300" role="img" aria-label="dsh-ATLAS: one @ trigger, five built-in categories with their glyphs, plus any plugin's own category">
|
|
2
|
+
<rect x="0" y="0" width="880" height="300" rx="18" fill="#0f1420"/>
|
|
3
|
+
<rect x="0.5" y="0.5" width="879" height="299" rx="17.5" fill="none" stroke="#26304a"/>
|
|
4
|
+
|
|
5
|
+
<text x="40" y="68" font-family="Inter, Segoe UI, Helvetica, Arial, sans-serif" font-size="34" font-weight="700" fill="#eef1f7">dsh-ATLAS</text>
|
|
6
|
+
<text x="40" y="98" font-family="Inter, Segoe UI, Helvetica, Arial, sans-serif" font-size="15" fill="#8f9bb3">@ Last, All Sources — one @, every source, and any plugin can register its own.</text>
|
|
7
|
+
|
|
8
|
+
<g font-family="Inter, Segoe UI, Helvetica, Arial, sans-serif" font-size="14">
|
|
9
|
+
<rect x="40" y="122" width="81" height="36" rx="10" fill="#182036" stroke="#2b3450"/>
|
|
10
|
+
<g transform="translate(50,133)" fill="none" stroke="#8fa8e0" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round">
|
|
11
|
+
<path d="M3 1.5h5l3 3v8H3z"/>
|
|
12
|
+
<path d="M8 1.5V5h3"/>
|
|
13
|
+
</g>
|
|
14
|
+
<text x="70" y="146" fill="#dbe3f4">@file</text>
|
|
15
|
+
|
|
16
|
+
<rect x="129" y="122" width="95" height="36" rx="10" fill="#182036" stroke="#2b3450"/>
|
|
17
|
+
<g transform="translate(139,133)" fill="none" stroke="#8fa8e0" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round">
|
|
18
|
+
<path d="M1.5 3.5h4l1.5 2h5.5v6.5h-11z"/>
|
|
19
|
+
</g>
|
|
20
|
+
<text x="159" y="146" fill="#dbe3f4">@folder</text>
|
|
21
|
+
|
|
22
|
+
<rect x="232" y="122" width="88" height="36" rx="10" fill="#182036" stroke="#2b3450"/>
|
|
23
|
+
<g transform="translate(242,133)" fill="none" stroke="#8fa8e0" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round">
|
|
24
|
+
<path d="M7 1.5l1.5 4L12.5 7l-4 1.5L7 12.5 5.5 8.5 1.5 7l4-1.5z"/>
|
|
25
|
+
</g>
|
|
26
|
+
<text x="262" y="146" fill="#dbe3f4">@skill</text>
|
|
27
|
+
|
|
28
|
+
<rect x="328" y="122" width="81" height="36" rx="10" fill="#182036" stroke="#2b3450"/>
|
|
29
|
+
<g transform="translate(338,133)" fill="none" stroke="#8fa8e0" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round">
|
|
30
|
+
<path d="M1.5 3.5h11v6.5H7L4.5 12.5V10H1.5z"/>
|
|
31
|
+
</g>
|
|
32
|
+
<text x="358" y="146" fill="#dbe3f4">@chat</text>
|
|
33
|
+
|
|
34
|
+
<rect x="417" y="122" width="95" height="36" rx="10" fill="#182036" stroke="#2b3450"/>
|
|
35
|
+
<g transform="translate(427,133)" fill="none" stroke="#8fa8e0" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round">
|
|
36
|
+
<path d="M7 1.5l5 2.8v5.4L7 12.5l-5-2.8V4.3z"/>
|
|
37
|
+
</g>
|
|
38
|
+
<text x="447" y="146" fill="#dbe3f4">@plugin</text>
|
|
39
|
+
|
|
40
|
+
<rect x="621" y="122" width="219" height="36" rx="10" fill="#132a4d" stroke="#3f6fd8"/>
|
|
41
|
+
<g transform="translate(631,133)" fill="none" stroke="#bcd2ff" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round">
|
|
42
|
+
<path d="M7 3v8M3 7h8"/>
|
|
43
|
+
</g>
|
|
44
|
+
<text x="651" y="146" fill="#bcd2ff">@atlas:your-provider/…</text>
|
|
45
|
+
</g>
|
|
46
|
+
|
|
47
|
+
<text x="40" y="200" font-family="Inter, Segoe UI, Helvetica, Arial, sans-serif" font-size="13" fill="#8f9bb3">Type @ and letters search every category at once · category rows stay pinned · groups fold</text>
|
|
48
|
+
<text x="40" y="224" font-family="Inter, Segoe UI, Helvetica, Arial, sans-serif" font-size="13" fill="#8f9bb3">A committed mention carries a marker and its provenance — never file content</text>
|
|
49
|
+
|
|
50
|
+
<line x1="40" y1="248" x2="840" y2="248" stroke="#26304a"/>
|
|
51
|
+
<text x="40" y="272" font-family="Inter, Segoe UI, Helvetica, Arial, sans-serif" font-size="13" fill="#7f8dab">shipped here: five categories plus @git, each with its own glyph</text>
|
|
52
|
+
<text x="621" y="272" font-family="Inter, Segoe UI, Helvetica, Arial, sans-serif" font-size="13" fill="#9db8f0">added by a plugin, no rebuild</text>
|
|
53
|
+
</svg>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="880" height="360" viewBox="0 0 880 360" role="img" aria-label="The @ data-source seam: a plugin's browser half lists candidates while the menu is open, its host half resolves one reference once at send, and the registry gates the declaration">
|
|
2
|
+
<rect x="0" y="0" width="880" height="360" rx="18" fill="#0f1420"/>
|
|
3
|
+
<rect x="0.5" y="0.5" width="879" height="359" rx="17.5" fill="none" stroke="#26304a"/>
|
|
4
|
+
|
|
5
|
+
<text x="40" y="58" font-family="Inter, Segoe UI, Helvetica, Arial, sans-serif" font-size="22" font-weight="600" fill="#eef1f7">The @ data-source seam</text>
|
|
6
|
+
<text x="40" y="84" font-family="Inter, Segoe UI, Helvetica, Arial, sans-serif" font-size="14" fill="#8f9bb3">A plugin registers a provider; the menu and the injection read the live registry.</text>
|
|
7
|
+
|
|
8
|
+
<rect x="40" y="110" width="240" height="120" rx="12" fill="#141a2b" stroke="#2b3450"/>
|
|
9
|
+
<text x="60" y="138" font-family="Inter, Segoe UI, Helvetica, Arial, sans-serif" font-size="14" font-weight="600" fill="#cfe0ff">Your plugin · browser half</text>
|
|
10
|
+
<text x="60" y="164" font-family="Inter, Segoe UI, Helvetica, Arial, sans-serif" font-size="13" fill="#9aa7bd">list(query, ctx)</text>
|
|
11
|
+
<text x="60" y="186" font-family="Inter, Segoe UI, Helvetica, Arial, sans-serif" font-size="12" fill="#7f8dab">runs while the menu is open</text>
|
|
12
|
+
<text x="60" y="208" font-family="Inter, Segoe UI, Helvetica, Arial, sans-serif" font-size="12" fill="#7f8dab">open(item) → the chip's click</text>
|
|
13
|
+
|
|
14
|
+
<rect x="320" y="110" width="240" height="120" rx="12" fill="#141a2b" stroke="#2b3450"/>
|
|
15
|
+
<text x="340" y="138" font-family="Inter, Segoe UI, Helvetica, Arial, sans-serif" font-size="14" font-weight="600" fill="#cfe0ff">Your plugin · host half</text>
|
|
16
|
+
<text x="340" y="164" font-family="Inter, Segoe UI, Helvetica, Arial, sans-serif" font-size="13" fill="#9aa7bd">resolve(item, ctx)</text>
|
|
17
|
+
<text x="340" y="186" font-family="Inter, Segoe UI, Helvetica, Arial, sans-serif" font-size="12" fill="#7f8dab">runs once, at send</text>
|
|
18
|
+
<text x="340" y="208" font-family="Inter, Segoe UI, Helvetica, Arial, sans-serif" font-size="12" fill="#7f8dab">ctx.cwd · ctx.sessionId · signal</text>
|
|
19
|
+
|
|
20
|
+
<rect x="600" y="110" width="240" height="120" rx="12" fill="#132a4d" stroke="#3f6fd8"/>
|
|
21
|
+
<text x="620" y="138" font-family="Inter, Segoe UI, Helvetica, Arial, sans-serif" font-size="14" font-weight="600" fill="#d8e5ff">Registry gate</text>
|
|
22
|
+
<text x="620" y="164" font-family="Inter, Segoe UI, Helvetica, Arial, sans-serif" font-size="13" fill="#bcd2ff">scopes + testedOn required</text>
|
|
23
|
+
<text x="620" y="186" font-family="Inter, Segoe UI, Helvetica, Arial, sans-serif" font-size="12" fill="#9db8f0">duplicate id → throws</text>
|
|
24
|
+
<text x="620" y="208" font-family="Inter, Segoe UI, Helvetica, Arial, sans-serif" font-size="12" fill="#9db8f0">mismatch → verified: false</text>
|
|
25
|
+
|
|
26
|
+
<text x="40" y="266" font-family="Inter, Segoe UI, Helvetica, Arial, sans-serif" font-size="13" fill="#8f9bb3">What the user commits stays plain text: @atlas:your-provider/item</text>
|
|
27
|
+
|
|
28
|
+
<rect x="40" y="286" width="800" height="46" rx="10" fill="#141a2b" stroke="#2b3450"/>
|
|
29
|
+
<text x="60" y="314" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="12.5" fill="#cbd6ea"><atlas-reference provider="…" item="…" scopes="…" verified="true">…</atlas-reference></text>
|
|
30
|
+
|
|
31
|
+
<text x="40" y="352" font-family="Inter, Segoe UI, Helvetica, Arial, sans-serif" font-size="12" fill="#7f8dab">16 KiB per reference · 48 KiB per step · overflow is truncated and marked, never silently passed on</text>
|
|
32
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# The bundle patch this package contributes to a profile (dsh.bundle.patch).
|
|
2
|
+
#
|
|
3
|
+
# `name` is the MODULE SPECIFIER the Loader imports, and it must equal this
|
|
4
|
+
# package's own `name`: `dsh-client-modules` keys one client record per package
|
|
5
|
+
# and finds the package by matching the Loader entry name against the nearest
|
|
6
|
+
# manifest's `name`. A scope change on one side only (studio naming:
|
|
7
|
+
# @sidequest-007/dsh-atlas) makes the host half load while the client half silently
|
|
8
|
+
# never registers — the `@` menu then shows only other sources.
|
|
9
|
+
#
|
|
10
|
+
# `id` stays the unscoped plugin id: it is the entry label patches target, not
|
|
11
|
+
# the package identity, and the product's display name is dsh-ATLAS.
|
|
12
|
+
- insert:
|
|
13
|
+
- id: dsh-atlas
|
|
14
|
+
name: '@sidequest-007/dsh-atlas'
|
package/dsh.plugin.json
ADDED