Rinomina: crate akode-*, cartelle akode-rs/ e akode-cli/, binario akode, ~/.akode, AKODE_* (A)
Riapplica la fase 5 di aKode (86e7c72e) sulla base ripulita:
- crate codex-* -> akode-*, codex-rs -> akode-rs, codex-cli -> akode-cli, binario e ausiliari akode;
- ~/.codex -> ~/.akode, CODEX_HOME -> AKODE_HOME, variabili CODEX_* -> AKODE_*, .codex/ -> .akode/ di progetto;
nessun fallback a ~/.codex o a CODEX_*;
- testi per l'utente "Codex" -> "aKode"; testi verso il modello e istruzioni di sistema invariati;
- snapshot insta rinominati (non ancora rigenerati).
I conflitti con la base ripulita sono stati risolti riapplicando la rinomina ai file senza le
funzioni di imeAI (script di mappa dei token per file).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
48
akode-rs/app-server-protocol/src/protocol/v2/feedback.rs
Normal file
48
akode-rs/app-server-protocol/src/protocol/v2/feedback.rs
Normal file
@@ -0,0 +1,48 @@
|
||||
use crate::JsonSchema;
|
||||
use crate::TS;
|
||||
use akode_utils_path_uri::LegacyAppPathString;
|
||||
use serde::Deserialize;
|
||||
use serde::Serialize;
|
||||
use std::collections::BTreeMap;
|
||||
use std::path::PathBuf;
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
/// Report contents for `feedback/save`. Feedback is only ever saved locally.
|
||||
pub struct FeedbackReportParams {
|
||||
pub classification: String,
|
||||
#[ts(optional = nullable)]
|
||||
pub reason: Option<String>,
|
||||
#[ts(optional = nullable)]
|
||||
pub thread_id: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "std::ops::Not::not")]
|
||||
pub include_logs: bool,
|
||||
#[ts(optional = nullable)]
|
||||
pub extra_log_files: Option<Vec<PathBuf>>,
|
||||
#[ts(optional = nullable)]
|
||||
pub tags: Option<BTreeMap<String, String>>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
pub struct FeedbackSaveParams {
|
||||
#[serde(flatten)]
|
||||
pub feedback: FeedbackReportParams,
|
||||
/// Absolute, previously unused ZIP path on the app-server host.
|
||||
/// The caller owns this file, including after a disconnected RPC.
|
||||
pub save_path: LegacyAppPathString,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
pub struct FeedbackSaveResponse {
|
||||
pub saved_path: LegacyAppPathString,
|
||||
pub thread_id: String,
|
||||
/// Whitespace-normalized SHA-256 of the session base instructions, matching the
|
||||
/// saved `prompt_hash` tag. Does not include later developer messages.
|
||||
/// Null when the reported rollout has no prompt metadata.
|
||||
pub prompt_hash: Option<String>,
|
||||
}
|
||||
Reference in New Issue
Block a user