orizu 0.5.46 → 0.5.47

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.
@@ -42,15 +42,6 @@ export declare const AGENT_GIT_IDENTITY: {
42
42
  readonly name: "Orizu Agent";
43
43
  readonly email: "agent@orizu.ai";
44
44
  };
45
- /**
46
- * Origin-specific standing preambles wrap hosted task prompts. Web sessions get
47
- * `HOSTED_TASK_PREAMBLE`, which directs the agent to use the question tool and
48
- * wait for the human. CLI-origin sessions get `HOSTED_TASK_PREAMBLE_CLI`, where
49
- * questions remain auto-answered for unattended operation. Undefined or unknown
50
- * origins fail safely to the CLI preamble. Both variants tell the agent to
51
- * commit as it goes; end-of-run auto-harvest (ALI-1036, `harvestWorkspace`)
52
- * preserves anything left uncommitted.
53
- */
54
45
  export declare const HOSTED_TASK_PREAMBLE: string;
55
46
  /** Pre-ALI-1758 unattended behavior retained for CLI-originated sessions. */
56
47
  export declare const HOSTED_TASK_PREAMBLE_CLI: string;
@@ -1 +1 @@
1
- {"version":3,"file":"hosted-runtime-assets.d.ts","sourceRoot":"","sources":["../src/hosted-runtime-assets.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAOH,eAAO,MAAM,sBAAsB,oCAAoC,CAAA;AACvE,eAAO,MAAM,qBAAqB,cAAc,CAAA;AAChD,eAAO,MAAM,eAAe,WAAW,CAAA;AACvC,eAAO,MAAM,wBAAwB,mBAAmB,CAAA;AAExD,6EAA6E;AAC7E,eAAO,MAAM,+BAA+B,QAAgB,CAAA;AAE5D;8EAC8E;AAC9E,eAAO,MAAM,wBAAwB,oBAAoB,CAAA;AAEzD;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB;;;CAA4D,CAAA;AAI3F;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,QAM6C,CAAA;AAE9E,6EAA6E;AAC7E,eAAO,MAAM,wBAAwB,QAKyC,CAAA;AAE9E,MAAM,MAA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EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAA;IACpD;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACrC,uEAAuE;IACvE,aAAa,EAAE,MAAM,CAAA;CACtB;AAED,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,iBAAiB,GAAG,MAAM,CAEnE;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,iCAAiC,4CACH,CAAA;AAE3C,eAAO,MAAM,0BAA0B,QAEtC,CAAA;AAED;;;;;;;;;GASG;AACH,wBAAgB,4BAA4B,IAAI,MAAM,CA+QrD"}
@@ -50,17 +50,26 @@ export const AGENT_GIT_IDENTITY = { name: 'Orizu Agent', email: 'agent@orizu.ai'
50
50
  * commit as it goes; end-of-run auto-harvest (ALI-1036, `harvestWorkspace`)
51
51
  * preserves anything left uncommitted.
52
52
  */
53
+ /** ORI-2653: where a push lands, shared by both preambles. A web session's
54
+ * `origin` is its own copy of the team repository; a legacy GitHub session's
55
+ * current branch is its session branch. Only an Orizu publish puts work on the
56
+ * team's main. */
57
+ const HOSTED_PUSH_SCOPE = "Push only the current branch. That push and the automatic save keep work in this session's copy, " +
58
+ "not on the team's main. Never say work is published or on the team's main unless an Orizu " +
59
+ 'publish command reported that it merged or was already there. ';
53
60
  export const HOSTED_TASK_PREAMBLE = 'You are in a hosted sandbox. Work autonomously. When blocked on human input, call the built-in ' +
54
61
  'question tool with exactly one clear question and at most eight bounded options, then wait for ' +
55
62
  'the human. Never infer approval from silence or a recommended option. Commit your work to the current ' +
56
63
  'branch in logical units as you go (an automatic ' +
57
64
  'checkpoint will also save anything uncommitted at the end). Never switch branches. ' +
65
+ HOSTED_PUSH_SCOPE +
58
66
  'Production/default pointers and run metadata live in Orizu, not this repo.';
59
67
  /** Pre-ALI-1758 unattended behavior retained for CLI-originated sessions. */
60
68
  export const HOSTED_TASK_PREAMBLE_CLI = 'You are running unattended in a hosted sandbox. Work autonomously: never ask the user ' +
61
69
  'questions — when uncertain, choose the most reasonable/reversible option and note the ' +
62
70
  'decision. Commit your work to the current branch in logical units as you go (an automatic ' +
63
71
  'checkpoint will also save anything uncommitted at the end). Never switch branches. ' +
72
+ HOSTED_PUSH_SCOPE +
64
73
  'Production/default pointers and run metadata live in Orizu, not this repo.';
65
74
  /** Fail safe: only the exact server-stamped web origin enables interactive custody. */
66
75
  export function resolveHostedTaskPreamble(origin) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orizu",
3
- "version": "0.5.46",
3
+ "version": "0.5.47",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -60,12 +60,22 @@ export const AGENT_GIT_IDENTITY = { name: 'Orizu Agent', email: 'agent@orizu.ai'
60
60
  * commit as it goes; end-of-run auto-harvest (ALI-1036, `harvestWorkspace`)
61
61
  * preserves anything left uncommitted.
62
62
  */
63
+ /** ORI-2653: where a push lands, shared by both preambles. A web session's
64
+ * `origin` is its own copy of the team repository; a legacy GitHub session's
65
+ * current branch is its session branch. Only an Orizu publish puts work on the
66
+ * team's main. */
67
+ const HOSTED_PUSH_SCOPE =
68
+ "Push only the current branch. That push and the automatic save keep work in this session's copy, " +
69
+ "not on the team's main. Never say work is published or on the team's main unless an Orizu " +
70
+ 'publish command reported that it merged or was already there. '
71
+
63
72
  export const HOSTED_TASK_PREAMBLE =
64
73
  'You are in a hosted sandbox. Work autonomously. When blocked on human input, call the built-in ' +
65
74
  'question tool with exactly one clear question and at most eight bounded options, then wait for ' +
66
75
  'the human. Never infer approval from silence or a recommended option. Commit your work to the current ' +
67
76
  'branch in logical units as you go (an automatic ' +
68
77
  'checkpoint will also save anything uncommitted at the end). Never switch branches. ' +
78
+ HOSTED_PUSH_SCOPE +
69
79
  'Production/default pointers and run metadata live in Orizu, not this repo.'
70
80
 
71
81
  /** Pre-ALI-1758 unattended behavior retained for CLI-originated sessions. */
@@ -74,6 +84,7 @@ export const HOSTED_TASK_PREAMBLE_CLI =
74
84
  'questions — when uncertain, choose the most reasonable/reversible option and note the ' +
75
85
  'decision. Commit your work to the current branch in logical units as you go (an automatic ' +
76
86
  'checkpoint will also save anything uncommitted at the end). Never switch branches. ' +
87
+ HOSTED_PUSH_SCOPE +
77
88
  'Production/default pointers and run metadata live in Orizu, not this repo.'
78
89
 
79
90
  export type HostedSessionOrigin = 'hosted-web' | 'cli'