sideby 0.17.0 → 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 (95) hide show
  1. package/README.md +3 -1
  2. package/ai-tasks.json +90 -0
  3. package/dist/build.json +1 -1
  4. package/dist/src/cli/commands.d.ts +9 -1
  5. package/dist/src/cli/commands.js +349 -14
  6. package/dist/src/cli/json-schemas.js +157 -18
  7. package/dist/src/cli/main.js +56 -7
  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 +73 -1
  11. package/dist/src/core/ask.js +106 -6
  12. package/dist/src/core/autostart.d.ts +38 -8
  13. package/dist/src/core/autostart.js +85 -39
  14. package/dist/src/core/brand-mark.d.ts +49 -11
  15. package/dist/src/core/brand-mark.js +116 -38
  16. package/dist/src/core/config.d.ts +5 -0
  17. package/dist/src/core/config.js +11 -1
  18. package/dist/src/core/desktop-app.d.ts +1 -1
  19. package/dist/src/core/desktop-app.js +2 -2
  20. package/dist/src/core/edit-settings.d.ts +24 -0
  21. package/dist/src/core/edit-settings.js +97 -0
  22. package/dist/src/core/handoff-brief.d.ts +4 -2
  23. package/dist/src/core/handoff-brief.js +6 -1
  24. package/dist/src/core/handoff-chain.d.ts +24 -0
  25. package/dist/src/core/handoff-chain.js +2 -0
  26. package/dist/src/core/handoff-run.d.ts +4 -3
  27. package/dist/src/core/handoff-run.js +14 -9
  28. package/dist/src/core/launch.d.ts +2 -0
  29. package/dist/src/core/launch.js +14 -10
  30. package/dist/src/core/local-build.d.ts +12 -5
  31. package/dist/src/core/local-build.js +49 -31
  32. package/dist/src/core/lock.d.ts +30 -0
  33. package/dist/src/core/lock.js +143 -0
  34. package/dist/src/core/quota-levels.d.ts +6 -1
  35. package/dist/src/core/quota-levels.js +16 -5
  36. package/dist/src/core/task-spec.d.ts +95 -0
  37. package/dist/src/core/task-spec.js +209 -0
  38. package/dist/src/core/terminal.js +6 -1
  39. package/dist/src/core/update.d.ts +27 -16
  40. package/dist/src/core/update.js +67 -93
  41. package/dist/src/desktop/icon.js +12 -15
  42. package/dist/src/families/claude/ai-task.d.ts +8 -0
  43. package/dist/src/families/claude/ai-task.js +38 -0
  44. package/dist/src/families/claude/handoff-hook.js +4 -4
  45. package/dist/src/families/claude/index.js +3 -0
  46. package/dist/src/families/codex/handoff-hook.js +4 -4
  47. package/dist/src/families/codex/index.js +9 -0
  48. package/dist/src/families/grok/handoff-hook.js +4 -4
  49. package/dist/src/families/grok/index.js +1 -0
  50. package/dist/src/families/pi/index.js +1 -0
  51. package/dist/src/handoff/hook.js +51 -30
  52. package/dist/src/handoff/levels.d.ts +24 -0
  53. package/dist/src/handoff/levels.js +70 -0
  54. package/dist/src/handoff/messages.d.ts +6 -3
  55. package/dist/src/handoff/messages.js +20 -7
  56. package/dist/src/handoff/reader.d.ts +6 -3
  57. package/dist/src/menubar/agent.d.ts +3 -0
  58. package/dist/src/menubar/agent.js +21 -0
  59. package/dist/src/menubar/script.d.ts +8 -0
  60. package/dist/src/menubar/script.js +457 -0
  61. package/dist/src/menubar/snapshot.d.ts +115 -0
  62. package/dist/src/menubar/snapshot.js +255 -0
  63. package/dist/src/menubar/strings.d.ts +87 -0
  64. package/dist/src/menubar/strings.js +88 -0
  65. package/dist/src/panel/background.js +12 -19
  66. package/dist/src/panel/handler.d.ts +12 -0
  67. package/dist/src/panel/handler.js +80 -80
  68. package/dist/src/panel/i18n.d.ts +33 -0
  69. package/dist/src/panel/i18n.js +66 -0
  70. package/dist/src/panel/page-logic.d.ts +105 -0
  71. package/dist/src/panel/page-logic.js +170 -15
  72. package/dist/src/panel/page-script.js +238 -109
  73. package/dist/src/panel/page-styles.js +42 -13
  74. package/dist/src/panel/page.d.ts +7 -0
  75. package/dist/src/panel/page.js +5 -0
  76. package/dist/src/runtime.d.ts +9 -1
  77. package/dist/src/runtime.js +11 -3
  78. package/dist/src/types.d.ts +14 -0
  79. package/package.json +4 -3
  80. package/schemas/ask-choices.json +168 -0
  81. package/schemas/ask-print.json +87 -0
  82. package/schemas/config.json +17 -1
  83. package/schemas/edit.json +119 -0
  84. package/schemas/error.json +4 -0
  85. package/schemas/families.json +4 -0
  86. package/schemas/list.json +4 -0
  87. package/schemas/local.json +1 -1
  88. package/schemas/menubar-snapshot.json +646 -0
  89. package/schemas/menubar-start.json +112 -0
  90. package/schemas/menubar.json +165 -0
  91. package/skills/sideby/SKILL.md +6 -2
  92. package/skills/sideby/references/ai-tasks.md +10 -0
  93. package/skills/sideby/references/handoff.md +3 -1
  94. package/skills/sideby/references/panel.md +6 -0
  95. package/skills/sideby/references/update.md +1 -1
@@ -0,0 +1,119 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "sideby/edit.json",
4
+ "type": "object",
5
+ "required": [
6
+ "schemaVersion",
7
+ "ref",
8
+ "family",
9
+ "file",
10
+ "path",
11
+ "sharedWith",
12
+ "opened"
13
+ ],
14
+ "properties": {
15
+ "schemaVersion": {
16
+ "type": "number",
17
+ "const": 1
18
+ },
19
+ "ref": {
20
+ "type": "string"
21
+ },
22
+ "family": {
23
+ "type": "string"
24
+ },
25
+ "file": {
26
+ "type": "string",
27
+ "description": "The settings file as the family names it, such as `settings.json`."
28
+ },
29
+ "path": {
30
+ "type": "string",
31
+ "description": "The file inside the account directory."
32
+ },
33
+ "target": {
34
+ "type": "string",
35
+ "description": "Where the file really is; only when `path` is a link."
36
+ },
37
+ "sharedWith": {
38
+ "type": "array",
39
+ "items": {
40
+ "type": "string"
41
+ },
42
+ "description": "Other accounts of the family whose settings file is this same file, so a change applies to them too."
43
+ },
44
+ "opened": {
45
+ "type": "boolean",
46
+ "description": "False with --path, which only says where the file is."
47
+ },
48
+ "command": {
49
+ "type": "array",
50
+ "items": {
51
+ "type": "string"
52
+ },
53
+ "description": "The program and arguments that opened the file."
54
+ },
55
+ "_notice": {
56
+ "type": "object",
57
+ "properties": {
58
+ "update": {
59
+ "type": "object",
60
+ "required": [
61
+ "current",
62
+ "latest",
63
+ "command",
64
+ "message"
65
+ ],
66
+ "properties": {
67
+ "current": {
68
+ "type": "string"
69
+ },
70
+ "latest": {
71
+ "type": "string"
72
+ },
73
+ "command": {
74
+ "type": "string",
75
+ "description": "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
+ "skill": {
83
+ "type": "object",
84
+ "required": [
85
+ "installed",
86
+ "current",
87
+ "command",
88
+ "message"
89
+ ],
90
+ "properties": {
91
+ "installed": {
92
+ "anyOf": [
93
+ {
94
+ "type": "string"
95
+ },
96
+ {
97
+ "type": "null"
98
+ }
99
+ ],
100
+ "description": "The skill's version; null when it has none."
101
+ },
102
+ "current": {
103
+ "type": "string"
104
+ },
105
+ "command": {
106
+ "type": "string",
107
+ "description": "`sideby update`, which updates the skill with sideby: run it after the user agrees; it shows the plan and exits 10, then --yes."
108
+ },
109
+ "message": {
110
+ "type": "string"
111
+ }
112
+ }
113
+ }
114
+ },
115
+ "description": "Not the answer to the task: mention it briefly afterwards and offer to update."
116
+ }
117
+ },
118
+ "title": "sideby edit --json"
119
+ }
@@ -20,6 +20,10 @@
20
20
  "type": "string",
21
21
  "description": "`usage` for a malformed command line (exit 2), a reason such as `no-quota-source` or `alias-invalid`, or `error`."
22
22
  },
23
+ "reason": {
24
+ "type": "string",
25
+ "description": "Same as `code`, for a refused Task Spec (`sideby ask --spec -`): `spec-invalid`, `spec-too-large`, `bad-cwd`, or `spec-version` (exit 2: update sideby)."
26
+ },
23
27
  "_notice": {
24
28
  "type": "object",
25
29
  "properties": {
@@ -53,6 +53,10 @@
53
53
  },
54
54
  "tuning": {
55
55
  "type": "boolean"
56
+ },
57
+ "settingsFile": {
58
+ "type": "string",
59
+ "description": "The Host's settings file `sideby edit` opens, relative to the account directory."
56
60
  }
57
61
  }
58
62
  },
package/schemas/list.json CHANGED
@@ -53,6 +53,10 @@
53
53
  },
54
54
  "tuning": {
55
55
  "type": "boolean"
56
+ },
57
+ "settingsFile": {
58
+ "type": "string",
59
+ "description": "The Host's settings file `sideby edit` opens, relative to the account directory."
56
60
  }
57
61
  }
58
62
  }
@@ -100,7 +100,7 @@
100
100
  },
101
101
  "skillSynced": {
102
102
  "type": "boolean",
103
- "description": "Back on npm, `sideby update --yes` brought the sideby skill to that version (true) or failed (false)."
103
+ "description": "Back on npm, `sideby update --skill --yes` brought the sideby skill to that version (true) or failed (false)."
104
104
  },
105
105
  "_notice": {
106
106
  "type": "object",