@quolu/lattice 0.34.0 → 0.34.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -134,12 +134,11 @@ of your licenses.
134
134
 
135
135
  Required Notice: Copyright 2026 quolu (kitepon-rgb) — https://github.com/kitepon-rgb/Lattice
136
136
 
137
- Patent notice: this software implements the subject matter of Japanese patent
138
- application 特願2026-178950 (filed 2026-07-27). Patent rights are reserved except as
139
- licensed above for permitted (noncommercial) purposes.
137
+ Patent notice: the design implemented by this software is the subject of Japanese
138
+ patent application 特願2026-178950 (filed 2026-07-27).
140
139
 
141
- Commercial use: not granted by these terms. A separate license from the copyright and
142
- patent holder is required. Enquiries: https://github.com/kitepon-rgb/Lattice/issues
140
+ Commercial use requires a separate commercial license.
141
+ Enquiries: kitepon@gmail.com
143
142
  Whether such a license is granted, and on what terms, is decided case by case.
144
143
 
145
144
  Third-party components: the bundled structure sensor in `sensor/` is third-party work
package/README.ja.md CHANGED
@@ -4,6 +4,8 @@
4
4
 
5
5
  # Lattice
6
6
 
7
+ [kitepon.dev](https://kitepon.dev/)を運営する[クオ(@QLyun35332)](https://x.com/QLyun35332)が開発・メンテナンスしています。
8
+
7
9
  [![npm](https://img.shields.io/npm/v/@quolu/lattice?color=cb3837&logo=npm)](https://www.npmjs.com/package/@quolu/lattice)
8
10
  [![CI](https://github.com/kitepon-rgb/Lattice/actions/workflows/ci.yml/badge.svg)](https://github.com/kitepon-rgb/Lattice/actions/workflows/ci.yml)
9
11
  [![license](https://img.shields.io/badge/license-PolyForm%20Noncommercial%201.0.0-blue)](LICENSE)
@@ -63,11 +65,11 @@ integration testで一気通貫に検証済みです。切断の重さは`lattic
63
65
  (計画時は`todo seam-profile`)が数えられる事実だけで投影し、機械変換の可否は「確実の門」が
64
66
  typed理由つきで分類します——宣言を直せば通るのか、操作AIへ渡すべきなのかまで返します。
65
67
 
66
- ## 開発工場での位置づけ
68
+ ## 所有境界
67
69
 
68
- Latticeは[dotagents開発工場](https://github.com/kitepon-rgb/dotagents)が管理する
69
- 自作コア10製品の一つです。本repoplan/ToDo/run store、sensor、schema、migration、
70
- release、diagnosticsを所有し、dotagentsは製品横断の工程利用・導入・host統合を所有します。
70
+ 本repoはplan/ToDo/run store、Lattice sensor、schema、migration、release、diagnosticsを
71
+ 所有します。[dotagents](https://github.com/kitepon-rgb/dotagents)kitepon.devを支える内部
72
+ toolchainであり、製品横断の工程利用・導入・host統合を所有します。
71
73
  廃止済みの前身sensorは独立製品として配線せず、Lattice sensorだけを現役面とします。
72
74
  MarkItDownは別区分の第三者CLIです。
73
75
 
@@ -234,9 +236,8 @@ error detailの`missing_environment`/`invalid_environment`と
234
236
  | 発明の名称 | 情報処理装置、ソフトウェア開発制御方法及びプログラム |
235
237
  | 請求項 | 12項 |
236
238
 
237
- **特許権は留保します。** 非商用利用についてはsoftwareと一緒に許諾します(下記License参照)。
238
- **商用利用は許諾しません**——著作権のlicenseも特許のlicenseも商用へは及びません。
239
- 出願を明記するのは、権利の所在を後から知るのでなく最初に見えるようにするためです。
239
+ 非商用利用は下記Licenseの範囲で許諾します。
240
+ **商用利用には別途の商用ライセンスが必要です。**
240
241
 
241
242
  ## License
242
243
 
@@ -244,14 +245,11 @@ error detailの`missing_environment`/`invalid_environment`と
244
245
 
245
246
  - **無償:** 個人のproject、学習・研究、趣味やアマチュアの制作、慈善団体、教育機関、
246
247
  公的研究機関、政府機関
247
- - **許諾しません:** 商用利用。Lattice自体を再配布するかどうかに関わらず、企業の業務や製品の
248
+ - **許諾が必要:** 商用利用。Lattice自体を再配布するかどうかに関わらず、企業の業務や製品の
248
249
  中で使う場合を含みます
249
250
 
250
- これはOSI承認のオープンソースライセンス**ではありません**。設計が特許出願の対象であり、
251
- 商用の権利を留保しているので、意図してそうしています。
252
-
253
- **商用利用には**、著作権者・特許権者からの別途の許諾が必要です。
254
- 問い合わせは[issue](https://github.com/kitepon-rgb/Lattice/issues)から受け付けます。
251
+ **商用利用には**、別途の商用ライセンスが必要です。
252
+ 問い合わせは[kitepon@gmail.com](mailto:kitepon@gmail.com)へのメールで受け付けます。
255
253
  許諾するかどうか、どのような条件にするかは個別に判断します。
256
254
 
257
255
  同梱の構造sensor([`sensor/`](sensor/))は本repositoryへ吸収した第三者成果物で、
package/README.md CHANGED
@@ -18,6 +18,8 @@
18
18
  > genuinely collide — **refactors the seam between them and recompiles the plan** so they can
19
19
  > run in parallel after all.
20
20
 
21
+ Built and maintained by [Quo](https://x.com/QLyun35332) at [kitepon.dev](https://kitepon.dev/en).
22
+
21
23
  ## Why
22
24
 
23
25
  Give three coding agents three tasks and the usual outcome is one of two failures:
@@ -159,17 +161,14 @@ The design in this repository is the subject of a Japanese patent application:
159
161
  | Title | 情報処理装置、ソフトウェア開発制御方法及びプログラム<br>(Information processing apparatus, software development control method, and program) |
160
162
  | Claims | 12 |
161
163
 
162
- **Patent rights are reserved.** Noncommercial use is licensed together with the software (see
163
- [License](#license)). Commercial use is not granted neither the copyright license nor the
164
- patent license extends to it. The application is disclosed here so the rights position is
165
- visible up front rather than discovered later.
164
+ Noncommercial use is permitted under the [License](#license) below.
165
+ **A separate commercial license is required for commercial use.**
166
166
 
167
- ## Factory role
167
+ ## Ownership boundary
168
168
 
169
- Lattice is one of the ten self-owned core products managed by the
170
- [dotagents development factory](https://github.com/kitepon-rgb/dotagents). This repository owns
171
- the plan/ToDo/run store, the bundled sensor, schemas, migrations, releases, and diagnostics;
172
- dotagents owns cross-product installation and host integration.
169
+ This repository owns the plan/ToDo/run store, the bundled sensor, schemas, migrations,
170
+ releases, and diagnostics. [dotagents](https://github.com/kitepon-rgb/dotagents) is the
171
+ internal toolchain behind kitepon.dev and owns cross-product installation and host integration.
173
172
 
174
173
  - Product philosophy: [PLAN.md](PLAN.md)
175
174
  - Public contract: [docs/00_product-contract.md](docs/00_product-contract.md)
@@ -202,14 +201,11 @@ Detailed operational notes (dashboard, bridge, actor environment, store transact
202
201
 
203
202
  - **Free:** personal projects, study and research, hobby and amateur work, charities,
204
203
  educational institutions, public research organizations, and government institutions.
205
- - **Not granted:** commercial use. That includes use inside a company's paid work or products,
204
+ - **Permission required:** commercial use. That includes use inside a company's paid work or products,
206
205
  regardless of whether Lattice itself is redistributed.
207
206
 
208
- This is **not** an OSI-approved open source license, and that is deliberate: the design is
209
- covered by a patent application and commercial rights are retained.
210
-
211
- **For commercial use**, a separate license from the copyright and patent holder is required.
212
- Enquiries can be made via [issues](https://github.com/kitepon-rgb/Lattice/issues). Whether a
207
+ **For commercial use**, a separate commercial license is required.
208
+ Enquiries can be made by email at [kitepon@gmail.com](mailto:kitepon@gmail.com). Whether a
213
209
  license is granted, and on what terms, is decided case by case.
214
210
 
215
211
  The bundled structure sensor in [`sensor/`](sensor/) is third-party work absorbed into this
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@quolu/lattice",
3
- "version": "0.34.0",
3
+ "version": "0.34.2",
4
4
  "description": "Schedulability compiler for multi-agent development: observe real code boundaries, refactor the conflicting seam, recompile the plan for parallel execution",
5
5
  "author": {
6
6
  "name": "Quo / クオ at kitepon.dev",
7
- "url": "https://x.com/QLyun35332"
7
+ "url": "https://kitepon.dev/"
8
8
  },
9
9
  "type": "module",
10
10
  "license": "PolyForm-Noncommercial-1.0.0",
@@ -13,8 +13,13 @@ function projectPath(projectId) {
13
13
 
14
14
  function liveHtml(html, headDigest, eventsPath) {
15
15
  const controller = `<script>(()=>{const badge=document.createElement('div');badge.setAttribute('role','status');badge.style.cssText='position:fixed;right:12px;bottom:12px;z-index:99;padding:6px 10px;border:1px solid #d9d8d4;border-radius:4px;background:#fcfcfb;font:600 12px system-ui';badge.textContent='進捗: 接続中';document.body.append(badge);let head=${JSON.stringify(headDigest)};const stream=new EventSource(${JSON.stringify(eventsPath)});stream.addEventListener('state',event=>{const next=JSON.parse(event.data);badge.textContent='進捗: 最新';if(next.head_digest!==head){badge.textContent='進捗: 更新を反映中';location.reload();}});stream.addEventListener('lattice-error',event=>{const detail=JSON.parse(event.data);badge.textContent='進捗: エラー '+detail.code;badge.style.borderColor='#d03b3b';});stream.onerror=()=>{badge.textContent='進捗: 再接続中';};})();</script>`;
16
+ const publicMetadata = '<meta name="description" content="Latticeで管理しているプロジェクトの依存工程と進捗を確認できます。"><meta name="robots" content="noindex, nofollow"><meta name="theme-color" content="#f7f3ea">';
17
+ const publicStyle = '<style>body[data-gantt-root]{grid-template-rows:auto minmax(0,1fr)}.lattice-live-brand{z-index:10;display:flex;align-items:center;gap:8px;min-width:0;padding:10px 16px;border-bottom:1px solid #d8d0c5;background:#f7f3ea;color:#6c655d;font:600 12px/1.5 system-ui,-apple-system,"Hiragino Sans","Yu Gothic UI",sans-serif}.lattice-live-brand a{color:#201d19;text-decoration:none}.lattice-live-brand a:hover{color:#315cbe}.lattice-live-brand strong{color:#201d19}.lattice-live-brand-note{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lattice-live-back{margin-left:auto!important;color:#315cbe!important;font-weight:750}@media(max-width:560px){.lattice-live-brand{padding:9px 12px}.lattice-live-brand-note{display:none}}</style>';
18
+ const publicHeader = '<header class="lattice-live-brand"><a href="https://kitepon.dev/">kitepon.dev</a><span aria-hidden="true">/</span><strong>Lattice</strong><span class="lattice-live-brand-note">公開工程表</span><a class="lattice-live-back" href="/projects/">一覧へ戻る</a></header>';
16
19
  return html
17
20
  .replace("default-src 'none';", "default-src 'none'; connect-src 'self';")
21
+ .replace('</head>', `${publicMetadata}${publicStyle}</head>`)
22
+ .replace(/<body([^>]*)>/u, `<body$1>${publicHeader}`)
18
23
  .replace('</body>', `${controller}</body>`);
19
24
  }
20
25
 
@@ -26,11 +31,13 @@ function escapeHtml(value) {
26
31
  function dashboardHtml(projects) {
27
32
  const rows = projects.map(({ projectId, displayName }) => {
28
33
  const href = projectPath(projectId);
29
- return `<li><a href="${escapeHtml(href)}"><strong>${escapeHtml(displayName)}</strong><code>${escapeHtml(projectId)}</code></a></li>`;
34
+ const projectIdentity = displayName === projectId
35
+ ? '' : `<code>${escapeHtml(projectId)}</code>`;
36
+ return `<li><a href="${escapeHtml(href)}"><strong>${escapeHtml(displayName)}</strong>${projectIdentity}<span aria-hidden="true">→</span></a></li>`;
30
37
  }).join('');
31
38
  const content = rows.length === 0 ? '<p>アクティブなプロジェクトはありません。</p>'
32
39
  : `<ul>${rows}</ul>`;
33
- return `<!doctype html><html lang="ja"><head><meta http-equiv="Content-Security-Policy" content="default-src 'none'; style-src 'unsafe-inline'"><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Lattice — アクティブプロジェクト</title><style>body{max-width:800px;margin:48px auto;padding:0 20px;color:#262626;background:#fafaf8;font:16px system-ui}h1{font-size:1.6rem}ul{list-style:none;padding:0}li{margin:10px 0}a{display:flex;justify-content:space-between;gap:20px;padding:16px;border:1px solid #d9d8d4;border-radius:8px;color:inherit;background:white;text-decoration:none}a:hover{border-color:#4b78d0}code{color:#666}</style></head><body><main><h1>Lattice アクティブプロジェクト</h1>${content}</main></body></html>`;
40
+ return `<!doctype html><html lang="ja"><head><meta http-equiv="Content-Security-Policy" content="default-src 'none'; style-src 'unsafe-inline'"><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="description" content="Latticeが管理している公開中の工程と現在地を確認できます。"><meta name="robots" content="noindex, nofollow"><meta property="og:title" content="公開中の工程表 — Lattice"><meta property="og:description" content="Latticeが管理している公開中の工程と現在地を確認できます。"><meta name="theme-color" content="#f7f3ea"><title>公開中の工程表 Lattice</title><style>:root{color-scheme:light;--paper:#f7f3ea;--panel:#fffdf8;--ink:#201d19;--soft:#6c655d;--line:#d8d0c5;--cobalt:#315cbe;--orange:#e85f2a}*{box-sizing:border-box}body{min-height:100vh;margin:0;color:var(--ink);background:var(--paper);font:16px/1.7 system-ui,-apple-system,sans-serif}.shell{max-width:880px;margin:0 auto;padding:28px 22px 40px}.brand{display:flex;align-items:center;gap:9px;padding-bottom:24px;border-bottom:1px solid var(--line);font-size:.88rem}.brand a,.footer a{color:var(--ink);font-weight:800;text-decoration:none}.brand a:hover,.footer a:hover{color:var(--cobalt)}.brand span{color:var(--soft)}main{padding:64px 0 72px}.eyebrow{margin:0 0 8px;color:var(--orange);font-size:.76rem;font-weight:800;letter-spacing:.14em}.lead{max-width:620px;margin:0 0 34px;color:var(--soft)}h1{margin:0 0 14px;font-size:clamp(2rem,6vw,3.4rem);line-height:1.12;letter-spacing:-.04em}ul{display:grid;gap:12px;margin:0;padding:0;list-style:none}li a{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:20px;padding:18px 20px;border:1px solid var(--line);border-radius:12px;color:inherit;background:var(--panel);text-decoration:none;box-shadow:0 8px 28px rgba(48,39,27,.04)}li a:hover{border-color:var(--cobalt);transform:translateY(-1px)}li strong{font-size:1.04rem}li code{color:var(--soft);font-size:.78rem}li span{color:var(--cobalt);font-weight:800}.note{margin:28px 0 0;padding:16px 18px;border-left:3px solid var(--orange);color:var(--soft);background:rgba(255,253,248,.72);font-size:.88rem}.footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;padding-top:20px;border-top:1px solid var(--line);color:var(--soft);font-size:.82rem}.footer nav{display:flex;gap:18px}@media(max-width:560px){.shell{padding:20px 16px 32px}main{padding:44px 0 56px}li a{grid-template-columns:minmax(0,1fr) auto;padding:16px}li code{grid-column:1/-1;grid-row:2}.footer{display:block}.footer nav{margin-top:10px}}</style></head><body><div class="shell"><header class="brand"><a href="https://kitepon.dev/">kitepon.dev</a><span aria-hidden="true">/</span><strong>Lattice</strong></header><main><p class="eyebrow">LIVE DEVELOPMENT</p><h1>公開中の工程表</h1><p class="lead">Latticeが管理しているプロジェクトの工程と、いまどこまで進んでいるかを公開データから確認できます。</p>${content}<p class="note">表示内容はLatticeの記録から自動生成されます。製品の紹介や使い方はGitHubをご覧ください。</p></main><footer class="footer"><span>kitepon.dev の開発工程を、Latticeで可視化しています。</span><nav aria-label="関連リンク"><a href="https://kitepon.dev/">kitepon.dev</a><a href="https://github.com/kitepon-rgb/Lattice">GitHub</a></nav></footer></div></body></html>`;
34
41
  }
35
42
 
36
43
  function validateProject(project) {