Base: codex-main originale (prima del fork aKode)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
---
|
||||
source: ext/multi-env-copy-file/tests/suite/connectivity.rs
|
||||
expression: outputs
|
||||
---
|
||||
[
|
||||
{
|
||||
"call_id": "source-disconnected",
|
||||
"output": "could not open copy source: broken pipe"
|
||||
},
|
||||
{
|
||||
"call_id": "target-disconnected",
|
||||
"output": "copy failed; target may be truncated or partially written: broken pipe"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,8 @@
|
||||
---
|
||||
source: ext/multi-env-copy-file/tests/suite/connectivity.rs
|
||||
expression: "json!({\n \"source\":\n mock.function_call_output_text(\"source-offline\").context(\"source error\")?,\n \"target\":\n mock.function_call_output_text(\"target-offline\").context(\"target error\")?,\n})"
|
||||
---
|
||||
{
|
||||
"source": "unknown or unavailable environment ID: unavailable",
|
||||
"target": "unknown or unavailable environment ID: unavailable"
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
---
|
||||
source: ext/multi-env-copy-file/tests/suite/mod.rs
|
||||
expression: errors
|
||||
---
|
||||
[
|
||||
{
|
||||
"field": "source_environment_id",
|
||||
"output": "missing field `source_environment_id` at line 1 column <COLUMN>",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"field": "target_environment_id",
|
||||
"output": "missing field `target_environment_id` at line 1 column <COLUMN>",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"field": "source_environment_id",
|
||||
"output": "unknown or unavailable environment ID: unknown",
|
||||
"value": "unknown"
|
||||
},
|
||||
{
|
||||
"field": "target_environment_id",
|
||||
"output": "unknown or unavailable environment ID: unknown",
|
||||
"value": "unknown"
|
||||
},
|
||||
{
|
||||
"field": "source_path",
|
||||
"output": "provide an absolute POSIX file path for environment <PRIMARY>",
|
||||
"value": "source.txt"
|
||||
},
|
||||
{
|
||||
"field": "target_path",
|
||||
"output": "provide an absolute POSIX file path for environment <PRIMARY>",
|
||||
"value": "target.txt"
|
||||
},
|
||||
{
|
||||
"field": "source_path",
|
||||
"output": "provide an absolute POSIX file path for environment <PRIMARY>",
|
||||
"value": "Z:\\foreign\\source.txt"
|
||||
},
|
||||
{
|
||||
"field": "source_path",
|
||||
"output": "could not open copy source: entity not found",
|
||||
"value": "<CWD>/missing.bin"
|
||||
},
|
||||
{
|
||||
"field": "target_path",
|
||||
"output": "copy failed; target may be truncated or partially written: is a directory",
|
||||
"value": "<CWD>"
|
||||
},
|
||||
{
|
||||
"field": "source_path",
|
||||
"output": "could not open copy source: invalid input parameter",
|
||||
"value": "<CWD>"
|
||||
},
|
||||
{
|
||||
"field": "target_path",
|
||||
"output": "copy failed; target may be truncated or partially written: entity not found",
|
||||
"value": "<CWD>/missing/target.txt"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,61 @@
|
||||
---
|
||||
source: ext/multi-env-copy-file/tests/suite/mod.rs
|
||||
expression: errors
|
||||
---
|
||||
[
|
||||
{
|
||||
"field": "source_environment_id",
|
||||
"output": "missing field `source_environment_id` at line 1 column <COLUMN>",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"field": "target_environment_id",
|
||||
"output": "missing field `target_environment_id` at line 1 column <COLUMN>",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"field": "source_environment_id",
|
||||
"output": "unknown or unavailable environment ID: unknown",
|
||||
"value": "unknown"
|
||||
},
|
||||
{
|
||||
"field": "target_environment_id",
|
||||
"output": "unknown or unavailable environment ID: unknown",
|
||||
"value": "unknown"
|
||||
},
|
||||
{
|
||||
"field": "source_path",
|
||||
"output": "provide an absolute Windows file path for environment <PRIMARY>",
|
||||
"value": "source.txt"
|
||||
},
|
||||
{
|
||||
"field": "target_path",
|
||||
"output": "provide an absolute Windows file path for environment <PRIMARY>",
|
||||
"value": "target.txt"
|
||||
},
|
||||
{
|
||||
"field": "source_path",
|
||||
"output": "provide an absolute Windows file path for environment <PRIMARY>",
|
||||
"value": "/foreign/source.txt"
|
||||
},
|
||||
{
|
||||
"field": "source_path",
|
||||
"output": "could not open copy source: entity not found",
|
||||
"value": "<CWD>\\missing.bin"
|
||||
},
|
||||
{
|
||||
"field": "target_path",
|
||||
"output": "copy failed; target may be truncated or partially written: <DIRECTORY_ERROR>",
|
||||
"value": "<CWD>"
|
||||
},
|
||||
{
|
||||
"field": "source_path",
|
||||
"output": "could not open copy source: <DIRECTORY_ERROR>",
|
||||
"value": "<CWD>"
|
||||
},
|
||||
{
|
||||
"field": "target_path",
|
||||
"output": "copy failed; target may be truncated or partially written: entity not found",
|
||||
"value": "<CWD>\\missing\\target.txt"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,8 @@
|
||||
---
|
||||
source: ext/multi-env-copy-file/tests/suite/mod.rs
|
||||
expression: "[read_error, write_error]"
|
||||
---
|
||||
[
|
||||
"could not open copy source: entity not found",
|
||||
"copy failed; target may be truncated or partially written: entity not found"
|
||||
]
|
||||
@@ -0,0 +1,46 @@
|
||||
---
|
||||
source: ext/multi-env-copy-file/tests/suite/transfers.rs
|
||||
expression: snapshot
|
||||
---
|
||||
Scenario: File contents stay outside model context. Copies within one environment are rejected.
|
||||
|
||||
## Window 1
|
||||
Settings:
|
||||
include: ["reasoning.encrypted_content"]
|
||||
model: "gpt-5.5"
|
||||
parallel_tool_calls: true
|
||||
prompt_cache_key: "<PROMPT_CACHE_KEY 1>"
|
||||
reasoning: {"effort":"medium"}
|
||||
store: false
|
||||
stream: true
|
||||
text: {"verbosity":"low"}
|
||||
tool_choice: "auto"
|
||||
tools (8; hash=8e2b5c4df5ff3e1c):
|
||||
- function/exec_command: Runs a command in a PTY, returning output or a session ID for ongoing interaction.; args=[cmd, environment_id, justification, login, max_output_tokens, prefix_rule, sandbox_permissions, shell, tty, workdir, yield_time_ms]; hash=e7a0fbdd42b934a5
|
||||
- function/write_stdin: Writes characters to an existing unified exec session and returns recent output.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2
|
||||
- function/request_user_input: Request user input for one to three short questions and wait for the response. This tool is only ...; args=[questions]; hash=64a729b25c424fc6
|
||||
- custom/apply_patch: The `apply_patch` tool can be used to edit files. This is a FREEFORM tool, so do not wrap the pat...; hash=6673c610c90583ae
|
||||
- function/view_image: View a local image file from the filesystem when visual inspection is needed. Use this for images...; args=[environment_id, path]; hash=919f5105a7799bf4
|
||||
- function/multi_env_copy_file: Copy a file between two different environments without loading it into context. Returns bytes cop...; args=[source_environment_id, source_path, target_environment_id, target_path]; hash=1fc19c22b5ee2122
|
||||
- tool_search: # Tool discovery Searches over deferred tool metadata with BM25 and exposes matching tools for t...; args=[limit, query]; hash=b573ed69c0b0e6c7
|
||||
- web_search; hash=e214d4db1bc49e89
|
||||
-- request 1 (request) --
|
||||
00:message/developer:
|
||||
<MODEL_INSTRUCTIONS>
|
||||
01:message/developer[2]:
|
||||
[01] <PERMISSIONS_INSTRUCTIONS>
|
||||
[02] <tools>
|
||||
Deferred tool namespaces:
|
||||
- multi_agent_v1: Tools for spawning and managing sub-agents.
|
||||
</tools>
|
||||
02:message/user:
|
||||
<ENVIRONMENT_CONTEXT>
|
||||
03:message/user:
|
||||
Copy the binary artifact within and between environments.
|
||||
-- request 2 (request) --
|
||||
04:function_call/functions.multi_env_copy_file:{"source_environment_id":"<PRIMARY>","source_path":"<ABSOLUTE_PATH>","target_environment_id":"<PRIMARY>","target_path":"<ABSOLUTE_PATH>"}
|
||||
05:function_call/functions.multi_env_copy_file:{"source_environment_id":"<PRIMARY>","source_path":"<ABSOLUTE_PATH>","target_environment_id":"native","target_path":"<ABSOLUTE_PATH>"}
|
||||
06:function_call/functions.multi_env_copy_file:{"source_environment_id":"native","source_path":"<ABSOLUTE_PATH>","target_environment_id":"<PRIMARY>","target_path":"<ABSOLUTE_PATH>"}
|
||||
07:function_call_output:source and target environment IDs must differ. To copy within one environment, use a shell command.
|
||||
08:function_call_output:{"bytes_copied":1470000}
|
||||
09:function_call_output:{"bytes_copied":1470000}
|
||||
Reference in New Issue
Block a user