forked from 1b-agent/fieldcraft-upstream
repo: move to github.com/tangency-labs/fieldcraft (URLs, updater, Pages)
The updater's release endpoint, docs, README, release notes and the Pages URL point at the tangency-labs org. App IDs (io.github.jyviko.fieldcraft) stay unchanged so installed copies keep their identity and settings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UhhZMBTviDQxZvwnyP89fo
This commit is contained in:
1 parent
b74d15e44d
commit
a079e51f9d
18 files changed
+55
-55
No files matched your search
@@ -17,7 +17,7 @@ use serde_json::{Value, json};
|
||||
use crate::crash::without_home;
|
||||
|
||||
/// The issue form.
|
||||
pub const ISSUE_URL: &str = "https://github.com/jyviko/fieldcraft/issues/new";
|
||||
pub const ISSUE_URL: &str = "https://github.com/tangency-labs/fieldcraft/issues/new";
|
||||
/// The longest link a draft opens: GitHub refuses new-issue links much past 8 KB.
|
||||
pub const MAX_URL: usize = 7000;
|
||||
/// The session file a draft attaches.
|
||||
@@ -329,7 +329,7 @@ mod tests {
|
||||
..Default::default()
|
||||
};
|
||||
let d = draft(&input, "v1.2.3, testos x");
|
||||
assert!(d.url.starts_with("https://github.com/jyviko/fieldcraft/issues/new?template=bug.yml&title="), "{}", d.url);
|
||||
assert!(d.url.starts_with("https://github.com/tangency-labs/fieldcraft/issues/new?template=bug.yml&title="), "{}", d.url);
|
||||
assert!(d.attachments.is_empty() && d.clipboard.is_none(), "nothing attached without Share my session");
|
||||
let all = format!("{} {:?} {}", d.title, d.fields, decode(&d.url));
|
||||
assert!(!all.contains(&home()), "no home folder: {all}");
|
||||
|
||||
@@ -13,7 +13,7 @@ use crate::ModelApp;
|
||||
use crate::files::Prompt;
|
||||
|
||||
/// What is sent, event by event.
|
||||
pub const PRIVACY_URL: &str = "https://github.com/jyviko/fieldcraft/blob/main/docs/privacy.md";
|
||||
pub const PRIVACY_URL: &str = "https://github.com/tangency-labs/fieldcraft/blob/main/docs/privacy.md";
|
||||
/// The question, as the first run asks it.
|
||||
pub const QUESTION: &str = "Help improve FieldCraft by sharing anonymous usage: which tools you use, nothing from your models.";
|
||||
const DETAIL: &str = "Counted: the commands you run (their names, how long they took, whether they failed), the steps from a design to results, \
|
||||
|
||||
@@ -35,7 +35,7 @@ pub use release::{Asset, Check, Release};
|
||||
pub use version::Version;
|
||||
|
||||
/// The repository releases come from.
|
||||
pub const REPO: &str = "jyviko/fieldcraft";
|
||||
pub const REPO: &str = "tangency-labs/fieldcraft";
|
||||
/// The GitHub API.
|
||||
pub const DEFAULT_HOST: &str = "https://api.github.com";
|
||||
/// Replaces [`DEFAULT_HOST`] (and allows plain `http`), for tests against a local server only.
|
||||
|
||||
@@ -164,9 +164,9 @@ mod tests {
|
||||
// Errors are messages, never panics.
|
||||
let missing = Client::new(&server.url()).release(&Which::Version(Version::parse("1.2.3").unwrap())).unwrap_err();
|
||||
assert!(missing.to_string().contains("no published release of FieldCraft 1.2.3"), "{missing}");
|
||||
server.route("/repos/jyviko/fieldcraft/releases/latest", 200, b"not json".to_vec());
|
||||
server.route("/repos/tangency-labs/fieldcraft/releases/latest", 200, b"not json".to_vec());
|
||||
assert!(matches!(Client::new(&server.url()).check(), Err(Error::Release(_))));
|
||||
server.route("/repos/jyviko/fieldcraft/releases/latest", 403, b"{}".to_vec());
|
||||
server.route("/repos/tangency-labs/fieldcraft/releases/latest", 403, b"{}".to_vec());
|
||||
assert!(matches!(Client::new(&server.url()).check(), Err(Error::Network(_))));
|
||||
assert!(matches!(Client::new("http://127.0.0.1:1").check(), Err(Error::Network(_))));
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@ mod tests {
|
||||
pub(crate) fn github(tag: &str) -> Value {
|
||||
json!({
|
||||
"tag_name": tag,
|
||||
"html_url": format!("https://github.com/jyviko/fieldcraft/releases/tag/{tag}"),
|
||||
"html_url": format!("https://github.com/tangency-labs/fieldcraft/releases/tag/{tag}"),
|
||||
"body": "## What's new\n- updates",
|
||||
"draft": false,
|
||||
"prerelease": false,
|
||||
|
||||
Reference in new issue
Block a user