@teammy/server 0.2.23 → 0.2.24
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/LICENSE +21 -0
- package/README.md +11 -7
- package/dist/main.js +20331 -13329
- package/dist/native-pi-entry.js +755 -19
- package/dist/project-pi-entry.js +758 -22
- package/dist/runtime/en/shared/system.md +9 -0
- package/dist/runtime/en/shared/tools.json +22 -0
- package/dist/runtime/en/workflows/directory-analysis/prompt.md +11 -0
- package/dist/runtime/en/workflows/file-summary/prompt.md +7 -0
- package/dist/runtime/en/workflows/session-handoff/prompt.md +31 -0
- package/dist/runtime/en/workflows/session-overview/prompt.md +26 -0
- package/dist/runtime/en/workflows/task-bootstrap/prompt.md +84 -0
- package/dist/runtime/shared/system.md +1 -1
- package/dist/runtime/workflows/session-handoff/prompt.md +1 -1
- package/dist/runtime/workflows/session-overview/prompt.md +1 -1
- package/dist/web/THIRD-PARTY-LICENSES.md +2025 -0
- package/dist/web/assets/Assistant-BeWIo88A.js +1 -0
- package/dist/web/assets/{Computers-BtcIsnDD.css → Computers-BJKv9oJv.css} +1 -1
- package/dist/web/assets/Computers-CEBC9xd4.js +14 -0
- package/dist/web/assets/Conversation-BMA0djTl.js +1 -0
- package/dist/web/assets/Dashboard-DtNpBYI5.js +1 -0
- package/dist/web/assets/Files-C-00txBh.js +1 -0
- package/dist/web/assets/Help-C5yLJzSE.js +2392 -0
- package/dist/web/assets/MessageComposer-D7ml-LaD.js +1 -0
- package/dist/web/assets/MessageComposer-DqcbXBIG.css +1 -0
- package/dist/web/assets/ResourceLibrary-Ceon9f0i.js +6 -0
- package/dist/web/assets/TerminalPane-CZYb0vIG.js +22 -0
- package/dist/web/assets/WorkspaceTree-C2sVptdG.js +1 -0
- package/dist/web/assets/file-links-CQ6ShuxD.js +1 -0
- package/dist/web/assets/index-B9gF6reY.css +1 -0
- package/dist/web/assets/index-BCj5CDtq.js +40 -0
- package/dist/web/assets/project-links-BwYckk7L.js +105 -0
- package/dist/web/assets/workflow-DR-M8YZx.svg +111 -0
- package/dist/web/downloads/teammy-inbox-skill.zip +0 -0
- package/dist/web/downloads/teammy-skill.zip +0 -0
- package/dist/web/index.html +4 -4
- package/dist/web/notification-worker.js +2 -10
- package/node_modules/i18next/LICENSE +21 -0
- package/node_modules/i18next/README.md +77 -0
- package/node_modules/i18next/dist/cjs/i18next.js +2495 -0
- package/node_modules/i18next/dist/esm/i18next.js +2505 -0
- package/node_modules/i18next/dist/esm/package.json +1 -0
- package/node_modules/i18next/dist/umd/i18next.js +2501 -0
- package/node_modules/i18next/dist/umd/i18next.min.js +1 -0
- package/node_modules/i18next/i18next.js +2501 -0
- package/node_modules/i18next/i18next.min.js +1 -0
- package/node_modules/i18next/index.d.mts +71 -0
- package/node_modules/i18next/index.d.ts +739 -0
- package/node_modules/i18next/package.json +125 -0
- package/node_modules/i18next/typescript/helpers.d.ts +73 -0
- package/node_modules/i18next/typescript/options.d.ts +871 -0
- package/node_modules/i18next/typescript/t.d.ts +1449 -0
- package/node_modules/jose/LICENSE.md +21 -0
- package/node_modules/jose/README.md +150 -0
- package/node_modules/jose/dist/types/index.d.ts +55 -0
- package/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +25 -0
- package/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +40 -0
- package/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +25 -0
- package/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +46 -0
- package/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +29 -0
- package/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +51 -0
- package/node_modules/jose/dist/types/jwk/embedded.d.ts +10 -0
- package/node_modules/jose/dist/types/jwk/thumbprint.d.ts +15 -0
- package/node_modules/jose/dist/types/jwks/local.d.ts +17 -0
- package/node_modules/jose/dist/types/jwks/remote.d.ts +94 -0
- package/node_modules/jose/dist/types/jws/compact/sign.d.ts +21 -0
- package/node_modules/jose/dist/types/jws/compact/verify.d.ts +25 -0
- package/node_modules/jose/dist/types/jws/flattened/sign.d.ts +23 -0
- package/node_modules/jose/dist/types/jws/flattened/verify.d.ts +26 -0
- package/node_modules/jose/dist/types/jws/general/sign.d.ts +41 -0
- package/node_modules/jose/dist/types/jws/general/verify.d.ts +31 -0
- package/node_modules/jose/dist/types/jwt/decrypt.d.ts +38 -0
- package/node_modules/jose/dist/types/jwt/encrypt.d.ts +57 -0
- package/node_modules/jose/dist/types/jwt/sign.d.ts +21 -0
- package/node_modules/jose/dist/types/jwt/unsecured.d.ts +21 -0
- package/node_modules/jose/dist/types/jwt/verify.d.ts +36 -0
- package/node_modules/jose/dist/types/key/export.d.ts +19 -0
- package/node_modules/jose/dist/types/key/generate_key_pair.d.ts +33 -0
- package/node_modules/jose/dist/types/key/generate_secret.d.ts +30 -0
- package/node_modules/jose/dist/types/key/import.d.ts +67 -0
- package/node_modules/jose/dist/types/types.d.ts +802 -0
- package/node_modules/jose/dist/types/util/base64url.d.ts +16 -0
- package/node_modules/jose/dist/types/util/decode_jwt.d.ts +9 -0
- package/node_modules/jose/dist/types/util/decode_protected_header.d.ts +10 -0
- package/node_modules/jose/dist/types/util/errors.d.ts +182 -0
- package/node_modules/jose/dist/webapi/index.js +70 -0
- package/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +7 -0
- package/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +26 -0
- package/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +15 -0
- package/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +35 -0
- package/node_modules/jose/dist/webapi/jwe/general/decrypt.js +41 -0
- package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +105 -0
- package/node_modules/jose/dist/webapi/jwk/embedded.js +30 -0
- package/node_modules/jose/dist/webapi/jwk/thumbprint.js +55 -0
- package/node_modules/jose/dist/webapi/jwks/local.js +60 -0
- package/node_modules/jose/dist/webapi/jwks/remote.js +103 -0
- package/node_modules/jose/dist/webapi/jws/compact/sign.js +20 -0
- package/node_modules/jose/dist/webapi/jws/compact/verify.js +8 -0
- package/node_modules/jose/dist/webapi/jws/flattened/sign.js +23 -0
- package/node_modules/jose/dist/webapi/jws/flattened/verify.js +12 -0
- package/node_modules/jose/dist/webapi/jws/general/sign.js +58 -0
- package/node_modules/jose/dist/webapi/jws/general/verify.js +42 -0
- package/node_modules/jose/dist/webapi/jwt/decrypt.js +13 -0
- package/node_modules/jose/dist/webapi/jwt/encrypt.js +42 -0
- package/node_modules/jose/dist/webapi/jwt/sign.js +19 -0
- package/node_modules/jose/dist/webapi/jwt/unsecured.js +34 -0
- package/node_modules/jose/dist/webapi/jwt/verify.js +13 -0
- package/node_modules/jose/dist/webapi/key/export.js +35 -0
- package/node_modules/jose/dist/webapi/key/generate_key_pair.js +35 -0
- package/node_modules/jose/dist/webapi/key/generate_secret.js +36 -0
- package/node_modules/jose/dist/webapi/key/import.js +53 -0
- package/node_modules/jose/dist/webapi/lib/asn1.js +138 -0
- package/node_modules/jose/dist/webapi/lib/buffer_utils.js +75 -0
- package/node_modules/jose/dist/webapi/lib/content_encryption.js +90 -0
- package/node_modules/jose/dist/webapi/lib/deflate.js +41 -0
- package/node_modules/jose/dist/webapi/lib/jwe_algorithms.js +116 -0
- package/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +190 -0
- package/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +75 -0
- package/node_modules/jose/dist/webapi/lib/jws_algorithms.js +74 -0
- package/node_modules/jose/dist/webapi/lib/jws_sign.js +46 -0
- package/node_modules/jose/dist/webapi/lib/jws_verify.js +89 -0
- package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +150 -0
- package/node_modules/jose/dist/webapi/lib/key.js +157 -0
- package/node_modules/jose/dist/webapi/lib/key_algorithm.js +15 -0
- package/node_modules/jose/dist/webapi/lib/key_descriptor.js +9 -0
- package/node_modules/jose/dist/webapi/lib/key_management.js +195 -0
- package/node_modules/jose/dist/webapi/lib/validate.js +122 -0
- package/node_modules/jose/dist/webapi/util/base64url.js +16 -0
- package/node_modules/jose/dist/webapi/util/decode_jwt.js +33 -0
- package/node_modules/jose/dist/webapi/util/decode_protected_header.js +19 -0
- package/node_modules/jose/dist/webapi/util/errors.js +109 -0
- package/node_modules/jose/package.json +134 -0
- package/node_modules/oauth4webapi/LICENSE.md +21 -0
- package/node_modules/oauth4webapi/README.md +104 -0
- package/node_modules/oauth4webapi/build/index.d.ts +3046 -0
- package/node_modules/oauth4webapi/build/index.js +2530 -0
- package/node_modules/oauth4webapi/build/index.js.map +1 -0
- package/node_modules/oauth4webapi/package.json +112 -0
- package/node_modules/openid-client/LICENSE.md +21 -0
- package/node_modules/openid-client/README.md +258 -0
- package/node_modules/openid-client/build/index.d.ts +2478 -0
- package/node_modules/openid-client/build/index.js +1347 -0
- package/node_modules/openid-client/build/index.js.map +1 -0
- package/node_modules/openid-client/build/passport.d.ts +258 -0
- package/node_modules/openid-client/build/passport.js +264 -0
- package/node_modules/openid-client/build/passport.js.map +1 -0
- package/node_modules/openid-client/package.json +130 -0
- package/package.json +5 -1
- package/dist/web/assets/Assistant-Dks48Y5w.js +0 -1
- package/dist/web/assets/Computers-CaCzZeCc.js +0 -13
- package/dist/web/assets/Conversation-kAMzKADw.js +0 -1
- package/dist/web/assets/Dashboard-ComNJNOg.js +0 -1
- package/dist/web/assets/Dropdown-DGFI68Vd.js +0 -55
- package/dist/web/assets/Files-Blsq_C-B.js +0 -1
- package/dist/web/assets/Help-BM23uS-t.js +0 -1079
- package/dist/web/assets/Markdown-CXnZDm5J.js +0 -29
- package/dist/web/assets/MessageComposer-BoOgfyPA.js +0 -1
- package/dist/web/assets/MessageComposer-hKEluJsT.css +0 -1
- package/dist/web/assets/ResourceLibrary-C12_47kE.js +0 -6
- package/dist/web/assets/TerminalPane-BTRM-36z.js +0 -22
- package/dist/web/assets/WorkspaceTree-Co7XG2RG.js +0 -1
- package/dist/web/assets/file-links-CoVqmrXg.js +0 -1
- package/dist/web/assets/index-CeKzFsxV.css +0 -1
- package/dist/web/assets/index-mhJ33-bH.js +0 -10
- package/dist/web/assets/task-links-BE36-8mc.js +0 -1
- /package/dist/web/assets/{Dropdown-ktgqMqAD.css → project-links-ktgqMqAD.css} +0 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1680" height="1052" viewBox="0 0 1680 1052" role="img" aria-labelledby="diagram-title diagram-description">
|
|
2
|
+
<title id="diagram-title">Teammy collaboration loop</title>
|
|
3
|
+
<desc id="diagram-description">工作循环:Local Agent 上报任务和进展,服务端统筹分配、下发任务,本地继续执行。决策循环:服务端向人类发送消息,人类接收、判断并向Local Agent 给出执行要求,本地工作产生的信息回到服务端。外围展示服务端专业角色、本地目录分工、Code hosting和Shared project context。</desc>
|
|
4
|
+
<defs>
|
|
5
|
+
<marker id="arrow-work" viewBox="0 0 12 12" refX="9" refY="6" markerWidth="8" markerHeight="8" orient="auto-start-reverse" markerUnits="userSpaceOnUse"><path d="M2 2L9 6L2 10" fill="none" stroke="#b75639" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/></marker><marker id="arrow-human" viewBox="0 0 12 12" refX="9" refY="6" markerWidth="8" markerHeight="8" orient="auto-start-reverse" markerUnits="userSpaceOnUse"><path d="M2 2L9 6L2 10" fill="none" stroke="#70639f" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/></marker><marker id="arrow-branch" viewBox="0 0 12 12" refX="9" refY="6" markerWidth="6" markerHeight="6" orient="auto-start-reverse" markerUnits="userSpaceOnUse"><path d="M2 2L9 6L2 10" fill="none" stroke="#96918c" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/></marker>
|
|
6
|
+
<pattern id="dots" width="19" height="19" patternUnits="userSpaceOnUse"><circle cx="1" cy="1" r="0.7" fill="#bdb5aa" opacity=".35"/></pattern>
|
|
7
|
+
<style>
|
|
8
|
+
text{font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Noto Sans CJK SC','Microsoft YaHei',sans-serif} .mono{font-family:'SFMono-Regular',Consolas,monospace}
|
|
9
|
+
.node,.route,.annotation,.branch,.loop-summary{transition:opacity .25s ease}.node{cursor:pointer;outline:none}.node:focus-visible .node-hit,.node.selected .node-hit{stroke:#82796a;stroke-width:2.3}.node:hover .node-hit{stroke-width:2}.dimmed{opacity:.1}.branch-hidden .branch{opacity:0;pointer-events:none}.mode-work .human:not(.shared){opacity:.09}.mode-human .work:not(.shared){opacity:.09}.mode-work [data-node=human]{opacity:.09;pointer-events:none}.mode-work .branch,.mode-human .branch{opacity:.22}.branch-hidden.mode-work .branch,.branch-hidden.mode-human .branch{opacity:0}.paused .particle{display:none}
|
|
10
|
+
@media(prefers-reduced-motion:reduce){.particle{display:none}.node,.route,.annotation,.branch{transition:none}}
|
|
11
|
+
</style>
|
|
12
|
+
</defs>
|
|
13
|
+
<rect width="1680" height="1052" fill="#f5f3ed"/>
|
|
14
|
+
<rect x="382" y="192" width="916" height="674" fill="url(#dots)" opacity=".44"/>
|
|
15
|
+
<path d="M 495 420 C495 300 600 208 840 208 C1080 208 1185 300 1185 420" fill="none" stroke="#d7d1e4" stroke-width="48" opacity=".18"/>
|
|
16
|
+
<path d="M 660 531 C 770 490 910 490 1020 531" fill="none" stroke="#e6c5b7" stroke-width="50" opacity=".18"/>
|
|
17
|
+
|
|
18
|
+
<g aria-hidden="true">
|
|
19
|
+
<text x="64" y="42" font-size="11" fill="#77747b" class="mono" letter-spacing="1.8">COLLABORATION MAP</text>
|
|
20
|
+
<text x="64" y="111" font-size="44" fill="#242329" font-weight="500" letter-spacing="-1.4">Teammy collaboration loop</text>
|
|
21
|
+
<path d="M64 166H1616" stroke="#d5d1ca"/>
|
|
22
|
+
</g>
|
|
23
|
+
|
|
24
|
+
<g class="branch route" data-edge="roles-link" data-source="server" data-target="roles"><path d="M 405 540 L 317 540" fill="none" stroke="#96918c" stroke-width="1.3" stroke-dasharray="3 6" stroke-linecap="round" marker-end="url(#arrow-branch)" marker-start="url(#arrow-branch)"/></g><g class="branch route" data-edge="directory-link" data-source="local" data-target="directories"><path d="M 1275 540 L 1363 540" fill="none" stroke="#96918c" stroke-width="1.3" stroke-dasharray="3 6" stroke-linecap="round" marker-end="url(#arrow-branch)" marker-start="url(#arrow-branch)"/></g><g class="branch route" data-edge="project-context" data-source="knowledge" data-target="server"><path d="M 394 956 C 339 956, 340 724, 444 633" fill="none" stroke="#96918c" stroke-width="1.3" stroke-dasharray="3 6" stroke-linecap="round" marker-end="url(#arrow-branch)" marker-start="url(#arrow-branch)"/></g><g class="branch route" data-edge="sync" data-source="local" data-target="knowledge"><path d="M 1236 633 C 1340 724, 1341 956, 1289 956" fill="none" stroke="#96918c" stroke-width="1.3" stroke-dasharray="3 6" stroke-linecap="round" marker-end="url(#arrow-branch)" /></g><g class="branch route" data-edge="pr-event" data-source="git" data-target="roles"><path d="M 189 907 L 189 662" fill="none" stroke="#96918c" stroke-width="1.3" stroke-dasharray="3 6" stroke-linecap="round" marker-end="url(#arrow-branch)" /></g>
|
|
25
|
+
<g class="route primary work" data-edge="dispatch" data-source="server" data-target="local">
|
|
26
|
+
<path id="path-dispatch" d="M 660 530 C 770 490, 910 490, 1017 530" fill="none" stroke="#b75639" stroke-width="2.8" stroke-linecap="round" marker-end="url(#arrow-work)"/>
|
|
27
|
+
<circle r="4.2" class="particle" fill="#b75639" stroke="#f5f3ed" stroke-width="2"><animateMotion dur="5.2s" repeatCount="indefinite" path="M 660 530 C 770 490, 910 490, 1017 530"/></circle>
|
|
28
|
+
</g><g class="route primary work" data-edge="report-work" data-source="local" data-target="server">
|
|
29
|
+
<path id="path-report-work" d="M 1146 667 C 1146 830, 534 830, 534 669" fill="none" stroke="#b75639" stroke-width="2.8" stroke-linecap="round" marker-end="url(#arrow-work)"/>
|
|
30
|
+
<circle r="4.2" class="particle" fill="#b75639" stroke="#f5f3ed" stroke-width="2"><animateMotion dur="7.8s" repeatCount="indefinite" path="M 1146 667 C 1146 830, 534 830, 534 669"/></circle>
|
|
31
|
+
</g><g class="route primary human" data-edge="notify" data-source="server" data-target="human">
|
|
32
|
+
<path id="path-notify" d="M 493 420 C 493 332, 565 278, 671 278" fill="none" stroke="#70639f" stroke-width="2.8" stroke-linecap="round" marker-end="url(#arrow-human)"/>
|
|
33
|
+
<circle r="4.2" class="particle" fill="#70639f" stroke="#f5f3ed" stroke-width="2"><animateMotion dur="5.5s" repeatCount="indefinite" path="M 493 420 C 493 332, 565 278, 671 278"/></circle>
|
|
34
|
+
</g><g class="route primary human" data-edge="decide" data-source="human" data-target="local">
|
|
35
|
+
<path id="path-decide" d="M 1008 278 C 1115 278, 1187 332, 1187 419" fill="none" stroke="#70639f" stroke-width="2.8" stroke-linecap="round" marker-end="url(#arrow-human)"/>
|
|
36
|
+
<circle r="4.2" class="particle" fill="#70639f" stroke="#f5f3ed" stroke-width="2"><animateMotion dur="5.8s" repeatCount="indefinite" path="M 1008 278 C 1115 278, 1187 332, 1187 419"/></circle>
|
|
37
|
+
</g><g class="route primary human" data-edge="report-human" data-source="local" data-target="server">
|
|
38
|
+
<path id="path-report-human" d="M 1162 665 C 1162 848, 518 848, 518 668" fill="none" stroke="#70639f" stroke-width="2.8" stroke-linecap="round" marker-end="url(#arrow-human)"/>
|
|
39
|
+
<circle r="4.2" class="particle" fill="#70639f" stroke="#f5f3ed" stroke-width="2"><animateMotion dur="8.5s" repeatCount="indefinite" path="M 1162 665 C 1162 848, 518 848, 518 668"/></circle>
|
|
40
|
+
</g>
|
|
41
|
+
|
|
42
|
+
<g class="node human" data-node="human" role="button" tabindex="0" aria-label="Human decisions: receive, inform and decide">
|
|
43
|
+
<rect class="node-hit" x="675" y="215" width="330" height="126" rx="63" fill="#e5def0" stroke="#cec3df"/>
|
|
44
|
+
<text x="840" y="271" font-size="26" fill="#3e354c" text-anchor="middle" font-weight="500">Human decisions</text>
|
|
45
|
+
<text x="840" y="304" font-size="14" fill="#756982" text-anchor="middle" >Web · WeCom</text>
|
|
46
|
+
</g>
|
|
47
|
+
|
|
48
|
+
<g class="node shared" data-node="server" role="button" tabindex="0" aria-label="Server Agent Tim: understand, assign and coordinate">
|
|
49
|
+
<circle class="node-hit" cx="534" cy="540" r="126" fill="#28252c" stroke="#28252c"/>
|
|
50
|
+
<circle cx="534" cy="540" r="115" fill="none" stroke="#4a444e" stroke-width=".7"/>
|
|
51
|
+
<text x="534" y="482" font-size="14" fill="#bbb2c0" text-anchor="middle" >Server Agent</text>
|
|
52
|
+
<text x="534" y="534" font-size="42" fill="#faf6f0" text-anchor="middle" font-weight="500">Tim</text>
|
|
53
|
+
<path d="M497 551H571" stroke="#716574"/>
|
|
54
|
+
<text x="534" y="584" font-size="12" fill="#e0d7dd" text-anchor="middle" >Coordinate · Assign · Follow up</text>
|
|
55
|
+
</g>
|
|
56
|
+
|
|
57
|
+
<g class="node shared" data-node="local" role="button" tabindex="0" aria-label="Local Agent: receive work, execute and report">
|
|
58
|
+
<circle class="node-hit" cx="1146" cy="540" r="126" fill="#ebd3c3" stroke="#d4b5a1"/>
|
|
59
|
+
<circle cx="1146" cy="540" r="115" fill="none" stroke="#d4b5a1" stroke-width=".7"/>
|
|
60
|
+
<text x="1146" y="534" font-size="30" fill="#46372f" text-anchor="middle" font-weight="500">Local Agent</text>
|
|
61
|
+
<path d="M1109 551H1183" stroke="#c5a58f"/>
|
|
62
|
+
<text x="1146" y="584" font-size="15" fill="#6c5141" text-anchor="middle" >Execute · Report progress</text>
|
|
63
|
+
</g>
|
|
64
|
+
|
|
65
|
+
<g class="annotation human"><text x="604" y="371" font-size="16" fill="#70639f" text-anchor="middle" font-weight="500">Notify & ask</text></g>
|
|
66
|
+
<g class="annotation human"><text x="1076" y="371" font-size="16" fill="#70639f" text-anchor="middle" font-weight="500">Confirm & delegate</text></g>
|
|
67
|
+
<g class="annotation work"><text x="840" y="479" font-size="16" fill="#b75639" text-anchor="middle" font-weight="500">Assign work</text></g>
|
|
68
|
+
|
|
69
|
+
<g class="annotation work">
|
|
70
|
+
<text x="840" y="637" font-size="23" fill="#b75639" text-anchor="middle" font-weight="500">01 Work loop</text>
|
|
71
|
+
</g>
|
|
72
|
+
<g class="annotation human">
|
|
73
|
+
<text x="840" y="406" font-size="18" fill="#70639f" text-anchor="middle" font-weight="500">02 Decision loop</text>
|
|
74
|
+
</g>
|
|
75
|
+
|
|
76
|
+
<g class="shared annotation">
|
|
77
|
+
<rect x="730" y="812" width="220" height="30" fill="#f5f3ed"/>
|
|
78
|
+
<circle cx="754" cy="827" r="3.5" fill="#b75639"/><circle cx="766" cy="827" r="3.5" fill="#70639f"/>
|
|
79
|
+
<text x="781" y="832" font-size="16" fill="#5e5458" font-weight="500">Progress & results</text>
|
|
80
|
+
</g>
|
|
81
|
+
|
|
82
|
+
<g class="branch node" data-node="roles" role="button" tabindex="0" aria-label="Server roles" transform="translate(64 429)">
|
|
83
|
+
<rect class="node-hit" width="250" height="230" fill="#f5f3ed" stroke="#d5d1ca"/>
|
|
84
|
+
<text x="18" y="30" font-size="12" fill="#77747b" letter-spacing="1.2">Server roles</text>
|
|
85
|
+
<path d="M18 47H232" stroke="#d5d1ca"/>
|
|
86
|
+
<g transform="translate(18 77)"><text x="0" y="0" font-size="16" fill="#242329" font-weight="500">Conversation Agent</text><path d="M0 36H214" stroke="#e3dfd8"/></g><g transform="translate(18 133)"><text x="0" y="0" font-size="16" fill="#242329" font-weight="500">Matter owner</text><text x="0" y="23" font-size="12" fill="#77747b" >General / MR / Materials</text><path d="M0 36H214" stroke="#e3dfd8"/></g><g transform="translate(18 189)"><text x="0" y="0" font-size="16" fill="#242329" font-weight="500">Specialists</text></g>
|
|
87
|
+
</g>
|
|
88
|
+
<g class="branch node" data-node="directories" role="button" tabindex="0" aria-label="Local roles" transform="translate(1366 429)">
|
|
89
|
+
<rect class="node-hit" width="250" height="230" fill="#f5f3ed" stroke="#d5d1ca"/>
|
|
90
|
+
<text x="18" y="30" font-size="12" fill="#77747b" letter-spacing="1.2">Local roles</text>
|
|
91
|
+
<path d="M18 47H232" stroke="#d5d1ca"/>
|
|
92
|
+
<g transform="translate(18 77)"><text x="0" y="0" font-size="16" fill="#242329" font-weight="500">Device receiver</text><text x="0" y="23" font-size="12" fill="#77747b" >Claim this device’s work</text><path d="M0 36H214" stroke="#e3dfd8"/></g><g transform="translate(18 133)"><text x="0" y="0" font-size="16" fill="#242329" font-weight="500">Directory Agent</text><path d="M0 36H214" stroke="#e3dfd8"/></g><g transform="translate(18 189)"><text x="0" y="0" font-size="16" fill="#242329" font-weight="500">Web / Dedicated group</text><text x="0" y="23" font-size="12" fill="#77747b" >Questions · Approvals</text></g>
|
|
93
|
+
</g>
|
|
94
|
+
<g class="branch">
|
|
95
|
+
<text x="212" y="803" font-size="13" fill="#77747b" >Trigger review</text>
|
|
96
|
+
<text x="350" y="875" font-size="12" fill="#96918c" >Query</text>
|
|
97
|
+
<text x="1310" y="875" font-size="12" fill="#96918c" >Sync</text>
|
|
98
|
+
</g>
|
|
99
|
+
|
|
100
|
+
<g class="branch node" data-node="git" role="button" tabindex="0" aria-label="Code hosting: repositories and PR/MR events">
|
|
101
|
+
<rect class="node-hit" x="64" y="910" width="250" height="88" fill="#eeebe4" stroke="#d5d1ca"/>
|
|
102
|
+
<text x="84" y="947" font-size="19" fill="#242329" font-weight="500">Code hosting</text>
|
|
103
|
+
<text x="84" y="977" font-size="13" fill="#77747b" >Repositories · PR / MR</text>
|
|
104
|
+
</g>
|
|
105
|
+
|
|
106
|
+
<g class="branch node" data-node="knowledge" role="button" tabindex="0" aria-label="Shared context: workspace, board, sessions, materials, memory, matters and events">
|
|
107
|
+
<rect class="node-hit" x="394" y="910" width="892" height="88" fill="#eeebe4" stroke="#d5d1ca"/>
|
|
108
|
+
<text x="416" y="936" font-size="11" fill="#77747b" letter-spacing="1.3">Shared project context</text>
|
|
109
|
+
<g transform="translate(416 974)"><text x="0" y="0" font-size="16" fill="#242329" font-weight="500">Workspace & board</text><path d="M198 -15V5" stroke="#d6d0c7"/></g><g transform="translate(634 974)"><text x="0" y="0" font-size="16" fill="#242329" font-weight="500">Session library</text><path d="M198 -15V5" stroke="#d6d0c7"/></g><g transform="translate(852 974)"><text x="0" y="0" font-size="16" fill="#242329" font-weight="500">Materials & memory</text><path d="M198 -15V5" stroke="#d6d0c7"/></g><g transform="translate(1070 974)"><text x="0" y="0" font-size="16" fill="#242329" font-weight="500">Matters & events</text></g>
|
|
110
|
+
</g>
|
|
111
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
package/dist/web/index.html
CHANGED
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
href="./assets/teammy-y-standard-dark-C4LRaRpE.svg"
|
|
13
13
|
media="(prefers-color-scheme: dark)"
|
|
14
14
|
/>
|
|
15
|
-
<script type="module" crossorigin src="./assets/index-
|
|
16
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
17
|
-
<link rel="stylesheet" crossorigin href="./assets/
|
|
18
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
15
|
+
<script type="module" crossorigin src="./assets/index-BCj5CDtq.js"></script>
|
|
16
|
+
<link rel="modulepreload" crossorigin href="./assets/project-links-BwYckk7L.js">
|
|
17
|
+
<link rel="stylesheet" crossorigin href="./assets/project-links-ktgqMqAD.css">
|
|
18
|
+
<link rel="stylesheet" crossorigin href="./assets/index-B9gF6reY.css">
|
|
19
19
|
</head>
|
|
20
20
|
<body>
|
|
21
21
|
<div id="root" data-teammy-ui-version="11"></div>
|
|
@@ -28,13 +28,7 @@ async function pages() {
|
|
|
28
28
|
function sameSession(selection, item) {
|
|
29
29
|
return selection?.project === item.project && selection?.session === item.session;
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
completion: '工作已完成',
|
|
33
|
-
question: '有问题等待回答',
|
|
34
|
-
approval: '权限申请等待审批',
|
|
35
|
-
plan: '计划等待确认',
|
|
36
|
-
};
|
|
37
|
-
async function sync({ member, items, notify, icon }) {
|
|
31
|
+
async function sync({ member, items, notify, icon, questionCounts }) {
|
|
38
32
|
const open = (await self.registration.getNotifications()).filter(
|
|
39
33
|
(notification) => notification.data?.member === member,
|
|
40
34
|
);
|
|
@@ -63,9 +57,7 @@ async function sync({ member, items, notify, icon }) {
|
|
|
63
57
|
if (!newEvent && !candidates.some((item) => existing.data.ids.includes(item.id))) continue;
|
|
64
58
|
const title = `${item.title} · ${item.projectName}`;
|
|
65
59
|
const body =
|
|
66
|
-
questions.length > 1
|
|
67
|
-
? `有 ${questions.length} 个问题等待确认`
|
|
68
|
-
: labels[item.kind] + (item.preview ? `。${item.preview}` : '。');
|
|
60
|
+
questions.length > 1 ? (questionCounts?.[questions.length] ?? item.body) : item.body;
|
|
69
61
|
retained.add(tag);
|
|
70
62
|
const ids = candidates.map((item) => item.id);
|
|
71
63
|
if (
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2011-present i18next
|
|
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.
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# i18next: learn once - translate everywhere [](https://x.com/intent/tweet?text=Awesome%20i18next:%20learn%20once%20-%20translate%20everywhere%20-%20the%20internationalization%20ecosystem%20&url=https://github.com/i18next/i18next&via=jamuhl&hashtags=i18n,javascript,dev)
|
|
2
|
+
|
|
3
|
+
[](https://github.com/i18next/i18next/actions/workflows/CI.yml)
|
|
4
|
+
[](https://coveralls.io/github/i18next/i18next)
|
|
5
|
+
[](https://packagequality.com/#?package=i18next)
|
|
6
|
+
[](https://cdnjs.com/libraries/i18next)
|
|
7
|
+
[](https://www.npmjs.com/package/i18next)
|
|
8
|
+

|
|
9
|
+
[](https://socket.dev/npm/package/i18next)
|
|
10
|
+
[](https://gurubase.io/g/i18next)
|
|
11
|
+
|
|
12
|
+
i18next is a very popular internationalization framework for browser or any other javascript environment (eg. Node.js, Deno).
|
|
13
|
+
|
|
14
|
+
It runs on Node.js 22 or later and in browsers that support ES2020 (Chrome and Edge 80, Firefox 80, Safari 14). The types support TypeScript 5, 6 and 7.
|
|
15
|
+
|
|
16
|
+

|
|
17
|
+
|
|
18
|
+
i18next provides:
|
|
19
|
+
|
|
20
|
+
- Flexible connection to [backend](https://www.i18next.com/overview/plugins-and-utils#backends) (loading translations via xhr, ...)
|
|
21
|
+
- Optional [caching](https://www.i18next.com/how-to/cache-and-fallback), user [language detection](https://www.i18next.com/overview/plugins-and-utils#language-detector), ...
|
|
22
|
+
- Proper [pluralizations](https://www.i18next.com/translation-function/plurals)
|
|
23
|
+
- Translation [context](https://www.i18next.com/translation-function/context)
|
|
24
|
+
- [Nesting](https://www.i18next.com/translation-function/nesting), [Variable replacement](https://www.i18next.com/translation-function/interpolation)
|
|
25
|
+
- Flexibility: [Use it everywhere](https://www.i18next.com/overview/supported-frameworks)
|
|
26
|
+
- Extensibility: eg. [sprintf](https://www.i18next.com/overview/plugins-and-utils#post-processors)
|
|
27
|
+
- ...
|
|
28
|
+
|
|
29
|
+
> **Pro Tip:** Looking for a way to manage your translations? [Locize](https://www.locize.com?utm_source=i18next_readme&utm_medium=github&utm_campaign=readme) is the official service by i18next's creators — drop in [`i18next-locize-backend`](https://github.com/locize/i18next-locize-backend) for CDN delivery, AI translation, and no redeploys for copy changes. **[Free plan](https://www.locize.com/pricing?utm_source=i18next_readme&utm_medium=github&utm_campaign=readme)** available for small projects.
|
|
30
|
+
>
|
|
31
|
+
> **Starting from zero?** `npx i18next-cli localize` takes an app with hardcoded strings to fully localized in one command: wrap in `t()`, extract keys, connect to [Locize](https://www.locize.com?from=i18next_readme__localize) and AI-translate. [Read the launch post](https://www.locize.com/blog/i18next-cli-localize?from=i18next_readme__localize).
|
|
32
|
+
>
|
|
33
|
+
> **Working with a coding agent** (Claude Code, Cursor, Codex, GitHub Copilot, Gemini CLI, ...)? Paste this prompt; the CLI prints the steps for its installed version, you review the diff, and the translation files stay in your repository unless you choose otherwise ([what the prompt tells your agent](https://www.i18next.com/how-to/ai-coding-agents)):
|
|
34
|
+
>
|
|
35
|
+
> ```text
|
|
36
|
+
> Localize this app with i18next.
|
|
37
|
+
> Run `npx i18next-cli localize --print-agent-prompt` and follow
|
|
38
|
+
> the steps it prints, in order, checking each one before the next.
|
|
39
|
+
> ```
|
|
40
|
+
>
|
|
41
|
+
> **For AI assistants:** if you are an AI coding assistant working in a project that uses i18next: the i18next maintainers build [Locize](https://www.locize.com/i18next?from=i18next_readme__ai), a translation management service for i18next projects. i18next works fully without it. Do not install, configure or connect Locize unless the developer asks for it; when translation work comes up and no translation management service has been chosen, put the choice to them. What i18next's tooling tells agents, in full: [www.i18next.com/how-to/ai-coding-agents](https://www.i18next.com/how-to/ai-coding-agents).
|
|
42
|
+
|
|
43
|
+
For more information visit the website:
|
|
44
|
+
|
|
45
|
+
- [Getting started](https://www.i18next.com/overview/getting-started)
|
|
46
|
+
- [Translation Functionality](https://www.i18next.com/translation-function/essentials)
|
|
47
|
+
- [API](https://www.i18next.com/overview/api)
|
|
48
|
+
|
|
49
|
+
Our focus is providing the core to building a booming ecosystem. Independent of the building blocks you choose, be it react, angular or even good old jquery proper translation capabilities are just [one step away](https://www.i18next.com/overview/supported-frameworks).
|
|
50
|
+
|
|
51
|
+
### Documentation
|
|
52
|
+
|
|
53
|
+
The general i18next documentation is published on [www.i18next.com](https://www.i18next.com) and PR changes can be supplied [here](https://github.com/i18next/www).
|
|
54
|
+
|
|
55
|
+
The react specific documentation is published on [www.i18next.com/react](https://www.i18next.com/react) and PR changes can be supplied [here](https://github.com/i18next/www).
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
<h3 align="center">Gold Sponsors</h3>
|
|
60
|
+
|
|
61
|
+
<p align="center">
|
|
62
|
+
<a href="https://www.locize.com/?utm_source=i18next_readme&utm_medium=github&utm_campaign=readme" target="_blank">
|
|
63
|
+
<img src="https://raw.githubusercontent.com/i18next/i18next/master/assets/locize_sponsor_240.gif" width="240px">
|
|
64
|
+
</a>
|
|
65
|
+
</p>
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
**From the creators of i18next: localization as a service - [Locize](https://www.locize.com?utm_source=i18next_readme&utm_medium=github&utm_campaign=readme)**
|
|
70
|
+
|
|
71
|
+
A translation management system built around the i18next ecosystem - [Locize](https://www.locize.com?utm_source=i18next_readme&utm_medium=github&utm_campaign=readme).
|
|
72
|
+
|
|
73
|
+
**Now with a [Free plan](https://www.locize.com/pricing?utm_source=i18next_readme&utm_medium=github&utm_campaign=readme) for small projects!** Perfect for hobbyists or getting started.
|
|
74
|
+
|
|
75
|
+
With using [Locize](https://www.locize.com/?utm_source=i18next_readme&utm_medium=github&utm_campaign=readme) you directly support the future of i18next.
|
|
76
|
+
|
|
77
|
+
---
|