@xrkseek/harness-cli 0.1.1 → 0.1.2

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 (36) hide show
  1. package/README.md +1 -1
  2. package/dist/port.d.ts.map +1 -1
  3. package/dist/port.js +1 -0
  4. package/dist/port.js.map +1 -1
  5. package/package.json +3 -2
  6. package/product-web/boot.json +1 -1
  7. package/product-web/plugins/@xrkseek/client-connection/client.js +1276 -326
  8. package/product-web/plugins/@xrkseek/client-locale/client.js +3 -3
  9. package/product-web/plugins/@xrkseek/client-runtime/client.js +22 -19
  10. package/product-web/plugins/@xrkseek/client-ui-agent-preset/client.js +36 -36
  11. package/product-web/plugins/@xrkseek/client-ui-attachment/client.js +10 -10
  12. package/product-web/plugins/@xrkseek/client-ui-commands/client.js +8 -8
  13. package/product-web/plugins/@xrkseek/client-ui-conversation/client.js +165 -165
  14. package/product-web/plugins/@xrkseek/client-ui-deliverables/client.js +4 -4
  15. package/product-web/plugins/@xrkseek/client-ui-directory-picker-browse/client.js +29 -29
  16. package/product-web/plugins/@xrkseek/client-ui-goal/client.js +8 -8
  17. package/product-web/plugins/@xrkseek/client-ui-input-trigger/client.js +6 -6
  18. package/product-web/plugins/@xrkseek/client-ui-jobs/client.js +8 -8
  19. package/product-web/plugins/@xrkseek/client-ui-layout/client.js +2 -2
  20. package/product-web/plugins/@xrkseek/client-ui-message-feedback/client.js +4 -4
  21. package/product-web/plugins/@xrkseek/client-ui-model-selection/client.js +17 -17
  22. package/product-web/plugins/@xrkseek/client-ui-permission-presets/client.js +3 -3
  23. package/product-web/plugins/@xrkseek/client-ui-plan/client.js +3 -3
  24. package/product-web/plugins/@xrkseek/client-ui-settings-general/client.js +16 -16
  25. package/product-web/plugins/@xrkseek/client-ui-settings-models/client.js +53 -53
  26. package/product-web/plugins/@xrkseek/client-ui-settings-plugin-inventory/client.js +12 -12
  27. package/product-web/plugins/@xrkseek/client-ui-settings-plugins/client.js +46 -46
  28. package/product-web/plugins/@xrkseek/client-ui-sidebar/client.js +14 -14
  29. package/product-web/plugins/@xrkseek/client-ui-skill/client.js +11 -11
  30. package/product-web/plugins/@xrkseek/client-ui-subagent/client.js +22 -22
  31. package/product-web/plugins/@xrkseek/client-ui-theme/client.js +3 -3
  32. package/product-web/plugins/@xrkseek/client-ui-tool/client.js +36 -36
  33. package/product-web/plugins/@xrkseek/client-ui-trajectory/client.js +141 -141
  34. package/product-web/plugins/@xrkseek/client-ui-user-questions/client.js +27 -27
  35. package/product-web/plugins/@xrkseek/client-ui-workflow-run/client.js +15 -15
  36. package/product-web/plugins/@xrkseek/client-ui-workspace/client.js +51 -51
@@ -884,11 +884,11 @@ window.__ModuleLoader__.load({
884
884
  document.head.appendChild(tag);
885
885
  }
886
886
  var LanguageRow_module_css_default = {
887
- "chevron": "jLfXEq_chevron",
888
- "rowText": "jLfXEq_rowText",
889
887
  "title": "jLfXEq_title",
888
+ "rowText": "jLfXEq_rowText",
889
+ "row": "jLfXEq_row",
890
890
  "selector": "jLfXEq_selector",
891
- "row": "jLfXEq_row"
891
+ "chevron": "jLfXEq_chevron"
892
892
  };
893
893
  //#endregion
894
894
  //#region src/client/LanguageRow.tsx
@@ -6,7 +6,6 @@ window.__ModuleLoader__.load({
6
6
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
7
7
  let _xrkseek_cordis = require("@xrkseek/cordis");
8
8
  let _xrkseek_client_ui_slots = require("@xrkseek/client-ui-slots");
9
- let _xrkseek_xrk_llm_message = require("@xrkseek/xrk-llm/message");
10
9
  //#region src/client/slots.ts
11
10
  /**
12
11
  * SlotRegistry: the cordis Service layer of the slot system over the pure
@@ -334,7 +333,7 @@ window.__ModuleLoader__.load({
334
333
  return this.ctx.effect(() => this["_register"](options, component), "slots.register()");
335
334
  };
336
335
  //#endregion
337
- //#region ../../stubs/xrk-host-apiproxy/lib/types/api/rpc.js
336
+ //#region ../../stubs/xrk-host-apiproxy/src/api/rpc.ts
338
337
  /**
339
338
  * Fold a transport exception into the RpcResult error branch (unified error
340
339
  * API; 'internal' as the catch-all code). Lives with RpcResult so every
@@ -4449,7 +4448,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4449
4448
  return /* @__PURE__ */ _superRefine(fn, params);
4450
4449
  }
4451
4450
  //#endregion
4452
- //#region ../../stubs/xrk-host-apiproxy/lib/types/api/rpc.schema.js
4451
+ //#region ../../stubs/xrk-host-apiproxy/src/api/rpc.schema.ts
4453
4452
  /**
4454
4453
  * Message-layer zod schemas: the four wire full forms + error body +
4455
4454
  * carrier receipt. The payload slot is unknown in the full-form schemas — business payloads
@@ -10236,16 +10235,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10236
10235
  }
10237
10236
  };
10238
10237
  //#endregion
10239
- //#region ../../stubs/xrk-session/lib/types/surface.js
10240
- /**
10241
- * Surface layer on top of the session event log: an ordered view of events
10242
- * that produce LLM messages. The append-only log remains the source of truth.
10243
- *
10244
- * Browser-safe: web clients consume this subpath export, so it must stay free
10245
- * of `node:` imports (they break the vite bundle).
10246
- *
10247
- * @module @xrkseek/xrk-session/surface
10248
- */
10238
+ //#region ../../stubs/xrk-session/src/surface.ts
10249
10239
  /** Runtime counterpart of the message-producing event union. */
10250
10240
  const SURFACE_EVENT_TYPES = /* @__PURE__ */ new Set([
10251
10241
  "user/message",
@@ -10359,6 +10349,24 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10359
10349
  }
10360
10350
  }
10361
10351
  //#endregion
10352
+ //#region ../../stubs/xrk-llm/src/message.ts
10353
+ /**
10354
+ * Whether a stream chunk carries visible model output (the first-token
10355
+ * boundary shared by client step timing and the whole-log sessionStats
10356
+ * projection). Empty deltas (heartbeats, empty tool-call frames) do not count
10357
+ * as a first token.
10358
+ * @param chunk - the stream chunk to test.
10359
+ * @returns true when the chunk contains a non-empty text/reasoning/tool delta.
10360
+ */
10361
+ function isTokenDelta(chunk) {
10362
+ switch (chunk.type) {
10363
+ case "text-delta":
10364
+ case "reasoning-delta": return chunk.text !== "";
10365
+ case "tool-call-delta": return chunk.argumentsDelta !== "" || chunk.name !== void 0;
10366
+ default: return false;
10367
+ }
10368
+ }
10369
+ //#endregion
10362
10370
  //#region src/client/sessions/context-provenance.ts
10363
10371
  /** One durable source narrowed to the readable-record shape; null for anything else. */
10364
10372
  function asRecord(value) {
@@ -10541,12 +10549,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10541
10549
  exports.inject = inject;
10542
10550
  exports.isAppendSurfaceEvent = isAppendSurfaceEvent;
10543
10551
  exports.isReplacementSurfaceEvent = isReplacementSurfaceEvent;
10544
- Object.defineProperty(exports, "isTokenDelta", {
10545
- enumerable: true,
10546
- get: function() {
10547
- return _xrkseek_xrk_llm_message.isTokenDelta;
10548
- }
10549
- });
10552
+ exports.isTokenDelta = isTokenDelta;
10550
10553
  exports.resolveWorkspacePath = resolveWorkspacePath;
10551
10554
  exports.scopeOf = scopeOf;
10552
10555
  exports.shallowEqual = shallowEqual;
@@ -250,12 +250,12 @@ window.__ModuleLoader__.load({
250
250
  document.head.appendChild(tag);
251
251
  }
252
252
  var AgentPresetRow_module_css_default = {
253
+ "row": "LQ3tzG_row",
253
254
  "selector": "LQ3tzG_selector",
254
- "chevron": "LQ3tzG_chevron",
255
- "rowText": "LQ3tzG_rowText",
256
255
  "title": "LQ3tzG_title",
257
- "row": "LQ3tzG_row",
258
- "desc": "LQ3tzG_desc"
256
+ "chevron": "LQ3tzG_chevron",
257
+ "desc": "LQ3tzG_desc",
258
+ "rowText": "LQ3tzG_rowText"
259
259
  };
260
260
  //#endregion
261
261
  //#region src/client/AgentPresetRow.tsx
@@ -325,17 +325,17 @@ window.__ModuleLoader__.load({
325
325
  document.head.appendChild(tag);
326
326
  }
327
327
  var AgentPresetSeat_module_css_default = {
328
- "chevron": "MwdynW_chevron",
329
- "item": "MwdynW_item",
330
- "itemDesc": "MwdynW_itemDesc",
328
+ "seatIcon": "MwdynW_seatIcon",
329
+ "introChar": "MwdynW_introChar",
331
330
  "introIcon": "MwdynW_introIcon",
332
331
  "introText": "MwdynW_introText",
333
332
  "seat": "MwdynW_seat",
334
- "itemName": "MwdynW_itemName",
333
+ "chevron": "MwdynW_chevron",
334
+ "item": "MwdynW_item",
335
+ "itemDesc": "MwdynW_itemDesc",
335
336
  "seat-char-in": "MwdynW_seat-char-in",
336
- "introChar": "MwdynW_introChar",
337
- "seatIcon": "MwdynW_seatIcon",
338
- "seat-icon-in": "MwdynW_seat-icon-in"
337
+ "seat-icon-in": "MwdynW_seat-icon-in",
338
+ "itemName": "MwdynW_itemName"
339
339
  };
340
340
  //#endregion
341
341
  //#region src/client/AgentPresetSeat.tsx
@@ -943,40 +943,40 @@ window.__ModuleLoader__.load({
943
943
  document.head.appendChild(tag);
944
944
  }
945
945
  var AgentPresetSection_module_css_default = {
946
+ "intro": "OFEzwG_intro",
947
+ "deleteConfirm": "OFEzwG_deleteConfirm",
948
+ "dialog": "OFEzwG_dialog",
949
+ "cards": "OFEzwG_cards",
950
+ "revealedPath": "OFEzwG_revealedPath",
951
+ "input": "OFEzwG_input",
952
+ "cardActive": "OFEzwG_cardActive",
953
+ "brokenBadge": "OFEzwG_brokenBadge",
954
+ "inUse": "OFEzwG_inUse",
955
+ "cardDesc": "OFEzwG_cardDesc",
956
+ "secondaryButton": "OFEzwG_secondaryButton",
957
+ "fieldLabel": "OFEzwG_fieldLabel",
958
+ "iconDanger": "OFEzwG_iconDanger",
946
959
  "cardBrokenReason": "OFEzwG_cardBrokenReason",
947
960
  "cardHead": "OFEzwG_cardHead",
948
- "cardName": "OFEzwG_cardName",
949
- "iconDanger": "OFEzwG_iconDanger",
950
- "input": "OFEzwG_input",
961
+ "cardFoot": "OFEzwG_cardFoot",
962
+ "iconButton": "OFEzwG_iconButton",
951
963
  "deleteDialog": "OFEzwG_deleteDialog",
952
- "group": "OFEzwG_group",
964
+ "cardMain": "OFEzwG_cardMain",
965
+ "cardBroken": "OFEzwG_cardBroken",
966
+ "revealedPathLabel": "OFEzwG_revealedPathLabel",
953
967
  "viewerCode": "OFEzwG_viewerCode",
968
+ "card": "OFEzwG_card",
969
+ "section": "OFEzwG_section",
970
+ "dialogFields": "OFEzwG_dialogFields",
971
+ "error": "OFEzwG_error",
972
+ "group": "OFEzwG_group",
954
973
  "badge": "OFEzwG_badge",
955
974
  "cardId": "OFEzwG_cardId",
956
975
  "creatorButton": "OFEzwG_creatorButton",
957
- "cardActive": "OFEzwG_cardActive",
958
- "error": "OFEzwG_error",
959
- "intro": "OFEzwG_intro",
960
976
  "field": "OFEzwG_field",
961
977
  "groupHead": "OFEzwG_groupHead",
962
- "revealedPathLabel": "OFEzwG_revealedPathLabel",
963
- "brokenBadge": "OFEzwG_brokenBadge",
964
- "title": "OFEzwG_title",
965
- "card": "OFEzwG_card",
966
- "cardBroken": "OFEzwG_cardBroken",
967
- "section": "OFEzwG_section",
968
- "cardMain": "OFEzwG_cardMain",
969
- "dialog": "OFEzwG_dialog",
970
- "revealedPath": "OFEzwG_revealedPath",
971
- "deleteConfirm": "OFEzwG_deleteConfirm",
972
- "cardDesc": "OFEzwG_cardDesc",
973
- "inUse": "OFEzwG_inUse",
974
- "dialogFields": "OFEzwG_dialogFields",
975
- "cardFoot": "OFEzwG_cardFoot",
976
- "fieldLabel": "OFEzwG_fieldLabel",
977
- "cards": "OFEzwG_cards",
978
- "secondaryButton": "OFEzwG_secondaryButton",
979
- "iconButton": "OFEzwG_iconButton"
978
+ "cardName": "OFEzwG_cardName",
979
+ "title": "OFEzwG_title"
980
980
  };
981
981
  //#endregion
982
982
  //#region src/client/AgentPresetSection.tsx
@@ -34,14 +34,14 @@ window.__ModuleLoader__.load({
34
34
  document.head.appendChild(tag);
35
35
  }
36
36
  var AttachmentRail_module_css_default = {
37
- "arrowLeft": "_0JZGoW_arrowLeft",
38
37
  "remove": "_0JZGoW_remove",
38
+ "item": "_0JZGoW_item",
39
39
  "arrow": "_0JZGoW_arrow",
40
- "arrowRight": "_0JZGoW_arrowRight",
40
+ "arrowLeft": "_0JZGoW_arrowLeft",
41
+ "root": "_0JZGoW_root",
41
42
  "thumbnail": "_0JZGoW_thumbnail",
42
43
  "rail": "_0JZGoW_rail",
43
- "root": "_0JZGoW_root",
44
- "item": "_0JZGoW_item"
44
+ "arrowRight": "_0JZGoW_arrowRight"
45
45
  };
46
46
  //#endregion
47
47
  //#region src/AttachmentRail.tsx
@@ -203,11 +203,11 @@ window.__ModuleLoader__.load({
203
203
  document.head.appendChild(tag);
204
204
  }
205
205
  var DropOverlay_module_css_default = {
206
- "fade-in": "LWqSoW_fade-in",
207
- "illustration": "LWqSoW_illustration",
208
- "wrap": "LWqSoW_wrap",
209
206
  "desc": "LWqSoW_desc",
207
+ "wrap": "LWqSoW_wrap",
210
208
  "title": "LWqSoW_title",
209
+ "illustration": "LWqSoW_illustration",
210
+ "fade-in": "LWqSoW_fade-in",
211
211
  "mask": "LWqSoW_mask"
212
212
  };
213
213
  //#endregion
@@ -389,9 +389,9 @@ window.__ModuleLoader__.load({
389
389
  document.head.appendChild(tag);
390
390
  }
391
391
  var ImageLightbox_module_css_default = {
392
- "image": "_2vpbCW_image",
393
392
  "mask": "_2vpbCW_mask",
394
393
  "backdrop": "_2vpbCW_backdrop",
394
+ "image": "_2vpbCW_image",
395
395
  "close": "_2vpbCW_close"
396
396
  };
397
397
  //#endregion
@@ -625,10 +625,10 @@ window.__ModuleLoader__.load({
625
625
  document.head.appendChild(tag);
626
626
  }
627
627
  var MessageImage_module_css_default = {
628
+ "frame": "X-mjFa_frame",
628
629
  "error": "X-mjFa_error",
629
- "gallery": "X-mjFa_gallery",
630
630
  "loading": "X-mjFa_loading",
631
- "frame": "X-mjFa_frame"
631
+ "gallery": "X-mjFa_gallery"
632
632
  };
633
633
  //#endregion
634
634
  //#region src/MessageImage.tsx
@@ -855,18 +855,18 @@ window.__ModuleLoader__.load({
855
855
  document.head.appendChild(tag);
856
856
  }
857
857
  var PopupSelectView_module_css_default = {
858
- "row": "_7uhq5a_row",
859
- "card": "_7uhq5a_card",
860
- "label": "_7uhq5a_label",
861
858
  "search": "_7uhq5a_search",
862
- "error": "_7uhq5a_error",
863
- "retry": "_7uhq5a_retry",
864
- "check": "_7uhq5a_check",
859
+ "label": "_7uhq5a_label",
865
860
  "rowActive": "_7uhq5a_rowActive",
861
+ "errorText": "_7uhq5a_errorText",
866
862
  "viewport": "_7uhq5a_viewport",
867
863
  "detail": "_7uhq5a_detail",
868
- "status": "_7uhq5a_status",
869
- "errorText": "_7uhq5a_errorText"
864
+ "row": "_7uhq5a_row",
865
+ "check": "_7uhq5a_check",
866
+ "error": "_7uhq5a_error",
867
+ "retry": "_7uhq5a_retry",
868
+ "card": "_7uhq5a_card",
869
+ "status": "_7uhq5a_status"
870
870
  };
871
871
  //#endregion
872
872
  //#region src/client/PopupSelectView.tsx