@wowyuarm/dsh-agent-team 0.1.14-alpha.2 → 0.1.15

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.
Files changed (106) hide show
  1. package/README.md +6 -4
  2. package/README.zh.md +6 -4
  3. package/cordis.patch.yml +3 -1
  4. package/package.json +51 -46
  5. package/packages/agent-team/README.md +2 -2
  6. package/packages/agent-team/README.zh.md +2 -2
  7. package/packages/agent-team/core-skills/member-memory-manager/SKILL.md +30 -0
  8. package/packages/agent-team/lib/context-continuity-host.js +90 -0
  9. package/packages/agent-team/lib/context-projection.js +266 -489
  10. package/packages/agent-team/lib/context-source.js +4 -72
  11. package/packages/agent-team/lib/human-avatar.js +61 -0
  12. package/packages/agent-team/lib/human-profile.js +157 -0
  13. package/packages/agent-team/lib/human-update-check.js +119 -0
  14. package/packages/agent-team/lib/index.js +464 -254
  15. package/packages/agent-team/lib/ledger.js +120 -15
  16. package/packages/agent-team/lib/member-context.js +6 -3
  17. package/packages/agent-team/lib/member-runtime.js +1 -1
  18. package/packages/agent-team/lib/pressure-policy.js +6 -1
  19. package/packages/agent-team/lib/typert.host.js +489 -33
  20. package/packages/agent-team/lib/typert.remote-client.d.ts +15 -3
  21. package/packages/agent-team/lib/typert.remote-client.d.ts.map +1 -1
  22. package/packages/agent-team/lib/typert.remote-client.js +250 -28
  23. package/packages/agent-team/lib/types/context-continuity-host.d.ts +84 -0
  24. package/packages/agent-team/lib/types/context-continuity-host.d.ts.map +1 -0
  25. package/packages/agent-team/lib/types/context-projection.d.ts +130 -185
  26. package/packages/agent-team/lib/types/context-projection.d.ts.map +1 -1
  27. package/packages/agent-team/lib/types/context-source.d.ts +4 -35
  28. package/packages/agent-team/lib/types/context-source.d.ts.map +1 -1
  29. package/packages/agent-team/lib/types/human-avatar.d.ts +29 -0
  30. package/packages/agent-team/lib/types/human-avatar.d.ts.map +1 -0
  31. package/packages/agent-team/lib/types/human-profile.d.ts +116 -0
  32. package/packages/agent-team/lib/types/human-profile.d.ts.map +1 -0
  33. package/packages/agent-team/lib/types/human-update-check.d.ts +73 -0
  34. package/packages/agent-team/lib/types/human-update-check.d.ts.map +1 -0
  35. package/packages/agent-team/lib/types/index.d.ts +153 -41
  36. package/packages/agent-team/lib/types/index.d.ts.map +1 -1
  37. package/packages/agent-team/lib/types/ledger.d.ts +31 -2
  38. package/packages/agent-team/lib/types/ledger.d.ts.map +1 -1
  39. package/packages/agent-team/lib/types/member-context.d.ts.map +1 -1
  40. package/packages/agent-team/lib/types/pressure-policy.d.ts +6 -0
  41. package/packages/agent-team/lib/types/pressure-policy.d.ts.map +1 -1
  42. package/packages/agent-team/lib/types/types/entities.d.ts +17 -0
  43. package/packages/agent-team/lib/types/types/entities.d.ts.map +1 -1
  44. package/packages/agent-team/lib/types/types/requests-results.d.ts +81 -0
  45. package/packages/agent-team/lib/types/types/requests-results.d.ts.map +1 -1
  46. package/packages/client-agent-team/README.md +1 -1
  47. package/packages/client-agent-team/README.zh.md +1 -1
  48. package/packages/client-agent-team/lib/client.js +1545 -303
  49. package/packages/client-agent-team/lib/client.js.map +1 -1
  50. package/packages/client-agent-team/lib/types/client/HumanSettingsSection.d.ts +15 -0
  51. package/packages/client-agent-team/lib/types/client/HumanSettingsSection.d.ts.map +1 -0
  52. package/packages/client-agent-team/lib/types/client/HumanSettingsSection.js +115 -0
  53. package/packages/client-agent-team/lib/types/client/TeamAgentsPanel.d.ts.map +1 -1
  54. package/packages/client-agent-team/lib/types/client/TeamAgentsPanel.js +6 -2
  55. package/packages/client-agent-team/lib/types/client/TeamAvatarStack.d.ts +22 -1
  56. package/packages/client-agent-team/lib/types/client/TeamAvatarStack.d.ts.map +1 -1
  57. package/packages/client-agent-team/lib/types/client/TeamAvatarStack.js +25 -2
  58. package/packages/client-agent-team/lib/types/client/TeamChannelPage.d.ts +6 -1
  59. package/packages/client-agent-team/lib/types/client/TeamChannelPage.d.ts.map +1 -1
  60. package/packages/client-agent-team/lib/types/client/TeamChannelPage.js +67 -29
  61. package/packages/client-agent-team/lib/types/client/TeamComposer.js +2 -2
  62. package/packages/client-agent-team/lib/types/client/TeamConversation.d.ts +1 -1
  63. package/packages/client-agent-team/lib/types/client/TeamConversation.d.ts.map +1 -1
  64. package/packages/client-agent-team/lib/types/client/TeamConversation.js +12 -5
  65. package/packages/client-agent-team/lib/types/client/TeamInboxPage.d.ts +4 -1
  66. package/packages/client-agent-team/lib/types/client/TeamInboxPage.d.ts.map +1 -1
  67. package/packages/client-agent-team/lib/types/client/TeamInboxPage.js +22 -7
  68. package/packages/client-agent-team/lib/types/client/TeamMemberEditor.d.ts +11 -1
  69. package/packages/client-agent-team/lib/types/client/TeamMemberEditor.d.ts.map +1 -1
  70. package/packages/client-agent-team/lib/types/client/TeamMemberEditor.js +66 -5
  71. package/packages/client-agent-team/lib/types/client/TeamMessage.d.ts +18 -3
  72. package/packages/client-agent-team/lib/types/client/TeamMessage.d.ts.map +1 -1
  73. package/packages/client-agent-team/lib/types/client/TeamMessage.js +213 -67
  74. package/packages/client-agent-team/lib/types/client/TeamThreadPage.d.ts +5 -0
  75. package/packages/client-agent-team/lib/types/client/TeamThreadPage.d.ts.map +1 -1
  76. package/packages/client-agent-team/lib/types/client/TeamThreadPage.js +52 -26
  77. package/packages/client-agent-team/lib/types/client/avatar-image.d.ts +21 -0
  78. package/packages/client-agent-team/lib/types/client/avatar-image.d.ts.map +1 -0
  79. package/packages/client-agent-team/lib/types/client/avatar-image.js +9 -0
  80. package/packages/client-agent-team/lib/types/client/human-identity.d.ts +90 -0
  81. package/packages/client-agent-team/lib/types/client/human-identity.d.ts.map +1 -0
  82. package/packages/client-agent-team/lib/types/client/human-identity.js +96 -0
  83. package/packages/client-agent-team/lib/types/client/index.d.ts.map +1 -1
  84. package/packages/client-agent-team/lib/types/client/index.js +76 -4
  85. package/packages/client-agent-team/lib/types/client/locales.d.ts +72 -2
  86. package/packages/client-agent-team/lib/types/client/locales.d.ts.map +1 -1
  87. package/packages/client-agent-team/lib/types/client/locales.js +78 -2
  88. package/packages/client-agent-team/lib/types/client/refs.d.ts +71 -0
  89. package/packages/client-agent-team/lib/types/client/refs.d.ts.map +1 -0
  90. package/packages/client-agent-team/lib/types/client/refs.js +181 -0
  91. package/packages/client-agent-team/lib/types/client/slots.d.ts +9 -3
  92. package/packages/client-agent-team/lib/types/client/slots.d.ts.map +1 -1
  93. package/packages/client-agent-team/lib/types/client/team-formatters.d.ts +57 -9
  94. package/packages/client-agent-team/lib/types/client/team-formatters.d.ts.map +1 -1
  95. package/packages/client-agent-team/lib/types/client/team-formatters.js +85 -17
  96. package/packages/tool-agent-team/README.md +2 -2
  97. package/packages/tool-agent-team/README.zh.md +2 -2
  98. package/packages/tool-agent-team/lib/context-tools.js +20 -6
  99. package/packages/tool-agent-team/lib/index.js +2 -2
  100. package/packages/tool-agent-team/lib/types/context-tools.d.ts.map +1 -1
  101. package/packages/agent-team/lib/context-management.js +0 -371
  102. package/packages/agent-team/lib/types/context-management.d.ts +0 -154
  103. package/packages/agent-team/lib/types/context-management.d.ts.map +0 -1
  104. package/packages/client-agent-team/lib/types/client/task-refs.d.ts +0 -31
  105. package/packages/client-agent-team/lib/types/client/task-refs.d.ts.map +0 -1
  106. package/packages/client-agent-team/lib/types/client/task-refs.js +0 -99
@@ -0,0 +1,116 @@
1
+ import z from '@deepseek-ai/schemastery';
2
+ /**
3
+ * Human identity profile: the one configurable display name plus the avatar
4
+ * reference. `member:human` stays the durable identity everywhere; only the
5
+ * handle shown in team_view, @ matching, and UI follows this profile.
6
+ *
7
+ * Storage split (see spec.md v1):
8
+ * - name + avatarRef are the Team Host row's own Config, so they live in the
9
+ * active profile's patch document as that row's `config` and the settings
10
+ * service derives their form from this schema. rc.1 derives every form from
11
+ * a plugin's Config, so the retired `installSection` namespace — a section of
12
+ * its own — has no counterpart; the row id below is the settings namespace.
13
+ * - avatar bytes live under a persistent directory below; the profile holds
14
+ * only the reference, never a data URL. The composer attachment cache is
15
+ * TTL-bound and must not hold avatar bytes.
16
+ */
17
+ /**
18
+ * Settings namespace of the Human profile: the Team Host row's id in
19
+ * `cordis.patch.yml`, which is what the settings service addresses a form and a
20
+ * write by AND the id the profile-document write patches. It is addressed by
21
+ * this constant, never by the running Host's `ctx.fiber.entry`: a Remote call
22
+ * runs under its caller's context, so that lookup names the RPC gateway's row.
23
+ * `shipping.spec.ts` pins the constant to the row the composition declares.
24
+ */
25
+ export declare const HUMAN_PROFILE_SETTINGS_NAMESPACE = "wowyuarm-agent-team-host";
26
+ /** Fallback display name before any user override is stored. */
27
+ export declare const HUMAN_PROFILE_DEFAULT_NAME = "human";
28
+ /** Repository home for the version footnote link. */
29
+ export declare const HUMAN_PROFILE_REPO_URL = "https://github.com/wowyuarm/dsh-agent-team";
30
+ /**
31
+ * Bundle version shown in the settings footnote, and the current side of the
32
+ * update check: the version of the package THIS Host runs from — read from the
33
+ * installed manifest, so a `link:` checkout under the development profile and a
34
+ * registry tarball under stable each state their own truth. It is not a
35
+ * hand-maintained string: the 0.1.14 bundle shipped with `0.1.13` written in
36
+ * it, which made the footnote name the previous release and the update check
37
+ * offer the release the user already had.
38
+ *
39
+ * Resolved once at load, three levels above this module — `packages/agent-team/{src,lib}`
40
+ * sits that deep in both layouts, the same relative positioning
41
+ * `member-runtime.ts` uses to find `core-skills`. An unreadable or malformed
42
+ * manifest degrades to `'unknown'`: the Remote's `version: string` contract
43
+ * holds and the update comparison simply compares nothing. The footnote is
44
+ * informational only and never gates behavior.
45
+ */
46
+ export declare const HUMAN_PROFILE_VERSION: string;
47
+ export interface HumanProfile {
48
+ readonly name: string;
49
+ readonly avatarRef?: string;
50
+ }
51
+ /** Settings document shape: name with schema default, avatarRef as a plain reference. */
52
+ export interface HumanProfileSettings {
53
+ readonly name: string;
54
+ readonly avatarRef?: string;
55
+ }
56
+ /**
57
+ * Schemastery schema of the Human profile: the Team Host row's Config. Both
58
+ * fields are volatile, which is what lets an edit reach the running Host
59
+ * without remounting it — and what makes the settings service derive a form
60
+ * from this schema at all.
61
+ */
62
+ export declare const HUMAN_PROFILE_SETTINGS_SCHEMA: z<Schemastery.ObjectS<NoInfer<{
63
+ name: z<string, string, "volatile-defined">;
64
+ avatarRef: z<string, string, "volatile">;
65
+ }>>, Schemastery.ObjectT<NoInfer<{
66
+ name: z<string, string, "volatile-defined">;
67
+ avatarRef: z<string, string, "volatile">;
68
+ }>>, "plain">;
69
+ /** Normalize one candidate display name the way Member handles normalize. */
70
+ export declare function normalizeHumanName(raw: string): string;
71
+ /**
72
+ * Validate one candidate display name with the same floor as Member handles:
73
+ * non-empty after trim. Uniqueness against live Members is checked by the
74
+ * Host (which owns the ledger), not here, so this stays a pure function.
75
+ */
76
+ export declare function assertValidHumanName(raw: string): string;
77
+ /**
78
+ * The retired settings section this profile's facts lived in before rc.1.
79
+ * rc.1 derives every settings form from a plugin's Config, and its legacy
80
+ * `settings.yaml` importer maps a section to a composition entry id through a
81
+ * closed built-in list — this third-party section matches nothing there, so
82
+ * the import rejects it and the values survive only in the renamed document.
83
+ * This Host owns the section, so adopting what is left belongs here.
84
+ */
85
+ export declare const LEGACY_HUMAN_PROFILE_SECTION = "agent-team-human";
86
+ /** Fields recoverable from the legacy section; either may be absent. */
87
+ export interface LegacyHumanProfileFields {
88
+ readonly name?: string;
89
+ readonly avatarRef?: string;
90
+ }
91
+ /**
92
+ * Read the legacy section out of one legacy settings document. An
93
+ * unparsable document or a missing section means "nothing to adopt" rather
94
+ * than an error — the file is retired input, not an authority — and each
95
+ * field is validated independently so one bad field never costs the other.
96
+ */
97
+ export declare function parseLegacyHumanProfile(yamlText: string): LegacyHumanProfileFields | undefined;
98
+ /**
99
+ * Decide what adoption may write: nothing unless the stored profile is still
100
+ * the pristine default, so a value the Human re-entered after the upgrade
101
+ * always wins, and never the legacy default name itself. The current profile
102
+ * carries explicit `undefined` on `avatarRef` — the Host getter spreads a
103
+ * settings read — and so is not `HumanProfile` under
104
+ * exactOptionalPropertyTypes; taking that shape directly keeps the Host call
105
+ * cast-free. The returned fields are exactly the ops the profile page would
106
+ * have written; byte existence for `avatarRef` is the caller's I/O and must
107
+ * already hold.
108
+ */
109
+ export declare function planLegacyAdoption(current: {
110
+ readonly name: string;
111
+ readonly avatarRef?: string | undefined;
112
+ }, legacy: LegacyHumanProfileFields): {
113
+ readonly name?: string;
114
+ readonly avatarRef?: string;
115
+ } | undefined;
116
+ //# sourceMappingURL=human-profile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"human-profile.d.ts","sourceRoot":"","sources":["../../src/human-profile.ts"],"names":[],"mappings":"AAGA,OAAO,CAAC,MAAM,0BAA0B,CAAA;AAGxC;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,gCAAgC,6BAA6B,CAAA;AAE1E,gEAAgE;AAChE,eAAO,MAAM,0BAA0B,UAAU,CAAA;AAEjD,qDAAqD;AACrD,eAAO,MAAM,sBAAsB,+CAA+C,CAAA;AAElF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,qBAAqB,QAA+B,CAAA;AAgBjE,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED,yFAAyF;AACzF,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B;;;;;;aAKxC,CAAA;AAEF,6EAA6E;AAC7E,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEtD;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAIxD;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,4BAA4B,qBAAqB,CAAA;AAE9D,wEAAwE;AACxE,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,GAAG,wBAAwB,GAAG,SAAS,CAwB9F;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,EAC3E,MAAM,EAAE,wBAAwB,GAC/B;IAAE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAMrE"}
@@ -0,0 +1,73 @@
1
+ /**
2
+ * Best-effort Host-side check for a newer published bundle release.
3
+ *
4
+ * The settings footnote needs `updateAvailable`/`latestVersion`, but the
5
+ * profile read path must never wait on the network: the checker serves a
6
+ * cached snapshot synchronously and refreshes it in the background. Every
7
+ * failure mode — disabled by the operator, no fetch implementation, timeout,
8
+ * non-OK status, malformed payload, unparsable version — settles as "no
9
+ * update known", so the footnote degrades to version + link exactly as before.
10
+ *
11
+ * No durable state: the cache lives only in memory. A Host restart simply
12
+ * starts unknown again, which is the safe default for an informational tip.
13
+ */
14
+ /** Public npm metadata document for the bundle's `latest` dist-tag. */
15
+ export declare const HUMAN_UPDATE_CHECK_REGISTRY_URL = "https://registry.npmjs.org/@wowyuarm%2fdsh-agent-team/latest";
16
+ /** How long one settled check stays authoritative before a re-check. */
17
+ export declare const HUMAN_UPDATE_CHECK_TTL_MS: number;
18
+ /** Upper bound for one registry round trip; the read path never waits on it. */
19
+ export declare const HUMAN_UPDATE_CHECK_TIMEOUT_MS = 5000;
20
+ /** Setting this env var to `0`/`false`/`off` disables the outbound check. */
21
+ export declare const HUMAN_UPDATE_CHECK_ENV = "DSH_AGENT_TEAM_UPDATE_CHECK";
22
+ /** Minimal fetch surface the check needs; the global fetch satisfies it. */
23
+ export interface UpdateCheckFetcher {
24
+ (url: string, init: {
25
+ readonly signal: AbortSignal;
26
+ }): Promise<{
27
+ readonly ok: boolean;
28
+ json(): Promise<unknown>;
29
+ }>;
30
+ }
31
+ /** Operator kill-switch; anything but an explicit off value keeps the default on. */
32
+ export declare function isUpdateCheckEnabled(env?: {
33
+ readonly [key: string]: string | undefined;
34
+ }): boolean;
35
+ /**
36
+ * Numeric core of a `major.minor.patch…` version. Pre-release/build suffixes
37
+ * are ignored for ordering; anything else unparsable resolves absent so the
38
+ * caller treats it as "no update known" instead of guessing.
39
+ */
40
+ export declare function parseVersionCore(value: string): readonly number[] | undefined;
41
+ /** True when `latest` orders strictly after `current` on the numeric core. */
42
+ export declare function isNewerVersion(current: string, latest: string): boolean;
43
+ /**
44
+ * One registry round trip resolving the published `latest` version string.
45
+ * Never throws: anything unexpected resolves absent.
46
+ */
47
+ export declare function fetchLatestVersion(fetchImpl: UpdateCheckFetcher, url?: string, timeoutMs?: number): Promise<string | undefined>;
48
+ export interface HumanUpdateCheckerOptions {
49
+ readonly currentVersion: string;
50
+ readonly fetchImpl?: UpdateCheckFetcher | undefined;
51
+ readonly now?: (() => number) | undefined;
52
+ readonly ttlMs?: number | undefined;
53
+ readonly timeoutMs?: number | undefined;
54
+ readonly env?: {
55
+ readonly [key: string]: string | undefined;
56
+ } | undefined;
57
+ }
58
+ export interface HumanUpdateSnapshot {
59
+ readonly updateAvailable: boolean;
60
+ readonly latestVersion?: string | undefined;
61
+ }
62
+ /**
63
+ * Synchronous snapshot over a background-refreshed latest-version cache.
64
+ * `snapshot()` never blocks: a stale or empty cache serves the last known
65
+ * value (initially "no update") and kicks off at most one shared refresh.
66
+ * Concurrent and repeated calls while a refresh is in flight share it, and a
67
+ * refresh that settles only stamps the cache — failures simply leave the
68
+ * previous value standing.
69
+ */
70
+ export declare function createHumanUpdateChecker(options: HumanUpdateCheckerOptions): {
71
+ readonly snapshot: () => HumanUpdateSnapshot;
72
+ };
73
+ //# sourceMappingURL=human-update-check.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"human-update-check.d.ts","sourceRoot":"","sources":["../../src/human-update-check.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,uEAAuE;AACvE,eAAO,MAAM,+BAA+B,iEACoB,CAAA;AAEhE,wEAAwE;AACxE,eAAO,MAAM,yBAAyB,QAAsB,CAAA;AAE5D,gFAAgF;AAChF,eAAO,MAAM,6BAA6B,OAAO,CAAA;AAEjD,6EAA6E;AAC7E,eAAO,MAAM,sBAAsB,gCAAgC,CAAA;AAEnE,4EAA4E;AAC5E,MAAM,WAAW,kBAAkB;IACjC,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE;QAAE,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAA;KAAE,GAAG,OAAO,CAAC;QAC7D,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAA;QACpB,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC,CAAA;KACzB,CAAC,CAAA;CACH;AAED,qFAAqF;AACrF,wBAAgB,oBAAoB,CAAC,GAAG,GAAE;IAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;CAAgB,GAAG,OAAO,CAG/G;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,GAAG,SAAS,CAU7E;AAED,8EAA8E;AAC9E,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAWvE;AAED;;;GAGG;AACH,wBAAsB,kBAAkB,CACtC,SAAS,EAAE,kBAAkB,EAC7B,GAAG,GAAE,MAAwC,EAC7C,SAAS,GAAE,MAAsC,GAChD,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAS7B;AAED,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAA;IAC/B,QAAQ,CAAC,SAAS,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAA;IACnD,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,MAAM,CAAC,GAAG,SAAS,CAAA;IACzC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACnC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvC,QAAQ,CAAC,GAAG,CAAC,EAAE;QAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;KAAE,GAAG,SAAS,CAAA;CAC1E;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAA;IACjC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5C;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,yBAAyB,GAAG;IAC5E,QAAQ,CAAC,QAAQ,EAAE,MAAM,mBAAmB,CAAA;CAC7C,CAqCA"}
@@ -5,16 +5,19 @@
5
5
  * effects. Session history and browser state are projections, never Team facts.
6
6
  * @module @wowyuarm/dsh-agent-team
7
7
  */
8
- import { Context, Service } from '@deepseek-ai/cordis';
8
+ import { Context, Service, type Volatile } from '@deepseek-ai/cordis';
9
9
  import { type Agent } from '@deepseek-ai/dsh-agent';
10
10
  import { SessionId } from '@deepseek-ai/dsh-session';
11
11
  import { TypertRemoteService } from '@deepseek-ai/dsh-typert-protocol';
12
12
  import type { WorkspaceId } from '@deepseek-ai/dsh-workspace';
13
+ import { type ContextProjectionConfig, type ContextTimelineSource } from '@wowyuarm/dsh-context-continuity';
13
14
  import { type AgentTeamDurableMemberResult } from './ledger.ts';
14
- import type { AgentTeamAddMemberRequest, AgentTeamAgentMember, AgentTeamAgentMemberStatus, AgentTeamArchiveChannelRequest, AgentTeamArchiveChannelResult, AgentTeamArchiveMemberRequest, AgentTeamArchiveMemberResult, AgentTeamChangesRequest, AgentTeamChangesResult, AgentTeamClaimList, AgentTeamClaimRequest, AgentTeamClaimResult, AgentTeamClientMemberStatus, AgentTeamContextCheckpointRef, AgentTeamCreateChannelRequest, AgentTeamCreateChannelResult, AgentTeamGetAttachmentRequest, AgentTeamGetAttachmentResult, AgentTeamInbox, AgentTeamInboxRequest, AgentTeamJoinChannelRequest, AgentTeamJoinChannelResult, AgentTeamJoinWorkspaceRequest, AgentTeamJoinWorkspaceResult, AgentTeamLeaveWorkspaceRequest, AgentTeamLeaveWorkspaceResult, AgentTeamMemberId, AgentTeamMemberResult, AgentTeamMembersRequest, AgentTeamResolveTaskRefsRequest, AgentTeamResolveTaskRefsResult, AgentTeamOperationReceipt, AgentTeamPromoteThreadRequest, AgentTeamPromoteThreadResult, AgentTeamPutAttachmentRequest, AgentTeamPutAttachmentResult, AgentTeamRecoverMemberRequest, AgentTeamRecoverMemberResult, AgentTeamClearMemberContextRequest, AgentTeamClearMemberContextResult, AgentTeamRolloverSessionRequest, AgentTeamDmRequest, AgentTeamDmResult, AgentTeamRemoveChannelMemberRequest, AgentTeamRemoveChannelMemberResult, AgentTeamRemoveMemberRequest, AgentTeamRemoveMemberResult, AgentTeamReplyRequest, AgentTeamReplyResult, AgentTeamSendMessageRequest, AgentTeamSendMessageResult, AgentTeamSetMemberStateRequest, AgentTeamStatus, AgentTeamTask, AgentTeamTaskRequest, AgentTeamTaskResult, AgentTeamThreadAttentionRequest, AgentTeamThreadAttentionResult, AgentTeamThreadAttentionStatus, AgentTeamThreadHistory, AgentTeamThreadHistoryRequest, AgentTeamThreadReadRequest, AgentTeamThreadReadResult, AgentTeamThreadObservations, AgentTeamThreadObservationsRequest, AgentTeamUpdateChannelRequest, AgentTeamUpdateChannelResult, AgentTeamUpdateMemberRequest, AgentTeamView, AgentTeamViewRequest } from './types.ts';
15
+ import type { AgentTeamAddMemberRequest, AgentTeamAddMemberResult, AgentTeamAgentMember, AgentTeamAgentMemberStatus, AgentTeamArchiveChannelRequest, AgentTeamArchiveChannelResult, AgentTeamArchiveMemberRequest, AgentTeamArchiveMemberResult, AgentTeamChangesRequest, AgentTeamChangesResult, AgentTeamClaimList, AgentTeamClaimRequest, AgentTeamClaimResult, AgentTeamClientMemberStatus, AgentTeamContextCheckpointRef, AgentTeamCreateChannelRequest, AgentTeamCreateChannelResult, AgentTeamGetAttachmentRequest, AgentTeamGetAttachmentResult, AgentTeamGetHumanAvatarRequest, AgentTeamGetHumanAvatarResult, AgentTeamHumanProfileRequest, AgentTeamHumanProfileResult, AgentTeamPutHumanAvatarRequest, AgentTeamPutHumanAvatarResult, AgentTeamRemoveHumanAvatarRequest, AgentTeamRemoveHumanAvatarResult, AgentTeamInbox, AgentTeamInboxRequest, AgentTeamJoinChannelRequest, AgentTeamJoinChannelResult, AgentTeamJoinWorkspaceRequest, AgentTeamJoinWorkspaceResult, AgentTeamLeaveWorkspaceRequest, AgentTeamLeaveWorkspaceResult, AgentTeamMemberId, AgentTeamMemberResult, AgentTeamMembersRequest, AgentTeamResolveTaskRefsRequest, AgentTeamResolveTaskRefsResult, AgentTeamResolveThreadRefsRequest, AgentTeamResolveThreadRefsResult, AgentTeamOperationReceipt, AgentTeamPromoteThreadRequest, AgentTeamPromoteThreadResult, AgentTeamPutAttachmentRequest, AgentTeamPutAttachmentResult, AgentTeamRecoverMemberRequest, AgentTeamRecoverMemberResult, AgentTeamClearMemberContextRequest, AgentTeamClearMemberContextResult, AgentTeamRolloverSessionRequest, AgentTeamDmRequest, AgentTeamDmResult, AgentTeamRemoveChannelMemberRequest, AgentTeamRemoveChannelMemberResult, AgentTeamRemoveMemberRequest, AgentTeamRemoveMemberResult, AgentTeamReplyRequest, AgentTeamReplyResult, AgentTeamSendMessageRequest, AgentTeamSendMessageResult, AgentTeamSetHumanProfileRequest, AgentTeamSetHumanProfileResult, AgentTeamSetMemberStateRequest, AgentTeamStatus, AgentTeamTask, AgentTeamTaskRequest, AgentTeamTaskResult, AgentTeamThreadAttentionRequest, AgentTeamThreadAttentionResult, AgentTeamThreadAttentionStatus, AgentTeamThreadHistory, AgentTeamThreadHistoryRequest, AgentTeamThreadReadRequest, AgentTeamThreadReadResult, AgentTeamThreadObservations, AgentTeamThreadObservationsRequest, AgentTeamUpdateChannelRequest, AgentTeamUpdateChannelResult, AgentTeamUpdateMemberRequest, AgentTeamView, AgentTeamViewRequest } from './types.ts';
15
16
  export { agentTeamDomainSpec, agentTeamOperationSchema } from './spec.ts';
16
17
  export type * from './types.ts';
17
18
  export { AGENT_TEAM_HUMAN_HANDLE, AGENT_TEAM_HUMAN_MEMBER_ID, AGENT_TEAM_INITIALIZE_REQUEST_ID } from './ledger.ts';
19
+ export { HUMAN_PROFILE_DEFAULT_NAME, HUMAN_PROFILE_REPO_URL, HUMAN_PROFILE_SETTINGS_NAMESPACE, HUMAN_PROFILE_SETTINGS_SCHEMA, HUMAN_PROFILE_VERSION, assertValidHumanName, normalizeHumanName } from './human-profile.ts';
20
+ export { humanAvatarsRoot } from './human-avatar.ts';
18
21
  export { AGENT_TEAM_TOOL_NAMES } from './member-runtime.ts';
19
22
  /** Process-stable marker carried by the final Team message tool definition. */
20
23
  export declare const AGENT_TEAM_PRESET_MARKER: unique symbol;
@@ -133,8 +136,27 @@ export interface AgentTeamTimelineToolResult {
133
136
  readonly reason: string;
134
137
  };
135
138
  }
139
+ /**
140
+ * Config of the Team Host row: the Human profile (see human-profile.ts). The
141
+ * settings service derives every form from the owning plugin's Config, so the
142
+ * profile is this plugin's own config rather than a section of its own; both
143
+ * fields arrive volatile, which is what lets an edit reach the running Host
144
+ * without remounting it.
145
+ */
146
+ export interface Config {
147
+ name: Volatile<string>;
148
+ avatarRef: Volatile<string | undefined>;
149
+ }
136
150
  /** Host owner of the single Agent Team in one dshHome. */
137
151
  export default class AgentTeam extends TypertRemoteService {
152
+ config: Config;
153
+ static Config: import("@deepseek-ai/schemastery").default<Schemastery.ObjectS<NoInfer<{
154
+ name: import("@deepseek-ai/schemastery").default<string, string, "volatile-defined">;
155
+ avatarRef: import("@deepseek-ai/schemastery").default<string, string, "volatile">;
156
+ }>>, Schemastery.ObjectT<NoInfer<{
157
+ name: import("@deepseek-ai/schemastery").default<string, string, "volatile-defined">;
158
+ avatarRef: import("@deepseek-ai/schemastery").default<string, string, "volatile">;
159
+ }>>, "plain">;
138
160
  static inject: string[];
139
161
  private domain?;
140
162
  private ledger?;
@@ -165,25 +187,34 @@ export default class AgentTeam extends TypertRemoteService {
165
187
  private readonly pressurePolicy;
166
188
  private readonly notifiedInbox;
167
189
  private attachmentGcTimer?;
190
+ /**
191
+ * New-release check behind the settings footnote. Memory-only and
192
+ * background-refreshed, so the profile read path never waits on the
193
+ * network and every failure settles as "no update known".
194
+ */
195
+ private readonly humanUpdateCheck;
168
196
  private readonly recovery;
169
197
  /**
170
- * Incremental fold state for {@link contextManagement}'s projection lookup:
171
- * one entry per Member, replaced when that Member's Session changes. Keying
172
- * by Member rather than by Session id is what bounds the map — a rollover
173
- * that leaves the previous generation's projection behind retains it for the
174
- * life of the process, and only the current Session can ever read it.
198
+ * Team's domain half of the continuity projection: the durable ref naming,
199
+ * the Team-notice rule, and the boundary judgement (committed messages,
200
+ * claim changes, first Thread arrivals). Its claim attribution resolves the
201
+ * Task's Thread through the ledger, which is why the resolver reads
202
+ * `this.ledger` lazily — the fold may run before the domain is open, and an
203
+ * unattributed boundary is still a valid anchor.
175
204
  */
176
- private readonly contextCursors;
205
+ private readonly contextProjectionHost;
177
206
  /**
178
207
  * Context self-management: the one deep module that turns a Member's
179
208
  * successful `context_rollover` tool result into its next private context
180
- * generation. The ledger owns the binding audit, the Session projection
181
- * owns intent, and this coordinator owns only reconstructible process
182
- * state. See docs/architecture.md and docs/team-collaboration.md.
209
+ * generation. The ledger owns the binding audit, the engine's projection
210
+ * unit owns intent, and this coordinator owns only reconstructible process
211
+ * state. See docs/architecture/README.md and docs/team-collaboration/README.md.
183
212
  */
184
213
  private readonly contextManagement;
185
214
  private lifecycleTail;
186
215
  private accepting;
216
+ /** One adoption attempt per boot: the two readiness edges fire once each, and this keeps their attempt single. */
217
+ private legacyAdoptionStarted;
187
218
  /**
188
219
  * Presence wake epoch: Agent running/idle/failure is runtime state with no
189
220
  * durable fact behind it, so the presence scope counts those edge wakes in
@@ -191,7 +222,37 @@ export default class AgentTeam extends TypertRemoteService {
191
222
  */
192
223
  private presenceEpoch;
193
224
  private readonly changeWaiters;
194
- constructor(ctx: Context);
225
+ constructor(ctx: Context, config: Config);
226
+ /** Current human display name; the single source for team_view and @ matching. */
227
+ humanHandle(): string;
228
+ /** Current human profile reference held in this Host row's Config (name + avatarRef). */
229
+ humanProfile(): {
230
+ readonly name: string;
231
+ readonly avatarRef?: string | undefined;
232
+ };
233
+ /** Push the current Config name into the ledger's runtime @ handle. */
234
+ private syncHumanHandle;
235
+ /**
236
+ * The two judgements the Config schema cannot make about a Human name: the
237
+ * same non-empty floor as Member handles, plus global uniqueness against live
238
+ * Members. `setHumanProfile` runs it before the write, so a colliding rename
239
+ * rejects instead of persisting.
240
+ */
241
+ private validateHumanProfile;
242
+ /**
243
+ * One-time adoption of the profile facts the retired `agent-team-human`
244
+ * settings section held (see `LEGACY_HUMAN_PROFILE_SECTION` for why the
245
+ * upstream importer cannot carry them over). The values land in this Host
246
+ * row's own Config through the same Remote the profile page writes, so the
247
+ * page, the ledger's @ handle, and every avatar seat follow as after any
248
+ * edit. Readiness has two one-way edges — the settings service arrives, the
249
+ * ledger opens — and whichever fires second starts the attempt; only a
250
+ * pristine profile is adopted, and one attempt per boot is its whole
251
+ * lifetime, so adoption never loops and never re-writes.
252
+ */
253
+ private adoptLegacyHumanProfile;
254
+ /** Carry the first legacy document that still has the section into a pristine profile. */
255
+ private adoptLegacyHumanProfileNow;
195
256
  /** Open the durable ledger and restore every enabled Member independently. */
196
257
  protected [Service.init](): Promise<void>;
197
258
  /**
@@ -218,6 +279,8 @@ export default class AgentTeam extends TypertRemoteService {
218
279
  members(): readonly AgentTeamAgentMemberStatus[];
219
280
  /** Read-only navigation lookup for branded Task refs found in message bodies. */
220
281
  resolveTaskRefs(request: AgentTeamResolveTaskRefsRequest): AgentTeamResolveTaskRefsResult;
282
+ /** Read-only navigation lookup for branded Thread refs found in message bodies. */
283
+ resolveThreadRefs(request: AgentTeamResolveThreadRefsRequest): AgentTeamResolveThreadRefsResult;
221
284
  /** Browser-safe Human roster, optionally filtered to one participation. */
222
285
  membersForClient(request: AgentTeamMembersRequest): readonly AgentTeamClientMemberStatus[];
223
286
  /** Emit a current baseline, then coalesced invalidations until canceled. */
@@ -235,7 +298,7 @@ export default class AgentTeam extends TypertRemoteService {
235
298
  */
236
299
  archiveChannel(request: AgentTeamArchiveChannelRequest): Promise<AgentTeamArchiveChannelResult>;
237
300
  /** Create a durable Member and atomically grant its declared initial Channels. */
238
- addMember(request: AgentTeamAddMemberRequest): Promise<AgentTeamMemberResult>;
301
+ addMember(request: AgentTeamAddMemberRequest): Promise<AgentTeamAddMemberResult>;
239
302
  /** Commit suspended intent, then wait for the owned AgentHandle to become quiescent. */
240
303
  suspendMember(request: AgentTeamSetMemberStateRequest): Promise<AgentTeamMemberResult>;
241
304
  /** Commit enabled intent and restore the exact persisted Session. */
@@ -352,6 +415,42 @@ export default class AgentTeam extends TypertRemoteService {
352
415
  putAttachment(request: AgentTeamPutAttachmentRequest): Promise<AgentTeamPutAttachmentResult>;
353
416
  /** Read one cached attachment back for client display; gone entries throw and the UI degrades to a chip. */
354
417
  getAttachment(request: AgentTeamGetAttachmentRequest): Promise<AgentTeamGetAttachmentResult>;
418
+ /**
419
+ * Human profile read for the settings page and footnote: name + avatar
420
+ * reference from this Host row's live Config plus version facts. Human-scoped
421
+ * (the Web Client calls it); agent tools never receive avatar bytes, only the
422
+ * name through team_view. The new-release check stays best-effort and cached —
423
+ * `updateAvailable` is false until a background refresh actually observes a
424
+ * newer published release.
425
+ */
426
+ humanProfileForClient(_request: AgentTeamHumanProfileRequest): AgentTeamHumanProfileResult;
427
+ /**
428
+ * Upload one human avatar image into the persistent store. Human-only by
429
+ * construction: only the Web Client calls this Remote, never agent tools.
430
+ * The caller stores the returned ref in settings; bytes never enter the
431
+ * TTL-bound attachment cache.
432
+ */
433
+ putHumanAvatar(request: AgentTeamPutHumanAvatarRequest): Promise<AgentTeamPutHumanAvatarResult>;
434
+ /** Read one human avatar back; removed entries throw and the UI falls back to hue/initial. */
435
+ getHumanAvatar(request: AgentTeamGetHumanAvatarRequest): Promise<AgentTeamGetHumanAvatarResult>;
436
+ /** Remove one human avatar entry; the UI falls back to hue/initial afterwards. */
437
+ removeHumanAvatar(request: AgentTeamRemoveHumanAvatarRequest): Promise<AgentTeamRemoveHumanAvatarResult>;
438
+ /**
439
+ * Overwrite the Human profile fields the caller supplies. The Host owns this
440
+ * write because the profile is the Host row's own Config: the schema supplies
441
+ * the shape, this method supplies the two judgements the schema cannot make
442
+ * (a non-empty name, a name no live Member already answers to), and the
443
+ * settings service persists the result into the active profile's patch
444
+ * document and applies it to the running plugin live.
445
+ *
446
+ * No expected revision accompanies the write: the profile is two scalar
447
+ * fields written from the Human's own pages, where the last write wins. This
448
+ * is not a hard boundary around a user-editable document — the settings
449
+ * service's own document opener (and a text editor) can change the stored
450
+ * name without passing here, exactly as the retired section validator could
451
+ * not stop it.
452
+ */
453
+ setHumanProfile(request: AgentTeamSetHumanProfileRequest): Promise<AgentTeamSetHumanProfileResult>;
355
454
  /** Human existing-Thread reply; unread and revision conflicts are business outcomes. */
356
455
  reply(request: AgentTeamReplyRequest): Promise<AgentTeamReplyResult>;
357
456
  /** Human's personal Attention operation. */
@@ -520,20 +619,53 @@ export default class AgentTeam extends TypertRemoteService {
520
619
  * Agent-only bounded structural timeline: resolved checkpoints plus Team
521
620
  * delivery, handoff, and compaction boundaries across the current
522
621
  * generation and its archived ancestor lineage. Structural only — no
523
- * transcript content. The meter prices retained/discarded tokens; entries
524
- * the Host cannot prove restorable carry a rejection reason instead of
525
- * silently disappearing.
622
+ * transcript content. The walk, the per-source folds, the pricing, and the
623
+ * anchor rules are the engine's `readContextTimeline`; Team contributes the
624
+ * fold configuration, the measurement, and the one judgement the engine
625
+ * leaves to its host — which Threads a boundary's retained prefix holds — so
626
+ * a ref this list offers is a ref `context_rollover` accepts.
526
627
  */
527
628
  contextTimelineForAgent(agent: Agent, request: AgentTeamTimelineToolRequest): Promise<AgentTeamTimelineToolResult>;
629
+ /**
630
+ * Map one engine timeline item onto the model-facing Team item. The engine
631
+ * decided the walk, the fold, the pricing, and the head, checkpoint, and
632
+ * measurable-source verdicts; Team restates exactly one policy of its own: a
633
+ * Team boundary is selectable only when the RETAINED PREFIX through it stays
634
+ * inside one Thread — the same proof the seed guard revalidates before it
635
+ * swaps a generation. The engine judges a boundary by its OWN attribution
636
+ * instead, so a boundary that arrived after a second Thread's facts would be
637
+ * offered here and refused by `context_rollover`; Team's stricter rule is
638
+ * what keeps the two surfaces answering one question.
639
+ */
640
+ private teamTimelineItemFor;
528
641
  /**
529
642
  * Replayed measurement of one lineage source: the live current Session
530
- * measures directly; an archived ancestor measures through a borrowed
531
- * prepared Session, so a seed's retained cost is priced in the SOURCE's
532
- * own tokens — never the current generation's. Returns undefined when no
533
- * meter is available or the source cannot be borrowed; callers fail
534
- * closed on the unknown.
643
+ * measures directly; an archived ancestor measures through a detached
644
+ * Session rebuilt from the source's own log, so a seed's retained cost is
645
+ * priced in the SOURCE's own tokens — never the current generation's.
646
+ * Returns undefined when no meter is available or the source cannot be
647
+ * replayed; callers fail closed on the unknown.
535
648
  */
536
649
  private sourceUsageTokens;
650
+ /**
651
+ * One already-read source's replayed measurement: an archived generation is
652
+ * rebuilt as a detached Session and measured in its own tokens. Undefined
653
+ * means unmeasurable, never free.
654
+ */
655
+ private measureDetachedSource;
656
+ /**
657
+ * One source's replayed measurement, in that source's own tokens, for a
658
+ * caller that already holds the source: the live generation measures
659
+ * directly, an archived one is rebuilt from the log it came with. Undefined
660
+ * means unmeasurable — a caller must never price an unknown source as free.
661
+ */
662
+ measureContextSourceForAgent(agent: Agent, source: ContextTimelineSource): number | undefined;
663
+ /**
664
+ * The one fold configuration the registered projection unit and every cold
665
+ * fold use, so a generation read back for the timeline reads exactly as the
666
+ * projection folded it — same codec, same boundary attribution.
667
+ */
668
+ contextFoldConfig(): ContextProjectionConfig;
537
669
  /**
538
670
  * Monotonic anchor-share estimate of a seed's retained cost, priced in the
539
671
  * SOURCE Session's own measurement: the fraction of the source log the
@@ -544,26 +676,6 @@ export default class AgentTeam extends TypertRemoteService {
544
676
  * timeline display and the return guard share this one estimate.
545
677
  */
546
678
  private retainedEstimate;
547
- /**
548
- * Threads whose facts entered this Session's model context by the given
549
- * seq: delivered Team notices (their bodies quote `Thread: <ref>`
550
- * structurally) and successful Team-claim mutations (their task overlays
551
- * resolve to Threads through the ledger). Never from unread ledger
552
- * activity — a Thread the Member never saw did not enter its context.
553
- * Order-stable, deduplicated.
554
- */
555
- private threadsEnteringContext;
556
- /**
557
- * Price and annotate one timeline candidate without mutating anything.
558
- * Retained prices in the SOURCE Session's own replayed measurement (the
559
- * monotonic anchor-share of the source log); discarded is what a return
560
- * replaces — for a current-generation anchor, the measured usage beyond
561
- * the anchor; for an ancestor anchor, the current generation's whole
562
- * usage (an approximation: the ancestor's own suffix is not part of this
563
- * generation). A small current child therefore discards little but may
564
- * still retain a large ancestor seed, and both numbers say so honestly.
565
- */
566
- private timelineItemFor;
567
679
  /**
568
680
  * Agent-only rollover request validation: the tool calls this to check its
569
681
  * Member binding, exclusivity, and checkpoint ownership. It performs no
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAyB,KAAK,KAAK,EAA4C,MAAM,wBAAwB,C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C,gBAAgB;IAIxB,OAAO,CAAC,aAAa;IAkCrB,iEAAiE;IACjE,OAAO,CAAC,iBAAiB;IAWzB,yEAAyE;IACzE,OAAO,CAAC,gBAAgB;IAUxB,OAAO,CAAC,yBAAyB;IAIjC;;;;OAIG;IACH,OAAO,CAAC,mBAAmB;IAI3B,gHAAgH;IAChH,OAAO,CAAC,yBAAyB;IAIjC,4FAA4F;IAC5F,OAAO,CAAC,YAAY;IA8CpB,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,gBAAgB;IAMxB,OAAO,CAAC,gBAAgB;IA8CxB,OAAO,CAAC,uBAAuB;IAK/B,OAAO,CAAC,oBAAoB;IAwC5B,6EAA6E;YAC/D,oBAAoB;IAalC,OAAO,CAAC,wBAAwB;IAMhC,OAAO,CAAC,4BAA4B;IAIpC;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,WAAW;IAYnB;;;;;;OAMG;IACH,OAAO,CAAC,eAAe;IAKvB,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,gBAAgB;CAMzB"}
@@ -1,7 +1,7 @@
1
1
  import type { KvTable } from '@deepseek-ai/dsh-storage-domain';
2
2
  import type { SessionId, SessionLogOffset, SessionSeq } from '@deepseek-ai/dsh-session';
3
3
  import type { WorkspaceId } from '@deepseek-ai/dsh-workspace';
4
- import type { AgentTeamAddMemberRequest, AgentTeamAttachmentId, AgentTeamAgentMember, AgentTeamArchiveChannelRequest, AgentTeamArchiveChannelResult, AgentTeamArchiveMemberRequest, AgentTeamArchiveMemberResult, AgentTeamChangeScope, AgentTeamContextCheckpointRef, AgentTeamClaim, AgentTeamClaimList, AgentTeamClaimRequest, AgentTeamClaimResult, AgentTeamClaimRef, AgentTeamCreateChannelRequest, AgentTeamCreateChannelResult, AgentTeamDmRequest, AgentTeamDmResult, AgentTeamHumanActor, AgentTeamInbox, AgentTeamInboxRequest, AgentTeamInboxItem, AgentTeamJoinChannelRequest, AgentTeamJoinChannelResult, AgentTeamMemberActor, AgentTeamMemberId, AgentTeamOperation, AgentTeamOperationId, AgentTeamOperationReceipt, AgentTeamRemoveChannelMemberRequest, AgentTeamRemoveChannelMemberResult, AgentTeamJoinWorkspaceRequest, AgentTeamJoinWorkspaceResult, AgentTeamLeaveWorkspaceRequest, AgentTeamLeaveWorkspaceResult, AgentTeamRemoveMemberRequest, AgentTeamRemoveMemberResult, AgentTeamReplyRequest, AgentTeamReplyResult, AgentTeamRequestId, AgentTeamResolvedTaskRef, AgentTeamMessageAttachment, AgentTeamSendMessageRequest, AgentTeamSendMessageResult, AgentTeamSetMemberStateRequest, AgentTeamStatus, AgentTeamTask, AgentTeamTaskRequest, AgentTeamTaskResult, AgentTeamTaskRef, AgentTeamThreadAttentionRequest, AgentTeamThreadAttentionResult, AgentTeamThreadAttentionStatus, AgentTeamThreadHistory, AgentTeamThreadHistoryRequest, AgentTeamThreadReadFact, AgentTeamThreadReadData, AgentTeamThreadReadRequest, AgentTeamThreadReadResult, AgentTeamThreadReadSnapshot, AgentTeamThreadObservations, AgentTeamThreadObservationsRequest, AgentTeamThreadRef, AgentTeamPromoteThreadRequest, AgentTeamPromoteThreadResult, AgentTeamUpdateChannelRequest, AgentTeamUpdateChannelResult, AgentTeamUpdateMemberRequest, AgentTeamView, AgentTeamViewRequest } from './types.ts';
4
+ import type { AgentTeamAddMemberRequest, AgentTeamAttachmentId, AgentTeamAgentMember, AgentTeamArchiveChannelRequest, AgentTeamArchiveChannelResult, AgentTeamArchiveMemberRequest, AgentTeamArchiveMemberResult, AgentTeamChangeScope, AgentTeamContextCheckpointRef, AgentTeamClaim, AgentTeamClaimList, AgentTeamClaimRequest, AgentTeamClaimResult, AgentTeamClaimRef, AgentTeamCreateChannelRequest, AgentTeamCreateChannelResult, AgentTeamDmRequest, AgentTeamDmResult, AgentTeamHumanActor, AgentTeamInbox, AgentTeamInboxRequest, AgentTeamInboxItem, AgentTeamJoinChannelRequest, AgentTeamJoinChannelResult, AgentTeamMemberActor, AgentTeamMemberId, AgentTeamOperation, AgentTeamOperationId, AgentTeamOperationReceipt, AgentTeamRemoveChannelMemberRequest, AgentTeamRemoveChannelMemberResult, AgentTeamJoinWorkspaceRequest, AgentTeamJoinWorkspaceResult, AgentTeamLeaveWorkspaceRequest, AgentTeamLeaveWorkspaceResult, AgentTeamRemoveMemberRequest, AgentTeamRemoveMemberResult, AgentTeamReplyRequest, AgentTeamReplyResult, AgentTeamRequestId, AgentTeamResolvedTaskRef, AgentTeamResolvedThreadRef, AgentTeamMessageAttachment, AgentTeamSendMessageRequest, AgentTeamSendMessageResult, AgentTeamSetMemberStateRequest, AgentTeamStatus, AgentTeamTask, AgentTeamTaskRequest, AgentTeamTaskResult, AgentTeamTaskRef, AgentTeamThreadAttentionRequest, AgentTeamThreadAttentionResult, AgentTeamThreadAttentionStatus, AgentTeamThreadHistory, AgentTeamThreadHistoryRequest, AgentTeamThreadReadFact, AgentTeamThreadReadData, AgentTeamThreadReadRequest, AgentTeamThreadReadResult, AgentTeamThreadReadSnapshot, AgentTeamThreadObservations, AgentTeamThreadObservationsRequest, AgentTeamThreadRef, AgentTeamPromoteThreadRequest, AgentTeamPromoteThreadResult, AgentTeamUpdateChannelRequest, AgentTeamUpdateChannelResult, AgentTeamUpdateMemberRequest, AgentTeamView, AgentTeamViewRequest } from './types.ts';
5
5
  /** Stable Human Member identity shared by every replay of one dshHome Team. */
6
6
  export declare const AGENT_TEAM_HUMAN_MEMBER_ID: AgentTeamMemberId;
7
7
  /**
@@ -172,6 +172,13 @@ export declare class AgentTeamLedger {
172
172
  private readonly createOccurredAt;
173
173
  private readonly createRef;
174
174
  private operationTail;
175
+ /**
176
+ * Runtime human display name. Durable identity stays `member:human`; only
177
+ * the handle read by @ matching and handle-uniqueness follows this value.
178
+ * The Host syncs it from the `agent-team-human` settings namespace; the
179
+ * ledger never persists it, so a rename affects only later resolutions.
180
+ */
181
+ private humanHandle;
175
182
  /**
176
183
  * Head of the durable records the constructor's record-level replay
177
184
  * validated, adoptable once by the invariant mount. See `validateAtMount`.
@@ -190,6 +197,13 @@ export declare class AgentTeamLedger {
190
197
  */
191
198
  private projectionVersion;
192
199
  constructor(table: KvTable<AgentTeamOperationId, AgentTeamOperation>, options?: AgentTeamLedgerOptions);
200
+ /** Current human display name for @ matching and uniqueness checks. */
201
+ humanDisplayHandle(): string;
202
+ /**
203
+ * Sync the runtime human display name from Host settings. Never persisted:
204
+ * a rename affects only later @ resolutions and handle checks.
205
+ */
206
+ setHumanDisplayHandle(handle: string): void;
193
207
  initialize(request?: AgentTeamInitializeRequest): Promise<AgentTeamLedgerResult<AgentTeamOperationReceipt>>;
194
208
  createChannel(request: AgentTeamAuthorizedCreateChannelRequest): Promise<AgentTeamLedgerResult<AgentTeamCreateChannelResult>>;
195
209
  /** Human rename of one Channel's display facts; identity refs are immutable. */
@@ -341,7 +355,13 @@ export declare class AgentTeamLedger {
341
355
  * themselves through their raw id rather than as nobody.
342
356
  */
343
357
  private inboxActorFor;
344
- /** One Member as a row draws them: the id carries the identity hue, the handle the initial. */
358
+ /**
359
+ * One Member as a row draws them: the id carries the identity hue, the handle
360
+ * the initial. The Human is the one Member the Agent roster never holds, so
361
+ * their row reads the runtime display name rather than falling back to the
362
+ * durable `member:human` id — the same name every other seat and @ matching
363
+ * already use.
364
+ */
345
365
  private memberActor;
346
366
  /**
347
367
  * The people a Task still has on it, resolved the way a row draws them: owners
@@ -393,6 +413,8 @@ export declare class AgentTeamLedger {
393
413
  }): AgentTeamClaimList;
394
414
  getTask(taskRef: AgentTeamTaskRef): AgentTeamTask | undefined;
395
415
  getClaim(claimRef: AgentTeamClaimRef): AgentTeamClaim | undefined;
416
+ /** Navigation facts for message-body Thread refs; unknown refs are omitted. */
417
+ resolveThreadRefs(workspaceId: WorkspaceId, threadRefs: readonly AgentTeamThreadRef[]): AgentTeamResolvedThreadRef[];
396
418
  /** Navigation facts for message-body Task refs; unknown refs are omitted. */
397
419
  resolveTaskRefs(workspaceId: WorkspaceId, taskRefs: readonly AgentTeamTaskRef[]): AgentTeamResolvedTaskRef[];
398
420
  view(request: AgentTeamViewRequest, memberId?: AgentTeamMemberId): AgentTeamView;
@@ -671,6 +693,13 @@ export declare class AgentTeamLedger {
671
693
  * Channel plus the Human. A name outside this set stays prose, which is what
672
694
  * keeps an incidental name-drop from reaching someone the Channel cannot
673
695
  * deliver to.
696
+ *
697
+ * The Human is reachable under two names: the current display handle and the
698
+ * permanent `human` alias, so a rename never silently orphans `@human`
699
+ * (matching ignores case, and chips render the display name either way).
700
+ * The alias yields when another candidate already answers to it, so one
701
+ * written name never notifies two different Members; enrollment reserves the
702
+ * literal, so that yield only ever covers data predating the reservation.
674
703
  */
675
704
  private mentionCandidatesFor;
676
705
  /**