@zixt/host 0.0.41 → 0.0.43
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 +140 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ import { homedir } from "node:os";
|
|
|
31
31
|
// package.json
|
|
32
32
|
var package_default = {
|
|
33
33
|
name: "@zixt/host",
|
|
34
|
-
version: "0.0.
|
|
34
|
+
version: "0.0.43",
|
|
35
35
|
type: "module",
|
|
36
36
|
exports: {
|
|
37
37
|
".": "./src/client.ts",
|
|
@@ -14617,6 +14617,10 @@ var ID_PREFIXES = {
|
|
|
14617
14617
|
timer: "tmr",
|
|
14618
14618
|
event: "evt",
|
|
14619
14619
|
schedule: "sch",
|
|
14620
|
+
/** Organization-owned reusable AI-teammate skill. */
|
|
14621
|
+
orgSkill: "skl",
|
|
14622
|
+
/** Organization-owned reusable Automation routine. */
|
|
14623
|
+
orgRoutine: "rtn",
|
|
14620
14624
|
/** Slack workspace installation. */
|
|
14621
14625
|
slackInstallation: "sli",
|
|
14622
14626
|
/** Teammate <-> Slack account binding. */
|
|
@@ -14662,6 +14666,8 @@ var TaskHandoffId = idSchema(ID_PREFIXES.handoff, "task handoff id");
|
|
|
14662
14666
|
var ConnectionId = idSchema(ID_PREFIXES.connection, "connection id");
|
|
14663
14667
|
var ApprovalId = idSchema(ID_PREFIXES.approval, "approval id");
|
|
14664
14668
|
var ScheduleId = idSchema(ID_PREFIXES.schedule, "schedule id");
|
|
14669
|
+
var OrgSkillId = idSchema(ID_PREFIXES.orgSkill, "organization skill id");
|
|
14670
|
+
var OrgRoutineId = idSchema(ID_PREFIXES.orgRoutine, "organization routine id");
|
|
14665
14671
|
var BrowserSessionId = idSchema(ID_PREFIXES.browserSession, "browser session id");
|
|
14666
14672
|
var AttachmentId = idSchema(ID_PREFIXES.attachment, "attachment id");
|
|
14667
14673
|
var MemoryId = idSchema(ID_PREFIXES.memory, "memory id");
|
|
@@ -15017,6 +15023,128 @@ var LinearProviderTaskOrigin = external_exports.object({
|
|
|
15017
15023
|
bindingRevision: external_exports.number().int().min(1)
|
|
15018
15024
|
}).strict();
|
|
15019
15025
|
|
|
15026
|
+
// ../../packages/contracts/src/skills.ts
|
|
15027
|
+
var TeammateRoleTemplate = external_exports.enum([
|
|
15028
|
+
"developer",
|
|
15029
|
+
"marketing",
|
|
15030
|
+
"product",
|
|
15031
|
+
"sales",
|
|
15032
|
+
"custom"
|
|
15033
|
+
]);
|
|
15034
|
+
var SkillId = external_exports.enum([
|
|
15035
|
+
"implement-code",
|
|
15036
|
+
"review-code",
|
|
15037
|
+
"review-architecture",
|
|
15038
|
+
"review-security",
|
|
15039
|
+
"diagnose-root-cause",
|
|
15040
|
+
"design-tests",
|
|
15041
|
+
"review-ui-ux",
|
|
15042
|
+
"maintain-technical-docs",
|
|
15043
|
+
"assess-dependencies",
|
|
15044
|
+
"review-release-readiness",
|
|
15045
|
+
"coordinate-shared-work",
|
|
15046
|
+
"deliver-with-git",
|
|
15047
|
+
"verify-live-behavior",
|
|
15048
|
+
"evolve-contracts-and-data",
|
|
15049
|
+
"plan-campaigns",
|
|
15050
|
+
"create-content",
|
|
15051
|
+
"protect-brand-voice",
|
|
15052
|
+
"analyze-campaign-performance",
|
|
15053
|
+
"review-seo",
|
|
15054
|
+
"synthesize-market-signals",
|
|
15055
|
+
"maintain-editorial-plan",
|
|
15056
|
+
"triage-product-issues",
|
|
15057
|
+
"synthesize-user-feedback",
|
|
15058
|
+
"write-requirements",
|
|
15059
|
+
"prioritize-opportunities",
|
|
15060
|
+
"clarify-product-decisions",
|
|
15061
|
+
"review-product-quality",
|
|
15062
|
+
"analyze-product-metrics",
|
|
15063
|
+
"maintain-roadmap-context",
|
|
15064
|
+
"research-accounts",
|
|
15065
|
+
"prepare-meetings",
|
|
15066
|
+
"draft-sales-follow-ups",
|
|
15067
|
+
"maintain-crm-hygiene",
|
|
15068
|
+
"review-pipeline-risk",
|
|
15069
|
+
"identify-expansion-opportunities",
|
|
15070
|
+
"synthesize-customer-objections",
|
|
15071
|
+
"prepare-proposals"
|
|
15072
|
+
]);
|
|
15073
|
+
var SkillReferenceId = external_exports.union([SkillId, OrgSkillId]);
|
|
15074
|
+
var EnabledSkillIds = external_exports.array(SkillReferenceId).max(200).refine((items) => new Set(items).size === items.length, "duplicate skill").default([]);
|
|
15075
|
+
var SkillCategory = TeammateRoleTemplate;
|
|
15076
|
+
var OrgSkill = external_exports.object({
|
|
15077
|
+
id: OrgSkillId,
|
|
15078
|
+
orgId: OrgId,
|
|
15079
|
+
name: external_exports.string().trim().min(1).max(120),
|
|
15080
|
+
description: external_exports.string().trim().min(1).max(500),
|
|
15081
|
+
instructions: external_exports.string().trim().min(1).max(1e4),
|
|
15082
|
+
category: SkillCategory,
|
|
15083
|
+
clonedFrom: SkillReferenceId.nullable().default(null),
|
|
15084
|
+
createdAt: IsoDate,
|
|
15085
|
+
updatedAt: IsoDate
|
|
15086
|
+
});
|
|
15087
|
+
var CreateOrgSkillRequest = OrgSkill.pick({
|
|
15088
|
+
name: true,
|
|
15089
|
+
description: true,
|
|
15090
|
+
instructions: true,
|
|
15091
|
+
category: true,
|
|
15092
|
+
clonedFrom: true
|
|
15093
|
+
}).partial({ clonedFrom: true });
|
|
15094
|
+
var UpdateOrgSkillRequest = CreateOrgSkillRequest.omit({ clonedFrom: true }).partial().refine((value) => Object.keys(value).length > 0, "empty skill update");
|
|
15095
|
+
var ListOrgSkillsResponse = external_exports.object({ skills: external_exports.array(OrgSkill) });
|
|
15096
|
+
var RoutineTemplateCadence = external_exports.discriminatedUnion("kind", [
|
|
15097
|
+
external_exports.object({
|
|
15098
|
+
kind: external_exports.literal("daily"),
|
|
15099
|
+
hour: external_exports.number().int().min(0).max(23),
|
|
15100
|
+
minute: external_exports.number().int().min(0).max(59)
|
|
15101
|
+
}),
|
|
15102
|
+
external_exports.object({
|
|
15103
|
+
kind: external_exports.literal("weekly"),
|
|
15104
|
+
dayOfWeek: external_exports.number().int().min(0).max(6),
|
|
15105
|
+
hour: external_exports.number().int().min(0).max(23),
|
|
15106
|
+
minute: external_exports.number().int().min(0).max(59)
|
|
15107
|
+
})
|
|
15108
|
+
]);
|
|
15109
|
+
var RoutinePresetId = external_exports.enum([
|
|
15110
|
+
"developer-weekly-architecture-review",
|
|
15111
|
+
"developer-weekly-dependency-review",
|
|
15112
|
+
"developer-weekly-release-review",
|
|
15113
|
+
"product-daily-triage",
|
|
15114
|
+
"product-weekly-feedback-review",
|
|
15115
|
+
"product-weekly-roadmap-review",
|
|
15116
|
+
"marketing-weekly-campaign-review",
|
|
15117
|
+
"marketing-weekly-editorial-review",
|
|
15118
|
+
"sales-daily-follow-up-review",
|
|
15119
|
+
"sales-weekly-pipeline-review",
|
|
15120
|
+
"sales-weekly-objection-review"
|
|
15121
|
+
]);
|
|
15122
|
+
var RoutineTemplateReferenceId = external_exports.union([RoutinePresetId, OrgRoutineId]);
|
|
15123
|
+
var OrgRoutine = external_exports.object({
|
|
15124
|
+
id: OrgRoutineId,
|
|
15125
|
+
orgId: OrgId,
|
|
15126
|
+
name: external_exports.string().trim().min(1).max(120),
|
|
15127
|
+
description: external_exports.string().trim().min(1).max(500),
|
|
15128
|
+
instructions: external_exports.string().trim().min(1).max(1e5),
|
|
15129
|
+
category: SkillCategory,
|
|
15130
|
+
skillIds: external_exports.array(SkillReferenceId).max(50).default([]),
|
|
15131
|
+
localCadence: RoutineTemplateCadence,
|
|
15132
|
+
clonedFrom: RoutineTemplateReferenceId.nullable().default(null),
|
|
15133
|
+
createdAt: IsoDate,
|
|
15134
|
+
updatedAt: IsoDate
|
|
15135
|
+
});
|
|
15136
|
+
var CreateOrgRoutineRequest = OrgRoutine.pick({
|
|
15137
|
+
name: true,
|
|
15138
|
+
description: true,
|
|
15139
|
+
instructions: true,
|
|
15140
|
+
category: true,
|
|
15141
|
+
skillIds: true,
|
|
15142
|
+
localCadence: true,
|
|
15143
|
+
clonedFrom: true
|
|
15144
|
+
}).partial({ clonedFrom: true, skillIds: true });
|
|
15145
|
+
var UpdateOrgRoutineRequest = CreateOrgRoutineRequest.omit({ clonedFrom: true }).partial().refine((value) => Object.keys(value).length > 0, "empty routine update");
|
|
15146
|
+
var ListOrgRoutinesResponse = external_exports.object({ routines: external_exports.array(OrgRoutine) });
|
|
15147
|
+
|
|
15020
15148
|
// ../../packages/contracts/src/domain.ts
|
|
15021
15149
|
var IsoDate2 = external_exports.iso.datetime();
|
|
15022
15150
|
function isUnsafeDisplayCharacter(character) {
|
|
@@ -15183,6 +15311,10 @@ var Agent = external_exports.object({
|
|
|
15183
15311
|
instructions: external_exports.string().max(5e4).default(""),
|
|
15184
15312
|
/** Natural-language escalation behavior (AG-3). */
|
|
15185
15313
|
escalationInstructions: external_exports.string().max(1e4).default(""),
|
|
15314
|
+
/** Starter role used for recommended skills and Automations. */
|
|
15315
|
+
roleTemplate: TeammateRoleTemplate.default("custom"),
|
|
15316
|
+
/** Product-owned, runner-neutral skill modules included in every run. */
|
|
15317
|
+
enabledSkillIds: EnabledSkillIds,
|
|
15186
15318
|
/** Ordered working folders; first entry is the default (AG-1). */
|
|
15187
15319
|
workspaces: external_exports.array(AgentWorkspace).max(50).refine(
|
|
15188
15320
|
(items) => new Set(items.map((item) => item.path)).size === items.length,
|
|
@@ -15497,6 +15629,8 @@ var Schedule = external_exports.object({
|
|
|
15497
15629
|
agentId: AgentId,
|
|
15498
15630
|
name: external_exports.string().min(1).max(120),
|
|
15499
15631
|
instructions: external_exports.string().min(1).max(1e5),
|
|
15632
|
+
/** Reusable built-in or organization routine that created this row; null for one-off work. */
|
|
15633
|
+
presetId: RoutineTemplateReferenceId.nullable().default(null),
|
|
15500
15634
|
cadence: ScheduleCadence,
|
|
15501
15635
|
/** Exclusive occurrence cutoff. Null means the Automation never expires. */
|
|
15502
15636
|
endsAt: IsoDate.nullable().default(null),
|
|
@@ -15518,6 +15652,7 @@ var CreateScheduleRequest = external_exports.object({
|
|
|
15518
15652
|
agentId: AgentId,
|
|
15519
15653
|
name: Schedule.shape.name,
|
|
15520
15654
|
instructions: Schedule.shape.instructions,
|
|
15655
|
+
presetId: Schedule.shape.presetId.removeDefault().optional(),
|
|
15521
15656
|
cadence: ScheduleCadence,
|
|
15522
15657
|
endsAt: IsoDate.nullable().optional(),
|
|
15523
15658
|
requestedHostId: HostId.nullable().optional()
|
|
@@ -17691,6 +17826,8 @@ var CreateAgentRequest = external_exports.object({
|
|
|
17691
17826
|
roleDescription: external_exports.string().max(2e3).optional(),
|
|
17692
17827
|
instructions: external_exports.string().max(5e4).optional(),
|
|
17693
17828
|
escalationInstructions: external_exports.string().max(1e4).optional(),
|
|
17829
|
+
roleTemplate: Agent.shape.roleTemplate.removeDefault().optional(),
|
|
17830
|
+
enabledSkillIds: Agent.shape.enabledSkillIds.removeDefault().optional(),
|
|
17694
17831
|
/** Selected only from fresh usable Host workspace telemetry; [] is explicit no-repo/skip. */
|
|
17695
17832
|
workspaces: Agent.shape.workspaces.removeDefault().optional(),
|
|
17696
17833
|
requiredConnectionIds: Agent.shape.requiredConnectionIds.removeDefault().optional()
|
|
@@ -17700,6 +17837,8 @@ var UpdateAgentRequest = external_exports.object({
|
|
|
17700
17837
|
roleDescription: external_exports.string().max(2e3),
|
|
17701
17838
|
instructions: external_exports.string().max(5e4),
|
|
17702
17839
|
escalationInstructions: external_exports.string().max(1e4),
|
|
17840
|
+
roleTemplate: Agent.shape.roleTemplate.removeDefault(),
|
|
17841
|
+
enabledSkillIds: Agent.shape.enabledSkillIds.removeDefault(),
|
|
17703
17842
|
// Request fields must not inherit the domain projection defaults. A
|
|
17704
17843
|
// PATCH that omits either field means "leave unchanged", not "clear it".
|
|
17705
17844
|
workspaces: Agent.shape.workspaces.removeDefault(),
|