Skip to content

Commit f0d1dc8

Browse files
committed
feat(project-files): add rendered delivery and indexed search
1 parent 427586b commit f0d1dc8

83 files changed

Lines changed: 4115 additions & 607 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/checks.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,14 @@ jobs:
243243
working-directory: packages/db
244244
run: bun run db:migrate
245245

246+
- name: Build native isolate addon for Project file rendering
247+
if: matrix.group == 'project-files'
248+
working-directory: apps/sim
249+
run: |
250+
addon_dir="$(node -p 'require("node:path").dirname(require.resolve("isolated-vm/package.json", { paths: ["./apps/sim"] }))')"
251+
cd "$addon_dir"
252+
bun run install
253+
246254
# No step timeout: the job's bound covers a hang without cutting a slow but healthy suite
247255
# short of writing its report.
248256
- name: Run end-to-end suites

‎apps/docs/content/docs/cli/projects.mdx‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,39 @@ Restore Project File (OAuth login or personal API key required)
453453

454454
</CommandTable>
455455

456+
## Search project file content
457+
458+
```bash
459+
sim projects files search <projectId> [options]
460+
```
461+
462+
Search Project File Content (OAuth login or personal API key required)
463+
464+
**Arguments**
465+
466+
<CommandTable>
467+
468+
| Argument | Required | Description |
469+
| --- | --- | --- |
470+
| `projectId` | Yes | Project identifier. |
471+
472+
</CommandTable>
473+
474+
**Options**
475+
476+
<CommandTable>
477+
478+
| Option | Required | Description |
479+
| --- | --- | --- |
480+
| `--query <value>` | Yes | Regular expression, or exact text when `mode` is `exact`. |
481+
| `--mode <value>` | No | How `query` is read. Accepted values: `exact`, `regex`. |
482+
| `--max-results <value>` | No | Maximum matching lines to return. |
483+
| `--folder <value...>` | No | Folder path as shown in the app; the leading / is optional (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
484+
| `--include-subfolders` | No | Whether the scope descends into nested folders. Absent means yes. |
485+
| `--no-include-subfolders` | No | Send --include-subfolders as false. |
486+
487+
</CommandTable>
488+
456489
## Replace a shared project file’s contents
457490

458491
```bash

‎apps/docs/content/docs/cli/reference.mdx‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4742,6 +4742,39 @@ sim projects files restore <projectId> <fileId>
47424742

47434743
</CommandTable>
47444744

4745+
### sim projects files search
4746+
4747+
Search Project File Content (OAuth login or personal API key required)
4748+
4749+
```bash
4750+
sim projects files search <projectId> [options]
4751+
```
4752+
4753+
**Arguments**
4754+
4755+
<CommandTable>
4756+
4757+
| Argument | Required | Description |
4758+
| --- | --- | --- |
4759+
| `projectId` | Yes | Project identifier. |
4760+
4761+
</CommandTable>
4762+
4763+
**Options**
4764+
4765+
<CommandTable>
4766+
4767+
| Option | Required | Description |
4768+
| --- | --- | --- |
4769+
| `--query <value>` | Yes | Regular expression, or exact text when `mode` is `exact`. |
4770+
| `--mode <value>` | No | How `query` is read. Accepted values: `exact`, `regex`. |
4771+
| `--max-results <value>` | No | Maximum matching lines to return. |
4772+
| `--folder <value...>` | No | Folder path as shown in the app; the leading / is optional (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
4773+
| `--include-subfolders` | No | Whether the scope descends into nested folders. Absent means yes. |
4774+
| `--no-include-subfolders` | No | Send --include-subfolders as false. |
4775+
4776+
</CommandTable>
4777+
47454778
### sim projects files set-content
47464779

47474780
Replace a shared Project file’s contents (OAuth login or personal API key required)

0 commit comments

Comments
 (0)