t3code-session-manager 0.0.0-stage → 0.4.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/.claude-plugin/marketplace.json +21 -0
- package/.claude-plugin/plugin.json +19 -0
- package/CHANGELOG.md +138 -0
- package/LICENSE +21 -0
- package/README.md +660 -2
- package/README.pt.md +616 -0
- package/bin/entry.d.mts +2 -0
- package/bin/entry.mjs +19 -0
- package/bin/t3sm.mjs +44 -0
- package/commands/import.md +30 -0
- package/commands/organize.md +36 -0
- package/commands/status.md +24 -0
- package/commands/sync.md +26 -0
- package/dist/apply/apply.js +993 -0
- package/dist/apply/claudeWriter.js +168 -0
- package/dist/apply/copyTranscript.js +116 -0
- package/dist/apply/importer.js +697 -0
- package/dist/apply/materialize.js +335 -0
- package/dist/apply/waves.js +108 -0
- package/dist/assistant/core.js +295 -0
- package/dist/assistant/deps.js +256 -0
- package/dist/assistant/i18n.js +38 -0
- package/dist/assistant/messages.en.js +494 -0
- package/dist/assistant/messages.pt.js +495 -0
- package/dist/assistant/runner.js +64 -0
- package/dist/assistant/steps.js +1362 -0
- package/dist/build.json +1 -0
- package/dist/cli/applyScreen.js +158 -0
- package/dist/cli/commands/accounts.js +254 -0
- package/dist/cli/commands/apply.js +199 -0
- package/dist/cli/commands/changelog.js +61 -0
- package/dist/cli/commands/doctor.js +105 -0
- package/dist/cli/commands/help.js +158 -0
- package/dist/cli/commands/merge.js +224 -0
- package/dist/cli/commands/organize.js +872 -0
- package/dist/cli/commands/plan.js +161 -0
- package/dist/cli/commands/projects.js +430 -0
- package/dist/cli/commands/quarantine.js +203 -0
- package/dist/cli/commands/recover.js +230 -0
- package/dist/cli/commands/rollback.js +281 -0
- package/dist/cli/commands/scan.js +117 -0
- package/dist/cli/commands/schedule.js +288 -0
- package/dist/cli/commands/start.js +45 -0
- package/dist/cli/commands/status.js +615 -0
- package/dist/cli/commands/sync.js +336 -0
- package/dist/cli/commands/update.js +398 -0
- package/dist/cli/errors.js +53 -0
- package/dist/cli/failures.js +91 -0
- package/dist/cli/flags.js +53 -0
- package/dist/cli/help.en.js +549 -0
- package/dist/cli/help.pt.js +566 -0
- package/dist/cli/helpText.js +211 -0
- package/dist/cli/helpTopics.js +58 -0
- package/dist/cli/locked.js +12 -0
- package/dist/cli/main.js +155 -0
- package/dist/cli/screen.js +3 -0
- package/dist/cli/ui.js +111 -0
- package/dist/cli/words.js +2 -0
- package/dist/core/activity.js +16 -0
- package/dist/core/changelog.js +47 -0
- package/dist/core/config.js +530 -0
- package/dist/core/fsutil.js +171 -0
- package/dist/core/glob.js +34 -0
- package/dist/core/history.js +32 -0
- package/dist/core/journal.js +274 -0
- package/dist/core/lock.js +337 -0
- package/dist/core/mask.js +31 -0
- package/dist/core/paths.js +68 -0
- package/dist/core/pid.js +101 -0
- package/dist/core/run.js +4 -0
- package/dist/core/semver.js +18 -0
- package/dist/core/sysroot.js +29 -0
- package/dist/core/types.js +229 -0
- package/dist/core/uuid.js +29 -0
- package/dist/core/version.js +72 -0
- package/dist/help/convert.md +20 -0
- package/dist/help/convert.pt.md +21 -0
- package/dist/help/cwd-unreadable.md +22 -0
- package/dist/help/cwd-unreadable.pt.md +22 -0
- package/dist/help/decisions.md +20 -0
- package/dist/help/decisions.pt.md +20 -0
- package/dist/help/errors.md +20 -0
- package/dist/help/errors.pt.md +22 -0
- package/dist/help/held.md +20 -0
- package/dist/help/held.pt.md +20 -0
- package/dist/help/history.md +27 -0
- package/dist/help/history.pt.md +29 -0
- package/dist/help/instance-unavailable.md +18 -0
- package/dist/help/instance-unavailable.pt.md +19 -0
- package/dist/help/not-imported.md +19 -0
- package/dist/help/not-imported.pt.md +19 -0
- package/dist/help/orphaned.md +19 -0
- package/dist/help/orphaned.pt.md +19 -0
- package/dist/help/project-mismatch.md +15 -0
- package/dist/help/project-mismatch.pt.md +15 -0
- package/dist/help/t3-native.md +22 -0
- package/dist/help/t3-native.pt.md +22 -0
- package/dist/help/updates.md +26 -0
- package/dist/help/updates.pt.md +28 -0
- package/dist/help/watcher.md +24 -0
- package/dist/help/watcher.pt.md +25 -0
- package/dist/i18n/cli.js +41 -0
- package/dist/i18n/lang.js +55 -0
- package/dist/i18n/messages.en.js +1140 -0
- package/dist/i18n/messages.pt.js +1149 -0
- package/dist/i18n/words.js +12 -0
- package/dist/ops/accounts.js +170 -0
- package/dist/ops/autoUpdate.js +223 -0
- package/dist/ops/discoverAccounts.js +343 -0
- package/dist/ops/doctor.js +811 -0
- package/dist/ops/elevated.js +47 -0
- package/dist/ops/errorCodes.js +39 -0
- package/dist/ops/follow.js +558 -0
- package/dist/ops/merge.js +830 -0
- package/dist/ops/notify.js +249 -0
- package/dist/ops/plugin.js +92 -0
- package/dist/ops/projects.js +113 -0
- package/dist/ops/quarantine.js +415 -0
- package/dist/ops/rollback.js +868 -0
- package/dist/ops/schedule.js +464 -0
- package/dist/ops/successor.js +51 -0
- package/dist/ops/sync.js +859 -0
- package/dist/ops/syncStatus.js +290 -0
- package/dist/ops/update.js +273 -0
- package/dist/ops/updater.js +641 -0
- package/dist/ops/watch.js +676 -0
- package/dist/ops/watcherControl.js +212 -0
- package/dist/ops/watcherHealth.js +75 -0
- package/dist/organize/apply.js +495 -0
- package/dist/organize/history.js +192 -0
- package/dist/organize/plan.js +283 -0
- package/dist/organize/rename.js +58 -0
- package/dist/organize/sessions.js +100 -0
- package/dist/organize/titles.js +70 -0
- package/dist/organize/types.js +73 -0
- package/dist/plan/categories.js +104 -0
- package/dist/plan/dedupe.js +137 -0
- package/dist/plan/folders.js +82 -0
- package/dist/plan/names.js +93 -0
- package/dist/plan/ownership.js +316 -0
- package/dist/plan/planner.js +669 -0
- package/dist/plan/rehome.js +101 -0
- package/dist/plan/report.js +407 -0
- package/dist/sources/cache.js +89 -0
- package/dist/sources/claude.js +297 -0
- package/dist/sources/codex.js +496 -0
- package/dist/sources/flatten.js +23 -0
- package/dist/sources/jsonl.js +169 -0
- package/dist/sources/native.js +233 -0
- package/dist/sources/opencode.js +483 -0
- package/dist/sources/pi.js +133 -0
- package/dist/sources/registry.js +67 -0
- package/dist/sources/types.js +80 -0
- package/dist/t3/api.js +492 -0
- package/dist/t3/auth.js +248 -0
- package/dist/t3/compat.js +62 -0
- package/dist/t3/decode.js +408 -0
- package/dist/t3/errors.js +185 -0
- package/dist/t3/rpc.js +185 -0
- package/dist/t3/runtime.js +80 -0
- package/dist/ui/caps.js +56 -0
- package/dist/ui/components.js +202 -0
- package/dist/ui/layout.js +205 -0
- package/dist/ui/list.js +423 -0
- package/dist/ui/locale.js +73 -0
- package/dist/ui/organizePreview.js +72 -0
- package/dist/ui/progress.js +237 -0
- package/dist/ui/style.js +32 -0
- package/dist/ui/terminal.js +126 -0
- package/dist/ui/text.js +186 -0
- package/package.json +58 -4
- package/skills/t3code-sessions/SKILL.md +183 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "t3code-session-manager",
|
|
3
|
+
"owner": {
|
|
4
|
+
"name": "BolaLabs",
|
|
5
|
+
"url": "https://github.com/brunobola-portfolio"
|
|
6
|
+
},
|
|
7
|
+
"metadata": {
|
|
8
|
+
"description": "Marketplace for the t3sm plugin: import, sync, organize and merge agent sessions into T3 Code under the right Claude account.",
|
|
9
|
+
"version": "0.4.0"
|
|
10
|
+
},
|
|
11
|
+
"plugins": [
|
|
12
|
+
{
|
|
13
|
+
"name": "t3sm",
|
|
14
|
+
"source": "./",
|
|
15
|
+
"description": "Skill and /t3sm:status, /t3sm:sync, /t3sm:organize, /t3sm:import commands that run t3sm to bring agent sessions into T3 Code, asking before every write.",
|
|
16
|
+
"version": "0.4.0",
|
|
17
|
+
"category": "productivity",
|
|
18
|
+
"keywords": ["t3code", "sessions", "import", "accounts"]
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "t3sm",
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"description": "A skill and four /t3sm commands that bring Claude Code, Codex, Pi and OpenCode sessions into T3 Code with t3sm: status, doctor, plan, review, then import, sync, organize or merge, each write only after you say yes.",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "BolaLabs",
|
|
7
|
+
"url": "https://github.com/brunobola-portfolio"
|
|
8
|
+
},
|
|
9
|
+
"homepage": "https://github.com/brunobola-portfolio/t3code-session-manager",
|
|
10
|
+
"repository": "https://github.com/brunobola-portfolio/t3code-session-manager",
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"keywords": [
|
|
13
|
+
"t3code",
|
|
14
|
+
"sessions",
|
|
15
|
+
"import",
|
|
16
|
+
"accounts",
|
|
17
|
+
"history"
|
|
18
|
+
]
|
|
19
|
+
}
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project are documented here. The format follows
|
|
4
|
+
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project uses
|
|
5
|
+
[Semantic Versioning](https://semver.org/). Each entry follows [docs/changelog-style.md](docs/changelog-style.md).
|
|
6
|
+
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
## [0.4.0] - 2026-11-16
|
|
10
|
+
|
|
11
|
+
t3sm is on npm: `npm install -g t3code-session-manager` installs it without git, and it keeps itself up to date from
|
|
12
|
+
there. Installs from GitHub keep working and can move over with `t3sm update --source npm`.
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- **t3sm is published on npm, with provenance.** Each release is built by GitHub Actions from its tag and signed, so
|
|
17
|
+
`npm audit signatures` and the package page show which commit made it.
|
|
18
|
+
- **Updates come from where t3sm was installed.** An install from npm updates from the registry, the daily check
|
|
19
|
+
included; `t3sm update --source npm` or `--source github` chooses, and `t3sm update --check` names the source.
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- **The README and the guides install from npm.** Installing from GitHub or from a checkout stays documented as an
|
|
24
|
+
alternative.
|
|
25
|
+
|
|
26
|
+
## [0.3.1] - 2026-11-16
|
|
27
|
+
|
|
28
|
+
Fixes from the first real run of 0.3.0, and a way to bring back a conversation whose T3 Code thread you deleted. If you
|
|
29
|
+
ran `t3sm start` with 0.3.0, run it again: the questions come back.
|
|
30
|
+
|
|
31
|
+
### Added
|
|
32
|
+
|
|
33
|
+
- **`t3sm recover <id>` brings back a deleted conversation.** For one started in T3 Code whose thread is gone when t3sm
|
|
34
|
+
cannot tell by itself. It asks first, imports a faithful copy, and `t3sm rollback --run <id> --archive-threads`
|
|
35
|
+
undoes it.
|
|
36
|
+
|
|
37
|
+
### Fixed
|
|
38
|
+
|
|
39
|
+
- **Your answers in `t3sm start` are saved as you give them.** Before, Enter at the final "Save?" question saved
|
|
40
|
+
nothing, so the import left those conversations out.
|
|
41
|
+
- **An upgrade from 0.2 asks the history question again.** A 0.2 `config.json` kept every conversation visible and
|
|
42
|
+
never met the 0.3 rule (90 days, at least 10 per project); it is asked once more, starting from what you had.
|
|
43
|
+
- **Changing T3 Code's own auto-settle option works, and is asked in clearer words.** Before, it failed with
|
|
44
|
+
`missing required scope: settings:write`; only the runs that change a T3 Code setting ask for that permission.
|
|
45
|
+
- **The minimum per project holds against T3 Code's own auto-settle.** While that option is on, t3sm marks the
|
|
46
|
+
conversations it keeps for the minimum a week before the option could put them away. A mark cannot be undone; see
|
|
47
|
+
`t3sm help history`.
|
|
48
|
+
- **`t3sm status` says "keep failing to import" only when it is true.** Conversations the newest plan skips for
|
|
49
|
+
another reason (started in T3 Code, already there, in use) are no longer listed.
|
|
50
|
+
|
|
51
|
+
## [0.3.0] - 2026-11-15
|
|
52
|
+
|
|
53
|
+
t3sm 0.3 brings every conversation into T3 Code and keeps it there, each project showing its recent history. The
|
|
54
|
+
background sync now updates and restarts itself, and every screen is redesigned, in English or European Portuguese.
|
|
55
|
+
|
|
56
|
+
### Added
|
|
57
|
+
|
|
58
|
+
- **Conversations started in T3 Code are recognised.** They are never imported twice, and one whose thread you deleted
|
|
59
|
+
comes back as a faithful copy after your yes (`organize.sessions.orphaned`). See `t3sm help t3-native`.
|
|
60
|
+
- **Copies of home-folder conversations follow their original.** Keep working in VS Code or a terminal and
|
|
61
|
+
`t3sm sync` brings the new messages in as a new revision of the thread; `t3sm rollback` undoes it.
|
|
62
|
+
- **Each project shows its recent history.** The last 90 days, and at least 10 per project; older conversations move
|
|
63
|
+
to the Settled shelf, oldest first. Choose it in `t3sm start` or with `t3sm organize --history`; see
|
|
64
|
+
`t3sm help history`.
|
|
65
|
+
- **Automatic updates.** Once a day the background watcher installs a newer patch or minor release, checks that it
|
|
66
|
+
runs and rolls back if not. `t3sm update` does it by hand and `t3sm changelog` shows what is new; see
|
|
67
|
+
`t3sm help updates`.
|
|
68
|
+
- **`t3sm organize` tidies the history it imported.** It archives automated conversations, gives readable titles,
|
|
69
|
+
applies the history rule and pins recent projects, after a preview you can review item by item;
|
|
70
|
+
`t3sm organize --undo` reverts a run.
|
|
71
|
+
- **`t3sm status`, help topics and `/t3sm` commands inside T3 Code.** `status` says in one line whether t3sm needs you
|
|
72
|
+
and what to run, `t3sm help <topic>` explains every message, and the plugin adds `/t3sm:status`, `:sync`,
|
|
73
|
+
`:organize` and `:import`.
|
|
74
|
+
|
|
75
|
+
### Changed
|
|
76
|
+
|
|
77
|
+
- **Every screen is redesigned, in your language.** English or European Portuguese (`--lang`, or your system's
|
|
78
|
+
language), with tables, panels and progress bars that fit 40 to 200 columns and work without colour or Unicode.
|
|
79
|
+
- **The guided set-up (`t3sm start`) now has 11 steps.** It asks what to do with sessions from refused, temporary or
|
|
80
|
+
automated folders, then organizes after the import, each step shown with real numbers before your yes.
|
|
81
|
+
- **The background sync looks after itself.** It restarts into a new t3sm after an upgrade, is kept alive every 15
|
|
82
|
+
minutes, follows your decisions and can notify you when it needs you; `t3sm schedule restart` restarts it by hand.
|
|
83
|
+
- **Any T3 Code version works.** An untested version prints one warning instead of stopping; only an unknown response
|
|
84
|
+
shape still stops before the first write.
|
|
85
|
+
|
|
86
|
+
### Fixed
|
|
87
|
+
|
|
88
|
+
- **Copies from folders T3 Code refuses reach their project.** `t3sm apply` now creates the General folder they go to.
|
|
89
|
+
Also: `/t3sm:sync` no longer fails, Windows file locks are retried, and narrow windows wrap instead of cutting text.
|
|
90
|
+
|
|
91
|
+
### Security
|
|
92
|
+
|
|
93
|
+
- **The watcher is stopped through its own authenticated endpoint, never by process name.** t3sm talks only to T3 Code
|
|
94
|
+
on loopback and to its own release source, and strips control characters from any text it shows.
|
|
95
|
+
|
|
96
|
+
## [0.2.1] - 2026-11-12
|
|
97
|
+
|
|
98
|
+
Installing from GitHub works on npm 11.
|
|
99
|
+
|
|
100
|
+
### Fixed
|
|
101
|
+
|
|
102
|
+
- **`npm install -g` from GitHub works on npm 11.** The build now needs only Node, and the install line adds
|
|
103
|
+
`--install-links` so npm keeps a real copy; CI runs that line on Windows, macOS and Linux.
|
|
104
|
+
|
|
105
|
+
## [0.2.0] - 2026-11-12
|
|
106
|
+
|
|
107
|
+
One command to update t3sm, and a shorter help screen.
|
|
108
|
+
|
|
109
|
+
### Added
|
|
110
|
+
|
|
111
|
+
- **`t3sm update` updates t3sm in one command.** It asks first and runs npm for you. Coming from 0.1.0, run the README
|
|
112
|
+
install line once; from then on `t3sm update` is enough.
|
|
113
|
+
|
|
114
|
+
### Changed
|
|
115
|
+
|
|
116
|
+
- **`t3sm --help` groups the commands by what you want to do.** Each command's own `--help` keeps the full options.
|
|
117
|
+
- **The quick start is "install once, then run `t3sm`".** The same on Windows, macOS and Linux; `npx` stays as the
|
|
118
|
+
no-install way.
|
|
119
|
+
|
|
120
|
+
## [0.1.0] - 2026-11-12
|
|
121
|
+
|
|
122
|
+
First public release: Claude Code, Codex, Pi and OpenCode sessions in T3 Code as resumable threads, each under its own
|
|
123
|
+
Claude account.
|
|
124
|
+
|
|
125
|
+
### Added
|
|
126
|
+
|
|
127
|
+
- **`t3sm plan` and `t3sm apply` import your sessions.** The plan is a readable `plan.md`; the import uses T3 Code's own
|
|
128
|
+
importer in waves, beyond its 30-day and 100-session limits, with every file time journaled and restored.
|
|
129
|
+
- **Each conversation under the right Claude account.** Accounts are found in `~/.claude*` folders, shell aliases and
|
|
130
|
+
VS Code; `t3sm accounts` and `t3sm projects` show and change which account a project uses.
|
|
131
|
+
- **`t3sm start`, a guided assistant.** Short steps from the first check to the background sync, asking before every
|
|
132
|
+
write and saying how to undo it, in English or Portuguese; a Claude Code skill does the same from a chat.
|
|
133
|
+
- **`t3sm sync` and `t3sm schedule` keep T3 Code up to date.** Cautious unattended imports (at most 200 per cycle), and
|
|
134
|
+
`t3sm merge` brings work continued in a terminal into its thread.
|
|
135
|
+
- **Codex and OpenCode sessions are converted.** Compressed Codex rollouts and OpenCode conversations become Claude
|
|
136
|
+
threads; the agents' own files are never changed.
|
|
137
|
+
- **Every change can be undone.** `t3sm runs` and `t3sm rollback` undo a run, `t3sm doctor` checks the set-up and
|
|
138
|
+
repairs file times after a crash, and `dedupe` and `quarantine` move copies aside reversibly.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 BolaLabs
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|