Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

fix(teamhub-cli): describe the upper-bound timeline year in the profile schema

muterC2155d585e75c
diff --git a/apps/teamhub-cli/src/__snapshots__/cli.help-snapshot.test.ts.snap b/apps/teamhub-cli/src/__snapshots__/cli.help-snapshot.test.ts.snap
index 525f07a9..33f109bf 100644
--- a/apps/teamhub-cli/src/__snapshots__/cli.help-snapshot.test.ts.snap
+++ b/apps/teamhub-cli/src/__snapshots__/cli.help-snapshot.test.ts.snap
@@ -2485,7 +2485,7 @@ Acts on the Human who owns this Agent (AnotherMe only), never on another Human.
Prints the revision_id and the profile JSON document to edit; says so when the owner has no Personal Profile yet.
",
"schema": "exit 0
-{"command":["personal-profile","show"],"description":"Read the current Personal Profile document of the Human who owns this Agent.","read_only":true,"input_schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{},"additionalProperties":false,"description":"Read the Personal Profile of the Human who owns this Agent."},"output_schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"current":{"anyOf":[{"type":"object","properties":{"revision_id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9][A-Za-z0-9_-]*$","description":"Personal Profile revision ID."},"profile":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"The subject's name."},"background":{"type":"object","properties":{"overview":{"type":"string","maxLength":4000,"description":"Module overview paragraph; may be empty."},"points":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200,"description":"Short point title."},"text":{"type":"string","maxLength":4000,"description":"Point paragraph; may be empty when items exist."},"items":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000,"description":"One single-line fact."},"description":"Bullet facts; may be empty when text exists."}},"required":["title","text","items"],"additionalProperties":false,"description":"One topical point; needs text or at least one item."},"description":"Topical points of the module."},"timeline":{"maxItems":40,"type":"array","items":{"type":"object","properties":{"period":{"type":"string","minLength":1,"maxLength":100,"description":"Years only, never months: 2009–2013 when both years are known, 2019 when only the start year is known, –2013 when only the end year is known (also when a role only ended before a later one began), or Present for every ongoing role."},"organization":{"type":"string","minLength":1,"maxLength":200,"description":"School or organization."},"place":{"type":"string","maxLength":200,"description":"City; empty string when unknown."},"role":{"type":"string","maxLength":200,"description":"Role, degree or program; empty string when unknown."},"description":{"type":"string","maxLength":1000,"description":"One sentence on the work; empty string when unknown."},"details":{"maxItems":3,"type":"array","items":{"type":"string","minLength":1,"maxLength":500,"description":"One supported detail."},"description":"Up to three supported details."}},"required":["period","organization","place","role","description","details"],"additionalProperties":false,"description":"One education or work entry."},"description":"Education and work, oldest first."}},"required":["overview","points","timeline"],"additionalProperties":false,"description":"Background; needs an overview, a point or a timeline entry."},"communication_style":{"type":"object","properties":{"overview":{"type":"string","maxLength":4000,"description":"Module overview paragraph; may be empty."},"points":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200,"description":"Short point title."},"text":{"type":"string","maxLength":4000,"description":"Point paragraph; may be empty when items exist."},"items":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000,"description":"One single-line fact."},"description":"Bullet facts; may be empty when text exists."}},"required":["title","text","items"],"additionalProperties":false,"description":"One topical point; needs text or at least one item."},"description":"Topical points of the module."}},"required":["overview","points"],"additionalProperties":false,"description":"One module; needs an overview or at least one point."},"working_style":{"type":"object","properties":{"overview":{"type":"string","maxLength":4000,"description":"Module overview paragraph; may be empty."},"points":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200,"description":"Short point title."},"text":{"type":"string","maxLength":4000,"description":"Point paragraph; may be empty when items exist."},"items":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000,"description":"One single-line fact."},"description":"Bullet facts; may be empty when text exists."}},"required":["title","text","items"],"additionalProperties":false,"description":"One topical point; needs text or at least one item."},"description":"Topical points of the module."}},"required":["overview","points"],"additionalProperties":false,"description":"One module; needs an overview or at least one point."},"preferences":{"type":"object","properties":{"overview":{"type":"string","maxLength":4000,"description":"Module overview paragraph; may be empty."},"points":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200,"description":"Short point title."},"text":{"type":"string","maxLength":4000,"description":"Point paragraph; may be empty when items exist."},"items":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000,"description":"One single-line fact."},"description":"Bullet facts; may be empty when text exists."}},"required":["title","text","items"],"additionalProperties":false,"description":"One topical point; needs text or at least one item."},"description":"Topical points of the module."}},"required":["overview","points"],"additionalProperties":false,"description":"One module; needs an overview or at least one point."},"writing_style":{"type":"object","properties":{"overview":{"type":"string","maxLength":4000,"description":"Module overview paragraph; may be empty."},"points":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200,"description":"Short point title."},"text":{"type":"string","maxLength":4000,"description":"Point paragraph; may be empty when items exist."},"items":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000,"description":"One single-line fact."},"description":"Bullet facts; may be empty when text exists."}},"required":["title","text","items"],"additionalProperties":false,"description":"One topical point; needs text or at least one item."},"description":"Topical points of the module."}},"required":["overview","points"],"additionalProperties":false,"description":"One module; needs an overview or at least one point."}},"required":["name","background","communication_style","working_style","preferences","writing_style"],"additionalProperties":false,"description":"The complete structured Personal Profile. Text is plain: no line may start with #, and images and scripts are rejected. TeamHub renders the Markdown."},"markdown":{"type":"string","description":"The Markdown TeamHub rendered from profile; edit profile, not this."},"source_apps":{"description":"App keys recorded as evidence; absent when unknown.","maxItems":20,"type":"array","items":{"type":"string","description":"Connected app key."}},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\\\d\\\\d[2468][048]|\\\\d\\\\d[13579][26]|\\\\d\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\\\d|30)|(?:02)-(?:0[1-9]|1\\\\d|2[0-8])))T(?:(?:[01]\\\\d|2[0-3]):[0-5]\\\\d(?::[0-5]\\\\d(?:\\\\.\\\\d+)?)?(?:Z|([+-](?:[01]\\\\d|2[0-3]):[0-5]\\\\d)))$","description":"When this revision was created."}},"required":["revision_id","profile","markdown","created_at"],"additionalProperties":false,"description":"The current revision."},{"type":"null","description":"The owner has no Personal Profile yet."}],"description":"The owner's current Personal Profile revision."}},"required":["current"],"additionalProperties":false,"description":"The owner's current Personal Profile."},"cli":{"usage":["teamhub personal-profile show [flags]"],"arguments":[],"options":{"--json":{"description":"Return machine-readable JSON.","boolean":true},"--help":{"description":"Show this offline command reference.","boolean":true},"-h":{"description":"Show help.","boolean":true},"--schema":{"description":"Show offline input and output schemas.","boolean":true}},"notes":["Acts on the Human who owns this Agent (AnotherMe only), never on another Human.","Prints the revision_id and the profile JSON document to edit; says so when the owner has no Personal Profile yet."]}}
+{"command":["personal-profile","show"],"description":"Read the current Personal Profile document of the Human who owns this Agent.","read_only":true,"input_schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{},"additionalProperties":false,"description":"Read the Personal Profile of the Human who owns this Agent."},"output_schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"current":{"anyOf":[{"type":"object","properties":{"revision_id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9][A-Za-z0-9_-]*$","description":"Personal Profile revision ID."},"profile":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"The subject's name."},"background":{"type":"object","properties":{"overview":{"type":"string","maxLength":4000,"description":"Module overview paragraph; may be empty."},"points":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200,"description":"Short point title."},"text":{"type":"string","maxLength":4000,"description":"Point paragraph; may be empty when items exist."},"items":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000,"description":"One single-line fact."},"description":"Bullet facts; may be empty when text exists."}},"required":["title","text","items"],"additionalProperties":false,"description":"One topical point; needs text or at least one item."},"description":"Topical points of the module."},"timeline":{"maxItems":40,"type":"array","items":{"type":"object","properties":{"period":{"type":"string","minLength":1,"maxLength":100,"description":"Years only, never months: 2009–2013 when both years are known, 2019 when only the start year is known, –2013 when only the end year is known, ≤2013 when a later year only proves the entry was over by then (never copy one year onto several entries), or Present for every ongoing role."},"organization":{"type":"string","minLength":1,"maxLength":200,"description":"School or organization."},"place":{"type":"string","maxLength":200,"description":"City; empty string when unknown."},"role":{"type":"string","maxLength":200,"description":"Role, degree or program; empty string when unknown."},"description":{"type":"string","maxLength":1000,"description":"One sentence on the work; empty string when unknown."},"details":{"maxItems":3,"type":"array","items":{"type":"string","minLength":1,"maxLength":500,"description":"One supported detail."},"description":"Up to three supported details."}},"required":["period","organization","place","role","description","details"],"additionalProperties":false,"description":"One education or work entry."},"description":"Education and work, oldest first."}},"required":["overview","points","timeline"],"additionalProperties":false,"description":"Background; needs an overview, a point or a timeline entry."},"communication_style":{"type":"object","properties":{"overview":{"type":"string","maxLength":4000,"description":"Module overview paragraph; may be empty."},"points":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200,"description":"Short point title."},"text":{"type":"string","maxLength":4000,"description":"Point paragraph; may be empty when items exist."},"items":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000,"description":"One single-line fact."},"description":"Bullet facts; may be empty when text exists."}},"required":["title","text","items"],"additionalProperties":false,"description":"One topical point; needs text or at least one item."},"description":"Topical points of the module."}},"required":["overview","points"],"additionalProperties":false,"description":"One module; needs an overview or at least one point."},"working_style":{"type":"object","properties":{"overview":{"type":"string","maxLength":4000,"description":"Module overview paragraph; may be empty."},"points":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200,"description":"Short point title."},"text":{"type":"string","maxLength":4000,"description":"Point paragraph; may be empty when items exist."},"items":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000,"description":"One single-line fact."},"description":"Bullet facts; may be empty when text exists."}},"required":["title","text","items"],"additionalProperties":false,"description":"One topical point; needs text or at least one item."},"description":"Topical points of the module."}},"required":["overview","points"],"additionalProperties":false,"description":"One module; needs an overview or at least one point."},"preferences":{"type":"object","properties":{"overview":{"type":"string","maxLength":4000,"description":"Module overview paragraph; may be empty."},"points":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200,"description":"Short point title."},"text":{"type":"string","maxLength":4000,"description":"Point paragraph; may be empty when items exist."},"items":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000,"description":"One single-line fact."},"description":"Bullet facts; may be empty when text exists."}},"required":["title","text","items"],"additionalProperties":false,"description":"One topical point; needs text or at least one item."},"description":"Topical points of the module."}},"required":["overview","points"],"additionalProperties":false,"description":"One module; needs an overview or at least one point."},"writing_style":{"type":"object","properties":{"overview":{"type":"string","maxLength":4000,"description":"Module overview paragraph; may be empty."},"points":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200,"description":"Short point title."},"text":{"type":"string","maxLength":4000,"description":"Point paragraph; may be empty when items exist."},"items":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000,"description":"One single-line fact."},"description":"Bullet facts; may be empty when text exists."}},"required":["title","text","items"],"additionalProperties":false,"description":"One topical point; needs text or at least one item."},"description":"Topical points of the module."}},"required":["overview","points"],"additionalProperties":false,"description":"One module; needs an overview or at least one point."}},"required":["name","background","communication_style","working_style","preferences","writing_style"],"additionalProperties":false,"description":"The complete structured Personal Profile. Text is plain: no line may start with #, and images and scripts are rejected. TeamHub renders the Markdown."},"markdown":{"type":"string","description":"The Markdown TeamHub rendered from profile; edit profile, not this."},"source_apps":{"description":"App keys recorded as evidence; absent when unknown.","maxItems":20,"type":"array","items":{"type":"string","description":"Connected app key."}},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\\\d\\\\d[2468][048]|\\\\d\\\\d[13579][26]|\\\\d\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\\\d|30)|(?:02)-(?:0[1-9]|1\\\\d|2[0-8])))T(?:(?:[01]\\\\d|2[0-3]):[0-5]\\\\d(?::[0-5]\\\\d(?:\\\\.\\\\d+)?)?(?:Z|([+-](?:[01]\\\\d|2[0-3]):[0-5]\\\\d)))$","description":"When this revision was created."}},"required":["revision_id","profile","markdown","created_at"],"additionalProperties":false,"description":"The current revision."},{"type":"null","description":"The owner has no Personal Profile yet."}],"description":"The owner's current Personal Profile revision."}},"required":["current"],"additionalProperties":false,"description":"The owner's current Personal Profile."},"cli":{"usage":["teamhub personal-profile show [flags]"],"arguments":[],"options":{"--json":{"description":"Return machine-readable JSON.","boolean":true},"--help":{"description":"Show this offline command reference.","boolean":true},"-h":{"description":"Show help.","boolean":true},"--schema":{"description":"Show offline input and output schemas.","boolean":true}},"notes":["Acts on the Human who owns this Agent (AnotherMe only), never on another Human.","Prints the revision_id and the profile JSON document to edit; says so when the owner has no Personal Profile yet."]}}
",
},
"personal-profile start": {
@@ -2528,7 +2528,7 @@ TeamHub validates the document and renders its Markdown; profile_document_invali
A profile_revision_conflict means the Profile changed since you read it: show it again, merge, and write again.
",
"schema": "exit 0
-{"command":["personal-profile","write"],"description":"Replace the whole Personal Profile of the Human who owns this Agent with the given JSON document.","read_only":false,"input_schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"base_revision_id":{"description":"revision_id from show; omit only when show returned current: null.","type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9][A-Za-z0-9_-]*$"},"profile":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"The subject's name."},"background":{"type":"object","properties":{"overview":{"type":"string","maxLength":4000,"description":"Module overview paragraph; may be empty."},"points":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200,"description":"Short point title."},"text":{"type":"string","maxLength":4000,"description":"Point paragraph; may be empty when items exist."},"items":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000,"description":"One single-line fact."},"description":"Bullet facts; may be empty when text exists."}},"required":["title","text","items"],"additionalProperties":false,"description":"One topical point; needs text or at least one item."},"description":"Topical points of the module."},"timeline":{"maxItems":40,"type":"array","items":{"type":"object","properties":{"period":{"type":"string","minLength":1,"maxLength":100,"description":"Years only, never months: 2009–2013 when both years are known, 2019 when only the start year is known, –2013 when only the end year is known (also when a role only ended before a later one began), or Present for every ongoing role."},"organization":{"type":"string","minLength":1,"maxLength":200,"description":"School or organization."},"place":{"type":"string","maxLength":200,"description":"City; empty string when unknown."},"role":{"type":"string","maxLength":200,"description":"Role, degree or program; empty string when unknown."},"description":{"type":"string","maxLength":1000,"description":"One sentence on the work; empty string when unknown."},"details":{"maxItems":3,"type":"array","items":{"type":"string","minLength":1,"maxLength":500,"description":"One supported detail."},"description":"Up to three supported details."}},"required":["period","organization","place","role","description","details"],"additionalProperties":false,"description":"One education or work entry."},"description":"Education and work, oldest first."}},"required":["overview","points","timeline"],"additionalProperties":false,"description":"Background; needs an overview, a point or a timeline entry."},"communication_style":{"type":"object","properties":{"overview":{"type":"string","maxLength":4000,"description":"Module overview paragraph; may be empty."},"points":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200,"description":"Short point title."},"text":{"type":"string","maxLength":4000,"description":"Point paragraph; may be empty when items exist."},"items":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000,"description":"One single-line fact."},"description":"Bullet facts; may be empty when text exists."}},"required":["title","text","items"],"additionalProperties":false,"description":"One topical point; needs text or at least one item."},"description":"Topical points of the module."}},"required":["overview","points"],"additionalProperties":false,"description":"One module; needs an overview or at least one point."},"working_style":{"type":"object","properties":{"overview":{"type":"string","maxLength":4000,"description":"Module overview paragraph; may be empty."},"points":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200,"description":"Short point title."},"text":{"type":"string","maxLength":4000,"description":"Point paragraph; may be empty when items exist."},"items":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000,"description":"One single-line fact."},"description":"Bullet facts; may be empty when text exists."}},"required":["title","text","items"],"additionalProperties":false,"description":"One topical point; needs text or at least one item."},"description":"Topical points of the module."}},"required":["overview","points"],"additionalProperties":false,"description":"One module; needs an overview or at least one point."},"preferences":{"type":"object","properties":{"overview":{"type":"string","maxLength":4000,"description":"Module overview paragraph; may be empty."},"points":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200,"description":"Short point title."},"text":{"type":"string","maxLength":4000,"description":"Point paragraph; may be empty when items exist."},"items":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000,"description":"One single-line fact."},"description":"Bullet facts; may be empty when text exists."}},"required":["title","text","items"],"additionalProperties":false,"description":"One topical point; needs text or at least one item."},"description":"Topical points of the module."}},"required":["overview","points"],"additionalProperties":false,"description":"One module; needs an overview or at least one point."},"writing_style":{"type":"object","properties":{"overview":{"type":"string","maxLength":4000,"description":"Module overview paragraph; may be empty."},"points":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200,"description":"Short point title."},"text":{"type":"string","maxLength":4000,"description":"Point paragraph; may be empty when items exist."},"items":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000,"description":"One single-line fact."},"description":"Bullet facts; may be empty when text exists."}},"required":["title","text","items"],"additionalProperties":false,"description":"One topical point; needs text or at least one item."},"description":"Topical points of the module."}},"required":["overview","points"],"additionalProperties":false,"description":"One module; needs an overview or at least one point."}},"required":["name","background","communication_style","working_style","preferences","writing_style"],"additionalProperties":false,"description":"The complete structured Personal Profile. Text is plain: no line may start with #, and images and scripts are rejected. TeamHub renders the Markdown."},"source_apps":{"description":"All app keys actually used as evidence for the complete Profile; omit when unknown.","maxItems":20,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,119}$","description":"Connected app key."}}},"required":["profile"],"additionalProperties":false,"description":"Replace the owner's whole Personal Profile with this complete document."},"output_schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"revision_id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9][A-Za-z0-9_-]*$","description":"Personal Profile revision ID."},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\\\d\\\\d[2468][048]|\\\\d\\\\d[13579][26]|\\\\d\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\\\d|30)|(?:02)-(?:0[1-9]|1\\\\d|2[0-8])))T(?:(?:[01]\\\\d|2[0-3]):[0-5]\\\\d(?::[0-5]\\\\d(?:\\\\.\\\\d+)?)?(?:Z|([+-](?:[01]\\\\d|2[0-3]):[0-5]\\\\d)))$","description":"When this revision was created."}},"required":["revision_id","created_at"],"additionalProperties":false,"description":"The current revision after the write."},"cli":{"usage":["teamhub personal-profile write [flags]"],"arguments":[],"options":{"--base-revision":{"description":"revision_id from personal-profile show; omit only when show returned current: null."},"--source-app":{"description":"An app key actually used as evidence; repeat for each app.","repeatable":true},"--content":{"description":"Inline complete profile JSON document."},"--file":{"description":"Read the profile JSON document from a file or - for stdin."},"--json":{"description":"Return machine-readable JSON.","boolean":true},"--help":{"description":"Show this offline command reference.","boolean":true},"-h":{"description":"Show help.","boolean":true},"--schema":{"description":"Show offline input and output schemas.","boolean":true},"--operation-id":{"description":"Stable operation identity for recovery."}},"notes":["Acts on the Human who owns this Agent (AnotherMe only), never on another Human.","Run personal-profile show first, edit its profile JSON, write the complete document, and pass its revision_id as --base-revision.","TeamHub validates the document and renders its Markdown; profile_document_invalid and profile_module_empty name the rejected field.","A profile_revision_conflict means the Profile changed since you read it: show it again, merge, and write again."]}}
+{"command":["personal-profile","write"],"description":"Replace the whole Personal Profile of the Human who owns this Agent with the given JSON document.","read_only":false,"input_schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"base_revision_id":{"description":"revision_id from show; omit only when show returned current: null.","type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9][A-Za-z0-9_-]*$"},"profile":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"The subject's name."},"background":{"type":"object","properties":{"overview":{"type":"string","maxLength":4000,"description":"Module overview paragraph; may be empty."},"points":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200,"description":"Short point title."},"text":{"type":"string","maxLength":4000,"description":"Point paragraph; may be empty when items exist."},"items":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000,"description":"One single-line fact."},"description":"Bullet facts; may be empty when text exists."}},"required":["title","text","items"],"additionalProperties":false,"description":"One topical point; needs text or at least one item."},"description":"Topical points of the module."},"timeline":{"maxItems":40,"type":"array","items":{"type":"object","properties":{"period":{"type":"string","minLength":1,"maxLength":100,"description":"Years only, never months: 2009–2013 when both years are known, 2019 when only the start year is known, –2013 when only the end year is known, ≤2013 when a later year only proves the entry was over by then (never copy one year onto several entries), or Present for every ongoing role."},"organization":{"type":"string","minLength":1,"maxLength":200,"description":"School or organization."},"place":{"type":"string","maxLength":200,"description":"City; empty string when unknown."},"role":{"type":"string","maxLength":200,"description":"Role, degree or program; empty string when unknown."},"description":{"type":"string","maxLength":1000,"description":"One sentence on the work; empty string when unknown."},"details":{"maxItems":3,"type":"array","items":{"type":"string","minLength":1,"maxLength":500,"description":"One supported detail."},"description":"Up to three supported details."}},"required":["period","organization","place","role","description","details"],"additionalProperties":false,"description":"One education or work entry."},"description":"Education and work, oldest first."}},"required":["overview","points","timeline"],"additionalProperties":false,"description":"Background; needs an overview, a point or a timeline entry."},"communication_style":{"type":"object","properties":{"overview":{"type":"string","maxLength":4000,"description":"Module overview paragraph; may be empty."},"points":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200,"description":"Short point title."},"text":{"type":"string","maxLength":4000,"description":"Point paragraph; may be empty when items exist."},"items":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000,"description":"One single-line fact."},"description":"Bullet facts; may be empty when text exists."}},"required":["title","text","items"],"additionalProperties":false,"description":"One topical point; needs text or at least one item."},"description":"Topical points of the module."}},"required":["overview","points"],"additionalProperties":false,"description":"One module; needs an overview or at least one point."},"working_style":{"type":"object","properties":{"overview":{"type":"string","maxLength":4000,"description":"Module overview paragraph; may be empty."},"points":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200,"description":"Short point title."},"text":{"type":"string","maxLength":4000,"description":"Point paragraph; may be empty when items exist."},"items":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000,"description":"One single-line fact."},"description":"Bullet facts; may be empty when text exists."}},"required":["title","text","items"],"additionalProperties":false,"description":"One topical point; needs text or at least one item."},"description":"Topical points of the module."}},"required":["overview","points"],"additionalProperties":false,"description":"One module; needs an overview or at least one point."},"preferences":{"type":"object","properties":{"overview":{"type":"string","maxLength":4000,"description":"Module overview paragraph; may be empty."},"points":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200,"description":"Short point title."},"text":{"type":"string","maxLength":4000,"description":"Point paragraph; may be empty when items exist."},"items":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000,"description":"One single-line fact."},"description":"Bullet facts; may be empty when text exists."}},"required":["title","text","items"],"additionalProperties":false,"description":"One topical point; needs text or at least one item."},"description":"Topical points of the module."}},"required":["overview","points"],"additionalProperties":false,"description":"One module; needs an overview or at least one point."},"writing_style":{"type":"object","properties":{"overview":{"type":"string","maxLength":4000,"description":"Module overview paragraph; may be empty."},"points":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200,"description":"Short point title."},"text":{"type":"string","maxLength":4000,"description":"Point paragraph; may be empty when items exist."},"items":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000,"description":"One single-line fact."},"description":"Bullet facts; may be empty when text exists."}},"required":["title","text","items"],"additionalProperties":false,"description":"One topical point; needs text or at least one item."},"description":"Topical points of the module."}},"required":["overview","points"],"additionalProperties":false,"description":"One module; needs an overview or at least one point."}},"required":["name","background","communication_style","working_style","preferences","writing_style"],"additionalProperties":false,"description":"The complete structured Personal Profile. Text is plain: no line may start with #, and images and scripts are rejected. TeamHub renders the Markdown."},"source_apps":{"description":"All app keys actually used as evidence for the complete Profile; omit when unknown.","maxItems":20,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,119}$","description":"Connected app key."}}},"required":["profile"],"additionalProperties":false,"description":"Replace the owner's whole Personal Profile with this complete document."},"output_schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"revision_id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9][A-Za-z0-9_-]*$","description":"Personal Profile revision ID."},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\\\d\\\\d[2468][048]|\\\\d\\\\d[13579][26]|\\\\d\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\\\d|30)|(?:02)-(?:0[1-9]|1\\\\d|2[0-8])))T(?:(?:[01]\\\\d|2[0-3]):[0-5]\\\\d(?::[0-5]\\\\d(?:\\\\.\\\\d+)?)?(?:Z|([+-](?:[01]\\\\d|2[0-3]):[0-5]\\\\d)))$","description":"When this revision was created."}},"required":["revision_id","created_at"],"additionalProperties":false,"description":"The current revision after the write."},"cli":{"usage":["teamhub personal-profile write [flags]"],"arguments":[],"options":{"--base-revision":{"description":"revision_id from personal-profile show; omit only when show returned current: null."},"--source-app":{"description":"An app key actually used as evidence; repeat for each app.","repeatable":true},"--content":{"description":"Inline complete profile JSON document."},"--file":{"description":"Read the profile JSON document from a file or - for stdin."},"--json":{"description":"Return machine-readable JSON.","boolean":true},"--help":{"description":"Show this offline command reference.","boolean":true},"-h":{"description":"Show help.","boolean":true},"--schema":{"description":"Show offline input and output schemas.","boolean":true},"--operation-id":{"description":"Stable operation identity for recovery."}},"notes":["Acts on the Human who owns this Agent (AnotherMe only), never on another Human.","Run personal-profile show first, edit its profile JSON, write the complete document, and pass its revision_id as --base-revision.","TeamHub validates the document and renders its Markdown; profile_document_invalid and profile_module_empty name the rejected field.","A profile_revision_conflict means the Profile changed since you read it: show it again, merge, and write again."]}}
",
},
"profile skill publish": {
diff --git a/apps/teamhub-cli/src/domains/knowledge/tools/personal-profile.ts b/apps/teamhub-cli/src/domains/knowledge/tools/personal-profile.ts
index aa5c5b89..c9ba4de4 100644
--- a/apps/teamhub-cli/src/domains/knowledge/tools/personal-profile.ts
+++ b/apps/teamhub-cli/src/domains/knowledge/tools/personal-profile.ts
@@ -39,7 +39,7 @@ const timelineEntry = z
.min(1)
.max(100)
.describe(
- "Years only, never months: 2009–2013 when both years are known, 2019 when only the start year is known, –2013 when only the end year is known (also when a role only ended before a later one began), or Present for every ongoing role.",
+ "Years only, never months: 2009–2013 when both years are known, 2019 when only the start year is known, –2013 when only the end year is known, ≤2013 when a later year only proves the entry was over by then (never copy one year onto several entries), or Present for every ongoing role.",
),
organization: z
.string()
diff --git a/apps/web/src/features/wiki/wiki-directory.test.tsx b/apps/web/src/features/wiki/wiki-directory.test.tsx
index 4ec678a7..09519165 100644
--- a/apps/web/src/features/wiki/wiki-directory.test.tsx
+++ b/apps/web/src/features/wiki/wiki-directory.test.tsx
@@ -287,6 +287,44 @@ describe("Wiki directory", () => {
Node.DOCUMENT_POSITION_FOLLOWING,
).toBeTruthy();
});
+ it("sorts an upper-bound year as an end year in the timeline", async () => {
+ const entry = (period: string, organization: string) => ({
+ period,
+ organization,
+ place: "",
+ role: "",
+ description: "",
+ details: [],
+ });
+ await setup(
+ "/t/tenant-northstar/library/wiki/profile",
+ profileDocument({
+ background: {
+ overview: "Avery leads research.",
+ points: [],
+ timeline: [
+ entry("2020", "Example Co"),
+ entry("\u22642020", "Example Lab"),
+ entry("\u20132018", "Example University"),
+ ],
+ },
+ }),
+ );
+ const content = await screen.findByRole("article", {
+ name: "Profile content",
+ });
+ const timeline = await within(content).findByRole("list", {
+ name: "Timeline",
+ });
+ const entries = [
+ ...timeline.querySelectorAll(".wiki-profile-timeline-entry"),
+ ].map((item) => item.textContent);
+ expect(entries).toEqual([
+ "\u20132018Example University",
+ "\u22642020Example Lab",
+ "2020Example Co",
+ ]);
+ });
it("says the Profile is being written while an Agent builds it", async () => {
await setup(
"/t/tenant-northstar/library/wiki",