@personaai/runtime 0.11.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/docs/.nojekyll +1 -0
- package/dist/index.cjs +64 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +64 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -427,7 +427,7 @@ genuine unclosed gap or an intentional package boundary, not an oversight:
|
|
|
427
427
|
per mount; anything finer belongs in `resolveUser` or a hook, not the runtime.
|
|
428
428
|
- Framework adapters beyond the shipped ones (`@personaai/node`, `@personaai/fastify`,
|
|
429
429
|
`@personaai/hono`) — **by design**, not a gap: this package is the foundation they're meant to
|
|
430
|
-
wrap, not a replacement for them. `@personaai/adapters` (unified `express`/`nextjs`/`nestjs` via subpaths, Wave 3) has shipped — legacy
|
|
430
|
+
wrap, not a replacement for them. `@personaai/adapters` (unified `express`/`nextjs`/`nestjs` via subpaths, Wave 3) has shipped — the legacy standalone `@personaai/nextjs`/`@personaai/express`/`@personaai/nestjs` packages were removed from the repo (2026-09-14); their last-published versions are frozen and deprecated on the registry.
|
|
431
431
|
|
|
432
432
|
## Roadmap
|
|
433
433
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
|
package/dist/index.cjs
CHANGED
|
@@ -1382,6 +1382,57 @@ var deleteStoreFile = async (request, ctx) => {
|
|
|
1382
1382
|
return noContent();
|
|
1383
1383
|
};
|
|
1384
1384
|
|
|
1385
|
+
// src/routes/rcpSources.ts
|
|
1386
|
+
var listRcpSources = async (request, ctx) => {
|
|
1387
|
+
const items = await ctx.client.rcpSources.list({
|
|
1388
|
+
page: toInt(request.query.page),
|
|
1389
|
+
limit: toInt(request.query.limit),
|
|
1390
|
+
search: request.query.search
|
|
1391
|
+
});
|
|
1392
|
+
return json(200, items);
|
|
1393
|
+
};
|
|
1394
|
+
var createRcpSource = async (request, ctx) => {
|
|
1395
|
+
const body = requireBodyObject(request.body);
|
|
1396
|
+
const input = {
|
|
1397
|
+
name: requireStringField(body, "name"),
|
|
1398
|
+
url: requireStringField(body, "url"),
|
|
1399
|
+
description: typeof body.description === "string" ? body.description : void 0,
|
|
1400
|
+
authType: body.authType,
|
|
1401
|
+
secretRef: typeof body.secretRef === "string" ? body.secretRef : void 0,
|
|
1402
|
+
isEnabled: typeof body.isEnabled === "boolean" ? body.isEnabled : void 0,
|
|
1403
|
+
paramContextMap: Array.isArray(body.paramContextMap) ? body.paramContextMap : void 0
|
|
1404
|
+
};
|
|
1405
|
+
const source = await ctx.client.rcpSources.create(input);
|
|
1406
|
+
return json(201, source);
|
|
1407
|
+
};
|
|
1408
|
+
var getRcpSource = async (_request, ctx) => {
|
|
1409
|
+
const source = await ctx.client.rcpSources.get(requireParam(ctx.params, "id"));
|
|
1410
|
+
return json(200, source);
|
|
1411
|
+
};
|
|
1412
|
+
var updateRcpSource = async (request, ctx) => {
|
|
1413
|
+
const body = request.body ?? {};
|
|
1414
|
+
const source = await ctx.client.rcpSources.update(requireParam(ctx.params, "id"), body);
|
|
1415
|
+
return json(200, source);
|
|
1416
|
+
};
|
|
1417
|
+
var deleteRcpSource = async (_request, ctx) => {
|
|
1418
|
+
await ctx.client.rcpSources.delete(requireParam(ctx.params, "id"));
|
|
1419
|
+
return noContent();
|
|
1420
|
+
};
|
|
1421
|
+
var bulkDeleteRcpSources = async (request, ctx) => {
|
|
1422
|
+
const body = requireBodyObject(request.body);
|
|
1423
|
+
const ids = Array.isArray(body.ids) ? body.ids : [];
|
|
1424
|
+
const result = await ctx.client.rcpSources.bulkDelete(ids);
|
|
1425
|
+
return json(200, result);
|
|
1426
|
+
};
|
|
1427
|
+
var getRcpSourceUsage = async (_request, ctx) => {
|
|
1428
|
+
const usage = await ctx.client.rcpSources.getUsage(requireParam(ctx.params, "id"));
|
|
1429
|
+
return json(200, usage);
|
|
1430
|
+
};
|
|
1431
|
+
var testRcpSourceConnection = async (_request, ctx) => {
|
|
1432
|
+
const result = await ctx.client.rcpSources.testConnection(requireParam(ctx.params, "id"));
|
|
1433
|
+
return json(200, result);
|
|
1434
|
+
};
|
|
1435
|
+
|
|
1385
1436
|
// src/routes/auditLogs.ts
|
|
1386
1437
|
var listAuditLogs = async (request, ctx) => {
|
|
1387
1438
|
const items = await ctx.client.auditLogs.list({
|
|
@@ -1553,6 +1604,7 @@ function resolveCapabilities(capabilities) {
|
|
|
1553
1604
|
skills: capabilities?.skills ?? false,
|
|
1554
1605
|
knowledge: capabilities?.knowledge ?? false,
|
|
1555
1606
|
stores: capabilities?.stores ?? false,
|
|
1607
|
+
rcpSources: capabilities?.rcpSources ?? false,
|
|
1556
1608
|
auditLogs: capabilities?.auditLogs ?? false,
|
|
1557
1609
|
architect: capabilities?.architect ?? false,
|
|
1558
1610
|
workflowsWrite: capabilities?.workflowsWrite ?? false
|
|
@@ -1731,6 +1783,18 @@ function buildRoutes(capabilities) {
|
|
|
1731
1783
|
{ method: "DELETE", pattern: ["stores", ":id", "file"], handler: deleteStoreFile }
|
|
1732
1784
|
);
|
|
1733
1785
|
}
|
|
1786
|
+
if (capabilities.rcpSources) {
|
|
1787
|
+
routes.push(
|
|
1788
|
+
{ method: "GET", pattern: ["rcp-sources"], handler: listRcpSources },
|
|
1789
|
+
{ method: "POST", pattern: ["rcp-sources"], handler: createRcpSource },
|
|
1790
|
+
{ method: "POST", pattern: ["rcp-sources", "bulk-delete"], handler: bulkDeleteRcpSources },
|
|
1791
|
+
{ method: "GET", pattern: ["rcp-sources", ":id"], handler: getRcpSource },
|
|
1792
|
+
{ method: "PATCH", pattern: ["rcp-sources", ":id"], handler: updateRcpSource },
|
|
1793
|
+
{ method: "DELETE", pattern: ["rcp-sources", ":id"], handler: deleteRcpSource },
|
|
1794
|
+
{ method: "GET", pattern: ["rcp-sources", ":id", "usage"], handler: getRcpSourceUsage },
|
|
1795
|
+
{ method: "POST", pattern: ["rcp-sources", ":id", "test"], handler: testRcpSourceConnection }
|
|
1796
|
+
);
|
|
1797
|
+
}
|
|
1734
1798
|
if (capabilities.auditLogs) {
|
|
1735
1799
|
routes.push({ method: "GET", pattern: ["audit-logs"], handler: listAuditLogs });
|
|
1736
1800
|
}
|