ai-spend-agent 0.9.1 → 0.9.2
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.
- package/dist/improveFlow.js +5 -3
- package/dist/index.d.ts +11 -0
- package/dist/index.js +396 -54
- package/dist/signup.d.ts +272 -0
- package/dist/signup.js +681 -0
- package/dist/statuslineRuntime.js +3 -1
- package/dist/telemetry.d.ts +149 -0
- package/dist/telemetry.js +390 -0
- package/package.json +4 -3
package/dist/improveFlow.js
CHANGED
|
@@ -132,18 +132,20 @@ const identityFields = [
|
|
|
132
132
|
{
|
|
133
133
|
field: "owner", kind: "name", label: "owner",
|
|
134
134
|
question: "Who is the accountable human owner of this project's AI cost?",
|
|
135
|
-
|
|
135
|
+
// Neutral placeholder identities only — a real person's details in an
|
|
136
|
+
// e.g. hint read as prefilled truth (shipped-audit fix).
|
|
137
|
+
example: "Sam Rivera"
|
|
136
138
|
},
|
|
137
139
|
{
|
|
138
140
|
field: "team", kind: "team", label: "team",
|
|
139
141
|
question: "What team does this cost belong to?",
|
|
140
|
-
example: "
|
|
142
|
+
example: "Platform Team"
|
|
141
143
|
},
|
|
142
144
|
{
|
|
143
145
|
field: "role", kind: "role", label: "role",
|
|
144
146
|
question: "What is your approval role for this project?",
|
|
145
147
|
guidance: "(A job role — not aibill's held/passed quality vocabulary.)",
|
|
146
|
-
example: "
|
|
148
|
+
example: "Engineering Manager"
|
|
147
149
|
},
|
|
148
150
|
{
|
|
149
151
|
field: "client", kind: "optional", label: "client",
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { type GuidedPromptSource } from "./guidedPrompt.js";
|
|
3
|
+
import { type SignupDnsResolver } from "./signup.js";
|
|
3
4
|
export type CliResult = {
|
|
4
5
|
exitCode: number;
|
|
5
6
|
stdout: string;
|
|
@@ -26,6 +27,16 @@ export type CliRuntimeOptions = {
|
|
|
26
27
|
source: GuidedPromptSource;
|
|
27
28
|
write: (text: string) => void;
|
|
28
29
|
}>;
|
|
30
|
+
/** Test override for the waitlist signup POST. Production uses global fetch. */
|
|
31
|
+
waitlistFetch?: typeof fetch;
|
|
32
|
+
/** Test override for signup email deliverability DNS. Production uses node:dns. */
|
|
33
|
+
signupDns?: SignupDnsResolver;
|
|
34
|
+
/**
|
|
35
|
+
* Set ONLY by the bin entrypoint when telemetry is enabled AND noticed:
|
|
36
|
+
* every "nothing uploaded" claim then prints the disclosure line instead.
|
|
37
|
+
* Embedded/MCP callers never set it (and never emit telemetry).
|
|
38
|
+
*/
|
|
39
|
+
telemetryDisclosure?: boolean;
|
|
29
40
|
};
|
|
30
41
|
export declare function runCli(argv?: string[], runtime?: CliRuntimeOptions): Promise<CliResult>;
|
|
31
42
|
/**
|