@zaferyalcin/agent-office 0.0.0-stage → 0.1.0
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 +21 -0
- package/README.md +476 -2
- package/bin/agent-office.js +64 -0
- package/package.json +25 -4
- package/public/app.css +1035 -0
- package/public/app.js +2034 -0
- package/public/favicon.svg +1 -0
- package/public/i18n.js +1119 -0
- package/public/index.html +141 -0
- package/public/studio.js +1951 -0
- package/public/vendor/three/LICENSE +21 -0
- package/public/vendor/three/three.core.js +61162 -0
- package/public/vendor/three/three.module.js +19537 -0
- package/src/collector.js +501 -0
- package/src/history.js +161 -0
- package/src/open.js +57 -0
- package/src/providers/antigravity-core.js +743 -0
- package/src/providers/antigravity.js +136 -0
- package/src/providers/claude-code.js +465 -0
- package/src/providers/codex.js +168 -0
- package/src/providers/demo.js +1379 -0
- package/src/providers/gemini-cli.js +115 -0
- package/src/server.js +201 -0
- package/src/state.js +142 -0
- package/src/update.js +99 -0
- package/src/util.js +139 -0
- package/src/workspace.js +112 -0
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<meta name="color-scheme" content="dark light">
|
|
7
|
+
<title>Agent Office</title>
|
|
8
|
+
<link rel="icon" href="favicon.svg" type="image/svg+xml">
|
|
9
|
+
<script>
|
|
10
|
+
// Pick the theme before the first paint: the saved choice, otherwise the system preference.
|
|
11
|
+
(function () {
|
|
12
|
+
var th = null;
|
|
13
|
+
try { th = localStorage.getItem('ao.theme'); } catch (e) { /* storage blocked */ }
|
|
14
|
+
if (th !== 'day' && th !== 'night') th = window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches ? 'day' : 'night';
|
|
15
|
+
document.documentElement.setAttribute('data-theme', th);
|
|
16
|
+
})();
|
|
17
|
+
</script>
|
|
18
|
+
<link rel="stylesheet" href="app.css">
|
|
19
|
+
</head>
|
|
20
|
+
<body>
|
|
21
|
+
<header class="top">
|
|
22
|
+
<div class="brand">
|
|
23
|
+
<svg class="brand-mark" viewBox="0 0 32 32" width="26" height="26" aria-hidden="true">
|
|
24
|
+
<rect class="bm-tile" x="0.5" y="0.5" width="31" height="31" rx="7.5"/>
|
|
25
|
+
<path class="bm-line" d="M9 27 H5 V5 H27 V27 H17 M17 5 V20 M17 15 H21" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
26
|
+
<circle class="bm-a" cx="11" cy="15" r="2.8"/>
|
|
27
|
+
<circle class="bm-g" cx="22" cy="10" r="2.3"/>
|
|
28
|
+
<circle class="bm-o" cx="22" cy="21" r="2.3"/>
|
|
29
|
+
</svg>
|
|
30
|
+
<div class="brand-text">
|
|
31
|
+
<h1>Agent Office</h1>
|
|
32
|
+
<div class="live" id="live"><i></i><span id="liveText">Connecting</span></div>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
<div class="kpis" id="kpis" aria-live="polite"></div>
|
|
36
|
+
<div class="actions">
|
|
37
|
+
<div class="seg" role="group" aria-label="View">
|
|
38
|
+
<button id="vOffice" aria-pressed="true" data-i18n="view.office">Office</button>
|
|
39
|
+
<button id="vStudio" aria-pressed="false" data-i18n="view.studio">Studio</button>
|
|
40
|
+
<button id="vReports" aria-pressed="false" data-i18n="view.reports">Reports</button>
|
|
41
|
+
</div>
|
|
42
|
+
<button class="btn" id="pauseBtn" aria-pressed="false" data-i18n="pause">Pause</button>
|
|
43
|
+
<button class="btn icon" id="helpBtn" aria-haspopup="dialog" aria-controls="help">
|
|
44
|
+
<svg viewBox="0 0 24 24" width="18" height="18" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="9"/><path d="M9.6 9.3a2.5 2.5 0 0 1 4.9.8c0 1.7-2.5 2.2-2.5 3.9"/><circle cx="12" cy="17.2" r=".4" fill="currentColor"/></svg>
|
|
45
|
+
</button>
|
|
46
|
+
<button class="btn icon" id="notifyBtn" aria-pressed="false">
|
|
47
|
+
<svg class="ic-bell" viewBox="0 0 24 24" width="18" height="18" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M18 8a6 6 0 0 0-12 0c0 7-3 8.5-3 8.5h18s-3-1.5-3-8.5"/><path d="M13.73 20a2 2 0 0 1-3.46 0"/><path class="ic-slash" d="M4 4l16 16"/></svg>
|
|
48
|
+
</button>
|
|
49
|
+
<button class="btn icon" id="themeBtn" aria-pressed="false">
|
|
50
|
+
<svg class="ic-moon" viewBox="0 0 24 24" width="18" height="18" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round"><path d="M19.5 14.6A8 8 0 0 1 9.4 4.5a8 8 0 1 0 10.1 10.1z"/></svg>
|
|
51
|
+
<svg class="ic-sun" viewBox="0 0 24 24" width="18" height="18" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"><circle cx="12" cy="12" r="3.8"/><path d="M12 2.8v2.1M12 19.1v2.1M2.8 12h2.1M19.1 12h2.1M5.5 5.5l1.5 1.5M17 17l1.5 1.5M5.5 18.5 7 17M17 7l1.5-1.5"/></svg>
|
|
52
|
+
</button>
|
|
53
|
+
<div class="lang">
|
|
54
|
+
<button class="btn icon" id="langBtn" aria-label="Language" aria-haspopup="menu" aria-expanded="false">
|
|
55
|
+
<svg viewBox="0 0 24 24" width="18" height="18" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.6"><circle cx="12" cy="12" r="9"/><path d="M3 12h18M12 3c2.6 2.6 3.8 5.6 3.8 9s-1.2 6.4-3.8 9M12 3C9.4 5.6 8.2 8.6 8.2 12s1.2 6.4 3.8 9"/></svg>
|
|
56
|
+
</button>
|
|
57
|
+
<div class="menu" id="langMenu" role="menu" hidden></div>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
</header>
|
|
61
|
+
<div id="quotaBanner" class="quota-banner" role="status" aria-live="polite" hidden></div>
|
|
62
|
+
<div id="updateBanner" class="update-banner" role="status" hidden></div>
|
|
63
|
+
|
|
64
|
+
<div class="main">
|
|
65
|
+
<section class="col col-left" aria-labelledby="roomsTitle">
|
|
66
|
+
<div class="bar">
|
|
67
|
+
<div class="sect-head">
|
|
68
|
+
<h2 id="roomsTitle" data-i18n="rooms.title">Workspaces</h2>
|
|
69
|
+
<p class="sect-sub" data-i18n="rooms.sub"></p>
|
|
70
|
+
</div>
|
|
71
|
+
<input class="search" id="q" type="search" data-i18n-ph="search" placeholder="Find an agent, task or folder">
|
|
72
|
+
<span id="toolChips"></span>
|
|
73
|
+
<select class="sel" id="hours" aria-label="Time window">
|
|
74
|
+
<option value="1">1 h</option><option value="6">6 h</option><option value="24" selected>24 h</option><option value="168">7 d</option>
|
|
75
|
+
</select>
|
|
76
|
+
<label class="tog"><input type="checkbox" id="showDone"> <span data-i18n="showDone">Show finished</span></label>
|
|
77
|
+
</div>
|
|
78
|
+
<div id="notice" class="notice" hidden></div>
|
|
79
|
+
<section class="topo-wrap" id="topoWrap" aria-labelledby="topoTitle">
|
|
80
|
+
<div class="topo-head"><h2 id="topoTitle" data-i18n="topo.title">Topology</h2><span class="topo-sub" data-i18n="topo.sub"></span><button class="btn small" id="topoBtn"></button></div>
|
|
81
|
+
<div id="topo"></div>
|
|
82
|
+
</section>
|
|
83
|
+
<div id="rooms"></div>
|
|
84
|
+
</section>
|
|
85
|
+
<aside class="col col-right" id="side" aria-label="Usage and details"></aside>
|
|
86
|
+
</div>
|
|
87
|
+
<div id="studio" aria-label="Studio, a 3D view of the office"></div>
|
|
88
|
+
<main id="reports" class="reports" aria-label="Reports" hidden></main>
|
|
89
|
+
<div id="toasts" class="toasts" aria-live="polite" aria-atomic="false"></div>
|
|
90
|
+
<div id="chartTip" class="chart-tip" role="tooltip" hidden></div>
|
|
91
|
+
|
|
92
|
+
<dialog class="help" id="help" aria-labelledby="helpTitle">
|
|
93
|
+
<div class="help-head">
|
|
94
|
+
<h2 id="helpTitle" data-i18n="help.title"></h2>
|
|
95
|
+
<button class="btn icon" id="helpClose">
|
|
96
|
+
<svg viewBox="0 0 24 24" width="18" height="18" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><path d="M6.5 6.5l11 11M17.5 6.5l-11 11"/></svg>
|
|
97
|
+
</button>
|
|
98
|
+
</div>
|
|
99
|
+
<div class="help-body" tabindex="0">
|
|
100
|
+
<section>
|
|
101
|
+
<h3 data-i18n="help.local.h"></h3>
|
|
102
|
+
<p data-i18n="help.local.p"></p>
|
|
103
|
+
</section>
|
|
104
|
+
<section>
|
|
105
|
+
<h3 data-i18n="help.find.h"></h3>
|
|
106
|
+
<p data-i18n="help.find.p"></p>
|
|
107
|
+
</section>
|
|
108
|
+
<section>
|
|
109
|
+
<h3 data-i18n="help.states.h"></h3>
|
|
110
|
+
<ul class="help-states">
|
|
111
|
+
<li><span class="dot working"></span><b data-i18n="state.working"></b><span data-i18n="help.s.working"></span></li>
|
|
112
|
+
<li><span class="dot idle"></span><b data-i18n="state.idle"></b><span data-i18n="help.s.idle"></span></li>
|
|
113
|
+
<li><span class="dot stalled"></span><b data-i18n="state.stalled"></b><span data-i18n="help.s.stalled"></span></li>
|
|
114
|
+
<li><span class="dot failed"></span><b data-i18n="state.failed"></b><span data-i18n="help.s.failed"></span></li>
|
|
115
|
+
<li><span class="dot done"></span><b data-i18n="state.done"></b><span data-i18n="help.s.done"></span></li>
|
|
116
|
+
</ul>
|
|
117
|
+
</section>
|
|
118
|
+
<section>
|
|
119
|
+
<h3 data-i18n="help.usage.h"></h3>
|
|
120
|
+
<p data-i18n="help.usage.p"></p>
|
|
121
|
+
<p data-i18n="help.limits.p"></p>
|
|
122
|
+
</section>
|
|
123
|
+
<section>
|
|
124
|
+
<h3 data-i18n="help.views.h"></h3>
|
|
125
|
+
<p data-i18n="help.views.p"></p>
|
|
126
|
+
</section>
|
|
127
|
+
<section>
|
|
128
|
+
<h3 data-i18n="help.more.h"></h3>
|
|
129
|
+
<p data-i18n="help.more.p"></p>
|
|
130
|
+
</section>
|
|
131
|
+
<section>
|
|
132
|
+
<h3 data-i18n="help.privacy.h"></h3>
|
|
133
|
+
<p data-i18n="help.privacy.p"></p>
|
|
134
|
+
</section>
|
|
135
|
+
</div>
|
|
136
|
+
</dialog>
|
|
137
|
+
|
|
138
|
+
<script src="i18n.js"></script>
|
|
139
|
+
<script src="app.js"></script>
|
|
140
|
+
</body>
|
|
141
|
+
</html>
|