Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ARCHITECTURE_OVERVIEW.md
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ sequenceDiagram
| cockroach | cockroachdb/cockroach:latest-v24.3 | 26257, 8089 | **Main application database** - stores users, workspaces, documents, transactions, metadata, permissions | - |
| **Supporting Infrastructure** | | | | |
| elastic | elasticsearch:7.14.2 | 9200 | Search engine for full-text indexes | - |
| minio | minio/minio | 9000, 9001 | Object storage (S3) for files and blobs | - |
| minio | pgsty/silo | 9000, 9001 | Object storage (S3) for files and blobs | - |
| redpanda | redpandadata/redpanda:v24.3.6 | 9092, 19092 | Event streaming (Kafka) for async processing | - |
| redis | redis:8.0.2-alpine3.21 | 6379 | Cache & pub/sub for real-time features | - |
| **Monitoring** | | | | |
Expand Down
201 changes: 201 additions & 0 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 15 additions & 10 deletions common/scripts/show_version.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,26 @@ const path = require('path')
const exec = require('child_process').exec

function main() {
// Read version from version.txt first, fall back to git tag, then default
let version
try {
const versionFilePath = path.resolve(__dirname, 'version.txt')
version = fs.readFileSync(versionFilePath, 'utf8').trim()
} catch (error) {
// version.txt not found
}

if (version) {
console.log(version)
return
}

exec('git describe --tags --abbrev=0', (err, stdout) => {
if (err !== null) {
console.log('"0.6.0"')
return
}
// Take version from file
let version
try {
const versionFilePath = path.resolve(__dirname, 'version.txt')
version = fs.readFileSync(versionFilePath, 'utf8').trim()
} catch (error) {
version = '"0.6.0"'
}

console.log(version)
console.log(`"${stdout.trim()}"`)
})
}

Expand Down
2 changes: 1 addition & 1 deletion dev/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ services:
- redpanda
restart: unless-stopped
minio:
image: 'minio/minio'
image: 'pgsty/silo'
command: server /data --address ":9000" --console-address ":9001"
extra_hosts:
- 'huly.local:host-gateway'
Expand Down
2 changes: 1 addition & 1 deletion dev/local-mongo/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
minio:
image: 'minio/minio'
image: 'pgsty/silo'
command: server /data --address ":9000" --console-address ":9001"
ports:
- 9000:9000
Expand Down
2 changes: 2 additions & 0 deletions foundations/core/packages/model/src/migration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ export interface MigrationClient {
create: <T extends Doc>(domain: Domain, doc: T | T[]) => Promise<void>
delete: <T extends Doc>(domain: Domain, _id: Ref<T>) => Promise<void>
deleteMany: <T extends Doc>(domain: Domain, query: DocumentQuery<T>) => Promise<void>
// Check the physical storage domain, including legacy domains no longer present in the active model.
domainExists: (domain: Domain) => Promise<boolean>

hierarchy: Hierarchy
model: ModelDb
Expand Down
6 changes: 6 additions & 0 deletions foundations/server/packages/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,12 @@ export interface FullTextAdapter {

// If no field is provided, will return existing mapping of all dimms.
initMapping: (ctx: MeasureContext, field?: { key: string, dims: number }) => Promise<boolean>

// Optional: return the total document count in the index/collection.
// Used by non-persistent backends (e.g. Typesense with emptyDir) to detect
// empty state on startup and trigger automatic reindex.
// Returns -1 if the count cannot be determined (e.g. connection error).
getDocCount?: (ctx: MeasureContext) => Promise<number>
}

/**
Expand Down
Loading
Loading