polyergon 0.1.2 → 0.1.4

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 (119) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-build-manifest.json +8 -8
  3. package/.next/app-path-routes-manifest.json +1 -1
  4. package/.next/build-manifest.json +3 -3
  5. package/.next/next-minimal-server.js.nft.json +1 -1
  6. package/.next/next-server.js.nft.json +1 -1
  7. package/.next/prerender-manifest.json +1 -1
  8. package/.next/required-server-files.json +1 -1
  9. package/.next/server/app/_not-found/page.js +1 -1
  10. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  11. package/.next/server/app/_not-found.html +1 -1
  12. package/.next/server/app/_not-found.rsc +1 -1
  13. package/.next/server/app/api/automations/existing/route.js +1 -1
  14. package/.next/server/app/api/backends/route.js +1 -1
  15. package/.next/server/app/api/diff/route.js +1 -1
  16. package/.next/server/app/api/limits/route.js +1 -1
  17. package/.next/server/app/api/meetings/[id]/route.js +1 -1
  18. package/.next/server/app/api/meetings/[id]/slack/route.js +2 -2
  19. package/.next/server/app/api/meetings/library/route.js +1 -1
  20. package/.next/server/app/api/meetings/route.js +1 -1
  21. package/.next/server/app/api/models/route.js +1 -1
  22. package/.next/server/app/api/notes/route.js +1 -1
  23. package/.next/server/app/api/orgs/[id]/route.js +1 -1
  24. package/.next/server/app/api/orgs/route.js +1 -1
  25. package/.next/server/app/api/prs/inbox/route.js +1 -1
  26. package/.next/server/app/api/prs/refresh/route.js +1 -1
  27. package/.next/server/app/api/prs/route.js +1 -1
  28. package/.next/server/app/api/session-names/route.js +1 -1
  29. package/.next/server/app/api/sessions/[id]/route.js +1 -1
  30. package/.next/server/app/api/sessions/route.js +1 -1
  31. package/.next/server/app/api/settings/auth/route.js +1 -1
  32. package/.next/server/app/api/settings/route.js +1 -1
  33. package/.next/server/app/api/settings/transcription/route.js +1 -1
  34. package/.next/server/app/api/skills/[name]/route.js +2 -2
  35. package/.next/server/app/api/skills/marketplace/route.js +2 -2
  36. package/.next/server/app/api/skills/route.js +2 -2
  37. package/.next/server/app/api/skills/view/route.js +2 -2
  38. package/.next/server/app/api/slack/channels/route.js +1 -1
  39. package/.next/server/app/api/slack/configured/route.js +1 -1
  40. package/.next/server/app/api/slack/inbox/route.js +1 -1
  41. package/.next/server/app/api/tasks/route.js +1 -1
  42. package/.next/server/app/api/usage/route.js +1 -1
  43. package/.next/server/app/demo/page.js +1 -1
  44. package/.next/server/app/demo/page.js.nft.json +1 -1
  45. package/.next/server/app/demo/page_client-reference-manifest.js +1 -1
  46. package/.next/server/app/demo.html +1 -1
  47. package/.next/server/app/demo.rsc +2 -2
  48. package/.next/server/app/favicon.ico/route.js +2 -2
  49. package/.next/server/app/index.html +1 -1
  50. package/.next/server/app/index.rsc +2 -2
  51. package/.next/server/app/page.js +3 -3
  52. package/.next/server/app/page.js.nft.json +1 -1
  53. package/.next/server/app/page_client-reference-manifest.js +1 -1
  54. package/.next/server/app-paths-manifest.json +22 -22
  55. package/.next/server/chunks/{919.js → 230.js} +1 -1
  56. package/.next/server/chunks/36.js +1 -1
  57. package/.next/server/chunks/471.js +1 -1
  58. package/.next/server/chunks/590.js +1 -1
  59. package/.next/server/chunks/621.js +1 -1
  60. package/.next/server/chunks/972.js +2 -2
  61. package/.next/server/functions-config-manifest.json +1 -1
  62. package/.next/server/middleware-build-manifest.js +1 -1
  63. package/.next/server/pages/404.html +1 -1
  64. package/.next/server/pages/500.html +1 -1
  65. package/.next/server/server-reference-manifest.json +1 -1
  66. package/.next/static/chunks/app/demo/{page-50b5f69fe68ee923.js → page-7420731cd3533884.js} +1 -1
  67. package/.next/static/chunks/app/layout-d4e0e8009d3c2d10.js +1 -0
  68. package/.next/static/chunks/app/page-f59a702198ab6800.js +1 -0
  69. package/.next/static/chunks/main-app-bcfbc1d8b71a1721.js +1 -0
  70. package/.next/static/css/4e20bb95d8c93645.css +3 -0
  71. package/.next/trace +23 -23
  72. package/.next/types/app/api/automations/existing/route.ts +1 -1
  73. package/.next/types/app/api/backends/route.ts +1 -1
  74. package/.next/types/app/api/diff/route.ts +1 -1
  75. package/.next/types/app/api/limits/route.ts +1 -1
  76. package/.next/types/app/api/meetings/[id]/route.ts +1 -1
  77. package/.next/types/app/api/meetings/[id]/slack/route.ts +1 -1
  78. package/.next/types/app/api/meetings/library/route.ts +1 -1
  79. package/.next/types/app/api/meetings/route.ts +1 -1
  80. package/.next/types/app/api/models/route.ts +1 -1
  81. package/.next/types/app/api/notes/route.ts +1 -1
  82. package/.next/types/app/api/orgs/[id]/route.ts +1 -1
  83. package/.next/types/app/api/orgs/route.ts +1 -1
  84. package/.next/types/app/api/prs/inbox/route.ts +1 -1
  85. package/.next/types/app/api/prs/refresh/route.ts +1 -1
  86. package/.next/types/app/api/prs/route.ts +1 -1
  87. package/.next/types/app/api/session-names/route.ts +1 -1
  88. package/.next/types/app/api/sessions/[id]/route.ts +1 -1
  89. package/.next/types/app/api/sessions/route.ts +1 -1
  90. package/.next/types/app/api/settings/auth/route.ts +1 -1
  91. package/.next/types/app/api/settings/route.ts +1 -1
  92. package/.next/types/app/api/settings/transcription/route.ts +1 -1
  93. package/.next/types/app/api/skills/[name]/route.ts +1 -1
  94. package/.next/types/app/api/skills/marketplace/route.ts +1 -1
  95. package/.next/types/app/api/skills/route.ts +1 -1
  96. package/.next/types/app/api/skills/view/route.ts +1 -1
  97. package/.next/types/app/api/slack/channels/route.ts +1 -1
  98. package/.next/types/app/api/slack/configured/route.ts +1 -1
  99. package/.next/types/app/api/slack/inbox/route.ts +1 -1
  100. package/.next/types/app/api/tasks/route.ts +1 -1
  101. package/.next/types/app/api/usage/route.ts +1 -1
  102. package/.next/types/app/demo/page.ts +1 -1
  103. package/.next/types/app/layout.ts +1 -1
  104. package/.next/types/app/page.ts +1 -1
  105. package/.server-dist/server.js +5 -0
  106. package/.server-dist/src/lib/modelCatalog.js +14 -9
  107. package/.server-dist/src/lib/slackBridge.js +5 -1
  108. package/.server-dist/src/lib/slackWatchers.js +28 -3
  109. package/.server-dist/tsconfig.server.tsbuildinfo +1 -1
  110. package/README.md +3 -1
  111. package/bin/polyergon.js +3 -2
  112. package/next.config.mjs +5 -1
  113. package/package.json +1 -1
  114. package/.next/static/chunks/app/layout-d058836232e72324.js +0 -1
  115. package/.next/static/chunks/app/page-a3cd54397a7e7d16.js +0 -1
  116. package/.next/static/chunks/main-app-4b855ea14675b961.js +0 -1
  117. package/.next/static/css/8193479333e5bf15.css +0 -3
  118. /package/.next/static/{LsZw4gVRtU2BL98Bagzak → sHKtMJhzMf5r2iknSwAAE}/_buildManifest.js +0 -0
  119. /package/.next/static/{LsZw4gVRtU2BL98Bagzak → sHKtMJhzMf5r2iknSwAAE}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
1
- // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/npm-build/src/app/api/automations/existing/route.ts
1
+ // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/rel4/src/app/api/automations/existing/route.ts
2
2
  import * as entry from '../../../../../../src/app/api/automations/existing/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
@@ -1,4 +1,4 @@
1
- // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/npm-build/src/app/api/backends/route.ts
1
+ // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/rel4/src/app/api/backends/route.ts
2
2
  import * as entry from '../../../../../src/app/api/backends/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
@@ -1,4 +1,4 @@
1
- // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/npm-build/src/app/api/diff/route.ts
1
+ // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/rel4/src/app/api/diff/route.ts
2
2
  import * as entry from '../../../../../src/app/api/diff/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
@@ -1,4 +1,4 @@
1
- // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/npm-build/src/app/api/limits/route.ts
1
+ // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/rel4/src/app/api/limits/route.ts
2
2
  import * as entry from '../../../../../src/app/api/limits/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
@@ -1,4 +1,4 @@
1
- // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/npm-build/src/app/api/meetings/[id]/route.ts
1
+ // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/rel4/src/app/api/meetings/[id]/route.ts
2
2
  import * as entry from '../../../../../../src/app/api/meetings/[id]/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
@@ -1,4 +1,4 @@
1
- // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/npm-build/src/app/api/meetings/[id]/slack/route.ts
1
+ // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/rel4/src/app/api/meetings/[id]/slack/route.ts
2
2
  import * as entry from '../../../../../../../src/app/api/meetings/[id]/slack/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
@@ -1,4 +1,4 @@
1
- // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/npm-build/src/app/api/meetings/library/route.ts
1
+ // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/rel4/src/app/api/meetings/library/route.ts
2
2
  import * as entry from '../../../../../../src/app/api/meetings/library/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
@@ -1,4 +1,4 @@
1
- // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/npm-build/src/app/api/meetings/route.ts
1
+ // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/rel4/src/app/api/meetings/route.ts
2
2
  import * as entry from '../../../../../src/app/api/meetings/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
@@ -1,4 +1,4 @@
1
- // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/npm-build/src/app/api/models/route.ts
1
+ // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/rel4/src/app/api/models/route.ts
2
2
  import * as entry from '../../../../../src/app/api/models/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
@@ -1,4 +1,4 @@
1
- // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/npm-build/src/app/api/notes/route.ts
1
+ // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/rel4/src/app/api/notes/route.ts
2
2
  import * as entry from '../../../../../src/app/api/notes/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
@@ -1,4 +1,4 @@
1
- // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/npm-build/src/app/api/orgs/[id]/route.ts
1
+ // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/rel4/src/app/api/orgs/[id]/route.ts
2
2
  import * as entry from '../../../../../../src/app/api/orgs/[id]/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
@@ -1,4 +1,4 @@
1
- // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/npm-build/src/app/api/orgs/route.ts
1
+ // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/rel4/src/app/api/orgs/route.ts
2
2
  import * as entry from '../../../../../src/app/api/orgs/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
@@ -1,4 +1,4 @@
1
- // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/npm-build/src/app/api/prs/inbox/route.ts
1
+ // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/rel4/src/app/api/prs/inbox/route.ts
2
2
  import * as entry from '../../../../../../src/app/api/prs/inbox/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
@@ -1,4 +1,4 @@
1
- // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/npm-build/src/app/api/prs/refresh/route.ts
1
+ // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/rel4/src/app/api/prs/refresh/route.ts
2
2
  import * as entry from '../../../../../../src/app/api/prs/refresh/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
@@ -1,4 +1,4 @@
1
- // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/npm-build/src/app/api/prs/route.ts
1
+ // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/rel4/src/app/api/prs/route.ts
2
2
  import * as entry from '../../../../../src/app/api/prs/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
@@ -1,4 +1,4 @@
1
- // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/npm-build/src/app/api/session-names/route.ts
1
+ // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/rel4/src/app/api/session-names/route.ts
2
2
  import * as entry from '../../../../../src/app/api/session-names/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
@@ -1,4 +1,4 @@
1
- // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/npm-build/src/app/api/sessions/[id]/route.ts
1
+ // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/rel4/src/app/api/sessions/[id]/route.ts
2
2
  import * as entry from '../../../../../../src/app/api/sessions/[id]/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
@@ -1,4 +1,4 @@
1
- // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/npm-build/src/app/api/sessions/route.ts
1
+ // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/rel4/src/app/api/sessions/route.ts
2
2
  import * as entry from '../../../../../src/app/api/sessions/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
@@ -1,4 +1,4 @@
1
- // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/npm-build/src/app/api/settings/auth/route.ts
1
+ // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/rel4/src/app/api/settings/auth/route.ts
2
2
  import * as entry from '../../../../../../src/app/api/settings/auth/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
@@ -1,4 +1,4 @@
1
- // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/npm-build/src/app/api/settings/route.ts
1
+ // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/rel4/src/app/api/settings/route.ts
2
2
  import * as entry from '../../../../../src/app/api/settings/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
@@ -1,4 +1,4 @@
1
- // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/npm-build/src/app/api/settings/transcription/route.ts
1
+ // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/rel4/src/app/api/settings/transcription/route.ts
2
2
  import * as entry from '../../../../../../src/app/api/settings/transcription/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
@@ -1,4 +1,4 @@
1
- // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/npm-build/src/app/api/skills/[name]/route.ts
1
+ // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/rel4/src/app/api/skills/[name]/route.ts
2
2
  import * as entry from '../../../../../../src/app/api/skills/[name]/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
@@ -1,4 +1,4 @@
1
- // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/npm-build/src/app/api/skills/marketplace/route.ts
1
+ // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/rel4/src/app/api/skills/marketplace/route.ts
2
2
  import * as entry from '../../../../../../src/app/api/skills/marketplace/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
@@ -1,4 +1,4 @@
1
- // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/npm-build/src/app/api/skills/route.ts
1
+ // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/rel4/src/app/api/skills/route.ts
2
2
  import * as entry from '../../../../../src/app/api/skills/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
@@ -1,4 +1,4 @@
1
- // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/npm-build/src/app/api/skills/view/route.ts
1
+ // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/rel4/src/app/api/skills/view/route.ts
2
2
  import * as entry from '../../../../../../src/app/api/skills/view/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
@@ -1,4 +1,4 @@
1
- // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/npm-build/src/app/api/slack/channels/route.ts
1
+ // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/rel4/src/app/api/slack/channels/route.ts
2
2
  import * as entry from '../../../../../../src/app/api/slack/channels/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
@@ -1,4 +1,4 @@
1
- // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/npm-build/src/app/api/slack/configured/route.ts
1
+ // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/rel4/src/app/api/slack/configured/route.ts
2
2
  import * as entry from '../../../../../../src/app/api/slack/configured/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
@@ -1,4 +1,4 @@
1
- // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/npm-build/src/app/api/slack/inbox/route.ts
1
+ // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/rel4/src/app/api/slack/inbox/route.ts
2
2
  import * as entry from '../../../../../../src/app/api/slack/inbox/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
@@ -1,4 +1,4 @@
1
- // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/npm-build/src/app/api/tasks/route.ts
1
+ // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/rel4/src/app/api/tasks/route.ts
2
2
  import * as entry from '../../../../../src/app/api/tasks/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
@@ -1,4 +1,4 @@
1
- // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/npm-build/src/app/api/usage/route.ts
1
+ // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/rel4/src/app/api/usage/route.ts
2
2
  import * as entry from '../../../../../src/app/api/usage/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
@@ -1,4 +1,4 @@
1
- // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/npm-build/src/app/demo/page.tsx
1
+ // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/rel4/src/app/demo/page.tsx
2
2
  import * as entry from '../../../../src/app/demo/page.js'
3
3
  import type { ResolvingMetadata, ResolvingViewport } from 'next/dist/lib/metadata/types/metadata-interface.js'
4
4
 
@@ -1,4 +1,4 @@
1
- // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/npm-build/src/app/layout.tsx
1
+ // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/rel4/src/app/layout.tsx
2
2
  import * as entry from '../../../src/app/layout.js'
3
3
  import type { ResolvingMetadata, ResolvingViewport } from 'next/dist/lib/metadata/types/metadata-interface.js'
4
4
 
@@ -1,4 +1,4 @@
1
- // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/npm-build/src/app/page.tsx
1
+ // File: /private/tmp/claude-503/-Users-ofiryehoshua/0b425a50-f3c5-49e8-a60e-788bd3aae351/scratchpad/rel4/src/app/page.tsx
2
2
  import * as entry from '../../../src/app/page.js'
3
3
  import type { ResolvingMetadata, ResolvingViewport } from 'next/dist/lib/metadata/types/metadata-interface.js'
4
4
 
@@ -525,6 +525,11 @@ app.prepare().then(async () => {
525
525
  else if (msg.type === 'watcher-dismiss') {
526
526
  slackWatchers_1.slackWatchers.dismiss(msg.id, msg.permalink);
527
527
  }
528
+ else if (msg.type === 'watcher-delegate') {
529
+ const err = slackWatchers_1.slackWatchers.delegate(msg.id, msg.permalink);
530
+ if (err)
531
+ send({ type: 'watcher-error', message: err.error });
532
+ }
528
533
  else if (msg.type === 'watcher-redraft') {
529
534
  slackWatchers_1.slackWatchers.redraft(msg.id, msg.permalink);
530
535
  }
@@ -5,6 +5,8 @@ const child_process_1 = require("child_process");
5
5
  const util_1 = require("util");
6
6
  const crypto_1 = require("crypto");
7
7
  const orgRegistry_1 = require("./orgRegistry");
8
+ const claudeAuth_1 = require("./claudeAuth");
9
+ const backends_1 = require("./backends");
8
10
  const execFileAsync = (0, util_1.promisify)(child_process_1.execFile);
9
11
  const MODELS_URL = 'https://api.anthropic.com/v1/models?limit=1000';
10
12
  const CACHE_TTL_MS = 10 * 60000;
@@ -70,19 +72,19 @@ async function fetchOpencodeModels() {
70
72
  }
71
73
  async function fetchClaudeModels(configDir) {
72
74
  var _a;
73
- const token = await readToken(configDir);
74
- if (!token)
75
+ // API-key mode (Settings → Claude sign-in) uses the key; otherwise the org's login token.
76
+ const apiKey = (0, claudeAuth_1.claudeAuthEnv)().ANTHROPIC_API_KEY;
77
+ const token = apiKey ? null : await readToken(configDir);
78
+ if (!apiKey && !token)
75
79
  throw new Error('No login found for this org');
76
80
  const res = await fetch(MODELS_URL, {
77
- headers: {
78
- Authorization: `Bearer ${token}`,
79
- 'anthropic-version': '2023-06-01',
80
- 'anthropic-beta': 'oauth-2025-04-20',
81
- },
81
+ headers: apiKey
82
+ ? { 'x-api-key': apiKey, 'anthropic-version': '2023-06-01' }
83
+ : { Authorization: `Bearer ${token}`, 'anthropic-version': '2023-06-01', 'anthropic-beta': 'oauth-2025-04-20' },
82
84
  signal: AbortSignal.timeout(15000),
83
85
  });
84
86
  if (res.status === 401)
85
- throw new Error('Token expired — open a Claude session in this org to refresh it');
87
+ throw new Error(apiKey ? 'API key rejected. Check it in Settings' : 'Token expired — open a Claude session in this org to refresh it');
86
88
  if (!res.ok)
87
89
  throw new Error(`Models endpoint returned ${res.status}`);
88
90
  const d = await res.json();
@@ -92,7 +94,7 @@ const cache = new Map();
92
94
  // Keyed by backend + org so each org's own entitlements are reflected.
93
95
  async function getModels(backend, orgId, force = false) {
94
96
  var _a;
95
- const key = `${backend}:${orgId}`;
97
+ const key = `${backend}:${orgId}:${backend === 'claude' && (0, claudeAuth_1.claudeAuthEnv)().ANTHROPIC_API_KEY ? 'key' : 'login'}`;
96
98
  const hit = cache.get(key);
97
99
  if (!force && hit && Date.now() - hit.at < CACHE_TTL_MS)
98
100
  return hit.models;
@@ -109,6 +111,9 @@ async function getModels(backend, orgId, force = false) {
109
111
  // Serve stale on failure rather than an empty dropdown.
110
112
  if (hit)
111
113
  return hit.models;
114
+ // Claude: still offer the CLI's own default so New Session can start.
115
+ if (backend === 'claude')
116
+ return [{ id: backends_1.DEFAULT_MODEL_ID, displayName: `Default (${e instanceof Error ? e.message : 'models unavailable'})` }];
112
117
  throw e;
113
118
  }
114
119
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.orgFile = exports.SlackError = void 0;
3
+ exports.NEEDS_OWNER = exports.orgFile = exports.SlackError = void 0;
4
4
  exports.classifySlackFailure = classifySlackFailure;
5
5
  exports.parseChannels = parseChannels;
6
6
  exports.listSlackChannels = listSlackChannels;
@@ -235,6 +235,8 @@ async function newChannelRequests(channel, sinceIso, orgId = orgRegistry_1.DEFAU
235
235
  'Respond with ONLY a JSON array, no prose: [{"permalink": "https://…slack.com/archives/…", "author": "display name", "text": "the message text"}]', Object.assign(Object.assign({}, opts('claude-sonnet-5-5', orgId)), { timeoutMs: 240000 }));
236
236
  return parseRequests(result);
237
237
  }
238
+ // Marks a draft that only the owner can answer (no auto-post).
239
+ exports.NEEDS_OWNER = 'NEEDS_OWNER:';
238
240
  // Draft a reply. With ctx, Claude answers from a forked copy of that session
239
241
  // (its knowledge and repo), never touching the live session.
240
242
  async function draftChannelReply(r, channel, ctx, orgId = orgRegistry_1.DEFAULT_ORG_ID, extra = {}) {
@@ -244,6 +246,8 @@ async function draftChannelReply(r, channel, ctx, orgId = orgRegistry_1.DEFAULT_
244
246
  (((_a = extra.knowledge) === null || _a === void 0 ? void 0 : _a.trim()) ? `Knowledge sources to check first (web links, files/folders on this Mac, Slack channels, notes):\n${extra.knowledge.trim()}\n` : '') +
245
247
  (((_b = extra.instructions) === null || _b === void 0 ? void 0 : _b.trim()) ? `How to answer (follow this):\n${extra.instructions.trim()}\n` : '') +
246
248
  'Use what you know from this conversation and the code here. If you are not sure, say what you would check instead of guessing. ' +
249
+ 'Never promise work for later ("I\'ll check", "I\'ll post the results"): nobody will do it. ' +
250
+ `If you can't give a real answer now, start the reply with ${exports.NEEDS_OWNER} so I write it myself. ` +
247
251
  'Respond with ONLY the reply text.';
248
252
  const { result } = ctx
249
253
  ? await (0, meetingAssistant_1.runClaude)(prompt, { cwd: ctx.cwd, configDir: ctx.configDir, model: null, extraEnv: slackEnv(ctx.configDir), resumeId: ctx.resumeId, forkSession: true, timeoutMs: 300000 })
@@ -7,6 +7,7 @@ const path_1 = require("path");
7
7
  const crypto_1 = require("crypto");
8
8
  const dataDir_1 = require("./dataDir");
9
9
  const liveSessionStore_1 = require("./liveSessionStore");
10
+ const ptyManager_1 = require("./ptyManager");
10
11
  const orgRegistry_1 = require("./orgRegistry");
11
12
  const slackBridge_1 = require("./slackBridge");
12
13
  const FILE = (0, path_1.join)(dataDir_1.DATA_DIR, 'slack-watchers.json');
@@ -140,17 +141,22 @@ class SlackWatcherEngine {
140
141
  if (!it)
141
142
  return;
142
143
  try {
143
- it.draft = await (0, slackBridge_1.draftChannelReply)(it, w.channel.name, this.ctxFor(w), w.orgId, { knowledge: w.knowledge, instructions: w.instructions });
144
+ const raw = await (0, slackBridge_1.draftChannelReply)(it, w.channel.name, this.ctxFor(w), w.orgId, { knowledge: w.knowledge, instructions: w.instructions });
145
+ const needsYou = raw.startsWith(slackBridge_1.NEEDS_OWNER);
146
+ it.draft = needsYou ? raw.slice(slackBridge_1.NEEDS_OWNER.length).trim() : raw;
144
147
  // Auto-answer only messages posted after you started the watcher; older backlog waits for your approval
145
148
  const backlog = !(Date.parse((0, slackBridge_1.timeFromPermalink)(it.permalink) || '') >= w.createdAt); // unknown time counts as backlog
146
- if (w.mode === 'auto' && !backlog) {
149
+ if (w.mode === 'auto' && !backlog && needsYou && w.liveId) {
150
+ this.delegate(w.id, it.permalink, true);
151
+ }
152
+ else if (w.mode === 'auto' && !backlog && !needsYou) {
147
153
  await (0, slackBridge_1.replyInThread)(it.permalink, it.draft, w.orgId);
148
154
  it.state = 'sent';
149
155
  this.log(w, `Answered ${it.author} automatically`, undefined, { detail: it.draft, link: it.permalink });
150
156
  }
151
157
  else {
152
158
  it.state = 'pending';
153
- this.log(w, `Drafted a reply to ${it.author}${backlog && w.mode === 'auto' ? ' (older message: waits for your OK)' : ''}`, { title: `#${w.channel.name}: reply ready`, body: `${it.author}: ${it.text.slice(0, 80)}` }, { detail: it.draft, link: it.permalink });
159
+ this.log(w, `Drafted a reply to ${it.author}${backlog && w.mode === 'auto' ? ' (older message: waits for your OK)' : ''}${needsYou && w.mode === 'auto' ? ' (needs your answer: not posted)' : ''}`, { title: `#${w.channel.name}: reply ready`, body: `${it.author}: ${it.text.slice(0, 80)}` }, { detail: it.draft, link: it.permalink });
154
160
  }
155
161
  }
156
162
  catch (e) {
@@ -187,6 +193,25 @@ class SlackWatcherEngine {
187
193
  return { error: e.message };
188
194
  }
189
195
  }
196
+ // Hand the request to the linked session: it does the work (runs the checks)
197
+ // and posts the real result in the thread itself.
198
+ delegate(id, permalink, auto = false) {
199
+ const w = this.items.find(x => x.id === id);
200
+ const it = w === null || w === void 0 ? void 0 : w.items.find(i => i.permalink === permalink);
201
+ if (!w || !it)
202
+ return { error: 'Not found' };
203
+ if (!w.liveId || !liveSessionStore_1.liveSessionStore.get(w.liveId))
204
+ return { error: 'Link a session to this watcher first' };
205
+ if (it.state === 'delegated' || it.state === 'sending')
206
+ return { error: 'Already handed off' };
207
+ const text = it.text.replace(/\s+/g, ' ').slice(0, 1500);
208
+ (0, ptyManager_1.sendWhenReady)(w.liveId, `Slack request in #${w.channel.name} from ${it.author} (${it.permalink}): "${text}". ` +
209
+ 'Do the work needed to answer it (run the checks, read the code or logs). Then reply in that Slack thread with the Slack connector, with the actual results. ' +
210
+ 'Report only what you verified; if something failed or you could not check it, say so plainly. Do not promise to do it later.');
211
+ it.state = 'delegated';
212
+ this.log(w, `${auto ? 'Needed real work: sent' : 'You sent'} ${it.author}'s request to the session`, undefined, { detail: it.text, link: it.permalink });
213
+ return null;
214
+ }
190
215
  dismiss(id, permalink) {
191
216
  const w = this.items.find(x => x.id === id);
192
217
  const it = w === null || w === void 0 ? void 0 : w.items.find(i => i.permalink === permalink);