| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
| |
-s is used as save on sib-ask
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
| |
sudo make PREFIX= SUFFIX= uninstall was pure nightmare...
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
In any case, the intention was to change the HEAD when running
sib-edit. The user's choice is whether to use the edited chain, the
HEAD, or the one in between. The option to select the one in between
does not need to be provided here, and it is more natural to have the
HEAD updated to a new HEAD and the modified chain output rather than
the chain being shortened.
With this change `sib ask -p $(sib edit abcdefu) -r' could be used.
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently, the default state inferred by save/switch is detached HEAD,
and attach is a special state. However, if there is nothing in HEAD,
Git throws a "fatal: not a git dir" error. This resulted in setting
HEAD as refs/conv/scratch when init. Consequently, running `sib ask
-n' attaches to refs/conv/scratch, while running `sib switch` detaches
it, causing a problem of inconsistency.
This commit resolved this by introducing a special ref called
refs/sib/unborn to represent the ---new and init states, and by
checking this in ask to ensure it becomes detached.
The reason for changing the name of unborned state, aside from the
processing in ask, is that conv/ has become the place where all saves
go, so there should be no special indicator there.
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
| |
This seems more natural and straightforward.
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
|
|
| |
The default state is detached, and sib-switch -s makes HEAD
'attached'. It is recommended to explicitly save the conversation with
sib-save while in the detached state.
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
| |
Parse -k and -k KEY and -k HEAD is basically bad definition.
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
The mere existence of the heads/ and tags/ directories didn't seem to
be a significant issue (they are empty directories anyway and can be
created if the user wants them), so remaining that.
If they are deleted during reinit, user data could be erased. While it
is possible to check for the existence of files within the directories
and delete them, I don't think it is necessary to go to such lengths.
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
|
|
|
|
| |
Similar to Git, scripts including the dispatcher sib are grouped into
libexec/sib-core, and symlinks are created in bin/sib. Additionally,
libexec/sib-core is added to the PATH when executing any script inside
sib. I don't really see any downside to adding to the PATH and loading
the script. It's clear.
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
|
| |
Early return when -k given doesn't look ideal, but making it would
more expensive. Think about it later maybe?
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
|
|
|
| |
core.logAllRefUpdates creates new log files only for refs in
refs/heads or refs/remotes. It is meaningless so exclude
it during init and use the --create-reflog to make all
update-refs generate reflogs.
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
|
|
| |
Opt to return immediately in the editor when the file has not
changed. I didn't want to change the existing code, so just use tee to
load oldblob in the middle and compared it with cat.
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
|
| |
This prevents `--new' from overwriting a dialog ref when HEAD points
to another dialog ref as a symref.
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Replace git's default refs/heads/master HEAD with refs/conv/scratch,
matching sib's namespace convention. Remove refs/heads and refs/tags
directories since sib doesn't use them — keeps the repo layout minimal
and signals intent that branches/tags aren't part of the model.
Use `echo' instead of the `symbolic-ref' command because using it
pollutes the reflog, and I separated them because using the `--branch'
command during init forces the refs/heads prefix.
Need to use it more to know for sure, but it seems like strict
Git-style branch/tag separation isn't really necessary.
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
|
|
| |
The reason there is no distinction like heads or tags is that, unlike
Git, there is no need to differentiate between the two. When user set
a checkpoint, it can be promoted to a conversation session.
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
|
| |
The feature to set a ref on the current chain when starting a new turn
is always useful.
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
|
|
|
| |
Basically, it is good to have the timestamp recorded somewhere. If you
record it in the trace, the reproducibility—which was the purpose of
fixing it—is lost anyway, also setting it with 0000 makes reflog
invisable with ./sib git reflog.
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
|
| |
A helper script that makes it easy to input JSON from the sillytavern
prompt into the sib chain-jsonl command.
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
|
| |
This generates a chain from jsonl. Likely to be used to import prompts
or other conversations into the sib repository mainly.
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
|
| |
Again, let's think about complex things like rendering later. It is
actually uncomfortable to read when Markdown is incomplete.
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
| |
This is the quirk from when I made the plm previously.
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
|
| |
The existing implementation also filters out content in the middle of
the key.
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
|
| |
Since sib json series internally call sib ls-trace and such anyway,
doing it this way is much faster.
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
| |
It'll be best to think things like nice printing later.
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
| |
An error output stream is necessary anyway.
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
|
| |
The problem was that the HEAD update by -p depended on user input, so
I just branched at that point.
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
|
| |
If it is bare, this is probably false, in which case new reflogs are
not created for items that are not in logs/.
Signed-off-by: Hee-Suk Kim <[email protected]>
|