feat(daemon): Reorganize and refactor core into client/daemon/shared modules; add IPC protocol and tests
This commit is contained in:
28
test/testassets/simple-script2.ts
Normal file
28
test/testassets/simple-script2.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env tsx
|
||||
|
||||
console.log('TypeScript test script started!');
|
||||
|
||||
// Test TypeScript features
|
||||
interface TestData {
|
||||
message: string;
|
||||
timestamp: Date;
|
||||
}
|
||||
|
||||
const data: TestData = {
|
||||
message: 'Hello from TypeScript',
|
||||
timestamp: new Date()
|
||||
};
|
||||
|
||||
console.log(`Message: ${data.message}`);
|
||||
console.log(`Time: ${data.timestamp.toISOString()}`);
|
||||
|
||||
// Keep the process running for a bit
|
||||
let counter = 0;
|
||||
const interval = setInterval(() => {
|
||||
counter++;
|
||||
console.log(`Counter: ${counter}`);
|
||||
if (counter >= 5) {
|
||||
console.log('Test complete!');
|
||||
clearInterval(interval);
|
||||
}
|
||||
}, 1000);
|
Reference in New Issue
Block a user