qlogicagent 2.18.6 → 2.18.7

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 (147) hide show
  1. package/README.md +382 -382
  2. package/dist/agent.js +30 -30
  3. package/dist/cli.js +1 -1
  4. package/dist/default-project-knowledge/INSTRUCTIONS.md +7 -7
  5. package/dist/default-project-knowledge/rules/project-workflow.md +6 -6
  6. package/dist/host-contract.js +1 -0
  7. package/dist/index.js +539 -530
  8. package/dist/orchestration.js +4 -4
  9. package/dist/permissions.js +1 -1
  10. package/dist/plugin-marketplace-compute.js +1 -0
  11. package/dist/protocol.js +1 -1
  12. package/dist/runtime/infra/mcp-bridge-server.js +275 -275
  13. package/dist/skills/builtin/desktop-screenshot/SKILL.md +62 -62
  14. package/dist/skills/builtin/office-doc-reading/SKILL.md +19 -19
  15. package/dist/skills/mcp/astraclaw-native-mcp-server.js +4 -4
  16. package/dist/tunables.js +1 -0
  17. package/dist/types/agent/runtime-vars.d.ts +1 -2
  18. package/dist/types/agent/tool-loop.d.ts +6 -0
  19. package/dist/types/agent/tool-loop.test-harness.d.ts +20 -0
  20. package/dist/types/agent/types.d.ts +2 -0
  21. package/dist/types/cli/acp-extended-handlers.d.ts +7 -0
  22. package/dist/types/cli/acp-extended-host-adapter.d.ts +2 -0
  23. package/dist/types/cli/acp-session-host.d.ts +15 -2
  24. package/dist/types/cli/base-tool-bootstrap.d.ts +1 -0
  25. package/dist/types/cli/community-skill-installer.d.ts +2 -0
  26. package/dist/types/cli/core-tool-coordinator.d.ts +4 -0
  27. package/dist/types/cli/core-tools/config-tool-bootstrap.d.ts +3 -1
  28. package/dist/types/cli/core-tools/config-tool-service.d.ts +7 -5
  29. package/dist/types/cli/default-project-bootstrap.d.ts +1 -0
  30. package/dist/types/cli/handlers/agents-handler.d.ts +4 -1
  31. package/dist/types/cli/handlers/community-handler.d.ts +2 -0
  32. package/dist/types/cli/handlers/config-handler.d.ts +2 -15
  33. package/dist/types/cli/handlers/pet-handler.d.ts +3 -2
  34. package/dist/types/cli/handlers/session-handler.d.ts +1 -1
  35. package/dist/types/cli/handlers/skills-handler.d.ts +12 -10
  36. package/dist/types/cli/handlers/solo-handler.d.ts +3 -0
  37. package/dist/types/cli/handlers/turn-handler.d.ts +46 -32
  38. package/dist/types/cli/handlers/workflow-handler.d.ts +6 -0
  39. package/dist/types/cli/mcp-bootstrap.d.ts +0 -2
  40. package/dist/types/cli/media-inline.d.ts +14 -0
  41. package/dist/types/cli/media-understanding.d.ts +65 -8
  42. package/dist/types/cli/memory-coordinator.d.ts +8 -0
  43. package/dist/types/cli/multi-agent-handler-host.d.ts +2 -0
  44. package/dist/types/cli/permission-bootstrap.d.ts +2 -0
  45. package/dist/types/cli/pet-runtime.d.ts +0 -1
  46. package/dist/types/cli/plugin-bootstrap.d.ts +2 -1
  47. package/dist/types/cli/product-coordinator.d.ts +4 -1
  48. package/dist/types/cli/rpc-registry.d.ts +1 -3
  49. package/dist/types/cli/runtime-watcher-bootstrap.d.ts +0 -2
  50. package/dist/types/cli/session-context.d.ts +4 -2
  51. package/dist/types/cli/skill-invocation-service.d.ts +2 -0
  52. package/dist/types/cli/skill-tools-bootstrap.d.ts +2 -0
  53. package/dist/types/cli/skills-query-service.d.ts +2 -1
  54. package/dist/types/cli/stdio-acp-protocol-coordinator.d.ts +9 -0
  55. package/dist/types/cli/stdio-acp-request-host.d.ts +11 -2
  56. package/dist/types/cli/stdio-rpc-handler-hosts.d.ts +1 -1
  57. package/dist/types/cli/stdio-runtime-bootstrap.d.ts +6 -0
  58. package/dist/types/cli/stdio-runtime-services.d.ts +6 -1
  59. package/dist/types/cli/stdio-server.d.ts +33 -4
  60. package/dist/types/cli/task-distillation-coordinator.d.ts +9 -4
  61. package/dist/types/cli/tool-bootstrap-core-registration.d.ts +3 -0
  62. package/dist/types/cli/tool-bootstrap-media-registration.d.ts +10 -0
  63. package/dist/types/cli/tool-bootstrap-web-registration.d.ts +1 -0
  64. package/dist/types/cli/tool-bootstrap.d.ts +9 -0
  65. package/dist/types/cli/turn-core.d.ts +2 -0
  66. package/dist/types/cli/turn-preview-browser-setup.d.ts +15 -0
  67. package/dist/types/cli/turn-project-router.d.ts +1 -1
  68. package/dist/types/cli/workflow-host-adapter.d.ts +2 -0
  69. package/dist/types/host-contract/index.d.ts +1475 -0
  70. package/dist/types/host-contract/project-id.d.ts +5 -0
  71. package/dist/types/host-contract/provider-profile.d.ts +46 -0
  72. package/dist/types/orchestration/agent-instance.d.ts +6 -0
  73. package/dist/types/orchestration/delegation-coordinator.d.ts +40 -0
  74. package/dist/types/orchestration/goal-mode-adapters.d.ts +3 -0
  75. package/dist/types/orchestration/product-planner.d.ts +3 -0
  76. package/dist/types/orchestration/solo-evaluator.d.ts +18 -3
  77. package/dist/types/orchestration/solo-persistence.d.ts +2 -0
  78. package/dist/types/orchestration/testing/delegate-test-bridge.d.ts +4 -0
  79. package/dist/types/permissions.d.ts +2 -0
  80. package/dist/types/protocol/methods.d.ts +0 -199
  81. package/dist/types/protocol/wire/acp-protocol.d.ts +16 -1
  82. package/dist/types/protocol/wire/agent-methods.d.ts +1 -173
  83. package/dist/types/protocol/wire/chat-types.d.ts +6 -0
  84. package/dist/types/runtime/config/tunable-defaults.d.ts +13 -3
  85. package/dist/types/runtime/execution/dream-agent.d.ts +9 -8
  86. package/dist/types/runtime/infra/agent-paths.d.ts +3 -3
  87. package/dist/types/runtime/infra/astraclaw-capabilities.d.ts +1 -1
  88. package/dist/types/runtime/infra/clixml-sanitize.d.ts +16 -0
  89. package/dist/types/runtime/infra/external-agent-approvals.d.ts +18 -0
  90. package/dist/types/runtime/infra/feedback-distillation.d.ts +3 -1
  91. package/dist/types/runtime/infra/feedback-host-authority.d.ts +4 -0
  92. package/dist/types/runtime/infra/llmrouter-catalog.d.ts +2 -13
  93. package/dist/types/runtime/infra/model-registry.d.ts +3 -1
  94. package/dist/types/runtime/infra/project-authority-facade.d.ts +11 -0
  95. package/dist/types/runtime/infra/project-host-authority.d.ts +10 -0
  96. package/dist/types/runtime/ports/memory-provider.d.ts +11 -7
  97. package/dist/types/runtime/ports/tool-contracts.d.ts +2 -0
  98. package/dist/types/runtime/prompt/fresh-workspace-evidence.d.ts +2 -2
  99. package/dist/types/runtime/session/session-persistence.d.ts +29 -10
  100. package/dist/types/runtime/session/session-recovery.d.ts +4 -0
  101. package/dist/types/runtime/session/session-summary.d.ts +3 -1
  102. package/dist/types/runtime/session/session-transcript-store.d.ts +7 -0
  103. package/dist/types/skills/memory/host-memory-provider.d.ts +148 -0
  104. package/dist/types/skills/memory/local-memory-provider.d.ts +19 -10
  105. package/dist/types/skills/memory/task-distillation.d.ts +6 -0
  106. package/dist/types/skills/plugins/plugin-marketplace.d.ts +23 -57
  107. package/dist/types/skills/tools/media-understand-tool.d.ts +28 -0
  108. package/dist/types/skills/tools/preview-browser-tool.d.ts +136 -0
  109. package/dist/types/skills/tools/shell/task-output.d.ts +10 -1
  110. package/dist/types/skills/tools/skill-tool.d.ts +1 -1
  111. package/dist/types/skills/web-search/brave-source.d.ts +2 -1
  112. package/dist/types/skills/web-search/crawl4ai-extractor.d.ts +3 -2
  113. package/dist/types/skills/web-search/exa-source.d.ts +2 -1
  114. package/dist/types/skills/web-search/search-svc-source.d.ts +4 -3
  115. package/dist/types/skills/web-search/searxng-source.d.ts +3 -1
  116. package/dist/types/skills/web-search/serper-source.d.ts +2 -1
  117. package/dist/types/skills/web-search/source-factory.d.ts +2 -1
  118. package/dist/types/skills/web-search/web-tunable-resolver.d.ts +16 -0
  119. package/dist/types/test-support/global-home-setup.d.ts +2 -0
  120. package/dist/types/transport/acp-server.d.ts +29 -0
  121. package/dist/types/transport/delegate-client.d.ts +82 -0
  122. package/dist/types/transport/host-capability-client.d.ts +21 -0
  123. package/dist/types/transport/host-feedback-client.d.ts +25 -0
  124. package/dist/types/transport/host-profile-client.d.ts +19 -0
  125. package/dist/types/transport/host-project-client.d.ts +16 -0
  126. package/dist/types/transport/host-request-client.d.ts +38 -0
  127. package/dist/types/transport/host-session-client.d.ts +29 -0
  128. package/dist/types/tunables.d.ts +2 -0
  129. package/dist/vendor/hatch-pet/LICENSE.txt +201 -201
  130. package/dist/vendor/hatch-pet/NOTICE.md +25 -25
  131. package/dist/vendor/hatch-pet/references/animation-rows.md +29 -29
  132. package/dist/vendor/hatch-pet/references/codex-pet-contract.md +35 -35
  133. package/dist/vendor/hatch-pet/references/qa-rubric.md +66 -66
  134. package/dist/vendor/hatch-pet/scripts/compose_atlas.py +169 -169
  135. package/dist/vendor/hatch-pet/scripts/derive_running_left_from_running_right.py +150 -150
  136. package/dist/vendor/hatch-pet/scripts/extract_strip_frames.py +408 -408
  137. package/dist/vendor/hatch-pet/scripts/inspect_frames.py +256 -256
  138. package/dist/vendor/hatch-pet/scripts/make_contact_sheet.py +96 -96
  139. package/dist/vendor/hatch-pet/scripts/prepare_pet_run.py +834 -834
  140. package/dist/vendor/hatch-pet/scripts/render_animation_previews.py +78 -78
  141. package/dist/vendor/hatch-pet/scripts/validate_atlas.py +157 -157
  142. package/package.json +25 -2
  143. package/dist/types/cli/handlers/settings-handler.d.ts +0 -19
  144. package/dist/types/cli/permission-rule-persistence.d.ts +0 -16
  145. package/dist/types/cli/tunable-store.d.ts +0 -26
  146. package/dist/types/skills/permissions/settings-watcher.d.ts +0 -26
  147. /package/dist/types/{skills/memory → host-contract}/fts-segment.d.ts +0 -0
@@ -1,96 +1,96 @@
1
- #!/usr/bin/env python3
2
- """Create a labeled contact sheet from a Codex pet atlas."""
3
-
4
- from __future__ import annotations
5
-
6
- import argparse
7
- from pathlib import Path
8
-
9
- from PIL import Image, ImageDraw, ImageFont
10
-
11
- COLUMNS = 8
12
- ROWS = 9
13
- CELL_WIDTH = 192
14
- CELL_HEIGHT = 208
15
- LABEL_HEIGHT = 22
16
- ROW_NAMES = [
17
- "idle",
18
- "running-right",
19
- "running-left",
20
- "waving",
21
- "jumping",
22
- "failed",
23
- "waiting",
24
- "running",
25
- "review",
26
- ]
27
- USED_COUNTS = [6, 8, 8, 4, 5, 8, 6, 6, 6]
28
-
29
-
30
- def checker(size: tuple[int, int], square: int = 16) -> Image.Image:
31
- image = Image.new("RGB", size, "#ffffff")
32
- draw = ImageDraw.Draw(image)
33
- for y in range(0, size[1], square):
34
- for x in range(0, size[0], square):
35
- if (x // square + y // square) % 2:
36
- draw.rectangle((x, y, x + square - 1, y + square - 1), fill="#e8e8e8")
37
- return image
38
-
39
-
40
- def main() -> None:
41
- parser = argparse.ArgumentParser(description=__doc__)
42
- parser.add_argument("atlas")
43
- parser.add_argument("--output", required=True)
44
- parser.add_argument("--scale", type=float, default=0.5)
45
- args = parser.parse_args()
46
-
47
- with Image.open(Path(args.atlas).expanduser().resolve()) as opened:
48
- atlas = opened.convert("RGBA")
49
-
50
- cell_w = max(1, round(CELL_WIDTH * args.scale))
51
- cell_h = max(1, round(CELL_HEIGHT * args.scale))
52
- width = COLUMNS * cell_w
53
- height = ROWS * (cell_h + LABEL_HEIGHT)
54
- sheet = Image.new("RGB", (width, height), "#f7f7f7")
55
- draw = ImageDraw.Draw(sheet)
56
- font = ImageFont.load_default()
57
-
58
- for row in range(ROWS):
59
- y = row * (cell_h + LABEL_HEIGHT)
60
- draw.rectangle((0, y, width, y + LABEL_HEIGHT - 1), fill="#111111")
61
- draw.text((6, y + 5), f"row {row}: {ROW_NAMES[row]}", fill="#ffffff", font=font)
62
- draw.text(
63
- (width - 92, y + 5),
64
- f"{USED_COUNTS[row]} frames",
65
- fill="#ffffff",
66
- font=font,
67
- )
68
- for column in range(COLUMNS):
69
- crop = atlas.crop(
70
- (
71
- column * CELL_WIDTH,
72
- row * CELL_HEIGHT,
73
- (column + 1) * CELL_WIDTH,
74
- (row + 1) * CELL_HEIGHT,
75
- )
76
- )
77
- crop = crop.resize((cell_w, cell_h), Image.Resampling.LANCZOS)
78
- bg = checker((cell_w, cell_h))
79
- bg.paste(crop, (0, 0), crop)
80
- x = column * cell_w
81
- sheet.paste(bg, (x, y + LABEL_HEIGHT))
82
- outline = "#18a058" if column < USED_COUNTS[row] else "#cc3344"
83
- draw.rectangle(
84
- (x, y + LABEL_HEIGHT, x + cell_w - 1, y + LABEL_HEIGHT + cell_h - 1),
85
- outline=outline,
86
- )
87
- draw.text((x + 4, y + LABEL_HEIGHT + 4), str(column), fill="#111111", font=font)
88
-
89
- output = Path(args.output).expanduser().resolve()
90
- output.parent.mkdir(parents=True, exist_ok=True)
91
- sheet.save(output)
92
- print(f"wrote {output}")
93
-
94
-
95
- if __name__ == "__main__":
96
- main()
1
+ #!/usr/bin/env python3
2
+ """Create a labeled contact sheet from a Codex pet atlas."""
3
+
4
+ from __future__ import annotations
5
+
6
+ import argparse
7
+ from pathlib import Path
8
+
9
+ from PIL import Image, ImageDraw, ImageFont
10
+
11
+ COLUMNS = 8
12
+ ROWS = 9
13
+ CELL_WIDTH = 192
14
+ CELL_HEIGHT = 208
15
+ LABEL_HEIGHT = 22
16
+ ROW_NAMES = [
17
+ "idle",
18
+ "running-right",
19
+ "running-left",
20
+ "waving",
21
+ "jumping",
22
+ "failed",
23
+ "waiting",
24
+ "running",
25
+ "review",
26
+ ]
27
+ USED_COUNTS = [6, 8, 8, 4, 5, 8, 6, 6, 6]
28
+
29
+
30
+ def checker(size: tuple[int, int], square: int = 16) -> Image.Image:
31
+ image = Image.new("RGB", size, "#ffffff")
32
+ draw = ImageDraw.Draw(image)
33
+ for y in range(0, size[1], square):
34
+ for x in range(0, size[0], square):
35
+ if (x // square + y // square) % 2:
36
+ draw.rectangle((x, y, x + square - 1, y + square - 1), fill="#e8e8e8")
37
+ return image
38
+
39
+
40
+ def main() -> None:
41
+ parser = argparse.ArgumentParser(description=__doc__)
42
+ parser.add_argument("atlas")
43
+ parser.add_argument("--output", required=True)
44
+ parser.add_argument("--scale", type=float, default=0.5)
45
+ args = parser.parse_args()
46
+
47
+ with Image.open(Path(args.atlas).expanduser().resolve()) as opened:
48
+ atlas = opened.convert("RGBA")
49
+
50
+ cell_w = max(1, round(CELL_WIDTH * args.scale))
51
+ cell_h = max(1, round(CELL_HEIGHT * args.scale))
52
+ width = COLUMNS * cell_w
53
+ height = ROWS * (cell_h + LABEL_HEIGHT)
54
+ sheet = Image.new("RGB", (width, height), "#f7f7f7")
55
+ draw = ImageDraw.Draw(sheet)
56
+ font = ImageFont.load_default()
57
+
58
+ for row in range(ROWS):
59
+ y = row * (cell_h + LABEL_HEIGHT)
60
+ draw.rectangle((0, y, width, y + LABEL_HEIGHT - 1), fill="#111111")
61
+ draw.text((6, y + 5), f"row {row}: {ROW_NAMES[row]}", fill="#ffffff", font=font)
62
+ draw.text(
63
+ (width - 92, y + 5),
64
+ f"{USED_COUNTS[row]} frames",
65
+ fill="#ffffff",
66
+ font=font,
67
+ )
68
+ for column in range(COLUMNS):
69
+ crop = atlas.crop(
70
+ (
71
+ column * CELL_WIDTH,
72
+ row * CELL_HEIGHT,
73
+ (column + 1) * CELL_WIDTH,
74
+ (row + 1) * CELL_HEIGHT,
75
+ )
76
+ )
77
+ crop = crop.resize((cell_w, cell_h), Image.Resampling.LANCZOS)
78
+ bg = checker((cell_w, cell_h))
79
+ bg.paste(crop, (0, 0), crop)
80
+ x = column * cell_w
81
+ sheet.paste(bg, (x, y + LABEL_HEIGHT))
82
+ outline = "#18a058" if column < USED_COUNTS[row] else "#cc3344"
83
+ draw.rectangle(
84
+ (x, y + LABEL_HEIGHT, x + cell_w - 1, y + LABEL_HEIGHT + cell_h - 1),
85
+ outline=outline,
86
+ )
87
+ draw.text((x + 4, y + LABEL_HEIGHT + 4), str(column), fill="#111111", font=font)
88
+
89
+ output = Path(args.output).expanduser().resolve()
90
+ output.parent.mkdir(parents=True, exist_ok=True)
91
+ sheet.save(output)
92
+ print(f"wrote {output}")
93
+
94
+
95
+ if __name__ == "__main__":
96
+ main()