@zixt/host 0.0.56 → 0.0.57
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 +66 -2
- 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.57",
|
|
35
35
|
type: "module",
|
|
36
36
|
exports: {
|
|
37
37
|
".": "./src/client.ts",
|
|
@@ -16232,6 +16232,68 @@ var TaskEventRecord = external_exports.object({
|
|
|
16232
16232
|
attachments: external_exports.array(TaskAttachmentRef).max(TASK_MESSAGE_MAX_ATTACHMENTS).optional(),
|
|
16233
16233
|
at: IsoDate
|
|
16234
16234
|
});
|
|
16235
|
+
var TaskTimingPhaseKind = external_exports.enum([
|
|
16236
|
+
/** Waiting for a Machine: queue, dispatch, and re-queue between runs. */
|
|
16237
|
+
"queued",
|
|
16238
|
+
/** Assigned to a Machine, session not started yet. */
|
|
16239
|
+
"startup",
|
|
16240
|
+
/** Preparing the environment: dependencies, folders, tools, services. */
|
|
16241
|
+
"setup",
|
|
16242
|
+
/** Reading, searching, and browsing to find things out. */
|
|
16243
|
+
"research",
|
|
16244
|
+
/** Doing the Task's actual work: edits, writes, configuration, other tools. */
|
|
16245
|
+
"work",
|
|
16246
|
+
/** Running checks: tests, builds, linters, verification. */
|
|
16247
|
+
"validation",
|
|
16248
|
+
/** Work that happened after checks had already started in the same run. */
|
|
16249
|
+
"rework",
|
|
16250
|
+
/** Reporting and handing off the result: messages, pull requests, files. */
|
|
16251
|
+
"delivery",
|
|
16252
|
+
/** Parked on a question or an approval a person owed. */
|
|
16253
|
+
"awaiting_person",
|
|
16254
|
+
/** Nothing was running: the Task sat between runs with no one waiting on it. */
|
|
16255
|
+
"idle",
|
|
16256
|
+
/** Measured time the Task's activity record cannot break down. */
|
|
16257
|
+
"unattributed"
|
|
16258
|
+
]);
|
|
16259
|
+
var TaskTimingBasis = external_exports.enum(["measured", "estimated"]);
|
|
16260
|
+
var TaskTimingPhase = external_exports.object({
|
|
16261
|
+
kind: TaskTimingPhaseKind,
|
|
16262
|
+
durationMs: external_exports.number().int().min(0),
|
|
16263
|
+
basis: TaskTimingBasis,
|
|
16264
|
+
/** Activity steps behind an estimated phase; 0 for measured lifecycle phases. */
|
|
16265
|
+
steps: external_exports.number().int().min(0)
|
|
16266
|
+
}).strict();
|
|
16267
|
+
var TaskTimingRun = external_exports.object({
|
|
16268
|
+
epoch: external_exports.number().int().min(1),
|
|
16269
|
+
status: TaskStatus,
|
|
16270
|
+
startedAt: IsoDate.nullable(),
|
|
16271
|
+
finishedAt: IsoDate.nullable(),
|
|
16272
|
+
/** Waiting for this run's Machine, including re-queue after an earlier run. */
|
|
16273
|
+
waitingMs: external_exports.number().int().min(0),
|
|
16274
|
+
activeMs: external_exports.number().int().min(0),
|
|
16275
|
+
unattributedMs: external_exports.number().int().min(0)
|
|
16276
|
+
}).strict();
|
|
16277
|
+
var TASK_TIMING_MAX_RUNS = 50;
|
|
16278
|
+
var TaskTimingBreakdown = external_exports.object({
|
|
16279
|
+
schemaVersion: external_exports.literal(1),
|
|
16280
|
+
from: IsoDate,
|
|
16281
|
+
to: IsoDate,
|
|
16282
|
+
totalElapsedMs: external_exports.number().int().min(0),
|
|
16283
|
+
/** Time a Machine was running the Task, broken down or not. */
|
|
16284
|
+
activeMs: external_exports.number().int().min(0),
|
|
16285
|
+
/** Queue, startup, approval, and idle time: nothing was being worked on. */
|
|
16286
|
+
waitingMs: external_exports.number().int().min(0),
|
|
16287
|
+
/** Active time the activity record cannot name. */
|
|
16288
|
+
unattributedMs: external_exports.number().int().min(0),
|
|
16289
|
+
runCount: external_exports.number().int().min(0),
|
|
16290
|
+
/** False while the Task can still accrue time; the breakdown is then a snapshot. */
|
|
16291
|
+
settled: external_exports.boolean(),
|
|
16292
|
+
/** True once at least one estimated phase carries time worth showing. */
|
|
16293
|
+
attributed: external_exports.boolean(),
|
|
16294
|
+
phases: external_exports.array(TaskTimingPhase),
|
|
16295
|
+
runs: external_exports.array(TaskTimingRun).max(TASK_TIMING_MAX_RUNS)
|
|
16296
|
+
}).strict();
|
|
16235
16297
|
var CreateTaskInput = external_exports.object({
|
|
16236
16298
|
/** Stable client-generated key: retrying the same submission returns one Task. */
|
|
16237
16299
|
requestId: external_exports.uuid().optional(),
|
|
@@ -16491,7 +16553,9 @@ var TaskDetailResponse = external_exports.object({
|
|
|
16491
16553
|
reviewAuthorization: TaskReviewAuthorization,
|
|
16492
16554
|
context: TaskResolvedContext,
|
|
16493
16555
|
/** Newest host-observed folder/Git state; null until a current Host reports it. */
|
|
16494
|
-
workingContext: TaskWorkingContext.nullable().default(null)
|
|
16556
|
+
workingContext: TaskWorkingContext.nullable().default(null),
|
|
16557
|
+
/** TS-19 timing breakdown; null when the Task has no usable timing evidence. */
|
|
16558
|
+
timing: TaskTimingBreakdown.nullable().default(null)
|
|
16495
16559
|
});
|
|
16496
16560
|
var TaskSupportBundle = external_exports.object({
|
|
16497
16561
|
schemaVersion: external_exports.literal(1),
|