@zixt/host 0.0.141 → 0.0.142
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/dist/index.js +178 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28,7 +28,7 @@ import { homedir as homedir4 } from "node:os";
|
|
|
28
28
|
// package.json
|
|
29
29
|
var package_default = {
|
|
30
30
|
name: "@zixt/host",
|
|
31
|
-
version: "0.0.
|
|
31
|
+
version: "0.0.142",
|
|
32
32
|
type: "module",
|
|
33
33
|
exports: {
|
|
34
34
|
".": "./src/client.ts",
|
|
@@ -14713,7 +14713,11 @@ var ID_PREFIXES = {
|
|
|
14713
14713
|
/** One durable set of teammate-proposed Automations awaiting an Admin (OB-12). */
|
|
14714
14714
|
automationProposalSet: "aps",
|
|
14715
14715
|
/** One product-feedback report passed to the Zixt team (MG-23). */
|
|
14716
|
-
productFeedback: "pfb"
|
|
14716
|
+
productFeedback: "pfb",
|
|
14717
|
+
/** One shared company fact every teammate and the Manager read (CP-1). */
|
|
14718
|
+
companyProfileEntry: "cpe",
|
|
14719
|
+
/** A bounded, validated image of the organization's own logo (CP-3). */
|
|
14720
|
+
companyLogo: "clg"
|
|
14717
14721
|
};
|
|
14718
14722
|
var idPattern = (prefix) => new RegExp(`^${prefix}_[0-9a-f]{32}$`);
|
|
14719
14723
|
function newId(prefix) {
|
|
@@ -14752,6 +14756,11 @@ var TaskArtifactId = idSchema(ID_PREFIXES.artifact, "task artifact id");
|
|
|
14752
14756
|
var MemoryId = idSchema(ID_PREFIXES.memory, "memory id");
|
|
14753
14757
|
var ManagerId = idSchema(ID_PREFIXES.manager, "manager id");
|
|
14754
14758
|
var ManagerMemoryId = idSchema(ID_PREFIXES.managerMemory, "manager memory id");
|
|
14759
|
+
var CompanyProfileEntryId = idSchema(
|
|
14760
|
+
ID_PREFIXES.companyProfileEntry,
|
|
14761
|
+
"company profile entry id"
|
|
14762
|
+
);
|
|
14763
|
+
var CompanyLogoId = idSchema(ID_PREFIXES.companyLogo, "company logo id");
|
|
14755
14764
|
var ConversationId = idSchema(ID_PREFIXES.conversation, "conversation id");
|
|
14756
14765
|
var ConversationEventId = idSchema(ID_PREFIXES.conversationEvent, "conversation event id");
|
|
14757
14766
|
var ManagerIntegrationActionId = idSchema(
|
|
@@ -15799,6 +15808,87 @@ var Host = external_exports.object({
|
|
|
15799
15808
|
createdAt: IsoDate2
|
|
15800
15809
|
});
|
|
15801
15810
|
|
|
15811
|
+
// ../../packages/contracts/src/company-profile.ts
|
|
15812
|
+
var CompanyProfileSection = external_exports.enum([
|
|
15813
|
+
/** What the business is and what it sells. */
|
|
15814
|
+
"identity",
|
|
15815
|
+
/** Who it serves. */
|
|
15816
|
+
"customers",
|
|
15817
|
+
/** How the world reaches it: phone, addresses, inboxes, social accounts. */
|
|
15818
|
+
"contact",
|
|
15819
|
+
/** How it runs: hours, locations, timezone, languages, size. */
|
|
15820
|
+
"operating",
|
|
15821
|
+
/** How it sounds and looks: voice, naming, colors. */
|
|
15822
|
+
"brand",
|
|
15823
|
+
/** Who it competes with and what those competitors do (CP-4). */
|
|
15824
|
+
"market"
|
|
15825
|
+
]);
|
|
15826
|
+
var CompanyProfileSource = external_exports.enum([
|
|
15827
|
+
/** A person typed it, in settings or in the setup interview. */
|
|
15828
|
+
"person",
|
|
15829
|
+
/** The Manager kept it from a Conversation. */
|
|
15830
|
+
"manager",
|
|
15831
|
+
/** An AI teammate kept it during a Task. */
|
|
15832
|
+
"teammate",
|
|
15833
|
+
/** The company-setup interview recorded it from the answers. */
|
|
15834
|
+
"setup",
|
|
15835
|
+
/** Zixt read it on the web while researching the company's own site (CP-3). */
|
|
15836
|
+
"research"
|
|
15837
|
+
]);
|
|
15838
|
+
var CompanyProfileTrust = external_exports.enum(["internal", "external"]);
|
|
15839
|
+
var COMPANY_PROFILE_SUBJECT_MAX = 60;
|
|
15840
|
+
var COMPANY_PROFILE_TEXT_MAX = 300;
|
|
15841
|
+
var COMPANY_PROFILE_MAX_ENTRIES = 80;
|
|
15842
|
+
var COMPANY_PROFILE_SOURCE_URL_MAX = 500;
|
|
15843
|
+
var CompanyProfileEntry = external_exports.object({
|
|
15844
|
+
id: CompanyProfileEntryId,
|
|
15845
|
+
section: CompanyProfileSection,
|
|
15846
|
+
/** Short normalized topic; (section, subject) is the deduplication key. */
|
|
15847
|
+
subject: external_exports.string().trim().min(1).max(COMPANY_PROFILE_SUBJECT_MAX),
|
|
15848
|
+
text: external_exports.string().trim().min(1).max(COMPANY_PROFILE_TEXT_MAX),
|
|
15849
|
+
source: CompanyProfileSource,
|
|
15850
|
+
trust: CompanyProfileTrust,
|
|
15851
|
+
/** The AI teammate that wrote it, when a teammate did. */
|
|
15852
|
+
authorAgentId: AgentId.nullable(),
|
|
15853
|
+
/** The member whose authority the write carried, when a person's did. */
|
|
15854
|
+
authorMemberId: MemberId.nullable(),
|
|
15855
|
+
/** The page a research row came from, for the person checking it. */
|
|
15856
|
+
sourceUrl: external_exports.string().max(COMPANY_PROFILE_SOURCE_URL_MAX).nullable(),
|
|
15857
|
+
/**
|
|
15858
|
+
* A person read this row and said it is right. Confirming is what turns a
|
|
15859
|
+
* researched claim into an organization fact; it never rewrites the text,
|
|
15860
|
+
* so the trail from "found on the web" to "we agreed" stays readable.
|
|
15861
|
+
*/
|
|
15862
|
+
confirmedAt: IsoDate.nullable(),
|
|
15863
|
+
confirmedByMemberId: MemberId.nullable(),
|
|
15864
|
+
createdAt: IsoDate,
|
|
15865
|
+
updatedAt: IsoDate
|
|
15866
|
+
}).strict();
|
|
15867
|
+
var CompanyProfileHeader = external_exports.object({
|
|
15868
|
+
/** The company's own website, as the person gave it, normalized to https. */
|
|
15869
|
+
websiteUrl: external_exports.string().max(COMPANY_PROFILE_SOURCE_URL_MAX).nullable(),
|
|
15870
|
+
/** Verified image bytes Zixt stores itself; never a hotlink to their site. */
|
|
15871
|
+
logoAssetId: CompanyLogoId.nullable(),
|
|
15872
|
+
/** Where the logo was found, shown beside it so a person can check. */
|
|
15873
|
+
logoSourceUrl: external_exports.string().max(COMPANY_PROFILE_SOURCE_URL_MAX).nullable()
|
|
15874
|
+
}).strict();
|
|
15875
|
+
var CompanyProfileView = external_exports.object({
|
|
15876
|
+
header: CompanyProfileHeader,
|
|
15877
|
+
entries: external_exports.array(CompanyProfileEntry).max(COMPANY_PROFILE_MAX_ENTRIES),
|
|
15878
|
+
/** How many more rows this organization may keep before it must forget one. */
|
|
15879
|
+
remaining: external_exports.number().int().min(0),
|
|
15880
|
+
/** Members read the profile; Owners and Admins write it (ORG-2). */
|
|
15881
|
+
editable: external_exports.boolean()
|
|
15882
|
+
}).strict();
|
|
15883
|
+
var PutCompanyProfileEntryRequest = external_exports.object({
|
|
15884
|
+
section: CompanyProfileSection,
|
|
15885
|
+
subject: external_exports.string().trim().min(1).max(COMPANY_PROFILE_SUBJECT_MAX),
|
|
15886
|
+
text: external_exports.string().trim().min(1).max(COMPANY_PROFILE_TEXT_MAX)
|
|
15887
|
+
}).strict();
|
|
15888
|
+
var UpdateCompanyProfileHeaderRequest = external_exports.object({
|
|
15889
|
+
websiteUrl: external_exports.string().trim().max(COMPANY_PROFILE_SOURCE_URL_MAX).nullable()
|
|
15890
|
+
}).strict();
|
|
15891
|
+
|
|
15802
15892
|
// ../../packages/contracts/src/connections.ts
|
|
15803
15893
|
var McpTransport = external_exports.enum(["http", "sse"]);
|
|
15804
15894
|
var ConnectionAuthKind = external_exports.enum(["none", "bearer", "oauth"]);
|
|
@@ -18488,6 +18578,22 @@ var AgentOp = external_exports.union([
|
|
|
18488
18578
|
}),
|
|
18489
18579
|
/** Retract a memory that is wrong or stale; self-correction is the point. */
|
|
18490
18580
|
external_exports.object({ kind: external_exports.literal("memory.forget"), memoryId: MemoryId }),
|
|
18581
|
+
/**
|
|
18582
|
+
* Keep one fact about the organization itself in the shared Company profile
|
|
18583
|
+
* (CP-1). Unlike `memory.remember`, which is this teammate's own, every
|
|
18584
|
+
* teammate and the Manager read this one, so it takes no scope: a company
|
|
18585
|
+
* fact is not true on one Machine. The cloud fixes its trust from the run's
|
|
18586
|
+
* own origin, so a fact learned during externally-triggered work reaches the
|
|
18587
|
+
* rest of the team marked as such.
|
|
18588
|
+
*/
|
|
18589
|
+
external_exports.object({
|
|
18590
|
+
kind: external_exports.literal("company.note"),
|
|
18591
|
+
section: CompanyProfileSection,
|
|
18592
|
+
subject: external_exports.string().min(1).max(COMPANY_PROFILE_SUBJECT_MAX),
|
|
18593
|
+
text: external_exports.string().min(1).max(COMPANY_PROFILE_TEXT_MAX)
|
|
18594
|
+
}),
|
|
18595
|
+
/** Remove a company fact that is wrong or stale, by its id. */
|
|
18596
|
+
external_exports.object({ kind: external_exports.literal("company.forget"), entryId: CompanyProfileEntryId }),
|
|
18491
18597
|
/** The teammate's working-folder registry with per-Machine availability. */
|
|
18492
18598
|
external_exports.object({ kind: external_exports.literal("workspace.list") }),
|
|
18493
18599
|
/**
|
|
@@ -22476,6 +22582,7 @@ var InterviewTurn = InterviewQuestion.extend({
|
|
|
22476
22582
|
});
|
|
22477
22583
|
var InterviewSubject = external_exports.enum([
|
|
22478
22584
|
"business",
|
|
22585
|
+
"website",
|
|
22479
22586
|
"channels",
|
|
22480
22587
|
"tools",
|
|
22481
22588
|
"handoff",
|
|
@@ -22716,6 +22823,20 @@ var CompanySetupCheckIn = external_exports.object({
|
|
|
22716
22823
|
team: external_exports.array(CheckInTeammate).max(COMPANY_SETUP_MAX_CHECK_IN_TEAM),
|
|
22717
22824
|
connectedTools: external_exports.array(external_exports.object({ kind: CompanyToolKind, name: external_exports.string().trim().min(1).max(120) })).max(COMPANY_SETUP_MAX_CHECK_IN_TOOLS)
|
|
22718
22825
|
});
|
|
22826
|
+
var CompanySetupResearchState = external_exports.object({
|
|
22827
|
+
/** The site being read, normalized; null once cleared. */
|
|
22828
|
+
websiteUrl: external_exports.string().max(500).nullable(),
|
|
22829
|
+
startedAt: IsoDate,
|
|
22830
|
+
finishedAt: IsoDate.nullable(),
|
|
22831
|
+
/** Plain-language failure for the page; null while running or on success. */
|
|
22832
|
+
error: external_exports.string().max(300).nullable(),
|
|
22833
|
+
/** Company facts written into the profile by this pass. */
|
|
22834
|
+
factsFound: external_exports.number().int().min(0),
|
|
22835
|
+
/** Competitors written into the profile's market section (OB-15). */
|
|
22836
|
+
competitorsFound: external_exports.number().int().min(0),
|
|
22837
|
+
/** True once a logo image was verified and stored. */
|
|
22838
|
+
logoFound: external_exports.boolean()
|
|
22839
|
+
}).strict();
|
|
22719
22840
|
var CompanySetupView = external_exports.object({
|
|
22720
22841
|
id: CompanySetupId.nullable(),
|
|
22721
22842
|
orgId: OrgId,
|
|
@@ -22741,6 +22862,13 @@ var CompanySetupView = external_exports.object({
|
|
|
22741
22862
|
/** Oldest first; the planner's visible decisions so far. */
|
|
22742
22863
|
notes: external_exports.array(CompanySetupPlanningNote).max(COMPANY_SETUP_PLANNING_NOTES_MAX).default([])
|
|
22743
22864
|
}).nullable(),
|
|
22865
|
+
/**
|
|
22866
|
+
* Looking the company up from the website the person gave (OB-15). It runs
|
|
22867
|
+
* beside the interview rather than in front of it, so the person keeps
|
|
22868
|
+
* answering while Zixt reads; the page polls the same way it does for the
|
|
22869
|
+
* plan. A failure is reported and never blocks setup.
|
|
22870
|
+
*/
|
|
22871
|
+
research: CompanySetupResearchState.nullable(),
|
|
22744
22872
|
approval: CompanySetupApproval.nullable(),
|
|
22745
22873
|
steps: external_exports.array(CompanySetupStep),
|
|
22746
22874
|
progress: CompanySetupProgress,
|
|
@@ -39050,6 +39178,38 @@ var TOOLS = [
|
|
|
39050
39178
|
required: ["agent_id"]
|
|
39051
39179
|
}
|
|
39052
39180
|
},
|
|
39181
|
+
{
|
|
39182
|
+
name: "note_company_fact",
|
|
39183
|
+
description: "Keep one short fact about the organization you work for in the shared company profile, which every teammate and the manager read on every task: what the business does, who it serves, how customers reach it, how it operates, how it sounds, or who it competes with. Use it when you learn something durable about the business itself, and to correct a fact that is wrong - writing the same section and subject again replaces the earlier text. This is not your own memory: use remember for what you learned about a project or this machine, and this for what is true about the company.",
|
|
39184
|
+
inputSchema: {
|
|
39185
|
+
type: "object",
|
|
39186
|
+
properties: {
|
|
39187
|
+
section: {
|
|
39188
|
+
type: "string",
|
|
39189
|
+
enum: ["identity", "customers", "contact", "operating", "brand", "market"],
|
|
39190
|
+
description: "Which part of the company this fact is about."
|
|
39191
|
+
},
|
|
39192
|
+
subject: {
|
|
39193
|
+
type: "string",
|
|
39194
|
+
description: "A few words naming the topic; the same subject replaces the earlier fact."
|
|
39195
|
+
},
|
|
39196
|
+
text: {
|
|
39197
|
+
type: "string",
|
|
39198
|
+
description: "One short sentence a colleague could act on."
|
|
39199
|
+
}
|
|
39200
|
+
},
|
|
39201
|
+
required: ["section", "subject", "text"]
|
|
39202
|
+
}
|
|
39203
|
+
},
|
|
39204
|
+
{
|
|
39205
|
+
name: "forget_company_fact",
|
|
39206
|
+
description: "Remove one fact from the shared company profile by its id, because it stopped being true or was never true.",
|
|
39207
|
+
inputSchema: {
|
|
39208
|
+
type: "object",
|
|
39209
|
+
properties: { entry_id: { type: "string", description: "The company fact id." } },
|
|
39210
|
+
required: ["entry_id"]
|
|
39211
|
+
}
|
|
39212
|
+
},
|
|
39053
39213
|
{
|
|
39054
39214
|
name: "remember",
|
|
39055
39215
|
description: 'Keep one durable fact in your curated memory, injected into your future runs. Use when a person corrects you, states a lasting preference, or you learn a stable fact about a project or this machine (folder locations, installed tools, environment quirks). One short fact per memory. Scope "machine" marks a fact true only on the machine this run is on; "global" travels everywhere.',
|
|
@@ -39393,6 +39553,22 @@ function opFor(name, args) {
|
|
|
39393
39553
|
}
|
|
39394
39554
|
case "forget":
|
|
39395
39555
|
return { kind: "memory.forget", memoryId: str("memory_id") };
|
|
39556
|
+
case "note_company_fact": {
|
|
39557
|
+
const section = String(args["section"] ?? "");
|
|
39558
|
+
if (section !== "identity" && section !== "customers" && section !== "contact" && section !== "operating" && section !== "brand" && section !== "market") {
|
|
39559
|
+
throw new Error(
|
|
39560
|
+
"section must be identity, customers, contact, operating, brand, or market"
|
|
39561
|
+
);
|
|
39562
|
+
}
|
|
39563
|
+
return {
|
|
39564
|
+
kind: "company.note",
|
|
39565
|
+
section,
|
|
39566
|
+
subject: str("subject"),
|
|
39567
|
+
text: str("text")
|
|
39568
|
+
};
|
|
39569
|
+
}
|
|
39570
|
+
case "forget_company_fact":
|
|
39571
|
+
return { kind: "company.forget", entryId: str("entry_id") };
|
|
39396
39572
|
case "list_workspaces":
|
|
39397
39573
|
return { kind: "workspace.list" };
|
|
39398
39574
|
case "add_workspace":
|