yee88 0.6.1__py3-none-any.whl → 0.6.2__py3-none-any.whl
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.
- yee88/__init__.py +1 -1
- yee88/runners/claude.py +3 -0
- yee88/runners/codex.py +14 -0
- yee88/runners/opencode.py +3 -3
- yee88/runners/pi.py +3 -0
- {yee88-0.6.1.dist-info → yee88-0.6.2.dist-info}/METADATA +1 -1
- {yee88-0.6.1.dist-info → yee88-0.6.2.dist-info}/RECORD +10 -10
- {yee88-0.6.1.dist-info → yee88-0.6.2.dist-info}/WHEEL +0 -0
- {yee88-0.6.1.dist-info → yee88-0.6.2.dist-info}/entry_points.txt +0 -0
- {yee88-0.6.1.dist-info → yee88-0.6.2.dist-info}/licenses/LICENSE +0 -0
yee88/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.6.
|
|
1
|
+
__version__ = "0.6.2"
|
yee88/runners/claude.py
CHANGED
|
@@ -311,6 +311,9 @@ class ClaudeRunner(ResumeTokenMixin, JsonlSubprocessRunner):
|
|
|
311
311
|
args.extend(["--allowedTools", allowed_tools])
|
|
312
312
|
if self.dangerously_skip_permissions is True:
|
|
313
313
|
args.append("--dangerously-skip-permissions")
|
|
314
|
+
# Apply system prompt as prefix only on first run (when resume is None)
|
|
315
|
+
if resume is None and run_options is not None and run_options.system:
|
|
316
|
+
prompt = f"{run_options.system}\n\n---\n\n{prompt}"
|
|
314
317
|
args.append("--")
|
|
315
318
|
args.append(prompt)
|
|
316
319
|
return args
|
yee88/runners/codex.py
CHANGED
|
@@ -405,6 +405,7 @@ class CodexRunner(ResumeTokenMixin, JsonlSubprocessRunner):
|
|
|
405
405
|
engine: EngineId = ENGINE
|
|
406
406
|
resume_re = _RESUME_RE
|
|
407
407
|
logger = logger
|
|
408
|
+
model: str | None = None
|
|
408
409
|
|
|
409
410
|
def __init__(
|
|
410
411
|
self,
|
|
@@ -453,6 +454,19 @@ class CodexRunner(ResumeTokenMixin, JsonlSubprocessRunner):
|
|
|
453
454
|
args.append("-")
|
|
454
455
|
return args
|
|
455
456
|
|
|
457
|
+
def stdin_payload(
|
|
458
|
+
self,
|
|
459
|
+
prompt: str,
|
|
460
|
+
resume: ResumeToken | None,
|
|
461
|
+
*,
|
|
462
|
+
state: Any,
|
|
463
|
+
) -> bytes | None:
|
|
464
|
+
run_options = get_run_options()
|
|
465
|
+
# Apply system prompt as prefix only on first run (when resume is None)
|
|
466
|
+
if resume is None and run_options is not None and run_options.system:
|
|
467
|
+
prompt = f"{run_options.system}\n\n---\n\n{prompt}"
|
|
468
|
+
return prompt.encode()
|
|
469
|
+
|
|
456
470
|
def new_state(self, prompt: str, resume: ResumeToken | None) -> CodexRunState:
|
|
457
471
|
return CodexRunState(factory=EventFactory(ENGINE))
|
|
458
472
|
|
yee88/runners/opencode.py
CHANGED
|
@@ -335,9 +335,9 @@ class OpenCodeRunner(ResumeTokenMixin, JsonlSubprocessRunner):
|
|
|
335
335
|
model = run_options.model
|
|
336
336
|
if model is not None:
|
|
337
337
|
args.extend(["--model", str(model)])
|
|
338
|
-
# Apply system prompt as prefix
|
|
339
|
-
if run_options is not None and run_options.system:
|
|
340
|
-
prompt = f"{run_options.system}\n\n{prompt}"
|
|
338
|
+
# Apply system prompt as prefix only on first run (when resume is None)
|
|
339
|
+
if resume is None and run_options is not None and run_options.system:
|
|
340
|
+
prompt = f"{run_options.system}\n\n---\n\n{prompt}"
|
|
341
341
|
args.extend(["--", prompt])
|
|
342
342
|
return args
|
|
343
343
|
|
yee88/runners/pi.py
CHANGED
|
@@ -333,6 +333,9 @@ class PiRunner(ResumeTokenMixin, JsonlSubprocessRunner):
|
|
|
333
333
|
if model:
|
|
334
334
|
args.extend(["--model", model])
|
|
335
335
|
args.extend(["--session", state.resume.value])
|
|
336
|
+
# Apply system prompt as prefix only on first run (when resume is None)
|
|
337
|
+
if resume is None and run_options is not None and run_options.system:
|
|
338
|
+
prompt = f"{run_options.system}\n\n---\n\n{prompt}"
|
|
336
339
|
args.append(self._sanitize_prompt(prompt))
|
|
337
340
|
return args
|
|
338
341
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
yee88/__init__.py,sha256=
|
|
1
|
+
yee88/__init__.py,sha256=jFlbxEJFS0G44LE-yXXVSwXACA1J_NyYDk5E20_2zpc,22
|
|
2
2
|
yee88/api.py,sha256=SnUoG0xnjgaSyqM9retJS9wd3axBEI8MCOkrBNz4w8A,2876
|
|
3
3
|
yee88/backends.py,sha256=80ScxPEse-BxVfK0zA6bAaorp2GpTpCWsgX3TTqmumI,543
|
|
4
4
|
yee88/backends_helpers.py,sha256=d84XilyOzVVCq5akygVbH85JbapjTaSUZKeGcAml15I,368
|
|
@@ -43,11 +43,11 @@ yee88/cron/manager.py,sha256=YNIjzQwIS1fMi83LzZe2pxYSu2uPbey0UKtXa6xUmq8,4050
|
|
|
43
43
|
yee88/cron/models.py,sha256=IZtUvMBr2_wZbgEWR3U9yQW-QEOMzUybDER8B7Ne8Go,224
|
|
44
44
|
yee88/cron/scheduler.py,sha256=ITNqpF4MXUieuuFBvVHgzOVxxR5bnhGAFYvWTJWy-IU,1922
|
|
45
45
|
yee88/runners/__init__.py,sha256=McKaMqLXT9dJlgiEwKf6biD0Ns66Fk7SrxwtcP0ZgzI,30
|
|
46
|
-
yee88/runners/claude.py,sha256
|
|
47
|
-
yee88/runners/codex.py,sha256=
|
|
46
|
+
yee88/runners/claude.py,sha256=mj-L_V-cuCUWL9BW90I645EgDsjRHNdmpLQxN7skUL0,15518
|
|
47
|
+
yee88/runners/codex.py,sha256=fUipu9NsRhhHCIt8s5WkZcT03si1CIEbGrXGmcSlFUo,21427
|
|
48
48
|
yee88/runners/mock.py,sha256=pC6AkPFe5mDu3qJOQh_5sewaTxzNDYvslCZP6QbuGPI,6700
|
|
49
|
-
yee88/runners/opencode.py,sha256=
|
|
50
|
-
yee88/runners/pi.py,sha256=
|
|
49
|
+
yee88/runners/opencode.py,sha256=DNPhAe7OE6eBbVgx3hR8LAQVFL7Oh5wZ78C4pHBaecw,15072
|
|
50
|
+
yee88/runners/pi.py,sha256=GLYn-XOpo23QqNK5sSh6ZfrDARi1XLb14EjI0EBgNps,16309
|
|
51
51
|
yee88/runners/run_options.py,sha256=83uU9k5vnBSbk4wT4tIDkzOwMa3qL0KK-tdQgomre6w,915
|
|
52
52
|
yee88/runners/tool_actions.py,sha256=Gcfhl_-W8WtIKwM2d1pkTVnVuk3h310eSD-_DvKfqOc,2732
|
|
53
53
|
yee88/schemas/__init__.py,sha256=gt6BRlYw2nKYLKkidkTDdK9RTmDEEDDpSi3LIr_pccw,46
|
|
@@ -103,8 +103,8 @@ yee88/utils/json_state.py,sha256=cnSvGbB9zj90GdYSyigId1M0nEx54T3A3CqqhkAm9kQ,524
|
|
|
103
103
|
yee88/utils/paths.py,sha256=_Tp-LyFLeyGD0P0agRudLuT1NR_XTIpryxk3OYDJAGQ,1318
|
|
104
104
|
yee88/utils/streams.py,sha256=TQezA-A5VCNksLOtwsJplfr8vm1xPTXoGxvik8G2NPI,1121
|
|
105
105
|
yee88/utils/subprocess.py,sha256=2if6IxTZVSB1kDa8SXw3igj3E-zhKB8P4z5MVe-odzY,2169
|
|
106
|
-
yee88-0.6.
|
|
107
|
-
yee88-0.6.
|
|
108
|
-
yee88-0.6.
|
|
109
|
-
yee88-0.6.
|
|
110
|
-
yee88-0.6.
|
|
106
|
+
yee88-0.6.2.dist-info/METADATA,sha256=9cUm8ATZG3GF4ykYtADvM9D5ANTR05THkHKNjxtnhN8,4340
|
|
107
|
+
yee88-0.6.2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
108
|
+
yee88-0.6.2.dist-info/entry_points.txt,sha256=P4MVZ_sZfrHaARVMImNJjoGamP8VDukARWMKfDh20V8,282
|
|
109
|
+
yee88-0.6.2.dist-info/licenses/LICENSE,sha256=poyQ59wnbmL3Ox3TiiephfHvUpLvJl0DwLFFgqBDdHY,1063
|
|
110
|
+
yee88-0.6.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|