Skip to content

Commit c066dca

Browse files
committed
Merge remote-tracking branch 'origin/staging-new'
Signed-off-by: Alexander Onnikov <[email protected]>
2 parents 5599401 + 2daa162 commit c066dca

File tree

2,154 files changed

+95007
-106280
lines changed

Some content is hidden

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

2,154 files changed

+95007
-106280
lines changed

.github/copilot-instructions.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Huly Platform - Copilot Instructions
2+
3+
TypeScript/Svelte 4 monorepo using Rush.js (pnpm 10.15.1), Node >=20 <25, Webpack 5, Electron, Jest.
4+
5+
## Code Style
6+
7+
**TypeScript**: Strict types, interfaces over types, avoid `any`, export types separately
8+
**Svelte**: Script/style/markup order, reactive `$:`, stores for state, small focused components
9+
**Naming**: Files `kebab-case`, Components `PascalCase`, functions `camelCase`, constants `UPPER_SNAKE_CASE`
10+
11+
## Structure
12+
13+
- `models/*` - Shared types/models
14+
- `server-*` - Server packages
15+
- `plugins/*` - Client plugins
16+
- `packages/*` - Reusable utilities
17+
- Projects 2-3 levels deep, each with `package.json`
18+
19+
## Rush Commands
20+
21+
```bash
22+
rush install # Install deps
23+
rush build # Build all
24+
rush build --to PKG # Build specific
25+
rush add -p PKG # Add dependency
26+
```
27+
28+
## Patterns
29+
30+
- Always handle errors (proper Error subclasses, catch promises)
31+
- Use async/await, Promise.all() for parallel ops
32+
- Svelte stores for shared state, separate business logic
33+
- JSDoc public APIs, tests alongside code
34+
- Run `rushx test` before commit
35+
36+
## Avoid
37+
38+
`any` without reason ❌ console.log() ❌ Mixed concerns ❌ Circular deps ❌ Ignoring TS errors
39+
40+
## When Coding
41+
42+
Infer location from context (models/server/plugins/packages), match existing patterns, include proper imports/types, add error handling, use existing utils first.

.github/workflows/baseimage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
fetch-depth: 1
3737
filter: tree:0
3838

39-
- uses: actions/setup-node@v4
39+
- uses: actions/setup-node@v6
4040
with:
4141
node-version-file: '.nvmrc'
4242
- uses: pnpm/action-setup@v4

.github/workflows/main.yml

Lines changed: 27 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
fetch-depth: 0
6060
filter: tree:0
6161
submodules: recursive
62-
- uses: actions/setup-node@v4
62+
- uses: actions/setup-node@v6
6363
with:
6464
node-version-file: '.nvmrc'
6565
- name: Cache node modules
@@ -79,9 +79,8 @@ jobs:
7979
- name: Checking for mis-matching dependencies...
8080
run: node common/scripts/install-run-rush.js check
8181

82-
- name: Prepare .npmrc for GitHub Packages
83-
run: |
84-
echo "//npm.pkg.github.com/:_authToken=${{secrets.GITHUB_TOKEN}}" > ~/.npmrc
82+
- name: Checking for mis-matching transitive dependencies...
83+
run: node common/scripts/check-versions.js
8584

8685
- name: Installing...
8786
run: node common/scripts/install-run-rush.js install
@@ -117,7 +116,7 @@ jobs:
117116
filter: tree:0
118117
submodules: recursive
119118

120-
- uses: actions/setup-node@v4
119+
- uses: actions/setup-node@v6
121120
with:
122121
node-version-file: '.nvmrc'
123122

@@ -141,7 +140,7 @@ jobs:
141140
with:
142141
fetch-depth: 0
143142
submodules: recursive
144-
- uses: actions/setup-node@v4
143+
- uses: actions/setup-node@v6
145144
with:
146145
node-version-file: '.nvmrc'
147146
- name: Cache build results
@@ -153,17 +152,6 @@ jobs:
153152
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
154153
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
155154

156-
- name: Apply templates...
157-
run: node common/scripts/install-run-rush.js apply-templates
158-
159-
- name: Check templates
160-
run: |
161-
echo '================================================================'
162-
echo 'Checking for diff files'
163-
echo '================================================================'
164-
git diff '*.js' '*.ts' '*.svelte' '*.json' '*.yaml' | cat
165-
[ -z "$(git diff --name-only '*.js' '*.ts' '*.svelte' '*.json' '*.yaml' | cat)" ]
166-
echo '================================================================'
167155
- name: Formatting...
168156
run: node common/scripts/install-run-rush.js fast-format --branch ${{ github.base_ref || 'develop' }}
169157
- name: Check files formatting
@@ -184,7 +172,7 @@ jobs:
184172
fetch-depth: 0
185173
filter: tree:0
186174
submodules: recursive
187-
- uses: actions/setup-node@v4
175+
- uses: actions/setup-node@v6
188176
with:
189177
node-version-file: '.nvmrc'
190178
- name: Cache build results
@@ -197,6 +185,7 @@ jobs:
197185
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
198186
- name: Login to Docker Hub
199187
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
188+
continue-on-error: true
200189
uses: docker/login-action@v3
201190
with:
202191
username: hardcoreeng
@@ -221,7 +210,7 @@ jobs:
221210
fetch-depth: 0
222211
filter: tree:0
223212
submodules: recursive
224-
- uses: actions/setup-node@v4
213+
- uses: actions/setup-node@v6
225214
with:
226215
node-version-file: '.nvmrc'
227216
- name: Cache node modules
@@ -238,15 +227,15 @@ jobs:
238227
- name: Checking for mis-matching dependencies...
239228
run: node common/scripts/install-run-rush.js check
240229

241-
- name: Prepare .npmrc for GitHub Packages
242-
run: |
243-
echo "//npm.pkg.github.com/:_authToken=${{secrets.GITHUB_TOKEN}}" > ~/.npmrc
230+
- name: Checking for mis-matching transitive dependencies...
231+
run: node common/scripts/check-versions.js
244232

245233
- name: Installing...
246234
run: node common/scripts/install-run-rush.js install
247235

248236
- name: Login to Docker Hub
249237
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
238+
continue-on-error: true
250239
uses: docker/login-action@v3
251240
with:
252241
username: hardcoreeng
@@ -351,7 +340,7 @@ jobs:
351340
fetch-depth: 0
352341
filter: tree:0
353342
submodules: recursive
354-
- uses: actions/setup-node@v4
343+
- uses: actions/setup-node@v6
355344
with:
356345
node-version-file: '.nvmrc'
357346
- name: Cache node modules
@@ -368,15 +357,15 @@ jobs:
368357
- name: Checking for mis-matching dependencies...
369358
run: node common/scripts/install-run-rush.js check
370359

371-
- name: Prepare .npmrc for GitHub Packages
372-
run: |
373-
echo "//npm.pkg.github.com/:_authToken=${{secrets.GITHUB_TOKEN}}" > ~/.npmrc
360+
- name: Checking for mis-matching transitive dependencies...
361+
run: node common/scripts/check-versions.js
374362

375363
- name: Installing...
376364
run: node common/scripts/install-run-rush.js install
377365

378366
- name: Login to Docker Hub
379367
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
368+
continue-on-error: true
380369
uses: docker/login-action@v3
381370
with:
382371
username: hardcoreeng
@@ -446,7 +435,7 @@ jobs:
446435
fetch-depth: 0
447436
filter: tree:0
448437
submodules: recursive
449-
- uses: actions/setup-node@v4
438+
- uses: actions/setup-node@v6
450439
with:
451440
node-version-file: '.nvmrc'
452441
- name: Cache node modules
@@ -463,15 +452,15 @@ jobs:
463452
- name: Checking for mis-matching dependencies...
464453
run: node common/scripts/install-run-rush.js check
465454

466-
- name: Prepare .npmrc for GitHub Packages
467-
run: |
468-
echo "//npm.pkg.github.com/:_authToken=${{secrets.GITHUB_TOKEN}}" > ~/.npmrc
455+
- name: Checking for mis-matching transitive dependencies...
456+
run: node common/scripts/check-versions.js
469457

470458
- name: Installing...
471459
run: node common/scripts/install-run-rush.js install
472460

473461
- name: Login to Docker Hub
474462
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
463+
continue-on-error: true
475464
uses: docker/login-action@v3
476465
with:
477466
username: hardcoreeng
@@ -524,7 +513,7 @@ jobs:
524513
fetch-depth: 0
525514
filter: tree:0
526515
submodules: recursive
527-
- uses: actions/setup-node@v4
516+
- uses: actions/setup-node@v6
528517
with:
529518
node-version-file: '.nvmrc'
530519
- name: Cache node modules
@@ -541,9 +530,8 @@ jobs:
541530
- name: Checking for mis-matching dependencies...
542531
run: node common/scripts/install-run-rush.js check
543532

544-
- name: Prepare .npmrc for GitHub Packages
545-
run: |
546-
echo "//npm.pkg.github.com/:_authToken=${{secrets.GITHUB_TOKEN}}" > ~/.npmrc
533+
- name: Checking for mis-matching transitive dependencies...
534+
run: node common/scripts/check-versions.js
547535

548536
- name: Installing...
549537
run: node common/scripts/install-run-rush.js install
@@ -553,6 +541,7 @@ jobs:
553541

554542
- name: Login to Docker Hub
555543
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
544+
continue-on-error: true
556545
uses: docker/login-action@v3
557546
with:
558547
username: hardcoreeng
@@ -647,7 +636,7 @@ jobs:
647636
mv pods/workspace/init-${{env.INIT_SCRIPTS_BRANCH}} pods/workspace/init
648637
rm -rf ${{env.INIT_SCRIPTS_BRANCH}}.zip
649638
650-
- uses: actions/setup-node@v4
639+
- uses: actions/setup-node@v6
651640
with:
652641
node-version-file: '.nvmrc'
653642
- uses: pnpm/action-setup@v4
@@ -664,10 +653,6 @@ jobs:
664653
restore-keys: |
665654
${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }}
666655
667-
- name: Prepare .npmrc for GitHub Packages
668-
run: |
669-
echo "//npm.pkg.github.com/:_authToken=${{secrets.GITHUB_TOKEN}}" > ~/.npmrc
670-
671656
- name: Installing...
672657
run: node common/scripts/install-run-rush.js install
673658

@@ -676,6 +661,7 @@ jobs:
676661

677662
- name: Login to Docker Hub
678663
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
664+
continue-on-error: true
679665
uses: docker/login-action@v3
680666
with:
681667
username: hardcoreeng
@@ -730,7 +716,7 @@ jobs:
730716
filter: tree:0
731717
submodules: recursive
732718

733-
- uses: actions/setup-node@v4
719+
- uses: actions/setup-node@v6
734720
with:
735721
node-version-file: '.nvmrc'
736722

@@ -745,10 +731,6 @@ jobs:
745731
restore-keys: |
746732
${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }}
747733
748-
- name: Prepare .npmrc for GitHub Packages
749-
run: |
750-
echo "//npm.pkg.github.com/:_authToken=${{secrets.GITHUB_TOKEN}}" > ~/.npmrc
751-
752734
- name: Installing...
753735
run: node common/scripts/install-run-rush.js install --purge
754736
- name: Model version from git tags
@@ -836,7 +818,7 @@ jobs:
836818
filter: tree:0
837819
submodules: recursive
838820

839-
- uses: actions/setup-node@v4
821+
- uses: actions/setup-node@v6
840822
with:
841823
node-version-file: '.nvmrc'
842824

@@ -851,10 +833,6 @@ jobs:
851833
restore-keys: |
852834
${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }}
853835
854-
- name: Prepare .npmrc for GitHub Packages
855-
run: |
856-
echo "//npm.pkg.github.com/:_authToken=${{secrets.GITHUB_TOKEN}}" > ~/.npmrc
857-
858836
- name: Installing...
859837
run: node common/scripts/install-run-rush.js install --purge
860838
- name: Model version from git tags

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,4 @@ dev/tool/history.json
112112
.aider*
113113
/combined_dependencies
114114
.tmp
115-
ws-tests/docker-compose.override.yml
115+
ws-tests/docker-compose.override.yml

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
[submodule "communication"]
2-
path = communication
3-
url = https://github.com/hcengineering/communication.git

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)