@sentry/junior 0.1.0 → 0.2.0

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.
@@ -1,6 +1,12 @@
1
1
  import * as Sentry from '@sentry/nextjs';
2
2
 
3
+ /**
4
+ * Initializes Sentry for Next.js runtime contexts used by Junior.
5
+ */
3
6
  declare function register(): Promise<void>;
7
+ /**
8
+ * Re-export of Sentry request error handler for Next.js instrumentation wiring.
9
+ */
4
10
  declare const onRequestError: typeof Sentry.captureRequestError;
5
11
 
6
12
  export { onRequestError, register };
@@ -1,5 +1,8 @@
1
1
  import { NextConfig } from 'next';
2
2
 
3
+ /**
4
+ * Optional overrides for `withJunior`.
5
+ */
3
6
  interface JuniorConfigOptions {
4
7
  dataDir?: string;
5
8
  skillsDir?: string;
@@ -9,6 +12,11 @@ interface JuniorConfigOptions {
9
12
  type NextConfigFactory = (phase: string, ctx: {
10
13
  defaultConfig: NextConfig;
11
14
  }) => Promise<NextConfig> | NextConfig;
15
+ /**
16
+ * Extends a Next.js config with Junior runtime defaults.
17
+ *
18
+ * Supports both object and function-style Next config exports.
19
+ */
12
20
  declare function withJunior(nextConfig?: NextConfig | NextConfigFactory, options?: JuniorConfigOptions): NextConfig | NextConfigFactory;
13
21
 
14
22
  export { type JuniorConfigOptions, withJunior };
@@ -72,6 +72,8 @@ function applyJuniorConfig(nextConfig, options) {
72
72
  "@vercel/sandbox",
73
73
  "bash-tool",
74
74
  "just-bash",
75
+ "@mariozechner/pi-agent-core",
76
+ "@mariozechner/pi-ai",
75
77
  "@chat-adapter/slack",
76
78
  "@slack/web-api"
77
79
  ])),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -39,9 +39,7 @@
39
39
  "just-bash": "^2.12.0",
40
40
  "node-html-markdown": "^2.0.0",
41
41
  "yaml": "^2.8.2",
42
- "zod": "^4.3.6",
43
- "@sentry/junior-github": "0.1.0",
44
- "@sentry/junior-sentry": "0.1.0"
42
+ "zod": "^4.3.6"
45
43
  },
46
44
  "peerDependencies": {
47
45
  "@sentry/nextjs": ">=10.0.0",
@@ -65,10 +63,7 @@
65
63
  "vitest-evals": "^0.6.0"
66
64
  },
67
65
  "scripts": {
68
- "dev": "next dev",
69
- "build": "next build",
70
- "build:pkg": "tsup",
71
- "start": "next start",
66
+ "build": "tsup",
72
67
  "test": "pnpm run test:slack-boundary && vitest run",
73
68
  "test:watch": "vitest",
74
69
  "preevals": "pnpm run test:slack-boundary",