@akasecurity/cli 0.9.7 → 0.9.8

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 (102) hide show
  1. package/README.md +5 -1
  2. package/dist/cli.js +1594 -504
  3. package/extension/manifest.json +1 -1
  4. package/native-host/host.js +1824 -309
  5. package/native-host/scan-worker.js +118 -0
  6. package/native-host/sync.js +19413 -0
  7. package/package.json +6 -4
  8. package/web-ui/rules/core-code-context/localhost-ref.json +2 -2
  9. package/web-ui/web-ui/.next/BUILD_ID +1 -1
  10. package/web-ui/web-ui/.next/app-build-manifest.json +88 -88
  11. package/web-ui/web-ui/.next/app-path-routes-manifest.json +7 -7
  12. package/web-ui/web-ui/.next/build-manifest.json +2 -2
  13. package/web-ui/web-ui/.next/prerender-manifest.json +3 -3
  14. package/web-ui/web-ui/.next/server/app/(app)/activity/page.js +2 -2
  15. package/web-ui/web-ui/.next/server/app/(app)/activity/page.js.nft.json +1 -1
  16. package/web-ui/web-ui/.next/server/app/(app)/activity/page_client-reference-manifest.js +1 -1
  17. package/web-ui/web-ui/.next/server/app/(app)/data-shares/page.js +2 -2
  18. package/web-ui/web-ui/.next/server/app/(app)/data-shares/page.js.nft.json +1 -1
  19. package/web-ui/web-ui/.next/server/app/(app)/data-shares/page_client-reference-manifest.js +1 -1
  20. package/web-ui/web-ui/.next/server/app/(app)/detections/page.js +2 -2
  21. package/web-ui/web-ui/.next/server/app/(app)/detections/page.js.nft.json +1 -1
  22. package/web-ui/web-ui/.next/server/app/(app)/detections/page_client-reference-manifest.js +1 -1
  23. package/web-ui/web-ui/.next/server/app/(app)/exceptions/[id]/page.js +2 -2
  24. package/web-ui/web-ui/.next/server/app/(app)/exceptions/[id]/page.js.nft.json +1 -1
  25. package/web-ui/web-ui/.next/server/app/(app)/exceptions/[id]/page_client-reference-manifest.js +1 -1
  26. package/web-ui/web-ui/.next/server/app/(app)/exceptions/new/page.js +2 -2
  27. package/web-ui/web-ui/.next/server/app/(app)/exceptions/new/page.js.nft.json +1 -1
  28. package/web-ui/web-ui/.next/server/app/(app)/exceptions/new/page_client-reference-manifest.js +1 -1
  29. package/web-ui/web-ui/.next/server/app/(app)/exceptions/page.js +2 -2
  30. package/web-ui/web-ui/.next/server/app/(app)/exceptions/page.js.nft.json +1 -1
  31. package/web-ui/web-ui/.next/server/app/(app)/exceptions/page_client-reference-manifest.js +1 -1
  32. package/web-ui/web-ui/.next/server/app/(app)/findings/page.js +2 -2
  33. package/web-ui/web-ui/.next/server/app/(app)/findings/page.js.nft.json +1 -1
  34. package/web-ui/web-ui/.next/server/app/(app)/findings/page_client-reference-manifest.js +1 -1
  35. package/web-ui/web-ui/.next/server/app/(app)/inventory/page.js +2 -2
  36. package/web-ui/web-ui/.next/server/app/(app)/inventory/page.js.nft.json +1 -1
  37. package/web-ui/web-ui/.next/server/app/(app)/inventory/page_client-reference-manifest.js +1 -1
  38. package/web-ui/web-ui/.next/server/app/(app)/policies/page.js +1 -1
  39. package/web-ui/web-ui/.next/server/app/(app)/policies/page.js.nft.json +1 -1
  40. package/web-ui/web-ui/.next/server/app/(app)/policies/page_client-reference-manifest.js +1 -1
  41. package/web-ui/web-ui/.next/server/app/(app)/scan/page.js +2 -2
  42. package/web-ui/web-ui/.next/server/app/(app)/scan/page.js.nft.json +1 -1
  43. package/web-ui/web-ui/.next/server/app/(app)/scan/page_client-reference-manifest.js +1 -1
  44. package/web-ui/web-ui/.next/server/app/(app)/security/page.js +2 -2
  45. package/web-ui/web-ui/.next/server/app/(app)/security/page.js.nft.json +1 -1
  46. package/web-ui/web-ui/.next/server/app/(app)/security/page_client-reference-manifest.js +1 -1
  47. package/web-ui/web-ui/.next/server/app/(app)/settings/page.js +2 -2
  48. package/web-ui/web-ui/.next/server/app/(app)/settings/page.js.nft.json +1 -1
  49. package/web-ui/web-ui/.next/server/app/(app)/settings/page_client-reference-manifest.js +1 -1
  50. package/web-ui/web-ui/.next/server/app/(app)/updates/page.js +1 -1
  51. package/web-ui/web-ui/.next/server/app/(app)/updates/page.js.nft.json +1 -1
  52. package/web-ui/web-ui/.next/server/app/(app)/updates/page_client-reference-manifest.js +1 -1
  53. package/web-ui/web-ui/.next/server/app/(app)/vault/page.js +1 -1
  54. package/web-ui/web-ui/.next/server/app/(app)/vault/page.js.nft.json +1 -1
  55. package/web-ui/web-ui/.next/server/app/(app)/vault/page_client-reference-manifest.js +1 -1
  56. package/web-ui/web-ui/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  57. package/web-ui/web-ui/.next/server/app/_not-found.html +1 -1
  58. package/web-ui/web-ui/.next/server/app/_not-found.rsc +1 -1
  59. package/web-ui/web-ui/.next/server/app/index.html +1 -1
  60. package/web-ui/web-ui/.next/server/app/index.rsc +1 -1
  61. package/web-ui/web-ui/.next/server/app/page_client-reference-manifest.js +1 -1
  62. package/web-ui/web-ui/.next/server/app-paths-manifest.json +7 -7
  63. package/web-ui/web-ui/.next/server/chunks/258.js +1 -1
  64. package/web-ui/web-ui/.next/server/chunks/271.js +2 -2
  65. package/web-ui/web-ui/.next/server/chunks/314.js +783 -0
  66. package/web-ui/web-ui/.next/server/chunks/523.js +1 -1
  67. package/web-ui/web-ui/.next/server/chunks/{477.js → 844.js} +138 -138
  68. package/web-ui/web-ui/.next/server/chunks/967.js +1 -1
  69. package/web-ui/web-ui/.next/server/functions-config-manifest.json +4 -4
  70. package/web-ui/web-ui/.next/server/middleware-manifest.json +5 -5
  71. package/web-ui/web-ui/.next/server/pages/404.html +1 -1
  72. package/web-ui/web-ui/.next/server/pages/500.html +1 -1
  73. package/web-ui/web-ui/.next/server/pages-manifest.json +1 -1
  74. package/web-ui/web-ui/.next/server/server-reference-manifest.js +1 -1
  75. package/web-ui/web-ui/.next/server/server-reference-manifest.json +1 -1
  76. package/web-ui/web-ui/.next/static/chunks/622-0520747def5cc37b.js +62 -0
  77. package/web-ui/web-ui/.next/static/chunks/699-f5e42f0ed71707d9.js +1 -0
  78. package/web-ui/web-ui/.next/static/chunks/app/(app)/activity/{page-2011aeec5114533f.js → page-ee3b9956abc7cf1b.js} +1 -1
  79. package/web-ui/web-ui/.next/static/chunks/app/(app)/data-shares/page-9997c04ce4d4a451.js +1 -0
  80. package/web-ui/web-ui/.next/static/chunks/app/(app)/detections/page-5c9b3e6f6d832127.js +1 -0
  81. package/web-ui/web-ui/.next/static/chunks/app/(app)/exceptions/[id]/page-5f56a9fa25e7af46.js +1 -0
  82. package/web-ui/web-ui/.next/static/chunks/app/(app)/exceptions/new/page-38dcdc2eb2e47f53.js +1 -0
  83. package/web-ui/web-ui/.next/static/chunks/app/(app)/exceptions/page-94d735bc414c9b5c.js +1 -0
  84. package/web-ui/web-ui/.next/static/chunks/app/(app)/findings/{page-5e9249b49d619cf7.js → page-073d0b64e942914f.js} +1 -1
  85. package/web-ui/web-ui/.next/static/chunks/app/(app)/inventory/page-71344cf66ee67b51.js +1 -0
  86. package/web-ui/web-ui/.next/static/chunks/app/(app)/scan/page-24429599495731bf.js +1 -0
  87. package/web-ui/web-ui/.next/static/chunks/app/(app)/settings/{page-bc4551c2cd096584.js → page-f633645e1112fcb9.js} +1 -1
  88. package/web-ui/web-ui/.next/static/chunks/app/(app)/updates/{page-d0b9a88e5cff5d9b.js → page-429f377f34456a96.js} +1 -1
  89. package/web-ui/web-ui/.next/static/chunks/app/(app)/vault/{page-de6afbc0036fcb0d.js → page-21c59276737a8b9e.js} +1 -1
  90. package/web-ui/web-ui/dist/scan-worker.js +118 -0
  91. package/web-ui/web-ui/.next/server/chunks/129.js +0 -783
  92. package/web-ui/web-ui/.next/static/chunks/622-e65110f232ad3136.js +0 -62
  93. package/web-ui/web-ui/.next/static/chunks/699-3a550a0d6101e35c.js +0 -1
  94. package/web-ui/web-ui/.next/static/chunks/app/(app)/data-shares/page-e8fbf441cdc78d7e.js +0 -1
  95. package/web-ui/web-ui/.next/static/chunks/app/(app)/detections/page-0cf86550a9f22cf8.js +0 -1
  96. package/web-ui/web-ui/.next/static/chunks/app/(app)/exceptions/[id]/page-3b57fa7a28949fdf.js +0 -1
  97. package/web-ui/web-ui/.next/static/chunks/app/(app)/exceptions/new/page-5524f6b8dd008924.js +0 -1
  98. package/web-ui/web-ui/.next/static/chunks/app/(app)/exceptions/page-5fcea0008a2c0bfc.js +0 -1
  99. package/web-ui/web-ui/.next/static/chunks/app/(app)/inventory/page-b1676f9a9b4673f1.js +0 -1
  100. package/web-ui/web-ui/.next/static/chunks/app/(app)/scan/page-3560c03478bda4c7.js +0 -1
  101. /package/web-ui/web-ui/.next/static/{YqH1rSLTmXzavf3MtB9ZX → zjNAa9qOfKutYwuhfySp_}/_buildManifest.js +0 -0
  102. /package/web-ui/web-ui/.next/static/{YqH1rSLTmXzavf3MtB9ZX → zjNAa9qOfKutYwuhfySp_}/_ssgManifest.js +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akasecurity/cli",
3
- "version": "0.9.7",
3
+ "version": "0.9.8",
4
4
  "description": "AI Traffic Control — local-first CLI to inspect and govern AI agent traffic on your machine",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -44,13 +44,15 @@
44
44
  "typescript": "^5.8.0",
45
45
  "vitest": "^4.1.10",
46
46
  "@akasecurity/dashboard-ui": "0.8.0",
47
- "@akasecurity/local-ops": "0.8.0",
48
- "@akasecurity/detections": "0.8.0",
47
+ "@akasecurity/plugin-browser-extension": "0.9.4",
49
48
  "@akasecurity/eslint-config": "0.8.0",
50
49
  "@akasecurity/persistence": "0.8.0",
51
- "@akasecurity/plugin-browser-extension": "0.9.4",
50
+ "@akasecurity/plugin-runtime": "0.8.0",
52
51
  "@akasecurity/plugin-sdk": "0.8.0",
53
52
  "@akasecurity/web-ui": "0.8.0",
53
+ "@akasecurity/local-ops": "0.8.0",
54
+ "@akasecurity/remote": "0.9.7",
55
+ "@akasecurity/detections": "0.8.0",
54
56
  "@akasecurity/schema": "0.8.0"
55
57
  },
56
58
  "scripts": {
@@ -6,8 +6,8 @@
6
6
  "severity": "low",
7
7
  "matcher": {
8
8
  "type": "regex",
9
- "pattern": "\\b(?:localhost|127\\.0\\.0\\.1|0\\.0\\.0\\.0|::1)\\b",
9
+ "pattern": "(?<![A-Za-z0-9_])(?:localhost|127\\.0\\.0\\.1|0\\.0\\.0\\.0|(?<![A-Za-z0-9_]\\[)::1(?!:|\\.[0-9]))(?![A-Za-z0-9_])",
10
10
  "flags": "g"
11
11
  },
12
- "examples": ["localhost", "127.0.0.1"]
12
+ "examples": ["localhost", "127.0.0.1", "0.0.0.0", "::1"]
13
13
  }
@@ -1 +1 @@
1
- YqH1rSLTmXzavf3MtB9ZX
1
+ zjNAa9qOfKutYwuhfySp_
@@ -28,9 +28,9 @@
28
28
  "static/chunks/202-12a474de79b2ad1c.js",
29
29
  "static/chunks/main-app-54d1703ac3de3a4b.js",
30
30
  "static/chunks/180-0ab5475b6174d4b3.js",
31
- "static/chunks/622-e65110f232ad3136.js",
31
+ "static/chunks/622-0520747def5cc37b.js",
32
32
  "static/chunks/392-0af97129ba2175ca.js",
33
- "static/chunks/699-3a550a0d6101e35c.js",
33
+ "static/chunks/699-f5e42f0ed71707d9.js",
34
34
  "static/chunks/app/(app)/layout-bf74f5338553e0b3.js"
35
35
  ],
36
36
  "/(app)/error": [
@@ -39,92 +39,91 @@
39
39
  "static/chunks/202-12a474de79b2ad1c.js",
40
40
  "static/chunks/main-app-54d1703ac3de3a4b.js",
41
41
  "static/chunks/180-0ab5475b6174d4b3.js",
42
- "static/chunks/622-e65110f232ad3136.js",
42
+ "static/chunks/622-0520747def5cc37b.js",
43
43
  "static/chunks/392-0af97129ba2175ca.js",
44
- "static/chunks/699-3a550a0d6101e35c.js",
44
+ "static/chunks/699-f5e42f0ed71707d9.js",
45
45
  "static/chunks/app/(app)/error-b23da3100319d95d.js"
46
46
  ],
47
- "/(app)/data-shares/loading": [
47
+ "/(app)/activity/loading": [
48
48
  "static/chunks/webpack-1b293f289da20845.js",
49
49
  "static/chunks/39f60ebf-2d09993ae96ffb2f.js",
50
50
  "static/chunks/202-12a474de79b2ad1c.js",
51
51
  "static/chunks/main-app-54d1703ac3de3a4b.js",
52
52
  "static/chunks/180-0ab5475b6174d4b3.js",
53
- "static/chunks/app/(app)/data-shares/loading-6dba555198465a8f.js"
53
+ "static/chunks/app/(app)/activity/loading-6dba555198465a8f.js"
54
54
  ],
55
- "/(app)/data-shares/page": [
55
+ "/(app)/activity/page": [
56
56
  "static/chunks/webpack-1b293f289da20845.js",
57
57
  "static/chunks/39f60ebf-2d09993ae96ffb2f.js",
58
58
  "static/chunks/202-12a474de79b2ad1c.js",
59
59
  "static/chunks/main-app-54d1703ac3de3a4b.js",
60
60
  "static/chunks/180-0ab5475b6174d4b3.js",
61
- "static/chunks/622-e65110f232ad3136.js",
62
- "static/chunks/699-3a550a0d6101e35c.js",
63
- "static/chunks/app/(app)/data-shares/page-e8fbf441cdc78d7e.js"
61
+ "static/chunks/622-0520747def5cc37b.js",
62
+ "static/chunks/699-f5e42f0ed71707d9.js",
63
+ "static/chunks/app/(app)/activity/page-ee3b9956abc7cf1b.js"
64
64
  ],
65
- "/(app)/exceptions/loading": [
65
+ "/(app)/data-shares/loading": [
66
66
  "static/chunks/webpack-1b293f289da20845.js",
67
67
  "static/chunks/39f60ebf-2d09993ae96ffb2f.js",
68
68
  "static/chunks/202-12a474de79b2ad1c.js",
69
69
  "static/chunks/main-app-54d1703ac3de3a4b.js",
70
70
  "static/chunks/180-0ab5475b6174d4b3.js",
71
- "static/chunks/app/(app)/exceptions/loading-6dba555198465a8f.js"
71
+ "static/chunks/app/(app)/data-shares/loading-6dba555198465a8f.js"
72
72
  ],
73
- "/(app)/exceptions/new/loading": [
73
+ "/(app)/data-shares/page": [
74
74
  "static/chunks/webpack-1b293f289da20845.js",
75
75
  "static/chunks/39f60ebf-2d09993ae96ffb2f.js",
76
76
  "static/chunks/202-12a474de79b2ad1c.js",
77
77
  "static/chunks/main-app-54d1703ac3de3a4b.js",
78
78
  "static/chunks/180-0ab5475b6174d4b3.js",
79
- "static/chunks/app/(app)/exceptions/new/loading-6dba555198465a8f.js"
79
+ "static/chunks/622-0520747def5cc37b.js",
80
+ "static/chunks/699-f5e42f0ed71707d9.js",
81
+ "static/chunks/app/(app)/data-shares/page-9997c04ce4d4a451.js"
80
82
  ],
81
- "/(app)/exceptions/new/page": [
83
+ "/(app)/detections/loading": [
82
84
  "static/chunks/webpack-1b293f289da20845.js",
83
85
  "static/chunks/39f60ebf-2d09993ae96ffb2f.js",
84
86
  "static/chunks/202-12a474de79b2ad1c.js",
85
87
  "static/chunks/main-app-54d1703ac3de3a4b.js",
86
88
  "static/chunks/180-0ab5475b6174d4b3.js",
87
- "static/chunks/622-e65110f232ad3136.js",
88
- "static/chunks/392-0af97129ba2175ca.js",
89
- "static/chunks/699-3a550a0d6101e35c.js",
90
- "static/chunks/app/(app)/exceptions/new/page-5524f6b8dd008924.js"
89
+ "static/chunks/app/(app)/detections/loading-6dba555198465a8f.js"
91
90
  ],
92
- "/(app)/findings/loading": [
91
+ "/(app)/detections/page": [
93
92
  "static/chunks/webpack-1b293f289da20845.js",
94
93
  "static/chunks/39f60ebf-2d09993ae96ffb2f.js",
95
94
  "static/chunks/202-12a474de79b2ad1c.js",
96
95
  "static/chunks/main-app-54d1703ac3de3a4b.js",
97
96
  "static/chunks/180-0ab5475b6174d4b3.js",
98
- "static/chunks/app/(app)/findings/loading-6dba555198465a8f.js"
97
+ "static/chunks/622-0520747def5cc37b.js",
98
+ "static/chunks/699-f5e42f0ed71707d9.js",
99
+ "static/chunks/app/(app)/detections/page-5c9b3e6f6d832127.js"
99
100
  ],
100
- "/(app)/findings/page": [
101
+ "/(app)/findings/loading": [
101
102
  "static/chunks/webpack-1b293f289da20845.js",
102
103
  "static/chunks/39f60ebf-2d09993ae96ffb2f.js",
103
104
  "static/chunks/202-12a474de79b2ad1c.js",
104
105
  "static/chunks/main-app-54d1703ac3de3a4b.js",
105
106
  "static/chunks/180-0ab5475b6174d4b3.js",
106
- "static/chunks/622-e65110f232ad3136.js",
107
- "static/chunks/392-0af97129ba2175ca.js",
108
- "static/chunks/699-3a550a0d6101e35c.js",
109
- "static/chunks/app/(app)/findings/page-5e9249b49d619cf7.js"
107
+ "static/chunks/app/(app)/findings/loading-6dba555198465a8f.js"
110
108
  ],
111
- "/(app)/activity/loading": [
109
+ "/(app)/findings/page": [
112
110
  "static/chunks/webpack-1b293f289da20845.js",
113
111
  "static/chunks/39f60ebf-2d09993ae96ffb2f.js",
114
112
  "static/chunks/202-12a474de79b2ad1c.js",
115
113
  "static/chunks/main-app-54d1703ac3de3a4b.js",
116
114
  "static/chunks/180-0ab5475b6174d4b3.js",
117
- "static/chunks/app/(app)/activity/loading-6dba555198465a8f.js"
115
+ "static/chunks/622-0520747def5cc37b.js",
116
+ "static/chunks/392-0af97129ba2175ca.js",
117
+ "static/chunks/699-f5e42f0ed71707d9.js",
118
+ "static/chunks/app/(app)/findings/page-073d0b64e942914f.js"
118
119
  ],
119
- "/(app)/activity/page": [
120
+ "/(app)/exceptions/loading": [
120
121
  "static/chunks/webpack-1b293f289da20845.js",
121
122
  "static/chunks/39f60ebf-2d09993ae96ffb2f.js",
122
123
  "static/chunks/202-12a474de79b2ad1c.js",
123
124
  "static/chunks/main-app-54d1703ac3de3a4b.js",
124
125
  "static/chunks/180-0ab5475b6174d4b3.js",
125
- "static/chunks/622-e65110f232ad3136.js",
126
- "static/chunks/699-3a550a0d6101e35c.js",
127
- "static/chunks/app/(app)/activity/page-2011aeec5114533f.js"
126
+ "static/chunks/app/(app)/exceptions/loading-6dba555198465a8f.js"
128
127
  ],
129
128
  "/(app)/exceptions/page": [
130
129
  "static/chunks/webpack-1b293f289da20845.js",
@@ -132,65 +131,66 @@
132
131
  "static/chunks/202-12a474de79b2ad1c.js",
133
132
  "static/chunks/main-app-54d1703ac3de3a4b.js",
134
133
  "static/chunks/180-0ab5475b6174d4b3.js",
135
- "static/chunks/622-e65110f232ad3136.js",
134
+ "static/chunks/622-0520747def5cc37b.js",
136
135
  "static/chunks/392-0af97129ba2175ca.js",
137
- "static/chunks/699-3a550a0d6101e35c.js",
138
- "static/chunks/app/(app)/exceptions/page-5fcea0008a2c0bfc.js"
136
+ "static/chunks/699-f5e42f0ed71707d9.js",
137
+ "static/chunks/app/(app)/exceptions/page-94d735bc414c9b5c.js"
139
138
  ],
140
- "/(app)/policies/loading": [
139
+ "/(app)/exceptions/new/loading": [
141
140
  "static/chunks/webpack-1b293f289da20845.js",
142
141
  "static/chunks/39f60ebf-2d09993ae96ffb2f.js",
143
142
  "static/chunks/202-12a474de79b2ad1c.js",
144
143
  "static/chunks/main-app-54d1703ac3de3a4b.js",
145
144
  "static/chunks/180-0ab5475b6174d4b3.js",
146
- "static/chunks/app/(app)/policies/loading-6dba555198465a8f.js"
145
+ "static/chunks/app/(app)/exceptions/new/loading-6dba555198465a8f.js"
147
146
  ],
148
- "/(app)/policies/page": [
147
+ "/(app)/exceptions/new/page": [
149
148
  "static/chunks/webpack-1b293f289da20845.js",
150
149
  "static/chunks/39f60ebf-2d09993ae96ffb2f.js",
151
150
  "static/chunks/202-12a474de79b2ad1c.js",
152
151
  "static/chunks/main-app-54d1703ac3de3a4b.js",
153
152
  "static/chunks/180-0ab5475b6174d4b3.js",
154
- "static/chunks/622-e65110f232ad3136.js",
155
- "static/chunks/699-3a550a0d6101e35c.js",
156
- "static/chunks/app/(app)/policies/page-5bdaaab9140bb24a.js"
153
+ "static/chunks/622-0520747def5cc37b.js",
154
+ "static/chunks/392-0af97129ba2175ca.js",
155
+ "static/chunks/699-f5e42f0ed71707d9.js",
156
+ "static/chunks/app/(app)/exceptions/new/page-38dcdc2eb2e47f53.js"
157
157
  ],
158
- "/(app)/detections/loading": [
158
+ "/(app)/scan/loading": [
159
159
  "static/chunks/webpack-1b293f289da20845.js",
160
160
  "static/chunks/39f60ebf-2d09993ae96ffb2f.js",
161
161
  "static/chunks/202-12a474de79b2ad1c.js",
162
162
  "static/chunks/main-app-54d1703ac3de3a4b.js",
163
163
  "static/chunks/180-0ab5475b6174d4b3.js",
164
- "static/chunks/app/(app)/detections/loading-6dba555198465a8f.js"
164
+ "static/chunks/app/(app)/scan/loading-6dba555198465a8f.js"
165
165
  ],
166
- "/(app)/detections/page": [
166
+ "/(app)/scan/page": [
167
167
  "static/chunks/webpack-1b293f289da20845.js",
168
168
  "static/chunks/39f60ebf-2d09993ae96ffb2f.js",
169
169
  "static/chunks/202-12a474de79b2ad1c.js",
170
170
  "static/chunks/main-app-54d1703ac3de3a4b.js",
171
171
  "static/chunks/180-0ab5475b6174d4b3.js",
172
- "static/chunks/622-e65110f232ad3136.js",
173
- "static/chunks/699-3a550a0d6101e35c.js",
174
- "static/chunks/app/(app)/detections/page-0cf86550a9f22cf8.js"
172
+ "static/chunks/622-0520747def5cc37b.js",
173
+ "static/chunks/392-0af97129ba2175ca.js",
174
+ "static/chunks/699-f5e42f0ed71707d9.js",
175
+ "static/chunks/app/(app)/scan/page-24429599495731bf.js"
175
176
  ],
176
- "/(app)/scan/loading": [
177
+ "/(app)/policies/loading": [
177
178
  "static/chunks/webpack-1b293f289da20845.js",
178
179
  "static/chunks/39f60ebf-2d09993ae96ffb2f.js",
179
180
  "static/chunks/202-12a474de79b2ad1c.js",
180
181
  "static/chunks/main-app-54d1703ac3de3a4b.js",
181
182
  "static/chunks/180-0ab5475b6174d4b3.js",
182
- "static/chunks/app/(app)/scan/loading-6dba555198465a8f.js"
183
+ "static/chunks/app/(app)/policies/loading-6dba555198465a8f.js"
183
184
  ],
184
- "/(app)/scan/page": [
185
+ "/(app)/policies/page": [
185
186
  "static/chunks/webpack-1b293f289da20845.js",
186
187
  "static/chunks/39f60ebf-2d09993ae96ffb2f.js",
187
188
  "static/chunks/202-12a474de79b2ad1c.js",
188
189
  "static/chunks/main-app-54d1703ac3de3a4b.js",
189
190
  "static/chunks/180-0ab5475b6174d4b3.js",
190
- "static/chunks/622-e65110f232ad3136.js",
191
- "static/chunks/392-0af97129ba2175ca.js",
192
- "static/chunks/699-3a550a0d6101e35c.js",
193
- "static/chunks/app/(app)/scan/page-3560c03478bda4c7.js"
191
+ "static/chunks/622-0520747def5cc37b.js",
192
+ "static/chunks/699-f5e42f0ed71707d9.js",
193
+ "static/chunks/app/(app)/policies/page-5bdaaab9140bb24a.js"
194
194
  ],
195
195
  "/(app)/inventory/loading": [
196
196
  "static/chunks/webpack-1b293f289da20845.js",
@@ -206,100 +206,100 @@
206
206
  "static/chunks/202-12a474de79b2ad1c.js",
207
207
  "static/chunks/main-app-54d1703ac3de3a4b.js",
208
208
  "static/chunks/180-0ab5475b6174d4b3.js",
209
- "static/chunks/622-e65110f232ad3136.js",
210
- "static/chunks/699-3a550a0d6101e35c.js",
211
- "static/chunks/app/(app)/inventory/page-b1676f9a9b4673f1.js"
209
+ "static/chunks/622-0520747def5cc37b.js",
210
+ "static/chunks/699-f5e42f0ed71707d9.js",
211
+ "static/chunks/app/(app)/inventory/page-71344cf66ee67b51.js"
212
212
  ],
213
- "/(app)/settings/loading": [
213
+ "/(app)/security/loading": [
214
214
  "static/chunks/webpack-1b293f289da20845.js",
215
215
  "static/chunks/39f60ebf-2d09993ae96ffb2f.js",
216
216
  "static/chunks/202-12a474de79b2ad1c.js",
217
217
  "static/chunks/main-app-54d1703ac3de3a4b.js",
218
218
  "static/chunks/180-0ab5475b6174d4b3.js",
219
- "static/chunks/app/(app)/settings/loading-6dba555198465a8f.js"
219
+ "static/chunks/app/(app)/security/loading-6dba555198465a8f.js"
220
220
  ],
221
- "/(app)/settings/page": [
221
+ "/(app)/security/page": [
222
222
  "static/chunks/webpack-1b293f289da20845.js",
223
223
  "static/chunks/39f60ebf-2d09993ae96ffb2f.js",
224
224
  "static/chunks/202-12a474de79b2ad1c.js",
225
225
  "static/chunks/main-app-54d1703ac3de3a4b.js",
226
226
  "static/chunks/180-0ab5475b6174d4b3.js",
227
- "static/chunks/622-e65110f232ad3136.js",
228
- "static/chunks/699-3a550a0d6101e35c.js",
229
- "static/chunks/app/(app)/settings/page-bc4551c2cd096584.js"
227
+ "static/chunks/622-0520747def5cc37b.js",
228
+ "static/chunks/699-f5e42f0ed71707d9.js",
229
+ "static/chunks/app/(app)/security/page-d9a6be4fb74dd62b.js"
230
230
  ],
231
- "/(app)/vault/loading": [
231
+ "/(app)/settings/loading": [
232
232
  "static/chunks/webpack-1b293f289da20845.js",
233
233
  "static/chunks/39f60ebf-2d09993ae96ffb2f.js",
234
234
  "static/chunks/202-12a474de79b2ad1c.js",
235
235
  "static/chunks/main-app-54d1703ac3de3a4b.js",
236
236
  "static/chunks/180-0ab5475b6174d4b3.js",
237
- "static/chunks/app/(app)/vault/loading-6dba555198465a8f.js"
237
+ "static/chunks/app/(app)/settings/loading-6dba555198465a8f.js"
238
238
  ],
239
- "/(app)/vault/page": [
239
+ "/(app)/settings/page": [
240
240
  "static/chunks/webpack-1b293f289da20845.js",
241
241
  "static/chunks/39f60ebf-2d09993ae96ffb2f.js",
242
242
  "static/chunks/202-12a474de79b2ad1c.js",
243
243
  "static/chunks/main-app-54d1703ac3de3a4b.js",
244
244
  "static/chunks/180-0ab5475b6174d4b3.js",
245
- "static/chunks/622-e65110f232ad3136.js",
246
- "static/chunks/699-3a550a0d6101e35c.js",
247
- "static/chunks/app/(app)/vault/page-de6afbc0036fcb0d.js"
245
+ "static/chunks/622-0520747def5cc37b.js",
246
+ "static/chunks/699-f5e42f0ed71707d9.js",
247
+ "static/chunks/app/(app)/settings/page-f633645e1112fcb9.js"
248
248
  ],
249
- "/(app)/security/loading": [
249
+ "/(app)/vault/loading": [
250
250
  "static/chunks/webpack-1b293f289da20845.js",
251
251
  "static/chunks/39f60ebf-2d09993ae96ffb2f.js",
252
252
  "static/chunks/202-12a474de79b2ad1c.js",
253
253
  "static/chunks/main-app-54d1703ac3de3a4b.js",
254
254
  "static/chunks/180-0ab5475b6174d4b3.js",
255
- "static/chunks/app/(app)/security/loading-6dba555198465a8f.js"
255
+ "static/chunks/app/(app)/vault/loading-6dba555198465a8f.js"
256
256
  ],
257
- "/(app)/security/page": [
257
+ "/(app)/vault/page": [
258
258
  "static/chunks/webpack-1b293f289da20845.js",
259
259
  "static/chunks/39f60ebf-2d09993ae96ffb2f.js",
260
260
  "static/chunks/202-12a474de79b2ad1c.js",
261
261
  "static/chunks/main-app-54d1703ac3de3a4b.js",
262
262
  "static/chunks/180-0ab5475b6174d4b3.js",
263
- "static/chunks/622-e65110f232ad3136.js",
264
- "static/chunks/699-3a550a0d6101e35c.js",
265
- "static/chunks/app/(app)/security/page-d9a6be4fb74dd62b.js"
263
+ "static/chunks/622-0520747def5cc37b.js",
264
+ "static/chunks/699-f5e42f0ed71707d9.js",
265
+ "static/chunks/app/(app)/vault/page-21c59276737a8b9e.js"
266
266
  ],
267
- "/(app)/updates/loading": [
267
+ "/(app)/exceptions/[id]/loading": [
268
268
  "static/chunks/webpack-1b293f289da20845.js",
269
269
  "static/chunks/39f60ebf-2d09993ae96ffb2f.js",
270
270
  "static/chunks/202-12a474de79b2ad1c.js",
271
271
  "static/chunks/main-app-54d1703ac3de3a4b.js",
272
272
  "static/chunks/180-0ab5475b6174d4b3.js",
273
- "static/chunks/app/(app)/updates/loading-6dba555198465a8f.js"
273
+ "static/chunks/app/(app)/exceptions/[id]/loading-6dba555198465a8f.js"
274
274
  ],
275
- "/(app)/updates/page": [
275
+ "/(app)/exceptions/[id]/page": [
276
276
  "static/chunks/webpack-1b293f289da20845.js",
277
277
  "static/chunks/39f60ebf-2d09993ae96ffb2f.js",
278
278
  "static/chunks/202-12a474de79b2ad1c.js",
279
279
  "static/chunks/main-app-54d1703ac3de3a4b.js",
280
280
  "static/chunks/180-0ab5475b6174d4b3.js",
281
- "static/chunks/622-e65110f232ad3136.js",
282
- "static/chunks/699-3a550a0d6101e35c.js",
283
- "static/chunks/app/(app)/updates/page-d0b9a88e5cff5d9b.js"
281
+ "static/chunks/622-0520747def5cc37b.js",
282
+ "static/chunks/392-0af97129ba2175ca.js",
283
+ "static/chunks/699-f5e42f0ed71707d9.js",
284
+ "static/chunks/app/(app)/exceptions/[id]/page-5f56a9fa25e7af46.js"
284
285
  ],
285
- "/(app)/exceptions/[id]/loading": [
286
+ "/(app)/updates/loading": [
286
287
  "static/chunks/webpack-1b293f289da20845.js",
287
288
  "static/chunks/39f60ebf-2d09993ae96ffb2f.js",
288
289
  "static/chunks/202-12a474de79b2ad1c.js",
289
290
  "static/chunks/main-app-54d1703ac3de3a4b.js",
290
291
  "static/chunks/180-0ab5475b6174d4b3.js",
291
- "static/chunks/app/(app)/exceptions/[id]/loading-6dba555198465a8f.js"
292
+ "static/chunks/app/(app)/updates/loading-6dba555198465a8f.js"
292
293
  ],
293
- "/(app)/exceptions/[id]/page": [
294
+ "/(app)/updates/page": [
294
295
  "static/chunks/webpack-1b293f289da20845.js",
295
296
  "static/chunks/39f60ebf-2d09993ae96ffb2f.js",
296
297
  "static/chunks/202-12a474de79b2ad1c.js",
297
298
  "static/chunks/main-app-54d1703ac3de3a4b.js",
298
299
  "static/chunks/180-0ab5475b6174d4b3.js",
299
- "static/chunks/622-e65110f232ad3136.js",
300
- "static/chunks/392-0af97129ba2175ca.js",
301
- "static/chunks/699-3a550a0d6101e35c.js",
302
- "static/chunks/app/(app)/exceptions/[id]/page-3b57fa7a28949fdf.js"
300
+ "static/chunks/622-0520747def5cc37b.js",
301
+ "static/chunks/699-f5e42f0ed71707d9.js",
302
+ "static/chunks/app/(app)/updates/page-429f377f34456a96.js"
303
303
  ]
304
304
  }
305
305
  }
@@ -2,18 +2,18 @@
2
2
  "/_not-found/page": "/_not-found",
3
3
  "/icon.svg/route": "/icon.svg",
4
4
  "/page": "/",
5
+ "/(app)/activity/page": "/activity",
5
6
  "/(app)/data-shares/page": "/data-shares",
6
- "/(app)/exceptions/new/page": "/exceptions/new",
7
+ "/(app)/detections/page": "/detections",
7
8
  "/(app)/findings/page": "/findings",
8
- "/(app)/activity/page": "/activity",
9
9
  "/(app)/exceptions/page": "/exceptions",
10
- "/(app)/policies/page": "/policies",
11
- "/(app)/detections/page": "/detections",
10
+ "/(app)/exceptions/new/page": "/exceptions/new",
12
11
  "/(app)/scan/page": "/scan",
12
+ "/(app)/policies/page": "/policies",
13
13
  "/(app)/inventory/page": "/inventory",
14
+ "/(app)/security/page": "/security",
14
15
  "/(app)/settings/page": "/settings",
15
16
  "/(app)/vault/page": "/vault",
16
- "/(app)/security/page": "/security",
17
- "/(app)/updates/page": "/updates",
18
- "/(app)/exceptions/[id]/page": "/exceptions/[id]"
17
+ "/(app)/exceptions/[id]/page": "/exceptions/[id]",
18
+ "/(app)/updates/page": "/updates"
19
19
  }
@@ -5,8 +5,8 @@
5
5
  "devFiles": [],
6
6
  "ampDevFiles": [],
7
7
  "lowPriorityFiles": [
8
- "static/YqH1rSLTmXzavf3MtB9ZX/_buildManifest.js",
9
- "static/YqH1rSLTmXzavf3MtB9ZX/_ssgManifest.js"
8
+ "static/zjNAa9qOfKutYwuhfySp_/_buildManifest.js",
9
+ "static/zjNAa9qOfKutYwuhfySp_/_ssgManifest.js"
10
10
  ],
11
11
  "rootMainFiles": [
12
12
  "static/chunks/webpack-1b293f289da20845.js",
@@ -83,8 +83,8 @@
83
83
  "dynamicRoutes": {},
84
84
  "notFoundRoutes": [],
85
85
  "preview": {
86
- "previewModeId": "c1f72124c438edac3580e8c2543557cb",
87
- "previewModeSigningKey": "d4eccb76d5c4e011ef4705be24f14fac6989bdf11133bf1599b8957555520cbd",
88
- "previewModeEncryptionKey": "5869cb22d820d4e474fc1e0c0eb5cd8f6a2f49e41399b450be9dc1865475b8bc"
86
+ "previewModeId": "abcfe8808f28a010bb3ad8cc95592020",
87
+ "previewModeSigningKey": "cbddeb46d6a637ed111803ed59d5970987a1ccfb73127d39e96c7352c285b9c0",
88
+ "previewModeEncryptionKey": "ee4803a3ea425689a99a84c4be47b1b6d2cebe0fa8809c9f5c4179f3711b558a"
89
89
  }
90
90
  }
@@ -1,2 +1,2 @@
1
- (()=>{var a={};a.id=845,a.ids=[845],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},16308:(a,b,c)=>{"use strict";c.d(b,{ActivityClient:()=>k});var d=c(32485),e=c(12357),f=c(39678),g=c(82527),h=c(34688),i=c(32007),j=c(32902);function k({sessions:a,detail:b,tokenReport:c,liveFindings:k,q:l,harness:m,harnessOptions:n,range:o,selectedId:p,hasMore:q,emptyCount:r,showEmpty:s,expanded:t}){let u=(0,g.usePathname)(),{isPending:v,push:w,replace:x}=(0,i.n)(),y=b?.id??"",z=(0,h.useCallback)((a,b)=>{if("detections"===a){let a=new URLSearchParams;y&&a.set("session",y),b&&a.set("finding",b);let c=a.toString();return c?`/findings?${c}`:"/findings"}return"shares"===a?"/data-shares":"/inventory"},[y]),A=(0,h.useCallback)(a=>{let b=(function(a){let b=new URLSearchParams,c=a.q.trim();for(let d of(c&&b.set("q",c),a.harness))b.append("harness",d);return a.range!==e.spO&&b.set("range",a.range),a.id&&b.set("id",a.id),a.showEmpty&&b.set("empty","1"),a.expanded&&a.id&&b.set("view","full"),b})(a).toString();return b?`${u}?${b}`:u},[u]),{query:B,setQuery:C,onNavigate:D}=(0,j.Y)(l,a=>A({q:a,harness:m,range:o,showEmpty:s})),E=(0,h.useCallback)(a=>{D(a.q),w(A(a))},[D,w,A]),F=(0,h.useCallback)(a=>{let b=A({q:B,harness:m,range:o,id:p,showEmpty:s,expanded:a});D(B),(a?w:x)(b)},[A,D,w,x,B,m,o,p,s]),G={session:b,tokenReport:c,liveFindings:k,linkHref:z,isLoading:!1,error:null,toolHref:a=>{let b=new URLSearchParams;return b.set("view","flat"),y&&b.set("session",y),b.append("tool",a),`/findings?${b.toString()}`}};return(0,d.jsxs)("div",{"aria-busy":v,className:(0,f.cn)("flex min-h-0 flex-1 gap-4 transition-shadow duration-150",v&&"rounded-lg ring-2 ring-primary/70 ring-inset"),children:[(0,d.jsx)(f.Zp,{className:"flex w-85 shrink-0 flex-col overflow-hidden shadow-sm",children:(0,d.jsx)(e.md2,{sessions:a,selectedId:p,onSelect:a=>{E({q:B,harness:m,range:o,id:a,showEmpty:s})},query:B,onQuery:C,harness:m,harnessOptions:n,onHarness:a=>{E({q:B,harness:a,range:o,showEmpty:s})},isLoading:!1,error:null,hasMore:q,emptyCount:r,showEmpty:s,onToggleEmpty:()=>{E({q:B,harness:m,range:o,id:p,showEmpty:!s})}})}),(0,d.jsx)(f.Zp,{className:"flex min-w-0 flex-1 flex-col overflow-hidden shadow-sm",children:(0,d.jsx)(e.LOI,{...G,onExpand:()=>{F(!0)}})}),(0,d.jsx)(f.cj,{open:t&&null!==b,onOpenChange:a=>{a||F(!1)},children:(0,d.jsxs)(f.h,{className:"w-320 max-w-[96%] gap-0 overflow-hidden p-0","aria-describedby":void 0,children:[(0,d.jsx)(f.qp,{className:"sr-only",children:b?`Session ${b.title}`:"Session"}),(0,d.jsx)(e.LOI,{...G,overlayClose:!0})]})})]})}c(13647)},18221:(a,b,c)=>{"use strict";c.d(b,{RangeSelect:()=>i});var d=c(32485),e=c(12357),f=c(39678),g=c(82527),h=c(32007);function i({value:a}){let b=(0,g.usePathname)(),c=(0,g.useSearchParams)(),{isPending:i,push:j}=(0,h.n)();return(0,d.jsx)("span",{className:(0,f.cn)("inline-block rounded-md transition-shadow duration-150",i&&"ring-2 ring-primary/70"),children:(0,d.jsx)(e.$nP,{value:a,onChange:a=>{let d=new URLSearchParams(c.toString());d.set("range",a),j(`${b}?${d.toString()}`)}})})}},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},28354:a=>{"use strict";a.exports=require("util")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{"use strict";a.exports=require("node:child_process")},32389:(a,b,c)=>{"use strict";c.d(b,{db:()=>f});var d=c(32713);let e=globalThis;function f(){if(e.__akaDb)return e.__akaDb;let a=(0,d.Ji)((0,d.KS)());return a.purgeSampleData(),e.__akaDb=a,a}},32902:(a,b,c)=>{"use strict";c.d(b,{Y:()=>f});var d=c(34688),e=c(32007);function f(a,b,c=300){let{push:g}=(0,e.n)(),[h,i]=(0,d.useState)(a),j=(0,d.useRef)(a),k=(0,d.useRef)(null);(0,d.useRef)(b);let l=(0,d.useCallback)(()=>{k.current&&(clearTimeout(k.current),k.current=null)},[]),m=(0,d.useCallback)(a=>{l(),j.current=a.trim(),i(a)},[l]);return{query:h,setQuery:i,onNavigate:m}}},33873:a=>{"use strict";a.exports=require("path")},35787:(a,b,c)=>{"use strict";c.d(b,{RangeSelect:()=>d});let d=(0,c(19179).registerClientReference)(function(){throw Error("Attempted to call RangeSelect() from the server but RangeSelect is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/ai-tc/ai-tc/web-ui/app/components/RangeSelect.tsx","RangeSelect")},38638:(a,b,c)=>{"use strict";c.d(b,{DQ:()=>e.DQQ,Zu:()=>e.Zus,_G:()=>e._GS,cZ:()=>e.cZ5,k3:()=>e.k3y,kp:()=>g,np:()=>h});var d=c(12011),e=c(16967);let f={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.6,strokeLinecap:"round",strokeLinejoin:"round"},g=a=>(0,d.jsxs)("svg",{...f,...a,children:[(0,d.jsx)("path",{d:"M8 6h12M8 12h12M8 18h12"}),(0,d.jsx)("circle",{cx:"3.6",cy:"6",r:"1.1",fill:"currentColor",stroke:"none"}),(0,d.jsx)("circle",{cx:"3.6",cy:"12",r:"1.1",fill:"currentColor",stroke:"none"}),(0,d.jsx)("circle",{cx:"3.6",cy:"18",r:"1.1",fill:"currentColor",stroke:"none"})]}),h=a=>(0,d.jsx)("svg",{...f,...a,children:(0,d.jsx)("path",{d:"M3 12h4l3 8 4-16 3 8h4"})})},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},41640:(a,b,c)=>{Promise.resolve().then(c.bind(c,4855)),Promise.resolve().then(c.bind(c,24498)),Promise.resolve().then(c.bind(c,43070)),Promise.resolve().then(c.bind(c,84615)),Promise.resolve().then(c.bind(c,65214)),Promise.resolve().then(c.bind(c,15614)),Promise.resolve().then(c.bind(c,35044)),Promise.resolve().then(c.bind(c,2822)),Promise.resolve().then(c.bind(c,73172)),Promise.resolve().then(c.bind(c,44004)),Promise.resolve().then(c.bind(c,23187)),Promise.resolve().then(c.bind(c,29777)),Promise.resolve().then(c.bind(c,87839)),Promise.resolve().then(c.bind(c,34667)),Promise.resolve().then(c.bind(c,21900)),Promise.resolve().then(c.bind(c,97618)),Promise.resolve().then(c.bind(c,36402)),Promise.resolve().then(c.bind(c,43384)),Promise.resolve().then(c.bind(c,3762)),Promise.resolve().then(c.bind(c,98271)),Promise.resolve().then(c.bind(c,1017)),Promise.resolve().then(c.bind(c,3475)),Promise.resolve().then(c.bind(c,99979)),Promise.resolve().then(c.bind(c,10395)),Promise.resolve().then(c.bind(c,12561)),Promise.resolve().then(c.bind(c,53801)),Promise.resolve().then(c.bind(c,99298)),Promise.resolve().then(c.bind(c,85292)),Promise.resolve().then(c.bind(c,62607)),Promise.resolve().then(c.bind(c,35902)),Promise.resolve().then(c.bind(c,97527)),Promise.resolve().then(c.bind(c,36392)),Promise.resolve().then(c.bind(c,35408)),Promise.resolve().then(c.bind(c,93193)),Promise.resolve().then(c.bind(c,40678)),Promise.resolve().then(c.bind(c,25176)),Promise.resolve().then(c.bind(c,86055)),Promise.resolve().then(c.bind(c,38728)),Promise.resolve().then(c.bind(c,56374)),Promise.resolve().then(c.bind(c,83436)),Promise.resolve().then(c.bind(c,88164)),Promise.resolve().then(c.bind(c,18230)),Promise.resolve().then(c.bind(c,51886)),Promise.resolve().then(c.bind(c,81453)),Promise.resolve().then(c.bind(c,705)),Promise.resolve().then(c.bind(c,82902)),Promise.resolve().then(c.bind(c,91841)),Promise.resolve().then(c.bind(c,47125)),Promise.resolve().then(c.bind(c,46063)),Promise.resolve().then(c.bind(c,56097)),Promise.resolve().then(c.bind(c,9290)),Promise.resolve().then(c.bind(c,71090)),Promise.resolve().then(c.bind(c,16308)),Promise.resolve().then(c.bind(c,18221))},48161:a=>{"use strict";a.exports=require("node:os")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},58846:(a,b,c)=>{"use strict";c.d(b,{ActivityClient:()=>d});let d=(0,c(19179).registerClientReference)(function(){throw Error("Attempted to call ActivityClient() from the server but ActivityClient is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/ai-tc/ai-tc/web-ui/app/(app)/activity/ActivityClient.tsx","ActivityClient")},60242:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>f});var d=c(12011),e=c(59256);function f(){return(0,d.jsxs)("div",{"aria-busy":!0,className:"flex h-full min-h-0 flex-col px-8 pb-8 pt-7",children:[(0,d.jsx)(e.vy,{actions:!0}),(0,d.jsx)(e.Rm,{}),(0,d.jsx)(e.TH,{})]})}},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},72854:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>E.a,__next_app__:()=>K,handler:()=>M,pages:()=>J,routeModule:()=>L,tree:()=>I});var d=c(87501),e=c(10266),f=c(79242),g=c(79787),h=c(11577),i=c(33657),j=c(28928),k=c(11361),l=c(62001),m=c(28019),n=c(9617),o=c(12391),p=c(33264),q=c(71622),r=c(23723),s=c(261),t=c(87698),u=c(23199),v=c(26713),w=c(30243),x=c(11616),y=c(15028),z=c(89085),A=c(85227),B=c(13849),C=c(86439),D=c(53671),E=c.n(D),F=c(66387),G=c(49410),H={};for(let a in F)0>["default","tree","pages","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(H[a]=()=>F[a]);c.d(b,H);let I={children:["",{children:["(app)",{children:["activity",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,83379)),"/home/runner/work/ai-tc/ai-tc/web-ui/app/(app)/activity/page.tsx"]}]},{loading:[()=>Promise.resolve().then(c.bind(c,60242)),"/home/runner/work/ai-tc/ai-tc/web-ui/app/(app)/activity/loading.tsx"]}]},{layout:[()=>Promise.resolve().then(c.bind(c,58262)),"/home/runner/work/ai-tc/ai-tc/web-ui/app/(app)/layout.tsx"],error:[()=>Promise.resolve().then(c.bind(c,42056)),"/home/runner/work/ai-tc/ai-tc/web-ui/app/(app)/error.tsx"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,40839,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,77954,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,12765,23)),"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await Promise.resolve().then(c.bind(c,17215))).default(a)],apple:[],openGraph:[],twitter:[],manifest:void 0}}]},{layout:[()=>Promise.resolve().then(c.bind(c,8551)),"/home/runner/work/ai-tc/ai-tc/web-ui/app/layout.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,53671,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,40839,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,77954,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,12765,23)),"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await Promise.resolve().then(c.bind(c,17215))).default(a)],apple:[],openGraph:[],twitter:[],manifest:void 0}}]}.children,J=["/home/runner/work/ai-tc/ai-tc/web-ui/app/(app)/activity/page.tsx"],K={require:c,loadChunk:()=>Promise.resolve()},L=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/(app)/activity/page",pathname:"/activity",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:I},distDir:".next",relativeProjectDir:""});async function M(a,b,d){var D;let H="/(app)/activity/page";"/index"===H&&(H="/");let N=(0,h.getRequestMeta)(a,"postponed"),O=(0,h.getRequestMeta)(a,"minimalMode"),P=await L.prepare(a,b,{srcPage:H,multiZoneDraftMode:!1});if(!P)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:Q,query:R,params:S,parsedUrl:T,pageIsDynamic:U,buildManifest:V,nextFontManifest:W,reactLoadableManifest:X,serverActionsManifest:Y,clientReferenceManifest:Z,subresourceIntegrityManifest:$,prerenderManifest:_,isDraftMode:aa,resolvedPathname:ab,revalidateOnlyGenerated:ac,routerServerContext:ad,nextConfig:ae,interceptionRoutePatterns:af}=P,ag=T.pathname||"/",ah=(0,s.normalizeAppPath)(H),{isOnDemandRevalidate:ai}=P,aj=L.match(ag,_),ak=!!_.routes[ab],al=!!(aj||ak||_.routes[ah]),am=a.headers["user-agent"]||"",an=(0,v.getBotType)(am),ao=(0,q.isHtmlBotRequest)(a),ap=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[u.NEXT_ROUTER_PREFETCH_HEADER],aq=(0,h.getRequestMeta)(a,"isRSCRequest")??(0,n.f)(a.headers[u.RSC_HEADER]),ar=(0,t.getIsPossibleServerAction)(a),as=(0,m.checkIsAppPPREnabled)(ae.experimental.ppr)&&(null==(D=_.routes[ah]??_.dynamicRoutes[ah])?void 0:D.renderingMode)==="PARTIALLY_STATIC",at=!1,au=!1,av=as?N:void 0,aw=as&&aq&&!ap,ax=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ay=!am||(0,q.shouldServeStreamingMetadata)(am,ae.htmlLimitedBots);ao&&as&&(al=!1,ay=!1);let az=!0===L.isDev||!al||"string"==typeof N||aw,aA=ao&&as,aB=null;aa||!al||az||ar||av||aw||(aB=ab);let aC=aB;!aC&&L.isDev&&(aC=ab),L.isDev||aa||!al||!aq||aw||(0,k.d)(a.headers);let aD={...F,tree:I,pages:J,GlobalError:E(),handler:M,routeModule:L,__next_app__:K};Y&&Z&&(0,p.setReferenceManifestsSingleton)({page:H,clientReferenceManifest:Z,serverActionsManifest:Y,serverModuleMap:(0,r.createServerModuleMap)({serverActionsManifest:Y})});let aE=a.method||"GET",aF=(0,g.getTracer)(),aG=aF.getActiveScopeSpan();try{let f=L.getVaryHeader(ab,af);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return L.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=aF.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${aE} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aE} ${a.url}`)})},m=async({span:e,postponed:f,fallbackRouteParams:g})=>{let i={query:R,params:S,page:ah,sharedContext:{buildId:Q},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aD,Component:(0,j.T)(aD),params:S,routeModule:L,page:H,postponed:f,shouldWaitOnAllReady:aA,serveStreamingMetadata:ay,supportsDynamicResponse:"string"==typeof f||az,buildManifest:V,nextFontManifest:W,reactLoadableManifest:X,subresourceIntegrityManifest:$,serverActionsManifest:Y,clientReferenceManifest:Z,setIsrStatus:null==ad?void 0:ad.setIsrStatus,dir:c(33873).join(process.cwd(),L.relativeProjectDir),isDraftMode:aa,isRevalidate:al&&!f&&!aw,botType:an,isOnDemandRevalidate:ai,isPossibleServerAction:ar,assetPrefix:ae.assetPrefix,nextConfigOutput:ae.output,crossOrigin:ae.crossOrigin,trailingSlash:ae.trailingSlash,previewProps:_.preview,deploymentId:ae.deploymentId,enableTainting:ae.experimental.taint,htmlLimitedBots:ae.htmlLimitedBots,devtoolSegmentExplorer:ae.experimental.devtoolSegmentExplorer,reactMaxHeadersLength:ae.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:ae.experimental.cacheLife,basePath:ae.basePath,serverActions:ae.experimental.serverActions,...at?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isRevalidate:!0,isDebugDynamicAccesses:at}:{},experimental:{isRoutePPREnabled:as,expireTime:ae.expireTime,staleTimes:ae.experimental.staleTimes,cacheComponents:!!ae.experimental.cacheComponents,clientSegmentCache:!!ae.experimental.clientSegmentCache,clientParamParsing:!!ae.experimental.clientParamParsing,dynamicOnHover:!!ae.experimental.dynamicOnHover,inlineCss:!!ae.experimental.inlineCss,authInterrupts:!!ae.experimental.authInterrupts,clientTraceMetadata:ae.experimental.clientTraceMetadata||[]},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d)=>L.onRequestError(a,b,d,ad),err:(0,h.getRequestMeta)(a,"invokeError"),dev:L.isDev}},l=await k(e,i),{metadata:m}=l,{cacheControl:n,headers:o={},fetchTags:p}=m;if(p&&(o[z.NEXT_CACHE_TAGS_HEADER]=p),a.fetchMetrics=m.fetchMetrics,al&&(null==n?void 0:n.revalidate)===0&&!L.isDev&&!as){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${ab}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""}
2
- see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:w.CachedRouteKind.APP_PAGE,html:l,headers:o,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},n=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i})=>{let j,k=!1===L.isDev,l=c||b.writableEnded;if(ai&&ac&&!f&&!O)return(null==ad?void 0:ad.render404)?await ad.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(aj&&(j=(0,x.parseFallbackField)(aj.fallback)),j===x.FallbackMode.PRERENDER&&(0,v.isBot)(am)&&(!as||ao)&&(j=x.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ai=!0),ai&&(j!==x.FallbackMode.NOT_FOUND||f)&&(j=x.FallbackMode.BLOCKING_STATIC_RENDER),!O&&j!==x.FallbackMode.BLOCKING_STATIC_RENDER&&aC&&!l&&!aa&&U&&(k||!ak)){let b;if((k||aj)&&j===x.FallbackMode.NOT_FOUND)throw new C.NoFallbackError;if(as&&!aq){let c="string"==typeof(null==aj?void 0:aj.fallback)?aj.fallback:k?ah:null;if(b=await L.handleResponse({cacheKey:c,req:a,nextConfig:ae,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:_,isRoutePPREnabled:as,responseGenerator:async()=>m({span:i,postponed:void 0,fallbackRouteParams:k||au?(0,o.u)(ah):null}),waitUntil:d.waitUntil}),null===b)return null;if(b)return delete b.cacheControl,b}}let n=ai||g||!av?void 0:av;if(at&&void 0!==n)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:w.CachedRouteKind.PAGES,html:y.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let p=U&&as&&((0,h.getRequestMeta)(a,"renderFallbackShell")||au)?(0,o.u)(ag):null;return m({span:i,postponed:n,fallbackRouteParams:p})},p=async c=>{var f,g,i,j,k;let l,o=await L.handleResponse({cacheKey:aB,responseGenerator:a=>n({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ai,isRoutePPREnabled:as,req:a,nextConfig:ae,prerenderManifest:_,waitUntil:d.waitUntil});if(aa&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),L.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!o){if(aB)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=o.value)?void 0:f.kind)!==w.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=o.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let p="string"==typeof o.value.postponed;al&&!aw&&(!p||ap)&&(O||b.setHeader("x-nextjs-cache",ai?"REVALIDATED":o.isMiss?"MISS":o.isStale?"STALE":"HIT"),b.setHeader(u.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=o;if(av)l={revalidate:0,expire:void 0};else if(O&&aq&&!ap&&as)l={revalidate:0,expire:void 0};else if(!L.isDev)if(aa)l={revalidate:0,expire:void 0};else if(al){if(o.cacheControl)if("number"==typeof o.cacheControl.revalidate){if(o.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${o.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:o.cacheControl.revalidate,expire:(null==(j=o.cacheControl)?void 0:j.expire)??ae.expireTime}}else l={revalidate:z.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(o.cacheControl=l,"string"==typeof ax&&(null==q?void 0:q.kind)===w.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(u.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[z.NEXT_CACHE_TAGS_HEADER];O&&al&&c&&"string"==typeof c&&b.setHeader(z.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(ax);return void 0!==d?(0,B.sendRenderResult)({req:a,res:b,generateEtags:ae.generateEtags,poweredByHeader:ae.poweredByHeader,result:y.default.fromStatic(d,u.RSC_CONTENT_TYPE_HEADER),cacheControl:o.cacheControl}):(b.statusCode=204,(0,B.sendRenderResult)({req:a,res:b,generateEtags:ae.generateEtags,poweredByHeader:ae.poweredByHeader,result:y.default.EMPTY,cacheControl:o.cacheControl}))}let r=(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r({...o,value:{...o.value,kind:"PAGE"}},{url:(0,h.getRequestMeta)(a,"initURL")}))return null;if(p&&av)throw Object.defineProperty(Error("Invariant: postponed state should not be present on a resume request"),"__NEXT_ERROR_CODE",{value:"E396",enumerable:!1,configurable:!0});if(q.headers){let a={...q.headers};for(let[c,d]of(O&&al||delete a[z.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let s=null==(g=q.headers)?void 0:g[z.NEXT_CACHE_TAGS_HEADER];if(O&&al&&s&&"string"==typeof s&&b.setHeader(z.NEXT_CACHE_TAGS_HEADER,s),!q.status||aq&&as||(b.statusCode=q.status),!O&&q.status&&G.RedirectStatusCode[q.status]&&aq&&(b.statusCode=200),p&&b.setHeader(u.NEXT_DID_POSTPONE_HEADER,"1"),aq&&!aa){if(void 0===q.rscData){if(q.postponed)throw Object.defineProperty(Error("Invariant: Expected postponed to be undefined"),"__NEXT_ERROR_CODE",{value:"E372",enumerable:!1,configurable:!0});return(0,B.sendRenderResult)({req:a,res:b,generateEtags:ae.generateEtags,poweredByHeader:ae.poweredByHeader,result:q.html,cacheControl:aw?{revalidate:0,expire:void 0}:o.cacheControl})}return(0,B.sendRenderResult)({req:a,res:b,generateEtags:ae.generateEtags,poweredByHeader:ae.poweredByHeader,result:y.default.fromStatic(q.rscData,u.RSC_CONTENT_TYPE_HEADER),cacheControl:o.cacheControl})}let t=q.html;if(!p||O||aq)return(0,B.sendRenderResult)({req:a,res:b,generateEtags:ae.generateEtags,poweredByHeader:ae.poweredByHeader,result:t,cacheControl:o.cacheControl});if(at)return t.push(new ReadableStream({start(a){a.enqueue(A.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,B.sendRenderResult)({req:a,res:b,generateEtags:ae.generateEtags,poweredByHeader:ae.poweredByHeader,result:t,cacheControl:{revalidate:0,expire:void 0}});let v=new TransformStream;return t.push(v.readable),m({span:c,postponed:q.postponed,fallbackRouteParams:null}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==w.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(v.writable)}).catch(a=>{v.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,B.sendRenderResult)({req:a,res:b,generateEtags:ae.generateEtags,poweredByHeader:ae.poweredByHeader,result:t,cacheControl:{revalidate:0,expire:void 0}})};if(!aG)return await aF.withPropagatedContext(a.headers,()=>aF.trace(i.BaseServerSpan.handleRequest,{spanName:`${aE} ${a.url}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aE,"http.target":a.url}},p));await p(aG)}catch(b){throw b instanceof C.NoFallbackError||await L.onRequestError(a,b,{routerKind:"App Router",routePath:H,routeType:"render",revalidateReason:(0,f.c)({isRevalidate:al,isOnDemandRevalidate:ai})},ad),b}}},73024:a=>{"use strict";a.exports=require("node:fs")},75919:a=>{"use strict";a.exports=require("node:worker_threads")},76760:a=>{"use strict";a.exports=require("node:path")},77598:a=>{"use strict";a.exports=require("node:crypto")},78088:(a,b,c)=>{Promise.resolve().then(c.bind(c,36173)),Promise.resolve().then(c.bind(c,49044)),Promise.resolve().then(c.bind(c,95796)),Promise.resolve().then(c.bind(c,18110)),Promise.resolve().then(c.bind(c,78200)),Promise.resolve().then(c.bind(c,48028)),Promise.resolve().then(c.bind(c,5261)),Promise.resolve().then(c.bind(c,8516)),Promise.resolve().then(c.bind(c,77002)),Promise.resolve().then(c.bind(c,21670)),Promise.resolve().then(c.bind(c,51049)),Promise.resolve().then(c.bind(c,39447)),Promise.resolve().then(c.bind(c,60389)),Promise.resolve().then(c.bind(c,15793)),Promise.resolve().then(c.bind(c,51490)),Promise.resolve().then(c.bind(c,7160)),Promise.resolve().then(c.bind(c,80724)),Promise.resolve().then(c.bind(c,89846)),Promise.resolve().then(c.bind(c,75368)),Promise.resolve().then(c.bind(c,8557)),Promise.resolve().then(c.bind(c,97299)),Promise.resolve().then(c.bind(c,96293)),Promise.resolve().then(c.bind(c,17693)),Promise.resolve().then(c.bind(c,23529)),Promise.resolve().then(c.bind(c,41119)),Promise.resolve().then(c.bind(c,54495)),Promise.resolve().then(c.bind(c,53012)),Promise.resolve().then(c.bind(c,6910)),Promise.resolve().then(c.bind(c,80193)),Promise.resolve().then(c.bind(c,73032)),Promise.resolve().then(c.bind(c,38069)),Promise.resolve().then(c.bind(c,35722)),Promise.resolve().then(c.bind(c,23594)),Promise.resolve().then(c.bind(c,16151)),Promise.resolve().then(c.bind(c,70756)),Promise.resolve().then(c.bind(c,41502)),Promise.resolve().then(c.bind(c,55553)),Promise.resolve().then(c.bind(c,2226)),Promise.resolve().then(c.bind(c,70380)),Promise.resolve().then(c.bind(c,76214)),Promise.resolve().then(c.bind(c,97926)),Promise.resolve().then(c.bind(c,49164)),Promise.resolve().then(c.bind(c,60332)),Promise.resolve().then(c.bind(c,38055)),Promise.resolve().then(c.bind(c,48271)),Promise.resolve().then(c.bind(c,73472)),Promise.resolve().then(c.bind(c,90671)),Promise.resolve().then(c.bind(c,25843)),Promise.resolve().then(c.bind(c,25545)),Promise.resolve().then(c.bind(c,40987)),Promise.resolve().then(c.bind(c,70196)),Promise.resolve().then(c.bind(c,71400)),Promise.resolve().then(c.bind(c,58846)),Promise.resolve().then(c.bind(c,35787))},79868:a=>{"use strict";a.exports=require("node:sqlite")},83379:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>p,dynamic:()=>n,metadata:()=>o,runtime:()=>m});var d=c(12011),e=c(16967),f=c(77352),g=c(38638),h=c(35787),i=c(32389),j=c(58846);let k=a=>Array.isArray(a)?a[0]??"":a??"";function l(a){return k(a.id).trim()}let m="nodejs",n="force-dynamic",o={title:"Activity"};async function p({searchParams:a}){let b,c=await a,m=k(c.q).trim(),n=(Array.isArray(b=c.harness)?b:b?[b]:[]).filter(a=>f.TUN.options.includes(a)),o=(0,e.OHL)(k(c.range)),p=l(c),q="1"===k(c.empty),r="full"===k(c.view)&&""!==l(c),s=(0,i.db)().activity,t=Date.parse((0,e.oBs)(o)),[u,v,w,x]=await Promise.all([s.stats(),s.listSessions(function(a,b,c,d=!1,f=Date.now()){return{...a?{q:a}:{},...b.length?{harness:b}:{},...d?{}:{excludeEmpty:!0},from:(0,e.oBs)(c,f),limit:100}}(m,n,o,q)),s.tokenReports(t),s.harnessFacets(t)]),y=(0,f.W4_)(w),z=(0,e.QTF)(o),A=p||(v.items[0]?.id??""),[B,C]=A?await Promise.all([s.getSession(A),s.tokenReportForSession(A)]):[null,null],D=B?await (0,i.db)().findings.sessionFindingsCount(B.id):0,E=B&&D>0?{count:D,href:`/findings?session=${encodeURIComponent(B.id)}`}:null,F=[{icon:g.k3,value:u.sessionsToday.toLocaleString(),label:"Sessions today",tone:"gray"},{icon:g.DQ,value:u.liveNow.toLocaleString(),label:"Live now",tone:"green"},{icon:g.kp,value:u.toolCallsToday.toLocaleString(),label:"Tool calls",tone:"gray"},{icon:g.Zu,value:u.findingsToday.toLocaleString(),label:"Findings triggered",tone:"red"},{icon:g._G,value:u.egressToday.toLocaleString(),label:"Egress events",tone:"teal"}];return(0,d.jsxs)("div",{className:"flex h-full min-h-0 flex-col px-8 pb-8 pt-7",children:[(0,d.jsx)(e.ece,{title:"Activity",sub:"Your local harness sessions, reconstructed from the audit log",actions:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(e.rDU,{summary:y,isLoading:!1,error:null,rangeLabel:z}),(0,d.jsx)(h.RangeSelect,{value:o})]})}),(0,d.jsx)(e.s0y,{items:F,isLoading:!1}),(0,d.jsx)(j.ActivityClient,{sessions:v.items,detail:B,tokenReport:C,liveFindings:E,q:m,harness:n,harnessOptions:x,range:o,selectedId:A,hasMore:!!v.nextCursor,emptyCount:v.emptyCount,showEmpty:q,expanded:r})]})}},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[261,853,68,129,967],()=>b(b.s=72854));module.exports=c})();
1
+ (()=>{var a={};a.id=845,a.ids=[845],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},16308:(a,b,c)=>{"use strict";c.d(b,{ActivityClient:()=>k});var d=c(32485),e=c(12357),f=c(39678),g=c(82527),h=c(34688),i=c(32007),j=c(32902);function k({sessions:a,detail:b,tokenReport:c,liveFindings:k,q:l,harness:m,harnessOptions:n,range:o,selectedId:p,hasMore:q,emptyCount:r,showEmpty:s,expanded:t}){let u=(0,g.usePathname)(),{isPending:v,push:w,replace:x}=(0,i.n)(),y=b?.id??"",z=(0,h.useCallback)((a,b)=>{if("detections"===a){let a=new URLSearchParams;y&&a.set("session",y),b&&a.set("finding",b);let c=a.toString();return c?`/findings?${c}`:"/findings"}return"shares"===a?"/data-shares":"/inventory"},[y]),A=(0,h.useCallback)(a=>{let b=(function(a){let b=new URLSearchParams,c=a.q.trim();for(let d of(c&&b.set("q",c),a.harness))b.append("harness",d);return a.range!==e.spO&&b.set("range",a.range),a.id&&b.set("id",a.id),a.showEmpty&&b.set("empty","1"),a.expanded&&a.id&&b.set("view","full"),b})(a).toString();return b?`${u}?${b}`:u},[u]),{query:B,setQuery:C,onNavigate:D}=(0,j.Y)(l,a=>A({q:a,harness:m,range:o,showEmpty:s})),E=(0,h.useCallback)(a=>{D(a.q),w(A(a))},[D,w,A]),F=(0,h.useCallback)(a=>{let b=A({q:B,harness:m,range:o,id:p,showEmpty:s,expanded:a});D(B),(a?w:x)(b)},[A,D,w,x,B,m,o,p,s]),G={session:b,tokenReport:c,liveFindings:k,linkHref:z,isLoading:!1,error:null,toolHref:a=>{let b=new URLSearchParams;return b.set("view","flat"),y&&b.set("session",y),b.append("tool",a),`/findings?${b.toString()}`}};return(0,d.jsxs)("div",{"aria-busy":v,className:(0,f.cn)("flex min-h-0 flex-1 gap-4 transition-shadow duration-150",v&&"rounded-lg ring-2 ring-primary/70 ring-inset"),children:[(0,d.jsx)(f.Zp,{className:"flex w-85 shrink-0 flex-col overflow-hidden shadow-sm",children:(0,d.jsx)(e.md2,{sessions:a,selectedId:p,onSelect:a=>{E({q:B,harness:m,range:o,id:a,showEmpty:s})},query:B,onQuery:C,harness:m,harnessOptions:n,onHarness:a=>{E({q:B,harness:a,range:o,showEmpty:s})},isLoading:!1,error:null,hasMore:q,emptyCount:r,showEmpty:s,onToggleEmpty:()=>{E({q:B,harness:m,range:o,id:p,showEmpty:!s})}})}),(0,d.jsx)(f.Zp,{className:"flex min-w-0 flex-1 flex-col overflow-hidden shadow-sm",children:(0,d.jsx)(e.LOI,{...G,onExpand:()=>{F(!0)}})}),(0,d.jsx)(f.cj,{open:t&&null!==b,onOpenChange:a=>{a||F(!1)},children:(0,d.jsxs)(f.h,{className:"w-320 max-w-[96%] gap-0 overflow-hidden p-0","aria-describedby":void 0,children:[(0,d.jsx)(f.qp,{className:"sr-only",children:b?`Session ${b.title}`:"Session"}),(0,d.jsx)(e.LOI,{...G,overlayClose:!0})]})})]})}c(63209)},18221:(a,b,c)=>{"use strict";c.d(b,{RangeSelect:()=>i});var d=c(32485),e=c(12357),f=c(39678),g=c(82527),h=c(32007);function i({value:a}){let b=(0,g.usePathname)(),c=(0,g.useSearchParams)(),{isPending:i,push:j}=(0,h.n)();return(0,d.jsx)("span",{className:(0,f.cn)("inline-block rounded-md transition-shadow duration-150",i&&"ring-2 ring-primary/70"),children:(0,d.jsx)(e.$nP,{value:a,onChange:a=>{let d=new URLSearchParams(c.toString());d.set("range",a),j(`${b}?${d.toString()}`)}})})}},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},28354:a=>{"use strict";a.exports=require("util")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{"use strict";a.exports=require("node:child_process")},32389:(a,b,c)=>{"use strict";c.d(b,{db:()=>f});var d=c(57412);let e=globalThis;function f(){if(e.__akaDb)return e.__akaDb;let a=(0,d.Ji)((0,d.KS)());return a.purgeSampleData(),e.__akaDb=a,a}},32902:(a,b,c)=>{"use strict";c.d(b,{Y:()=>f});var d=c(34688),e=c(32007);function f(a,b,c=300){let{push:g}=(0,e.n)(),[h,i]=(0,d.useState)(a),j=(0,d.useRef)(a),k=(0,d.useRef)(null);(0,d.useRef)(b);let l=(0,d.useCallback)(()=>{k.current&&(clearTimeout(k.current),k.current=null)},[]),m=(0,d.useCallback)(a=>{l(),j.current=a.trim(),i(a)},[l]);return{query:h,setQuery:i,onNavigate:m}}},33873:a=>{"use strict";a.exports=require("path")},35787:(a,b,c)=>{"use strict";c.d(b,{RangeSelect:()=>d});let d=(0,c(19179).registerClientReference)(function(){throw Error("Attempted to call RangeSelect() from the server but RangeSelect is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/ai-tc/ai-tc/web-ui/app/components/RangeSelect.tsx","RangeSelect")},38638:(a,b,c)=>{"use strict";c.d(b,{DQ:()=>e.DQQ,Zu:()=>e.Zus,_G:()=>e._GS,cZ:()=>e.cZ5,k3:()=>e.k3y,kp:()=>g,np:()=>h});var d=c(12011),e=c(16967);let f={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.6,strokeLinecap:"round",strokeLinejoin:"round"},g=a=>(0,d.jsxs)("svg",{...f,...a,children:[(0,d.jsx)("path",{d:"M8 6h12M8 12h12M8 18h12"}),(0,d.jsx)("circle",{cx:"3.6",cy:"6",r:"1.1",fill:"currentColor",stroke:"none"}),(0,d.jsx)("circle",{cx:"3.6",cy:"12",r:"1.1",fill:"currentColor",stroke:"none"}),(0,d.jsx)("circle",{cx:"3.6",cy:"18",r:"1.1",fill:"currentColor",stroke:"none"})]}),h=a=>(0,d.jsx)("svg",{...f,...a,children:(0,d.jsx)("path",{d:"M3 12h4l3 8 4-16 3 8h4"})})},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},41640:(a,b,c)=>{Promise.resolve().then(c.bind(c,4855)),Promise.resolve().then(c.bind(c,24498)),Promise.resolve().then(c.bind(c,43070)),Promise.resolve().then(c.bind(c,84615)),Promise.resolve().then(c.bind(c,65214)),Promise.resolve().then(c.bind(c,15614)),Promise.resolve().then(c.bind(c,35044)),Promise.resolve().then(c.bind(c,2822)),Promise.resolve().then(c.bind(c,73172)),Promise.resolve().then(c.bind(c,44004)),Promise.resolve().then(c.bind(c,23187)),Promise.resolve().then(c.bind(c,29777)),Promise.resolve().then(c.bind(c,87839)),Promise.resolve().then(c.bind(c,34667)),Promise.resolve().then(c.bind(c,21900)),Promise.resolve().then(c.bind(c,97618)),Promise.resolve().then(c.bind(c,36402)),Promise.resolve().then(c.bind(c,43384)),Promise.resolve().then(c.bind(c,3762)),Promise.resolve().then(c.bind(c,98271)),Promise.resolve().then(c.bind(c,1017)),Promise.resolve().then(c.bind(c,3475)),Promise.resolve().then(c.bind(c,99979)),Promise.resolve().then(c.bind(c,10395)),Promise.resolve().then(c.bind(c,12561)),Promise.resolve().then(c.bind(c,53801)),Promise.resolve().then(c.bind(c,99298)),Promise.resolve().then(c.bind(c,85292)),Promise.resolve().then(c.bind(c,62607)),Promise.resolve().then(c.bind(c,35902)),Promise.resolve().then(c.bind(c,97527)),Promise.resolve().then(c.bind(c,36392)),Promise.resolve().then(c.bind(c,35408)),Promise.resolve().then(c.bind(c,93193)),Promise.resolve().then(c.bind(c,40678)),Promise.resolve().then(c.bind(c,25176)),Promise.resolve().then(c.bind(c,86055)),Promise.resolve().then(c.bind(c,38728)),Promise.resolve().then(c.bind(c,56374)),Promise.resolve().then(c.bind(c,83436)),Promise.resolve().then(c.bind(c,88164)),Promise.resolve().then(c.bind(c,18230)),Promise.resolve().then(c.bind(c,51886)),Promise.resolve().then(c.bind(c,81453)),Promise.resolve().then(c.bind(c,705)),Promise.resolve().then(c.bind(c,82902)),Promise.resolve().then(c.bind(c,91841)),Promise.resolve().then(c.bind(c,47125)),Promise.resolve().then(c.bind(c,46063)),Promise.resolve().then(c.bind(c,56097)),Promise.resolve().then(c.bind(c,9290)),Promise.resolve().then(c.bind(c,71090)),Promise.resolve().then(c.bind(c,16308)),Promise.resolve().then(c.bind(c,18221))},48161:a=>{"use strict";a.exports=require("node:os")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},58846:(a,b,c)=>{"use strict";c.d(b,{ActivityClient:()=>d});let d=(0,c(19179).registerClientReference)(function(){throw Error("Attempted to call ActivityClient() from the server but ActivityClient is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/ai-tc/ai-tc/web-ui/app/(app)/activity/ActivityClient.tsx","ActivityClient")},60242:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>f});var d=c(12011),e=c(59256);function f(){return(0,d.jsxs)("div",{"aria-busy":!0,className:"flex h-full min-h-0 flex-col px-8 pb-8 pt-7",children:[(0,d.jsx)(e.vy,{actions:!0}),(0,d.jsx)(e.Rm,{}),(0,d.jsx)(e.TH,{})]})}},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},72854:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>E.a,__next_app__:()=>K,handler:()=>M,pages:()=>J,routeModule:()=>L,tree:()=>I});var d=c(87501),e=c(10266),f=c(79242),g=c(79787),h=c(11577),i=c(33657),j=c(28928),k=c(11361),l=c(62001),m=c(28019),n=c(9617),o=c(12391),p=c(33264),q=c(71622),r=c(23723),s=c(261),t=c(87698),u=c(23199),v=c(26713),w=c(30243),x=c(11616),y=c(15028),z=c(89085),A=c(85227),B=c(13849),C=c(86439),D=c(53671),E=c.n(D),F=c(66387),G=c(49410),H={};for(let a in F)0>["default","tree","pages","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(H[a]=()=>F[a]);c.d(b,H);let I={children:["",{children:["(app)",{children:["activity",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,83379)),"/home/runner/work/ai-tc/ai-tc/web-ui/app/(app)/activity/page.tsx"]}]},{loading:[()=>Promise.resolve().then(c.bind(c,60242)),"/home/runner/work/ai-tc/ai-tc/web-ui/app/(app)/activity/loading.tsx"]}]},{layout:[()=>Promise.resolve().then(c.bind(c,58262)),"/home/runner/work/ai-tc/ai-tc/web-ui/app/(app)/layout.tsx"],error:[()=>Promise.resolve().then(c.bind(c,42056)),"/home/runner/work/ai-tc/ai-tc/web-ui/app/(app)/error.tsx"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,40839,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,77954,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,12765,23)),"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await Promise.resolve().then(c.bind(c,17215))).default(a)],apple:[],openGraph:[],twitter:[],manifest:void 0}}]},{layout:[()=>Promise.resolve().then(c.bind(c,8551)),"/home/runner/work/ai-tc/ai-tc/web-ui/app/layout.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,53671,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,40839,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,77954,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,12765,23)),"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await Promise.resolve().then(c.bind(c,17215))).default(a)],apple:[],openGraph:[],twitter:[],manifest:void 0}}]}.children,J=["/home/runner/work/ai-tc/ai-tc/web-ui/app/(app)/activity/page.tsx"],K={require:c,loadChunk:()=>Promise.resolve()},L=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/(app)/activity/page",pathname:"/activity",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:I},distDir:".next",relativeProjectDir:""});async function M(a,b,d){var D;let H="/(app)/activity/page";"/index"===H&&(H="/");let N=(0,h.getRequestMeta)(a,"postponed"),O=(0,h.getRequestMeta)(a,"minimalMode"),P=await L.prepare(a,b,{srcPage:H,multiZoneDraftMode:!1});if(!P)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:Q,query:R,params:S,parsedUrl:T,pageIsDynamic:U,buildManifest:V,nextFontManifest:W,reactLoadableManifest:X,serverActionsManifest:Y,clientReferenceManifest:Z,subresourceIntegrityManifest:$,prerenderManifest:_,isDraftMode:aa,resolvedPathname:ab,revalidateOnlyGenerated:ac,routerServerContext:ad,nextConfig:ae,interceptionRoutePatterns:af}=P,ag=T.pathname||"/",ah=(0,s.normalizeAppPath)(H),{isOnDemandRevalidate:ai}=P,aj=L.match(ag,_),ak=!!_.routes[ab],al=!!(aj||ak||_.routes[ah]),am=a.headers["user-agent"]||"",an=(0,v.getBotType)(am),ao=(0,q.isHtmlBotRequest)(a),ap=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[u.NEXT_ROUTER_PREFETCH_HEADER],aq=(0,h.getRequestMeta)(a,"isRSCRequest")??(0,n.f)(a.headers[u.RSC_HEADER]),ar=(0,t.getIsPossibleServerAction)(a),as=(0,m.checkIsAppPPREnabled)(ae.experimental.ppr)&&(null==(D=_.routes[ah]??_.dynamicRoutes[ah])?void 0:D.renderingMode)==="PARTIALLY_STATIC",at=!1,au=!1,av=as?N:void 0,aw=as&&aq&&!ap,ax=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ay=!am||(0,q.shouldServeStreamingMetadata)(am,ae.htmlLimitedBots);ao&&as&&(al=!1,ay=!1);let az=!0===L.isDev||!al||"string"==typeof N||aw,aA=ao&&as,aB=null;aa||!al||az||ar||av||aw||(aB=ab);let aC=aB;!aC&&L.isDev&&(aC=ab),L.isDev||aa||!al||!aq||aw||(0,k.d)(a.headers);let aD={...F,tree:I,pages:J,GlobalError:E(),handler:M,routeModule:L,__next_app__:K};Y&&Z&&(0,p.setReferenceManifestsSingleton)({page:H,clientReferenceManifest:Z,serverActionsManifest:Y,serverModuleMap:(0,r.createServerModuleMap)({serverActionsManifest:Y})});let aE=a.method||"GET",aF=(0,g.getTracer)(),aG=aF.getActiveScopeSpan();try{let f=L.getVaryHeader(ab,af);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return L.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=aF.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${aE} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aE} ${a.url}`)})},m=async({span:e,postponed:f,fallbackRouteParams:g})=>{let i={query:R,params:S,page:ah,sharedContext:{buildId:Q},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aD,Component:(0,j.T)(aD),params:S,routeModule:L,page:H,postponed:f,shouldWaitOnAllReady:aA,serveStreamingMetadata:ay,supportsDynamicResponse:"string"==typeof f||az,buildManifest:V,nextFontManifest:W,reactLoadableManifest:X,subresourceIntegrityManifest:$,serverActionsManifest:Y,clientReferenceManifest:Z,setIsrStatus:null==ad?void 0:ad.setIsrStatus,dir:c(33873).join(process.cwd(),L.relativeProjectDir),isDraftMode:aa,isRevalidate:al&&!f&&!aw,botType:an,isOnDemandRevalidate:ai,isPossibleServerAction:ar,assetPrefix:ae.assetPrefix,nextConfigOutput:ae.output,crossOrigin:ae.crossOrigin,trailingSlash:ae.trailingSlash,previewProps:_.preview,deploymentId:ae.deploymentId,enableTainting:ae.experimental.taint,htmlLimitedBots:ae.htmlLimitedBots,devtoolSegmentExplorer:ae.experimental.devtoolSegmentExplorer,reactMaxHeadersLength:ae.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:ae.experimental.cacheLife,basePath:ae.basePath,serverActions:ae.experimental.serverActions,...at?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isRevalidate:!0,isDebugDynamicAccesses:at}:{},experimental:{isRoutePPREnabled:as,expireTime:ae.expireTime,staleTimes:ae.experimental.staleTimes,cacheComponents:!!ae.experimental.cacheComponents,clientSegmentCache:!!ae.experimental.clientSegmentCache,clientParamParsing:!!ae.experimental.clientParamParsing,dynamicOnHover:!!ae.experimental.dynamicOnHover,inlineCss:!!ae.experimental.inlineCss,authInterrupts:!!ae.experimental.authInterrupts,clientTraceMetadata:ae.experimental.clientTraceMetadata||[]},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d)=>L.onRequestError(a,b,d,ad),err:(0,h.getRequestMeta)(a,"invokeError"),dev:L.isDev}},l=await k(e,i),{metadata:m}=l,{cacheControl:n,headers:o={},fetchTags:p}=m;if(p&&(o[z.NEXT_CACHE_TAGS_HEADER]=p),a.fetchMetrics=m.fetchMetrics,al&&(null==n?void 0:n.revalidate)===0&&!L.isDev&&!as){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${ab}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""}
2
+ see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:w.CachedRouteKind.APP_PAGE,html:l,headers:o,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},n=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i})=>{let j,k=!1===L.isDev,l=c||b.writableEnded;if(ai&&ac&&!f&&!O)return(null==ad?void 0:ad.render404)?await ad.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(aj&&(j=(0,x.parseFallbackField)(aj.fallback)),j===x.FallbackMode.PRERENDER&&(0,v.isBot)(am)&&(!as||ao)&&(j=x.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ai=!0),ai&&(j!==x.FallbackMode.NOT_FOUND||f)&&(j=x.FallbackMode.BLOCKING_STATIC_RENDER),!O&&j!==x.FallbackMode.BLOCKING_STATIC_RENDER&&aC&&!l&&!aa&&U&&(k||!ak)){let b;if((k||aj)&&j===x.FallbackMode.NOT_FOUND)throw new C.NoFallbackError;if(as&&!aq){let c="string"==typeof(null==aj?void 0:aj.fallback)?aj.fallback:k?ah:null;if(b=await L.handleResponse({cacheKey:c,req:a,nextConfig:ae,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:_,isRoutePPREnabled:as,responseGenerator:async()=>m({span:i,postponed:void 0,fallbackRouteParams:k||au?(0,o.u)(ah):null}),waitUntil:d.waitUntil}),null===b)return null;if(b)return delete b.cacheControl,b}}let n=ai||g||!av?void 0:av;if(at&&void 0!==n)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:w.CachedRouteKind.PAGES,html:y.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let p=U&&as&&((0,h.getRequestMeta)(a,"renderFallbackShell")||au)?(0,o.u)(ag):null;return m({span:i,postponed:n,fallbackRouteParams:p})},p=async c=>{var f,g,i,j,k;let l,o=await L.handleResponse({cacheKey:aB,responseGenerator:a=>n({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ai,isRoutePPREnabled:as,req:a,nextConfig:ae,prerenderManifest:_,waitUntil:d.waitUntil});if(aa&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),L.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!o){if(aB)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=o.value)?void 0:f.kind)!==w.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=o.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let p="string"==typeof o.value.postponed;al&&!aw&&(!p||ap)&&(O||b.setHeader("x-nextjs-cache",ai?"REVALIDATED":o.isMiss?"MISS":o.isStale?"STALE":"HIT"),b.setHeader(u.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=o;if(av)l={revalidate:0,expire:void 0};else if(O&&aq&&!ap&&as)l={revalidate:0,expire:void 0};else if(!L.isDev)if(aa)l={revalidate:0,expire:void 0};else if(al){if(o.cacheControl)if("number"==typeof o.cacheControl.revalidate){if(o.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${o.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:o.cacheControl.revalidate,expire:(null==(j=o.cacheControl)?void 0:j.expire)??ae.expireTime}}else l={revalidate:z.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(o.cacheControl=l,"string"==typeof ax&&(null==q?void 0:q.kind)===w.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(u.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[z.NEXT_CACHE_TAGS_HEADER];O&&al&&c&&"string"==typeof c&&b.setHeader(z.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(ax);return void 0!==d?(0,B.sendRenderResult)({req:a,res:b,generateEtags:ae.generateEtags,poweredByHeader:ae.poweredByHeader,result:y.default.fromStatic(d,u.RSC_CONTENT_TYPE_HEADER),cacheControl:o.cacheControl}):(b.statusCode=204,(0,B.sendRenderResult)({req:a,res:b,generateEtags:ae.generateEtags,poweredByHeader:ae.poweredByHeader,result:y.default.EMPTY,cacheControl:o.cacheControl}))}let r=(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r({...o,value:{...o.value,kind:"PAGE"}},{url:(0,h.getRequestMeta)(a,"initURL")}))return null;if(p&&av)throw Object.defineProperty(Error("Invariant: postponed state should not be present on a resume request"),"__NEXT_ERROR_CODE",{value:"E396",enumerable:!1,configurable:!0});if(q.headers){let a={...q.headers};for(let[c,d]of(O&&al||delete a[z.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let s=null==(g=q.headers)?void 0:g[z.NEXT_CACHE_TAGS_HEADER];if(O&&al&&s&&"string"==typeof s&&b.setHeader(z.NEXT_CACHE_TAGS_HEADER,s),!q.status||aq&&as||(b.statusCode=q.status),!O&&q.status&&G.RedirectStatusCode[q.status]&&aq&&(b.statusCode=200),p&&b.setHeader(u.NEXT_DID_POSTPONE_HEADER,"1"),aq&&!aa){if(void 0===q.rscData){if(q.postponed)throw Object.defineProperty(Error("Invariant: Expected postponed to be undefined"),"__NEXT_ERROR_CODE",{value:"E372",enumerable:!1,configurable:!0});return(0,B.sendRenderResult)({req:a,res:b,generateEtags:ae.generateEtags,poweredByHeader:ae.poweredByHeader,result:q.html,cacheControl:aw?{revalidate:0,expire:void 0}:o.cacheControl})}return(0,B.sendRenderResult)({req:a,res:b,generateEtags:ae.generateEtags,poweredByHeader:ae.poweredByHeader,result:y.default.fromStatic(q.rscData,u.RSC_CONTENT_TYPE_HEADER),cacheControl:o.cacheControl})}let t=q.html;if(!p||O||aq)return(0,B.sendRenderResult)({req:a,res:b,generateEtags:ae.generateEtags,poweredByHeader:ae.poweredByHeader,result:t,cacheControl:o.cacheControl});if(at)return t.push(new ReadableStream({start(a){a.enqueue(A.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,B.sendRenderResult)({req:a,res:b,generateEtags:ae.generateEtags,poweredByHeader:ae.poweredByHeader,result:t,cacheControl:{revalidate:0,expire:void 0}});let v=new TransformStream;return t.push(v.readable),m({span:c,postponed:q.postponed,fallbackRouteParams:null}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==w.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(v.writable)}).catch(a=>{v.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,B.sendRenderResult)({req:a,res:b,generateEtags:ae.generateEtags,poweredByHeader:ae.poweredByHeader,result:t,cacheControl:{revalidate:0,expire:void 0}})};if(!aG)return await aF.withPropagatedContext(a.headers,()=>aF.trace(i.BaseServerSpan.handleRequest,{spanName:`${aE} ${a.url}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aE,"http.target":a.url}},p));await p(aG)}catch(b){throw b instanceof C.NoFallbackError||await L.onRequestError(a,b,{routerKind:"App Router",routePath:H,routeType:"render",revalidateReason:(0,f.c)({isRevalidate:al,isOnDemandRevalidate:ai})},ad),b}}},73024:a=>{"use strict";a.exports=require("node:fs")},75919:a=>{"use strict";a.exports=require("node:worker_threads")},76760:a=>{"use strict";a.exports=require("node:path")},77598:a=>{"use strict";a.exports=require("node:crypto")},78088:(a,b,c)=>{Promise.resolve().then(c.bind(c,36173)),Promise.resolve().then(c.bind(c,49044)),Promise.resolve().then(c.bind(c,95796)),Promise.resolve().then(c.bind(c,18110)),Promise.resolve().then(c.bind(c,78200)),Promise.resolve().then(c.bind(c,48028)),Promise.resolve().then(c.bind(c,5261)),Promise.resolve().then(c.bind(c,8516)),Promise.resolve().then(c.bind(c,77002)),Promise.resolve().then(c.bind(c,21670)),Promise.resolve().then(c.bind(c,51049)),Promise.resolve().then(c.bind(c,39447)),Promise.resolve().then(c.bind(c,60389)),Promise.resolve().then(c.bind(c,15793)),Promise.resolve().then(c.bind(c,51490)),Promise.resolve().then(c.bind(c,7160)),Promise.resolve().then(c.bind(c,80724)),Promise.resolve().then(c.bind(c,89846)),Promise.resolve().then(c.bind(c,75368)),Promise.resolve().then(c.bind(c,8557)),Promise.resolve().then(c.bind(c,97299)),Promise.resolve().then(c.bind(c,96293)),Promise.resolve().then(c.bind(c,17693)),Promise.resolve().then(c.bind(c,23529)),Promise.resolve().then(c.bind(c,41119)),Promise.resolve().then(c.bind(c,54495)),Promise.resolve().then(c.bind(c,53012)),Promise.resolve().then(c.bind(c,6910)),Promise.resolve().then(c.bind(c,80193)),Promise.resolve().then(c.bind(c,73032)),Promise.resolve().then(c.bind(c,38069)),Promise.resolve().then(c.bind(c,35722)),Promise.resolve().then(c.bind(c,23594)),Promise.resolve().then(c.bind(c,16151)),Promise.resolve().then(c.bind(c,70756)),Promise.resolve().then(c.bind(c,41502)),Promise.resolve().then(c.bind(c,55553)),Promise.resolve().then(c.bind(c,2226)),Promise.resolve().then(c.bind(c,70380)),Promise.resolve().then(c.bind(c,76214)),Promise.resolve().then(c.bind(c,97926)),Promise.resolve().then(c.bind(c,49164)),Promise.resolve().then(c.bind(c,60332)),Promise.resolve().then(c.bind(c,38055)),Promise.resolve().then(c.bind(c,48271)),Promise.resolve().then(c.bind(c,73472)),Promise.resolve().then(c.bind(c,90671)),Promise.resolve().then(c.bind(c,25843)),Promise.resolve().then(c.bind(c,25545)),Promise.resolve().then(c.bind(c,40987)),Promise.resolve().then(c.bind(c,70196)),Promise.resolve().then(c.bind(c,71400)),Promise.resolve().then(c.bind(c,58846)),Promise.resolve().then(c.bind(c,35787))},79868:a=>{"use strict";a.exports=require("node:sqlite")},83379:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>p,dynamic:()=>n,metadata:()=>o,runtime:()=>m});var d=c(12011),e=c(16967),f=c(72078),g=c(38638),h=c(35787),i=c(32389),j=c(58846);let k=a=>Array.isArray(a)?a[0]??"":a??"";function l(a){return k(a.id).trim()}let m="nodejs",n="force-dynamic",o={title:"Activity"};async function p({searchParams:a}){let b,c=await a,m=k(c.q).trim(),n=(Array.isArray(b=c.harness)?b:b?[b]:[]).filter(a=>f.TUN.options.includes(a)),o=(0,e.OHL)(k(c.range)),p=l(c),q="1"===k(c.empty),r="full"===k(c.view)&&""!==l(c),s=(0,i.db)().activity,t=Date.parse((0,e.oBs)(o)),[u,v,w,x]=await Promise.all([s.stats(),s.listSessions(function(a,b,c,d=!1,f=Date.now()){return{...a?{q:a}:{},...b.length?{harness:b}:{},...d?{}:{excludeEmpty:!0},from:(0,e.oBs)(c,f),limit:100}}(m,n,o,q)),s.tokenReports(t),s.harnessFacets(t)]),y=(0,f.W4_)(w),z=(0,e.QTF)(o),A=p||(v.items[0]?.id??""),[B,C]=A?await Promise.all([s.getSession(A),s.tokenReportForSession(A)]):[null,null],D=B?await (0,i.db)().findings.sessionFindingsCount(B.id):0,E=B&&D>0?{count:D,href:`/findings?session=${encodeURIComponent(B.id)}`}:null,F=[{icon:g.k3,value:u.sessionsToday.toLocaleString(),label:"Sessions today",tone:"gray"},{icon:g.DQ,value:u.liveNow.toLocaleString(),label:"Live now",tone:"green"},{icon:g.kp,value:u.toolCallsToday.toLocaleString(),label:"Tool calls",tone:"gray"},{icon:g.Zu,value:u.findingsToday.toLocaleString(),label:"Findings triggered",tone:"red"},{icon:g._G,value:u.egressToday.toLocaleString(),label:"Egress events",tone:"teal"}];return(0,d.jsxs)("div",{className:"flex h-full min-h-0 flex-col px-8 pb-8 pt-7",children:[(0,d.jsx)(e.ece,{title:"Activity",sub:"Your local harness sessions, reconstructed from the audit log",actions:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(e.rDU,{summary:y,isLoading:!1,error:null,rangeLabel:z}),(0,d.jsx)(h.RangeSelect,{value:o})]})}),(0,d.jsx)(e.s0y,{items:F,isLoading:!1}),(0,d.jsx)(j.ActivityClient,{sessions:v.items,detail:B,tokenReport:C,liveFindings:E,q:m,harness:n,harnessOptions:x,range:o,selectedId:A,hasMore:!!v.nextCursor,emptyCount:v.emptyCount,showEmpty:q,expanded:r})]})}},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[261,853,68,314,967],()=>b(b.s=72854));module.exports=c})();