@empiricalrun/test-gen 0.53.10 → 0.53.12

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/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @empiricalrun/test-gen
2
2
 
3
+ ## 0.53.12
4
+
5
+ ### Patch Changes
6
+
7
+ - 9edf60b: fix: remove check for modified files in create-pr tool
8
+ - Updated dependencies [f25f7f1]
9
+ - Updated dependencies [2b98129]
10
+ - @empiricalrun/llm@0.14.7
11
+
12
+ ## 0.53.11
13
+
14
+ ### Patch Changes
15
+
16
+ - fb78386: feat: enabled LLM tracing for chatAgent dashboard
17
+ - Updated dependencies [a40b338]
18
+ - @empiricalrun/llm@0.14.6
19
+
3
20
  ## 0.53.10
4
21
 
5
22
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/agent/chat/index.ts"],"names":[],"mappings":"AAYA,OAAO,EAAoB,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAiBhE,wBAAsB,kBAAkB,CAAC,EACvC,mBAAmB,EACnB,aAAa,EACb,oBAAoB,GACrB,EAAE;IACD,aAAa,EAAE,mBAAmB,CAAC;IACnC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,oBAAoB,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1C,iBAoFA;AAqBD,wBAAsB,wBAAwB,CAAC,EAC7C,aAAa,EACb,aAAa,GACd,EAAE;IACD,aAAa,EAAE,mBAAmB,CAAC;IACnC,aAAa,EAAE,MAAM,CAAC;CACvB,iBA+BA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/agent/chat/index.ts"],"names":[],"mappings":"AAYA,OAAO,EAAoB,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAiBhE,wBAAsB,kBAAkB,CAAC,EACvC,mBAAmB,EACnB,aAAa,EACb,oBAAoB,GACrB,EAAE;IACD,aAAa,EAAE,mBAAmB,CAAC;IACnC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,oBAAoB,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1C,iBAoFA;AAuBD,wBAAsB,wBAAwB,CAAC,EAC7C,aAAa,EACb,aAAa,GACd,EAAE;IACD,aAAa,EAAE,mBAAmB,CAAC;IACnC,aAAa,EAAE,MAAM,CAAC;CACvB,iBAyCA"}
@@ -116,6 +116,15 @@ async function runChatAgentForDashboard({ chatSessionId, selectedModel, }) {
116
116
  const chatSession = await getChatSessionFromDashboard(chatSessionId);
117
117
  const chatState = chatSession.chat_state;
118
118
  const branchName = chatSession.branch_name;
119
+ const trace = llm_1.langfuseInstance?.trace({
120
+ id: chatSession.langfuse_trace_id,
121
+ name: "chat_agent",
122
+ input: chatState,
123
+ tags: [selectedModel, "chat_agent"],
124
+ metadata: {
125
+ chatSessionId,
126
+ },
127
+ });
119
128
  await (0, git_1.checkoutBranch)(branchName);
120
129
  let chatModel = (0, model_1.createChatModel)(chatState.messages, selectedModel);
121
130
  let reporterFunc = async (chatState, latest) => {
@@ -137,6 +146,7 @@ async function runChatAgentForDashboard({ chatSessionId, selectedModel, }) {
137
146
  chatModel,
138
147
  selectedModel,
139
148
  reporter: reporterFunc,
149
+ trace,
140
150
  });
141
151
  await (0, git_1.commitLocalAndPushBranchToRemote)(branchName);
142
152
  }
@@ -1 +1 @@
1
- {"version":3,"file":"commit-and-create-pr.d.ts","sourceRoot":"","sources":["../../src/tools/commit-and-create-pr.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAQnD,UAAU,cAAc;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAiB1D;AA2CD,eAAO,MAAM,wBAAwB,EAAE,IA8FtC,CAAC"}
1
+ {"version":3,"file":"commit-and-create-pr.d.ts","sourceRoot":"","sources":["../../src/tools/commit-and-create-pr.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAQnD,UAAU,cAAc;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAiB1D;AA2CD,eAAO,MAAM,wBAAwB,EAAE,IAwFtC,CAAC"}
@@ -74,12 +74,6 @@ Returns the URL of the created or updated pull request.`,
74
74
  .split("\n")
75
75
  .filter((line) => line && !line.includes(".bak"))
76
76
  .map((line) => line.substring(3)); // Remove status prefix
77
- if (modifiedFiles.length === 0) {
78
- return {
79
- isError: true,
80
- result: "No modified files to commit",
81
- };
82
- }
83
77
  for (const file of modifiedFiles) {
84
78
  (0, child_process_1.execSync)(`git add "${file}"`);
85
79
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empiricalrun/test-gen",
3
- "version": "0.53.10",
3
+ "version": "0.53.12",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -56,7 +56,7 @@
56
56
  "tsx": "^4.16.2",
57
57
  "typescript": "^5.3.3",
58
58
  "zod": "^3.23.8",
59
- "@empiricalrun/llm": "^0.14.5",
59
+ "@empiricalrun/llm": "^0.14.7",
60
60
  "@empiricalrun/r2-uploader": "^0.3.8",
61
61
  "@empiricalrun/test-run": "^0.7.7"
62
62
  },