agent-relay 4.0.19 → 4.0.21

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 (130) hide show
  1. package/dist/index.cjs +1407 -537
  2. package/dist/src/cli/commands/messaging.d.ts +44 -0
  3. package/dist/src/cli/commands/messaging.d.ts.map +1 -1
  4. package/dist/src/cli/commands/messaging.js +195 -8
  5. package/dist/src/cli/commands/messaging.js.map +1 -1
  6. package/dist/src/cli/commands/setup.d.ts +30 -1
  7. package/dist/src/cli/commands/setup.d.ts.map +1 -1
  8. package/dist/src/cli/commands/setup.js +102 -85
  9. package/dist/src/cli/commands/setup.js.map +1 -1
  10. package/node_modules/@agent-relay/cloud/dist/auth.d.ts +2 -2
  11. package/node_modules/@agent-relay/cloud/dist/auth.d.ts.map +1 -1
  12. package/node_modules/@agent-relay/cloud/dist/auth.js +108 -62
  13. package/node_modules/@agent-relay/cloud/dist/auth.js.map +1 -1
  14. package/node_modules/@agent-relay/cloud/package.json +2 -2
  15. package/node_modules/@agent-relay/config/package.json +1 -1
  16. package/node_modules/@agent-relay/hooks/package.json +4 -4
  17. package/node_modules/@agent-relay/sdk/dist/workflows/trajectory.d.ts +5 -35
  18. package/node_modules/@agent-relay/sdk/dist/workflows/trajectory.d.ts.map +1 -1
  19. package/node_modules/@agent-relay/sdk/dist/workflows/trajectory.js +158 -292
  20. package/node_modules/@agent-relay/sdk/dist/workflows/trajectory.js.map +1 -1
  21. package/node_modules/@agent-relay/sdk/package.json +3 -2
  22. package/node_modules/@agent-relay/telemetry/package.json +1 -1
  23. package/node_modules/@agent-relay/trajectory/package.json +2 -2
  24. package/node_modules/@agent-relay/user-directory/package.json +2 -2
  25. package/node_modules/@agent-relay/utils/package.json +2 -2
  26. package/node_modules/@clack/core/CHANGELOG.md +200 -0
  27. package/node_modules/@clack/core/LICENSE +9 -0
  28. package/node_modules/@clack/core/README.md +22 -0
  29. package/node_modules/@clack/core/dist/index.cjs +15 -0
  30. package/node_modules/@clack/core/dist/index.cjs.map +1 -0
  31. package/node_modules/@clack/core/dist/index.d.cts +151 -0
  32. package/node_modules/@clack/core/dist/index.d.mts +151 -0
  33. package/node_modules/@clack/core/dist/index.d.ts +151 -0
  34. package/node_modules/@clack/core/dist/index.mjs +15 -0
  35. package/node_modules/@clack/core/dist/index.mjs.map +1 -0
  36. package/node_modules/@clack/core/package.json +62 -0
  37. package/node_modules/@clack/prompts/CHANGELOG.md +256 -0
  38. package/node_modules/@clack/prompts/LICENSE +23 -0
  39. package/node_modules/@clack/prompts/README.md +158 -0
  40. package/node_modules/@clack/prompts/dist/index.cjs +77 -0
  41. package/node_modules/@clack/prompts/dist/index.d.ts +106 -0
  42. package/node_modules/@clack/prompts/dist/index.mjs +77 -0
  43. package/node_modules/@clack/prompts/node_modules/is-unicode-supported/index.d.ts +12 -0
  44. package/node_modules/@clack/prompts/node_modules/is-unicode-supported/index.js +17 -0
  45. package/node_modules/@clack/prompts/node_modules/is-unicode-supported/license +9 -0
  46. package/node_modules/@clack/prompts/node_modules/is-unicode-supported/package.json +43 -0
  47. package/node_modules/@clack/prompts/node_modules/is-unicode-supported/readme.md +35 -0
  48. package/node_modules/@clack/prompts/package.json +65 -0
  49. package/node_modules/@smithy/config-resolver/package.json +2 -2
  50. package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
  51. package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +154 -61
  52. package/node_modules/@smithy/util-endpoints/dist-es/bdd/BinaryDecisionDiagram.js +15 -0
  53. package/node_modules/@smithy/util-endpoints/dist-es/decideEndpoint.js +41 -0
  54. package/node_modules/@smithy/util-endpoints/dist-es/index.js +2 -0
  55. package/node_modules/@smithy/util-endpoints/dist-es/lib/coalesce.js +8 -0
  56. package/node_modules/@smithy/util-endpoints/dist-es/lib/index.js +3 -0
  57. package/node_modules/@smithy/util-endpoints/dist-es/lib/ite.js +3 -0
  58. package/node_modules/@smithy/util-endpoints/dist-es/lib/split.js +13 -0
  59. package/node_modules/@smithy/util-endpoints/dist-es/lib/substring.js +1 -1
  60. package/node_modules/@smithy/util-endpoints/dist-es/utils/endpointFunctions.js +4 -1
  61. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js +20 -5
  62. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTemplate.js +3 -6
  63. package/node_modules/@smithy/util-endpoints/dist-es/utils/getReferenceValue.js +1 -5
  64. package/node_modules/@smithy/util-endpoints/dist-types/bdd/BinaryDecisionDiagram.d.ts +22 -0
  65. package/node_modules/@smithy/util-endpoints/dist-types/decideEndpoint.d.ts +7 -0
  66. package/node_modules/@smithy/util-endpoints/dist-types/index.d.ts +2 -0
  67. package/node_modules/@smithy/util-endpoints/dist-types/lib/coalesce.d.ts +7 -0
  68. package/node_modules/@smithy/util-endpoints/dist-types/lib/index.d.ts +3 -0
  69. package/node_modules/@smithy/util-endpoints/dist-types/lib/ite.d.ts +6 -0
  70. package/node_modules/@smithy/util-endpoints/dist-types/lib/split.d.ts +11 -0
  71. package/node_modules/@smithy/util-endpoints/dist-types/utils/endpointFunctions.d.ts +4 -0
  72. package/node_modules/@smithy/util-endpoints/dist-types/utils/getReferenceValue.d.ts +3 -1
  73. package/node_modules/@smithy/util-endpoints/package.json +1 -1
  74. package/node_modules/agent-trajectories/README.md +562 -0
  75. package/node_modules/agent-trajectories/dist/chunk-W222QB6V.js +2036 -0
  76. package/node_modules/agent-trajectories/dist/chunk-W222QB6V.js.map +1 -0
  77. package/node_modules/agent-trajectories/dist/cli/index.d.ts +2 -0
  78. package/node_modules/agent-trajectories/dist/cli/index.js +4592 -0
  79. package/node_modules/agent-trajectories/dist/cli/index.js.map +1 -0
  80. package/node_modules/agent-trajectories/dist/index-7tzw_CMS.d.ts +1777 -0
  81. package/node_modules/agent-trajectories/dist/index.d.ts +90 -0
  82. package/node_modules/agent-trajectories/dist/index.js +73 -0
  83. package/node_modules/agent-trajectories/dist/index.js.map +1 -0
  84. package/node_modules/agent-trajectories/dist/sdk/index.d.ts +2 -0
  85. package/node_modules/agent-trajectories/dist/sdk/index.js +39 -0
  86. package/node_modules/agent-trajectories/dist/sdk/index.js.map +1 -0
  87. package/node_modules/agent-trajectories/package.json +72 -0
  88. package/node_modules/commander/LICENSE +22 -0
  89. package/node_modules/commander/Readme.md +1157 -0
  90. package/node_modules/commander/esm.mjs +16 -0
  91. package/node_modules/commander/index.js +24 -0
  92. package/node_modules/commander/lib/argument.js +149 -0
  93. package/node_modules/commander/lib/command.js +2509 -0
  94. package/node_modules/commander/lib/error.js +39 -0
  95. package/node_modules/commander/lib/help.js +520 -0
  96. package/node_modules/commander/lib/option.js +330 -0
  97. package/node_modules/commander/lib/suggestSimilar.js +101 -0
  98. package/node_modules/commander/package-support.json +16 -0
  99. package/node_modules/commander/package.json +84 -0
  100. package/node_modules/commander/typings/esm.d.mts +3 -0
  101. package/node_modules/commander/typings/index.d.ts +969 -0
  102. package/node_modules/picocolors/LICENSE +15 -0
  103. package/node_modules/picocolors/README.md +21 -0
  104. package/node_modules/picocolors/package.json +25 -0
  105. package/node_modules/picocolors/picocolors.browser.js +4 -0
  106. package/node_modules/picocolors/picocolors.d.ts +5 -0
  107. package/node_modules/picocolors/picocolors.js +75 -0
  108. package/node_modules/picocolors/types.d.ts +51 -0
  109. package/node_modules/sisteransi/license +21 -0
  110. package/node_modules/sisteransi/package.json +34 -0
  111. package/node_modules/sisteransi/readme.md +113 -0
  112. package/node_modules/sisteransi/src/index.js +58 -0
  113. package/node_modules/sisteransi/src/sisteransi.d.ts +35 -0
  114. package/package.json +10 -10
  115. package/packages/cloud/dist/auth.d.ts +2 -2
  116. package/packages/cloud/dist/auth.d.ts.map +1 -1
  117. package/packages/cloud/dist/auth.js +108 -62
  118. package/packages/cloud/dist/auth.js.map +1 -1
  119. package/packages/cloud/package.json +2 -2
  120. package/packages/config/package.json +1 -1
  121. package/packages/hooks/package.json +4 -4
  122. package/packages/sdk/dist/workflows/trajectory.d.ts +5 -35
  123. package/packages/sdk/dist/workflows/trajectory.d.ts.map +1 -1
  124. package/packages/sdk/dist/workflows/trajectory.js +158 -292
  125. package/packages/sdk/dist/workflows/trajectory.js.map +1 -1
  126. package/packages/sdk/package.json +3 -2
  127. package/packages/telemetry/package.json +1 -1
  128. package/packages/trajectory/package.json +2 -2
  129. package/packages/user-directory/package.json +2 -2
  130. package/packages/utils/package.json +2 -2
@@ -0,0 +1,90 @@
1
+ import { T as Trajectory } from './index-7tzw_CMS.js';
2
+ export { A as AddChapterInput, a as AddEventInput, b as AgentParticipation, C as Chapter, c as ChapterSchema, d as CommitInfo, e as CompleteTrajectoryInput, f as CreateTrajectoryInput, D as Decision, g as DecisionSchema, E as EventSignificance, F as FileStorage, R as Retrospective, h as RetrospectiveSchema, S as StorageAdapter, i as StorageConfig, j as TRAJECTORY_TRAILER_KEY, k as TaskReference, l as TaskSource, m as TrajectoryBuilder, n as TrajectoryClient, o as TrajectoryClientOptions, p as TrajectoryError, q as TrajectoryEvent, r as TrajectoryEventSchema, s as TrajectoryEventType, t as TrajectoryQuery, u as TrajectorySchema, v as TrajectorySession, w as TrajectoryStatus, x as TrajectorySummary, y as abandonTrajectory, z as addChapter, B as addDecision, G as addEvent, H as completeTrajectory, I as createTrajectory, J as formatTrailer, K as getCommitsBetween, L as getFilesChangedBetween, M as getTrajectoryFromCommit, N as parseTrajectoryFromMessage, O as trajectory, P as validateCompleteInput, Q as validateCreateInput, U as validateTrajectory } from './index-7tzw_CMS.js';
3
+ import 'zod';
4
+
5
+ /**
6
+ * Generate a trajectory ID
7
+ * Format: traj_xxxxxxxxxxxx (traj_ prefix + 12 random chars)
8
+ * @returns Unique trajectory ID
9
+ */
10
+ declare function generateTrajectoryId(): string;
11
+ /**
12
+ * Generate a chapter ID
13
+ * Format: chap_xxxxxxxxxxxx (chap_ prefix + 12 random chars)
14
+ * @returns Unique chapter ID
15
+ */
16
+ declare function generateChapterId(): string;
17
+ /**
18
+ * Validate a trajectory ID format
19
+ * @param id - The ID to validate
20
+ * @returns True if valid format
21
+ */
22
+ declare function isValidTrajectoryId(id: string): boolean;
23
+ /**
24
+ * Validate a chapter ID format
25
+ * @param id - The ID to validate
26
+ * @returns True if valid format
27
+ */
28
+ declare function isValidChapterId(id: string): boolean;
29
+
30
+ /**
31
+ * Markdown export for trajectories
32
+ *
33
+ * Generates human-readable Notion-style documentation.
34
+ */
35
+
36
+ /**
37
+ * Export a trajectory to markdown format
38
+ * @param trajectory - The trajectory to export
39
+ * @returns Markdown string
40
+ */
41
+ declare function exportToMarkdown(trajectory: Trajectory): string;
42
+
43
+ /**
44
+ * JSON export for trajectories
45
+ */
46
+
47
+ interface JSONExportOptions {
48
+ /** Output compact JSON without formatting */
49
+ compact?: boolean;
50
+ }
51
+ /**
52
+ * Export a trajectory to JSON format
53
+ * @param trajectory - The trajectory to export
54
+ * @param options - Export options
55
+ * @returns JSON string
56
+ */
57
+ declare function exportToJSON(trajectory: Trajectory, options?: JSONExportOptions): string;
58
+
59
+ /**
60
+ * Timeline export for trajectories
61
+ *
62
+ * Generates a chronological Linear-style view.
63
+ */
64
+
65
+ /**
66
+ * Export a trajectory to timeline format
67
+ * @param trajectory - The trajectory to export
68
+ * @returns Timeline string
69
+ */
70
+ declare function exportToTimeline(trajectory: Trajectory): string;
71
+
72
+ /**
73
+ * PR Summary export for trajectories
74
+ *
75
+ * Generates a concise summary suitable for pull request descriptions.
76
+ */
77
+
78
+ interface PRSummaryOptions {
79
+ /** Path to the full trajectory file for linking */
80
+ trajectoryPath?: string;
81
+ }
82
+ /**
83
+ * Export a trajectory to PR summary format
84
+ * @param trajectory - The trajectory to export
85
+ * @param options - Export options
86
+ * @returns PR summary markdown string
87
+ */
88
+ declare function exportToPRSummary(trajectory: Trajectory, options?: PRSummaryOptions): string;
89
+
90
+ export { type JSONExportOptions, type PRSummaryOptions, Trajectory, exportToJSON, exportToMarkdown, exportToPRSummary, exportToTimeline, generateChapterId, generateTrajectoryId, isValidChapterId, isValidTrajectoryId };
@@ -0,0 +1,73 @@
1
+ import {
2
+ ChapterSchema,
3
+ DecisionSchema,
4
+ FileStorage,
5
+ RetrospectiveSchema,
6
+ TRAJECTORY_TRAILER_KEY,
7
+ TrajectoryBuilder,
8
+ TrajectoryClient,
9
+ TrajectoryError,
10
+ TrajectoryEventSchema,
11
+ TrajectorySchema,
12
+ TrajectorySession,
13
+ abandonTrajectory,
14
+ addChapter,
15
+ addDecision,
16
+ addEvent,
17
+ completeTrajectory,
18
+ createTrajectory,
19
+ exportToJSON,
20
+ exportToMarkdown,
21
+ exportToPRSummary,
22
+ exportToTimeline,
23
+ formatTrailer,
24
+ generateChapterId,
25
+ generateTrajectoryId,
26
+ getCommitsBetween,
27
+ getFilesChangedBetween,
28
+ getTrajectoryFromCommit,
29
+ isValidChapterId,
30
+ isValidTrajectoryId,
31
+ parseTrajectoryFromMessage,
32
+ trajectory,
33
+ validateCompleteInput,
34
+ validateCreateInput,
35
+ validateTrajectory
36
+ } from "./chunk-W222QB6V.js";
37
+ export {
38
+ ChapterSchema,
39
+ DecisionSchema,
40
+ FileStorage,
41
+ RetrospectiveSchema,
42
+ TRAJECTORY_TRAILER_KEY,
43
+ TrajectoryBuilder,
44
+ TrajectoryClient,
45
+ TrajectoryError,
46
+ TrajectoryEventSchema,
47
+ TrajectorySchema,
48
+ TrajectorySession,
49
+ abandonTrajectory,
50
+ addChapter,
51
+ addDecision,
52
+ addEvent,
53
+ completeTrajectory,
54
+ createTrajectory,
55
+ exportToJSON,
56
+ exportToMarkdown,
57
+ exportToPRSummary,
58
+ exportToTimeline,
59
+ formatTrailer,
60
+ generateChapterId,
61
+ generateTrajectoryId,
62
+ getCommitsBetween,
63
+ getFilesChangedBetween,
64
+ getTrajectoryFromCommit,
65
+ isValidChapterId,
66
+ isValidTrajectoryId,
67
+ parseTrajectoryFromMessage,
68
+ trajectory,
69
+ validateCompleteInput,
70
+ validateCreateInput,
71
+ validateTrajectory
72
+ };
73
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,2 @@
1
+ export { A as AddChapterInput, a as AddEventInput, b as AgentParticipation, V as Alternative, C as Chapter, d as CommitInfo, e as CompleteTrajectoryInput, f as CreateTrajectoryInput, D as Decision, E as EventSignificance, F as FileStorage, W as Finding, X as FindingCategory, R as Retrospective, S as StorageAdapter, i as StorageConfig, j as TRAJECTORY_TRAILER_KEY, k as TaskReference, l as TaskSource, T as Trajectory, m as TrajectoryBuilder, n as TrajectoryClient, o as TrajectoryClientOptions, p as TrajectoryError, q as TrajectoryEvent, s as TrajectoryEventType, t as TrajectoryQuery, u as TrajectorySchema, v as TrajectorySession, w as TrajectoryStatus, x as TrajectorySummary, Y as compactWorkflow, J as formatTrailer, K as getCommitsBetween, L as getFilesChangedBetween, M as getTrajectoryFromCommit, N as parseTrajectoryFromMessage, O as trajectory, P as validateCompleteInput, Q as validateCreateInput, U as validateTrajectory } from '../index-7tzw_CMS.js';
2
+ import 'zod';
@@ -0,0 +1,39 @@
1
+ import {
2
+ FileStorage,
3
+ TRAJECTORY_TRAILER_KEY,
4
+ TrajectoryBuilder,
5
+ TrajectoryClient,
6
+ TrajectoryError,
7
+ TrajectorySchema,
8
+ TrajectorySession,
9
+ compactWorkflow,
10
+ formatTrailer,
11
+ getCommitsBetween,
12
+ getFilesChangedBetween,
13
+ getTrajectoryFromCommit,
14
+ parseTrajectoryFromMessage,
15
+ trajectory,
16
+ validateCompleteInput,
17
+ validateCreateInput,
18
+ validateTrajectory
19
+ } from "../chunk-W222QB6V.js";
20
+ export {
21
+ FileStorage,
22
+ TRAJECTORY_TRAILER_KEY,
23
+ TrajectoryBuilder,
24
+ TrajectoryClient,
25
+ TrajectoryError,
26
+ TrajectorySchema,
27
+ TrajectorySession,
28
+ compactWorkflow,
29
+ formatTrailer,
30
+ getCommitsBetween,
31
+ getFilesChangedBetween,
32
+ getTrajectoryFromCommit,
33
+ parseTrajectoryFromMessage,
34
+ trajectory,
35
+ validateCompleteInput,
36
+ validateCreateInput,
37
+ validateTrajectory
38
+ };
39
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,72 @@
1
+ {
2
+ "name": "agent-trajectories",
3
+ "version": "0.5.4",
4
+ "description": "Capture the complete train of thought of agent work as first-class artifacts",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js"
12
+ },
13
+ "./sdk": {
14
+ "types": "./dist/sdk/index.d.ts",
15
+ "import": "./dist/sdk/index.js"
16
+ }
17
+ },
18
+ "bin": {
19
+ "trail": "dist/cli/index.js"
20
+ },
21
+ "scripts": {
22
+ "build": "tsup",
23
+ "dev": "tsup --watch",
24
+ "test": "vitest",
25
+ "test:run": "vitest run",
26
+ "lint": "biome check .",
27
+ "lint:fix": "biome check --write .",
28
+ "format": "biome format --write .",
29
+ "typecheck": "tsc --noEmit",
30
+ "prepare": "husky"
31
+ },
32
+ "keywords": [
33
+ "agent",
34
+ "trajectory",
35
+ "ai",
36
+ "claude",
37
+ "llm",
38
+ "debugging",
39
+ "tracing",
40
+ "sdk",
41
+ "agentic"
42
+ ],
43
+ "author": "",
44
+ "license": "MIT",
45
+ "repository": {
46
+ "type": "git",
47
+ "url": "https://github.com/AgentWorkforce/trajectories"
48
+ },
49
+ "files": [
50
+ "dist"
51
+ ],
52
+ "engines": {
53
+ "node": ">=20.0.0"
54
+ },
55
+ "dependencies": {
56
+ "@clack/prompts": "^0.7.0",
57
+ "commander": "^12.0.0",
58
+ "zod": "^3.23.0"
59
+ },
60
+ "devDependencies": {
61
+ "@biomejs/biome": "^1.9.4",
62
+ "@types/node": "^20.0.0",
63
+ "husky": "^9.1.7",
64
+ "lint-staged": "^16.2.7",
65
+ "tsup": "^8.5.1",
66
+ "typescript": "^5.4.0",
67
+ "vitest": "^2.0.0"
68
+ },
69
+ "lint-staged": {
70
+ "*.{js,ts,json,md}": "biome check --write --no-errors-on-unmatched"
71
+ }
72
+ }
@@ -0,0 +1,22 @@
1
+ (The MIT License)
2
+
3
+ Copyright (c) 2011 TJ Holowaychuk <tj@vision-media.ca>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ 'Software'), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.