sideby 0.16.1 → 0.18.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.
Files changed (128) hide show
  1. package/README.md +7 -3
  2. package/ai-tasks.json +90 -0
  3. package/dist/build.json +1 -1
  4. package/dist/src/cli/commands.d.ts +25 -1
  5. package/dist/src/cli/commands.js +802 -15
  6. package/dist/src/cli/json-schemas.js +252 -1
  7. package/dist/src/cli/main.js +143 -4
  8. package/dist/src/core/after-install.d.ts +54 -0
  9. package/dist/src/core/after-install.js +78 -0
  10. package/dist/src/core/ask.d.ts +222 -0
  11. package/dist/src/core/ask.js +465 -0
  12. package/dist/src/core/attachments.d.ts +50 -0
  13. package/dist/src/core/attachments.js +442 -0
  14. package/dist/src/core/autostart.d.ts +118 -0
  15. package/dist/src/core/autostart.js +302 -0
  16. package/dist/src/core/brand-mark.d.ts +49 -11
  17. package/dist/src/core/brand-mark.js +116 -38
  18. package/dist/src/core/config.d.ts +102 -0
  19. package/dist/src/core/config.js +289 -11
  20. package/dist/src/core/desktop-app.d.ts +1 -1
  21. package/dist/src/core/desktop-app.js +2 -2
  22. package/dist/src/core/edit-settings.d.ts +24 -0
  23. package/dist/src/core/edit-settings.js +97 -0
  24. package/dist/src/core/handoff-brief.d.ts +4 -2
  25. package/dist/src/core/handoff-brief.js +6 -1
  26. package/dist/src/core/handoff-chain.d.ts +24 -0
  27. package/dist/src/core/handoff-chain.js +2 -0
  28. package/dist/src/core/handoff-run.d.ts +4 -3
  29. package/dist/src/core/handoff-run.js +14 -9
  30. package/dist/src/core/launch.d.ts +17 -4
  31. package/dist/src/core/launch.js +32 -24
  32. package/dist/src/core/local-build.d.ts +17 -5
  33. package/dist/src/core/local-build.js +61 -23
  34. package/dist/src/core/lock.d.ts +30 -0
  35. package/dist/src/core/lock.js +143 -0
  36. package/dist/src/core/probe.d.ts +78 -0
  37. package/dist/src/core/probe.js +127 -0
  38. package/dist/src/core/quota-levels.d.ts +6 -1
  39. package/dist/src/core/quota-levels.js +16 -5
  40. package/dist/src/core/same-login.d.ts +9 -4
  41. package/dist/src/core/same-login.js +9 -4
  42. package/dist/src/core/secret-file.d.ts +26 -0
  43. package/dist/src/core/secret-file.js +126 -7
  44. package/dist/src/core/task-spec.d.ts +95 -0
  45. package/dist/src/core/task-spec.js +209 -0
  46. package/dist/src/core/terminal.d.ts +93 -0
  47. package/dist/src/core/terminal.js +376 -0
  48. package/dist/src/core/update.d.ts +34 -12
  49. package/dist/src/core/update.js +96 -84
  50. package/dist/src/desktop/icon.js +12 -15
  51. package/dist/src/families/claude/ai-task.d.ts +8 -0
  52. package/dist/src/families/claude/ai-task.js +38 -0
  53. package/dist/src/families/claude/handoff-hook.js +4 -4
  54. package/dist/src/families/claude/index.js +6 -0
  55. package/dist/src/families/claude/quota-cache.d.ts +24 -7
  56. package/dist/src/families/claude/quota-cache.js +72 -21
  57. package/dist/src/families/codex/handoff-hook.js +4 -4
  58. package/dist/src/families/codex/index.js +16 -0
  59. package/dist/src/families/codex/login-key.d.ts +8 -0
  60. package/dist/src/families/codex/login-key.js +33 -0
  61. package/dist/src/families/grok/handoff-hook.js +4 -4
  62. package/dist/src/families/grok/index.js +4 -0
  63. package/dist/src/families/login-keys.d.ts +6 -0
  64. package/dist/src/families/login-keys.js +6 -0
  65. package/dist/src/families/pi/index.js +5 -0
  66. package/dist/src/handoff/hook.js +51 -30
  67. package/dist/src/handoff/levels.d.ts +24 -0
  68. package/dist/src/handoff/levels.js +70 -0
  69. package/dist/src/handoff/messages.d.ts +6 -3
  70. package/dist/src/handoff/messages.js +20 -7
  71. package/dist/src/handoff/reader.d.ts +6 -3
  72. package/dist/src/menubar/agent.d.ts +3 -0
  73. package/dist/src/menubar/agent.js +21 -0
  74. package/dist/src/menubar/script.d.ts +8 -0
  75. package/dist/src/menubar/script.js +457 -0
  76. package/dist/src/menubar/snapshot.d.ts +115 -0
  77. package/dist/src/menubar/snapshot.js +255 -0
  78. package/dist/src/menubar/strings.d.ts +87 -0
  79. package/dist/src/menubar/strings.js +88 -0
  80. package/dist/src/panel/background.js +15 -21
  81. package/dist/src/panel/handler.d.ts +41 -2
  82. package/dist/src/panel/handler.js +394 -10
  83. package/dist/src/panel/i18n.d.ts +205 -2
  84. package/dist/src/panel/i18n.js +441 -35
  85. package/dist/src/panel/page-logic.d.ts +301 -0
  86. package/dist/src/panel/page-logic.js +532 -0
  87. package/dist/src/panel/page-script.js +1135 -185
  88. package/dist/src/panel/page-styles.js +111 -32
  89. package/dist/src/panel/page.d.ts +12 -0
  90. package/dist/src/panel/page.js +7 -0
  91. package/dist/src/panel/server.d.ts +16 -2
  92. package/dist/src/panel/server.js +41 -13
  93. package/dist/src/plugins/check.d.ts +47 -0
  94. package/dist/src/plugins/check.js +544 -0
  95. package/dist/src/plugins/scaffold.d.ts +21 -0
  96. package/dist/src/plugins/scaffold.js +123 -0
  97. package/dist/src/quota/statusline-tap.js +1 -1
  98. package/dist/src/runtime.d.ts +19 -1
  99. package/dist/src/runtime.js +53 -14
  100. package/dist/src/types.d.ts +33 -0
  101. package/package.json +4 -3
  102. package/schemas/ask-choices.json +168 -0
  103. package/schemas/ask-print.json +87 -0
  104. package/schemas/ask.json +180 -0
  105. package/schemas/autostart.json +165 -0
  106. package/schemas/config-get.json +132 -0
  107. package/schemas/config-set.json +107 -0
  108. package/schemas/config.json +90 -7
  109. package/schemas/edit.json +119 -0
  110. package/schemas/error.json +4 -0
  111. package/schemas/families.json +4 -0
  112. package/schemas/key.json +93 -0
  113. package/schemas/list.json +4 -0
  114. package/schemas/local.json +1 -1
  115. package/schemas/menubar-snapshot.json +646 -0
  116. package/schemas/menubar-start.json +112 -0
  117. package/schemas/menubar.json +165 -0
  118. package/schemas/plugins-check.json +113 -0
  119. package/schemas/plugins-new.json +87 -0
  120. package/schemas/terminal.json +152 -0
  121. package/schemas/try.json +109 -0
  122. package/schemas/update.json +4 -0
  123. package/skills/sideby/SKILL.md +16 -6
  124. package/skills/sideby/references/accounts.md +1 -1
  125. package/skills/sideby/references/ai-tasks.md +126 -0
  126. package/skills/sideby/references/handoff.md +3 -1
  127. package/skills/sideby/references/panel.md +20 -0
  128. package/skills/sideby/references/update.md +1 -1
@@ -0,0 +1,87 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "sideby/ask-print.json",
4
+ "type": "object",
5
+ "required": [
6
+ "schemaVersion",
7
+ "prompt",
8
+ "removedSecrets"
9
+ ],
10
+ "properties": {
11
+ "schemaVersion": {
12
+ "type": "number",
13
+ "const": 1
14
+ },
15
+ "prompt": {
16
+ "type": "string",
17
+ "description": "The Task Prompt the Host would get, attachments section included."
18
+ },
19
+ "removedSecrets": {
20
+ "type": "boolean",
21
+ "description": "Whether key-shaped text was taken out of the prompt."
22
+ },
23
+ "_notice": {
24
+ "type": "object",
25
+ "properties": {
26
+ "update": {
27
+ "type": "object",
28
+ "required": [
29
+ "current",
30
+ "latest",
31
+ "command",
32
+ "message"
33
+ ],
34
+ "properties": {
35
+ "current": {
36
+ "type": "string"
37
+ },
38
+ "latest": {
39
+ "type": "string"
40
+ },
41
+ "command": {
42
+ "type": "string",
43
+ "description": "Run it after the user agrees: it shows the plan and exits 10; then --yes."
44
+ },
45
+ "message": {
46
+ "type": "string"
47
+ }
48
+ }
49
+ },
50
+ "skill": {
51
+ "type": "object",
52
+ "required": [
53
+ "installed",
54
+ "current",
55
+ "command",
56
+ "message"
57
+ ],
58
+ "properties": {
59
+ "installed": {
60
+ "anyOf": [
61
+ {
62
+ "type": "string"
63
+ },
64
+ {
65
+ "type": "null"
66
+ }
67
+ ],
68
+ "description": "The skill's version; null when it has none."
69
+ },
70
+ "current": {
71
+ "type": "string"
72
+ },
73
+ "command": {
74
+ "type": "string",
75
+ "description": "`sideby update`, which updates the skill with sideby: run it after the user agrees; it shows the plan and exits 10, then --yes."
76
+ },
77
+ "message": {
78
+ "type": "string"
79
+ }
80
+ }
81
+ }
82
+ },
83
+ "description": "Not the answer to the task: mention it briefly afterwards and offer to update."
84
+ }
85
+ },
86
+ "title": "sideby ask --spec - --print --json"
87
+ }
@@ -0,0 +1,180 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "sideby/ask.json",
4
+ "type": "object",
5
+ "required": [
6
+ "schemaVersion",
7
+ "task",
8
+ "account",
9
+ "terminal",
10
+ "opened",
11
+ "command",
12
+ "removedSecrets",
13
+ "attachments"
14
+ ],
15
+ "properties": {
16
+ "schemaVersion": {
17
+ "type": "number",
18
+ "const": 1
19
+ },
20
+ "task": {
21
+ "anyOf": [
22
+ {
23
+ "type": "string"
24
+ },
25
+ {
26
+ "type": "null"
27
+ }
28
+ ]
29
+ },
30
+ "account": {
31
+ "anyOf": [
32
+ {
33
+ "type": "string"
34
+ },
35
+ {
36
+ "type": "null"
37
+ }
38
+ ]
39
+ },
40
+ "terminal": {
41
+ "anyOf": [
42
+ {
43
+ "type": "string"
44
+ },
45
+ {
46
+ "type": "null"
47
+ }
48
+ ]
49
+ },
50
+ "opened": {
51
+ "type": "boolean"
52
+ },
53
+ "command": {
54
+ "anyOf": [
55
+ {
56
+ "type": "string"
57
+ },
58
+ {
59
+ "type": "null"
60
+ }
61
+ ]
62
+ },
63
+ "removedSecrets": {
64
+ "type": "boolean"
65
+ },
66
+ "reason": {
67
+ "type": "string",
68
+ "enum": [
69
+ "no-accounts",
70
+ "none-signed-in",
71
+ "all-full",
72
+ "not-installed",
73
+ "automation-denied",
74
+ "npx-cache",
75
+ "unsafe-path",
76
+ "failed",
77
+ "unsupported-platform"
78
+ ],
79
+ "description": "Why nothing opened (only when `opened` is false); `detail` says what to do next."
80
+ },
81
+ "detail": {
82
+ "type": "string",
83
+ "description": "What to do next, for a person."
84
+ },
85
+ "prompt": {
86
+ "type": "string"
87
+ },
88
+ "attachments": {
89
+ "type": "array",
90
+ "items": {
91
+ "type": "object",
92
+ "required": [
93
+ "path",
94
+ "kind",
95
+ "bytes"
96
+ ],
97
+ "properties": {
98
+ "path": {
99
+ "type": "string",
100
+ "description": "Absolute path of the copy saved for the task."
101
+ },
102
+ "kind": {
103
+ "type": "string",
104
+ "enum": [
105
+ "image",
106
+ "video"
107
+ ]
108
+ },
109
+ "bytes": {
110
+ "type": "integer",
111
+ "minimum": 0
112
+ }
113
+ }
114
+ },
115
+ "description": "Files given with `--attach`, in order; empty without any."
116
+ },
117
+ "_notice": {
118
+ "type": "object",
119
+ "properties": {
120
+ "update": {
121
+ "type": "object",
122
+ "required": [
123
+ "current",
124
+ "latest",
125
+ "command",
126
+ "message"
127
+ ],
128
+ "properties": {
129
+ "current": {
130
+ "type": "string"
131
+ },
132
+ "latest": {
133
+ "type": "string"
134
+ },
135
+ "command": {
136
+ "type": "string",
137
+ "description": "Run it after the user agrees: it shows the plan and exits 10; then --yes."
138
+ },
139
+ "message": {
140
+ "type": "string"
141
+ }
142
+ }
143
+ },
144
+ "skill": {
145
+ "type": "object",
146
+ "required": [
147
+ "installed",
148
+ "current",
149
+ "command",
150
+ "message"
151
+ ],
152
+ "properties": {
153
+ "installed": {
154
+ "anyOf": [
155
+ {
156
+ "type": "string"
157
+ },
158
+ {
159
+ "type": "null"
160
+ }
161
+ ],
162
+ "description": "The skill's version; null when it has none."
163
+ },
164
+ "current": {
165
+ "type": "string"
166
+ },
167
+ "command": {
168
+ "type": "string",
169
+ "description": "`sideby update`, which updates the skill with sideby: run it after the user agrees; it shows the plan and exits 10, then --yes."
170
+ },
171
+ "message": {
172
+ "type": "string"
173
+ }
174
+ }
175
+ }
176
+ },
177
+ "description": "Not the answer to the task: mention it briefly afterwards and offer to update."
178
+ }
179
+ }
180
+ }
@@ -0,0 +1,165 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "sideby/autostart.json",
4
+ "type": "object",
5
+ "required": [
6
+ "schemaVersion",
7
+ "supported",
8
+ "state",
9
+ "path",
10
+ "current"
11
+ ],
12
+ "properties": {
13
+ "schemaVersion": {
14
+ "type": "number",
15
+ "const": 1
16
+ },
17
+ "supported": {
18
+ "type": "boolean",
19
+ "description": "False on a system sideby cannot start at login yet; `reason` says so."
20
+ },
21
+ "reason": {
22
+ "type": "string"
23
+ },
24
+ "state": {
25
+ "anyOf": [
26
+ {
27
+ "type": "string",
28
+ "const": "off"
29
+ },
30
+ {
31
+ "type": "string",
32
+ "const": "on"
33
+ },
34
+ {
35
+ "type": "string",
36
+ "const": "stale"
37
+ },
38
+ {
39
+ "type": "string",
40
+ "const": "foreign"
41
+ }
42
+ ],
43
+ "description": "`stale`: the Node or sideby it starts no longer exists; `foreign`: a file at that path that sideby did not write."
44
+ },
45
+ "path": {
46
+ "type": "string"
47
+ },
48
+ "programArguments": {
49
+ "type": "array",
50
+ "items": {
51
+ "type": "string"
52
+ }
53
+ },
54
+ "current": {
55
+ "type": "boolean",
56
+ "description": "The login item starts this sideby with this Node."
57
+ },
58
+ "missing": {
59
+ "type": "array",
60
+ "items": {
61
+ "type": "string"
62
+ }
63
+ },
64
+ "action": {
65
+ "anyOf": [
66
+ {
67
+ "type": "string",
68
+ "const": "on"
69
+ },
70
+ {
71
+ "type": "string",
72
+ "const": "off"
73
+ }
74
+ ]
75
+ },
76
+ "changed": {
77
+ "type": "boolean"
78
+ },
79
+ "applied": {
80
+ "type": "boolean"
81
+ },
82
+ "content": {
83
+ "type": "string",
84
+ "description": "The file `on` writes."
85
+ },
86
+ "commands": {
87
+ "type": "array",
88
+ "items": {
89
+ "type": "array",
90
+ "items": {
91
+ "type": "string"
92
+ }
93
+ }
94
+ },
95
+ "loaded": {
96
+ "type": "boolean",
97
+ "description": "launchd took the change now."
98
+ },
99
+ "note": {
100
+ "type": "string"
101
+ },
102
+ "_notice": {
103
+ "type": "object",
104
+ "properties": {
105
+ "update": {
106
+ "type": "object",
107
+ "required": [
108
+ "current",
109
+ "latest",
110
+ "command",
111
+ "message"
112
+ ],
113
+ "properties": {
114
+ "current": {
115
+ "type": "string"
116
+ },
117
+ "latest": {
118
+ "type": "string"
119
+ },
120
+ "command": {
121
+ "type": "string",
122
+ "description": "Run it after the user agrees: it shows the plan and exits 10; then --yes."
123
+ },
124
+ "message": {
125
+ "type": "string"
126
+ }
127
+ }
128
+ },
129
+ "skill": {
130
+ "type": "object",
131
+ "required": [
132
+ "installed",
133
+ "current",
134
+ "command",
135
+ "message"
136
+ ],
137
+ "properties": {
138
+ "installed": {
139
+ "anyOf": [
140
+ {
141
+ "type": "string"
142
+ },
143
+ {
144
+ "type": "null"
145
+ }
146
+ ],
147
+ "description": "The skill's version; null when it has none."
148
+ },
149
+ "current": {
150
+ "type": "string"
151
+ },
152
+ "command": {
153
+ "type": "string",
154
+ "description": "`sideby update`, which updates the skill with sideby: run it after the user agrees; it shows the plan and exits 10, then --yes."
155
+ },
156
+ "message": {
157
+ "type": "string"
158
+ }
159
+ }
160
+ }
161
+ },
162
+ "description": "Not the answer to the task: mention it briefly afterwards and offer to update."
163
+ }
164
+ }
165
+ }
@@ -0,0 +1,132 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "sideby/config-get.json",
4
+ "type": "object",
5
+ "required": [
6
+ "schemaVersion"
7
+ ],
8
+ "properties": {
9
+ "schemaVersion": {
10
+ "type": "number",
11
+ "const": 1
12
+ },
13
+ "file": {
14
+ "type": "string"
15
+ },
16
+ "keys": {
17
+ "type": "array",
18
+ "items": {
19
+ "type": "object",
20
+ "required": [
21
+ "key",
22
+ "meaning",
23
+ "takes"
24
+ ],
25
+ "properties": {
26
+ "key": {
27
+ "type": "string",
28
+ "description": "Dot path; `<…>` marks a part you fill in."
29
+ },
30
+ "meaning": {
31
+ "type": "string"
32
+ },
33
+ "takes": {
34
+ "type": "string"
35
+ },
36
+ "value": {},
37
+ "entries": {
38
+ "type": "array",
39
+ "items": {
40
+ "type": "object",
41
+ "required": [
42
+ "key",
43
+ "value"
44
+ ],
45
+ "properties": {
46
+ "key": {
47
+ "type": "string"
48
+ },
49
+ "value": {}
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ },
56
+ "key": {
57
+ "type": "string"
58
+ },
59
+ "set": {
60
+ "type": "boolean"
61
+ },
62
+ "value": {},
63
+ "meaning": {
64
+ "type": "string"
65
+ },
66
+ "takes": {
67
+ "type": "string"
68
+ },
69
+ "_notice": {
70
+ "type": "object",
71
+ "properties": {
72
+ "update": {
73
+ "type": "object",
74
+ "required": [
75
+ "current",
76
+ "latest",
77
+ "command",
78
+ "message"
79
+ ],
80
+ "properties": {
81
+ "current": {
82
+ "type": "string"
83
+ },
84
+ "latest": {
85
+ "type": "string"
86
+ },
87
+ "command": {
88
+ "type": "string",
89
+ "description": "Run it after the user agrees: it shows the plan and exits 10; then --yes."
90
+ },
91
+ "message": {
92
+ "type": "string"
93
+ }
94
+ }
95
+ },
96
+ "skill": {
97
+ "type": "object",
98
+ "required": [
99
+ "installed",
100
+ "current",
101
+ "command",
102
+ "message"
103
+ ],
104
+ "properties": {
105
+ "installed": {
106
+ "anyOf": [
107
+ {
108
+ "type": "string"
109
+ },
110
+ {
111
+ "type": "null"
112
+ }
113
+ ],
114
+ "description": "The skill's version; null when it has none."
115
+ },
116
+ "current": {
117
+ "type": "string"
118
+ },
119
+ "command": {
120
+ "type": "string",
121
+ "description": "`sideby update`, which updates the skill with sideby: run it after the user agrees; it shows the plan and exits 10, then --yes."
122
+ },
123
+ "message": {
124
+ "type": "string"
125
+ }
126
+ }
127
+ }
128
+ },
129
+ "description": "Not the answer to the task: mention it briefly afterwards and offer to update."
130
+ }
131
+ }
132
+ }
@@ -0,0 +1,107 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "sideby/config-set.json",
4
+ "type": "object",
5
+ "required": [
6
+ "schemaVersion",
7
+ "action",
8
+ "key",
9
+ "file",
10
+ "changed",
11
+ "applied"
12
+ ],
13
+ "properties": {
14
+ "schemaVersion": {
15
+ "type": "number",
16
+ "const": 1
17
+ },
18
+ "action": {
19
+ "anyOf": [
20
+ {
21
+ "type": "string",
22
+ "const": "set"
23
+ },
24
+ {
25
+ "type": "string",
26
+ "const": "unset"
27
+ }
28
+ ]
29
+ },
30
+ "key": {
31
+ "type": "string"
32
+ },
33
+ "file": {
34
+ "type": "string"
35
+ },
36
+ "changed": {
37
+ "type": "boolean"
38
+ },
39
+ "applied": {
40
+ "type": "boolean"
41
+ },
42
+ "before": {},
43
+ "after": {},
44
+ "_notice": {
45
+ "type": "object",
46
+ "properties": {
47
+ "update": {
48
+ "type": "object",
49
+ "required": [
50
+ "current",
51
+ "latest",
52
+ "command",
53
+ "message"
54
+ ],
55
+ "properties": {
56
+ "current": {
57
+ "type": "string"
58
+ },
59
+ "latest": {
60
+ "type": "string"
61
+ },
62
+ "command": {
63
+ "type": "string",
64
+ "description": "Run it after the user agrees: it shows the plan and exits 10; then --yes."
65
+ },
66
+ "message": {
67
+ "type": "string"
68
+ }
69
+ }
70
+ },
71
+ "skill": {
72
+ "type": "object",
73
+ "required": [
74
+ "installed",
75
+ "current",
76
+ "command",
77
+ "message"
78
+ ],
79
+ "properties": {
80
+ "installed": {
81
+ "anyOf": [
82
+ {
83
+ "type": "string"
84
+ },
85
+ {
86
+ "type": "null"
87
+ }
88
+ ],
89
+ "description": "The skill's version; null when it has none."
90
+ },
91
+ "current": {
92
+ "type": "string"
93
+ },
94
+ "command": {
95
+ "type": "string",
96
+ "description": "`sideby update`, which updates the skill with sideby: run it after the user agrees; it shows the plan and exits 10, then --yes."
97
+ },
98
+ "message": {
99
+ "type": "string"
100
+ }
101
+ }
102
+ }
103
+ },
104
+ "description": "Not the answer to the task: mention it briefly afterwards and offer to update."
105
+ }
106
+ }
107
+ }