@inkeep/agents-work-apps 0.0.0-dev-20260213222830 → 0.0.0-dev-20260213223619

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/env.d.ts CHANGED
@@ -14,11 +14,11 @@ declare const envSchema: z.ZodObject<{
14
14
  pentest: "pentest";
15
15
  }>>;
16
16
  LOG_LEVEL: z.ZodDefault<z.ZodEnum<{
17
- error: "error";
18
17
  trace: "trace";
19
18
  debug: "debug";
20
19
  info: "info";
21
20
  warn: "warn";
21
+ error: "error";
22
22
  }>>;
23
23
  INKEEP_AGENTS_RUN_DATABASE_URL: z.ZodString;
24
24
  INKEEP_AGENTS_MANAGE_UI_URL: z.ZodOptional<z.ZodString>;
@@ -43,7 +43,7 @@ declare const envSchema: z.ZodObject<{
43
43
  declare const env: {
44
44
  NODE_ENV: "development" | "production" | "test";
45
45
  ENVIRONMENT: "development" | "production" | "test" | "pentest";
46
- LOG_LEVEL: "error" | "trace" | "debug" | "info" | "warn";
46
+ LOG_LEVEL: "trace" | "debug" | "info" | "warn" | "error";
47
47
  INKEEP_AGENTS_RUN_DATABASE_URL: string;
48
48
  INKEEP_AGENTS_MANAGE_UI_URL?: string | undefined;
49
49
  GITHUB_APP_ID?: string | undefined;
@@ -4,10 +4,10 @@ import "./routes/setup.js";
4
4
  import "./routes/tokenExchange.js";
5
5
  import { WebhookVerificationResult, verifyWebhookSignature } from "./routes/webhooks.js";
6
6
  import { Hono } from "hono";
7
- import * as hono_types0 from "hono/types";
7
+ import * as hono_types6 from "hono/types";
8
8
 
9
9
  //#region src/github/index.d.ts
10
- declare function createGithubRoutes(): Hono<hono_types0.BlankEnv, hono_types0.BlankSchema, "/">;
11
- declare const githubRoutes: Hono<hono_types0.BlankEnv, hono_types0.BlankSchema, "/">;
10
+ declare function createGithubRoutes(): Hono<hono_types6.BlankEnv, hono_types6.BlankSchema, "/">;
11
+ declare const githubRoutes: Hono<hono_types6.BlankEnv, hono_types6.BlankSchema, "/">;
12
12
  //#endregion
13
13
  export { GenerateInstallationAccessTokenResult, GenerateTokenError, GenerateTokenResult, GitHubAppConfig, InstallationAccessToken, InstallationInfo, LookupInstallationError, LookupInstallationForRepoResult, LookupInstallationResult, WebhookVerificationResult, clearConfigCache, createAppJwt, createGithubRoutes, determineStatus, fetchInstallationDetails, fetchInstallationRepositories, generateInstallationAccessToken, getGitHubAppConfig, getGitHubAppName, getStateSigningSecret, getWebhookSecret, githubRoutes, isGitHubAppConfigured, isGitHubAppNameConfigured, isStateSigningConfigured, isWebhookConfigured, lookupInstallationForRepo, validateGitHubAppConfigOnStartup, validateGitHubInstallFlowConfigOnStartup, validateGitHubWebhookConfigOnStartup, verifyWebhookSignature };
@@ -36,8 +36,8 @@ declare const ChangedFileSchema: z.ZodObject<{
36
36
  path: z.ZodString;
37
37
  status: z.ZodEnum<{
38
38
  added: "added";
39
- removed: "removed";
40
39
  modified: "modified";
40
+ removed: "removed";
41
41
  renamed: "renamed";
42
42
  copied: "copied";
43
43
  changed: "changed";
@@ -1,7 +1,7 @@
1
1
  import { Hono } from "hono";
2
- import * as hono_types4 from "hono/types";
2
+ import * as hono_types0 from "hono/types";
3
3
 
4
4
  //#region src/github/routes/setup.d.ts
5
- declare const app: Hono<hono_types4.BlankEnv, hono_types4.BlankSchema, "/">;
5
+ declare const app: Hono<hono_types0.BlankEnv, hono_types0.BlankSchema, "/">;
6
6
  //#endregion
7
7
  export { app as default };
@@ -1,7 +1,7 @@
1
1
  import { Hono } from "hono";
2
- import * as hono_types6 from "hono/types";
2
+ import * as hono_types4 from "hono/types";
3
3
 
4
4
  //#region src/github/routes/tokenExchange.d.ts
5
- declare const app: Hono<hono_types6.BlankEnv, hono_types6.BlankSchema, "/">;
5
+ declare const app: Hono<hono_types4.BlankEnv, hono_types4.BlankSchema, "/">;
6
6
  //#endregion
7
7
  export { app as default };
@@ -1,5 +1,5 @@
1
1
  import { Hono } from "hono";
2
- import * as hono_types8 from "hono/types";
2
+ import * as hono_types1 from "hono/types";
3
3
 
4
4
  //#region src/github/routes/webhooks.d.ts
5
5
  interface WebhookVerificationResult {
@@ -7,6 +7,6 @@ interface WebhookVerificationResult {
7
7
  error?: string;
8
8
  }
9
9
  declare function verifyWebhookSignature(payload: string, signature: string | undefined, secret: string): WebhookVerificationResult;
10
- declare const app: Hono<hono_types8.BlankEnv, hono_types8.BlankSchema, "/">;
10
+ declare const app: Hono<hono_types1.BlankEnv, hono_types1.BlankSchema, "/">;
11
11
  //#endregion
12
12
  export { WebhookVerificationResult, app as default, verifyWebhookSignature };
@@ -186,6 +186,7 @@ async function streamAgentResponse(params) {
186
186
  thread_ts: threadTs
187
187
  });
188
188
  try {
189
+ let agentCompleted = false;
189
190
  while (true) {
190
191
  const { done, value } = await reader.read();
191
192
  if (done) break;
@@ -198,7 +199,13 @@ async function streamAgentResponse(params) {
198
199
  if (!jsonStr || jsonStr === "[DONE]") continue;
199
200
  try {
200
201
  const data = JSON.parse(jsonStr);
201
- if (data.type === "data-operation") continue;
202
+ if (data.type === "data-operation") {
203
+ if (data.data?.type === "completion") {
204
+ agentCompleted = true;
205
+ break;
206
+ }
207
+ continue;
208
+ }
202
209
  if (data.type === "text-start" || data.type === "text-end") continue;
203
210
  if (data.type === "text-delta" && data.delta) {
204
211
  fullText += data.delta;
@@ -213,6 +220,7 @@ async function streamAgentResponse(params) {
213
220
  }
214
221
  } catch {}
215
222
  }
223
+ if (agentCompleted) break;
216
224
  }
217
225
  clearTimeout(timeoutId);
218
226
  const contextBlock = createContextBlock({ agentName });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-work-apps",
3
- "version": "0.0.0-dev-20260213222830",
3
+ "version": "0.0.0-dev-20260213223619",
4
4
  "description": "First party integrations for Inkeep Agents",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -33,7 +33,7 @@
33
33
  "jose": "^6.1.0",
34
34
  "minimatch": "^10.1.1",
35
35
  "slack-block-builder": "^2.8.0",
36
- "@inkeep/agents-core": "0.0.0-dev-20260213222830"
36
+ "@inkeep/agents-core": "0.0.0-dev-20260213223619"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@hono/zod-openapi": "^1.1.5",