Skip to content

Commit 4fa0900

Browse files
Merge branch 'Current' into dependabot/github_actions/pnpm/action-setup-5.0.0
2 parents a73be05 + df7b8bc commit 4fa0900

5 files changed

Lines changed: 55 additions & 35 deletions

File tree

.github/Update.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Update: Fri Feb 27 01:24:00 UTC 2026
1+
Update: Wed Mar 25 01:42:59 UTC 2026

.github/workflows/Rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
profile: minimal
6565
toolchain: ${{ matrix.toolchain }}
6666

67-
- uses: actions/cache@v5.0.3
67+
- uses: actions/cache@v5.0.4
6868
with:
6969
path: |
7070
~/.cargo/bin/

Documentation/GitHub/DeepDive.md

Lines changed: 50 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
# **Common** 👨🏻‍🏭 Deep Dive & Architecture
2121

2222
This document provides the technical foundation for lifting VSCode services into
23-
the Land ecosystem. **Common** defines the abstract architectural patterns,
23+
the Land ecosystem. `Common` 👨🏻‍🏭 defines the abstract architectural patterns,
2424
service contracts, and data structures that enable type-safe, testable service
2525
implementations across Rust and TypeScript boundaries.
2626

2727
---
2828

29-
## Core Architecture Principles
29+
## Core Architecture Principles 🏛️
3030

3131
| Principle | Description | Key Components Involved |
3232
| :--------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------- | :----------------------------------------- |
@@ -39,9 +39,9 @@ implementations across Rust and TypeScript boundaries.
3939

4040
---
4141

42-
## Deep Dive into `Common`'s Components
42+
## Deep Dive into `Common`'s Components 🔬
4343

44-
### 1. The `ActionEffect` System: Concrete Implementation
44+
### 1. The `ActionEffect` System: Concrete Implementation ⚙️
4545

4646
The `ActionEffect` system implements declarative programming patterns where
4747
operations are described as values rather than executed immediately.
@@ -77,7 +77,7 @@ let parallel_effect = effect1.zip(effect2);
7777
let resilient_effect = effect.fallback(backup_effect);
7878
```
7979

80-
### 2. Concrete Environment System Architecture
80+
### 2. Concrete Environment System Architecture 🌐
8181

8282
The `Environment` trait system implements capability-based architecture for
8383
clean dependency management:
@@ -107,7 +107,7 @@ For any `ActionEffect<C, E, T>`, the runtime provides `C` through these steps:
107107
3. **Runtime Resolution:** ApplicationRunTime resolves and provides capabilities
108108
4. **Execution:** Effect executes with provided capability
109109

110-
### 3. Concrete DTO System Design
110+
### 3. Concrete DTO System Design 📦
111111

112112
The Data Transfer Object system provides type-safe serialization for IPC
113113
communication:
@@ -144,7 +144,7 @@ DTOs ensure consistent data structures across the Land ecosystem:
144144
- **Type Safety:** Compile-time validation of data structures
145145
- **Performance:** Efficient serialization for high-frequency operations
146146

147-
### 4. Concrete Error System Architecture
147+
### 4. Concrete Error System Architecture 🚨
148148

149149
The `CommonError` enum provides comprehensive error handling:
150150

@@ -171,13 +171,13 @@ graph TB
171171

172172
---
173173

174-
## Concrete Technical Architecture
174+
## Concrete Technical Architecture 🏗️
175175

176-
### Core Architectural Components
176+
### Core Architectural Components 🧱
177177

178178
#### 1. Concrete Effect Composition Architecture
179179

180-
Common enables sophisticated effect composition through concrete patterns:
180+
`Common` enables sophisticated effect composition through concrete patterns:
181181

182182
```mermaid
183183
graph LR
@@ -200,7 +200,7 @@ graph LR
200200

201201
#### 2. Concrete Dependency Injection Architecture
202202

203-
Common implements clean dependency injection through trait bounds:
203+
`Common` implements clean dependency injection through trait bounds:
204204

205205
```rust
206206
// Service trait definition
@@ -217,7 +217,7 @@ pub fn read_file_effect(path: PathBuf) -> ActionEffect<Arc<dyn FileSystemReader>
217217
}
218218
```
219219

220-
### Concrete Technical Implementation
220+
### Concrete Technical Implementation 🔩
221221

222222
#### Performance Characteristics: Effect Execution Overhead
223223

@@ -244,7 +244,7 @@ The type system prevents runtime capability errors through:
244244
3. **Compile-Time Verification:** Invalid compositions fail to compile
245245
4. **Runtime Safety:** Successful compilation guarantees capability availability
246246

247-
### Ecosystem Integration Mapping
247+
### Ecosystem Integration Mapping 🗺️
248248

249249
```mermaid
250250
graph TD
@@ -274,9 +274,14 @@ graph TD
274274
DTOs --> Serialization
275275
Errors --> IPC
276276
end
277+
278+
classDef mountain fill:#f9f,stroke:#333,stroke-width:2px;
279+
classDef common fill:#cfc,stroke:#333,stroke-width:1px,stroke-dasharray: 5 5;
280+
class Mountain mountain;
281+
class Traits,Effects,DTOs,Errors common;
277282
```
278283

279-
### Concrete Integration Patterns
284+
### Concrete Integration Patterns 🔗
280285

281286
#### Effect-Based Testing Architecture
282287

@@ -315,11 +320,11 @@ sequenceDiagram
315320

316321
---
317322

318-
## Concrete VSCode Service Lifting Patterns
323+
## Concrete VSCode Service Lifting Patterns 🔧
319324

320-
### Service Migration Strategy
325+
### Service Migration Strategy 🔄
321326

322-
Common provides the foundation for lifting VSCode services through:
327+
`Common` provides the foundation for lifting VSCode services through:
323328

324329
#### 1. Service Interface Definition
325330

@@ -355,7 +360,7 @@ pub struct WorkspaceFolderDTO {
355360
}
356361
```
357362

358-
### Concrete Service Integration Examples
363+
### Concrete Service Integration Examples 📋
359364

360365
#### File System Service Lifting
361366

@@ -394,7 +399,7 @@ pub fn get_configuration_effect(section: Option<String>) -> ActionEffect<Arc<dyn
394399
}
395400
```
396401

397-
### Concrete VSCode Service Lifting Architecture
402+
### Concrete VSCode Service Lifting Architecture 🏗️
398403

399404
```mermaid
400405
graph TD
@@ -419,6 +424,13 @@ graph TD
419424
EffectTS --> gRPC
420425
EffectTS --> Tauri
421426
end
427+
428+
classDef mountain fill:#f9f,stroke:#333,stroke-width:2px;
429+
classDef wind fill:#9cf,stroke:#333,stroke-width:2px;
430+
classDef common fill:#cfc,stroke:#333,stroke-width:1px,stroke-dasharray: 5 5;
431+
class MountainImpl mountain;
432+
class EffectTS wind;
433+
class CommonTraits common;
422434
```
423435

424436
#### Service Migration Table
@@ -431,7 +443,7 @@ graph TD
431443
| `ICommandService` | `CommandService` | `MountainCommand` | `CommandService` |
432444
| `IDocumentService` | `DocumentProvider` | `MountainDocument` | `DocumentService` |
433445

434-
### Component Block Map
446+
### Component Block Map 🧩
435447

436448
```mermaid
437449
graph TB
@@ -460,34 +472,43 @@ graph TB
460472
Errors --> Mountain
461473
Errors --> Wind
462474
Errors --> Cocoon
475+
476+
classDef mountain fill:#f9f,stroke:#333,stroke-width:2px;
477+
classDef cocoon fill:#ccf,stroke:#333,stroke-width:2px;
478+
classDef wind fill:#9cf,stroke:#333,stroke-width:2px;
479+
classDef common fill:#cfc,stroke:#333,stroke-width:1px,stroke-dasharray: 5 5;
480+
class Mountain mountain;
481+
class Cocoon cocoon;
482+
class Wind wind;
483+
class Traits,Effects,DTOs,Errors common;
463484
```
464485

465-
## Performance Optimization Strategies
486+
## Performance Optimization Strategies ⚡
466487

467-
### 1. Zero-Cost Abstractions
488+
### 1. Zero-Cost Abstractions 🔮
468489

469490
- **Inline Optimization:** Effect constructors marked `#[inline]` for direct
470491
embedding
471492
- **Generic Specialization:** Monomorphization creates specialized versions
472493
- **Stack Allocation:** Small effects avoid heap allocation
473494

474-
### 2. Memory Management Optimization
495+
### 2. Memory Management Optimization 🧠
475496

476497
- **Arena Allocation:** Related effects use arena allocation for locality
477498
- **Object Pooling:** Frequently used effect types are pooled
478499
- **Cache-Friendly Layout:** Data structures optimized for CPU cache
479500

480-
### 3. Concurrency Optimization
501+
### 3. Concurrency Optimization 🔄
481502

482503
- **Send + Sync Bounds:** Effects designed for seamless cross-thread usage
483504
- **Atomic Reference Counting:** Efficient `Arc` usage with minimal overhead
484505
- **Lock-Free Patterns:** Internal data structures use lock-free algorithms
485506

486-
## Development Guidelines
507+
## Development Guidelines 📖
487508

488-
### Adding New Services
509+
### Adding New Services ➕
489510

490-
When adding new services to Common, follow these concrete patterns:
511+
When adding new services to `Common`, follow these concrete patterns:
491512

492513
1. **Define Service Interface:** Create Rust trait matching VSCode service
493514
interface
@@ -496,7 +517,7 @@ When adding new services to Common, follow these concrete patterns:
496517
3. **Define DTOs:** Create serializable DTOs for cross-language communication
497518
4. **Define Errors:** Add appropriate error variants to CommonError
498519

499-
### Concrete Usage Patterns
520+
### Concrete Usage Patterns 💡
500521

501522
#### Custom Effect Creation
502523

@@ -534,7 +555,7 @@ let metrics = {
534555
};
535556
```
536557

537-
Common represents the foundational layer for lifting VSCode services into the
558+
`Common` represents the foundational layer for lifting VSCode services into the
538559
Land ecosystem, providing the abstract contracts and patterns that enable
539560
type-safe, testable, and maintainable service implementations across Rust and
540561
TypeScript boundaries.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ graph LR
206206

207207
## Getting Started 🚀
208208

209-
### Installation
209+
### Installation 📥
210210

211211
`Common` is intended to be used as a local path dependency within the `Land`
212212
workspace. In `Mountain`'s `Cargo.toml`:
@@ -216,7 +216,7 @@ workspace. In `Mountain`'s `Cargo.toml`:
216216
Common = { path = "../Common" }
217217
```
218218

219-
### Usage
219+
### Usage 🚀
220220

221221
A developer working within the `Mountain` codebase would use `Common` as
222222
follows:

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@
2121
"scripts": {
2222
"prepublishOnly": "Build 'Source/**/*.ts'"
2323
},
24-
"dependencies": {},
2524
"devDependencies": {
26-
"@cloudflare/workers-types": "4.20260304.0",
25+
"@cloudflare/workers-types": "4.20260317.1",
2726
"@playform/build": "0.3.0"
2827
},
2928
"publishConfig": {

0 commit comments

Comments
 (0)