@agentworkforce/sage 1.0.6 → 1.1.1
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/.env.example +5 -4
- package/dist/app.d.ts +0 -6
- package/dist/app.d.ts.map +1 -1
- package/dist/app.js +264 -217
- package/dist/integrations/cloud-proxy-provider.d.ts +42 -0
- package/dist/integrations/cloud-proxy-provider.d.ts.map +1 -0
- package/dist/integrations/cloud-proxy-provider.js +139 -0
- package/dist/integrations/freshness-envelope.d.ts +17 -0
- package/dist/integrations/freshness-envelope.d.ts.map +1 -0
- package/dist/integrations/freshness-envelope.js +41 -0
- package/dist/integrations/freshness-envelope.test.d.ts +2 -0
- package/dist/integrations/freshness-envelope.test.d.ts.map +1 -0
- package/dist/integrations/freshness-envelope.test.js +56 -0
- package/dist/integrations/github-context.d.ts +2 -1
- package/dist/integrations/github-context.d.ts.map +1 -1
- package/dist/integrations/github-context.js +4 -2
- package/dist/integrations/github.d.ts +4 -2
- package/dist/integrations/github.d.ts.map +1 -1
- package/dist/integrations/github.js +16 -11
- package/dist/integrations/recent-actions-overlay.d.ts +31 -0
- package/dist/integrations/recent-actions-overlay.d.ts.map +1 -0
- package/dist/integrations/recent-actions-overlay.js +80 -0
- package/dist/integrations/recent-actions-overlay.test.d.ts +2 -0
- package/dist/integrations/recent-actions-overlay.test.d.ts.map +1 -0
- package/dist/integrations/recent-actions-overlay.test.js +145 -0
- package/dist/integrations/slack-egress.d.ts +28 -0
- package/dist/integrations/slack-egress.d.ts.map +1 -0
- package/dist/integrations/slack-egress.js +181 -0
- package/dist/integrations/slack-ingress.d.ts +26 -0
- package/dist/integrations/slack-ingress.d.ts.map +1 -0
- package/dist/integrations/slack-ingress.js +31 -0
- package/dist/memory/org-memory.d.ts.map +1 -1
- package/dist/memory/org-memory.js +1 -0
- package/dist/memory.d.ts.map +1 -1
- package/dist/memory.js +1 -0
- package/dist/nango.d.ts +1 -6
- package/dist/nango.d.ts.map +1 -1
- package/dist/nango.js +9 -34
- package/dist/openrouter.d.ts.map +1 -1
- package/dist/openrouter.js +2 -1
- package/dist/proactive/context-watcher.d.ts +2 -2
- package/dist/proactive/context-watcher.d.ts.map +1 -1
- package/dist/proactive/context-watcher.js +5 -3
- package/dist/proactive/engine.d.ts +5 -9
- package/dist/proactive/engine.d.ts.map +1 -1
- package/dist/proactive/engine.js +25 -20
- package/dist/proactive/evidence-sources/affirmative-reply-source.d.ts.map +1 -1
- package/dist/proactive/evidence-sources/affirmative-reply-source.js +4 -2
- package/dist/proactive/evidence-sources/explicit-close-source.d.ts.map +1 -1
- package/dist/proactive/evidence-sources/explicit-close-source.js +4 -2
- package/dist/proactive/evidence-sources/pr-merge-source.d.ts.map +1 -1
- package/dist/proactive/evidence-sources/pr-merge-source.js +12 -5
- package/dist/proactive/evidence-sources/reaction-source.d.ts.map +1 -1
- package/dist/proactive/evidence-sources/reaction-source.js +6 -15
- package/dist/proactive/follow-up-checker.d.ts +4 -4
- package/dist/proactive/follow-up-checker.d.ts.map +1 -1
- package/dist/proactive/follow-up-checker.js +40 -21
- package/dist/proactive/integrations/slack-egress.d.ts +2 -0
- package/dist/proactive/integrations/slack-egress.d.ts.map +1 -0
- package/dist/proactive/integrations/slack-egress.js +1 -0
- package/dist/proactive/pr-matcher.d.ts +2 -2
- package/dist/proactive/pr-matcher.d.ts.map +1 -1
- package/dist/proactive/pr-matcher.js +8 -6
- package/dist/proactive/stale-thread-detector.d.ts +2 -2
- package/dist/proactive/stale-thread-detector.d.ts.map +1 -1
- package/dist/proactive/stale-thread-detector.js +16 -23
- package/dist/proactive/types.d.ts +8 -6
- package/dist/proactive/types.d.ts.map +1 -1
- package/dist/slack.d.ts +3 -13
- package/dist/slack.d.ts.map +1 -1
- package/dist/slack.js +7 -108
- package/dist/types.d.ts +1 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -1
package/.env.example
CHANGED
|
@@ -4,13 +4,14 @@ SAGE_WORKSPACE_ID=default
|
|
|
4
4
|
GITHUB_ORG=AgentWorkforce
|
|
5
5
|
PORT=3777
|
|
6
6
|
|
|
7
|
-
# Nango —
|
|
7
|
+
# Nango — GitHub integration still uses Nango.
|
|
8
|
+
# Slack intentionally has no NANGO_SLACK_* variables anymore.
|
|
8
9
|
NANGO_SECRET_KEY=your-nango-secret-key
|
|
9
10
|
|
|
10
|
-
# Upstream workspace API — resolves per-workspace
|
|
11
|
+
# Upstream workspace API — Slack egress/ingress resolves per-workspace
|
|
12
|
+
# connections here, so Slack no longer needs dedicated Nango env vars.
|
|
11
13
|
CLOUD_API_URL=https://your-workspace-api.example.com
|
|
12
14
|
CLOUD_API_TOKEN=your-workspace-api-token
|
|
13
15
|
|
|
14
|
-
# Static local-dev
|
|
16
|
+
# Static local-dev fallback used when CLOUD_API_URL/CLOUD_API_TOKEN are unset
|
|
15
17
|
NANGO_GITHUB_CONNECTION_ID=your-github-connection-id
|
|
16
|
-
NANGO_SLACK_CONNECTION_ID=your-slack-connection-id
|
package/dist/app.d.ts
CHANGED
|
@@ -3,17 +3,11 @@ import type { SageBindings } from "./types.js";
|
|
|
3
3
|
interface AppVariables {
|
|
4
4
|
rawSlackBody: string;
|
|
5
5
|
slackPayload: unknown;
|
|
6
|
-
nangoEnvelopeConnectionId: string | null;
|
|
7
|
-
nangoEnvelopeProviderConfigKey: string | null;
|
|
8
6
|
}
|
|
9
7
|
type AppEnv = {
|
|
10
8
|
Bindings: SageBindings;
|
|
11
9
|
Variables: AppVariables;
|
|
12
10
|
};
|
|
13
|
-
export interface ResolvedSlackConnection {
|
|
14
|
-
connectionId: string;
|
|
15
|
-
providerConfigKey: string;
|
|
16
|
-
}
|
|
17
11
|
export declare function createSageApp(): Hono<AppEnv>;
|
|
18
12
|
export {};
|
|
19
13
|
//# sourceMappingURL=app.d.ts.map
|
package/dist/app.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AA0C5B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAwB/C,UAAU,YAAY;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,KAAK,MAAM,GAAG;IACZ,QAAQ,EAAE,YAAY,CAAC;IACvB,SAAS,EAAE,YAAY,CAAC;CACzB,CAAC;AA8tCF,wBAAgB,aAAa,IAAI,IAAI,CAAC,MAAM,CAAC,CA6gB5C"}
|