@pleaseai/agent 0.1.17 → 0.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/b9184376-213c-4350-b5c2-fff46a3d287b.json +1 -0
- package/.output/server/chunks/build/Badge-BnQthhyg.mjs +1 -1
- package/.output/server/chunks/build/_id_-B-peNi7y.mjs +2 -0
- package/.output/server/chunks/build/_identifier_-u8aQI-B5.mjs +2 -0
- package/.output/server/chunks/build/dashboard-DRFqbhzu.mjs +2 -0
- package/.output/server/chunks/build/error-404-Boq1zV4r.mjs +2 -0
- package/.output/server/chunks/build/error-500-BAbnx-7I.mjs +2 -0
- package/.output/server/chunks/build/index-BAy5ojFe.mjs +2 -0
- package/.output/server/chunks/build/login-DPXKXUwG.mjs +2 -0
- package/.output/server/chunks/build/server.mjs +2 -0
- package/.output/server/chunks/routes/api/auth/_...all_.mjs +2 -0
- package/.output/server/chunks/routes/api/auth/_...all_.mjs.map +1 -1
- package/.output/server/chunks/routes/api/v1/_identifier_.get.mjs +2 -0
- package/.output/server/chunks/routes/api/v1/_identifier_.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/v1/refresh.post.mjs +2 -0
- package/.output/server/chunks/routes/api/v1/refresh.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/v1/sessions/_sessionId/messages.get.mjs +2 -0
- package/.output/server/chunks/routes/api/v1/sessions/_sessionId/messages.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/v1/state.get.mjs +2 -0
- package/.output/server/chunks/routes/api/v1/state.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/webhooks/asana.post.mjs +72 -0
- package/.output/server/chunks/routes/api/webhooks/asana.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/webhooks/github.post.mjs +3 -1
- package/.output/server/chunks/routes/api/webhooks/github.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/webhooks/slack.post.mjs +3 -1
- package/.output/server/chunks/routes/api/webhooks/slack.post.mjs.map +1 -1
- package/.output/server/chunks/routes/renderer.mjs +1 -1
- package/.output/server/index.mjs +126 -65
- package/.output/server/index.mjs.map +1 -1
- package/.output/server/node_modules/chat-adapter-asana/dist/index.js +312 -0
- package/.output/server/node_modules/chat-adapter-asana/package.json +66 -0
- package/.output/server/package.json +2 -1
- package/dist/index.js +2 -1
- package/package.json +3 -2
- package/.output/public/_nuxt/builds/meta/748a2baa-57b8-4080-8fea-335bbddd248e.json +0 -1
package/.output/server/index.mjs
CHANGED
|
@@ -18,9 +18,11 @@ import { spawnSync } from 'node:child_process';
|
|
|
18
18
|
import { createGitHubAdapter as createGitHubAdapter$1 } from '@chat-adapter/github';
|
|
19
19
|
import { createSlackAdapter } from '@chat-adapter/slack';
|
|
20
20
|
import { Chat } from 'chat';
|
|
21
|
+
import { createAsanaAdapter as createAsanaAdapter$1 } from 'chat-adapter-asana';
|
|
21
22
|
import { betterAuth } from 'better-auth';
|
|
22
23
|
import { admin, username } from 'better-auth/plugins';
|
|
23
24
|
import { Database } from 'bun:sqlite';
|
|
25
|
+
import { getMigrations } from 'better-auth/db/migration';
|
|
24
26
|
import { fileURLToPath } from 'node:url';
|
|
25
27
|
import { getIcons } from '@iconify/utils';
|
|
26
28
|
|
|
@@ -4614,7 +4616,7 @@ function _expandFromEnv(value) {
|
|
|
4614
4616
|
const _inlineRuntimeConfig = {
|
|
4615
4617
|
"app": {
|
|
4616
4618
|
"baseURL": "/",
|
|
4617
|
-
"buildId": "
|
|
4619
|
+
"buildId": "b9184376-213c-4350-b5c2-fff46a3d287b",
|
|
4618
4620
|
"buildAssetsDir": "/_nuxt/",
|
|
4619
4621
|
"cdnURL": ""
|
|
4620
4622
|
},
|
|
@@ -5729,7 +5731,8 @@ function buildPlatformsConfig(raw) {
|
|
|
5729
5731
|
bot_username: resolveEnvValue(
|
|
5730
5732
|
stringValue(sec.bot_username),
|
|
5731
5733
|
(_a = process$1.env.CHAT_BOT_USERNAME) != null ? _a : process$1.env.GITHUB_BOT_USERNAME
|
|
5732
|
-
)
|
|
5734
|
+
),
|
|
5735
|
+
webhook_secret: resolveEnvValue(stringValue(sec.webhook_secret), process$1.env.ASANA_WEBHOOK_SECRET)
|
|
5733
5736
|
};
|
|
5734
5737
|
} else {
|
|
5735
5738
|
result[key] = {
|
|
@@ -5842,7 +5845,7 @@ function buildAuthConfig(auth) {
|
|
|
5842
5845
|
client_secret: resolveEnvValue(stringValue(github.client_secret), process$1.env.AUTH_GITHUB_CLIENT_SECRET)
|
|
5843
5846
|
},
|
|
5844
5847
|
admin: {
|
|
5845
|
-
|
|
5848
|
+
email: resolveEnvValue(stringValue(admin.email), process$1.env.AUTH_ADMIN_EMAIL),
|
|
5846
5849
|
password: resolveEnvValue(stringValue(admin.password), process$1.env.AUTH_ADMIN_PASSWORD)
|
|
5847
5850
|
}
|
|
5848
5851
|
};
|
|
@@ -7252,16 +7255,17 @@ function createAsanaAdapter(project, platform) {
|
|
|
7252
7255
|
"Content-Type": "application/json"
|
|
7253
7256
|
};
|
|
7254
7257
|
}
|
|
7255
|
-
async function
|
|
7258
|
+
async function request(url, init) {
|
|
7256
7259
|
let response;
|
|
7260
|
+
const ctrl = new AbortController();
|
|
7261
|
+
const timeout = setTimeout(() => ctrl.abort(), NETWORK_TIMEOUT_MS);
|
|
7257
7262
|
try {
|
|
7258
|
-
|
|
7259
|
-
const timeout = setTimeout(() => ctrl.abort(), NETWORK_TIMEOUT_MS);
|
|
7260
|
-
response = await fetch(url, { headers: headers(), signal: ctrl.signal });
|
|
7261
|
-
clearTimeout(timeout);
|
|
7263
|
+
response = await fetch(url, { headers: headers(), signal: ctrl.signal, ...init });
|
|
7262
7264
|
} catch (cause) {
|
|
7265
|
+
clearTimeout(timeout);
|
|
7263
7266
|
return { code: "asana_api_request", cause };
|
|
7264
7267
|
}
|
|
7268
|
+
clearTimeout(timeout);
|
|
7265
7269
|
if (!response.ok) {
|
|
7266
7270
|
const body2 = await response.json().catch(() => null);
|
|
7267
7271
|
return { code: "asana_api_status", status: response.status, body: body2 };
|
|
@@ -7269,17 +7273,29 @@ function createAsanaAdapter(project, platform) {
|
|
|
7269
7273
|
const body = await response.json().catch(() => null);
|
|
7270
7274
|
return { data: body };
|
|
7271
7275
|
}
|
|
7272
|
-
|
|
7273
|
-
|
|
7276
|
+
function fetchJson(url) {
|
|
7277
|
+
return request(url);
|
|
7278
|
+
}
|
|
7279
|
+
function postJson(url, payload) {
|
|
7280
|
+
return request(url, { method: "POST", body: JSON.stringify(payload) });
|
|
7281
|
+
}
|
|
7282
|
+
async function fetchSections() {
|
|
7283
|
+
const result = await fetchJson(
|
|
7274
7284
|
`${endpoint}/projects/${projectGid}/sections?opt_fields=name,gid`
|
|
7275
7285
|
);
|
|
7276
|
-
if ("code" in
|
|
7277
|
-
return
|
|
7278
|
-
const
|
|
7279
|
-
if (!Array.isArray(
|
|
7280
|
-
return { code: "asana_unknown_payload", payload
|
|
7286
|
+
if ("code" in result)
|
|
7287
|
+
return result;
|
|
7288
|
+
const payload = result.data;
|
|
7289
|
+
if (!Array.isArray(payload == null ? void 0 : payload.data)) {
|
|
7290
|
+
return { code: "asana_unknown_payload", payload };
|
|
7281
7291
|
}
|
|
7282
|
-
|
|
7292
|
+
return payload.data;
|
|
7293
|
+
}
|
|
7294
|
+
async function fetchTasks(sectionNames) {
|
|
7295
|
+
const sections = await fetchSections();
|
|
7296
|
+
if ("code" in sections)
|
|
7297
|
+
return sections;
|
|
7298
|
+
const targetSections = sections.filter(
|
|
7283
7299
|
(s) => sectionNames.some((name) => normalizeState(name) === normalizeState(s.name))
|
|
7284
7300
|
);
|
|
7285
7301
|
const allIssues = [];
|
|
@@ -7326,8 +7342,33 @@ function createAsanaAdapter(project, platform) {
|
|
|
7326
7342
|
return allIssues;
|
|
7327
7343
|
return splitCandidatesAndWatched(allIssues, activeSections, watchedStates, filter);
|
|
7328
7344
|
},
|
|
7329
|
-
async updateItemStatus(
|
|
7330
|
-
|
|
7345
|
+
async updateItemStatus(itemId, targetState) {
|
|
7346
|
+
const sections = await fetchSections();
|
|
7347
|
+
if ("code" in sections)
|
|
7348
|
+
return sections;
|
|
7349
|
+
const targetSection = sections.find(
|
|
7350
|
+
(s) => normalizeState(s.name) === normalizeState(targetState)
|
|
7351
|
+
);
|
|
7352
|
+
if (!targetSection) {
|
|
7353
|
+
return { code: "asana_api_status", status: 404, body: { message: `Section "${targetState}" not found in project` } };
|
|
7354
|
+
}
|
|
7355
|
+
const result = await postJson(
|
|
7356
|
+
`${endpoint}/sections/${targetSection.gid}/addTask`,
|
|
7357
|
+
{ data: { task: itemId } }
|
|
7358
|
+
);
|
|
7359
|
+
if ("code" in result)
|
|
7360
|
+
return result;
|
|
7361
|
+
return true;
|
|
7362
|
+
},
|
|
7363
|
+
async resolveStatusField() {
|
|
7364
|
+
const sections = await fetchSections();
|
|
7365
|
+
if ("code" in sections)
|
|
7366
|
+
return null;
|
|
7367
|
+
return {
|
|
7368
|
+
project_id: projectGid,
|
|
7369
|
+
field_id: "section",
|
|
7370
|
+
options: sections.map((s) => ({ name: s.name, id: s.gid }))
|
|
7371
|
+
};
|
|
7331
7372
|
},
|
|
7332
7373
|
async fetchIssuesByStates(states) {
|
|
7333
7374
|
if (states.length === 0)
|
|
@@ -9030,6 +9071,23 @@ const _VCHkQhvkNsNDHei1eC_3Lald7zww01nWEx7tz7qHyo = defineNitroPlugin(async (nit
|
|
|
9030
9071
|
});
|
|
9031
9072
|
resolvedBotUsername != null ? resolvedBotUsername : resolvedBotUsername = null;
|
|
9032
9073
|
}
|
|
9074
|
+
} else if (platform.kind === "asana") {
|
|
9075
|
+
const asanaPlatform = platform;
|
|
9076
|
+
if (asanaPlatform.api_key) {
|
|
9077
|
+
const adapterOpts = {
|
|
9078
|
+
accessToken: asanaPlatform.api_key
|
|
9079
|
+
};
|
|
9080
|
+
if (asanaPlatform.bot_username) {
|
|
9081
|
+
adapterOpts.userName = asanaPlatform.bot_username;
|
|
9082
|
+
resolvedBotUsername != null ? resolvedBotUsername : resolvedBotUsername = asanaPlatform.bot_username;
|
|
9083
|
+
}
|
|
9084
|
+
if (asanaPlatform.webhook_secret) {
|
|
9085
|
+
adapterOpts.webhookSecret = asanaPlatform.webhook_secret;
|
|
9086
|
+
}
|
|
9087
|
+
adapters.asana = createAsanaAdapter$1(adapterOpts);
|
|
9088
|
+
} else {
|
|
9089
|
+
log$1.warn("no api_key configured \u2014 Asana chat adapter skipped");
|
|
9090
|
+
}
|
|
9033
9091
|
}
|
|
9034
9092
|
}
|
|
9035
9093
|
if (Object.keys(adapters).length === 0) {
|
|
@@ -9156,14 +9214,15 @@ const _OEXk2V6x3RDCWp7jXoJRwSXc2gM87hr_pgKGv5at4mU = defineNitroPlugin(async (ni
|
|
|
9156
9214
|
const dbPath = resolve$1(config.workspace.root, config.db.path);
|
|
9157
9215
|
const auth = initAuth(config.auth, dbPath);
|
|
9158
9216
|
try {
|
|
9159
|
-
await auth.
|
|
9217
|
+
const { runMigrations } = await getMigrations(auth.options);
|
|
9218
|
+
await runMigrations();
|
|
9160
9219
|
log.info("auth migrations complete");
|
|
9161
9220
|
} catch (err) {
|
|
9162
9221
|
log.error("auth migration failed:", err);
|
|
9163
9222
|
resetAuth();
|
|
9164
9223
|
return;
|
|
9165
9224
|
}
|
|
9166
|
-
if (config.auth.admin.
|
|
9225
|
+
if (config.auth.admin.email && config.auth.admin.password) {
|
|
9167
9226
|
if (config.auth.admin.password.length < MIN_ADMIN_PASSWORD_LENGTH) {
|
|
9168
9227
|
log.warn(`admin password must be at least ${MIN_ADMIN_PASSWORD_LENGTH} characters \u2014 admin not seeded`);
|
|
9169
9228
|
return;
|
|
@@ -9177,16 +9236,16 @@ const _OEXk2V6x3RDCWp7jXoJRwSXc2gM87hr_pgKGv5at4mU = defineNitroPlugin(async (ni
|
|
|
9177
9236
|
});
|
|
9178
9237
|
const adminExists = ((_b = existing == null ? void 0 : existing.total) != null ? _b : 0) > 0;
|
|
9179
9238
|
if (!adminExists) {
|
|
9239
|
+
const name = config.auth.admin.email.split("@")[0] || config.auth.admin.email;
|
|
9180
9240
|
await auth.api.createUser({
|
|
9181
9241
|
body: {
|
|
9182
|
-
email:
|
|
9183
|
-
name
|
|
9184
|
-
username: config.auth.admin.username,
|
|
9242
|
+
email: config.auth.admin.email,
|
|
9243
|
+
name,
|
|
9185
9244
|
password: config.auth.admin.password,
|
|
9186
9245
|
role: "admin"
|
|
9187
9246
|
}
|
|
9188
9247
|
});
|
|
9189
|
-
log.info(`admin user "${config.auth.admin.
|
|
9248
|
+
log.info(`admin user "${config.auth.admin.email}" seeded`);
|
|
9190
9249
|
}
|
|
9191
9250
|
} catch (err) {
|
|
9192
9251
|
log.warn("admin seeding failed:", err);
|
|
@@ -9205,128 +9264,128 @@ const assets = {
|
|
|
9205
9264
|
"/_nuxt/1IbcHhBU.js": {
|
|
9206
9265
|
"type": "text/javascript; charset=utf-8",
|
|
9207
9266
|
"etag": "\"a02-RQGcLtCHQx90WSFODqNYMIAZEg0\"",
|
|
9208
|
-
"mtime": "2026-03-
|
|
9267
|
+
"mtime": "2026-03-21T08:46:01.458Z",
|
|
9209
9268
|
"size": 2562,
|
|
9210
9269
|
"path": "../public/_nuxt/1IbcHhBU.js"
|
|
9211
9270
|
},
|
|
9212
9271
|
"/_nuxt/BTF_RZdZ.js": {
|
|
9213
9272
|
"type": "text/javascript; charset=utf-8",
|
|
9214
9273
|
"etag": "\"139f-FAbox5PFGVmZUptyaUSe9/bvc68\"",
|
|
9215
|
-
"mtime": "2026-03-
|
|
9274
|
+
"mtime": "2026-03-21T08:46:01.458Z",
|
|
9216
9275
|
"size": 5023,
|
|
9217
9276
|
"path": "../public/_nuxt/BTF_RZdZ.js"
|
|
9218
9277
|
},
|
|
9219
9278
|
"/_nuxt/BsKcI3-e.js": {
|
|
9220
9279
|
"type": "text/javascript; charset=utf-8",
|
|
9221
9280
|
"etag": "\"106d-zXckGvejhjMRU6ig2hwIkax0358\"",
|
|
9222
|
-
"mtime": "2026-03-
|
|
9281
|
+
"mtime": "2026-03-21T08:46:01.458Z",
|
|
9223
9282
|
"size": 4205,
|
|
9224
9283
|
"path": "../public/_nuxt/BsKcI3-e.js"
|
|
9225
9284
|
},
|
|
9226
9285
|
"/_nuxt/BzSBlrMF.js": {
|
|
9227
9286
|
"type": "text/javascript; charset=utf-8",
|
|
9228
9287
|
"etag": "\"37f5-xI3lk6qrXENC8P1j6fw16VBKcGo\"",
|
|
9229
|
-
"mtime": "2026-03-
|
|
9288
|
+
"mtime": "2026-03-21T08:46:01.458Z",
|
|
9230
9289
|
"size": 14325,
|
|
9231
9290
|
"path": "../public/_nuxt/BzSBlrMF.js"
|
|
9232
9291
|
},
|
|
9233
9292
|
"/_nuxt/Bh-tMwKs.js": {
|
|
9234
9293
|
"type": "text/javascript; charset=utf-8",
|
|
9235
9294
|
"etag": "\"631ea-CgZi+6tLdne3UUpDARHNg4fIS2s\"",
|
|
9236
|
-
"mtime": "2026-03-
|
|
9295
|
+
"mtime": "2026-03-21T08:46:01.458Z",
|
|
9237
9296
|
"size": 405994,
|
|
9238
9297
|
"path": "../public/_nuxt/Bh-tMwKs.js"
|
|
9239
9298
|
},
|
|
9240
|
-
"/_nuxt/C3iS5Uhb.js": {
|
|
9241
|
-
"type": "text/javascript; charset=utf-8",
|
|
9242
|
-
"etag": "\"2b388-YFxKGdn4enuTj6XYfh1oHdEWqVw\"",
|
|
9243
|
-
"mtime": "2026-03-21T03:19:56.139Z",
|
|
9244
|
-
"size": 177032,
|
|
9245
|
-
"path": "../public/_nuxt/C3iS5Uhb.js"
|
|
9246
|
-
},
|
|
9247
9299
|
"/_nuxt/D32OC87-.js": {
|
|
9248
9300
|
"type": "text/javascript; charset=utf-8",
|
|
9249
9301
|
"etag": "\"16b4-4pHc93XWE9whlGwaUAoq8ovB88A\"",
|
|
9250
|
-
"mtime": "2026-03-
|
|
9302
|
+
"mtime": "2026-03-21T08:46:01.458Z",
|
|
9251
9303
|
"size": 5812,
|
|
9252
9304
|
"path": "../public/_nuxt/D32OC87-.js"
|
|
9253
9305
|
},
|
|
9306
|
+
"/_nuxt/C3iS5Uhb.js": {
|
|
9307
|
+
"type": "text/javascript; charset=utf-8",
|
|
9308
|
+
"etag": "\"2b388-YFxKGdn4enuTj6XYfh1oHdEWqVw\"",
|
|
9309
|
+
"mtime": "2026-03-21T08:46:01.458Z",
|
|
9310
|
+
"size": 177032,
|
|
9311
|
+
"path": "../public/_nuxt/C3iS5Uhb.js"
|
|
9312
|
+
},
|
|
9254
9313
|
"/_nuxt/DYb-jmio.js": {
|
|
9255
9314
|
"type": "text/javascript; charset=utf-8",
|
|
9256
9315
|
"etag": "\"16042-9GFfOLY1pRqKYylZgih1EFiSfVQ\"",
|
|
9257
|
-
"mtime": "2026-03-
|
|
9316
|
+
"mtime": "2026-03-21T08:46:01.458Z",
|
|
9258
9317
|
"size": 90178,
|
|
9259
9318
|
"path": "../public/_nuxt/DYb-jmio.js"
|
|
9260
9319
|
},
|
|
9261
9320
|
"/_nuxt/DeqoUPGn.js": {
|
|
9262
9321
|
"type": "text/javascript; charset=utf-8",
|
|
9263
9322
|
"etag": "\"17d3-aQPDuOTM+Ikn+7xfEPPmLHbijQg\"",
|
|
9264
|
-
"mtime": "2026-03-
|
|
9323
|
+
"mtime": "2026-03-21T08:46:01.458Z",
|
|
9265
9324
|
"size": 6099,
|
|
9266
9325
|
"path": "../public/_nuxt/DeqoUPGn.js"
|
|
9267
9326
|
},
|
|
9268
|
-
"/_nuxt/cCUm7iY-.js": {
|
|
9269
|
-
"type": "text/javascript; charset=utf-8",
|
|
9270
|
-
"etag": "\"3f45-LeyKcsl31pGPPG2C4tLGIMJ9PHs\"",
|
|
9271
|
-
"mtime": "2026-03-21T03:19:56.140Z",
|
|
9272
|
-
"size": 16197,
|
|
9273
|
-
"path": "../public/_nuxt/cCUm7iY-.js"
|
|
9274
|
-
},
|
|
9275
9327
|
"/_nuxt/DoaBpHko.js": {
|
|
9276
9328
|
"type": "text/javascript; charset=utf-8",
|
|
9277
9329
|
"etag": "\"d7b-uEyM0MRLgcHsyhv1A5OrstUlXg0\"",
|
|
9278
|
-
"mtime": "2026-03-
|
|
9330
|
+
"mtime": "2026-03-21T08:46:01.458Z",
|
|
9279
9331
|
"size": 3451,
|
|
9280
9332
|
"path": "../public/_nuxt/DoaBpHko.js"
|
|
9281
9333
|
},
|
|
9334
|
+
"/_nuxt/cCUm7iY-.js": {
|
|
9335
|
+
"type": "text/javascript; charset=utf-8",
|
|
9336
|
+
"etag": "\"3f45-LeyKcsl31pGPPG2C4tLGIMJ9PHs\"",
|
|
9337
|
+
"mtime": "2026-03-21T08:46:01.458Z",
|
|
9338
|
+
"size": 16197,
|
|
9339
|
+
"path": "../public/_nuxt/cCUm7iY-.js"
|
|
9340
|
+
},
|
|
9282
9341
|
"/_nuxt/d0DDPc3x.js": {
|
|
9283
9342
|
"type": "text/javascript; charset=utf-8",
|
|
9284
9343
|
"etag": "\"e99-15wTEjs74juYxCRRyfNCo0NyfHw\"",
|
|
9285
|
-
"mtime": "2026-03-
|
|
9344
|
+
"mtime": "2026-03-21T08:46:01.458Z",
|
|
9286
9345
|
"size": 3737,
|
|
9287
9346
|
"path": "../public/_nuxt/d0DDPc3x.js"
|
|
9288
9347
|
},
|
|
9289
9348
|
"/_nuxt/error-404.CpAx3mXP.css": {
|
|
9290
9349
|
"type": "text/css; charset=utf-8",
|
|
9291
9350
|
"etag": "\"97e-aWeQU7sH4sbSXKhTeZS+aHTFHmY\"",
|
|
9292
|
-
"mtime": "2026-03-
|
|
9351
|
+
"mtime": "2026-03-21T08:46:01.458Z",
|
|
9293
9352
|
"size": 2430,
|
|
9294
9353
|
"path": "../public/_nuxt/error-404.CpAx3mXP.css"
|
|
9295
9354
|
},
|
|
9355
|
+
"/_nuxt/entry.uBXQoLs_.css": {
|
|
9356
|
+
"type": "text/css; charset=utf-8",
|
|
9357
|
+
"etag": "\"2a0f0-lKTvs26MQDTzQ9+V28ONJm0rqkE\"",
|
|
9358
|
+
"mtime": "2026-03-21T08:46:01.458Z",
|
|
9359
|
+
"size": 172272,
|
|
9360
|
+
"path": "../public/_nuxt/entry.uBXQoLs_.css"
|
|
9361
|
+
},
|
|
9296
9362
|
"/_nuxt/error-500.VGk_v7xu.css": {
|
|
9297
9363
|
"type": "text/css; charset=utf-8",
|
|
9298
9364
|
"etag": "\"773-hsfNOir6D1JlUzebA5dOkIFiWzg\"",
|
|
9299
|
-
"mtime": "2026-03-
|
|
9365
|
+
"mtime": "2026-03-21T08:46:01.458Z",
|
|
9300
9366
|
"size": 1907,
|
|
9301
9367
|
"path": "../public/_nuxt/error-500.VGk_v7xu.css"
|
|
9302
9368
|
},
|
|
9303
9369
|
"/_nuxt/nOjN_vKW.js": {
|
|
9304
9370
|
"type": "text/javascript; charset=utf-8",
|
|
9305
9371
|
"etag": "\"3ed-TqwB3OS0ZD7wkrEKvHkrp0AT0lY\"",
|
|
9306
|
-
"mtime": "2026-03-
|
|
9372
|
+
"mtime": "2026-03-21T08:46:01.458Z",
|
|
9307
9373
|
"size": 1005,
|
|
9308
9374
|
"path": "../public/_nuxt/nOjN_vKW.js"
|
|
9309
9375
|
},
|
|
9310
9376
|
"/_nuxt/builds/latest.json": {
|
|
9311
9377
|
"type": "application/json",
|
|
9312
|
-
"etag": "\"47-
|
|
9313
|
-
"mtime": "2026-03-
|
|
9378
|
+
"etag": "\"47-04y9ipHWf4RZaABJlpwFgoiT0M8\"",
|
|
9379
|
+
"mtime": "2026-03-21T08:46:01.450Z",
|
|
9314
9380
|
"size": 71,
|
|
9315
9381
|
"path": "../public/_nuxt/builds/latest.json"
|
|
9316
9382
|
},
|
|
9317
|
-
"/_nuxt/
|
|
9318
|
-
"type": "text/css; charset=utf-8",
|
|
9319
|
-
"etag": "\"2a0f0-lKTvs26MQDTzQ9+V28ONJm0rqkE\"",
|
|
9320
|
-
"mtime": "2026-03-21T03:19:56.140Z",
|
|
9321
|
-
"size": 172272,
|
|
9322
|
-
"path": "../public/_nuxt/entry.uBXQoLs_.css"
|
|
9323
|
-
},
|
|
9324
|
-
"/_nuxt/builds/meta/748a2baa-57b8-4080-8fea-335bbddd248e.json": {
|
|
9383
|
+
"/_nuxt/builds/meta/b9184376-213c-4350-b5c2-fff46a3d287b.json": {
|
|
9325
9384
|
"type": "application/json",
|
|
9326
|
-
"etag": "\"58-
|
|
9327
|
-
"mtime": "2026-03-
|
|
9385
|
+
"etag": "\"58-mE1U8H5lZlAuXHbN3vliec2iBdA\"",
|
|
9386
|
+
"mtime": "2026-03-21T08:46:01.445Z",
|
|
9328
9387
|
"size": 88,
|
|
9329
|
-
"path": "../public/_nuxt/builds/meta/
|
|
9388
|
+
"path": "../public/_nuxt/builds/meta/b9184376-213c-4350-b5c2-fff46a3d287b.json"
|
|
9330
9389
|
}
|
|
9331
9390
|
};
|
|
9332
9391
|
|
|
@@ -9684,6 +9743,7 @@ const _lazy_KpAni7 = () => import('./chunks/routes/api/v1/_identifier_.get.mjs')
|
|
|
9684
9743
|
const _lazy_W3EhOe = () => import('./chunks/routes/api/v1/refresh.post.mjs');
|
|
9685
9744
|
const _lazy_8XVLqI = () => import('./chunks/routes/api/v1/sessions/_sessionId/messages.get.mjs');
|
|
9686
9745
|
const _lazy_FRcfON = () => import('./chunks/routes/api/v1/state.get.mjs');
|
|
9746
|
+
const _lazy_qd2JgI = () => import('./chunks/routes/api/webhooks/asana.post.mjs');
|
|
9687
9747
|
const _lazy_5ZpMYD = () => import('./chunks/routes/api/webhooks/github.post.mjs');
|
|
9688
9748
|
const _lazy_Kk2VIn = () => import('./chunks/routes/api/webhooks/slack.post.mjs');
|
|
9689
9749
|
const _lazy_bHqN2k = () => import('./chunks/routes/renderer.mjs').then(function (n) { return n.r; });
|
|
@@ -9696,6 +9756,7 @@ const handlers = [
|
|
|
9696
9756
|
{ route: '/api/v1/refresh', handler: _lazy_W3EhOe, lazy: true, middleware: false, method: "post" },
|
|
9697
9757
|
{ route: '/api/v1/sessions/:sessionId/messages', handler: _lazy_8XVLqI, lazy: true, middleware: false, method: "get" },
|
|
9698
9758
|
{ route: '/api/v1/state', handler: _lazy_FRcfON, lazy: true, middleware: false, method: "get" },
|
|
9759
|
+
{ route: '/api/webhooks/asana', handler: _lazy_qd2JgI, lazy: true, middleware: false, method: "post" },
|
|
9699
9760
|
{ route: '/api/webhooks/github', handler: _lazy_5ZpMYD, lazy: true, middleware: false, method: "post" },
|
|
9700
9761
|
{ route: '/api/webhooks/slack', handler: _lazy_Kk2VIn, lazy: true, middleware: false, method: "post" },
|
|
9701
9762
|
{ route: '/__nuxt_error', handler: _lazy_bHqN2k, lazy: true, middleware: false, method: undefined },
|
|
@@ -9916,5 +9977,5 @@ const server = Bun.serve({
|
|
|
9916
9977
|
});
|
|
9917
9978
|
console.log(`Listening on ${server.url}...`);
|
|
9918
9979
|
|
|
9919
|
-
export { $fetch$1 as $, destr as A, getRouteRules as B, joinURL as C, defu as D, hasProtocol as E, isScriptProtocol as F, klona as G, parseQuery as H, withQuery as I, sanitizeStatusCode as J, parseURL as K, encodePath as L, decodePath as M, defuFn as N, getContext as O, withTrailingSlash as P, withoutTrailingSlash as Q, baseURL as R, hash$1 as S, executeAsync as T, upperFirst as U, isEqual as V, parse as W, setCookie as X, getCookie as Y, deleteCookie as Z, useOrchestrator as a, getQuery as b, createError$1 as c, defineEventHandler as d,
|
|
9980
|
+
export { $fetch$1 as $, destr as A, getRouteRules as B, joinURL as C, defu as D, hasProtocol as E, isScriptProtocol as F, klona as G, parseQuery as H, withQuery as I, sanitizeStatusCode as J, parseURL as K, encodePath as L, decodePath as M, defuFn as N, getContext as O, withTrailingSlash as P, withoutTrailingSlash as Q, baseURL as R, hash$1 as S, executeAsync as T, upperFirst as U, isEqual as V, parse as W, setCookie as X, getCookie as Y, deleteCookie as Z, useOrchestrator as a, getQuery as b, createError$1 as c, defineEventHandler as d, setResponseHeader as e, fetchSessionMessages as f, getRouterParam as g, useNitroApp as h, isValidSessionId as i, createLogger as j, getRequestHeader as k, shouldHandleComment as l, handleIssueCommentMention as m, handleWebhook as n, createVerify as o, parsePositiveInt as p, buildAssetsURL as q, useRuntimeConfig as r, setResponseStatus as s, toWebRequest as t, useAuth as u, getResponseStatusText as v, workspacePath as w, getResponseStatus as x, defineRenderHandler as y, publicAssetsURL as z };
|
|
9920
9981
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../node_modules/.bun/destr@2.0.5/node_modules/destr/dist/index.mjs","../../../../node_modules/.bun/ufo@1.6.3/node_modules/ufo/dist/index.mjs","../../../../node_modules/.bun/cookie-es@1.2.2/node_modules/cookie-es/dist/index.mjs","../../../../node_modules/.bun/radix3@1.1.2/node_modules/radix3/dist/index.mjs","../../../../node_modules/.bun/defu@6.1.4/node_modules/defu/dist/defu.mjs","../../../../node_modules/.bun/node-mock-http@1.0.4/node_modules/node-mock-http/dist/index.mjs","../../../../node_modules/.bun/h3@1.15.8/node_modules/h3/dist/index.mjs","../../../../node_modules/.bun/hookable@5.5.3/node_modules/hookable/dist/index.mjs","../../../../node_modules/.bun/ofetch@1.5.1/node_modules/ofetch/dist/shared/ofetch.CWycOUEr.mjs","../../../../node_modules/.bun/ofetch@1.5.1/node_modules/ofetch/dist/index.mjs","../../../../node_modules/.bun/unstorage@1.17.4+ec7663c595791152/node_modules/unstorage/dist/shared/unstorage.zVDD2mZo.mjs","../../../../node_modules/.bun/unstorage@1.17.4+ec7663c595791152/node_modules/unstorage/dist/index.mjs","../../../../node_modules/.bun/unstorage@1.17.4+ec7663c595791152/node_modules/unstorage/drivers/utils/index.mjs","../../../../node_modules/.bun/unstorage@1.17.4+ec7663c595791152/node_modules/unstorage/drivers/utils/node-fs.mjs","../../../../node_modules/.bun/unstorage@1.17.4+ec7663c595791152/node_modules/unstorage/drivers/fs-lite.mjs","../../../../node_modules/.bun/nitropack@2.13.1+5d168cad3842e387/node_modules/nitropack/dist/runtime/internal/storage.mjs","../../../../node_modules/.bun/ohash@2.0.11/node_modules/ohash/dist/shared/ohash.D__AXeF1.mjs","../../../../node_modules/.bun/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs","../../../../node_modules/.bun/ohash@2.0.11/node_modules/ohash/dist/index.mjs","../../../../node_modules/.bun/nitropack@2.13.1+5d168cad3842e387/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../node_modules/.bun/nitropack@2.13.1+5d168cad3842e387/node_modules/nitropack/dist/runtime/internal/cache.mjs","../../../../node_modules/.bun/klona@2.0.6/node_modules/klona/dist/index.mjs","../../../../node_modules/.bun/scule@1.3.0/node_modules/scule/dist/index.mjs","../../../../node_modules/.bun/nitropack@2.13.1+5d168cad3842e387/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../node_modules/.bun/nitropack@2.13.1+5d168cad3842e387/node_modules/nitropack/dist/runtime/internal/config.mjs","../../../../node_modules/.bun/unctx@2.5.0/node_modules/unctx/dist/index.mjs","../../../../node_modules/.bun/nitropack@2.13.1+5d168cad3842e387/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../node_modules/.bun/nitropack@2.13.1+5d168cad3842e387/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../node_modules/.bun/nitropack@2.13.1+5d168cad3842e387/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../node_modules/.bun/@nuxt+nitro-server@4.4.2+021de095a2e6052a/node_modules/@nuxt/nitro-server/dist/runtime/utils/error.mjs","../../../../node_modules/.bun/@nuxt+nitro-server@4.4.2+021de095a2e6052a/node_modules/@nuxt/nitro-server/dist/runtime/handlers/error.mjs","../../../../node_modules/.bun/nitropack@2.13.1+5d168cad3842e387/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../node_modules/.bun/nitropack@2.13.1+5d168cad3842e387/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../node_modules/.bun/@nuxtjs+color-mode@3.5.2+2c01c9708b757763/node_modules/@nuxtjs/color-mode/dist/runtime/nitro-plugin.js","../../../../node_modules/.bun/nitropack@2.13.1+5d168cad3842e387/node_modules/nitropack/dist/runtime/internal/plugin.mjs","../../../../packages/core/src/logger.ts","../../../../packages/core/src/agent-env.ts","../../../../packages/core/src/tracker/github-auth.ts","../../../../packages/core/src/tools.ts","../../../../packages/core/src/agent-runner.ts","../../../../packages/core/src/types.ts","../../../../packages/core/src/config.ts","../../../../packages/core/src/dispatch-lock.ts","../../../../packages/core/src/filter.ts","../../../../packages/core/src/prompt-builder.ts","../../../../packages/core/src/workspace.ts","../../../../packages/core/src/issue-comment-handler.ts","../../../../packages/core/src/label.ts","../../../../packages/core/src/db.ts","../../../../packages/core/src/tracker/types.ts","../../../../packages/core/src/tracker/asana.ts","../../../../packages/core/src/tracker/github-status-update.ts","../../../../packages/core/src/tracker/github.ts","../../../../packages/core/src/tracker/index.ts","../../../../packages/core/src/workflow.ts","../../../../packages/core/src/orchestrator.ts","../../../../packages/core/src/session-renderer.ts","../../../../packages/core/src/webhook.ts","../../../../packages/core/src/state.ts","../../server/plugins/01.orchestrator.ts","../../server/plugins/02.chat-bot.ts","../../server/utils/auth.ts","../../server/plugins/03.auth.ts","../../../../node_modules/.bun/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs","../../../../node_modules/.bun/nitropack@2.13.1+5d168cad3842e387/node_modules/nitropack/dist/runtime/internal/static.mjs","../../server/middleware/auth.ts","../../../../node_modules/.bun/nitropack@2.13.1+5d168cad3842e387/node_modules/nitropack/dist/runtime/internal/renderer.mjs","../../../../node_modules/.bun/@nuxt+nitro-server@4.4.2+021de095a2e6052a/node_modules/@nuxt/nitro-server/dist/runtime/utils/paths.mjs","../../server/utils/orchestrator.ts","../../node_modules/.cache/nuxt/.nuxt/nuxt-icon-server-bundle.mjs","../../../../node_modules/.bun/@nuxt+icon@2.2.1+06604bec5b73b6ef/node_modules/@nuxt/icon/dist/runtime/server/api.js","../../../../node_modules/.bun/nitropack@2.13.1+5d168cad3842e387/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../node_modules/.bun/cookie-es@2.0.0/node_modules/cookie-es/dist/index.mjs","../../../../node_modules/.bun/nitropack@2.13.1+5d168cad3842e387/node_modules/nitropack/dist/presets/bun/runtime/bun.mjs"],"names":["decode","TRAILING_SLASH_RE","getQuery","parse","tryDecode","serialize","createRouter","f","h","c","createError","mergeHeaders","_globalThis","fetch","Headers","AbortController","$fetch","normalizeKey","defineDriver","DRIVER_NAME","dirname","fsPromises","resolve","fsp","hash","_inlineAppConfig","createRadixRouter","log","RUNTIME_VAR_RE","process","NETWORK_TIMEOUT_MS","createGraphql","_a","query","sdkQuery","__publicField","GITHUB_ISSUE_URL_RE","nodeSpawnSync","Buffer","workspacePath","PAGE_SIZE","body","_b","_c","parseYaml","watch","content","safeEvent","createGitHubAdapter","nitroApp","callNodeRequestHandler","fetchNodeRequestHandler"],"mappings":"","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,63,64,66,67,69,70,71,72,73]}
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../node_modules/.bun/destr@2.0.5/node_modules/destr/dist/index.mjs","../../../../node_modules/.bun/ufo@1.6.3/node_modules/ufo/dist/index.mjs","../../../../node_modules/.bun/cookie-es@1.2.2/node_modules/cookie-es/dist/index.mjs","../../../../node_modules/.bun/radix3@1.1.2/node_modules/radix3/dist/index.mjs","../../../../node_modules/.bun/defu@6.1.4/node_modules/defu/dist/defu.mjs","../../../../node_modules/.bun/node-mock-http@1.0.4/node_modules/node-mock-http/dist/index.mjs","../../../../node_modules/.bun/h3@1.15.8/node_modules/h3/dist/index.mjs","../../../../node_modules/.bun/hookable@5.5.3/node_modules/hookable/dist/index.mjs","../../../../node_modules/.bun/ofetch@1.5.1/node_modules/ofetch/dist/shared/ofetch.CWycOUEr.mjs","../../../../node_modules/.bun/ofetch@1.5.1/node_modules/ofetch/dist/index.mjs","../../../../node_modules/.bun/unstorage@1.17.4+ec7663c595791152/node_modules/unstorage/dist/shared/unstorage.zVDD2mZo.mjs","../../../../node_modules/.bun/unstorage@1.17.4+ec7663c595791152/node_modules/unstorage/dist/index.mjs","../../../../node_modules/.bun/unstorage@1.17.4+ec7663c595791152/node_modules/unstorage/drivers/utils/index.mjs","../../../../node_modules/.bun/unstorage@1.17.4+ec7663c595791152/node_modules/unstorage/drivers/utils/node-fs.mjs","../../../../node_modules/.bun/unstorage@1.17.4+ec7663c595791152/node_modules/unstorage/drivers/fs-lite.mjs","../../../../node_modules/.bun/nitropack@2.13.1+5d168cad3842e387/node_modules/nitropack/dist/runtime/internal/storage.mjs","../../../../node_modules/.bun/ohash@2.0.11/node_modules/ohash/dist/shared/ohash.D__AXeF1.mjs","../../../../node_modules/.bun/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs","../../../../node_modules/.bun/ohash@2.0.11/node_modules/ohash/dist/index.mjs","../../../../node_modules/.bun/nitropack@2.13.1+5d168cad3842e387/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../node_modules/.bun/nitropack@2.13.1+5d168cad3842e387/node_modules/nitropack/dist/runtime/internal/cache.mjs","../../../../node_modules/.bun/klona@2.0.6/node_modules/klona/dist/index.mjs","../../../../node_modules/.bun/scule@1.3.0/node_modules/scule/dist/index.mjs","../../../../node_modules/.bun/nitropack@2.13.1+5d168cad3842e387/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../node_modules/.bun/nitropack@2.13.1+5d168cad3842e387/node_modules/nitropack/dist/runtime/internal/config.mjs","../../../../node_modules/.bun/unctx@2.5.0/node_modules/unctx/dist/index.mjs","../../../../node_modules/.bun/nitropack@2.13.1+5d168cad3842e387/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../node_modules/.bun/nitropack@2.13.1+5d168cad3842e387/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../node_modules/.bun/nitropack@2.13.1+5d168cad3842e387/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../node_modules/.bun/@nuxt+nitro-server@4.4.2+021de095a2e6052a/node_modules/@nuxt/nitro-server/dist/runtime/utils/error.mjs","../../../../node_modules/.bun/@nuxt+nitro-server@4.4.2+021de095a2e6052a/node_modules/@nuxt/nitro-server/dist/runtime/handlers/error.mjs","../../../../node_modules/.bun/nitropack@2.13.1+5d168cad3842e387/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../node_modules/.bun/nitropack@2.13.1+5d168cad3842e387/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../node_modules/.bun/@nuxtjs+color-mode@3.5.2+2c01c9708b757763/node_modules/@nuxtjs/color-mode/dist/runtime/nitro-plugin.js","../../../../node_modules/.bun/nitropack@2.13.1+5d168cad3842e387/node_modules/nitropack/dist/runtime/internal/plugin.mjs","../../../../packages/core/src/logger.ts","../../../../packages/core/src/agent-env.ts","../../../../packages/core/src/tracker/github-auth.ts","../../../../packages/core/src/tools.ts","../../../../packages/core/src/agent-runner.ts","../../../../packages/core/src/types.ts","../../../../packages/core/src/config.ts","../../../../packages/core/src/dispatch-lock.ts","../../../../packages/core/src/filter.ts","../../../../packages/core/src/prompt-builder.ts","../../../../packages/core/src/workspace.ts","../../../../packages/core/src/issue-comment-handler.ts","../../../../packages/core/src/label.ts","../../../../packages/core/src/db.ts","../../../../packages/core/src/tracker/types.ts","../../../../packages/core/src/tracker/asana.ts","../../../../packages/core/src/tracker/github-status-update.ts","../../../../packages/core/src/tracker/github.ts","../../../../packages/core/src/tracker/index.ts","../../../../packages/core/src/workflow.ts","../../../../packages/core/src/orchestrator.ts","../../../../packages/core/src/session-renderer.ts","../../../../packages/core/src/webhook.ts","../../../../packages/core/src/state.ts","../../server/plugins/01.orchestrator.ts","../../server/plugins/02.chat-bot.ts","../../server/utils/auth.ts","../../server/plugins/03.auth.ts","../../../../node_modules/.bun/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs","../../../../node_modules/.bun/nitropack@2.13.1+5d168cad3842e387/node_modules/nitropack/dist/runtime/internal/static.mjs","../../server/middleware/auth.ts","../../../../node_modules/.bun/nitropack@2.13.1+5d168cad3842e387/node_modules/nitropack/dist/runtime/internal/renderer.mjs","../../../../node_modules/.bun/@nuxt+nitro-server@4.4.2+021de095a2e6052a/node_modules/@nuxt/nitro-server/dist/runtime/utils/paths.mjs","../../server/utils/orchestrator.ts","../../node_modules/.cache/nuxt/.nuxt/nuxt-icon-server-bundle.mjs","../../../../node_modules/.bun/@nuxt+icon@2.2.1+06604bec5b73b6ef/node_modules/@nuxt/icon/dist/runtime/server/api.js","../../../../node_modules/.bun/nitropack@2.13.1+5d168cad3842e387/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../node_modules/.bun/cookie-es@2.0.0/node_modules/cookie-es/dist/index.mjs","../../../../node_modules/.bun/nitropack@2.13.1+5d168cad3842e387/node_modules/nitropack/dist/presets/bun/runtime/bun.mjs"],"names":["decode","TRAILING_SLASH_RE","getQuery","parse","tryDecode","serialize","createRouter","f","h","c","createError","mergeHeaders","_globalThis","fetch","Headers","AbortController","$fetch","normalizeKey","defineDriver","DRIVER_NAME","dirname","fsPromises","resolve","fsp","hash","_inlineAppConfig","createRadixRouter","log","RUNTIME_VAR_RE","process","NETWORK_TIMEOUT_MS","createGraphql","_a","query","sdkQuery","__publicField","GITHUB_ISSUE_URL_RE","nodeSpawnSync","Buffer","workspacePath","PAGE_SIZE","body","_b","_c","parseYaml","watch","content","safeEvent","createGitHubAdapter","createAsanaAdapter","nitroApp","callNodeRequestHandler","fetchNodeRequestHandler"],"mappings":"","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,63,64,66,67,69,70,71,72,73]}
|