superceo 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/index.js +11 -4
- package/dist/index.js.map +3 -3
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -11,8 +11,8 @@ Opens `http://localhost:3100` — hire agents, give them goals, watch them work.
|
|
|
11
11
|
|
|
12
12
|
## Documentation
|
|
13
13
|
|
|
14
|
-
- GitHub repo: https://github.com/
|
|
15
|
-
- Full docs: https://github.com/
|
|
14
|
+
- GitHub repo: https://github.com/superceoai/superceo
|
|
15
|
+
- Full docs: https://github.com/superceoai/superceo/blob/master/doc/FOR-DEVELOPERS.md
|
|
16
16
|
|
|
17
17
|
## License
|
|
18
18
|
|
package/dist/index.js
CHANGED
|
@@ -29793,7 +29793,7 @@ function documentService(db) {
|
|
|
29793
29793
|
createdAt: documentRevisions.createdAt
|
|
29794
29794
|
}).from(documentRevisions).where(eq15(documentRevisions.documentId, documentId)).orderBy(desc6(documentRevisions.revisionNumber));
|
|
29795
29795
|
},
|
|
29796
|
-
listCompanyDocuments: async (companyId) => {
|
|
29796
|
+
listCompanyDocuments: async (companyId, opts) => {
|
|
29797
29797
|
const rows = await db.select({
|
|
29798
29798
|
id: documents.id,
|
|
29799
29799
|
companyId: documents.companyId,
|
|
@@ -29822,7 +29822,12 @@ function documentService(db) {
|
|
|
29822
29822
|
or3(isNull5(issueDocuments.id), isNull5(issues.hiddenAt))
|
|
29823
29823
|
)
|
|
29824
29824
|
).orderBy(desc6(documents.updatedAt)).limit(200);
|
|
29825
|
-
|
|
29825
|
+
const filtered = opts?.kind ? rows.filter((row2) => {
|
|
29826
|
+
if (!row2.latestBody) return false;
|
|
29827
|
+
const { frontmatter } = parseFrontmatterMarkdown(row2.latestBody);
|
|
29828
|
+
return frontmatter.kind === opts.kind;
|
|
29829
|
+
}) : rows;
|
|
29830
|
+
return filtered.map((row2) => ({
|
|
29826
29831
|
id: row2.id,
|
|
29827
29832
|
companyId: row2.companyId,
|
|
29828
29833
|
title: row2.title,
|
|
@@ -30314,6 +30319,7 @@ var init_documents2 = __esm({
|
|
|
30314
30319
|
init_dist2();
|
|
30315
30320
|
init_dist();
|
|
30316
30321
|
init_errors();
|
|
30322
|
+
init_company_skills2();
|
|
30317
30323
|
issueDocumentSelect = {
|
|
30318
30324
|
id: documents.id,
|
|
30319
30325
|
companyId: documents.companyId,
|
|
@@ -61488,7 +61494,8 @@ function documentRoutes(db) {
|
|
|
61488
61494
|
router.get("/companies/:companyId/documents", async (req, res) => {
|
|
61489
61495
|
const companyId = req.params.companyId;
|
|
61490
61496
|
assertCompanyAccess(req, companyId);
|
|
61491
|
-
const
|
|
61497
|
+
const kind = typeof req.query.kind === "string" ? req.query.kind : void 0;
|
|
61498
|
+
const docs = await svc.listCompanyDocuments(companyId, { kind });
|
|
61492
61499
|
res.json(docs);
|
|
61493
61500
|
});
|
|
61494
61501
|
router.get("/companies/:companyId/document-folders", async (req, res) => {
|
|
@@ -91581,6 +91588,6 @@ var init_src2 = __esm({
|
|
|
91581
91588
|
|
|
91582
91589
|
// src/index.ts
|
|
91583
91590
|
process.env.PAPERCLIP_BRAND_NAME = "SuperCEO";
|
|
91584
|
-
process.env.PAPERCLIP_BRAND_HOMEPAGE_URL = "https://github.com/
|
|
91591
|
+
process.env.PAPERCLIP_BRAND_HOMEPAGE_URL = "https://github.com/superceoai/superceo";
|
|
91585
91592
|
await Promise.resolve().then(() => (init_src2(), src_exports2));
|
|
91586
91593
|
//# sourceMappingURL=index.js.map
|