源码快照 @ 2026-09-01 (source-only, 剔除非源码素材)
Publish Claude Code Binaries / Stage and publish binaries (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-arm64 (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build linux-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build windows-amd64 (push) Canceled after 0s
Sync Tutti Agent Skills / sync (push) Canceled after 0s
Windows Agent Adapters / Test Windows agent adapters (push) Canceled after 0s
Windows Daemon Adapters / Test Windows daemon adapters (push) Canceled after 0s
Publish Tutti App Runtime / Publish runtime catalog (push) Canceled after 0s
Publish Claude Code Binaries / Stage and publish binaries (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-arm64 (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build linux-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build windows-amd64 (push) Canceled after 0s
Sync Tutti Agent Skills / sync (push) Canceled after 0s
Windows Agent Adapters / Test Windows agent adapters (push) Canceled after 0s
Windows Daemon Adapters / Test Windows daemon adapters (push) Canceled after 0s
Publish Tutti App Runtime / Publish runtime catalog (push) Canceled after 0s
This commit is contained in:
commit
2ed3415fb7
8018 files changed
+1936476
No files matched your search
@@ -0,0 +1,7 @@
|
||||
# @tutti-os/ui-notifications
|
||||
|
||||
Host-agnostic notification contracts for reusable frontend services.
|
||||
|
||||
This package defines notification semantics only. Hosts decide whether a
|
||||
notification is rendered as a toast, inline banner, OS notification, or another
|
||||
surface.
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"name": "@tutti-os/ui-notifications",
|
||||
"version": "0.1.0",
|
||||
"private": false,
|
||||
"type": "module",
|
||||
"types": "./src/index.ts",
|
||||
"exports": {
|
||||
".": "./src/index.ts"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"README.md"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/tutti-os/tutti.git",
|
||||
"directory": "packages/ui/notifications"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsup --config tsup.config.ts",
|
||||
"typecheck": "node ../../../tools/scripts/run-tsgo-typecheck.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tutti-os/infra": "0.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tutti-os/config-tsconfig": "workspace:*",
|
||||
"typescript": "^5.8.3"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"import": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"types": "./dist/index.d.ts"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
import { createDecorator } from "@tutti-os/infra/di";
|
||||
|
||||
export type NotificationLevel = "success" | "error" | "info" | "warning";
|
||||
|
||||
export interface NotificationInput {
|
||||
description?: string;
|
||||
title: string;
|
||||
}
|
||||
|
||||
export interface NotificationMessage extends NotificationInput {
|
||||
level: NotificationLevel;
|
||||
}
|
||||
|
||||
export interface NotificationService {
|
||||
readonly _serviceBrand: undefined;
|
||||
|
||||
notify(input: NotificationMessage): void;
|
||||
success(input: NotificationInput): void;
|
||||
error(input: NotificationInput): void;
|
||||
info(input: NotificationInput): void;
|
||||
warning(input: NotificationInput): void;
|
||||
}
|
||||
|
||||
export const INotificationService = createDecorator<NotificationService>(
|
||||
"notification-service"
|
||||
);
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"extends": "@tutti-os/config-tsconfig/base.json",
|
||||
"compilerOptions": {
|
||||
"rootDir": "src"
|
||||
},
|
||||
"include": ["src/**/*.ts"]
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import { defineConfig } from "tsup";
|
||||
|
||||
export default defineConfig({
|
||||
clean: true,
|
||||
dts: true,
|
||||
entry: {
|
||||
index: "src/index.ts"
|
||||
},
|
||||
format: ["esm"],
|
||||
sourcemap: true
|
||||
});
|
||||
Reference in new issue
Block a user